Skip to content

Don't gen xyz when checking if a species is monoatomic#785

Merged
alongd merged 2 commits intomainfrom
mono_recursion
Aug 25, 2025
Merged

Don't gen xyz when checking if a species is monoatomic#785
alongd merged 2 commits intomainfrom
mono_recursion

Conversation

@alongd
Copy link
Copy Markdown
Member

@alongd alongd commented Apr 11, 2025

To avoid inf. recursions (is_monoatomic → get_xyz → get_cheap_conformer → is_monoatomic), don't generate a cheap xyz when checking if a species is monoatomic

@alongd alongd requested a review from kfir4444 April 11, 2025 04:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.49%. Comparing base (155f5af) to head (0cac468).
⚠️ Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
arc/species/species.py 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #785      +/-   ##
==========================================
- Coverage   74.50%   74.49%   -0.01%     
==========================================
  Files         103      103              
  Lines       28114    28117       +3     
  Branches     5827     5828       +1     
==========================================
+ Hits        20946    20947       +1     
- Misses       5678     5679       +1     
- Partials     1490     1491       +1     
Flag Coverage Δ
unittests 74.49% <66.66%> (-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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

to avoid inf. recursions (is_monoatomic → get_xyz → get_cheap_conformer → is_monoatomic), don't generate a cheap xyz when checking if a species is monoatomic
OfirSimhi1612
OfirSimhi1612 previously approved these changes Aug 25, 2025
Copy link
Copy Markdown
Contributor

@OfirSimhi1612 OfirSimhi1612 left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment thread arc/job/trsh.py Outdated
cycle_issue = False
neg_eigenvalues = False
for j in range(i,len(reverse_lines)):
for j in range(i, len(reverse_lines)):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: we can use len_reversed_lines

@alongd alongd merged commit 827a08e into main Aug 25, 2025
6 checks passed
@alongd alongd deleted the mono_recursion branch August 25, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants