Skip to content

Commit

Permalink
dev: remove saved intrument and session files from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micahwoodard committed Dec 20, 2023
1 parent 03a2287 commit a34ac91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/aind_metadata_mapper/FIB/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def map_response_to_ophys_session(
# maps stimulus_name from command
command = command_match.group(1)
stimulus_name = getattr(StimulusName, command, "")
print("stimulus", stimulus_name)

# create opto stim instance
opto_stim = OptoStimulation(
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/FIB/000000_ophys_rig.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
"model": null,
"path_to_cad": null,
"notes": null,
"type": "Tunable lens"
"type": "Other"
},
{
"device_type": "AdditionalImagingDevice",
Expand All @@ -458,7 +458,7 @@
"model": null,
"path_to_cad": null,
"notes": null,
"type": "Tunable lens"
"type": "Other"
}
],
"calibration_date": null,
Expand Down
24 changes: 8 additions & 16 deletions tests/test_FIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,13 @@ def test_map_response_to_ophys_session(self):

with open(ophys_session_path, "r") as f:
actual_session_contents = json.load(f)
print(
actual_session_contents["stimulus_epochs"][0]["stimulus"][
"stimulus_name"
]
)
self.assertEqual(
actual_session_contents["stimulus_epochs"][0]["stimulus"][
"stimulus_name"
],
stimulus_name,
)
os.remove(ophys_session_path)

def test_map_to_ophys_rig(self):
"""Tests that the teensy response maps correctly to ophys rig."""
Expand All @@ -110,17 +106,13 @@ def test_map_to_ophys_rig(self):
reference_path=RESOURCES_DIR,
)

# ophys_rig_path = (
# self.example_experiment_data["save_dir"]
# + f"/{self.example_experiment_data['labtracks_id']}_"
# + start_date.strftime("%Y-%m-%d_%H-%M-%S")
# + "_ophys_rig.json"
# )

# with open(ophys_rig_path, "r") as f:
# actual_rig_contents = json.load(f)
#
# self.assertEqual(actual_rig_contents, self.expected_rig)
ophys_rig_path = (
self.example_experiment_data["save_dir"]
+ f"/{self.example_experiment_data['labtracks_id']}_"
+ start_date.strftime("%Y-%m-%d_%H-%M-%S")
+ "_ophys_rig.json"
)
os.remove(ophys_rig_path)


if __name__ == "__main__":
Expand Down

0 comments on commit a34ac91

Please sign in to comment.