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

isinstance in tess.py #10

Open
rajeevzar opened this issue Mar 14, 2022 · 0 comments
Open

isinstance in tess.py #10

rajeevzar opened this issue Mar 14, 2022 · 0 comments

Comments

@rajeevzar
Copy link

rajeevzar commented Mar 14, 2022

Hi,
I am using Smurfs. I seem to have successfully installed it. I am trying the examples but I am getting the following error:

star = Smurfs(target_name="Beta Pictoris")
Searching processed light curves for Beta Pictoris on mission(s) Kepler,K2,TESS ...
Found processed light curve for Beta Pictoris!
Traceback (most recent call last):
File "", line 1, in
File "/Users/manickr/venv/lib/python3.8/site-packages/smurfs/_smurfs/smurfs.py", line 72, in init
self.lc, self.validation_page = download_lc(target_name, flux_type,mission)
File "/Users/manickr/venv/lib/python3.8/site-packages/smurfs/preprocess/tess.py", line 237, in download_lc
type = 'TESS' if isinstance(d, TessLightCurveFile) else 'Kepler'
TypeError: isinstance() arg 2 must be a type or tuple of types

Any solution for that?

I also noticed that in periodogram.py

from lightkurve import Periodogram as lk_Periodogram,LightCurve

should be changed to:

from lightkurve.periodogram import Periodogram as lk_Periodogram,LightCurve

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

1 participant