Skip to content

Catalyst.jl + Measurements.jl bug is currently fixed with duct tape #45

Description

@bspanoghe

Using log in a Catalyst.jl system combined with Measurements.jl produces an error in "P7_sens_uncert/uncert_intro.jl".
The cause seems to be Catalyst forces the use of NaNMath.jl methods for some functions under the hood, which have no method defined for data types outside of Base, such as Measurements.Measurement.
I've added the following duct tape solution to fix this

Catalyst.ModelingToolkit.NaNMath.log(x::Measurement) = Measurements.log(x)

but it should be removed as soon as the problem has been patched out by Catalyst itself

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