Skip to content
Snippets Groups Projects
Commit 4541541b authored by Alán Muñoz's avatar Alán Muñoz
Browse files

change(signal): nly provide avaiable channels

parent 8ef3726c
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,9 @@ class Signal(BridgeH5): ...@@ -320,7 +320,9 @@ class Signal(BridgeH5):
with h5py.File(self.filename, "r") as f: with h5py.File(self.filename, "r") as f:
picks = set() picks = set()
if path in f: if path in f:
picks = set(zip(*[f[path + name] for name in names])) picks = set(
zip(*[f[path + name] for name in names if name in f[path]])
)
return picks return picks
def dataset_to_df(self, f: h5py.File, path: str) -> pd.DataFrame: def dataset_to_df(self, f: h5py.File, path: str) -> pd.DataFrame:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment