Skip to content

Load coordinates from netcdf in the correct order.#4802

Merged
bors[bot] merged 3 commits intomicrosoft:masterfrom
jenshnielsen:fix_netcdf_loading_order
Nov 15, 2022
Merged

Load coordinates from netcdf in the correct order.#4802
bors[bot] merged 3 commits intomicrosoft:masterfrom
jenshnielsen:fix_netcdf_loading_order

Conversation

@jenshnielsen
Copy link
Copy Markdown
Collaborator

@jenshnielsen jenshnielsen commented Nov 14, 2022

data_array.coords is not guaranteed to return
in the same order as its written. However, this is guaranteed for data_array.dims so use that to order coords when loading

TODO

  • Changelog
  • See if we can find a way to test this

data_array.coords is not guaranteed to return
in the same order as its written. However, this is
guaranteed for data_array.dims so use that to order
coords when loading
@jenshnielsen jenshnielsen force-pushed the fix_netcdf_loading_order branch from bd44785 to ad2af85 Compare November 14, 2022 13:59
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 14, 2022

Codecov Report

Merging #4802 (8222f1f) into master (d8005f1) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4802      +/-   ##
==========================================
- Coverage   68.28%   68.25%   -0.03%     
==========================================
  Files         339      339              
  Lines       32070    32070              
==========================================
- Hits        21899    21890       -9     
- Misses      10171    10180       +9     

Copy link
Copy Markdown

@guenp guenp left a comment

Choose a reason for hiding this comment

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

Tested and this fixes my problem. Thank you @jenshnielsen!

Copy link
Copy Markdown
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

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

great! (the only comment can be ignored)

@jenshnielsen jenshnielsen force-pushed the fix_netcdf_loading_order branch from 553c109 to 8222f1f Compare November 15, 2022 09:42
@jenshnielsen
Copy link
Copy Markdown
Collaborator Author

bors merge

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 15, 2022

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@bors bors bot merged commit b187fd3 into microsoft:master Nov 15, 2022
@jenshnielsen jenshnielsen deleted the fix_netcdf_loading_order branch November 15, 2022 12:07
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.

3 participants