You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable, cycles, in electrolyzer/glue_code/run_electrolyzer.py, is initialized as the default float type. It should be an integer.
Can see this by:
Using example_02_electrolyzer, and referring to the df.tail() call. Note that the stack_n_cycles (where n = stack ID), is a float variable.
To fix:
Add dtype=int to the np.zeros call. cycles=np.zeros((elec_sys.n_stacks, len(power_signal)), dtype=int)
The text was updated successfully, but these errors were encountered:
The variable, cycles, in
electrolyzer/glue_code/run_electrolyzer.py
, is initialized as the default float type. It should be an integer.Can see this by:
Using example_02_electrolyzer, and referring to the df.tail() call. Note that the stack_n_cycles (where n = stack ID), is a float variable.
To fix:
Add
dtype=int
to the np.zeros call.cycles=np.zeros((elec_sys.n_stacks, len(power_signal)), dtype=int)
The text was updated successfully, but these errors were encountered: