diff --git a/biosimulators_tellurium/core.py b/biosimulators_tellurium/core.py index 1caab30..705e7ef 100644 --- a/biosimulators_tellurium/core.py +++ b/biosimulators_tellurium/core.py @@ -311,10 +311,10 @@ def exec_sed_task(task, variables, preprocessed_task=None, log=None, config=None def get_all_tasks_from_task(task): ret = set() - if task.isinstance(Task): + if isinstance(task, Task): ret.add(task) return ret - elif task.isinstance(RepeatedTask): + elif isinstance(task, RepeatedTask): for sub_task in task.sub_tasks: submodels = get_all_tasks_from_task(sub_task.task) ret.update(submodels)