LSSTApplications  18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
Namespaces | Classes | Typedefs | Functions
lsst::afw::table::io Namespace Reference

Namespaces

 python
 

Classes

struct  ArchiveIndexSchema
 Schema for the index catalog that specifies where objects are stored in the data catalogs. More...
 
class  CatalogVector
 A vector of catalogs used by Persistable. More...
 
class  FitsColumnReader
 Polymorphic reader interface used to read different kinds of objects from one or more FITS binary table columns. More...
 
class  FitsReader
 A utility class for reading FITS binary tables. More...
 
class  FitsSchemaInputMapper
 A class that describes a mapping from a FITS binary table to an afw::table Schema. More...
 
struct  FitsSchemaItem
 A structure that describes a field as a collection of related strings read from the FITS header. More...
 
class  FitsWriter
 Writer object for FITS binary tables. More...
 
class  InputArchive
 A multi-catalog archive object used to load table::io::Persistable objects. More...
 
class  MalformedArchiveError
 An exception thrown when an InputArchive's contents do not make sense. More...
 
class  OutputArchive
 A multi-catalog archive object used to save table::io::Persistable objects. More...
 
class  OutputArchiveHandle
 An object passed to Persistable::write to allow it to persist itself. More...
 
class  Persistable
 A base class for objects that can be persisted via afw::table::io Archive classes. More...
 
class  PersistableFacade
 A CRTP facade class for subclasses of Persistable. More...
 
class  PersistableFactory
 A base class for factory classes used to reconstruct objects from records. More...
 
class  PersistenceError
 An exception thrown when problems occur during persistence. More...
 

Typedefs

using PyPersistable = py::class_< Persistable, std::shared_ptr< Persistable > >
 

Functions

void wrapFits (utils::python::WrapperCollection &wrappers)
 
void wrapPersistable (WrapperCollection &)
 
 PYBIND11_MODULE (_io, mod)
 
void erase (int column)
 

Typedef Documentation

◆ PyPersistable

Definition at line 37 of file _persistable.cc.

Function Documentation

◆ erase()

void lsst::afw::table::io::erase ( int  column)

◆ PYBIND11_MODULE()

lsst::afw::table::io::PYBIND11_MODULE ( _io  ,
mod   
)

Definition at line 41 of file _io.cc.

41  {
42  WrapperCollection wrappers(mod, "lsst.afw.table.io");
43  wrapPersistable(wrappers);
44  wrapFits(wrappers);
45  wrappers.finish();
46 }
void wrapPersistable(WrapperCollection &)
Definition: _persistable.cc:39
void wrapFits(utils::python::WrapperCollection &wrappers)
Definition: _fits.cc:36

◆ wrapFits()

void lsst::afw::table::io::wrapFits ( utils::python::WrapperCollection wrappers)

Definition at line 36 of file _fits.cc.

36  {
37  wrappers.wrap([](auto& mod) {
38  mod.def("setPreppedRowsFactor",
39  [](std::size_t n) { FitsSchemaInputMapper::PREPPED_ROWS_FACTOR = n; });
40  mod.def("getPreppedRowsFactor", []() { return FitsSchemaInputMapper::PREPPED_ROWS_FACTOR; });
41  });
42 }

◆ wrapPersistable()

void lsst::afw::table::io::wrapPersistable ( WrapperCollection wrappers)

Definition at line 39 of file _persistable.cc.

39  {
40  // TODO: uncomment once afw.fits uses WrapperCollection
41  // wrappers.addSignatureDependency("lsst.afw.fits");
42 
43  wrappers.wrapType(PyPersistable(wrappers.module, "Persistable"), [](auto &mod, auto &cls) {
44  cls.def("writeFits",
45  (void (Persistable::*)(std::string const &, std::string const &) const) &
46  Persistable::writeFits,
47  "fileName"_a, "mode"_a = "w");
48  cls.def("writeFits",
49  (void (Persistable::*)(fits::MemFileManager &, std::string const &) const) &
50  Persistable::writeFits,
51  "manager"_a, "mode"_a = "w");
52  cls.def("isPersistable", &Persistable::isPersistable);
53  });
54 }
py::class_< Persistable, std::shared_ptr< Persistable > > PyPersistable
Definition: _persistable.cc:37