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:
intr = abs(T0-t) < 0.25 # create a mask of the in transit times
oot = (abs(T0-t) < 0.5) * (abs(T0-t) < 0.3) # create a mask of the out of transit times
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,
def plot_in_out_TPF(tic, indir, X4_list, oot_list, t_list, intr_list, T0_list, tpf_filt_list, args, duration):
...
...
...
intr = abs(T0-t) < (duration/2 + 0.002) # create a mask of the in transit times
oot = (abs(T0-t) < 0.5) * (abs(T0-t) > (duration/2 + 0.002)) # create a mask of the out of transit times
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,