SDF.data_model.dataset module

class Dataset(name: typing.Union[str, SDF.data_model.name.NameElement], *, owner: typing.Optional[typing.Union[str, SDF.data_model.owner.Owner]] = None, date: typing.Optional[typing.Union[datetime.datetime, SDF.data_model.date.Date]] = None, comment: typing.Optional[typing.Union[str, SDF.data_model.comment.Comment]] = None, samples: typing.Optional[typing.Union[typing.Iterable[SDF.data_model.sample.Sample], typing.Mapping[str, str]]] = None, parameters: typing.Optional[typing.Iterable[SDF.data_model.parameter.ParameterType]] = None, instruments: typing.Optional[typing.Iterable[SDF.data_model.instrument.Instrument]] = None)[source]

Bases: SDF.data_model.sdf_object.SDFObject, SDF.data_model.abstract.XMLWritable

Abstract class. Dataset implementations must inherit from it.

property comment
property date
static from_xml_element(element: xml.etree.ElementTree.Element)SDF.data_model.dataset.Dataset[source]

Reads the ‘type’ attribute of a <dataset type=…> element, delegates to the associated Dataset subclass

property instruments
property name
property owner
property parameters
property samples
abstract to_xml_element()xml.etree.ElementTree.Element

Returns an Element object that contains all information needed to export this object as XML.