jbirky / apogee_tools

Modeling tools for SDSS/APOGEE spectra
http://apogee-tools.readthedocs.io/
MIT License
2 stars 3 forks source link

error on search.py #21

Closed aburgasser closed 6 years ago

aburgasser commented 6 years ago

Commands:

params = ['TEFF'] ranges = [[0,3600]] source_table = ap.multiParamSearch(par=params, select=ranges, save_dir='/Users/adam/Desktop/tmp.csv',model='MARCS')

Error:

in () 1 params = ['TEFF'] 2 ranges = [[0,3600]] ----> 3 source_table = ap.multiParamSearch(par=params, select=ranges, save_dir='/Users/adam/Desktop/tmp.csv',model='MARCS') /Users/adam/python_codes/apogee_tools/apogee_tools/utils/search.py in multiParamSearch(**kwargs) 324 # Save data frame to csv file and save to the 'output' directory specified by keyword argument 325 tmin, tmax = select[0][0], select[0][1] --> 326 lmin, lmax = select[1][0], select[1][1] 327 mmin, mmax = select[2][0], select[2][1] 328 IndexError: list index out of range
jbirky commented 6 years ago

Fixed in commit 3d70fc9