Skip to content

Re-importing variables breaks .xreplace #104

Description

@schymans

In essm/docs/examples/api_features.ipynb, at the end of the notebook, where variables are re-imported using from test_variable_definitions import *, the following gives an error:

cdict = Variable.__defaults__.copy()
cdict[Pr] = 0.71   # Prandtl number for air
vdict = {P_a:101325., P_wa: 2000., R_s: 900., Re_c:3000., T_a:300., v_w: 0.5}
vdict.update(cdict)

eq_Pa.xreplace(vdict)

The error is SympifyError: SympifyError: None
The same code can be run without problems before the re-import of variables.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions