Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/lsst/afw/table/python/catalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void declareCatalogOverloads(PyCatalog<Record> &cls) {
});

cls.def("_get_column_from_key",
[](Catalog const &self, Key<T> const &key, pybind11::object py_column_view) {
[](Catalog const &self, Key<T> const &key, pybind11::object py_column_view) -> pybind11::tuple {
std::shared_ptr<ColumnView> column_view = py_column_view.cast<std::shared_ptr<ColumnView>>();
if (!column_view && self.isContiguous()) {
// If there's no column view cached, but there could be,
Expand Down Expand Up @@ -241,7 +241,7 @@ void declareCatalogArrayOverloads(PyCatalog<Record> &cls) {
using ColumnView = typename Record::ColumnView;

cls.def("_get_column_from_key",
[](Catalog const &self, Key<Array<T>> const &key, pybind11::object py_column_view) {
[](Catalog const &self, Key<Array<T>> const &key, pybind11::object py_column_view) -> pybind11::tuple {
std::shared_ptr<ColumnView> column_view = py_column_view.cast<std::shared_ptr<ColumnView>>();
if (!column_view && self.isContiguous()) {
// If there's no column view cached, but there could be,
Expand Down