Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:0.25
-
Epic Link:
-
Team:SQuaRE
Description
I get the following error installing sims_catalog on current master:
[2017-03-05T22:58:05.422745Z] Failed test output:
|
[2017-03-05T22:58:05.435037Z] tests/testCompoundCatalogDBObject.py
|
[2017-03-05T22:58:05.435053Z]
|
[2017-03-05T22:58:05.435183Z] /Volumes/PS1/lsstsw/build/sims_catalogs/python/lsst/sims/catalogs/db/dbConnection.py:455: UserWarning: duplicate object identifier class4 specified. This will override previous definition on line 48 of tests/testCompoundCatalogDBObject.py
|
[2017-03-05T22:58:05.435207Z] (srcline, srcfile))
|
[2017-03-05T22:58:05.435324Z] ../Volumes/PS1/lsstsw/build/sims_catalogs/python/lsst/sims/catalogs/db/dbConnection.py:455: UserWarning: duplicate object identifier dummy specified. This will override previous definition on line 206 of tests/testCompoundCatalogDBObject.py
|
[2017-03-05T22:58:05.435339Z] (srcline, srcfile))
|
[2017-03-05T22:58:05.435483Z] ..../Users/wmwv/lsstsw/stack/DarwinX86/sqlalchemy/1.0.8.lsst3+3/lib/python/SQLAlchemy-1.0.8-py2.7-macosx-10.10-x86_64.egg/sqlalchemy/sql/elements.py:3779: SAWarning: Textual SQL expression 'mag<11.0' should be explicitly declared as text('mag<11.0') (this warning may be suppressed after 10 occurrences)
|
[2017-03-05T22:58:05.435511Z] {"expr": util.ellipses_string(element)})
|
[2017-03-05T22:58:05.435687Z] E/Users/wmwv/lsstsw/stack/DarwinX86/sqlalchemy/1.0.8.lsst3+3/lib/python/SQLAlchemy-1.0.8-py2.7-macosx-10.10-x86_64.egg/sqlalchemy/sql/elements.py:3779: SAWarning: Textual SQL expression 'ra between 100.000000 and...' should be explicitly declared as text('ra between 100.000000 and...') (this warning may be suppressed after 10 occurrences)
|
[2017-03-05T22:58:05.435724Z] {"expr": util.ellipses_string(element)})
|
[2017-03-05T22:58:05.435732Z] EE..
|
[2017-03-05T22:58:05.435770Z] ======================================================================
|
[2017-03-05T22:58:05.435801Z] ERROR: testContraint (__main__.CompoundWithObsMetaData)
|
[2017-03-05T22:58:05.435839Z] ----------------------------------------------------------------------
|
[2017-03-05T22:58:05.435860Z] Traceback (most recent call last):
|
[2017-03-05T22:58:05.435899Z] File "tests/testCompoundCatalogDBObject.py", line 675, in testContraint
|
[2017-03-05T22:58:05.435946Z] self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
|
[2017-03-05T22:58:05.436018Z] IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
|
[2017-03-05T22:58:05.436026Z]
|
[2017-03-05T22:58:05.436064Z] ======================================================================
|
[2017-03-05T22:58:05.436095Z] ERROR: testObsMetaData (__main__.CompoundWithObsMetaData)
|
[2017-03-05T22:58:05.436133Z] ----------------------------------------------------------------------
|
[2017-03-05T22:58:05.436154Z] Traceback (most recent call last):
|
[2017-03-05T22:58:05.436194Z] File "tests/testCompoundCatalogDBObject.py", line 622, in testObsMetaData
|
[2017-03-05T22:58:05.436240Z] self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
|
[2017-03-05T22:58:05.436305Z] IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
|
[2017-03-05T22:58:05.436310Z]
|
[2017-03-05T22:58:05.436347Z] ======================================================================
|
[2017-03-05T22:58:05.436384Z] ERROR: testObsMetadataAndConstraint (__main__.CompoundWithObsMetaData)
|
[2017-03-05T22:58:05.436421Z] ----------------------------------------------------------------------
|
[2017-03-05T22:58:05.436442Z] Traceback (most recent call last):
|
[2017-03-05T22:58:05.436488Z] File "tests/testCompoundCatalogDBObject.py", line 731, in testObsMetadataAndConstraint
|
[2017-03-05T22:58:05.436535Z] self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
|
[2017-03-05T22:58:05.436598Z] IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
|
[2017-03-05T22:58:05.436623Z]
|
[2017-03-05T22:58:05.436661Z] ----------------------------------------------------------------------
|
[2017-03-05T22:58:05.436677Z] Ran 11 tests in 0.754s
|
[2017-03-05T22:58:05.436682Z]
|
[2017-03-05T22:58:05.436695Z] FAILED (errors=3)
|
[2017-03-05T22:58:05.436713Z] The following tests failed:
|
[2017-03-05T22:58:05.441293Z] /Volumes/PS1/lsstsw/build/sims_catalogs/tests/.tests/testCompoundCatalogDBObject.py.failed
|
[2017-03-05T22:58:05.441535Z] 1 tests failed
|
[2017-03-05T22:58:05.442545Z] scons: *** [checkTestStatus] Error 1
|
[2017-03-05T22:58:05.445721Z] scons: building terminated because of errors.
|
Attachments
Issue Links
- relates to
-
DM-9316 meas_base tests broken with NumPy 1.12
- Done
ix is a float. That's not allowed as of at least numpy version 1.12.