zcollection.meta.Dataset.add_variable#

Dataset.add_variable(variable)[source]#

Add a variable to the dataset.

Parameters:

variable (Variable) – variable to add.

Raises:
  • TypeError – If the variable is not a Variable object.

  • ValueError – If the variable already exists in the dataset or if the variable’s dimensions do not match the dataset’s dimensions.

Return type:

None