Lv0_get_swift_data.py
def download_txt(txtfile):
    """
    Given the text file of download instructions, take the URLs of where the data
    are stored within the HEASARC archive, and use download_wget.pl to retrieve them
    """
    contents = open(txtfile,'r').read().split('\n')
    urls = [contents[i].split(' ')[-1] for i in range(len(contents)-1)]

    for i in tqdm(range(len(urls))):
        subprocess.run(['perl','/Volumes/Samsung_T5/download_wget.pl',urls[i]])

    Given the text file of download instructions, take the URLs of where the data
    are stored within the HEASARC archive, and use download_wget.pl to retrieve them
    
Given the text file of download instructions, take the URLs of where the data
are stored within the HEASARC archive, and use download_wget.pl to retrieve them
Given the text file of download instructions take the URLs of where the data are stored within the HEASARC archive and use download_wget . pl to retrieve them
def download_txt(txtfile):
    contents = open(txtfile,'r').read().split('\n')
    urls = [contents[i].split(' ')[-1] for i in range(len(contents)-1)]
    for i in tqdm(range(len(urls))):
        subprocess.run(['perl','/Volumes/Samsung_T5/download_wget.pl',urls[i]])
def download_txt ( txtfile ) : contents = open ( txtfile , 'r' ) . read ( ) . split ( '\n' ) urls = [ contents [ i ] . split ( ' ' ) [ - 1 ] for i in range ( len ( contents ) - 1 ) ] for i in tqdm ( range ( len ( urls ) ) ) : subprocess . run ( [ 'perl' , '/Volumes/Samsung_T5/download_wget.pl' , urls [ i ] ] )
Given the text file of download instructions, take the URLs of where the data
are stored within the HEASARC archive, and use download_wget.pl to retrieve them
Given the text file of download instructions take the URLs of where the data are stored within the HEASARC archive and use download_wget . pl to retrieve them
"""
    Given the text file of download instructions, take the URLs of where the data
    are stored within the HEASARC archive, and use download_wget.pl to retrieve them
    """
txtfile