-
Notifications
You must be signed in to change notification settings - Fork 300
Fast percentile method in Iris V2. #2687
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lib/iris/tests/results/analysis/first_quartile_foo_1d_fast_percentile.cml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" ?> | ||
| <cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
| <cube core-dtype="float64" dtype="float64" long_name="thingness" units="1"> | ||
| <coords> | ||
| <coord> | ||
| <dimCoord bounds="[[0, 11]]" id="b0d35dcf" long_name="foo" points="[5]" shape="(1,)" units="Unit('1')" value_type="int32"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord id="3d9231d0" long_name="percentile_over_foo" points="[25]" shape="(1,)" units="Unit('1')" value_type="int64"/> | ||
| </coord> | ||
| </coords> | ||
| <cellMethods/> | ||
| <data dtype="float64" shape="()" state="loaded"/> | ||
| </cube> | ||
| </cubes> |
20 changes: 20 additions & 0 deletions
20
lib/iris/tests/results/analysis/first_quartile_foo_2d_fast_percentile.cml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" ?> | ||
| <cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
| <cube core-dtype="float64" dtype="float64" long_name="thingness" units="1"> | ||
| <coords> | ||
| <coord datadims="[0]"> | ||
| <dimCoord bounds="[[0, 5], | ||
| [5, 10], | ||
| [10, 15]]" id="434cbbd8" long_name="bar" points="[2.5, 7.5, 12.5]" shape="(3,)" units="Unit('1')" value_type="float64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord bounds="[[-15, 45]]" id="b0d35dcf" long_name="foo" points="[15.0]" shape="(1,)" units="Unit('1')" value_type="float64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord id="3d9231d0" long_name="percentile_over_foo" points="[25]" shape="(1,)" units="Unit('1')" value_type="int64"/> | ||
| </coord> | ||
| </coords> | ||
| <cellMethods/> | ||
| <data dtype="float64" shape="(3,)" state="loaded"/> | ||
| </cube> | ||
| </cubes> |
18 changes: 18 additions & 0 deletions
18
lib/iris/tests/results/analysis/first_quartile_foo_bar_2d_fast_percentile.cml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" ?> | ||
| <cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
| <cube core-dtype="float64" dtype="float64" long_name="thingness" units="1"> | ||
| <coords> | ||
| <coord> | ||
| <dimCoord bounds="[[0, 15]]" id="434cbbd8" long_name="bar" points="[7.5]" shape="(1,)" units="Unit('1')" value_type="float64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord bounds="[[-15, 45]]" id="b0d35dcf" long_name="foo" points="[15.0]" shape="(1,)" units="Unit('1')" value_type="float64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord id="3a1fa26e" long_name="percentile_over_foo_bar" points="[25]" shape="(1,)" units="Unit('1')" value_type="int64"/> | ||
| </coord> | ||
| </coords> | ||
| <cellMethods/> | ||
| <data dtype="float64" shape="()" state="loaded"/> | ||
| </cube> | ||
| </cubes> |
21 changes: 21 additions & 0 deletions
21
lib/iris/tests/results/analysis/last_quartile_foo_3d_notmasked_fast_percentile.cml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" ?> | ||
| <cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
| <cube core-dtype="float64" dtype="float64" long_name="thingness" units="1"> | ||
| <coords> | ||
| <coord datadims="[0]"> | ||
| <dimCoord id="4a0cb9d8" points="[90, 0, -90]" shape="(3,)" standard_name="latitude" units="Unit('degrees')" value_type="int64"/> | ||
| </coord> | ||
| <coord datadims="[1]"> | ||
| <dimCoord circular="True" id="62e940e0" points="[-180, -90, 0, 90]" shape="(4,)" standard_name="longitude" units="Unit('degrees')" value_type="int64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord id="cf515091" long_name="percentile_over_wibble" points="[75]" shape="(1,)" units="Unit('1')" value_type="int64"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord bounds="[[10.0, 30.0]]" id="10b8e1fc" long_name="wibble" points="[20.0]" shape="(1,)" units="Unit('1')" value_type="float32"/> | ||
| </coord> | ||
| </coords> | ||
| <cellMethods/> | ||
| <data dtype="float64" shape="(3, 4)" state="loaded"/> | ||
| </cube> | ||
| </cubes> |
15 changes: 15 additions & 0 deletions
15
lib/iris/tests/results/analysis/third_quartile_foo_1d_fast_percentile.cml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" ?> | ||
| <cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
| <cube core-dtype="float64" dtype="float64" long_name="thingness" units="1"> | ||
| <coords> | ||
| <coord> | ||
| <dimCoord bounds="[[0, 11]]" id="b0d35dcf" long_name="foo" points="[5]" shape="(1,)" units="Unit('1')" value_type="int32"/> | ||
| </coord> | ||
| <coord> | ||
| <dimCoord id="3d9231d0" long_name="percentile_over_foo" points="[75]" shape="(1,)" units="Unit('1')" value_type="int64"/> | ||
| </coord> | ||
| </coords> | ||
| <cellMethods/> | ||
| <data dtype="float64" shape="()" state="loaded"/> | ||
| </cube> | ||
| </cubes> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I see you've dropped all the CML checks from these tests. Can you re-implement them please, as they're important for checking the resultant cubes as a whole entity are as expected following a collapse operation. You will need to add new CML results for the new tests you've added as well.
I wouldn't expect the CML to change for the existing tests (though you've renamed the tests). If the CML is changing after accounting for the renamed tests that may well be cause for concern.
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.
I've put these back in and added new results files for the fast_percentile_method tests.