Skip to content

IMPACT: improve the management of the available workflow approaches #10698

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ptormene
Copy link
Member

@ptormene ptormene commented Jul 3, 2025

The available workflow approaches are stored in a dictionary with their short name and description, that is also used to get the available items for validation. In the level 2 form, keys and values are read from that dictionary.
I am also making sure that the notification that is sent to the user via email at job completion contains the information about the chosen approach (written in the human-readable string).

@ptormene ptormene added this to the Engine 3.24.0 milestone Jul 3, 2025
@ptormene ptormene requested a review from micheles July 3, 2025 08:15
@ptormene ptormene self-assigned this Jul 3, 2025
@ptormene ptormene marked this pull request as draft July 3, 2025 09:32
@ptormene ptormene marked this pull request as ready for review July 3, 2025 15:46
'use_finite_fault_model_from_usgs',
'provide_rup',
'provide_rup_params'),
'approach': valid.Choice(*list(IMPACT_APPROACHES)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need list() here

@@ -1366,7 +1366,7 @@ def get_shakemap_versions(usgs_id, user=User(), monitor=performance.Monitor()):
return shakemap_versions, usgs_preferred_version, err


def _convert_rupture_file(rupture_file, usgs_id, user):
def _convert_rupture_file(dic, rupture_file, usgs_id, user):
rup = None
Copy link
Contributor

@micheles micheles Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like a better name than dic, making clear which parameters it contains (I guess it is the inputdic containing the parameters in the WebUI form).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants