diff --git a/emodelrunner/create_hoc_tools.py b/emodelrunner/create_hoc_tools.py index 8617242..40edaac 100644 --- a/emodelrunner/create_hoc_tools.py +++ b/emodelrunner/create_hoc_tools.py @@ -227,7 +227,7 @@ def get_step_hoc(self, prot): if isinstance(step_definitions, dict): step_definitions = [step_definitions] for i, step in enumerate(step_definitions): - max_steps = max(max_steps, i + 1) + self.max_steps = max(self.max_steps, i + 1) if step["amp"] is None: amp = f"{step['thresh_perc'] / 100.} * threshold_current"