cf.AuxiliaryCoordinate.has_data¶
-
AuxiliaryCoordinate.
has_data
()[source]¶ Whether a data has been set.
New in version 1.7.0.
- Returns
bool
True if a data have been set, otherwise False.
Examples:
>>> d = cfdm.Data(range(10)) >>> f.set_data(d) >>> f.has_data() True >>> f.get_data() <Data(10): [0, ..., 9]> >>> f.del_data() <Data(10): [0, ..., 9]> >>> f.has_data() False >>> print(f.get_data(None)) None >>> print(f.del_data(None)) None