Pyriod 0.2.4__tar.gz → 0.2.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.
Files changed (30) hide show
  1. {Pyriod-0.2.4 → Pyriod-0.2.5}/PKG-INFO +17 -12
  2. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/Pyriod.py +7 -8
  3. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod.egg-info/PKG-INFO +17 -12
  4. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod.egg-info/requires.txt +1 -1
  5. {Pyriod-0.2.4 → Pyriod-0.2.5}/README.md +4 -7
  6. {Pyriod-0.2.4 → Pyriod-0.2.5}/requirements.txt +1 -1
  7. {Pyriod-0.2.4 → Pyriod-0.2.5}/setup.py +3 -1
  8. {Pyriod-0.2.4 → Pyriod-0.2.5}/LICENSE +0 -0
  9. {Pyriod-0.2.4 → Pyriod-0.2.5}/MANIFEST.in +0 -0
  10. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/__init__.py +0 -0
  11. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/docs/Periodogram.md +0 -0
  12. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/docs/Signals.md +0 -0
  13. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/docs/TimeSeries.md +0 -0
  14. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod/pyquist.py +0 -0
  15. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod.egg-info/SOURCES.txt +0 -0
  16. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod.egg-info/dependency_links.txt +0 -0
  17. {Pyriod-0.2.4 → Pyriod-0.2.5}/Pyriod.egg-info/top_level.txt +0 -0
  18. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/examples.md +0 -0
  19. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/img/Log.png +0 -0
  20. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/img/Periodogram.png +0 -0
  21. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/img/Pyriod.png +0 -0
  22. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/img/Signals.png +0 -0
  23. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/img/TimeSeries.png +0 -0
  24. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/index.md +0 -0
  25. {Pyriod-0.2.4 → Pyriod-0.2.5}/docs/tutorial.md +0 -0
  26. {Pyriod-0.2.4 → Pyriod-0.2.5}/examples/TESS_DBV_example.ipynb +0 -0
  27. {Pyriod-0.2.4 → Pyriod-0.2.5}/examples/TSC2_Demo.ipynb +0 -0
  28. {Pyriod-0.2.4 → Pyriod-0.2.5}/mkdocs.yml +0 -0
  29. {Pyriod-0.2.4 → Pyriod-0.2.5}/postBuild +0 -0
  30. {Pyriod-0.2.4 → Pyriod-0.2.5}/setup.cfg +0 -0
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Pyriod
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Basic period detection and fitting routines for astronomical time series.
5
5
  Home-page: https://github.com/keatonb/Pyriod
6
6
  Author: Keaton Bell
7
7
  Author-email: keatonbell@utexas.edu
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Development Status :: 4 - Beta
11
9
  Classifier: Programming Language :: Python
12
10
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
@@ -14,6 +12,18 @@ Classifier: Operating System :: OS Independent
14
12
  Requires-Python: >=3.6
15
13
  Description-Content-Type: text/markdown
16
14
  License-File: LICENSE
15
+ Requires-Dist: numpy>=1.11
16
+ Requires-Dist: pandas>=1.0
17
+ Requires-Dist: scipy>=0.19
18
+ Requires-Dist: astropy
19
+ Requires-Dist: lightkurve>=2.1.1
20
+ Requires-Dist: lmfit>=1.0
21
+ Requires-Dist: beautifulsoup4>=4.11
22
+ Requires-Dist: matplotlib>=3.4
23
+ Requires-Dist: ipympl>=0.7
24
+ Requires-Dist: ipywidgets>=7.5
25
+ Requires-Dist: qgrid>=1.3.1
26
+ Requires-Dist: ipyfilechooser>=0.3.5
17
27
 
18
28
  # Pyriod
19
29
 
