-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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.
ndx-pose/spec/ndx-pose.extensions.yaml
Lines 126 to 132 in d2ffeba
| links: | |
| - target_type: Skeleton | |
| doc: Layout of body part locations and connections. | |
| quantity: '?' | |
| - target_type: Device | |
| doc: Cameras used to record the videos. | |
| quantity: '*' |
ndx-pose/src/pynwb/ndx_pose/pose.py
Lines 111 to 122 in d2ffeba
| __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 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels