Skip to content

Question: Naming of devices property in the PoseEstimation python class #52

@ehennestad

Description

@ehennestad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions