Skip to content
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

Merged
merged 1 commit into from
Dec 13, 2023
Merged

trsh logic change in run_job func call #722

merged 1 commit into from
Dec 13, 2023

Conversation

calvinp0
Copy link
Member

this is to ensure that the dictionary in args['trsh'] is passed through the function correctly and to stop ['', '', 'nosymm'] syntax error

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 [],
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed it.

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b52159) 73.71% compared to head (8bebf4d) 73.71%.

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     
Flag Coverage Δ
unittests 73.71% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

this is to ensure that the dictionary in args['trsh'] is passed through the function correctly and to stop ['', '', 'nosymm'] syntax error

.

.
Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alongd alongd merged commit 431854b into main Dec 13, 2023
7 checks passed
@alongd alongd deleted the trsh_fix branch December 13, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants