Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrea Lorenzon
H5nuvola2
Commits
631a2de9
Commit
631a2de9
authored
Aug 23, 2021
by
Andrea Lorenzon
💬
Browse files
added title to series plot
parent
c9a53927
Pipeline
#1577
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/h5ceric.py
View file @
631a2de9
...
...
@@ -112,11 +112,11 @@ def extract_dataset(folder: str, filename: str, required_dataset: str):
:param required_dataset: full path of the required dataset: "/entry/.../..."
:return: numpy.array with the required data
"""
fullpath
=
folder
+
filename
full
_
path
=
folder
+
filename
import
numpy
as
np
with
h5py
.
File
(
fullpath
,
"r"
)
as
f
:
# print("opened file "+fullpath)
with
h5py
.
File
(
full
_
path
,
"r"
)
as
f
:
# print("opened file "+full
_
path)
for
dataset_name
,
dataset
in
h5py_dataset_iterator
(
f
):
# print("checking if "+dataset_name+" matches required dataset")
if
required_dataset
==
dataset_name
:
...
...
modules/hdf5BokehPlots.py
View file @
631a2de9
...
...
@@ -107,7 +107,7 @@ def plot_2d_series(x: numpy.ndarray, y: numpy.ndarray, ds_name='') -> dict:
""" creates a bokeh plot from a 2D figure
:param y: values of the series
:param x: x axis of the serie (time?)
:param x: x axis of the serie
s
(time?)
:param ds_name: title of the plot
:return: a bokeh figure
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment