Robert, I'm not sure if you'd want to add it to this ticket, but while poking around in this repo I noticed a possible fail mode. In _dot here: you check for
isinstance(symb, afwGeom.ellipses.BaseCore)
|
You then call .getA() and .getB() and .getTheta() on symb, but I don't think all instances of afwGeom.ellipses.BaseCore have these attributes, including Quadrupole which you actually note as a possible valid object type.
print(type(sQuad))
|
<class 'lsst.afw.geom.ellipses.quadrupole.quadrupole.Quadrupole'>
|
|
isinstance(sQuad, afwGeom.ellipses.BaseCore)
|
True
|
|
sQuad.getA()
|
---------------------------------------------------------------------------
|
AttributeError Traceback (most recent call last)
|
<ipython-input-16-ee9b25dcce18> in <module>()
|
----> 1 sQuad.getA()
|
|
AttributeError: 'lsst.afw.geom.ellipses.quadrupole.quadrupole.Quadr' object has no attribute 'getA'
|
(and, of course, I may have missed something...so please correct me if I'm wrong!)
Robert, I'm not sure if you'd want to add it to this ticket, but while poking around in this repo I noticed a possible fail mode. In _dot here: you check for
You then call .getA() and .getB() and .getTheta() on symb, but I don't think all instances of afwGeom.ellipses.BaseCore have these attributes, including Quadrupole which you actually note as a possible valid object type.
True
sQuad.getA()
AttributeError Traceback (most recent call last)
(and, of course, I may have missed something...so please correct me if I'm wrong!)