I am trying to understand the rule behind naming of properties that originate from links in the schema.
In the PoseEstimation class, there are two unnamed links, for Skeleton and Device types. In the nwbfields list in the PoseEstimation class, skeleton is singular and devices are plural. Are these names based on the quantity key for each of the properties in the schema? I.e Skeleton links can be 0 or 1, while Device links can be 0 or many.
|
links: |
|
- target_type: Skeleton |
|
doc: Layout of body part locations and connections. |
|
quantity: '?' |
|
- target_type: Device |
|
doc: Cameras used to record the videos. |
|
quantity: '*' |
|
__nwbfields__ = ( |
|
"description", |
|
"original_videos", |
|
"labeled_videos", |
|
"dimensions", |
|
"devices", |
|
"scorer", |
|
"source_software", |
|
"source_software_version", |
|
"nodes", |
|
"edges", |
|
"skeleton", # <-- this is a link to a Skeleton object |
I am trying to understand the rule behind naming of properties that originate from links in the schema.
In the
PoseEstimationclass, there are two unnamed links, forSkeletonandDevicetypes. In the nwbfields list in thePoseEstimationclass,skeletonis singular anddevicesare plural. Are these names based on the quantity key for each of the properties in the schema? I.eSkeletonlinks can be 0 or 1, whileDevicelinks can be 0 or many.ndx-pose/spec/ndx-pose.extensions.yaml
Lines 126 to 132 in d2ffeba
ndx-pose/src/pynwb/ndx_pose/pose.py
Lines 111 to 122 in d2ffeba