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

Only process #653

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Only process #653

wants to merge 5 commits into from

Conversation

alongd
Copy link
Member

@alongd alongd commented May 10, 2023

We'd like ARC to immediately process thermo/kinetics after all relevant jobs have ended.
This PR takes us one small step closer to this goal, adding an only_process arg to the input (restart) file, to request ARC to only process what it can and not spawn new jobs in this restart mode when only_process is True.

Also, save the species adjlist if given. Some species are not read correctly in RMG (especially hyperventilate N and S containing species), which results in excluding them from the final thermo library. Here we use the user-provided adjlist (which is the best way to define these species) if given.

arc/plotter.py Outdated
plt.savefig(image_path, bbox_inches='tight')
try:
plt.savefig(image_path, bbox_inches='tight')
except FileNotFoundError:

Check notice

Code scanning / CodeQL

Empty except

'except' clause does nothing but pass and there is no explanatory comment.
This module that contains functional tests for ARC
"""

from encodings import utf_8

Check notice

Code scanning / CodeQL

Unused import

Import of 'utf_8' is not used.
from encodings import utf_8
import os
import shutil
import subprocess

Check notice

Code scanning / CodeQL

Unused import

Import of 'subprocess' is not used.
@@ -36,7 +36,7 @@

from arc.common import get_logger, is_angle_linear, key_by_val, determine_top_group_indices
from arc.exceptions import ZMatError
from arc.species.vectors import calculate_distance, calculate_angle, calculate_dihedral_angle, get_vector_length
from arc.species.vectors import calculate_param, get_vector_length

Check failure

Code scanning / CodeQL

Module-level cyclic import

'calculate_param' may not be defined if module [arc.species.vectors](1) is imported before module [arc.species.zmat](2), as the [definition](3) of calculate_param occurs after the cyclic [import](4) of arc.species.zmat.
@@ -36,7 +36,7 @@

from arc.common import get_logger, is_angle_linear, key_by_val, determine_top_group_indices
from arc.exceptions import ZMatError
from arc.species.vectors import calculate_distance, calculate_angle, calculate_dihedral_angle, get_vector_length
from arc.species.vectors import calculate_param, get_vector_length

Check failure

Code scanning / CodeQL

Module-level cyclic import

'get_vector_length' may not be defined if module [arc.species.vectors](1) is imported before module [arc.species.zmat](2), as the [definition](3) of get_vector_length occurs after the cyclic [import](4) of arc.species.zmat.
"""

import os
import pytest

Check notice

Code scanning / CodeQL

Unused import

Import of 'pytest' is not used.
arc/common.py Fixed Show fixed Hide fixed
@codecov
Copy link

codecov bot commented May 14, 2023

Codecov Report

Merging #653 (c3d61c3) into main (0ad087a) will increase coverage by 0.00%.
The diff coverage is 53.33%.

@@           Coverage Diff           @@
##             main     #653   +/-   ##
=======================================
  Coverage   73.20%   73.21%           
=======================================
  Files          99       99           
  Lines       26359    26370   +11     
  Branches     5513     5516    +3     
=======================================
+ Hits        19297    19306    +9     
- Misses       5693     5694    +1     
- Partials     1369     1370    +1     
Flag Coverage Δ
unittests 73.21% <53.33%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
arc/plotter.py 27.77% <0.00%> (ø)
arc/scheduler.py 20.25% <25.00%> (-0.03%) ⬇️
arc/main.py 48.96% <33.33%> (-0.07%) ⬇️
arc/reaction_test.py 89.47% <100.00%> (+0.03%) ⬆️
arc/species/species.py 71.26% <100.00%> (+0.08%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

1 participant