Skip to content

Commit

Permalink
Merge pull request #10 from XENONnT/mv_files
Browse files Browse the repository at this point in the history
Move submission_script.py also from binference to here
  • Loading branch information
hammannr authored Jun 15, 2023
2 parents 99e21d9 + fd9e1be commit 308a62b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions alea/scripts/submission_script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys
import alea.submission

if __name__ == "__main__":
alea.submission.submit_jobs(sys.argv[1:])
2 changes: 1 addition & 1 deletion alea/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def flatten_function_args(combination, function_args):
raise Exception(
"You are overwriting function_args without knowing what is going on!"
)
elif key == "signal_rate_multiplier" and combination["signal_expectation"] is not None:
elif key == "signal_rate_multiplier" and combination.get("signal_expectation", None) is not None:
continue
else:
function_args[key] = value
Expand Down

0 comments on commit 308a62b

Please sign in to comment.