astro-otter 0.3.5__tar.gz → 0.4.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.

Potentially problematic release.


This version of astro-otter might be problematic. Click here for more details.

Files changed (32) hide show
  1. {astro_otter-0.3.5/src/astro_otter.egg-info → astro_otter-0.4.0}/PKG-INFO +1 -1
  2. {astro_otter-0.3.5 → astro_otter-0.4.0/src/astro_otter.egg-info}/PKG-INFO +1 -1
  3. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/_version.py +1 -1
  4. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/io/otter.py +10 -10
  5. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_data_finder.py +1 -1
  6. {astro_otter-0.3.5 → astro_otter-0.4.0}/LICENSE +0 -0
  7. {astro_otter-0.3.5 → astro_otter-0.4.0}/README.md +0 -0
  8. {astro_otter-0.3.5 → astro_otter-0.4.0}/pyproject.toml +0 -0
  9. {astro_otter-0.3.5 → astro_otter-0.4.0}/setup.cfg +0 -0
  10. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/astro_otter.egg-info/SOURCES.txt +0 -0
  11. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/astro_otter.egg-info/dependency_links.txt +0 -0
  12. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/astro_otter.egg-info/requires.txt +0 -0
  13. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/astro_otter.egg-info/top_level.txt +0 -0
  14. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/__init__.py +0 -0
  15. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/exceptions.py +0 -0
  16. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/io/__init__.py +0 -0
  17. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/io/data_finder.py +0 -0
  18. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/io/host.py +0 -0
  19. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/io/transient.py +0 -0
  20. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/plotter/__init__.py +0 -0
  21. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/plotter/otter_plotter.py +0 -0
  22. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/plotter/plotter.py +0 -0
  23. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/schema.py +0 -0
  24. {astro_otter-0.3.5 → astro_otter-0.4.0}/src/otter/util.py +0 -0
  25. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_exceptions.py +0 -0
  26. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_host.py +0 -0
  27. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_otter.py +0 -0
  28. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_package.py +0 -0
  29. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_plotter.py +0 -0
  30. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_schema.py +0 -0
  31. {astro_otter-0.3.5 → astro_otter-0.4.0}/tests/test_transient.py +0 -0
  32. {astro_otter-0.3.5 → astro_otter-0.4.0}/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.5
3
+ Version: 0.4.0
4
4
  Author-email: Noah Franz <nfranz@arizona.edu>
5
5
  License: MIT License
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astro-otter
3
- Version: 0.3.5
3
+ Version: 0.4.0
4
4
  Author-email: Noah Franz <nfranz@arizona.edu>
5
5
  License: MIT License
6
6
 
@@ -2,4 +2,4 @@
2
2
  Just define the package version in one place
3
3
  """
4
4
 
5
- __version__ = "0.3.5"
5
+ __version__ = "0.4.0"
@@ -63,15 +63,15 @@ class Otter(Database):
63
63
 
64
64
  def __init__(
65
65
  self,
66
- url: str = "http://127.0.0.1:8529",
66
+ url: str = "https://otter.idies.jhu.edu/api",
67
67
  username: str = os.environ.get("ARANGO_USER_USERNAME", "user-guest"),
68
- password: str = os.environ.get("ARANGO_USER_PASSWORD", ""),
68
+ password: str = os.environ.get("ARANGO_USER_PASSWORD", "test"),
69
69
  gen_summary: bool = False,
70
70
  datadir: str = None,
71
71
  debug: bool = False,
72
72
  **kwargs,
73
73
  ) -> None:
74
- print("Attempting to login with the following credentials:")
74
+ print(f"Attempting to login to {url} with the following credentials:")
75
75
  print(f"username: {username}")
76
76
  print(f"password: {password}")
77
77
 
@@ -943,7 +943,7 @@ class Otter(Database):
943
943
 
944
944
  # merge the meta and phot data
945
945
  if phot is not None:
946
- data = pd.merge(phot, meta, on="name", how="inner")
946
+ data = pd.merge(phot, meta, on="name", how="outer")
947
947
  else:
948
948
  data = meta
949
949
 
@@ -951,11 +951,11 @@ class Otter(Database):
951
951
  assert (
952
952
  len(data[pd.isna(data.ra)].name.unique()) == 0
953
953
  ), "Missing some RA and Decs, please check the input files!"
954
- if phot is not None:
955
- for name in meta.name:
956
- assert len(data[data.name == name]) == len(
957
- phot[phot.name == name]
958
- ), f"failed on {name}"
954
+ # if phot is not None:
955
+ # for name in meta.name:
956
+ # assert len(data[data.name == name]) == len(
957
+ # phot[phot.name == name]
958
+ # ), f"failed on {name}"
959
959
 
960
960
  # actually do the data conversion to OTTER
961
961
  all_jsons = []
@@ -1084,7 +1084,7 @@ class Otter(Database):
1084
1084
  # skip the photometry code if there is no photometry file
1085
1085
  # if there is a photometry file then we want to convert it below
1086
1086
  phot_sources = []
1087
- if phot is not None:
1087
+ if phot is not None and not np.all(pd.isna(tde["flux"])):
1088
1088
  tde["obs_type"] = [
1089
1089
  freq_to_obstype(vv * u.Unit(uu))
1090
1090
  for vv, uu in zip(
@@ -98,7 +98,7 @@ def test_query_simbad():
98
98
  df1 = construct_data_finder()
99
99
  res = df1.query_simbad()
100
100
 
101
- assert len(res) == 3
101
+ assert len(res) == 1
102
102
 
103
103
 
104
104
  def test_query_vizier():
File without changes
File without changes
File without changes
File without changes