Skip to content

Issues regarding variables/expressions and negative numbers #18

Description

@dom-linkevicius

I've encountered an issue in SpatialKappa v2.1.1 when using Ubuntu 18.04 where assigning negative values to variables throws an error, which doesn't seem like the intended behaviour. Specifically this code reproduces the issues:

%var: 'a' -50 #returns error
%var: 'a' 0 - 50 # runs fine
%var: 'b' [exp] -5 #returns error
%var: 'b' [exp] (0 - 5) # runs fine

Doesn't seem like a big issue to fix and would be greatly appreciated, as when modeling species whose transition rates depend on [exp] (-'a'/'b') (where 'a' or 'b' can be other species) this issue causes some nuisance. Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions