diff --git a/RELEASE_NOTES b/RELEASE_NOTES index c3c113b..487a544 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -43,6 +43,16 @@ In this minor release: - Fixed issue with id columns of alert and settings tables in the database - Settings table now has separate id column as a primary key - Chat id column in the settings table now has VARCHAR(256) type (autoconvertable to int in Python) to prevent overflows caused by integer values in SQL +- Fixed incorrectly provided DPI option in the sky find chart +- Fixed incorrect unit of a scale bar in the sky find chart +- Display smoothed DSS2 image in the sky find chart +- Fixed ICECUBE and MAXI information message clobbering +- Added test for the find chart plot +- Added test for the settings table + +## v0.4.6 + +- Fixed problem with conical MOC creation with mocpy>0.12 # v0.3.0 diff --git a/aware/__version__.py b/aware/__version__.py index b758ce4..48c10b7 100644 --- a/aware/__version__.py +++ b/aware/__version__.py @@ -1,2 +1,2 @@ -__version__ = ("0", "4", "5") +__version__ = ("0", "4", "6") __strversion__ = "{}.{}.{}".format(__version__) diff --git a/aware/localization/main.py b/aware/localization/main.py index 7ca0e69..5e9ea6c 100644 --- a/aware/localization/main.py +++ b/aware/localization/main.py @@ -139,13 +139,22 @@ def moc( delta_depth: int = healpix_resolution_step.get_value(), ) -> MOC: """Generate Multi-Order Coverage map from center and radius.""" - return MOC.from_cone( - self.center().ra, - self.center().dec, - self.error_radius(), - max_depth, - delta_depth=delta_depth, - ) + try: + return MOC.from_cone( + self.center().ra, + self.center().dec, + self.error_radius(), + max_depth=max_depth, + delta_depth=delta_depth, + ) + except TypeError: + # In mocpy<0.13, there are 5 parameters, but in latter there are only 4 + return MOC.from_cone( + self.center().ra, + self.center().dec, + self.error_radius(), + max_depth=max_depth, + ) def area(self) -> u.Unit: return np.pi * self.error_radius() ** 2 diff --git a/pyproject.toml b/pyproject.toml index 439e885..2c83e82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "AWARE" -version = "0.4.5" +version = "0.4.6" authors = [{name="Nicolai Pankov", email="colinsergesen@gmail.com"}] requires-python = ">=3.9,<3.12" dependencies = [