mosaic.utils.get_invalid_patches

mosaic.utils.get_invalid_patches#

mosaic.utils.get_invalid_patches(descriptor, location)#

Helper function to identify problematic patches.

Returns the indices of the problematic patches as determined by shapely.is_valid().

Parameters:
  • descriptor (Descriptor) – The Descriptor object you want to check the patches of

  • location (string) – The patch location to check: “cell” or “edge” or “vertex”

Returns:

Indices of invalid patches. If no patches are invalid then returns None

Return type:

ndarray or None