File ModuleImporter.h¶
Mechanism for safely importing Python modules from C++; should not be included except by its own implementation file, the ioLib.i file, and Persistable.cc.
-
namespace
lsst
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Class for a simple mapping implementing a generic AstrometryTransform.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
base
¶ -
class
ModuleImporter
- #include <ModuleImporter.h>
Base class that defines an interface for importing Python modules.
The default implementation (defined in the source file) simply returns false, indicating that it can’t import the given module. The functional implementation is in the ioLib Swig module, which is installed when that module is imported. That machinery keeps us from calling Python C-API functions from standalone C++ binaries that aren’t linked with Python.
Public Functions
-
ModuleImporter
(const ModuleImporter&)
-
ModuleImporter &
operator=
(const ModuleImporter&)
-
ModuleImporter
(ModuleImporter&&)
-
ModuleImporter &
operator=
(ModuleImporter&&)
Public Static Functions
-
static bool
import
(std::string const &name) Import the given Python module, and return true if successful.
Protected Functions
-
ModuleImporter
()
-
virtual bool
_import
(std::string const &name) const = 0
-
virtual
~ModuleImporter
()
Private Static Functions
-
static void
install
(ModuleImporter const *importer)¶
Friends
-
void
installPythonModuleImporter
()¶
-
-
class