sbmlsim.combine.sedml.task

Module Contents

Classes

TaskNode

Tree implementation of task tree.

Stack

Stack implementation for nodes.

TaskTree

Test

class sbmlsim.combine.sedml.task.TaskNode(task, depth)[source]

Bases: object

Tree implementation of task tree.

Parameters
  • task (libsedml.SedAbstractTask) –

  • depth (int) –

add_child(self, obj)[source]
is_leaf(self)[source]
__str__(self)[source]

Return str(self).

Return type

str

info(self)[source]
Return type

str

__iter__(self)[source]

Depth-first iterator which yields TaskNodes.

__repr__(self)[source]

Return repr(self).

Return type

str

class sbmlsim.combine.sedml.task.Stack[source]

Bases: object

Stack implementation for nodes.

isEmpty(self)[source]
push(self, item)[source]
pop(self)[source]
peek(self)[source]
size(self)[source]
__str__(self)[source]

Return str(self).

class sbmlsim.combine.sedml.task.TaskTree[source]

Bases: object

static from_sedml_task(sed_task, root_task)[source]

Creates task tree for given SedTask

The task tree is used to resolve the order of all simulations.

Parameters
  • sed_task (libsedml.SedDocument) –

  • root_task (libsedml.SedAbstractTask) –

Return type

TaskNode

static parse_task_tree(doc, tree)[source]

Python code generation from task tree.

Parameters
  • doc (libsedml.SedDocument) –

  • tree (TaskNode) –

class sbmlsim.combine.sedml.task.Test[source]

Bases: object

static simpleTaskToPython(doc, node)[source]

Creates the simulation python code for a given taskNode.

The taskNodes are required to handle the relationships between RepeatedTasks, SubTasks and SimpleTasks (Task).

Parameters
  • doc (SEDDocument) – sedml document

  • node (TaskNode) – taskNode of the current task

Returns

Return type

static repeatedTaskToPython(doc, node)[source]

Create python for RepeatedTask.

Must create - the ranges (Ranges) - apply all changes (SetValues)

static uniformRangeToPython(r)[source]

Create python lines for uniform range. :param r: :type r: :return: :rtype:

static vectorRangeToPython(r)[source]