I've been testing on DV files from Cockpit, which doesn't write "proper" DV files. When testing on a "proper" DV file, mrc.Mrc handles things differently, storing the data as a 1D np.recarray of np.records, with each record being the metadata for an image plane. I have adjusted get_wavelengths_from_dv to be able to handle either type efficiently.
I've been testing on DV files from Cockpit, which doesn't write "proper" DV files. When testing on a "proper" DV file,
mrc.Mrc
handles things differently, storing the data as a 1Dnp.recarray
ofnp.record
s, with each record being the metadata for an image plane. I have adjustedget_wavelengths_from_dv
to be able to handle either type efficiently.