Compare
- Workspace.Compare(self: pyarts.arts._Workspace, var1: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfMatrix, pyarts.arts.ArrayOfTensor7, pyarts.arts.ArrayOfVector, pyarts.arts.GriddedField3, pyarts.arts.Matrix, pyarts.arts.Numeric, pyarts.arts.SingleScatteringData, pyarts.arts.Sparse, pyarts.arts.Tensor3, pyarts.arts.Tensor4, pyarts.arts.Tensor5, pyarts.arts.Tensor7, pyarts.arts.Vector], var2: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfMatrix, pyarts.arts.ArrayOfTensor7, pyarts.arts.ArrayOfVector, pyarts.arts.GriddedField3, pyarts.arts.Matrix, pyarts.arts.Numeric, pyarts.arts.SingleScatteringData, pyarts.arts.Sparse, pyarts.arts.Tensor3, pyarts.arts.Tensor4, pyarts.arts.Tensor5, pyarts.arts.Tensor7, pyarts.arts.Vector], maxabsdiff: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = Numeric{}, error_message: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.String]] = "", verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None
Checks the consistency between two variables.
The two variables are checked to not deviate outside the specified value (
maxabsdiff
). An error is issued if this is not fulfilled.The main application of this method is to be part of the test control files, and then used to check that a calculated value is consistent with an old, reference, value.
Author(s): Oliver Lemke
- Parameters:
var1 (Numeric or Vector or Matrix or Tensor3 or Tensor4 or Tensor5 or Tensor7 or ArrayOfVector or ArrayOfMatrix or ArrayOfTensor7 or GriddedField3 or Sparse or SingleScatteringData) – A first variable. [IN]
var2 (Numeric or Vector or Matrix or Tensor3 or Tensor4 or Tensor5 or Tensor7 or ArrayOfVector or ArrayOfMatrix or ArrayOfTensor7 or GriddedField3 or Sparse or SingleScatteringData) – A second variable. [IN]
maxabsdiff (Numeric, optional) – Threshold for maximum absolute difference. Defaults to
0
[IN]error_message (String, optional) – Additional error message. Defaults to
""
[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]