Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "There are no digitizers in the HDF5 file" #69

Open
tlook19 opened this issue Sep 29, 2021 · 0 comments
Open

Error "There are no digitizers in the HDF5 file" #69

tlook19 opened this issue Sep 29, 2021 · 0 comments

Comments

@tlook19
Copy link

tlook19 commented Sep 29, 2021

While trying to read data off the file below, received a ValueError saying "ValueError: There are no digitizers in the HDF5 file."

========================================================================
02_xy_He100_Ne0-TL26_2021-09-28_16.46.51.hdf5 Overview
Generated by bapsflib (v1.0.2.dev20+g999c88f)
Generated date: 9/29/2021 12:28:39 PM


ValueError Traceback (most recent call last)
/tmp/ipykernel_60184/2300290628.py in
----> 1 xyz = f.read_data(2,1, digitizer='SIS crate', add_controls=[('6K Compumotor',1)])['xyz']

~/miniconda3/lib/python3.9/site-packages/bapsflib/_hdf/utils/file.py in read_data(self, board, channel, index, shotnum, digitizer, adc, config_name, keep_bits, add_controls, intersection_set, silent, **kwargs)
354 with warnings.catch_warnings():
355 warnings.simplefilter(warn_filter)
--> 356 data = HDFReadData(
357 self,
358 board,

~/miniconda3/lib/python3.9/site-packages/bapsflib/_hdf/utils/hdfreaddata.py in new(cls, hdf_file, board, channel, index, shotnum, digitizer, config_name, adc, keep_bits, add_controls, intersection_set, **kwargs)
207 # ---- Condition digitizer keyword ----
208 if not bool(_fmap.digitizers):
--> 209 raise ValueError("There are no digitizers in the HDF5 file.")
210 elif digitizer is None:
211 if not bool(_fmap.main_digitizer):

ValueError: There are no digitizers in the HDF5 file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant