Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Aug 15, 2023
1 parent 61452fc commit 3004178
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 type(task) == Task:
if task.isinstance(Task):
ret.add(task)
return ret
elif type(task) == RepeatedTask:
elif task.isinstance(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 3004178

Please sign in to comment.