Dataset structure

The dataset is an essential concept of the ASpecD framework and in turn the UVVisPy package, as it abstracts the different vendor formats and combines both, numerical data and metadata, in an easily accessible way. Even more, the general structure of a dataset allows to compare data of entirely different origin (read: spectroscopic method), as long as their axes are compatible.

Developers of the UVVisPy package frequently need to get an overview of the structure of the dataset and its different subclasses, namely the ExperimentalDataset and CalculatedDataset. Whereas the API documentation of each class, UVVisPy.dataset.ExperimentalDataset and UVVisPy.dataset.CalculatedDataset, provides a lot of information, a simple and accessible presentation of the dataset structure is often what is needed.

Therefore, the structure of each of the dataset classes is provided below in YAML format, automatically generated from the actual source code.

Experimental dataset

Entity containing both, numerical data as well as the corresponding metadata that are specific for the cwEPR method. For implementation details, see the API documentation of UVVisPy.dataset.ExperimentalDataset and UVVisPy.dataset.ExperimentalDatasetMetadata.

data:
  calculated: false
  data:
    type: numpy.ndarray
    dtype: float64
    array: []
  axes:
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
metadata:
  measurement:
    start: null
    end: null
    purpose: ''
    operator: ''
    labbook_entry: ''
  sample:
    name: ''
    id: null
    loi: ''
    solvent: ''
    concentration:
      unit: ''
      dimension: ''
      name: ''
      value: 0.0
    preparation: ''
  temperature_control:
    temperature:
      unit: ''
      dimension: ''
      name: ''
      value: 0.0
    controller: ''
    cryostat: ''
    cryogen: ''
  cell:
    manufacturer: ''
    type: ''
    pathlength:
      unit: ''
      dimension: ''
      name: ''
      value: 0.0
  experiment:
    type: ''
    measurement_mode: ''
  spectrometer:
    manufacturer: ''
    model: ''
    software: ''
history: []
analyses: []
annotations: []
representations: []
id: ''
label: ''
references: []
tasks: []
_origdata:
  calculated: false
  data:
    type: numpy.ndarray
    dtype: float64
    array: []
  axes:
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
_package_name: uvvispy
_history_pointer: -1

Calculated dataset

Entity consisting of calculated data and corresponding metadata. For implementation details, see the API documentation of UVVisPy.dataset.CalculatedDataset.

data:
  calculated: true
  data:
    type: numpy.ndarray
    dtype: float64
    array: []
  axes:
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
metadata:
  calculation:
    type: ''
    parameters: {}
history: []
analyses: []
annotations: []
representations: []
id: ''
label: ''
references: []
tasks: []
_origdata:
  calculated: true
  data:
    type: numpy.ndarray
    dtype: float64
    array: []
  axes:
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
  - quantity: ''
    symbol: ''
    unit: ''
    label: ''
    values:
      type: numpy.ndarray
      dtype: float64
      array: []
_package_name: uvvispy
_history_pointer: -1