pyacs.gts.lib.primitive.cdata module

pyacs.gts.lib.primitive.cdata.cdata(self, data=False, data_xyz=False, tol=0.001, verbose=False)[source]

Check data and/or data_xyz attributes for consistency and validity.

Parameters:
  • data (bool, optional) – If True, check the data attribute. Default is False.

  • data_xyz (bool, optional) – If True, check the data_xyz attribute. Default is False.

  • tol (float, optional) – Tolerance in days for two dates to be considered the same. Default is 0.001.

  • verbose (bool, optional) – If True, print details. Default is False.

Returns:

True if checks pass, False otherwise.

Return type:

bool

Notes

In future, this routine may also check consistency between .data and .data_xyz.