We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3caf4cb commit 6cf7627Copy full SHA for 6cf7627
src/spyglass/common/populate_all_common.py
@@ -1,6 +1,7 @@
1
from typing import List, Union
2
3
import datajoint as dj
4
+from datajoint.utils import to_camel_case
5
6
from spyglass.common.common_behav import (
7
PositionSource,
@@ -80,10 +81,11 @@ def single_transaction_make(
80
81
for parent in parents[1:]:
82
key_source *= parent.proj()
83
- if table.__name__ == "PositionSource":
84
+ table_name = to_camel_case(table.table_name)
85
+ if table_name == "PositionSource":
86
# PositionSource only uses nwb_file_name - full calls redundant
87
key_source = dj.U("nwb_file_name") & key_source
- if table.__name__ == "ImportedPose":
88
+ if table_name == "ImportedPose":
89
key_source = Nwbfile()
90
91
for pop_key in (key_source & file_restr).fetch("KEY"):
0 commit comments