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-43499: Add timespan to Butler.get #982

Merged
merged 10 commits into from Mar 27, 2024
Merged

DM-43499: Add timespan to Butler.get #982

merged 10 commits into from Mar 27, 2024

Conversation

timj
Copy link
Member

@timj timj commented Mar 25, 2024

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes
  • (if changing dimensions.yaml) make a copy of dimensions.yaml in configs/old_dimensions

It's now more obvious that the exposure timespan is within the
calibration validity range and not covering the entire validity
range (which is not something that happens with real data).
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.92%. Comparing base (53810a5) to head (4bb1efa).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #982   +/-   ##
=======================================
  Coverage   88.92%   88.92%           
=======================================
  Files         329      329           
  Lines       42331    42349   +18     
  Branches     8702     8704    +2     
=======================================
+ Hits        37642    37660   +18     
  Misses       3439     3439           
  Partials     1250     1250           

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

This allows a call to get() to pass in an explicit timespan
instead of needing to include a temporal dimension in the dataId.
@timj timj force-pushed the tickets/DM-43499 branch 2 times, most recently from 61dc3ca to 418d057 Compare March 25, 2024 23:40
@timj timj merged commit 6753f97 into main Mar 27, 2024
18 checks passed
@timj timj deleted the tickets/DM-43499 branch March 27, 2024 17:01
@dhirving
Copy link
Contributor

You didn't add the new parameter to the public Butler interface... mypy didn't complain because of the presence of kwargs.

@timj
Copy link
Member Author

timj commented Mar 27, 2024

I put a fix on #979.

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

3 participants