noraeisner / LATTE

Lightcurve Analysis Tool for Transiting Exoplanet
GNU Lesser General Public License v3.0
39 stars 10 forks source link

batch mode still interactively showing plots when a single transit given #13

Open orionlee opened 4 years ago

orionlee commented 4 years ago

When using batch mode (--targetlist) and a given TIC in the input csv has only a single transit, LATTE still interactively shows plots.

E.g.,

>python -m LATTE --o --targetlist=dataLATTE\input353896872_sector25-only.csv

The csv file:

TICID,sectors,transits,BLS,model,FFI
353896872,25,"2003.14",yes,0,no
orionlee commented 4 years ago

I found the logic that deliberately started the GUI when only a single transit is given.

https://github.com/noraeisner/LATTE/blob/f5423bcd0bcb7f26f593576c27dbea95db879201/LATTE/__main__.py#L498-L505

            if (pp == False) and (isinstance(row['transits'], (float, int))):