Skip to content

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

@tlook19

Description

@tlook19

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions