Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG add kind attribute for PrePSFMom fitter #212

Merged
merged 8 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v2.0.6

### bug fixes

- Fixed a bug where the `kind` attribute was not set for the `PrePSFMom` fitter.


## v2.0.5

### new features
Expand Down
2 changes: 1 addition & 1 deletion ngmix/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.5' # noqa
__version__ = '2.0.6' # noqa
8 changes: 8 additions & 0 deletions ngmix/prepsfmom.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ def __init__(self, fwhm, kernel, pad_factor=4, ap_rad=1.5):
self.pad_factor = pad_factor
self.kernel = kernel
self.ap_rad = ap_rad
if self.kernel == "ksigma":
self.kind = "ksigma"
beckermr marked this conversation as resolved.
Show resolved Hide resolved
elif self.kernel in ["gauss", "pgauss"]:
self.kind = "pgauss"
else:
raise ValueError(
"The kernel '%s' for PrePSFMom is not recognized!" % self.kernel
)

def go(self, obs, return_kernels=False, no_psf=False):
"""Measure the pre-PSF ksigma moments.
Expand Down