Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mommert committed Dec 7, 2017
1 parent fcb29ce commit bc33b68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,14 @@ def add_calibration(data, imagestretch='linear'):
+ "<TH>Instrumental (mag)</TH><TH>Calibrated (mag)</TH>" \
+ "<TH>Residual (mag</TH>\n</TR>\n"
for i, idx in enumerate(dat['zp_usedstars']):
name = dat['match'][0][2][idx]
if isinstance(name, bytes):
name = name.decode('utf8')
html += ("<TR><TD>%d</TD><TD>%s</TD><TD>%12.8f</TD>" \
+ "<TD>%12.8f</TD><TD>%.3f+-%.3f</TD>" \
+ "<TD>%.3f+-%.3f</TD>" \
+ "<TD>%.3f+-%.3f</TD><TD>%.3f</TD></TR>") % \
(i+1, dat['match'][0][2][idx].decode('utf8'),
(i+1, name,
dat['match'][0][3][idx],
dat['match'][0][4][idx], dat['match'][0][0][idx],
dat['match'][0][1][idx],
Expand Down

0 comments on commit bc33b68

Please sign in to comment.