Closed plodocus closed 3 years ago
@DanBenHa sorry for the inconvenience. We will have a closer look at it. Your understanding of the source is correct and I think this can be considered a bug. When searching for the referring objects we do not check whether the parent is a Block, or a parent Source. In your case of nested sources we need to traverse to the root of the tree.
fixed with #499 closing this issue
I want to represent data coming from different channels from one probe using nested
Source
s. For example, if I had two probes with 32 channels each, I would have twoSources
at the block level. Each of theSource
s would have unique channel numbers. Concretely, I want toSource
) from referring objects likeDataArray
.Somehow, this doesn't work:
Did I misunderstand the concept of
Source
?Edit: I guess that is related to the note at https://github.com/G-Node/nixpy/blob/fa561104305c73b233d9903d601440c390e2c042/nixio/source_link_container.py#L15 Doesn't sound like a solution is around the corner... So quickfix would be to have all those channel
Source
s at the top level and put them in aGroup
according to the probe?Edit 2: Hmm, apparently
Group
is not considered areferring_object
... Resorting to defining the probe/region in theSource
'sdefinition
. Oh dear 😅