Skip to content
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

sup3r status file updates use command name not unique key name #172

Closed
bnb32 opened this issue Nov 2, 2023 · 2 comments · Fixed by #174
Closed

sup3r status file updates use command name not unique key name #172

bnb32 opened this issue Nov 2, 2023 · 2 comments · Fixed by #174
Assignees
Labels
bug Something isn't working

Comments

@bnb32
Copy link
Collaborator

bnb32 commented Nov 2, 2023

Bug Description
Current setup doesn't accommodate pipelines with duplicate commands. For example:

pipeline = [
   {'step1': 'step1.json',
    'command': 'forward-pass'},
   {'step2': 'step2.json',
    'command': 'forward-pass'}]

This pipeline wont continue to run after step1 because sup3r currently updates status files using the command name ('forward-pass') whereas using the key name ('step1'/'step2') would keep the pipeline running.

After step1 is done the status file will be similar to the following

{'forward-pass': {'successful': true, ...},
 'step1': {},
 'step2': {}
}

and rerunning will just report that forward-pass is done and stop.

Solution

There are a few places in sup3r code where status files are written/updated with pipeline_step=module_name, where module_name is the command name. Instead the key identifier ('step1'/'step2' in the example above) should be passed through.

@bnb32 bnb32 added the bug Something isn't working label Nov 2, 2023
@ppinchuk ppinchuk self-assigned this Nov 2, 2023
@grantbuster
Copy link
Member

grantbuster commented Nov 3, 2023

Yeah this is a long-standing issue with the original reV pipeline code that i never got around to fixing... Why do you want to run multiple forward passes?

@bnb32
Copy link
Collaborator Author

bnb32 commented Nov 3, 2023

Yeah this is a long-standing issue with the original reV pipeline code that i never got around to fixing... Why do you want to run multiple forward passes?

With the new era + wtk models the output is much more dynamic and thus the spatial padding required to avoid seams is extreme. I've dealt with this by doing spatial forward passes with netcdf output on much larger spatial extents (the entire Ukraine extent) which requires almost no spatial padding. I then do a temporal forward pass on the spatial fwp output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants