LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #include <pybind11/pybind11.h>
23 #include <pybind11/stl.h>
25 #include "ndarray/pybind11.h"
29 using namespace pybind11::literals;
35 mod.def(
"assertOK", &
assertOK,
"rawObj1"_a =
nullptr,
"rawObj2"_a =
nullptr);
36 mod.def(
"escapes", &
escapes,
"include"_a = -1);
41 Array2D arrayDeep = allocate(arrayShallow.getShape());
42 arrayDeep.deep() = arrayShallow;
44 },
"vec"_a,
"nAxes"_a);
46 py::enum_<DataType>(mod,
"DataType")
47 .value(
"IntType", DataType::IntType)
48 .value(
"ShortIntType", DataType::ShortIntType)
49 .value(
"ByteType", DataType::ByteType)
50 .value(
"DoubleType", DataType::DoubleType)
51 .value(
"FloatType", DataType::FloatType)
52 .value(
"StringType", DataType::StringType)
53 .value(
"ObjectType", DataType::ObjectType)
54 .value(
"PointerType", DataType::PointerType)
55 .value(
"UndefinedType", DataType::UndefinedType)
56 .value(
"BadType", DataType::BadType)
bool escapes(int include=-1)
Control whether graphical escape sequences are included in strings.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
ndarray::Array< double, 2, 2 > Array2D
2D array of const double; typically used for lists of const points
AST wrapper classes and functions.
ConstArray2D arrayFromVector(std::vector< double > const &vec, int nAxes)
Reshape a vector as a 2-dimensional array that shares the same memory.
PYBIND11_MODULE(camera, mod)