pointer_failed_steps = None
if options["save_step_count"]:
N = self.variables["N"].get_value()
try:
self.owner.variables.add_array("_step_count", size=N, dtype=np.int32)
except KeyError:
// has already been run
After Change
pointer_failed_steps = None
if options["save_step_count"]:
N = int(self.variables["N"].get_value())
try:
self.owner.variables.add_array("_step_count", size=N, dtype=np.int32)
except KeyError:
// has already been run