============================= test session starts ==============================
|
platform linux -- Python 3.5.2, pytest-3.2.0, py-1.4.34, pluggy-0.4.0
|
rootdir: /astro/users/danielsf/lsstsw3/build/meas_algorithms, inifile:
|
plugins: session2file-0.1.9, xdist-1.19.2.dev0+g459d52e.d20170831, forked-0.3.dev0+g1dd93f6.d20170831, flake8-0.8.1
|
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw20 I / gw21 I / gw22 I / gw23 I / gw24 I / gw25 I / gw26 I / gw27 I / gw28 I / gw29 I / gw30 I / gw31 I
|
gw0 [162] / gw1 [162] / gw2 [162] / gw3 [162] / gw4 [162] / gw5 [162] / gw6 [162] / gw7 [162] / gw8 [162] / gw9 [162] / gw10 [162] / gw11 [162] / gw12 [162] / gw13 [162] / gw14 [162] / gw15 [162] / gw16 [162] / gw17 [162] / gw18 [162] / gw19 [162] / gw20 [162] / gw21 [162] / gw22 [162] / gw23 [162] / gw24 [162] / gw25 [162] / gw26 [162] / gw27 [162] / gw28 [162] / gw29 [162] / gw30 [162] / gw31 [162]
|
|
scheduling tests via LoadScheduling
|
.....................................................................................................................F............................................
|
generated xml file: /astro/users/danielsf/lsstsw3/build/meas_algorithms/tests/.tests/pytest-meas_algorithms.xml
|
=================================== FAILURES ===================================
|
__________________ SpatialModelPsfTestCase.testCandidateList ___________________
|
[gw5] linux -- Python 3.5.2 /astro/users/danielsf/lsstsw3/miniconda/bin/python
|
|
self = <test_psfIO.SpatialModelPsfTestCase testMethod=testCandidateList>
|
|
def setUp(self):
|
width, height = 100, 300
|
self.mi = afwImage.MaskedImageF(afwGeom.ExtentI(width, height))
|
self.mi.set(0)
|
self.mi.getVariance().set(10)
|
self.mi.getMask().addMaskPlane("DETECTED")
|
|
self.FWHM = 5
|
self.ksize = 25 # size of desired kernel
|
|
self.exposure = afwImage.makeExposure(self.mi)
|
|
psf = roundTripPsf(2, algorithms.DoubleGaussianPsf(self.ksize, self.ksize,
|
self.FWHM/(2*math.sqrt(2*math.log(2))), 1, 0.1))
|
self.exposure.setPsf(psf)
|
|
for x, y in [(20, 20),
|
# (30, 35), (50, 50),
|
(60, 20), (60, 210), (20, 210)]:
|
|
flux = 10000 - 0*x - 10*y
|
|
sigma = 3 + 0.01*(y - self.mi.getHeight()/2)
|
> psf = roundTripPsf(3, algorithms.DoubleGaussianPsf(self.ksize, self.ksize, sigma, 1, 0.1))
|
|
tests/test_psfIO.py:111:
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
key = 3
|
psf = <lsst.meas.algorithms.doubleGaussianPsf.DoubleGaussianPsf object at 0x7fca627e56f8>
|
|
def roundTripPsf(key, psf):
|
global psfFileNum
|
pol = policy.Policy()
|
additionalData = dafBase.PropertySet()
|
|
if psfFileNum % 2 == 1:
|
storageType = "Boost"
|
else:
|
storageType = "Xml"
|
loc = dafPersist.LogicalLocation(
|
"tests/data/psf%d-%d.%s" % (psfFileNum, key, storageType))
|
psfFileNum += 1
|
persistence = dafPersist.Persistence.getPersistence(pol)
|
|
storageList = dafPersist.StorageList()
|
storage = persistence.getPersistStorage("%sStorage" % (storageType), loc)
|
storageList.append(storage)
|
persistence.persist(psf, storageList, additionalData)
|
|
storageList2 = dafPersist.StorageList()
|
> storage2 = persistence.getRetrieveStorage("%sStorage" % (storageType), loc)
|
E RuntimeError: unrecognized XML syntax
|
|
tests/test_psfIO.py:78: RuntimeError
|
==================== 1 failed, 161 passed in 40.90 seconds =====================
|
Chris Morrison [X], would you please review these changes?
price@pap-laptop:~/LSST/meas_algorithms (tickets/DM-11356=) $ git sub
commit 691608fcb86d29bb7ff0e539d48ab7875d0b0609
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jul 24 13:23:43 2017 -0400
LoadReferenceObjectsTask: add methods to provide metadata
The LoadReferenceObjectsTask is the consumer of what has been called the
'match metadata', because its 'joinMatchListWithCatalog' method reads it.
Therefore, it should also produce it, so that the format can be kept
consistent: encapsulation.
.../lsst/meas/algorithms/loadReferenceObjects.py | 67 +++++++++++++++++++---
1 file changed, 58 insertions(+), 9 deletions(-)
commit f60ad38116bbad15c1ff7142e0889f23f08d8c83
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jul 24 13:24:34 2017 -0400
LoadReferenceObjectsConfig: increase pixelMargin
This values matches MatchOptimisticBConfig.maxOffsetPix .
python/lsst/meas/algorithms/loadReferenceObjects.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
price@pap-laptop:~/LSST/meas_astrom (tickets/DM-11356=) $ git sub
commit 642ffd06f558aa2f6e4d0a3546aace5979ad9a85
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jul 24 13:28:25 2017 -0400
move createMatchMetadata functionality to LoadReferenceObjectsTask
LoadReferenceObjectsTask is the consumer of the 'match metadata',
and therefore, to maintain encapsulation, it should produce it.
python/lsst/meas/astrom/__init__.py | 1 -
python/lsst/meas/astrom/astrometry.py | 9 ++++--
python/lsst/meas/astrom/createMatchMetadata.py | 43 --------------------------
python/lsst/meas/astrom/directMatch.py | 3 +-
python/lsst/meas/astrom/ref_match.py | 8 +++--
5 files changed, 14 insertions(+), 50 deletions(-)
commit 705d2327b115327aacd41e15420019db50ed810e
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jul 24 13:30:35 2017 -0400
AstrometryTask: remove grow by maxOffsetPix
This grow is already performed by the reference catalog loader, but it
is controlled by the refObjLoader.pixelMargin parameter. That parameter
now matches maxOffsetPix. Added a note to maxOffsetPix that the pixelMargin
should be coordinated.
python/lsst/meas/astrom/astrometry.py | 5 +----
.../lsst/meas/astrom/matchOptimisticB/matchOptimisticBContinued.py | 3 ++-
python/lsst/meas/astrom/matchPessimisticB.py | 3 ++-
3 files changed, 5 insertions(+), 6 deletions(-)