Rather than creating fresh groups within the reference_images group, I'd like to link to existing groups in /acquisition/timeseries. However, my groups there are TwoPhotonSeries groups, and when I do
ref_imgs.make_group('<image_name>', name='Zstack_image',
link='link:/acquisition/timeseries/Zstack_Red_0033')
I get a warning from the validator:
6 Miscellaneous warnings (1 combined):
1. /processing/Acquired_ROIs/ImageSegmentation/Zstack#/reference_images/Zstack_image
- type (core:<image_name>/) is linked to a different type (core:<TwoPhotonSeries>/)
at: /acquisition/timeseries/Zstack_Red_# (#=33,36-37,47,49,52)
I'm guessing this is because the spec defines reference_images using merge rather than link
"reference_images/": {
"description": "Stores image stacks segmentation mask apply to.",
"<image_name>/+": {
"description": ("One or more image stacks that the masks apply "
"to (can be one-element stack)"),
"merge+": ["<ImageSeries>/",] }}
So my question is, am I doing something wrong here, or should the spec be adapted to allow this use case?