Skip to content

Multiple z devices (PrairieView metadata reader) #77

@juremaj

Description

@juremaj

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']):

image

But since I have two devices, this restricts the reading to only the first one. Heres what my metadata (.xml) looks like:

image

In my data the other device was used (Optotune ETL 10-30, index=1) and the .xml logs this under 'zDevice':

image

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions