We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I define an expression in a variable definition, VariableWriter does not import it automatically and it has to be added manually as supplementary_imports. In https://github.com/environmentalscience/essm/blob/master/docs/examples/api_features.ipynb, In[14], the following definition was made:
VariableWriter
supplementary_imports
class Delta_Pwa(Variable): """Slope of saturated vapour pressure, $\partial P_{wa} / \partial T_g$""" expr = Derivative(P_wa,T_g) latex_name = r'\Delta'
However, Derivative is not imported when executing:
Derivative
writer_var = VariableWriter(docstring='Test of VariableWriter.') writer_var.var(Delta_Pwa)
This is because extract_functions() in https://github.com/environmentalscience/essm/blob/master/essm/_generator.py is only used in EquationWriter but not in VariableWriter.
extract_functions()
EquationWriter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I define an expression in a variable definition,
VariableWriter
does not import it automatically and it has to be added manually assupplementary_imports
. In https://github.com/environmentalscience/essm/blob/master/docs/examples/api_features.ipynb, In[14], the following definition was made:However,
Derivative
is not imported when executing:This is because
extract_functions()
in https://github.com/environmentalscience/essm/blob/master/essm/_generator.py is only used inEquationWriter
but not inVariableWriter
.The text was updated successfully, but these errors were encountered: