-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trsh logic change in run_job func call #722
Conversation
arc/scheduler.py
Outdated
@@ -1012,7 +1012,7 @@ def _run_a_job(self, | |||
max_job_time=job.max_job_time, | |||
rotor_index=job.rotor_index, | |||
reactions=job.reactions, | |||
trsh=list(job.args['trsh'].values()) if 'trsh' in job.args else '', | |||
trsh=job.args['trsh'] if 'trsh' in job.args and 'trsh' else [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at and 'trsh'
, looks like it'll always evaluate to True
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed it.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #722 +/- ##
=======================================
Coverage 73.71% 73.71%
=======================================
Files 99 99
Lines 26992 26992
Branches 5620 5620
=======================================
+ Hits 19896 19898 +2
+ Misses 5698 5697 -1
+ Partials 1398 1397 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
this is to ensure that the dictionary in args['trsh'] is passed through the function correctly and to stop ['', '', 'nosymm'] syntax error . .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this is to ensure that the dictionary in args['trsh'] is passed through the function correctly and to stop ['', '', 'nosymm'] syntax error