Skip to content

docs: deprecate convert - #721

Merged
jokasimr merged 5 commits into
mainfrom
deprecate-convert
Aug 20, 2026
Merged

docs: deprecate convert#721
jokasimr merged 5 commits into
mainfrom
deprecate-convert

Conversation

@jokasimr

@jokasimr jokasimr commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Fixes scipp/ess#9

@jokasimr
jokasimr requested a review from jl-wynen August 7, 2026 10:20

@jl-wynen jl-wynen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works for me. @SimonHeybrock do you have an opinion? I seem to remember you being in favour of keeping convert in the past.

Comment thread pyproject.toml Outdated
filterwarnings = [
"error",
# Legacy conversion tests intentionally exercise this deprecated API.
'ignore:scippneutron.convert is deprecated:scipp.VisibleDeprecationWarning',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you suppress this in convert_test.py instead of globally? That way, we check that we don't use convert elsewhere on accident.

@jokasimr
jokasimr enabled auto-merge (squash) August 19, 2026 08:20
@SimonHeybrock

Copy link
Copy Markdown
Member

I suppose the question is: Does it cost us anything to keep it? If we deprecate it, should we still keep it around indefinitely (like some projects do)?

@jokasimr

Copy link
Copy Markdown
Contributor Author

I suppose the question is: Does it cost us anything to keep it? If we deprecate it, should we still keep it around indefinitely (like some projects do)?

I'd say it costs very little. In principle the codebase will be more difficult to navigate and understand if we have tons of deprecated functionality around, but we're not anywhere near that.

Eventually I think we should remove this entirely. But imo we can easily wait 6 months or more to do so.

@jl-wynen jl-wynen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am fine with merging this.

If we deprecate convert, we should ultimately remove it. Otherwise we teach our users to ignore deprecation warnings.

@jokasimr
jokasimr merged commit f42c072 into main Aug 20, 2026
9 of 10 checks passed
@jokasimr
jokasimr deleted the deprecate-convert branch August 20, 2026 07:00
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.

Wrappers for coordinate transformations

3 participants