Skip to content

Commit

Permalink
#None: v0.4.6
Browse files Browse the repository at this point in the history
- Fixed problem with conical MOC creation with mocpy>0.12
  • Loading branch information
mickolaua committed Feb 18, 2024
1 parent 05a2ac0 commit 1d243e9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
10 changes: 10 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion aware/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = ("0", "4", "5")
__version__ = ("0", "4", "6")
__strversion__ = "{}.{}.{}".format(__version__)
23 changes: 16 additions & 7 deletions aware/localization/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 1d243e9

Please sign in to comment.