sbmlsim.combine.sedml.numl

Module Contents

Classes

NumlParser

Helper class for parsing Numl data files.

Attributes

logger

sbmlsim.combine.sedml.numl.logger[source]
class sbmlsim.combine.sedml.numl.NumlParser[source]

Bases: object

Helper class for parsing Numl data files.

class Library[source]

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

LIBNUML = 1[source]
LIBSEDML = 2[source]
classmethod read_numl_document(cls, path)[source]

Helper to read external numl document and check for errors

Parameters

path – path of file

Returns

classmethod load_numl_data(cls, path)[source]

Reading NuML data from file.

This loads the complete numl data. For more information see: https://github.com/numl/numl

Parameters

path – NuML path

Returns

data

Return type

pandas.DataFrame

classmethod parse_dimension_description(cls, description, library=Library.LIBNUML)[source]

Parses the given dimension description.

Returns dictionary of { key: dtype }

Parameters
  • description

  • library (Library) –

Returns

classmethod _parse_description(cls, d, info=None, entry=None, library=Library.LIBNUML)[source]

Parses the recursive DimensionDescription, TupleDescription, AtomicDescription.

This gets the dimension information from NuML.

<dimensionDescription>
<compositeDescription indexType=”double” id=”time” name=”time”>
<compositeDescription indexType=”string” id=”SpeciesIds” name=”SpeciesIds”>

<atomicDescription valueType=”double” id=”Concentrations” name=”Concentrations” />

</compositeDescription>

</compositeDescription>

</dimensionDescription>

Parameters
  • d

  • info

  • library (Library) –

Returns

classmethod _parse_dimension(cls, d, data=None, entry=None, library=Library.LIBNUML)[source]

Parses the recursive CompositeValue, Tuple, AtomicValue.

This gets the actual data from NuML.

Parameters
  • d

  • data

  • library (Library) –

Returns