-
Notifications
You must be signed in to change notification settings - Fork 24
Added a Linear TS search job adapter
#695
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
Open
alongd
wants to merge
35
commits into
main
Choose a base branch
from
linear_ts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
dfc5623
minor: install_all.sh
alongd f5dbaa4
Minor: Style mod in mapping driver
alongd 2505590
Organize teardown in functional and common tests
alongd 90bcb98
Added Claude to .gitignore
alongd ea8d937
Added a debug message if fragment mapping fails
alongd 929be1c
Modifications to CI
alongd c9583b5
Added a nightly CI for slower tests
alongd 6a347e4
Mark slow unit tests in .toml
alongd 8598a1e
Added Reaction.is_unimolecular()
alongd dacef4e
Tests: Reaction.is_unimolecular()
alongd 952a17c
Added an atom_order arg to xyz_to_zmat()
alongd e38941c
Tests: xyz_to_zmat()
alongd 1f512e5
Added 'linear' to ts_adapters_by_rmg_family
alongd 8833d03
Added check_ordered_zmats()
alongd c50b03f
Tests: check_ordered_zmats()
alongd 3c9f0d1
Added linear to JobEnum
alongd 598541a
Added the Linear TS search job adapter and related utils
alongd f0f0fe4
Tests: Linear TS Job Adapter and utils
alongd 8e27052
Added order_xyz_by_atom_map to converter
alongd 810d671
Tests: converter order_xyz_by_atom_map()
alongd e01dbb7
Added update_zmat_by_xyz() to zmat
alongd b86686f
Tests: zmat update_zmat_by_xyz()
alongd c316ef2
Use the round_to arg in common get_angle_in_180_range()
alongd 7d7fb8b
Tests: use round_to in get_angle_in_180_range()
alongd ff045fb
Added anchors to xyz_to_zmat()
alongd 677a674
Tests: zmat anchors
alongd 1802392
Added converter order_mol_by_atom_map()
alongd 444e320
Added zmat find_smart_anchors()
alongd aa4f95c
Updated the ts_adapters_by_rmg_family dict
alongd 812c8b2
Tests: call self.job_3.execute() in OB tests
alongd 91c82ca
Preserve radical sites when perceiving mol from xyz with an existing mol
alongd 0a65d5a
Added an iPY notebook to showcase the linear adapter
alongd b8981e9
Docs: Added descriptions of TS search methods implemented in ARC
alongd 0aa7793
Added split_entries() to family
alongd 64296c2
Tests: family.py
alongd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| name: Nightly (Slow Tests) | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 6 * * *' | ||
|
|
||
| jobs: | ||
| nightly-slow-tests: | ||
| name: Nightly Unit Tests (including slow) | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash -el {0} | ||
|
|
||
| steps: | ||
| - name: Checkout ARC | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: main | ||
| path: ARC | ||
|
|
||
| - name: Clean Ubuntu Image | ||
| uses: jlumbroso/free-disk-space@v1.3.1 | ||
| with: | ||
| tool-cache: true | ||
| android: true | ||
| dotnet: true | ||
| haskell: true | ||
| large-packages: true | ||
| swap-storage: false | ||
|
|
||
| - name: Set up micromamba (arc_env) | ||
| uses: mamba-org/setup-micromamba@v3 | ||
| with: | ||
| environment-name: arc_env | ||
| environment-file: ARC/environment.yml | ||
| cache-environment: false | ||
| cache-downloads: true | ||
| generate-run-shell: true | ||
|
|
||
| - name: Install conda in micromamba base | ||
| shell: micromamba-shell {0} | ||
| run: | | ||
| echo "::group::Install conda in micromamba base" | ||
| micromamba install -n base -c conda-forge conda | ||
| echo "::endgroup::" | ||
|
|
||
| - name: Export ARC paths | ||
| shell: micromamba-shell {0} | ||
| working-directory: ARC | ||
| run: | | ||
| echo "PATH=$PATH:$PWD" >> "$GITHUB_ENV" | ||
| echo "PYTHONPATH=$PYTHONPATH:$PWD" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Install Julia 1.10 | ||
| shell: micromamba-shell {0} | ||
| run: | | ||
| echo "::group::Install juliaup + Julia 1.10" | ||
| curl -fsSL https://install.julialang.org | sh -s -- -y | ||
| export PATH="$HOME/.juliaup/bin:$PATH" | ||
| juliaup add 1.10 | ||
| juliaup default 1.10 | ||
| echo "PATH=$HOME/.juliaup/bin:$PATH" >> "$GITHUB_ENV" | ||
| echo "::endgroup::" | ||
| julia --version | ||
|
|
||
| - name: Install all extras - CI | ||
| shell: micromamba-shell {0} | ||
| working-directory: ARC | ||
| env: | ||
| MAMBA_ALWAYS_YES: "true" | ||
| CONDA_ALWAYS_YES: "true" | ||
| run: make install-ci | ||
|
|
||
| - name: Set TS-GCN and AutoTST in PYTHONPATH | ||
| shell: micromamba-shell {0} | ||
| working-directory: ARC | ||
| run: | | ||
| echo "PYTHONPATH=$(realpath ../TS-GCN):$(realpath ../AutoTST):$PYTHONPATH" >> $GITHUB_ENV | ||
|
|
||
| - name: Compile ARC molecule | ||
| shell: micromamba-shell {0} | ||
| working-directory: ARC | ||
| env: | ||
| ARC_COVERAGE: 1 | ||
| run: | | ||
| make compile | ||
|
|
||
| - name: Run Unit Tests (including slow) | ||
| shell: micromamba-shell {0} | ||
| working-directory: ARC | ||
| env: | ||
| ARC_COVERAGE: 1 | ||
| CYTHON_TRACE: 1 | ||
| run: | | ||
| echo "Running Unit Tests (including slow)..." | ||
| export PYTHONPATH="${{ github.workspace }}/AutoTST:${{ github.workspace }}/KinBot:$PYTHONPATH" | ||
| pytest arc/ -ra -vv -n 4 --dist worksteal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,10 @@ timer.dat | |
| # .vscode | ||
| .vscode | ||
|
|
||
| # Claude | ||
| CLAUDE.md | ||
| .claude/* | ||
|
|
||
| # .trunk folder | ||
| .trunk | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Empty except Note
Copilot Autofix
AI 5 days ago
Use an API that encodes the intended “best-effort cleanup” behavior without an empty
except.The best fix is to replace the
isfile + try/except os.removesequence withpathlib.Path.unlink(missing_ok=True).Why this is best here:
exceptentirely.Changes needed in
arc/common_test.py:from pathlib import Pathnear existing imports._clean_globalized_restart_artifact, replace theif os.path.isfile(...): try: os.remove... except OSError: passblock with:globalized_restart_path = Path(... ) / ...globalized_restart_path.unlink(missing_ok=True)No other files or behavior changes are required.