Skip to content

Commit

Permalink
name of the result file for the single analysis tab is constructed an…
Browse files Browse the repository at this point in the history
…d returned correctly. (#414)
  • Loading branch information
max-mauermann committed Aug 19, 2024
1 parent 41d0047 commit 8b4c4f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def runAnalysis(
if input_dir:
cfg.OUTPUT_PATH = output_path if output_path else input_dir
else:
cfg.OUTPUT_PATH = output_path if output_path else input_path.split(".", 1)[0] + ".csv"
cfg.OUTPUT_PATH = output_path if output_path else os.path.dirname(input_path)

# Parse input files
if input_dir:
Expand Down Expand Up @@ -389,7 +389,7 @@ def runAnalysis(
analyze.combineResults([i[1] for i in result_list])
print("done!", flush=True)

return [[os.path.relpath(r[0], input_dir), bool(r[1])] for r in result_list] if input_dir else cfg.OUTPUT_PATH
return [[os.path.relpath(r[0], input_dir), bool(r[1])] for r in result_list] if input_dir else result_list[0][1]["csv"]


_CUSTOM_SPECIES = loc.localize("species-list-radio-option-custom-list")
Expand Down

0 comments on commit 8b4c4f5

Please sign in to comment.