Fix for cf.aggregate failure when a datum or coordinate conversion parameter has an array value#231
Conversation
Codecov Report
@@ Coverage Diff @@
## master #231 +/- ##
==========================================
- Coverage 74.52% 73.77% -0.74%
==========================================
Files 80 85 +5
Lines 18789 19179 +390
==========================================
+ Hits 14001 14148 +147
- Misses 4788 5031 +243
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
This seems to work well though:
- we could do with a corresponding test, ideally bundled with this PR, to isolate the original aggregate failure (as also indicated by the decrease in coverage on the Codecov report);
- given that the solution relies on the recursive function
_totuple, I wonder if there may be a negative effect on performance (it's difficult to check that without a test to expose the case at hand, though) do you have any ideas about the potential hit in speed and/or the specifics and nicheness of the case that might influence how consequential it could be to users?
|
Thanks, Sadie. I'm not too worried about performance. The recursive nature is "belt and braces" - there is no use case for multidimensional parameter values and none are specified by the conventions - so it shouldn't be a an issue. If it becomes so we can review it then. Always a good idea to add a test! I'll do that ... |
|
Thanks David.
Fair enough, that's all good by me.
Excellent. Please merge away once the test is added (or tag me to look at the update if you prefer, I am happy to do so). |
|
Test added, Pretty straight forward, so merging. |
Fixes: #230