Skip to content

Pre ugridsave refactor#4297

Closed
pp-mo wants to merge 2 commits into
SciTools:mesh-data-modelfrom
pp-mo:pre_ugridsave_refactor
Closed

Pre ugridsave refactor#4297
pp-mo wants to merge 2 commits into
SciTools:mesh-data-modelfrom
pp-mo:pre_ugridsave_refactor

Conversation

@pp-mo

@pp-mo pp-mo commented Aug 27, 2021

Copy link
Copy Markdown
Member

🚀 Pull Request

Description

Refactoring netcdf variable creation routines.
Now squashed down to 2 commits :

  1. add lost of extra assertCDL-like testing, for ~anything that uses iris.save
  2. do some refactoring

Consult Iris pull request check list

@pp-mo pp-mo force-pushed the pre_ugridsave_refactor branch from 9e770f7 to 42085d7 Compare August 27, 2021 13:12
@pp-mo pp-mo force-pushed the pre_ugridsave_refactor branch from d5fcbd8 to 504fb11 Compare August 31, 2021 14:09
# This gives consistent CDL across different platforms.
def sort_key(line):
return ("UNLIMITED" not in line, line)
if "dimensions:" in lines:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting fix, maybe useful to adopt generally :
Without it, assertCDL fails on a saved scalar cube (i.e. which has no dims)

@pp-mo

pp-mo commented Aug 31, 2021

Copy link
Copy Markdown
Member Author

Replaced by #4301 (which is non-draft)

@pp-mo pp-mo closed this Aug 31, 2021
@pp-mo pp-mo deleted the pre_ugridsave_refactor branch March 18, 2022 14:52
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.

1 participant