Skip to content
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

DM-31924: deprecate aspects of the data ID packing system #820

Merged
merged 2 commits into from Apr 27, 2023

Conversation

TallJimbo
Copy link
Member

@TallJimbo TallJimbo commented Apr 14, 2023

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch coverage: 91.11% and project coverage change: -0.10 ⚠️

Comparison is base (8698bcb) 87.77% compared to head (2e0fd7a) 87.68%.

❗ Current head 2e0fd7a differs from pull request most recent head d843b29. Consider uploading reports for the commit d843b29 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #820      +/-   ##
==========================================
- Coverage   87.77%   87.68%   -0.10%     
==========================================
  Files         268      268              
  Lines       35032    35066      +34     
  Branches     7375     7383       +8     
==========================================
- Hits        30748    30746       -2     
- Misses       3125     3162      +37     
+ Partials     1159     1158       -1     
Impacted Files Coverage Δ
python/lsst/daf/butler/instrument.py 0.00% <0.00%> (-88.00%) ⬇️
python/lsst/daf/butler/registry/tests/_registry.py 98.24% <ø> (-0.01%) ⬇️
python/lsst/daf/butler/core/dimensions/_packer.py 80.59% <80.00%> (-14.32%) ⬇️
python/lsst/daf/butler/core/dimensions/_config.py 84.81% <100.00%> (+0.59%) ⬆️
...hon/lsst/daf/butler/core/dimensions/_coordinate.py 89.27% <100.00%> (+0.06%) ⬆️
...ython/lsst/daf/butler/core/dimensions/_universe.py 88.46% <100.00%> (-0.50%) ⬇️
tests/test_dimensions.py 97.05% <100.00%> (+0.16%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TallJimbo TallJimbo force-pushed the tickets/DM-31924 branch 4 times, most recently from ae6d33a to 5fb0611 Compare April 18, 2023 17:22
@TallJimbo
Copy link
Member Author

Codecov is sad only because it can't tell that the code that lost coverage is now deprecated (and I don't think it's worth keeping the tests alive until the removal happens).

Copy link
Contributor

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

Is the "remove" ticket already filed? I've found it very handy to mark the methods that need to be removed post-deprecation with # DM-XXXXX: remove, especially if their deprecation is implicit, like some of these appear to be.

@TallJimbo
Copy link
Member Author

TallJimbo commented Apr 24, 2023

Is the "remove" ticket already filed?

It is (DM-38687), but it hadn't been when I made most of these changes. I've gone back and added references to it.

@TallJimbo TallJimbo force-pushed the tickets/DM-31924 branch 2 times, most recently from 31bc19e to bb53012 Compare April 24, 2023 20:44
dimensions=subconfig["dimensions"],
)
with warnings.catch_warnings():
# Don't warn when deprecated code calls other deprecated code.
Copy link
Contributor

@parejkoj parejkoj Apr 25, 2023

Choose a reason for hiding this comment

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

Does this method (_extractPackerVisitors) need a # TODO: Remove this class on DM-38687. comment?

This also moves test coverage for what will remain (here) of the
dimension packer system to test_dimensions.py, relying on a new
simpler concrete test packer.  All of the production concrete packers
will be defined in downstream packages going forward, and the
machinery for constructing them from a DimensionUniverse is being
deprecated, so all that remains to be tested is the DimensionPacker
ABC itself.
Most other interfaces allow pure kwargs as data IDs, and we can also
supply the "fixed" dimension values as a default.
@TallJimbo TallJimbo merged commit f51e8b0 into main Apr 27, 2023
12 of 13 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-31924 branch April 27, 2023 01:56
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.

None yet

2 participants