vivyd.data.Bundle#

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

Bases: Container

A class representing a bundle, which is a collection of data sources. A bundle can contain other bundles, allowing for a hierarchical organization of data sources. For example, a bundle could represent all the equipment related to wind measurements.

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

  • info (dict[str, Any]) – Additional metadata about the bundle, 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#

Bundle.add(*obj)[source]#

Add one or more bundles or sources to the bundle.

Parameters:

*obj (Bundle | Source) – One or more bundles or sources to add to the bundle.

Returns:

The bundle with the added contents.

Return type:

Bundle