is_field

hcipy.field.is_field(obj)

Check if the object is an HCIPy Field.

This function should be preferred over of isinstance(obj, hcipy.Field) for forward compatibility reasons.

Parameters:
objAny

Any object to check.

Returns:
boolean

Whether obj is an HCIPy Field or not.