Skip to content

Commit

Permalink
Handle missing omitted stars in 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Oct 6, 2024
1 parent ea27fea commit 23d8671
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions mica/vv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,10 +1087,17 @@ def _read_in_data(self):

if ocat_info["type"] == 1:
import agasc
from agasc.agasc import IdNotFound

star_info = agasc.get_star(
ocat_info["id"], use_supplement=False, agasc_file="miniagasc_*"
)
try:
star_info = agasc.get_star(
ocat_info["id"], use_supplement=False, agasc_file="miniagasc_*"
)
except IdNotFound:
agasc_file = agasc.get_agasc_filename("miniagasc_*", version="1p7")
star_info = agasc.get_star(
ocat_info["id"], use_supplement=False, agasc_file=agasc_file
)
mock_prop = dict(
cel_loc_flag=0,
id_status="OMITTED",
Expand Down

0 comments on commit 23d8671

Please sign in to comment.