Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions exotic/exotic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,22 @@ def main():
if not args.override:
nea_obj = NASAExoplanetArchive(planet=userpDict['pName'])
userpDict['pName'], CandidatePlanetBool, pDict = nea_obj.planet_info()

# --- V2 SOTA FALLBACK (FIXED FOR CANDIDATES) ---
if pDict is None:
pDict = {}

if not pDict.get('ra') or not pDict.get('dec'):
user_ra = userpDict.get('ra')
user_dec = userpDict.get('dec')

if user_ra is not None and user_dec is not None:
log_info("NASA Archive coords missing. Falling back to inits.json RA/DEC.")
pDict['ra'] = user_ra
pDict['dec'] = user_dec
else:
log_info("WARNING: NASA Archive coords missing AND no RA/DEC provided. FOV plot may fail.")
# -----------------------------------------------
else:
pDict = userpDict
CandidatePlanetBool = False
Expand Down