Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.
Browse files Browse the repository at this point in the history
dweindl committed Feb 24, 2024
1 parent 689f062 commit 4d5ab06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/sdist/amici/de_export.py
Original file line number Diff line number Diff line change
@@ -1697,7 +1697,10 @@ def static_indices(self, name: str) -> list[int]:
# until it uses the proper self.sym("spl") / self.sym("sspl")
# symbols, which will require quite some refactoring,
# we just do dumb string checks :|
or (self._splines and "AmiciSpline" in str(expr))
or (
bool(self._splines)
and "AmiciSpline" in str(expr)
)
for expr in w
]
)[:, np.newaxis],

0 comments on commit 4d5ab06

Please sign in to comment.