From ae9e085c1b49c5aeff2bd2e8e20f93389f63b6d1 Mon Sep 17 00:00:00 2001 From: pauladkisson Date: Tue, 23 Apr 2024 11:44:11 -0700 Subject: [PATCH] fixed merge bug with raw photometry --- .../rawfiberphotometryinterface.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/datta_lab_to_nwb/markowitz_gillis_nature_2023/rawfiberphotometryinterface.py b/src/datta_lab_to_nwb/markowitz_gillis_nature_2023/rawfiberphotometryinterface.py index a873277..d2c450e 100644 --- a/src/datta_lab_to_nwb/markowitz_gillis_nature_2023/rawfiberphotometryinterface.py +++ b/src/datta_lab_to_nwb/markowitz_gillis_nature_2023/rawfiberphotometryinterface.py @@ -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")