Skip to content

Conversation

@davidhassell
Copy link
Collaborator

Fixes #667

Prevents _reorder_z_axis from being called when there is only one Z level (and so there is nothing to reorder!).

@davidhassell davidhassell added bug Something isn't working um/pp Relating to UM or PP format files labels Jun 12, 2023
@davidhassell davidhassell added this to the Next release milestone Jun 12, 2023
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

Thought this problem rang a bell...

All good, please merge!

indices = [(i, rec) for i, rec in enumerate(recs)]

if z_axis in self.down_axes:
if nz > 1 and z_axis in self.down_axes:
Copy link
Member

Choose a reason for hiding this comment

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

Oops, we should have made this edit as part of the fix for #641 (I explicitly suggested it on the Issue 🤦‍♀️ ). Sorry I didn't spot that in review for that PR! Either way, getting it added now is better than never 🙂

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah - that one's on me, I reckon - sorry for not picking up on it at the time.

@davidhassell davidhassell merged commit b461601 into NCAS-CMS:main Jun 13, 2023
@davidhassell davidhassell deleted the umread-z-order branch June 13, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working um/pp Relating to UM or PP format files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cf.read fails for some PP data with a single vertical level

2 participants