Skip to content

Commit

Permalink
bugfix: Replaced inappropriate is comparison with == (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
fazledyn authored Oct 2, 2024
1 parent 70581ea commit 1b3cf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def gui(viewer, format, run_dir, stage):
extra_config = {}
if stage is not None:
matches = glob.glob(os.path.join(run_dir, "results", stage, f"*.{format}"))
if matches is []:
if matches == []:
err(f"No {format} found for stage {stage}")
else:
extra_config[f"CURRENT_{format.upper()}"] = matches[0]
Expand Down

0 comments on commit 1b3cf10

Please sign in to comment.