Using RunModel with a model with keyword arguements. #218
-
Hi. is it possible to use a function for runModel that uses keyword arguments, with some arguments set as constants? The function would be as follows:
where Or alternatively, would it be possible to use a function as follows:
Thank you so much. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I understand that you are trying to use RunModel with a Python Model, is that correct.? In that case, you can have a look at the ** PythonModel** execution here: https://uqpyproject.readthedocs.io/en/latest/runmodel_doc.html#pythonmodel-class Any additional arguments to the required ones, are considered to be the ** model_object_name_kwargs**, which are in turn provided to your python script. Please let me know if that solution works for you! |
Beta Was this translation helpful? Give feedback.
-
Hi @dimtsap, Yes that's exactly what I was looking for! Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
I understand that you are trying to use RunModel with a Python Model, is that correct.?
In that case, you can have a look at the ** PythonModel** execution here:
https://uqpyproject.readthedocs.io/en/latest/runmodel_doc.html#pythonmodel-class
Any additional arguments to the required ones, are considered to be the ** model_object_name_kwargs**, which are in turn provided to your python script.
Please let me know if that solution works for you!