-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Question] How to efficiently find long period signals in data with long gaps? #88
Comments
Do you have a good example to test? Code + data |
Hi. I was coming here to ask something similar. The point is that Do you think that it would make sense to calculate the time_span in a different way? I know that we can modify the |
Just as a suggestion and maybe @hippke has a better idea or can refute what I'll suggest. Maybe you could set the |
Ah, I see. At the time I tested TLS, I used a lot of Kepler and early TESS data with only minor gaps. So that's a use case I had not considered. Unfortunately, there is an inevitable computational burden when you go to longer time baseline (for a corresponding gain in sensitivity to longer period planets). So there's no easy solution, i.e. no free lunch. Making TLS run faster will make it less sensitve. However, that may still be OK or even desired, depending on the use case. |
I think that it would be feasible without much effort to add the option to the user to provide the period grid. What do you think @hippke ? If not provided then TLS would use the Renault strategy used nowadays. |
Sure, but what's it good for? The user can already request a grid with any [from, to] in any log-spacing they want? |
Do you mean by using the oversampling factor? I thought that the lower limit for that value was 1 because numpy gave me some error where it said that only integers were allowed. I will try to reproduce that situacion, but if true, the grid density would be restricted |
Yes, you should be able to use any floating point value for |
I'm unable to reproduce it. Therefore I agree with you that p_min, p_max and oversampling (given that it can be lower than 1) are enough for us the users to tune the period grid. I hope that it suffices the OP needs. |
Hi. I reproduced it. See attached error traceback for oversampling = 3.75 as example:
With this in mind, we cannot go down oversampling_factor = 1 and we'd be restricted. |
Do you think that the error found above is a bug or is it expected? |
Looks like a bug. Can you share the code to reproduce? I will look into it and make a bugfix if possible. |
Sure. Here it is for
And the entire output:
Kind regards. |
Fixed in version 1.0.26, which is also available via pip. |
Great! I would sayas that we can explore long data gaps with the same computacional cost than one after another sectors. To me this should be clear enough and answers the question. However I am not the OP. |
Hi. I've already tried the new version. Sorry for bringing this up again. It works sometimes but I found a case where it fails with a new error. My code is:
And the error:
|
Hi. Sorry for bothering again, just wanted to keep the issue alive so we can get a fix as soon as you find it possible. |
Sorry you are having trouble. Looking into it right now. The runtime of your script is ~1 minute on my Core-i7 7700k using 7 threads (and considerable background load). Your runtime shows as 13 minutes. Are you using a slow machine, or is there something else going on? Why not use I have made a change to the code which fixes the issue, but raises some nasty warnings. Before I release a new version, can you test the new fix? You need to replace the file |
Hi. Because |
Hi, here are the results (it seems that the execution worked fine a.k.a. no errors):
Those ugly warnings were already appearing in a fresh installation that I was running from another project which also uses TLS. I don't know what is the cause of them but they probably need a fix too. Thanks for being working on this! And please keep me posted whenever you consider it is fixed. |
Can you suggest a strategy how to efficiently find transits for light curves with long gap e.g. 1 year as in the case of EPICs observed in K2 Campaign 16 and again in C18? I may perhaps limit the period search space using
period_min
andperiod_max
but I wonder if you have a better solution.The text was updated successfully, but these errors were encountered: