10000 Add a flag to deprecate config properties by ljgray · Pull Request #295 · radiocosmology/caput · GitHub
[go: up one dir, main page]

Skip to content

Add a flag to deprecate config properties #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2025
Merged

Conversation

ljgray
Copy link
Contributor
@ljgray ljgray commented Apr 7, 2025

This will be helpful when modifying old tasks.

I've also added a feature to the pipeline base task to add a debug log entry if a task returns the same object as one of the inputs, which suggests that it could have been modified in place. This is mostly for my own use if I'm trying to review weird behaviour in a pipeline config, but I think it's helpful.

There's something broken in the tests from a very recent release of numcodecs (https://numcodecs.readthedocs.io/en/stable/release.html#removals).

There's already an open PR in zarr to address it, so I'm just going to leave this PR until that gets merged, because I don't want to have to pin numcodecs ourselves. Update: this still wasn't working properly with python 3.13, so I've just pinned numcodecs. I think we'll have to keep it pinned until we upgrade to zarr 3 anyway.

@ljgray ljgray force-pushed the ljg/deprecated-property branch from 38ac427 to a94c0a4 Compare April 7, 2025 21:50
@ljgray ljgray changed the title Add a flag to easily deprecated config properties Add a flag to easily deprecate config properties Apr 7, 2025
@ljgray ljgray force-pushed the ljg/deprecated-property branch 2 times, most recently from e787d76 to a94c0a4 Compare April 7, 2025 22:37
@ljgray
Copy link
Contributor Author
ljgray commented Apr 7, 2025

@ljgray ljgray changed the title Add a flag to easily deprecate config properties Add a flag to deprecate config properties Apr 7, 2025
@ljgray ljgray requested a review from ketiltrout April 7, 2025 22:45
@ljgray ljgray force-pushed the ljg/deprecated-property branch from 4ee37f5 to 9a54507 Compare April 8, 2025 19:01
@ljgray ljgray merged commit a6b3df7 into master Apr 8, 2025
7 checks passed
@ljgray ljgray deleted the ljg/deprecated-property branch April 8, 2025 21:06
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
0