Open priyashmistry opened 2 years ago
@noraeisner Can you please look into this?
I also think it would be useful to have a transit duration parameter.
Other reason of having sometimes inconsistent results, is concerned with the "mask of the out of transit times".
I believe that it's a typo in the signal:
Instead of:
oot = (abs(T0-t) < 0.5) * (abs(T0-t) < 0.3) # create a mask of the out of transit times?
I think it should be:
oot = (abs(T0-t) < 0.5) * (abs(T0-t) > 0.3)
Similar bugs for OOT mask are in per-pixel plot workflow:
In brew_LATTE_FFI()
:
https://github.com/noraeisner/LATTE/blob/7ac35c8a51949345bc076fd30a456e74fce70c51/LATTE/LATTEbrew.py#L734
In download_TPF()
, used by brew_LATTE()
:
https://github.com/noraeisner/LATTE/blob/7ac35c8a51949345bc076fd30a456e74fce70c51/LATTE/LATTEutils.py#L5361
I was testing LATTE on some TESS targets, and In/Out Transit Flux Difference test seems to be creating inappropriate results, while rest of the tests gave quite good outputs. I checked the source code of LATTE and here it seems to be the problem,
LATTEutils.py, Line 7692:
Why you are assuming constant transit duration for every test, and that is also that huge (0.25 + 0.25 = 0.5 days) ? Most of the targets I studied till now has transit duration less than 0.1 - 0.2 days.
Suggestion: Instead of fixing the transit duration you can define new variable (duration) in the function like this,