-
Notifications
You must be signed in to change notification settings - Fork 128
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
Feature/fix nightlight test #716
Conversation
The test was failing the integration check on jenkins. Create fake .tif.gz file, execute test, delate.tif.gz file.
🙌 |
Thanks, looks quite good, but the test failed on my computer.
pattern = f"{sat_name}{year}.v4c_web.stable_lights.avg_vis."`
img = f"{pattern}.tif.gz"
pfile = f"{pattern}.p" |
Hi Emanuel, thanks for the suggestions! I might have an idea of why this happens.
Second point is that 2) is executed only if 1) is not, meaning that if in the folder there are both a To solve this I would suggest two things:
using |
Hi @NicolasColombi Great analysis, many thanks! But yes, you are right, there is a file |
Let's continue the discussion in the new PR #718 |
Changes proposed in this PR:
.tif.gz
file with a mock.tif
image in it to run the test:climada/test/test_nightlight/test_load_nighlight_noaa
, after the test is executed, the image is automatically delated.This PR fixes
load_nightlight_noaa
PR Author Checklist
develop
)PR Reviewer Checklist