Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_base
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Team:Architecture
-
Urgent?:No
Description
Running the following snippet causes the Python kernel crashes:
import lsst.afw.geom as afwGeom |
import lsst.afw.image as afwImage |
import lsst.meas.base as measBase |
import numpy as np |
|
img = afwImage.ImageD(np.random.randn(16,16)) |
shape = afwGeom.Quadrupole(-2, -2, 0) # <-- This is invalid |
flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, |
img.getBBox().getCenter())
|
|
This is yet another example of a user error that causes a complete crash instead of raising Exceptions. The correct way is to set `normalize=True` when constructing the `shape` variable.
Attachments
Issue Links
- relates to
-
DM-3476 calcmom in SdssShape.cc has poor error reporting
- Won't Fix
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Description |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # This is incorrect flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions |
Running the following snippet causes the Python kernel crashes:
{code:python} import lsst.afw.geom as afwGeom import lsst.afw.image as afwImage import lsst.meas.base as measBase import numpy as np img = afwImage.ImageD(np.random.randn(16,16)) shape = afwGeom.Quadrupole(-2, -2, 0) # <-- This is invalid flux = measBase.SdssShapeAlgorithm.computeFixedMomentsFlux(img, shape, img.getBBox().getCenter()) {code} This is yet another example of a user error that causes a complete crash instead of raising Exceptions. The correct way is to set `normalize=True` when constructing the `shape` variable. |
Assignee | Matthias Wittgen [ wittgen ] |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Component/s | meas_base [ 10750 ] |
Reviewers | Arun Kannawadi [ kannawad ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Epic Link | PREOPS-995 [ 1078856 ] |
Story Points | 4 |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
Epic Link | PREOPS-995 [ 1078856 ] | PREOPS-1161 [ 1475339 ] |
Team | Data Release Production [ 10301 ] | Architecture [ 10304 ] |
Epic Link | PREOPS-1161 [ 1475339 ] |
Epic Link | PREOPS-1161 [ 1475339 ] |