Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:None
-
Story Points:1
-
Sprint:Science Pipelines DM-W15-3
-
Team:Data Release Production
Description
from lsst.afw.table import BaseCatalog, Schema
|
|
s = Schema()
|
c1 = BaseCatalog(s)
|
c2 = BaseCatalog(s)
|
|
c1.extend(c2)
|
The above fails, saying:
Traceback (most recent call last):
|
File "test.py", line 7, in <module>
|
c1.extend(c2)
|
File "/Users/jds/Projects/Astronomy/LSST/stack/DarwinX86/afw/10.0+3/python/lsst/afw/table/tableLib.py", line 6909, in extend
|
_tableLib.BaseCatalog_extend(self, iterable, deep)
|
ValueError: invalid null reference in method 'BaseCatalog_extend', argument 3 of type 'lsst::afw::table::SchemaMapper const &'
|
Attachments
Issue Links
- relates to
-
DM-1083 Fix overload problems in SourceCatalog.append and .extend
- Done
Ready for review on tickets/
DM-1710.I created a new testBaseCatalog.py file for the test. This seems like a lot of boilerplate for a tiny test case and even more tiny bugfix, but there was nowhere else obvious to add a test and I'm naively hoping we might add more tests to this file in future. If you'd prefer that I just slip this test in somewhere else, though, that's fine with me.