-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix time overlap handling in concatenation #2247
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2247 +/- ##
==========================================
- Coverage 93.47% 93.47% -0.01%
==========================================
Files 238 238
Lines 12917 12932 +15
==========================================
+ Hits 12074 12088 +14
- Misses 843 844 +1
|
The coverage fails only due to one line, the special case when the passed cube list is shorter than two (i.e. has zero or one entries), in which case the function returns the input cube list unmodified. This is not covered by tests because the test works at the level of the There are two possible solutions: Add a test for What do the reviewers think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
well you can mock the concatenate func with that single cube, but nay bother, if Bouwe is OK with that am too 👍 |
plus 97.87% is pretty much 100% in my books 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice refactoring @zklaus - many thanks! I added M2.10 to it since I reckon it's good to have it in the bugfix bit of the release - feel free to remove it if you think we should wait 🍺
Description
Closes #2248
Link to documentation:
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: