Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mommert committed Oct 20, 2017
1 parent 8614ac7 commit 9cf7bb4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pp_distill.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,16 +639,25 @@ def distill(catalogs, man_targetname, offset, fixed_targets_file, posfile,

# sort measured magnitudes by target
if dat[0] == target:
print(dat[13])
print(dat[13].split(';'))

try:
filtername = dat[13].split(';')[3]
if 'manual_zp' in filtername:
filtername = filtername[0]
if 'manual_zp' in dat[13].split(';')[2]:
filtername = dat[13].split(';')[2][0]
except IndexError:
filtername = '-'
if 'manual_zp' in dat[13].split(';')[2]:
filtername = dat[13].split(';')[2][0]
try:
catalogname = dat[13].split(';')[2]
if 'manual_zp' in catalogname:
catalogname = 'manual_zp'
except IndexError:
catalogname = dat[13].split(';')[1]
if 'manual_zp' in catalogname:
catalogname = 'manual_zp'

output[target].append(dat)
outf.write(('%35.35s ' % dat[10].replace(' ', '_')) +
Expand Down

0 comments on commit 9cf7bb4

Please sign in to comment.