Skip to content

Commit 8ae9290

Browse files
committed
Fix: fix linter warning
1 parent 67257ed commit 8ae9290

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

PWGCF/Femto/Macros/cutculator_gui.py

100644100755
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,9 @@ def _axis_key_labels(axes):
934934
counts: Dict[str, int] = {}
935935
for sel_name, _kind in axes:
936936
counts[sel_name] = counts.get(sel_name, 0) + 1
937-
return {(sel_name, kind): (sel_name if counts[sel_name] == 1 else f"{sel_name} [{kind}]") for sel_name, kind in axes}
937+
return {
938+
(sel_name, kind): (sel_name if counts[sel_name] == 1 else f"{sel_name} [{kind}]") for sel_name, kind in axes
939+
}
938940

939941
def _always_applied_bins(self, axes):
940942
"""The BitPosition==X minimal floors that are in effect for every variation.
@@ -1025,9 +1027,10 @@ def _export_variations(self):
10251027
return
10261028

10271029
n = self._variation_count(axes)
1028-
if n > VARIATION_WARN_LIMIT:
1029-
if not messagebox.askyesno("Many variations", f"This will enumerate {n} variations. Continue?"):
1030-
return
1030+
if n > VARIATION_WARN_LIMIT and not messagebox.askyesno(
1031+
"Many variations", f"This will enumerate {n} variations. Continue?"
1032+
):
1033+
return
10311034

10321035
variations = self._compute_variations()
10331036

0 commit comments

Comments
 (0)