Skip to content

Commit

Permalink
Use isinstance correctly (sigh).
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Aug 15, 2023
1 parent 3004178 commit 7e8cc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biosimulators_tellurium/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e8cc5f

Please sign in to comment.