-
Notifications
You must be signed in to change notification settings - Fork 17
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
Create a Model from a constant expression returns an error #355
Comments
Interesting use-case! This is definitely something I'd like to fix, but I'm not sure on what kind of time-line. With a bit of luck I'll manage a PR within a week or so. |
Yes that would work. The PR for this should be really simple actually, because sympy already has a method sympify that does exactly this. So we should first check if the value is an |
Hello,
doing
Model({y: 0.})
orCallableModel({y: 0.})
(whatever the constant value in the expression) returns:AttributeError: 'float' object has no attribute 'free_symbols'
That is a problem when, for instance, we want to create a model after n-derivations and variables are no longer present in the expression.
Could please fix that or tell me if a work around exists.
Thanks,
Patrick
The text was updated successfully, but these errors were encountered: