-
Notifications
You must be signed in to change notification settings - Fork 287
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
Saving an image with NinjoTIFFWriter is broken in satpy v.0.20.0 #1096
Comments
Very interesting. The new Satpy should definitely need the new pyninjotiff from what I've seen. I'm curious how this test is passing on the master branch as it doesn't look like So the first question we need to answer is why this is passing in our automated testing and not for you. Let's see what @mraspaud has to say. |
Ok I did a little investigating...this test should never even touch the pyninjotiff package. it uses |
Thanks @djhoese for looking at this issue.
I have also added some print statements for debugging. If I tun the entire test suite altogether I still have an error:
Unfortunately I was not able to spot the problem. |
I wonder if the mocking of the modules fails if it's already in Python's cache of imported modules (from other tests). Something to look at. |
Yes it is possible. In any case it seems to be something not too easy to track down. |
Just curious, do the tests fail if you uninstall pyninjotiff? |
Good news: I was able to get this to fail locally (Ubuntu laptop with conda environment and pyninjotiff installed) when I run all the tests. If I run just the ninjotiff writer tests it didn't seem to fail. FYI @avalentino, we will be switching to pytest as our main way of starting tests (after #1095 is merged). This doesn't mean much for the existing tests but Edit: Able to get it to fail with pyninjotiff and running |
Figured it out: #1098 |
Thanks. I see the pull request tests failed too (pyninjotiff isn't installed for those). I just updated my pull request. See if this works better for you. |
@djhoese yes now it works both with and without pyninjotiff installed. |
Describe the bug
It seems that saving an image with NinjoTIFFWriter is broken in satpy v.0.20.0.
The failure happens both with pyninjotiff v0.2 and with the recent pyninjotiff v0.3 even if the error seems to be a little bit different.
To Reproduce
$ python3.8 setup.py test
Expected behavior
The test suite is executed without errors
Actual results
The execution of the test suite fails with one error:
Test with pyninjotiff v0.3.0
Test with pyninjotiff v0.2.0
Screenshots
If applicable, add screenshots to help explain your problem.
Environment Info:
The text was updated successfully, but these errors were encountered: