def _update_bounding_polygon(self): polygons = [im.polygon for im in self._images] if len(polygons) == 0: self._polygon = SphericalPolygon([]) self._radec = [] else: self._polygon = SphericalPolygon.multi_union(polygons) self._radec = list(self._polygon.to_radec())
def _update_bounding_polygon(self): polygons = [im.polygon for im in self._images] if len(polygons) == 0: self._polygon = SphericalPolygon([]) self._radec = [] else: self._polygon = SphericalPolygon.multi_union(polygons) self._radec = list(self._polygon.to_radec())
def update_bounding_polygon(self): """ Recompute bounding polygons of the member images. """ polygons = [im.polygon for im in self._images] if len(polygons) == 0: self._polygon = SphericalPolygon([]) else: self._polygon = SphericalPolygon.multi_union(polygons)