Open orionlee opened 4 years ago
Hi, yes the initial LATTE was only designed to download the data from the nominal mission (from the first 26 from the first two years of TESS) I'm afraid. This will be fixed in the new LATTE release which has changed the way that the data is downloaded to make it faster and no longer require the data files (which is the reason that it is failing now). Test are being run on the new version now. As a quick fix, you can open the LATTEutils.py file and change all occurrences of "for sec in range(first_sec+1,27)" to "for sec in range(first_sec+1,50)" that should then allow you to download the necessary data. There are five occurrences of that line of code.
The error occurred before the the line for sec in range(first_sec+1,27)
that assumed there are only 26 sectors.
I think it has troubles in parsing the existing tess_mom_dumps.txt
, for the use case that one tries to add meta data to pre-existing set.
It's the first_sec = int(string[0:2])
in the following code snippets. It's probably an easy fix.
os.system('tail -n 1 {0}/data/tess_mom_dumps.txt > {0}/data/temp.txt'.format(indir))
with open("{}/data/temp.txt".format(indir), 'r') as f:
string = f.readlines()[-1]
first_sec = int(string[0:2])
The issue is resolved in LATTE-dev
branch.
I tried to download the additional sector 27/28 metadata (paths to lightcurve files, etc.), and got the following error.