Skip to content

Commit

Permalink
fixed merge bug with raw photometry
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Apr 23, 2024
1 parent 9b25dc6 commit ae9e085
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,20 @@ def add_to_nwbfile(self, nwbfile: NWBFile, metadata: dict) -> None:
coordinates=(0.260, 2.550, -2.40), # (AP, ML, DV)
)

keypoint_sessions = [
"keypoint-dls-dlight-9",
"keypoint-dls-dlight-10",
"keypoint-dls-dlight-11",
"keypoint-dls-dlight-12",
"keypoint-dls-dlight-13",
]
skip = (
self.source_data["tdt_path"] is None
or not Path(self.source_data["tdt_path"]).exists()
or not (Path(self.source_data["tdt_path"]).parent / "alignment_df.parquet").exists()
or (
not (Path(self.source_data["tdt_path"]).parent / "alignment_df.parquet").exists()
and self.source_data["session_id"] not in keypoint_sessions
)
)
if skip:
excitation_sources_table.add_row(peak_wavelength=470.0, source_type="LED")
Expand Down

0 comments on commit ae9e085

Please sign in to comment.