Table to identify source of Position Information from upstream options
(e.g. DLC, Trodes, etc...) To add another upstream option, a new Part table
should be added in the same syntax as DLCPos and TrodesPos.
Source code in src/spyglass/position/position_merge.py
@schemaclassPositionOutput(_Merge,SpyglassMixin):""" Table to identify source of Position Information from upstream options (e.g. DLC, Trodes, etc...) To add another upstream option, a new Part table should be added in the same syntax as DLCPos and TrodesPos. """definition=""" merge_id: uuid --- source: varchar(32) """classDLCPosV1(SpyglassMixin,dj.Part):""" Table to pass-through upstream DLC Pose Estimation information """definition=""" -> PositionOutput --- -> DLCPosV1 """classTrodesPosV1(SpyglassMixin,dj.Part):""" Table to pass-through upstream Trodes Position Tracking information """definition=""" -> PositionOutput --- -> TrodesPosV1 """classCommonPos(SpyglassMixin,dj.Part):""" Table to pass-through upstream Trodes Position Tracking information """definition=""" -> PositionOutput --- -> CommonPos """deffetch1_dataframe(self)->DataFrame:"""Fetch a single dataframe from the merged table."""# proj replaces operator restriction to enable# (TableName & restriction).fetch1_dataframe()key=self.merge_restrict(self.proj()).proj()query=(source_class_dict[to_camel_case(self.merge_get_parent(self.proj()).table_name)]&key)returnquery.fetch1_dataframe()
deffetch1_dataframe(self)->DataFrame:"""Fetch a single dataframe from the merged table."""# proj replaces operator restriction to enable# (TableName & restriction).fetch1_dataframe()key=self.merge_restrict(self.proj()).proj()query=(source_class_dict[to_camel_case(self.merge_get_parent(self.proj()).table_name)]&key)returnquery.fetch1_dataframe()