DiamondLightSource / PySIMRecon

Easy to use wrapper for pyCUDAsirecon, allowing the use of DV files without PRIISM
GNU General Public License v3.0
0 stars 2 forks source link

`get_wavelengths_from_dv`: handle `dv.extFloats` that are `np.recarray`s #34

Closed thomasmfish closed 1 month ago

thomasmfish commented 1 month ago

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.