Hello,
I recently was writing some code where I needed to evaluate an expression containing the user defined symbols in a model Parameters object. In my case, the user symbols were no longer easily accessible in the current scope. This could be chalked up to a workflow issue, but is understandable since model results are often used long after their creation.
My solution was to use params._asteval.eval(expression), but this involves using a protected member of the Parameters class. Since the asteval keyword in Parameters has been deprecated, it seems reasonable to worry that this method may break in the future.
Exposing eval as a direct method of Parameters might make it more flexible as a stand-alone object.
Best,
Nicholas