-
Notifications
You must be signed in to change notification settings - Fork 5
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
error while defining variables with units and expression #98
Comments
Thanks for reporting, @CorOscar. I admit that the error message is a bit useless here, we need to clear this up. But your example is a bit convoluted, so I am not sure how to find the underlying problem. We have never envisaged the definition of internal variables within the definition of variables, that was only meant for the definition of equations. The idea of internal variables was to avoid the use of e.g. class eq_Tkv(Equation):
"""Empirical equation"""
class c1(Variable):
"""Internal variable""""
default = 1.01
expr = Eq(T_kv, c1 * (T + iv_T)) If you still have a problem with this, could you provide a link to your code or a complete code snippet that I could copy and paste to check what is wrong? |
Hello,
![error_essm](https://user-images.githubusercontent.com/84338257/118519268-409d4680-b739-11eb-81c2-73e7b34ed930.png)
When defining a variable from class BaseVariable with an expression, there is a conflict between the assigned units and the derived one from the expression. See the screenshot attached.
Regards,
Oscar
The text was updated successfully, but these errors were encountered: