Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 32f24b9 commit 50d6d21
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions viewer/feminos-viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,9 @@ def __init__(self, _root):
)
self.readout_menu.pack(side=tk.LEFT, padx=20, pady=5)
self.selected_readout.set("IAXO-D1")
assert (
self.selected_readout.get() in readouts
), f"Invalid readout {self.selected_readout.get()}. Available readouts are {readouts.keys()}"
assert self.selected_readout.get() in readouts, (
f"Invalid readout {self.selected_readout.get()}. Available readouts are {readouts.keys()}"
)
self.readout_signal_ids = set(readouts[self.readout]["mapping"].keys())

self.auto_update_variable = tk.BooleanVar()
Expand Down Expand Up @@ -2315,9 +2315,9 @@ def plot_event_time(self):
baseline_sigma = np.std(values[:baseline_factor])

signal_type = readouts[self.readout]["mapping"][int(signal_id)][0]
assert (
len(values) == 512
), f"Signal {signal_id} has {len(values)} bins, not 512"
assert len(values) == 512, (
f"Signal {signal_id} has {len(values)} bins, not 512"
)
for i in range(len(values)):
value = values[i]
if not value > baseline_level + 2.0 * baseline_sigma:
Expand Down

0 comments on commit 50d6d21

Please sign in to comment.