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

Special chars creating submit issues #723

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Special chars creating submit issues #723

merged 1 commit into from
Dec 14, 2023

Conversation

calvinp0
Copy link
Member

issue was stemming from local.py, the var called cmd
cmd = f'cd {path}; {submit_cmd} {submit_filename}'

here we defined path but never put it in quotations so special chars like [ and ] would be misinterpreted by the shell

so in python would change to the direct of /rxn_120_CCN/ instead of /rxn_120_[CH2]CN/ (assuming out intention was to go to /rxn_120_[CH2]CN/)

so just needed to change it to

cmd = f'cd "{path}"; {submit_cmd} {submit_filename}'

 issue was stemming from local.py, the var called cmd
cmd = f'cd {path}; {submit_cmd} {submit_filename}'

here we defined path but never put it in quotations so special chars like `[` and `]` would be misinterpreted by the shell

so in python would change to the direct of /rxn_120_CCN/ instead of /rxn_120_[CH2]CN/ (assuming out intention was to go to  /rxn_120_[CH2]CN/)

so just needed to change it to

cmd = f'cd "{path}"; {submit_cmd} {submit_filename}'
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (431854b) 73.71% compared to head (9a88498) 73.71%.

Files Patch % Lines
arc/job/local.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #723   +/-   ##
=======================================
  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% <50.00%> (+<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.

Copy link
Member

@JintaoWu98 JintaoWu98 left a comment

Choose a reason for hiding this comment

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

LGTM!

@calvinp0 calvinp0 merged commit 70fe03c into main Dec 14, 2023
11 of 12 checks passed
@calvinp0 calvinp0 deleted the submit_fix branch December 14, 2023 14:18
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