Skip to content

Comments

deprecate: Deprecate Profile class and SimpleRecipe class#155

Merged
sbillinge merged 8 commits intodiffpy:v3.3.0from
cadenmyers13:profile-dep
Feb 20, 2026
Merged

deprecate: Deprecate Profile class and SimpleRecipe class#155
sbillinge merged 8 commits intodiffpy:v3.3.0from
cadenmyers13:profile-dep

Conversation

@cadenmyers13
Copy link
Contributor

No description provided.



def rebinArray(A, xold, xnew):
def rebin_array(A, xold, xnew):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed this name. It is only used in the file and this doesn't seem like something people are accessing. Maybe this should be a private function? seems more like a helper to me

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. I Agree

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.55%. Comparing base (12f4ea8) to head (7443c6a).
⚠️ Report is 10 commits behind head on v3.3.0.

Additional details and impacted files
@@            Coverage Diff             @@
##           v3.3.0     #155      +/-   ##
==========================================
+ Coverage   69.97%   70.55%   +0.58%     
==========================================
  Files          25       25              
  Lines        3527     3597      +70     
==========================================
+ Hits         2468     2538      +70     
  Misses       1059     1059              
Files with missing lines Coverage Δ
tests/conftest.py 91.48% <100.00%> (ø)
tests/test_contribution.py 99.57% <100.00%> (ø)
tests/test_fitrecipe.py 99.79% <100.00%> (+0.01%) ⬆️
tests/test_profile.py 99.48% <100.00%> (+0.15%) ⬆️
tests/test_profilegenerator.py 97.95% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

self.assertTrue(array_equal(x, prof.x))
self.assertTrue(array_equal(y, prof.y))
self.assertTrue(array_equal(dy, prof.dy))
return
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I duplicated part of this ^ function so only one deprecation warning is emitted.

@cadenmyers13
Copy link
Contributor Author

@sbillinge ready for review. see a couple of my inline comments

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

Looks good.

@sbillinge sbillinge merged commit 545ab13 into diffpy:v3.3.0 Feb 20, 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