Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 12, 2023
1 parent fcc36cc commit bbfe5f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2760,11 +2760,9 @@ def _process_heavisides(
# `tmp_new` is None if the root is not time-dependent.
if tmp_new is None:
continue

heavisides.append((sp.Heaviside(tmp_old), tmp_new))

# For Heavisides, we need to add the negative function as well
self._get_unique_root(sp.sympify(-tmp_old), roots)
heavisides.append((sp.Heaviside(tmp_old), tmp_new))

if heavisides:
# only apply subs if necessary
Expand Down

0 comments on commit bbfe5f7

Please sign in to comment.