Skip to content

Commit

Permalink
Dash to underscore for pulse heights (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong authored Aug 9, 2023
1 parent a82db5a commit f4d7f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/toffy/watcher_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def generate_pulse_heights(self, pulse_out_dir: str, panel: pd.DataFrame = None,
if not os.path.exists(pulse_out_dir):
os.makedirs(pulse_out_dir)

pulse_height_file = os.path.join(pulse_out_dir, f"{self.point_name}-pulse_heights.csv")
pulse_height_file = os.path.join(pulse_out_dir, f"{self.point_name}_pulse_heights.csv")
if os.path.exists(pulse_height_file) and not self.overwrite:
warnings.warn(f"Pulse heights per mass already extracted for FOV {self.point_name}")
return
Expand Down
2 changes: 1 addition & 1 deletion tests/fov_watcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def test_watcher(
df_ph = pd.DataFrame(np.random.rand(10, 3), columns=["mass", "fov", "pulse_height"])
df_ph["fov"] = "fov-2-scan-1"
df_ph.to_csv(
os.path.join(pulse_out_dir, "fov-2-scan-1-pulse_heights.csv"), index=False
os.path.join(pulse_out_dir, "fov-2-scan-1_pulse_heights.csv"), index=False
)

# `_slow_copy_sample_tissue_data` mimics the instrument computer uploading data to the
Expand Down

0 comments on commit f4d7f87

Please sign in to comment.