24 #ifndef LSST_AFW_TABLE_IO_PYTHON_H 25 #define LSST_AFW_TABLE_IO_PYTHON_H 27 #include "pybind11/pybind11.h" 35 namespace py = pybind11;
64 using namespace pybind11::literals;
67 module, (
"PersistableFacade" + suffix).c_str());
68 cls.def_static(
"readFits",
71 cls.def_static(
"readFits",
87 template <
typename Class,
typename ...Args>
89 cls.def_static(
"readFits",
97 "fileName"_a,
"mode"_a =
"w");
100 "manager"_a,
"mode"_a =
"w");
101 cls.def(
"isPersistable", &Class::isPersistable);
void declarePersistableFacade(pybind11::module &module, std::string const &suffix)
Wraps an instantiation of PersistableFacade.
void addPersistableMethods(pybind11::class_< Class, Args... > &cls)
Add table::io::Persistable and PersistableFacade methods to the pybind11 wrapper for a class...
A base class for image defects.
Lifetime-management for memory that goes into FITS memory files.
A CRTP facade class for subclasses of Persistable.
const int DEFAULT_HDU
Specify that the default HDU should be read.