arvi 0.2.11__py3-none-any.whl → 0.2.12__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.
arvi/timeseries.py CHANGED
@@ -1657,6 +1657,16 @@ class RV(ISSUES, REPORTS):
1657
1657
  for inst in singles:
1658
1658
  self.remove_instrument(inst, strict=True)
1659
1659
 
1660
+ def remove_more_than_n_per_night(self, n=2):
1661
+ """ Remove whenever there are more than `n` observations per night """
1662
+ ind = np.array([], dtype=int)
1663
+ for s in self:
1664
+ n_night = (np.abs(s.time[:, None] - s.time[None, :]) < 0.5).sum(axis=0)
1665
+ ind_s = np.where(n_night >= n)[0]
1666
+ ind = np.r_[ind, self._index_from_instrument_index(ind_s, s.instruments[0])]
1667
+ if len(ind) > 0:
1668
+ self.remove_point(ind)
1669
+
1660
1670
  def remove_prog_id(self, prog_id):
1661
1671
  """ Remove observations from a given program ID """
1662
1672
  from glob import has_magic
@@ -1924,7 +1934,7 @@ class RV(ISSUES, REPORTS):
1924
1934
  if np.isnan(d[m]).all():
1925
1935
  continue
1926
1936
 
1927
- result = dosigmaclip(d[m], low=sigma, high=sigma)
1937
+ result = dosigmaclip(d[m & self.mask], low=sigma, high=sigma)
1928
1938
  # n = self.vrad[m].size - result.clipped.size
1929
1939
 
1930
1940
  ind = m & self.mask & ((d < result.lower) | (d > result.upper))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arvi
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: The Automated RV Inspector
5
5
  Author-email: João Faria <joao.faria@unige.ch>
6
6
  License: MIT
@@ -23,7 +23,7 @@ arvi/sophie_wrapper.py,sha256=KUeWccXud5_Lrx72S1HSemHIZRdjd2oLvqyofwsL0QQ,3440
23
23
  arvi/spectra.py,sha256=ebF1ocodTastLx0CyqLSpE8EZNDXBF8riyfxMr3L6H0,7491
24
24
  arvi/stats.py,sha256=gvMkKzP83AV8_Oi71JHmA8QH8Y1z1viYykV9ELVDqZI,3547
25
25
  arvi/stellar.py,sha256=GQ7yweuBRnfkJ0M5eWjvLd8uvGq_by81PbXfidBvWis,4918
26
- arvi/timeseries.py,sha256=suXPLmFlNbnFbfixXufNMwqwZWz-FwKdckJ1x2PtrXQ,104664
26
+ arvi/timeseries.py,sha256=K33MmNG_xyAfr5Jw5lR_Yq0JJjCwEGPreaeMMoQoE9M,105145
27
27
  arvi/translations.py,sha256=PUSrn4zvYO2MqGzUxlFGwev_tBkgJaJrIYs6NKHzbWo,951
28
28
  arvi/utils.py,sha256=MuAgjyXr297Sm_T6QmB1riVUktyT9ud1qngGMgKlXMc,10863
29
29
  arvi/data/info.svg,sha256=0IMI6W-eFoTD8acnury79WJJakpBwLa4qKS4JWpsXiI,489
@@ -32,8 +32,8 @@ arvi/data/obs_affected_blue_cryostat_issues.dat,sha256=z4AK17xfz8tGTDv1FjRvQFnio
32
32
  arvi/data/extra/HD86226_PFS1.rdb,sha256=vfAozbrKHM_j8dYkCBJsuHyD01KEM1asghe2KInwVao,3475
33
33
  arvi/data/extra/HD86226_PFS2.rdb,sha256=F2P7dB6gVyzCglUjNheB0hIHVClC5RmARrGwbrY1cfo,4114
34
34
  arvi/data/extra/metadata.json,sha256=C69hIw6CohyES6BI9vDWjxwSz7N4VOYX0PCgjXtYFmU,178
35
- arvi-0.2.11.dist-info/licenses/LICENSE,sha256=6JfQgl7SpM55t0EHMFNMnNh-AdkpGW25MwMiTnhdWQg,1068
36
- arvi-0.2.11.dist-info/METADATA,sha256=G2yojj2vhNVuEPtoY81O3aWPvgMMxNw5ax4_40zVhb8,1933
37
- arvi-0.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- arvi-0.2.11.dist-info/top_level.txt,sha256=4EeiKDVLD45ztuflTGfQ3TU8GVjJg5Y95xS5XjI-utU,5
39
- arvi-0.2.11.dist-info/RECORD,,
35
+ arvi-0.2.12.dist-info/licenses/LICENSE,sha256=6JfQgl7SpM55t0EHMFNMnNh-AdkpGW25MwMiTnhdWQg,1068
36
+ arvi-0.2.12.dist-info/METADATA,sha256=w1LdRdx-VwxhRgcIik-9at_k49xkJQQasIrGu1qtwc4,1933
37
+ arvi-0.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ arvi-0.2.12.dist-info/top_level.txt,sha256=4EeiKDVLD45ztuflTGfQ3TU8GVjJg5Y95xS5XjI-utU,5
39
+ arvi-0.2.12.dist-info/RECORD,,
File without changes