-
Notifications
You must be signed in to change notification settings - Fork 3
Zarr to irirs Cube: add tests and Zarr sample data #145
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
Conversation
|
Hi @valeriupredoi |
|
take your time, Patrick, cheers! Excellent, many thanks for porting to a CI-runnable PR, shall do that today 🍻 |
Getting there, bit more to fix...! BTW The doctest failure is a known problem, fix coming in #134 (which is nearly there now). |
|
mega! Do you want me to close this though, so we keep working on in #147 perhaps? 🍻 |
Hi V! #147 was only to check how it would work, and I was intending valeriupredoi#1 to merge my suggestions here. |
|
Not a worry @pp-mo - you could add me as a collaborator here to the repo then I can push to branches? 🍺 |
pp-mo
left a comment
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.
Shame you can't edit an existing review ??
Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>
|
"and finally..." Do you want to add a towncrier changenote fragment ? I guess it would be a "dev" one. I'm not sure if you can just reference the PR, or have to create a suitable issue. I haven't tried it. |
Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>
…doi/ncdata into add_warning_and_tests
let me run it through pre-commit myself, will fix those snags 👍 |
ran pre-commit (with fairly exhaustive black rules) in f8dd7be |
|
Thanks for your patience @valeriupredoi sooo nearly there !
|
|
On my way to the office - will remove unify chunks as soon as I get there. Sadly no experience with Towncrier here, so if you could do that for me, that'd be fab 😃🍺 |
it doesn't take me 2 hours to get to the office 😆 I forgot I had a couple meetings, finally did it in e7df68d - no clue why pre0commit is failing, I |
|
nevermind, it passed 🥳 |
Probably different versions. It's been evolving a lot lately. Look at all the noise, though! |
|
I'm going to make a separate PR with all the pre-commit updates. Just to keep the history clean. |
|
#152 replaces : I just removed the pre-commit changes |
@pp-mo related to #139 here is an idea how I'd approach a warning when the Xarray variable has Numpy data instead of a lazy Dask array. The major hurdle is that most (all?) coordinates do come with realized data points, so I tried to be a bit coy and look for just the main variable data - unfortunately, I don't know Xarray enough to be 100% sure that my approach to checking that is bulletproof. I've added some sample Zarr data locally to the repo (tiny), and also tests, so even if you don't want to keep the warning functionality, I reckon you can still keep the Zarr to Iris Cube conversion tests.
Also, feel free to remove the test that runs with the Zarr store off the S3 bucket if you guys can't connect, but I reckon it'd still be useful in an eg Github Action since there it runs fine. I can mark it with a special pytest mark that runs it eg only in a Github Action.
Cheers and have a good weekend! 🍻