-
Notifications
You must be signed in to change notification settings - Fork 1
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
Accso delivery for pytroll image comparison tests #2
Conversation
Corresponding PR in Satpy: pytroll/satpy#2912 |
behave/create_reference.py
Outdated
satellite = "GOES17" | ||
filenames = glob(f'{ext_data_path}/satellite_data/{satellite}/*.nc') | ||
|
||
scn = Scene(reader='abi_l1b', filenames=filenames) |
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.
We need to make this more flexible.
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.
indeed.
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.
Shall we defer this to a later PR?
behave/features/steps/.gitkeep
Outdated
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.
Do we need this file?
filenames = glob(f'{ext_data_path}/satellite_data/{satellite}/*.nc') | ||
|
||
scn = Scene(reader='abi_l1b', filenames=filenames) |
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.
We will need to make this more generic.
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.
yes. if we add a third column in the table with the reader name, that should be fine
Translate comments and strings from German to English.
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.
Not too bad!
behave/create_reference.py
Outdated
satellite = "GOES17" | ||
filenames = glob(f'{ext_data_path}/satellite_data/{satellite}/*.nc') | ||
|
||
scn = Scene(reader='abi_l1b', filenames=filenames) |
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.
indeed.
filenames = glob(f'{ext_data_path}/satellite_data/{satellite}/*.nc') | ||
|
||
scn = Scene(reader='abi_l1b', filenames=filenames) |
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.
yes. if we add a third column in the table with the reader name, that should be fine
Update README to reflect recent changes in implementation
Closes #3.
A test with actual data fails on
|
From the docker log:
|
Looks like it's searching for the branch in upstream and not in the fork where the pull request originates? |
After increasing the logging amount for debugging purposes, rerunning fails with a new error message:
Looks like there is an old hanging docker image from the previous failed job, that did not get cleaned up? |
To test the hypothesis that it's only searching for the branch in upstream and not in the fork, I created a dummy PR in pytroll/satpy#2987 based on a branch in the upstream. However, now trying to trigger the behave tests fails with:
|
Seems that for pytroll/satpy#2697 it did actually work in the end, despite the error message 'fatal: Remote branch feature-multifile-handler not found in upstream origin'. It also works for pytroll/satpy#1136. But for pytroll/satpy#2987 (where the branch is on the main fork, not the user's fork) it fails to verify the signature. Don't know why, but not critical as it works (despite the error message) for normal PRs. |
Correction. It did not work. The linked test result refers to an old test from September. It cannot have worked, because there are no reference images on the server. So probably the message |
I guess |
Clone from the fork, not from the original satpy repo.
Added pyproject.toml. Started some first unit tests. Did a bit of refactoring.
The code under and |
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.
There are some duplications compared to pytroll/satpy#2912
Delete duplicate behave tests. Already present in Satpy PR at pytroll/satpy#2912
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.
looks good, ready to merge?
This PR adds pytroll image comparison tests as delivered by Accso, developed as part of a contract with DWD.
Details can be found in the README file that is part of this commit.
pyproject.toml
Cloning into '/app/repository'
? Can we prevent it?