Skip to content

Commit

Permalink
add DUP to catalog.py (reverse) type map
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed May 12, 2019
1 parent 6022ed0 commit e5468a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions py/legacypipe/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
FixedCompositeGalaxy: 'COMP',
SimpleGalaxy: 'SIMP',
RexGalaxy: 'REX',
#GaiaSource: 'GAIA',
GaiaSource: 'PSF',
type(None): 'NONE' }

fits_reverse_typemap = dict([(v,k) for k,v in fits_typemap.items()])
fits_reverse_typemap.update({ 'DUP': GaiaSource })

fits_short_typemap = { PointSource: 'P',
ExpGalaxy: 'E',
DevGalaxy: 'D',
Expand Down Expand Up @@ -218,7 +220,7 @@ def read_fits_catalog(T, hdr=None, invvars=False, bands='grz',
hdr = T._header
if allbands is None:
allbands = bands
rev_typemap = dict([(v,k) for k,v in fits_typemap.items()])
rev_typemap = fits_reverse_typemap

if unpackShape and ellipseClass != EllipseE:
print('Not doing unpackShape because ellipseClass != EllipseE.')
Expand Down

0 comments on commit e5468a3

Please sign in to comment.