Skip to content

Commit

Permalink
Skip missing spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
clairekope committed Jun 15, 2020
1 parent 9830596 commit 28ffa61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion disk_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
subhalo = get(url_sbhalos + str(sub_id))

if args.mock:
gr_color = gr_from_spectra(sub_id)
try:
gr_color = gr_from_spectra(sub_id)
except OSError:
gr_color = np.nan
my_gr[sub_id] = gr_color

else:
Expand Down

0 comments on commit 28ffa61

Please sign in to comment.