-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I've been trying to set up datajoint for a calcium imaging pipeline and I ran into issues importing PrairieView metadata from the .xml file. Essentially I get an assertion error, from prairieviewreader.py/get_pv_metadata (part of element_interface) because z_fields.size == n_depths. I think the issue is that our microscope is using 2 different devices for adjusting Z (Z Focus and Optotune ETL 10-30), but prairieviewreader.py hardcodes the zeroth index as the preferred z device (see below - [@subindex='0']):
But since I have two devices, this restricts the reading to only the first one. Heres what my metadata (.xml) looks like:
In my data the other device was used (Optotune ETL 10-30, index=1) and the .xml logs this under 'zDevice':
For now I just did a hacky fix of hardcoding [@subindex='1'] instead of 0, since all my data is using the second device. I am not sure how many people are using a second z device, but I was thinking it could be good to add the handling of this specific case.


