From 7e8cc5f7bd7aa62c464f4a7de6a88cbae869dfcd Mon Sep 17 00:00:00 2001 From: Lucian Smith Date: Tue, 15 Aug 2023 14:22:31 -0700 Subject: [PATCH] Use isinstance correctly (sigh). --- biosimulators_tellurium/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)