-
Notifications
You must be signed in to change notification settings - Fork 300
Coord print #4499
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
Coord print #4499
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
581ac0e
Initial working.
pp-mo 8dfa329
Temporary test exercising.
pp-mo a1745b6
Fix docstring, simplify.
pp-mo 70ba216
Small mods.
pp-mo 38ba475
Additional changes, with old+intermediate versions commented.
pp-mo 9553d9b
Tidy, removing old commented forms.
pp-mo 77fc1f6
Repr always has shape, except scalar cases.
pp-mo 1a97a98
Don't print calendar in oneline summary.
pp-mo 12f0be5
Initial working dim-meta printout tests.
pp-mo 910f090
Printout features and all tests complete : existing tests *not* yet f…
pp-mo e85ba19
Fix existing connectivity print tests.
pp-mo d3eaf2f
Fix existing MeshCoord printout tests.
pp-mo 881d7a0
Fix various str+repr changes in tests/test_coord_api.
pp-mo d7308b5
Fix various str+repr changes in tests/unit/coords/test_Coord.
pp-mo a68f31b
Fix existing printout tests for Ancils and CellMeasures.
pp-mo c82283b
Added new str and repr for Mesh.
pp-mo 286565c
Doctest fixes.
pp-mo beba1f2
Tidy up unused methods, api and docstrings
pp-mo 9a5d9d3
Add specific tests for 'summary' method.
pp-mo 4e1867d
Tiny fixes.
pp-mo 49bf0c3
Use UGRID term 'optional' connectivities instead of 'extra'.
pp-mo e8bef5f
Revise kwargs and clarify their relationship to numpy printoptions.
pp-mo a2a6015
More small cosmetic changes, plus minimal bounds in repr.
pp-mo 0a56e37
Fix coord_api repr tests.
pp-mo 2e82bba
Added whatsnew + fixed docstring formatting.
pp-mo fdb352f
Add summary section-location info for MeshCoord. Fix and test for bo…
pp-mo b868d40
Clarify text-output code.
pp-mo d6cf339
Remove obsolete comment.
pp-mo 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
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
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| <DimCoord: grid_latitude / (degrees) [-0.128, -0.127, ..., -0.121, -0.12 ]+bnds shape(10,)> | ||
| <DimCoord: level_height / (m) [ 5. , 21.667, ..., 325. , 395. ]+bounds shape(10,)> |
18 changes: 9 additions & 9 deletions
18
lib/iris/tests/results/coord_api/str_repr/aux_nontime_str.txt
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 |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| DimCoord : grid_latitude / (degrees) | ||
| DimCoord : level_height / (m) | ||
| points: [ | ||
| -0.1278, -0.1269, -0.126 , -0.1251, -0.1242, -0.1233, -0.1224, | ||
| -0.1215, -0.1206, -0.1197] | ||
| 5. , 21.666664, 45. , 75. , 111.66668 , | ||
| 155. , 205. , 261.6667 , 325. , 395. ] | ||
| bounds: [ | ||
| [-0.12825, -0.12735], | ||
| [-0.12735, -0.12645], | ||
| [ 0. , 13.333332], | ||
| [ 13.333332, 33.333332], | ||
| ..., | ||
| [-0.12105, -0.12015], | ||
| [-0.12015, -0.11925]] | ||
| [293.3333 , 360. ], | ||
| [360. , 433.3332 ]] | ||
| shape: (10,) bounds(10, 2) | ||
| dtype: float32 | ||
| standard_name: 'grid_latitude' | ||
| coord_system: RotatedGeogCS(37.5, 177.5, ellipsoid=GeogCS(6371229.0)) | ||
| long_name: 'level_height' | ||
| attributes: {'positive': 'up'} |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| <DimCoord: time / (hours since 1970-01-01 00:00:00) [...] shape(6,)> | ||
| <DimCoord: forecast_period / (hours) [0.]> |
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 |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| DimCoord : time / (hours since 1970-01-01 00:00:00, gregorian calendar) | ||
| points: [ | ||
| 2009-09-09 17:10:00, 2009-09-09 17:20:00, 2009-09-09 17:30:00, | ||
| 2009-09-09 17:40:00, 2009-09-09 17:50:00, 2009-09-09 18:00:00] | ||
| shape: (6,) | ||
| DimCoord : forecast_period / (hours) | ||
| points: [0.] | ||
| shape: (1,) | ||
| dtype: float64 | ||
| standard_name: 'time' | ||
| standard_name: 'forecast_period' |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| <DimCoord: grid_latitude / (degrees) [-0.128, -0.127, ..., -0.121, -0.12 ]+bnds shape(10,)> | ||
| <DimCoord: grid_latitude / (degrees) [-0.128, -0.127, ..., -0.121, -0.12 ]+bounds shape(10,)> |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
These tests were a bit of a mess : in both the 'time' and 'nontime' classes, the 4 cases were 2 duplicates of only 2 things.
Unfortunately I'm not sure I've improved things much, though.
'height' is not actually an AuxCoord (class), though it is an aux-coord in the cube.
likewise, 'forecast_period' is not a brilliant example of a "time AuxCoord".
Given that this wasn't doing anything very useful before, I'm not going to spend any more effort on it.