Skip to content

Instantly share code, notes, and snippets.

View kfindeisen's full-sized avatar

Krzysztof Findeisen kfindeisen

  • University of Washington
  • Seattle, Washington, USA
View GitHub Profile
@kfindeisen
kfindeisen / afwFilter.cc
Last active September 24, 2020 23:29 — forked from parejkoj/afwFilter.h
/**
* Pybind11 bindings for FilterLabel
*/
auto clsFilterLabel = wrappers.wrapType(
py::class_<FilterLabel, std::shared_ptr<FilterLabel>>(wrappers.module, "FilterLabel"),
[](auto & mod, auto & cls) {
cls.def(py::init([](py::object band, py::object physical) {
// Expand as we get more combinations of keywords
if (!band.is_none() && !physical.is_none()) {