It looks like mocpy assumes instances RectangleSkyRegion to have height smaller than width, so this code fails with ValueError: Semi-minor axis must be in ]0, a[:
from astropy.coordinates import Angle, SkyCoord
from mocpy import MOC
from regions import RectangleSkyRegion
region = RectangleSkyRegion(center=SkyCoord(0, 0, unit='deg'), width=Angle(1, 'deg'), height=Angle(2, 'deg'))
MOC.from_astropy_regions(region, max_depth=10)
It looks like
mocpy
assumes instancesRectangleSkyRegion
to have height smaller than width, so this code fails withValueError: Semi-minor axis must be in ]0, a[
: