imported_pose.py
ImportedPose
¶
Bases: SpyglassIngestion, Manual
Table to ingest pose data generated prior to spyglass. Each entry corresponds to on ndx_pose.PoseEstimation object in an NWB file. PoseEstimation objects should be stored in nwb.processing.behavior Assumptions: - Single skeleton object per PoseEstimation object
Source code in src/spyglass/position/v1/imported_pose.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
generate_entries_from_nwb_object(nwb_obj, base_key=None)
¶
Generate the interval, the pose entry, and one entry per body part.
The interval comes first: it is this table's parent, derived from the timestamps of the object's first body part.
Source code in src/spyglass/position/v1/imported_pose.py
make(key)
¶
fetch_pose_dataframe(key=None)
¶
Fetch pose data as a pandas DataFrame
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
dict
|
Key to fetch pose data for |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame containing pose data |