Skip to content

Commit

Permalink
Merge pull request #139 from biosimulators/usub-in-expressions
Browse files Browse the repository at this point in the history
feat: allow unary subtraction operator in SEDML validation
  • Loading branch information
jcschaff authored May 19, 2023
2 parents ac14afd + 7abf57a commit 8698552
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion biosimulators_utils/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.177'
__version__ = '0.1.178'
1 change: 1 addition & 0 deletions biosimulators_utils/sedml/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def piecewise(*args):
'GtE',
'LtE',
'Sub',
'USub',
'Mult',
'Div',
'Pow',
Expand Down
3 changes: 2 additions & 1 deletion tests/sedml/test_sedml_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def test_python_infix_operator_substitutions(self):
"1 && 1": 1.0,
"0.0 || 0.0": 0.0,
"1.0 || 0.0": 1.0,
"1 || 1": 1.0
"1 || 1": 1.0,
"5 * -2": -10.0,
}
for (orig_infix, expected_value) in test_cases.items():
# round trip to libsedml to ensure proper integration
Expand Down

0 comments on commit 8698552

Please sign in to comment.