environmentalscience / essm

This package contains helpers to deal with physical variables and units.
https://environmentalscience.github.io/essm/
GNU General Public License v2.0
12 stars 5 forks source link

Dimensional consistency test fails for exp() #93

Closed schymans closed 4 years ago

schymans commented 4 years ago

The following gives an error:

from sympy import exp, S
from essm.variables import Variable

class demo_1(Variable):
    """Test variable."""

    unit = S.One

Variable.check_unit(demo_1 + exp(demo_1)))

This works:


Variable.check_unit(demo_1 - exp(demo_1)))