-
Notifications
You must be signed in to change notification settings - Fork 40
Description
When attempting a PandExo (v3) transit simulation and using the following 'star' input:
{'type': 'phoenix', 'starpath': 'filename_star', 'w_unit': 'Angs,um,nm,Hz,sec,cm', 'f_unit': 'FLAM or W/m2/um or erg/s/cm2/Hz or Jy', 'mag': 7.009, 'hmag': 'H Band Magnitude', 'jmag': 'J Band Magnitude', 'ref_wave': 2.2, 'temp': 4780.0, 'metal': 0.31, 'logg': 4.66, 'radius': 0.68, 'r_unit': 'R_sun'}
The code crashes with
ParameterOutOfBounds: Parameter '[4800.0, 0.5, 5.0, 'phoenixp05/phoenixp05_4800.fits[g50]']' has no valid data.
This seems to be because the file 'g50' field of file grp/hst/cdbs/grid/phoenix/phoenixp05/phoenixp05_4800.fits contains only zeros!
Not really a problem with PandExo per se -- just that slightly more rigorous error-catching could be useful to handle this (and any similar) odd edge-cases.