We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 198d1da commit 0d3b714Copy full SHA for 0d3b714
1 file changed
code/modsim.py
@@ -490,6 +490,10 @@ def wrap_event(event):
490
# remove dimensions from the initial conditions.
491
# we need this because otherwise `init` gets copied into the
492
# results array along with its units
493
+ # try:
494
+ # y_0 = [magnitude(x) for x in init]
495
+ # except TypeError:
496
+ # y_0 = [magnitude(init)]
497
y_0 = [magnitude(x) for x in init]
498
499
# run the solver
0 commit comments