-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Jupyter Visualizer does not work for many datasets, often giving errors, e.g.
fig = belib.viz.be_viz_utils.jupyter_visualize_be_spectrograms(h5_main)
No position datasets found as attributes of /Measurement_000/Channel_000/Spectroscopic_Values
> ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-27-990bcd15c372> in <module>
----> 1 fig = belib.viz.be_viz_utils.jupyter_visualize_be_spectrograms(h5_main)
~/PycharmProjects/BGlib/BGlib/be/viz/be_viz_utils.py in jupyter_visualize_be_spectrograms(pc_main, cmap)
522 y_size = pos_dims[-2]
523
--> 524 spatial_map = np.abs(np.reshape(pc_main[spatial_slice, 0], (y_size, x_size)))
525 spectrogram = np.reshape(pc_main[0], (num_udvs_steps, -1))
526 fig, axes = plt.subplots(ncols=3, figsize=(12, 4), subplot_kw={'adjustable': 'box'})
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
//anaconda3/lib/python3.7/site-packages/h5py/_hl/dataset.py in __getitem__(self, args, new_dtype)
775
776 # Perform the dataspace selection.
--> 777 selection = sel.select(self.shape, args, dataset=self)
778
779 if selection.nselect == 0:
//anaconda3/lib/python3.7/site-packages/h5py/_hl/selections.py in select(shape, args, dataset)
80 selector = _selector.Selector(space)
81
---> 82 return selector.make_selection(args)
83
84
h5py/_selector.pyx in h5py._selector.Selector.make_selection()
h5py/_selector.pyx in h5py._selector.Selector.apply_args()
TypeError: Only 1D arrays allowed for fancy indexing
Metadata
Metadata
Assignees
Labels
No labels