astro-otter 0.3.4__py3-none-any.whl → 0.3.5__py3-none-any.whl

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.

@@ -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
- astro_otter-0.3.4.dist-info/licenses/LICENSE,sha256=s9IPE8A3CAMEaZpDhj4eaorpmfLYGB0mIGphq301PUY,1067
1
+ astro_otter-0.3.5.dist-info/licenses/LICENSE,sha256=s9IPE8A3CAMEaZpDhj4eaorpmfLYGB0mIGphq301PUY,1067
2
2
  otter/__init__.py,sha256=pvX-TN7nLVmvKpkDi89Zxe-jMfHNiVMD3zsd_bPEK9Y,535
3
- otter/_version.py,sha256=4e-rRQ10MXC0XGDQ42IH1rgDeYhFVmHgOS10vu4Eixw,76
3
+ otter/_version.py,sha256=5LVB9FiBWDmYEmn6fLO_jW-OA3WAt_uN2xs5Dc4KpNY,76
4
4
  otter/exceptions.py,sha256=3lQF4AXVTfs9VRsVePQoIrXnramsPZbUL5crvf1s9Ng,1702
5
5
  otter/schema.py,sha256=J-iI_kEEd0aHN_Hr49HFEa8W07enh1FSDbU99NwIz3Y,11240
6
6
  otter/util.py,sha256=G5M2PdtPGKpRXCqkItyXMLj6h5F3EboBBDKWMViw04k,23333
@@ -8,11 +8,11 @@ otter/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  otter/io/data_finder.py,sha256=M6kzqMyy-yhwQfxbOs2E7i_8bCcZFW4Zyf8z-6LCxNQ,38425
9
9
  otter/io/host.py,sha256=xv_SznZuvMoMVsZLqlcmlOyaqKCMZqlTQ_gkN4VBSTw,7139
10
10
  otter/io/otter.py,sha256=qTKTfGkBdmsWjLF1cxjiX-SvOaKOPK-nd0aK7TtPQO8,61076
11
- otter/io/transient.py,sha256=mFnLZb1OqH1ZGixNLfGfHF10gD9lFRigHzSSYJ-bUn8,57330
11
+ otter/io/transient.py,sha256=1yVy-9NEo9ozM4B-sqEcGlJW_1abD0sWSXYG0Ex-3Jc,58020
12
12
  otter/plotter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  otter/plotter/otter_plotter.py,sha256=yUjGHR0FcbndwC1yLQekJWqX2KBMAJXtjFKbbASG_Cc,2144
14
14
  otter/plotter/plotter.py,sha256=ni4WV63wIjhMHStDmuccltaMHSaFbwwfztYpuMdYAz8,9340
15
- astro_otter-0.3.4.dist-info/METADATA,sha256=iY6Px0lX-bbby7SCnmRCkFNZGtWi01Ni4Gz1Gb02vr8,7046
16
- astro_otter-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- astro_otter-0.3.4.dist-info/top_level.txt,sha256=Wth72sCwBRUk3KZGknSKvLQDMFuJk6qiaAavMDOdG5k,6
18
- astro_otter-0.3.4.dist-info/RECORD,,
15
+ astro_otter-0.3.5.dist-info/METADATA,sha256=CTru7txtl0-m5zmGInfuJ_qd0upiUjF1eGTU6Eo-ZEk,7046
16
+ astro_otter-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ astro_otter-0.3.5.dist-info/top_level.txt,sha256=Wth72sCwBRUk3KZGknSKvLQDMFuJk6qiaAavMDOdG5k,6
18
+ astro_otter-0.3.5.dist-info/RECORD,,
otter/_version.py CHANGED
@@ -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"
otter/io/transient.py CHANGED
@@ -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