Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example #22

Open
ruimeng-duan opened this issue Nov 14, 2020 · 1 comment
Open

example #22

ruimeng-duan opened this issue Nov 14, 2020 · 1 comment

Comments

@ruimeng-duan
Copy link

ruimeng-duan commented Nov 14, 2020

i am a graduate student,i am very interested in your code,but i can not run your test example.Is the test_detrend is an example for the detrending,i am not sure whether i run right or wrong.could you help me or give me another specific example,thank you very much @rodluger

@Yash-10
Copy link

Yash-10 commented Sep 22, 2021

Hello @ruimeng-duan I was going through the issues and came here. I tried to run the test_detrend module by going into the tests directory and running (in an IPython shell):

In [1]: from test_detrend import test_detrend
   ...: test_detrend()

I got the following output running it the first time inside a virtual environment:

[pysyzygy] Compiling C source code...
[pysyzygy] Generating shared library...
[pysyzygy] Install successful.
De-trended CDPP: nan ppm
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-1-c4ea1f4325df> in <module>
      1 from test_detrend import test_detrend
----> 2 test_detrend()

~/everest/tests/test_detrend.py in test_detrend()
     70     # Check!
     71     print("De-trended CDPP: %.3f ppm" % star.cdpp)
---> 72     assert (star.cdpp > 15.) and (star.cdpp < 19.), \
     73         "De-trended CDPP is different from benchmark value (17.302 ppm)."
     74 

AssertionError: De-trended CDPP is different from benchmark value (17.302 ppm).

It seems somehow the CDPP value is nan. Do you also get the same error?

Below is the pip freeze output:

astropy==4.3.1
cycler==0.10.0
everest-pipeline==2.0.12
george==0.4.0
k2plr==0.2.9
kiwisolver==1.3.2
matplotlib==3.4.3
numpy==1.21.2
Pillow==8.3.2
pyerfa==2.0.0
pyparsing==2.4.7
PyPDF2==1.26.0
pysyzygy==0.0.2
python-dateutil==2.8.2
scipy==1.7.1
six==1.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants