Skip to content

Make sure deprecation warnings don't reach users that can not act on them#205

Merged
Luthaf merged 1 commit intometatensor:mainfrom
Luthaf:sample-kind-warnings
Apr 22, 2026
Merged

Make sure deprecation warnings don't reach users that can not act on them#205
Luthaf merged 1 commit intometatensor:mainfrom
Luthaf:sample-kind-warnings

Conversation

@Luthaf
Copy link
Copy Markdown
Member

@Luthaf Luthaf commented Apr 21, 2026

Follow up to #168

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

@pfebrer
Copy link
Copy Markdown
Contributor

pfebrer commented Apr 21, 2026

Who will they reach then? 😄

@Luthaf
Copy link
Copy Markdown
Member Author

Luthaf commented Apr 21, 2026

Basically the issue was that end users would get a warnings when loading a model exported with an old version of metatomic. We only want the person exporting the model to get this warning, not someone just trying to run a simulation.

@pfebrer
Copy link
Copy Markdown
Contributor

pfebrer commented Apr 21, 2026

Ok I would say that this would be the normal way in which things work, end users see the warning, then post an issue and the client code updates to deal with it. I guess in this case since we control all the clients it might not be needed though, so ok 👍

@Luthaf Luthaf merged commit c1f79df into metatensor:main Apr 22, 2026
61 of 97 checks passed
@Luthaf Luthaf deleted the sample-kind-warnings branch April 22, 2026 08:49
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