Skip to content

Commit

Permalink
Update the jobs flag sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDelConte committed Jan 17, 2025
1 parent e2ad577 commit 2b3f400
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drmaatic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def format_value(value, param_type):
def format_job_params(passed_params: List[JobParameter]):
formatted_params = []
# Filter the parameters that are not supposed to go to the script,1 flag to_script = False
passed_params = list(
sorted(passed_params, key=lambda param: param.param.flag if param.param.flag else 0, reverse=False))
passed_params = list(sorted(passed_params, key=lambda param: param.param.flag, reverse=False))
for passed_param in passed_params:
if passed_param.param.flag:
# If the param is of type Bool and is positive, no value has to be passed, only the flag
Expand Down

0 comments on commit 2b3f400

Please sign in to comment.