Skip to content

fix: call add_atoms in ObjCrystMoleculeParSet.wrap_stretch_mode_parameters - #12

Merged
sbillinge merged 1 commit into
diffpy:mainfrom
cadenmyers13:fix-stretch-mode-atoms
Oct 28, 2026
Merged

sbillinge merged 1 commit into
diffpy:mainfrom
cadenmyers13:fix-stretch-mode-atoms

Conversation

@cadenmyers13

Copy link
Copy Markdown
Contributor

Looks like claude found a bug and wrote the test for an old unwritten test

It called StretchModeParameter.AddAtoms, which doesn't exist, so any molecule with stretch modes raised AttributeError. Replace the empty test_implicit_stretch_modes placeholder with a test that wraps the modes of a three-atom chain.

…eters

It called StretchModeParameter.AddAtoms, which doesn't exist, so any
molecule with stretch modes raised AttributeError. Replace the empty
test_implicit_stretch_modes placeholder with a test that wraps the modes
of a three-atom chain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cadenmyers13

Copy link
Copy Markdown
Contributor Author

@sbillinge ready for review

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.45%. Comparing base (d75344f) to head (0615cca).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   94.57%   95.45%   +0.88%     
==========================================
  Files           5        5              
  Lines         645      638       -7     
==========================================
- Hits          610      609       -1     
+ Misses         35       29       -6     
Files with missing lines Coverage Δ
tests/test_objcrystparset.py 94.11% <100.00%> (+1.26%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbillinge
sbillinge merged commit a83edf3 into diffpy:main Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants