fmi-faim / faim-ipa

A collection of Image Processing and Analysis (IPA) functions used at the Facility for Advanced Imaging and Microscopy (FAIM)
BSD 3-Clause "New" or "Revised" License
8 stars 6 forks source link

`get_wavelength_power` function fails with KeyError for MDs with other wavelength metadata #35

Closed jluethi closed 10 months ago

jluethi commented 1 year ago

The current setup of get_wavelength_power in MetaSeriesUtils.py only works for MD setups that contain the following wavelength power settings in their metadata: ["Lumencor Cyan Intensity", "Lumencor Green Intensity", "Lumencor Red Intensity", "Lumencor Violet Intensity", "Lumencor Yellow Intensity"]

If one or multiple of them are missing, it raises a KeyError. Also, if other intensity values are part of the metadata, they are ignored. At the ZMB, they have other lamps, thus other metadata. I'd suggest we make this metadata readout more general (PR coming up), such that it would work with other MD configurations and the configurations don't need to be part of the faim-hcs source code.

tibuch commented 10 months ago

Removed this function in #59. Now only the wavelength is extracted from the metadata.