LSST Applications 27.0.0,g2079a07aa2+3e9fd84d81,g20cdd03214+a1783de99e,g2305ad1205+f735664ca6,g2bbee38e9b+1cefa2a0d0,g337abbeb29+1cefa2a0d0,g3a166c0a6a+1cefa2a0d0,g4322eb9e3a+e47fc74bdd,g461a3dce89+585e252eca,g4e26c3aaff+85a81aefd8,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+f2253abe05,g607f77f49a+a1783de99e,g69c4c69b53+1cefa2a0d0,g858d7b2824+a1783de99e,g8b7d742e89+8a676e91aa,g99cad8db69+632c814af3,g9ddcbc5298+9a081db1e4,ga1e77700b3+39b6e1549e,ga8d6e2f9c9+b23fa41a5f,gae0086650b+585e252eca,gb0e22166c9+0e73c8378f,gb7c702c636+64a045db41,gbb8dafda3b+f5d13b7331,gc120e1dc64+4c6bf11887,gc28159a63d+1cefa2a0d0,gcdd4ae20e8+7ad95cbc0b,gce60184219+a1783de99e,gcf0d15dbbd+7ad95cbc0b,gd1535ee943+c317a7c0ad,gdaeeff99f8+f9a426f77a,ge79ae78c31+1cefa2a0d0,gf375526af1+72fb9d6883,gf905fbdb4b+e6f3b76f67,gfbcc870c63+b310236976
LSST Data Management Base Package
Loading...
Searching...
No Matches
Namespaces | Functions
utils.h File Reference
#include "pybind11/pybind11.h"
#include <limits>
#include <sstream>
#include <stdexcept>
#include "lsst/sphgeom/Region.h"

Go to the source code of this file.

Namespaces

namespace  lsst
 
namespace  lsst::sphgeom
 
namespace  lsst::sphgeom::python
 

Functions

ptrdiff_t lsst::sphgeom::python::convertIndex (ptrdiff_t len, pybind11::int_ i)
 Convert a Python index i over a sequence with length len to a non-negative (C++ style) index, and perform a bounds-check.
 
pybind11::bytes lsst::sphgeom::python::encode (Region const &self)
 Encode a Region as a pybind11 bytes object.
 
template<typename R >
std::unique_ptr< R > lsst::sphgeom::python::decode (pybind11::bytes bytes)
 Decode a Region from a pybind11 bytes object.
 
template<typename S >
std::vector< std::unique_ptr< Region > > lsst::sphgeom::python::convert_region_sequence (S const &seq)
 Create a vector of Region (or Region-subclass) pointers by copying the regions from a sized Python iterable (e.g.