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-36517: Add support for ChainedDatastore.export() #743

Merged
merged 8 commits into from Oct 26, 2022
Merged

Conversation

timj
Copy link
Member

@timj timj commented Oct 11, 2022

Checklist

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

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 84.88% // Head: 84.94% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (fdb33ad) compared to base (da0783b).
Patch coverage: 96.96% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #743      +/-   ##
==========================================
+ Coverage   84.88%   84.94%   +0.06%     
==========================================
  Files         257      257              
  Lines       33342    33431      +89     
  Branches     5667     5692      +25     
==========================================
+ Hits        28302    28398      +96     
+ Misses       3807     3804       -3     
+ Partials     1233     1229       -4     
Impacted Files Coverage Δ
...hon/lsst/daf/butler/datastores/chainedDatastore.py 88.01% <92.10%> (+0.47%) ⬆️
python/lsst/daf/butler/core/datastore.py 79.67% <100.00%> (+0.57%) ⬆️
python/lsst/daf/butler/core/timespan.py 81.62% <100.00%> (ø)
python/lsst/daf/butler/datastores/fileDatastore.py 81.35% <100.00%> (+1.07%) ⬆️
tests/test_butler.py 97.69% <100.00%> (+0.01%) ⬆️
tests/test_datastore.py 99.31% <100.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, few minor questions.

@timj timj force-pushed the tickets/DM-36517 branch 2 times, most recently from f50644a to cd3f212 Compare October 25, 2022 23:44
This method can run the knows() method in bulk.
Adjust the test inheritance such that the export tests are
now run for the ChainedDatastore
This required we change the exception type in some failure
modes to match that raise by butler.export.
Also include test with a missing dataset.
This requires that auto be converted to None if no directory
is given. FileDatastore and ChainedDatastore already had "auto"
as a default.
We had not noticed it was wrong until the pyyaml types package
added an annotation for loader.construct_mapping()
@timj timj merged commit e155f61 into main Oct 26, 2022
@timj timj deleted the tickets/DM-36517 branch October 26, 2022 19:50
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