Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug related to Piecewise function handling #74

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions odetoolbox/system_of_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ def get_dependency_edges(self):

for i, sym1 in enumerate(self.x_):
for j, sym2 in enumerate(self.x_):
if not _is_zero(self.A_[j, i]):
if not _is_zero(self.A_[j, i]) or sym1 in self.c_[j].free_symbols:
E.append((sym2, sym1))
else:
if not _is_zero(sympy.diff(self.c_[j], sym1)):
E.append((sym2, sym1))

return E

Expand Down