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

error while detrending the 1 light curve without MPI #12

Closed
rishikeshprl opened this issue Mar 2, 2017 · 4 comments
Closed

error while detrending the 1 light curve without MPI #12

rishikeshprl opened this issue Mar 2, 2017 · 4 comments

Comments

@rishikeshprl
Copy link

Dear Sir/Mam,

I was using your package for Detrending 1 light curve of K2 campaign 10. but i am continuously getting this error.please help me

Thanks in advance!!!!!!!!!

Regards,
Rishi

THE ERROR IS

INFO Master: Detrending 1 light curves without MPI
INFO Master:
INFO Master: Saving the results to .
INFO Master:
INFO Master: Differential evolution parameters
INFO Master: Population size: 100
INFO Master: Number of iterations: 150
INFO Master: Maximum DE time: 300.00 seconds
INFO Master:
ERROR Worker 0 <229004835>: The campaign not known and no splits given.
Traceback (most recent call last):
File "/usr/local/bin/k2sc", line 417, in
detrend(dataset)
File "/usr/local/bin/k2sc", line 140, in detrend
detrender = Detrender(flux, inputs, mask = mask, splits = splits,
UnboundLocalError: local variable 'splits' referenced before assignment

@hpparvi hpparvi closed this as completed Mar 5, 2018
@benjaminpope
Copy link
Contributor

benjaminpope commented Aug 6, 2021 via email

@Somayeh91
Copy link

Hi Benjamin,

I got a fits file of a K2 light curve from mast. The K2 ID is 201166680 and it's campaign 10(2).
After installation, on my terminal, I typed k2sc and I got the same exact error as in the first message on this issue. Then I specified the argument --splits and it seemed to have resolved the issue, but I ended up getting another error:

k2sc ./ktwo201166680.fits --splits=[2772,2800]

INFO Master: Detrending 1 light curves without MPI
INFO Master:
INFO Master: Saving the results to .
INFO Master:
INFO Master: Differential evolution parameters
INFO Master: Population size: 100
INFO Master: Number of iterations: 150
INFO Master: Maximum DE time: 300.00 seconds
INFO Master:
Traceback (most recent call last):
File "/Users/.../.local/lib/python3.7/site-packages/K2SC-1.0.1.4-py3.7.egg/k2sc/k2io.py", line 104, in read
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/.../opt/anaconda3/bin/k2sc", line 413, in
dataset = reader.read(infile, sid=sid, type=args.flux_type)
File "/Users/.../.local/lib/python3.7/site-packages/K2SC-1.0.1.4-py3.7.egg/k2sc/k2io.py", line 106, in read

@benjaminpope
Copy link
Contributor

Can you post the full error, and the full light curve file name?

@benjaminpope
Copy link
Contributor

Try with the latest version?

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

4 participants