6.4. qumada.metadata

class qumada.metadata.BasicMetadata[source]

Bases: object

Example implementation of a MetadataHandler.

add_data_to_metadata(location, datatype, name='data')[source]
add_datetime_to_metadata(dt)[source]
add_parameters_to_metadata(parameters, name='parameters')[source]
add_script_to_metadata(script, language, name='script')[source]
add_terminal_mapping(mapping, name='mapping')[source]
class qumada.metadata.Metadata(*args, **kwargs)[source]

Bases: Protocol

Protocol for a Metadata object. Defines the methods to handle specific metadata portions collected with QuMADA.

add_data_to_metadata(location, datatype, name)[source]

Adds metadata related to the measurement data to metadata.

add_datetime_to_metadata(dt)[source]

Adds datetime to metadata.

add_parameters_to_metadata(parameters, name)[source]

Adds parameters and their settings to metadata.

add_script_to_metadata(script, language, name)[source]

Adds metadata of the used measurement script.

add_terminal_mapping(mapping, name)[source]

Adds metadata of the mapping between terminals and instrument parameters as a (JSON) string.

class qumada.metadata.Savable(*args, **kwargs)[source]

Bases: Protocol

Protocol for a savable / updatable (metadata) object.

save()[source]

Saves metadata to new objects.

update()[source]

Updates the already saved metadata.