@@ -32,6 +42,10 @@ or download the latest (possibly unstable) version from GitHub and run
32
42
  Additional documentation is available at [pyriod.readthedocs.io](https://pyriod.readthedocs.io).
33
43
 
34
44
  This code uses [Qgrid](https://github.com/quantopian/qgrid) and other Jupyter widgets to interactively display the frequency solution.
45
+ Unfortunately Qgrid is no longer supported. [A version that works with other modern packages](https://anaconda.org/eshard/qgrid) can be installed with
46
+
47
+ ```conda install -c eshard qgrid```
48
+
35
49
 
36
50
  To display the Pyriod GUI, you will need to first enable the following Jupyter notebook extensions in the terminal:
37
51
  ```
@@ -40,12 +54,3 @@ jupyter nbextension enable --py --sys-prefix widgetsnbextension
40
54
  jupyter nbextension enable --py --sys-prefix ipympl
41
55
  ```
42
56
 
43
- Thanks to heroic work of [j123github](https://github.com/j123github), Pyriod can now be run in JupyerLab by running
44
- ```
45
- jupyter labextension install @j123npm/qgrid2@1.1.4
46
- ```
47
- See [quantopian/qgrid/#356](https://github.com/quantopian/qgrid/pull/356) for details.
48
-
49
- This is a serious work in progress with many planned improvements. Please be patient, but also feel free to request new features by raising GitHub issues.
50
-
51
-
@@ -1325,10 +1325,10 @@ class Pyriod(object):
1325
1325
 
1326
1326
  def _update_signal_snr(self):
1327
1327
  # Add periods and period uncertainties
1328
- if ((self.noise_spectrum is not None) &
1328
+ if ((self.noise_spectrum is not None) &
1329
1329
  (self.significance_multiplier is not None)):
1330
1330
  self.fitvalues['snr'] = (
1331
- self.amp_conversion * self.fitvalues['amp'] /
1331
+ self.amp_conversion * self.fitvalues['amp'] /
1332
1332
  self.noise_spectrum(self.fitvalues['freq']))
1333
1333
 
1334
1334
  def _convert_fitvalues_to_qgrid(self):
@@ -1569,7 +1569,6 @@ class Pyriod(object):
1569
1569
  self.lcfig.canvas.draw_idle()
1570
1570
 
1571
1571
  def _mask_selected_pts(self, event):
1572
- self.log(event.key, "debug")
1573
1572
  if ((event.key in ["backspace", "delete"]) and (len(self.selector.ind) > 0)):
1574
1573
  self.log("Masking {} selected points.")
1575
1574
  self.lc["include"][self.selector.ind] = 0
@@ -1686,7 +1685,7 @@ class Pyriod(object):
1686
1685
  # Click within either frequency resolution or 1% of displayed range
1687
1686
  # TODO: make this work with log frequency too
1688
1687
  tolerance = np.max([self.fres,
1689
- 0.01*np.diff(self.perax.get_xlim())])
1688
+ 0.01*np.diff(self.perax.get_xlim())[0]])
1690
1689
  nearby = np.argwhere((self.freqs >= event.xdata - tolerance) &
1691
1690
  (self.freqs <= event.xdata + tolerance))
1692
1691
  ydata = self.perplot_resid.get_ydata()
@@ -1704,7 +1703,7 @@ class Pyriod(object):
1704
1703
  significant. There are two parts: self.noise_spectrum is an
1705
1704
  interpolation function for the average (mean or median) amplitude
1706
1705
  calculated in a moving frequency window across the residuals
1707
- periodogram; and self.significance_multiplier is a scaling factor for
1706
+ periodogram; and self.significance_multiplier is a scaling factor for
1708
1707
  converting this to a significance threshold.
1709
1708
 
1710
1709
  Parameters
@@ -1752,18 +1751,18 @@ class Pyriod(object):
1752
1751
  inbin = np.where(np.logical_and(self.freqs >= binstart[i],
1753
1752
  self.freqs <= binend[i]))
1754
1753
  avgnoise[i] = average(self.per_resid.power.value[inbin])
1755
-
1754
+
1756
1755
  # Extrapolate if fill_value not specified
1757
1756
  if 'fill_value' not in kwargs.keys():
1758
1757
  kwargs["fill_value"] = "extrapolate"
1759
-
1758
+
1760
1759
  if len(avgnoise) > 1:
1761
1760
  self.noise_spectrum = interp1d(midbin, avgnoise, bounds_error=False,
1762
1761
  **kwargs)
1763
1762
  elif len(avgnoise) == 1:
1764
1763
  self.noise_spectrum = lambda x: avgnoise[0]
1765
1764
  # todo: else more informative error
1766
-
1765
+
1767
1766
  self.significance_multiplier = multiplier
1768
1767
 
1769
1768
  # Update SNR of fitted signals
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Pyriod
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Basic period detection and fitting routines for astronomical time series.
5
5
  Home-page: https://github.com/keatonb/Pyriod
6
6
  Author: Keaton Bell
7
7
  Author-email: keatonbell@utexas.edu
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Development Status :: 4 - Beta
11
9
  Classifier: Programming Language :: Python
12
10
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
@@ -14,6 +12,18 @@ Classifier: Operating System :: OS Independent
14
12
  Requires-Python: >=3.6
15
13
  Description-Content-Type: text/markdown
16
14
  License-File: LICENSE
15
+ Requires-Dist: numpy>=1.11
16
+ Requires-Dist: pandas>=1.0
17
+ Requires-Dist: scipy>=0.19
18
+ Requires-Dist: astropy
19
+ Requires-Dist: lightkurve>=2.1.1
20
+ Requires-Dist: lmfit>=1.0
21
+ Requires-Dist: beautifulsoup4>=4.11
22
+ Requires-Dist: matplotlib>=3.4
23
+ Requires-Dist: ipympl>=0.7
24
+ Requires-Dist: ipywidgets>=7.5
25
+ Requires-Dist: qgrid>=1.3.1
26
+ Requires-Dist: ipyfilechooser>=0.3.5
17
27
 
18
28
  # Pyriod
19
29
 
@@ -32,6 +42,10 @@ or download the latest (possibly unstable) version from GitHub and run
32
42
  Additional documentation is available at [pyriod.readthedocs.io](https://pyriod.readthedocs.io).
33
43
 
34
44
  This code uses [Qgrid](https://github.com/quantopian/qgrid) and other Jupyter widgets to interactively display the frequency solution.
45
+ Unfortunately Qgrid is no longer supported. [A version that works with other modern packages](https://anaconda.org/eshard/qgrid) can be installed with
46
+
47
+ ```conda install -c eshard qgrid```
48
+
35
49
 
36
50
  To display the Pyriod GUI, you will need to first enable the following Jupyter notebook extensions in the terminal:
37
51
  ```
@@ -40,12 +54,3 @@ jupyter nbextension enable --py --sys-prefix widgetsnbextension
40
54
  jupyter nbextension enable --py --sys-prefix ipympl
41
55
  ```
42
56
 
43
- Thanks to heroic work of [j123github](https://github.com/j123github), Pyriod can now be run in JupyerLab by running
44
- ```
45
- jupyter labextension install @j123npm/qgrid2@1.1.4
46
- ```
47
- See [quantopian/qgrid/#356](https://github.com/quantopian/qgrid/pull/356) for details.
48
-
49
- This is a serious work in progress with many planned improvements. Please be patient, but also feel free to request new features by raising GitHub issues.
50
-
51
-
@@ -7,6 +7,6 @@ lmfit>=1.0
7
7
  beautifulsoup4>=4.11
8
8
  matplotlib>=3.4
9
9
  ipympl>=0.7
10
- ipywidgets<8.0,>=7.5
10
+ ipywidgets>=7.5
11
11
  qgrid>=1.3.1
12
12
  ipyfilechooser>=0.3.5
@@ -15,6 +15,10 @@ or download the latest (possibly unstable) version from GitHub and run
15
15
  Additional documentation is available at [pyriod.readthedocs.io](https://pyriod.readthedocs.io).
16
16
 
17
17
  This code uses [Qgrid](https://github.com/quantopian/qgrid) and other Jupyter widgets to interactively display the frequency solution.
18
+ Unfortunately Qgrid is no longer supported. [A version that works with other modern packages](https://anaconda.org/eshard/qgrid) can be installed with
19
+
20
+ ```conda install -c eshard qgrid```
21
+
18
22
 
19
23
  To display the Pyriod GUI, you will need to first enable the following Jupyter notebook extensions in the terminal:
20
24
  ```
@@ -23,10 +27,3 @@ jupyter nbextension enable --py --sys-prefix widgetsnbextension
23
27
  jupyter nbextension enable --py --sys-prefix ipympl
24
28
  ```
25
29
 
26
- Thanks to heroic work of [j123github](https://github.com/j123github), Pyriod can now be run in JupyerLab by running
27
- ```
28
- jupyter labextension install @j123npm/qgrid2@1.1.4
29
- ```
30
- See [quantopian/qgrid/#356](https://github.com/quantopian/qgrid/pull/356) for details.
31
-
32
- This is a serious work in progress with many planned improvements. Please be patient, but also feel free to request new features by raising GitHub issues.
@@ -7,6 +7,6 @@ lmfit>=1.0
7
7
  beautifulsoup4>=4.11
8
8
  matplotlib>=3.4
9
9
  ipympl>=0.7
10
- ipywidgets>=7.5, <8.0
10
+ ipywidgets>=7.5
11
11
  qgrid>=1.3.1
12
12
  ipyfilechooser>=0.3.5
@@ -8,7 +8,7 @@ with open("requirements.txt", "r") as fh:
8
8
 
9
9
  setuptools.setup(
10
10
  name="Pyriod",
11
- version="0.2.4",
11
+ version="0.2.5",
12
12
  author="Keaton Bell",
13
13
  author_email="keatonbell@utexas.edu",
14
14
  description="Basic period detection and fitting routines for astronomical time series.",
@@ -26,3 +26,5 @@ setuptools.setup(
26
26
  python_requires='>=3.6',
27
27
  include_package_data=True,
28
28
  )
29
+
30
+ print("IMPORTANT: install qgrid from https://anaconda.org/eshard/qgrid for Pyriod to work with modern environments.")
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