You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call mira.modeling.amr.petrinet.template_model_to_petrinet_json to convert a TemplateModel to a AMR JSON for export, the objects in semantics.ode.parameters are missing the name key.
Looking at petrinet.py, I see that no name is included if display_name = None.
Since the CIEMSS operators expect a name key, can we have a fallback like this?
if param.display_name:
param_dict['name'] = param.display_name
else:
param_dict['name'] = str(key)
The text was updated successfully, but these errors were encountered:
When I call
mira.modeling.amr.petrinet.template_model_to_petrinet_json
to convert aTemplateModel
to a AMR JSON for export, the objects insemantics.ode.parameters
are missing thename
key.Looking at petrinet.py, I see that no
name
is included ifdisplay_name = None
.Since the CIEMSS operators expect a
name
key, can we have a fallback like this?The text was updated successfully, but these errors were encountered: