icecube-skyreader 1.4.0__tar.gz → 1.4.2__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.0 → icecube_skyreader-1.4.2}/PKG-INFO +1 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/PKG-INFO +1 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/pyproject.toml +1 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/__init__.py +1 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/event_metadata.py +1 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/plot/plotting_tools.py +3 -3
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/result.py +4 -1
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/LICENSE +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/README.md +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/SOURCES.txt +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/dependency_links.txt +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/requires.txt +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/top_level.txt +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/setup.cfg +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/setup.py +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/plot/__init__.py +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/plot/plot.py +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/py.typed +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/utils/__init__.py +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/utils/areas.py +0 -0
- {icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/skyreader/utils/handle_map_data.py +0 -0
|
@@ -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.2"
|
|
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"
|
|
@@ -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__ = "1.4.
|
|
20
|
+
__version__ = "1.4.2"
|
|
21
21
|
version_info = (
|
|
22
22
|
int(__version__.split(".")[0]),
|
|
23
23
|
int(__version__.split(".")[1]),
|
|
@@ -15,7 +15,7 @@ class EventMetadata:
|
|
|
15
15
|
event_type: str
|
|
16
16
|
mjd: float # required but meaningless for simulated events
|
|
17
17
|
is_real_event: bool # as opposed to simulation
|
|
18
|
-
version: int
|
|
18
|
+
version: int = 1
|
|
19
19
|
|
|
20
20
|
def __post_init__(self) -> None:
|
|
21
21
|
if self.is_real_event and not (
|
|
@@ -192,8 +192,8 @@ class DecFormatter(Formatter):
|
|
|
192
192
|
class AstroMollweideAxes(MollweideAxes):
|
|
193
193
|
name = 'astro mollweide'
|
|
194
194
|
|
|
195
|
-
def
|
|
196
|
-
super(AstroMollweideAxes, self).
|
|
195
|
+
def clear(self):
|
|
196
|
+
super(AstroMollweideAxes, self).clear()
|
|
197
197
|
self.set_xlim(0, 2*np.pi)
|
|
198
198
|
|
|
199
199
|
def set_xlim(self, *args, **kwargs):
|
|
@@ -259,4 +259,4 @@ class AstroMollweideAxes(MollweideAxes):
|
|
|
259
259
|
_, yscale = transform.transform_point((0, np.pi / 2.0))
|
|
260
260
|
return Affine2D() \
|
|
261
261
|
.scale(0.5 / xscale, 0.5 / yscale) \
|
|
262
|
-
.translate(0.5, 0.5)
|
|
262
|
+
.translate(0.5, 0.5)
|
|
@@ -203,6 +203,9 @@ class SkyScanResult:
|
|
|
203
203
|
|
|
204
204
|
def has_minimal_metadata(self) -> bool:
|
|
205
205
|
"""Check that the minimum metadata is set."""
|
|
206
|
+
if len(self.result) == 0:
|
|
207
|
+
return False
|
|
208
|
+
|
|
206
209
|
for mk in self.MINIMAL_METADATA_FIELDS:
|
|
207
210
|
for k in self.result:
|
|
208
211
|
if self.result[k].dtype.metadata is None:
|
|
@@ -221,7 +224,7 @@ class SkyScanResult:
|
|
|
221
224
|
first_metadata['event_type'],
|
|
222
225
|
first_metadata['mjd'],
|
|
223
226
|
first_metadata.get('is_real_event', False), # assume simulated event
|
|
224
|
-
first_metadata.get('version', 0), #
|
|
227
|
+
first_metadata.get('version', 0), # fallback to version 0 if not set
|
|
225
228
|
)
|
|
226
229
|
else:
|
|
227
230
|
self.logger.warning("Metadata doesn't seem to exist and will not be used for plotting.")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/icecube_skyreader.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{icecube_skyreader-1.4.0 → icecube_skyreader-1.4.2}/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
|