astro-otter 0.3.2__tar.gz → 0.3.3__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.
Potentially problematic release.
This version of astro-otter might be problematic. Click here for more details.
- {astro_otter-0.3.2/src/astro_otter.egg-info → astro_otter-0.3.3}/PKG-INFO +1 -2
- {astro_otter-0.3.2 → astro_otter-0.3.3}/pyproject.toml +0 -1
- {astro_otter-0.3.2 → astro_otter-0.3.3/src/astro_otter.egg-info}/PKG-INFO +1 -2
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/astro_otter.egg-info/requires.txt +0 -1
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/_version.py +1 -1
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_data_finder.py +1 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_host.py +6 -1
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_otter.py +1 -1
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_transient.py +1 -12
- {astro_otter-0.3.2 → astro_otter-0.3.3}/LICENSE +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/README.md +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/setup.cfg +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/astro_otter.egg-info/SOURCES.txt +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/astro_otter.egg-info/dependency_links.txt +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/astro_otter.egg-info/top_level.txt +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/__init__.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/exceptions.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/io/__init__.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/io/data_finder.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/io/host.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/io/otter.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/io/transient.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/plotter/__init__.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/plotter/otter_plotter.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/plotter/plotter.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/schema.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/src/otter/util.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_exceptions.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_package.py +0 -0
- {astro_otter-0.3.2 → astro_otter-0.3.3}/tests/test_util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astro-otter
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Author-email: Noah Franz <nfranz@arizona.edu>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -54,7 +54,6 @@ Requires-Dist: skypatrol
|
|
|
54
54
|
Requires-Dist: fundamentals
|
|
55
55
|
Requires-Dist: astro-datalab
|
|
56
56
|
Requires-Dist: sparclclient
|
|
57
|
-
Requires-Dist: astro-ghost
|
|
58
57
|
Requires-Dist: pydantic
|
|
59
58
|
Requires-Dist: pyreadline3; platform_system == "Windows"
|
|
60
59
|
Provides-Extra: docs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astro-otter
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Author-email: Noah Franz <nfranz@arizona.edu>
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -54,7 +54,6 @@ Requires-Dist: skypatrol
|
|
|
54
54
|
Requires-Dist: fundamentals
|
|
55
55
|
Requires-Dist: astro-datalab
|
|
56
56
|
Requires-Dist: sparclclient
|
|
57
|
-
Requires-Dist: astro-ghost
|
|
58
57
|
Requires-Dist: pydantic
|
|
59
58
|
Requires-Dist: pyreadline3; platform_system == "Windows"
|
|
60
59
|
Provides-Extra: docs
|
|
@@ -4,6 +4,7 @@ Test the otter Host class
|
|
|
4
4
|
|
|
5
5
|
from otter import Host
|
|
6
6
|
from astropy.coordinates import SkyCoord
|
|
7
|
+
from urllib.error import URLError
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
def test_constructor():
|
|
@@ -67,5 +68,9 @@ def test_query_blast():
|
|
|
67
68
|
Test the query of BLAST
|
|
68
69
|
"""
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
try:
|
|
72
|
+
host = Host.query_blast(tns_name="AT2024advm")
|
|
73
|
+
except URLError:
|
|
74
|
+
return # this isn't our fault, probably
|
|
75
|
+
|
|
71
76
|
assert host.transient_name == "2024advm", "name incorrect!"
|
|
@@ -43,7 +43,7 @@ def test_get_meta():
|
|
|
43
43
|
assert metahyz["name/default_name"] == "2018hyz"
|
|
44
44
|
assert metahyz["date_reference"][0]["value"] == "2018-10-14"
|
|
45
45
|
assert metahyz["date_reference"][0]["date_format"] == "iso"
|
|
46
|
-
assert metahyz["classification"][0]["object_class"] == "TDE"
|
|
46
|
+
assert metahyz["classification"]["value"][0]["object_class"] == "TDE"
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def test_cone_search():
|
|
@@ -7,7 +7,7 @@ are more complex and require additional tests.
|
|
|
7
7
|
import pytest
|
|
8
8
|
import numpy as np
|
|
9
9
|
from otter import Transient, Host
|
|
10
|
-
from otter.exceptions import OtterLimitationError
|
|
10
|
+
from otter.exceptions import OtterLimitationError
|
|
11
11
|
from astropy.coordinates import SkyCoord
|
|
12
12
|
from astropy.time import Time
|
|
13
13
|
|
|
@@ -281,17 +281,6 @@ def test_clean_photometry():
|
|
|
281
281
|
assert np.isclose(phot["converted_flux"].iloc[0], 17.905, atol=1e-2), msg
|
|
282
282
|
assert 17.59 in list(uvoir["converted_flux"]), msg
|
|
283
283
|
|
|
284
|
-
# then with different "by"
|
|
285
|
-
with pytest.raises(IOError):
|
|
286
|
-
t.clean_photometry(by="foo")
|
|
287
|
-
|
|
288
|
-
phot_val = t.clean_photometry(by="value").reset_index()
|
|
289
|
-
|
|
290
|
-
assert len(phot_val.obs_type.unique()) == 1, msg
|
|
291
|
-
assert phot_val.obs_type.iloc[0] == "xray", msg
|
|
292
|
-
assert len(phot_val["converted_flux_unit"].unique()) == 1, msg
|
|
293
|
-
assert phot_val["converted_flux_unit"][0] == "mag(AB)", msg
|
|
294
|
-
|
|
295
284
|
# then with different returned units
|
|
296
285
|
# and only get the radio data
|
|
297
286
|
phot_non_default = t.clean_photometry(
|
|
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
|
|
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
|