Skip to content

Commit

Permalink
cast int as str since Stack code seem to have problems with unsigned …
Browse files Browse the repository at this point in the history
…ints > 2**31 in PropertySets
  • Loading branch information
jchiang87 committed Jan 16, 2019
1 parent 596294c commit 165ac18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/desc/imsim/imSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def add_cosmic_rays(gs_interpreter, phot_params):
crs.set_seed(cr_seed)
gs_interpreter.detectorImages[name] = \
galsim.Image(crs.paint(imarr, exptime=exptime), wcs=image.wcs)
image.wcs.fitsHeader.set('CR_SEED', cr_seed)
image.wcs.fitsHeader.set('CR_SEED', str(cr_seed))


def add_treering_info(detectors, tr_filename=None):
Expand Down

0 comments on commit 165ac18

Please sign in to comment.