Skip to content

Commit 5e83b93

Browse files
committed
Fix multiple nesting in y0
1 parent 0c08cfa commit 5e83b93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sunode/symode/problem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ def as_flattened(
202202
else:
203203
raise ValueError('Unknown righ-hand-side for state %s.' % path)
204204

205-
206205
rhs_list: List[Any] = []
207206
for path in self.state_subset.paths:
208207
item = rhs
209208
for name in path[:-1]:
210-
if name not in rhs:
209+
if name not in item:
211210
raise ValueError('No right-hand-side for state %s' % '.'.join(path))
212211
item = item[name]
213212
item = item.pop(path[-1])

0 commit comments

Comments
 (0)