usnistgov / mass

Microcalorimeter pulse-analysis software
MIT License
6 stars 0 forks source link

Problem re-creating filters #222

Closed joefowler closed 2 years ago

joefowler commented 2 years ago

Original report by Joseph Fowler (Bitbucket: joe_fowler, ).


Cannot compute an arrival-time-safe filter if one already exists. I’m sure this used to work, so perhaps there’s an HDF5 API change?

  File "/Users/fowlerj/Software/mass/mass/core/channel.py", line 593, in wrapper
    method(ds, *args, **kwargs)
  File "/Users/fowlerj/Software/mass/mass/core/channel.py", line 1353, in compute_ats_filter
    self._filter_to_hdf5()
  File "/Users/fowlerj/Software/mass/mass/core/channel.py", line 1199, in _filter_to_hdf5
    h5grp.create_dataset("avg_signal", data=self.filter.avg_signal)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/h5py/_hl/group.py", line 149, in create_dataset
    dsid = dataset.make_new_dset(group, shape, dtype, data, name, **kwds)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/h5py/_hl/dataset.py", line 142, in make_new_dset
    dset_id = h5d.create(parent.id, name, tid, sid, dcpl=dcpl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5d.pyx", line 87, in h5py.h5d.create
ValueError: Unable to create dataset (name already exists)

joefowler commented 2 years ago

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).


Delete HDF5 filter group before storing new ones

Fixes #222.

joefowler commented 1 year ago

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).


Removing milestone: v0.7 (automated comment)