icecube-skyreader 1.4.2__tar.gz → 1.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/PKG-INFO +3 -2
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/PKG-INFO +3 -2
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/SOURCES.txt +1 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/pyproject.toml +1 -1
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/__init__.py +3 -1
- icecube_skyreader-1.4.4/skyreader/constants.py +5 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/plot/plotting_tools.py +23 -23
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/LICENSE +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/README.md +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/dependency_links.txt +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/requires.txt +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/top_level.txt +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/setup.cfg +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/setup.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/event_metadata.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/plot/__init__.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/plot/plot.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/py.typed +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/result.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/utils/__init__.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/utils/areas.py +0 -0
- {icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/skyreader/utils/handle_map_data.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: icecube-skyreader
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: An API for Results Produced by SkyDriver & the Skymap Scanner
|
|
5
5
|
Author-email: WIPAC Developers <developers@icecube.wisc.edu>
|
|
6
6
|
License: MIT License
|
|
@@ -56,6 +56,7 @@ Provides-Extra: mypy
|
|
|
56
56
|
Requires-Dist: pytest; extra == "mypy"
|
|
57
57
|
Requires-Dist: pytest-mock; extra == "mypy"
|
|
58
58
|
Requires-Dist: wipac-rest-tools; extra == "mypy"
|
|
59
|
+
Dynamic: license-file
|
|
59
60
|
|
|
60
61
|
<!--- Top of README Badges (automated) --->
|
|
61
62
|
[](https://pypi.org/project/icecube-skyreader/) [](https://github.com/icecube/skyreader/) [](https://pypi.org/project/icecube-skyreader) [](https://github.com/icecube/skyreader/blob/main/LICENSE) [](https://github.com/icecube/skyreader/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aopen) [](https://github.com/icecube/skyreader/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aopen)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: icecube-skyreader
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: An API for Results Produced by SkyDriver & the Skymap Scanner
|
|
5
5
|
Author-email: WIPAC Developers <developers@icecube.wisc.edu>
|
|
6
6
|
License: MIT License
|
|
@@ -56,6 +56,7 @@ Provides-Extra: mypy
|
|
|
56
56
|
Requires-Dist: pytest; extra == "mypy"
|
|
57
57
|
Requires-Dist: pytest-mock; extra == "mypy"
|
|
58
58
|
Requires-Dist: wipac-rest-tools; extra == "mypy"
|
|
59
|
+
Dynamic: license-file
|
|
59
60
|
|
|
60
61
|
<!--- Top of README Badges (automated) --->
|
|
61
62
|
[](https://pypi.org/project/icecube-skyreader/) [](https://github.com/icecube/skyreader/) [](https://pypi.org/project/icecube-skyreader) [](https://github.com/icecube/skyreader/blob/main/LICENSE) [](https://github.com/icecube/skyreader/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aopen) [](https://github.com/icecube/skyreader/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aopen)
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
|
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
|
-
version = "1.4.
|
|
6
|
+
version = "1.4.4"
|
|
7
7
|
dependencies = ["astropy", "healpy", "matplotlib", "meander", "mhealpy", "numpy", "pandas", "scipy", "wipac-dev-tools"]
|
|
8
8
|
name = "icecube-skyreader"
|
|
9
9
|
description = "An API for Results Produced by SkyDriver & the Skymap Scanner"
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
from . import plot # noqa: F401
|
|
4
4
|
from .event_metadata import EventMetadata # noqa: F401
|
|
5
5
|
from .result import SkyScanResult # noqa: F401
|
|
6
|
+
from .constants import CATALOG_PATH
|
|
6
7
|
|
|
7
8
|
__all__ = [
|
|
8
9
|
"EventMetadata",
|
|
9
10
|
"plot",
|
|
10
11
|
"SkyScanResult",
|
|
12
|
+
"CATALOG_PATH",
|
|
11
13
|
]
|
|
12
14
|
|
|
13
15
|
# version is a human-readable version number.
|
|
@@ -17,7 +19,7 @@ __all__ = [
|
|
|
17
19
|
# is zero for an official release, positive for a development branch,
|
|
18
20
|
# or negative for a release candidate or beta (after the base version
|
|
19
21
|
# number has been incremented)
|
|
20
|
-
__version__ = "1.4.
|
|
22
|
+
__version__ = "1.4.4"
|
|
21
23
|
version_info = (
|
|
22
24
|
int(__version__.split(".")[0]),
|
|
23
25
|
int(__version__.split(".")[1]),
|
|
@@ -17,6 +17,9 @@ from matplotlib.transforms import Affine2D # type: ignore[import]
|
|
|
17
17
|
|
|
18
18
|
matplotlib.use('agg')
|
|
19
19
|
|
|
20
|
+
## LAT 14-year Source Catalog (4FGL-DR4 in FITS format) ; https://fermi.gsfc.nasa.gov/ssc/data/access/lat/14yr_catalog/
|
|
21
|
+
from skyreader.constants import CATALOG_PATH
|
|
22
|
+
|
|
20
23
|
def format_fits_header(
|
|
21
24
|
event_id_tuple, mjd, ra, dec, uncertainty, llh_map,
|
|
22
25
|
):
|
|
@@ -121,7 +124,7 @@ def plot_catalog(master_map, cmap, lower_ra, upper_ra, lower_dec, upper_dec,
|
|
|
121
124
|
cmap_min=0., cmap_max=250.):
|
|
122
125
|
""""Plots the 4FGL catalog in a color that contrasts with the background
|
|
123
126
|
healpix map."""
|
|
124
|
-
hdu = pyfits.open(
|
|
127
|
+
hdu = pyfits.open(CATALOG_PATH) # LAT 14-year
|
|
125
128
|
fgl = hdu[1]
|
|
126
129
|
pe = [path_effects.Stroke(linewidth=0.5, foreground=cmap(0.0)),
|
|
127
130
|
path_effects.Normal()]
|
|
@@ -192,8 +195,8 @@ class DecFormatter(Formatter):
|
|
|
192
195
|
class AstroMollweideAxes(MollweideAxes):
|
|
193
196
|
name = 'astro mollweide'
|
|
194
197
|
|
|
195
|
-
def
|
|
196
|
-
super(AstroMollweideAxes, self).
|
|
198
|
+
def cla(self):
|
|
199
|
+
super(AstroMollweideAxes, self).cla()
|
|
197
200
|
self.set_xlim(0, 2*np.pi)
|
|
198
201
|
|
|
199
202
|
def set_xlim(self, *args, **kwargs):
|
|
@@ -235,28 +238,25 @@ class AstroMollweideAxes(MollweideAxes):
|
|
|
235
238
|
# This is the transform for latitude ticks.
|
|
236
239
|
yaxis_stretch = Affine2D().scale(np.pi * 2.0, 1.0)
|
|
237
240
|
yaxis_space = Affine2D().scale(-1.0, 1.1)
|
|
238
|
-
self._yaxis_transform =
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
# mypy error: "AstroMollweideAxes" has no attribute "
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
self.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
self.
|
|
250
|
-
|
|
251
|
-
Affine2D().translate(-8.0, 0.0)
|
|
252
|
-
self._yaxis_text2_transform = \
|
|
253
|
-
yaxis_text_base + \
|
|
254
|
-
Affine2D().translate(8.0, 0.0)
|
|
255
|
-
|
|
241
|
+
self._yaxis_transform = yaxis_stretch + self.transData
|
|
242
|
+
|
|
243
|
+
# mypy error: "AstroMollweideAxes" has no attribute "transProjection" [attr-defined]
|
|
244
|
+
# mypy error: "AstroMollweideAxes" has no attribute "transAffine" [attr-defined]
|
|
245
|
+
yaxis_text_base = (
|
|
246
|
+
yaxis_stretch
|
|
247
|
+
+ self.transProjection
|
|
248
|
+
+ (yaxis_space + self.transAffine + self.transAxes)
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
self._yaxis_text1_transform = yaxis_text_base + Affine2D().translate(-8.0, 0.0)
|
|
252
|
+
self._yaxis_text2_transform = yaxis_text_base + Affine2D().translate(8.0, 0.0)
|
|
253
|
+
|
|
256
254
|
def _get_affine_transform(self):
|
|
257
255
|
transform = self._get_core_transform(1)
|
|
258
256
|
xscale, _ = transform.transform_point((0, 0))
|
|
259
257
|
_, yscale = transform.transform_point((0, np.pi / 2.0))
|
|
260
|
-
return
|
|
261
|
-
|
|
258
|
+
return (
|
|
259
|
+
Affine2D()
|
|
260
|
+
.scale(0.5 / xscale, 0.5 / yscale)
|
|
262
261
|
.translate(0.5, 0.5)
|
|
262
|
+
)
|
|
File without changes
|
|
File without changes
|
{icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{icecube_skyreader-1.4.2 → icecube_skyreader-1.4.4}/icecube_skyreader.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|