Skip to content

crash in getALLdata #4

Description

@sousasag

Got the following error when trying the example code:
In [16]: user.getALLdata("CoRoT-7", downloadPath=mypath)
It downloads all the FEROS and HARPS spectra, but then fails to ESPRESSO which I guess don't have any observation.

It would be nice to:
1- add an option to select the instrument and eventually configuration to select files to download
2- separate in folders for each instrument when downloading all data

`*** Searching for ESPRESSO results ***
WARNING: NoResultsWarning: Query returned no results [starsearch.core]

TypeError Traceback (most recent call last)
in
----> 1 user.getALLdata("CoRoT-7", downloadPath="/mnt/e/Linux_stuff/Programas/GIT_Projects/StarSearch/tmpdir/Download/")

/mnt/e/Linux_stuff/Programas/GIT_Projects/StarSearch/starsearch/phase3Archive.py in getALLdata(self, star, downloadPath, date, SNR)
317 print('\n*** Searching for {0} results ***\n'.format(j))
318 if j in checkInstruments:
--> 319 self._searchAndDownload(star, j, downloadPath, date, SNR)
320 else:
321 print('No {0} data\n'.format(j))

/mnt/e/Linux_stuff/Programas/GIT_Projects/StarSearch/starsearch/phase3Archive.py in _searchAndDownload(self, star, instrument, downloadPath, date, SNR)
255 """
256 starARCFILE = np.array(self.searchStar(star, instrument,
--> 257 date, SNR)['ARCFILE'])
258 if downloadPath:
259 self.eso.retrieve_data(datasets = starARCFILE,

TypeError: 'NoneType' object is not subscriptable
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions