-
Notifications
You must be signed in to change notification settings - Fork 39
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
Removed netCDF4 package from integration tests of fixes #938
Conversation
dat was superqwik, cheers Manu! I am having a look and stress test now 👍 |
good job with the PR @schlunma 👍 🍺
I reckon this is good to have and we need to move on understanding the iris-dask animosity from #644 but that's not the scope of this PR 👍 @bouweandela or @stefsmeets or @jvegasbsc one of you guys wanna have a look to so we have three pairs of eyes? If not good to go, Manu! |
Cheers V, thanks for reviewing! 🍺
Nope, we can't get rid of that since those (faulty) data cannot be produced with |
excellent! Let's wait until tomorrow morning see if any of the other folks want to have a look, if no answer, fire it to master, bud! 🍺 |
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.
Hi @schlunma , nice work, looks much cleaner!
-
The definition of the
SAMPLE_PATH
variable is repeated at the top of every file. It would be nice if this could be single-sourced. Also, would it be possible for you to change the definition from usingos.path
topathlib.Path
while at it (I already made a few starts)? This will be much easier to work with and maintain. -
Could you put the scripts to generate the
.nc
files somewhere (maybe directly in thesample_data
directory) so that the data can be regenerated or updated if needed? -
Finally, we already have a set of tests with sample data here: https://github.com/ESMValGroup/ESMValCore/tree/master/tests/sample_data/ . Could we call your directory
test_data
to avoid a name clash?
@stefsmeets very good idea about adding instructions how to create those standard test files, cheers! About |
let's get this one done and merged, I'd like to continue the fixing trials by reducing the size of tests, am fairly sure it's the size of the tests that's causing the SegFaults as I say in this comment - Manu, if you don't have time I can tend to Stef's comments 👍 |
I already addressed them and will push them after the meeting 👍 |
total boss! 🍺 |
Thanks for the review @stefsmeets !
I changed
The script is already there: tests/integration/cmor/_fixes/test_data/create_test_data.py
Renamed to |
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.
Cheers @schlunma , I must have missed the script to generate the data on my first pass (I think the diff was probably too big for it to show 😅). Nice work, hope this helps reduce the number of seg faults!
cheers @schlunma and @stefsmeets 🍺 |
This PR removes the use of the package
netCDF4
in test for fixes to avoid segmentation faults.Before you get started
Checklist
pre-commit
oryamllint
checksTo help with the number pull requests: