icecube-skyreader 1.2.3__tar.gz → 1.2.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.2.3 → icecube-skyreader-1.2.4}/PKG-INFO +1 -1
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/PKG-INFO +1 -1
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/__init__.py +1 -1
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/result.py +8 -1
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/LICENSE +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/README.md +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/SOURCES.txt +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/dependency_links.txt +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/requires.txt +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/top_level.txt +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/setup.cfg +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/setup.py +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/event_metadata.py +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/plot/__init__.py +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/plot/plotting_tools.py +0 -0
- {icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/skyreader/py.typed +0 -0
|
@@ -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.2.
|
|
20
|
+
__version__ = "1.2.4"
|
|
21
21
|
version_info = (
|
|
22
22
|
int(__version__.split(".")[0]),
|
|
23
23
|
int(__version__.split(".")[1]),
|
|
@@ -537,7 +537,14 @@ class SkyScanResult:
|
|
|
537
537
|
for key in nside_data.dtype.metadata:
|
|
538
538
|
# dtype.metadata is a mappingproxy (dict-like) containing numpy-typed values
|
|
539
539
|
# convert numpy types to python bultins to be JSON-friendly
|
|
540
|
-
|
|
540
|
+
val = nside_data.dtype.metadata[key]
|
|
541
|
+
if isinstance(val, np.generic):
|
|
542
|
+
# numpy type, non serializable
|
|
543
|
+
# convert to python built-in by calling item()
|
|
544
|
+
pydict[nside]['metadata'][key] = nside_data.dtype.metadata[key].item()
|
|
545
|
+
else:
|
|
546
|
+
# likely a natively serializable python built-in
|
|
547
|
+
pydict[nside]['metadata'][key] = val
|
|
541
548
|
return pydict
|
|
542
549
|
|
|
543
550
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{icecube-skyreader-1.2.3 → icecube-skyreader-1.2.4}/icecube_skyreader.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{icecube-skyreader-1.2.3 → icecube-skyreader-1.2.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
|