Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
olaurino committed Jul 15, 2019
1 parent 261c4ed commit 1bf762a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sherpa/instrument.py
Expand Up @@ -741,6 +741,12 @@ def _check_pixel_size(self, data):


class PSFSpace2D(EvaluationSpace2D):
"""
This class defines a special evaluation space that has the same boundaries as the data space but a number of pixels
consistent with the pixel size of the PSF. This space is used when the data image and the PSF have a different
pixel size so the model is evaluated on the "PSF space" and then rebinned back to the data space for the calculation
of the statistic during a fit.
"""
def __init__(self, data_space, psf_model, data_pixel_size=None):
if data_pixel_size is None:
data_pixel_size = [1, 1]
Expand Down

0 comments on commit 1bf762a

Please sign in to comment.