Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hippke committed Mar 18, 2020
1 parent 459f05a commit a80cca3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ matrix:
dist: xenial
sudo: true
install:
- pip install astropy statsmodels scipy==1.2 supersmoother untrendy pygam # scipy 1.3 and statsmodel 0.9 are incompatible, fix to be expected in June 2019
- pip install astropy
- pip install statsmodels
- pip install scipy #==1.2 # scipy 1.3 and statsmodel 0.9 are incompatible, fix to be expected in June 2019
- pip install supersmoother
- pip install untrendy
- pip install pygam
- pip install scikit-learn==0.20 # later versions don't run on Python 2.7
- pip install statsmodels
- pip install numba
script:
- python setup.py install
Expand Down
6 changes: 3 additions & 3 deletions wotan/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,16 @@ def main():
)

print('lightcurve was split into', len(nsplines), 'segments')
print('nsplines', nsplines)

print('chosen number of splines', nsplines)
"""
import matplotlib.pyplot as plt
plt.scatter(time, flux, s=3, color='black')
plt.plot(time, trend_lc)
plt.show()
plt.scatter(time, flatten_lc, s=3, color='black')
plt.show()

"""
numpy.testing.assert_almost_equal(numpy.nansum(flatten_lc), 16678.312693036027, decimal=1)


Expand Down

0 comments on commit a80cca3

Please sign in to comment.