Skip to content

Allow None as parameter value in morphpy#297

Merged
sbillinge merged 2 commits intodiffpy:mainfrom
Sparks29032:allow_none
Feb 28, 2026
Merged

Allow None as parameter value in morphpy#297
sbillinge merged 2 commits intodiffpy:mainfrom
Sparks29032:allow_none

Conversation

@Sparks29032
Copy link
Collaborator

When None is set for stretch,scale,smear, it will ignore these parameters. However, setting None for any other parameter would give an error. We now handle letting any parameter being None and ignore it properly in morphpy.

@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.93%. Comparing base (fc45fa1) to head (0bcda10).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #297   +/-   ##
=======================================
  Coverage   99.93%   99.93%           
=======================================
  Files          24       24           
  Lines        1480     1487    +7     
=======================================
+ Hits         1479     1486    +7     
  Misses          1        1           
Files with missing lines Coverage Δ
tests/test_morphpy.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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

@sbillinge sbillinge merged commit 268435c into diffpy:main Feb 28, 2026
7 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