24 #ifndef LSST_AFW_TABLE_IO_PYTHON_H 25 #define LSST_AFW_TABLE_IO_PYTHON_H 27 #include "pybind11/pybind11.h" 63 [[deprecated(
"Use `addPersistableMethods` instead. To be removed after 20.0.0.")]]
66 using namespace pybind11::literals;
69 module, (
"PersistableFacade" + suffix).c_str());
70 cls.def_static(
"readFits",
73 cls.def_static(
"readFits",
89 template <
typename Class,
typename... Args>
91 cls.def_static(
"readFits",
99 "fileName"_a,
"mode"_a =
"w");
102 "manager"_a,
"mode"_a =
"w");
103 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.