Closed ktbolt closed 11 months ago
Note that we should not be using asserts in production code so I will remove them.
Since we need to do this check at run time I've replaced the asserts
assert volume_internal.size == 2, "Pim should be size 2."
assert volume_internal[0] == volume_internal[1], "Entries of Pim are not equal."
with throwing exceptions
if volume_internal.size != 2:
raise Exception("The input Pim data should be size of size 2.")
if volume_internal[0] != volume_internal[1]:
raise Exception("The input Pim data entries are not equal.")
Merged into master.
When run from SimVascular the svZeroDSolver fails with
The problem is an assert statement that uses an
f-strings
formatting introduced in Python 3.6; SimVascular uses Python 3.5.