Skip to content

Commit

Permalink
Fix errors spotted by Chris.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed May 11, 2020
1 parent f77f87c commit fba6d15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions galsim/gsobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ def _calculate_nphotons(self, n_photons, poisson_flux, max_extra_noise, rng):


def makePhot(self, n_photons=0, rng=None, max_extra_noise=0., poisson_flux=None,
sensor=None, surface_ops=(), maxN=None, local_wcs=None):
surface_ops=(), local_wcs=None):
"""
Make photons for a profile.
Expand Down Expand Up @@ -2125,7 +2125,6 @@ def makePhot(self, n_photons=0, rng=None, max_extra_noise=0., poisson_flux=None,
Returns:
- a `PhotonArray` with the data about the photons.
"""
from .sensor import Sensor
# Make sure the type of n_photons is correct and has a valid value:
if n_photons < 0.:
raise GalSimRangeError("Invalid n_photons < 0.", n_photons, 0., None)
Expand Down

0 comments on commit fba6d15

Please sign in to comment.