vivyd.data.Source#

class Source(*, name, info)[source]#

Bases: Container

A class representing a data source, which corresponds to any source of data/information. A source can contain signals and values, which are the actual data. For example, a source could represent a specific sensor or measurement device.

Parameters:
  • name (str) – The name of the source.

  • info (dict[str, Any]) – Additional metadata about the source, such as experimental conditions, measurement techniques, etc. This is a flexible field that can hold any relevant information that does not fit into the predefined fields.

Methods#

Source.add(*obj)[source]#

Add one or more signals or values to the source.

Parameters:

*obj (Signal | Value) – One or more signals or values to add to the source.

Returns:

The source with the added contents.

Return type:

Source