icecube-skyreader 0.1.0__tar.gz → 0.2.0__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-0.1.0 → icecube-skyreader-0.2.0}/PKG-INFO +2 -2
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/PKG-INFO +2 -2
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/setup.cfg +1 -1
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/__init__.py +1 -1
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/result.py +9 -14
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/LICENSE +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/README.md +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/SOURCES.txt +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/dependency_links.txt +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/requires.txt +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/top_level.txt +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/setup.py +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/event_metadata.py +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/plot/__init__.py +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/plot/plotting_tools.py +0 -0
- {icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/skyreader/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: icecube-skyreader
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: An API for Results Produced by SkyDriver & the Skymap Scanner
|
|
5
5
|
Home-page: https://github.com/icecube/skyreader
|
|
6
6
|
Download-URL: https://pypi.org/project/icecube-skyreader/
|
|
@@ -10,7 +10,7 @@ License: MIT
|
|
|
10
10
|
Project-URL: Tracker, https://github.com/icecube/skyreader/issues
|
|
11
11
|
Project-URL: Source, https://github.com/icecube/skyreader
|
|
12
12
|
Keywords: skymap scanner,skymap,HEALPix,neutrino,reconstruction,IceCube
|
|
13
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: icecube-skyreader
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: An API for Results Produced by SkyDriver & the Skymap Scanner
|
|
5
5
|
Home-page: https://github.com/icecube/skyreader
|
|
6
6
|
Download-URL: https://pypi.org/project/icecube-skyreader/
|
|
@@ -10,7 +10,7 @@ License: MIT
|
|
|
10
10
|
Project-URL: Tracker, https://github.com/icecube/skyreader/issues
|
|
11
11
|
Project-URL: Source, https://github.com/icecube/skyreader
|
|
12
12
|
Keywords: skymap scanner,skymap,HEALPix,neutrino,reconstruction,IceCube
|
|
13
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -17,7 +17,7 @@ __all__ = [
|
|
|
17
17
|
# is zero for an official release, positive for a development branch,
|
|
18
18
|
# or negative for a release candidate or beta (after the base version
|
|
19
19
|
# number has been incremented)
|
|
20
|
-
__version__ = "0.
|
|
20
|
+
__version__ = "0.2.0"
|
|
21
21
|
version_info = (
|
|
22
22
|
int(__version__.split(".")[0]),
|
|
23
23
|
int(__version__.split(".")[1]),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"""For encapsulating an event scan
|
|
2
|
-
|
|
1
|
+
"""For encapsulating the result of an event scan in a single instance."""
|
|
3
2
|
|
|
4
3
|
# fmt: off
|
|
5
4
|
# pylint: skip-file
|
|
@@ -29,8 +28,6 @@ from .event_metadata import EventMetadata
|
|
|
29
28
|
###############################################################################
|
|
30
29
|
# DATA TYPES
|
|
31
30
|
|
|
32
|
-
PixelTuple = Tuple[int, float, float, float]
|
|
33
|
-
|
|
34
31
|
|
|
35
32
|
class PyDictNSidePixels(TypedDict):
|
|
36
33
|
columns: List[str]
|
|
@@ -53,12 +50,10 @@ class InvalidPixelValueError(Exception):
|
|
|
53
50
|
# MAIN CLASS
|
|
54
51
|
|
|
55
52
|
class SkyScanResult:
|
|
56
|
-
"""This class parses
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
"""This class parses stores the relevant numeric result of the scan.
|
|
54
|
+
Ideally it should serve as the basic data structure for plotting /
|
|
55
|
+
processing / transmission of the scan result.
|
|
59
56
|
|
|
60
|
-
nsides_dict is a dictionary keyed by 'nside' values for which a scan
|
|
61
|
-
result is available (e.g. 8, 64, 512), see `pixel_classes.NSidesDict`.
|
|
62
57
|
The scan result is a dictionary:
|
|
63
58
|
- i (pixel index, integer) ->
|
|
64
59
|
'frame', 'llh', 'recoLossesInside', 'recoLossesTotal'
|
|
@@ -1161,7 +1156,7 @@ class SkyScanResult:
|
|
|
1161
1156
|
|
|
1162
1157
|
# dist = angular_distance(minRA, minDec, extra_ra * np.pi/180., extra_dec * np.pi/180.)
|
|
1163
1158
|
# print("Millipede best fit is", dist /(np.pi * extra_radius/(1.177 * 180.)), "sigma from reported best fit")
|
|
1164
|
-
|
|
1159
|
+
|
|
1165
1160
|
|
|
1166
1161
|
extra_ra_rad = np.radians(extra_ra)
|
|
1167
1162
|
extra_dec_rad = np.radians(extra_dec)
|
|
@@ -1171,20 +1166,20 @@ class SkyScanResult:
|
|
|
1171
1166
|
|
|
1172
1167
|
healpy.projscatter(np.degrees(extra_lon), np.degrees(extra_lat),
|
|
1173
1168
|
lonlat=True, c='m', marker='x', s=20, label=r'Reported online (50%, 90%)')
|
|
1174
|
-
for cont_lev, cont_scale, cont_col, cont_sty in zip(['50', '90.'],
|
|
1169
|
+
for cont_lev, cont_scale, cont_col, cont_sty in zip(['50', '90.'],
|
|
1175
1170
|
[1., 2.1459/1.177], ['m', 'm'], ['-', '--']):
|
|
1176
1171
|
spline_contour = circular_contour(extra_ra_rad, extra_dec_rad,
|
|
1177
1172
|
extra_radius_rad*cont_scale, healpy.get_nside(equatorial_map))
|
|
1178
1173
|
spline_lon = spline_contour[1]
|
|
1179
1174
|
spline_lat = np.pi/2. - spline_contour[0]
|
|
1180
|
-
healpy.projplot(np.degrees(spline_lon), np.degrees(spline_lat),
|
|
1181
|
-
lonlat=True, linewidth=2., color=cont_col,
|
|
1175
|
+
healpy.projplot(np.degrees(spline_lon), np.degrees(spline_lat),
|
|
1176
|
+
lonlat=True, linewidth=2., color=cont_col,
|
|
1182
1177
|
linestyle=cont_sty)
|
|
1183
1178
|
|
|
1184
1179
|
plt.legend(fontsize=6, loc="lower left")
|
|
1185
1180
|
|
|
1186
1181
|
# For vertical events, calculate the area with the number of pixels
|
|
1187
|
-
# In the healpy map
|
|
1182
|
+
# In the healpy map
|
|
1188
1183
|
for lev in contour_levels[1:2]:
|
|
1189
1184
|
area_per_pix = healpy.nside2pixarea(healpy.get_nside(equatorial_map))
|
|
1190
1185
|
num_pixs = np.count_nonzero(equatorial_map[~np.isnan(equatorial_map)] < lev)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/icecube_skyreader.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{icecube-skyreader-0.1.0 → icecube-skyreader-0.2.0}/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
|