gerg_plotting.modules.validations#

Module Contents#

gerg_plotting.modules.validations.is_flat_numpy_array(instance, attribute, value) None#

Validate that a value is a 1-dimensional NumPy array.

Parameters#

instanceobject

The class instance being validated

attributeattrs.Attribute

The attribute being validated

valuearray_like

The value to validate

Raises#

ValueError

If value is not a NumPy array or is not 1-dimensional

gerg_plotting.modules.validations.lat_min_smaller_than_max(instance, attribute, value) None#

Validate that minimum latitude is smaller than maximum latitude.

Parameters#

instanceobject

The class instance being validated

attributeattrs.Attribute

The attribute being validated

valuefloat or None

The value to validate

Raises#

ValueError

If lat_min is greater than or equal to lat_max

gerg_plotting.modules.validations.lon_min_smaller_than_max(instance, attribute, value) None#

Validate that minimum longitude is smaller than maximum longitude.

Parameters#

instanceobject

The class instance being validated

attributeattrs.Attribute

The attribute being validated

valuefloat or None

The value to validate

Raises#

ValueError

If lon_min is greater than or equal to lon_max