Changed RegionGeom.center_skydir
@@ -162,6 +162,9 @@ class RegionGeom(Geom):
if self.region is None:
return SkyCoord(np.nan * u.deg, np.nan * u.deg)
+ if not isinstance(self.region, CompoundSkyRegion) and hasattr(self.region, "center"):
+ return self.region.center
+ else:
return self._rectangle_bbox.center
@property
