Skip to content

Commit

Permalink
Fix spatialOrder minimum value to avoid seg-fault.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Aug 19, 2021
1 parent 357aad2 commit ab8916b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/meas/extensions/psfex/psfexPsfDeterminer.py
Expand Up @@ -40,7 +40,7 @@ class PsfexPsfDeterminerConfig(measAlg.BasePsfDeterminerConfig):
doc="specify spatial order for PSF kernel creation",
dtype=int,
default=2,
check=lambda x: x >= 0,
check=lambda x: x >= 1,
)
sizeCellX = pexConfig.Field(
doc="size of cell used to determine PSF (pixels, column direction)",
Expand Down
1 change: 1 addition & 0 deletions tests/test_PsfexPsf.py
Expand Up @@ -38,6 +38,7 @@
import lsst.meas.extensions.psfex.psfexPsfDeterminer
assert lsst.meas.extensions.psfex.psfexPsfDeterminer # make pyflakes happy


try:
display
except NameError:
Expand Down

0 comments on commit ab8916b

Please sign in to comment.