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-41043: internal package reorganization #892

Merged
merged 13 commits into from Oct 9, 2023
Merged

DM-41043: internal package reorganization #892

merged 13 commits into from Oct 9, 2023

Conversation

TallJimbo
Copy link
Member

@TallJimbo TallJimbo commented Oct 5, 2023

Checklist

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

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5a605f6) 87.70% compared to head (7768e59) 87.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #892      +/-   ##
==========================================
+ Coverage   87.70%   87.74%   +0.04%     
==========================================
  Files         272      271       -1     
  Lines       36190    36358     +168     
  Branches     7572     7572              
==========================================
+ Hits        31739    31903     +164     
- Misses       3270     3273       +3     
- Partials     1181     1182       +1     
Files Coverage Δ
python/lsst/daf/butler/__init__.py 100.00% <100.00%> (ø)
python/lsst/daf/butler/_butler.py 79.12% <100.00%> (+0.25%) ⬆️
python/lsst/daf/butler/_butler_config.py 98.57% <100.00%> (ø)
python/lsst/daf/butler/_butler_repo_index.py 97.26% <100.00%> (ø)
python/lsst/daf/butler/_column_categorization.py 88.57% <ø> (ø)
python/lsst/daf/butler/_column_tags.py 94.28% <ø> (ø)
python/lsst/daf/butler/_column_type_info.py 73.77% <100.00%> (ø)
python/lsst/daf/butler/_config.py 91.95% <ø> (ø)
python/lsst/daf/butler/_config_support.py 67.76% <ø> (ø)
python/lsst/daf/butler/_dataset_association.py 89.47% <100.00%> (ø)
... and 144 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

I'm fine with this reorg. The doc changes look good to me. The patches to other packages show that it's only really edge cases that needed to be fixed.

The base Datastore class is lifted to
`lsst.daf.butler.datastore.Datastore`, but other modules are expected
to be imported directly from their lower-level modules.
This required a small change to class variables in StorageClass; it
turns out the previous approach was (weakly) vulnerable to the order
in which modules appear in __init__.py since it called
get_full_type_name in import-time logic.
Symbols weren't being lifted, so this shouldn't get a leading
underscore.
These are part of the Formatter API, and as much as we'd like it to be
that's not just a FileDatastore implementation detail right now.
This also fixes some long-standing warnings and the fact that the old
doc index didn't really reflect the old package structure.
@TallJimbo TallJimbo merged commit 15f4466 into main Oct 9, 2023
15 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-41043 branch October 9, 2023 19: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.

None yet

2 participants