Skip to content

Replace internal use of deprecated function - #201

Open
hakonanes wants to merge 2 commits into
diffpy:mainfrom
hakonanes:silence-deprecated-warning
Open

Replace internal use of deprecated function#201
hakonanes wants to merge 2 commits into
diffpy:mainfrom
hakonanes:silence-deprecated-warning

Conversation

@hakonanes

Copy link
Copy Markdown
Contributor

Solves #200.

Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
@github-actions

Copy link
Copy Markdown

Warning! No news item is found for this PR. If this is a user-facing
change/feature/fix,
please add a news item by copying the format from news/TEMPLATE.rst.
For best practices, please visit
https://scikit-package.github.io/scikit-package/snippets/news-file-format.html#how-do-i-create-a-news-file.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.21%. Comparing base (65d2729) to head (ea54de1).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #201   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files          15       15           
  Lines        2554     2554           
=======================================
  Hits         2534     2534           
  Misses         20       20           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbillinge

Copy link
Copy Markdown
Contributor

Thanks for catching that. Are there tests for that function that need to be updated?

@hakonanes

Copy link
Copy Markdown
Contributor Author

I noticed the use of the deprecated function in a couple of tests. I assumed those were still there to test that the deprecation warning was properly emitted.

If you want I can update the tests.

@sbillinge

Copy link
Copy Markdown
Contributor

Ok. Got it. I can merge this but we have to merge another OR that fixes the pre commit. Thanks for the PR! This PR doesn't require a news but please read about how we use that to maintain the changelog. Search for news on the scikit-package documentation if you are interested

@hakonanes

Copy link
Copy Markdown
Contributor Author

Sounds good, thanks!

@sbillinge

Copy link
Copy Markdown
Contributor

Thanks so much. We really appreciate contributions from the community!

@hakonanes

Copy link
Copy Markdown
Contributor Author

Hi @sbillinge, any chance of making a release with this fix in?

@sbillinge

Copy link
Copy Markdown
Contributor

yes, sure. We are waiting for it to pass CI so we can merge it. I think you need to merge main to get the pre-commit to pass.

@sbillinge

Copy link
Copy Markdown
Contributor

@hakonanes are you able to merge main into your branch so we can pick up the pre-commit update and get CI passing?

@sbillinge

Copy link
Copy Markdown
Contributor

Thanks @hakonanes. It looks as if this fix was part of the other cleaning that we did on the main branch so this PR is not showing any changes in the diff. We really appreciate your PR though and we hope you are able to contribute again in the future. It means a lot to us. when we get PRs from the community.

We pushed out some new releases in preparation for our presentation at the software fayre at IUCr so it is possible that if you simply conda update diffpy.structure in your env (or reinstall it) that you will get the updated version, but if you need us to push out these changes in a minor fix bump for some reason please reach back and we can do that.

Thanks again!

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