Skip to content

Commit

Permalink
Accommodate electrode annotations without raw_structure, `raw_locat…
Browse files Browse the repository at this point in the history
…ion`

- e.g. `DRpilot_667252_20230926`
  • Loading branch information
bjhardcastle committed Apr 26, 2024
1 parent 462d264 commit 949744c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/npc_sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,10 +1185,13 @@ def electrodes(self) -> pynwb.core.DynamicTable:
"x",
"y",
"z",
"raw_location",
"raw_structure",
) + column_names
ccf_df = utils.get_tissuecyte_electrodes_table(self.id)
if "raw_location" in ccf_df:
column_names = column_names + (
"raw_location",
"raw_structure",
)
column_description = {
"structure": "acronym for the Allen CCF structure that the electrode recorded from - less-specific than `location`",
"raw_location": "raw non-processed (for white matter areas (lowercase), will be different than location) acronym for the Allen CCF strucutre that the electrode recorded from",
Expand Down

0 comments on commit 949744c

Please sign in to comment.