Skip to content
Snippets Groups Projects
Commit e9b48889 authored by David Lanzendörfer's avatar David Lanzendörfer
Browse files

This assert also now breaks the flow

parent 2758e3dd
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ def simulate_cell( ...@@ -119,7 +119,7 @@ def simulate_cell(
if isinstance(voltage, PieceWiseLinear): if isinstance(voltage, PieceWiseLinear):
input_voltages_active[net] = voltage input_voltages_active[net] = voltage
else: else:
assert isinstance(voltage, float), "Voltage needs to be a float or a piecewise linear function." #assert isinstance(voltage, float), "Voltage needs to be a float or a piecewise linear function."
input_voltages_static[net] = voltage input_voltages_static[net] = voltage
logger.debug("Static input voltages: {}".format(sorted(list(input_voltages_static.keys())))) logger.debug("Static input voltages: {}".format(sorted(list(input_voltages_static.keys()))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment