astro-otter 0.3.4__tar.gz → 0.3.5__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.4/src/astro_otter.egg-info → astro_otter-0.3.5}/PKG-INFO +1 -1
  2. {astro_otter-0.3.4 → astro_otter-0.3.5/src/astro_otter.egg-info}/PKG-INFO +1 -1
  3. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/_version.py +1 -1
  4. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/io/transient.py +12 -0
  5. {astro_otter-0.3.4 → astro_otter-0.3.5}/LICENSE +0 -0
  6. {astro_otter-0.3.4 → astro_otter-0.3.5}/README.md +0 -0
  7. {astro_otter-0.3.4 → astro_otter-0.3.5}/pyproject.toml +0 -0
  8. {astro_otter-0.3.4 → astro_otter-0.3.5}/setup.cfg +0 -0
  9. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/astro_otter.egg-info/SOURCES.txt +0 -0
  10. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/astro_otter.egg-info/dependency_links.txt +0 -0
  11. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/astro_otter.egg-info/requires.txt +0 -0
  12. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/astro_otter.egg-info/top_level.txt +0 -0
  13. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/__init__.py +0 -0
  14. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/exceptions.py +0 -0
  15. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/io/__init__.py +0 -0
  16. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/io/data_finder.py +0 -0
  17. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/io/host.py +0 -0
  18. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/io/otter.py +0 -0
  19. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/plotter/__init__.py +0 -0
  20. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/plotter/otter_plotter.py +0 -0
  21. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/plotter/plotter.py +0 -0
  22. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/schema.py +0 -0
  23. {astro_otter-0.3.4 → astro_otter-0.3.5}/src/otter/util.py +0 -0
  24. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_data_finder.py +0 -0
  25. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_exceptions.py +0 -0
  26. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_host.py +0 -0
  27. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_otter.py +0 -0
  28. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_package.py +0 -0
  29. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_plotter.py +0 -0
  30. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_schema.py +0 -0
  31. {astro_otter-0.3.4 → astro_otter-0.3.5}/tests/test_transient.py +0 -0
  32. {astro_otter-0.3.4 → astro_otter-0.3.5}/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.4
3
+ Version: 0.3.5
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.4
3
+ Version: 0.3.5
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.4"
5
+ __version__ = "0.3.5"
@@ -932,6 +932,18 @@ class Transient(MutableMapping):
932
932
  if deduplicate:
933
933
  outdata = deduplicate(outdata)
934
934
 
935
+ # throw a warning if the output dataframe has UV/Optical/IR or Radio data
936
+ # where we don't know if the dataset has been host corrected or not
937
+ if ("corr_host" not in outdata) or (
938
+ len(outdata[pd.isna(outdata.corr_host) * (outdata.obs_type != "xray")]) >= 0
939
+ ):
940
+ logger.warning(
941
+ f"{self.default_name} has at least one photometry point where it is "
942
+ + "unclear if a host subtraction was performed. This can be especially "
943
+ + "detrimental for UV data. Please consider filtering out UV/Optical/IR"
944
+ + " or radio rows where the corr_host column is null/None/NaN."
945
+ )
946
+
935
947
  logger.removeFilter(warn_filt)
936
948
  return outdata
937
949
 
File without changes
File without changes
File without changes
File without changes