Skip to content

Commit

Permalink
Merge pull request #21 from Christopher-Bradshaw/master
Browse files Browse the repository at this point in the history
fix tiny bug in cutout funcs
  • Loading branch information
dr-guangtou authored Nov 16, 2020
2 parents 80a4ce1 + 29bb2df commit 32a19ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unagi/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def hsc_tricolor(coord, cutout_size=10.0 * u.Unit('arcsec'), coord_2=None,
h_half_str = "{:8.2f}{}".format(ang_size_h.value, ang_size_h.unit).strip()
size_str = '{0}_{1}'.format(w_half_str, h_half_str)
else:
size_str = "{:8.2f}{}".format(cutout_size.value, cutout_size.unit).strip()
size_str = "{:8.2f}{}".format(ang_size_w.value, ang_size_w.unit).strip()
prefix = '{0}_{1}_{2}_{3}_{4}'.format(dr, rerun, ra_str, dec_str, size_str)
else:
ra1_str, dec1_str = coord.to_string('decimal', precision=4).split(' ')
Expand Down Expand Up @@ -197,7 +197,7 @@ def hsc_cutout(coord, coord_2=None, cutout_size=10.0 * u.Unit('arcsec'), filters
h_half_str = "{:8.2f}{}".format(ang_size_h.value, ang_size_h.unit).strip()
size_str = '{0}_{1}'.format(w_half_str, h_half_str)
else:
size_str = "{:8.2f}{}".format(cutout_size.value, cutout_size.unit).strip()
size_str = "{:8.2f}{}".format(ang_size_w.value, ang_size_w.unit).strip()
prefix = '{0}_{1}_{2}_{3}_{4}'.format(dr, rerun, ra_str, dec_str, size_str)
else:
ra1_str, dec1_str = coord.to_string('decimal', precision=4).split(' ')
Expand Down

0 comments on commit 32a19ba

Please sign in to comment.