-
Notifications
You must be signed in to change notification settings - Fork 289
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
base: master
Are you sure you want to change the base?
Conversation
'use_finite_fault_model_from_usgs', | ||
'provide_rup', | ||
'provide_rup_params'), | ||
'approach': valid.Choice(*list(IMPACT_APPROACHES)), |
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.
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 |
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.
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).
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).