14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_BFF_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_BFF_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_bff.delete_IMP_BFF_SwigPyIterator
77 r"""value(IMP_BFF_SwigPyIterator self) -> PyObject *"""
78 return _IMP_bff.IMP_BFF_SwigPyIterator_value(self)
81 r"""incr(IMP_BFF_SwigPyIterator self, size_t n=1) -> IMP_BFF_SwigPyIterator"""
82 return _IMP_bff.IMP_BFF_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_BFF_SwigPyIterator self, size_t n=1) -> IMP_BFF_SwigPyIterator"""
86 return _IMP_bff.IMP_BFF_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_bff.IMP_BFF_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
94 return _IMP_bff.IMP_BFF_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_BFF_SwigPyIterator self) -> IMP_BFF_SwigPyIterator"""
98 return _IMP_bff.IMP_BFF_SwigPyIterator_copy(self)
101 r"""next(IMP_BFF_SwigPyIterator self) -> PyObject *"""
102 return _IMP_bff.IMP_BFF_SwigPyIterator_next(self)
105 r"""__next__(IMP_BFF_SwigPyIterator self) -> PyObject *"""
106 return _IMP_bff.IMP_BFF_SwigPyIterator___next__(self)
109 r"""previous(IMP_BFF_SwigPyIterator self) -> PyObject *"""
110 return _IMP_bff.IMP_BFF_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator"""
114 return _IMP_bff.IMP_BFF_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
118 return _IMP_bff.IMP_BFF_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
122 return _IMP_bff.IMP_BFF_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator"""
126 return _IMP_bff.IMP_BFF_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator"""
130 return _IMP_bff.IMP_BFF_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator"""
134 return _IMP_bff.IMP_BFF_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator
139 __sub__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_bff.IMP_BFF_SwigPyIterator___sub__(self, *args)
146 _IMP_bff.IMP_BFF_SwigPyIterator_swigregister(IMP_BFF_SwigPyIterator)
153 IMP_DEBUG = _IMP_bff.IMP_DEBUG
155 IMP_RELEASE = _IMP_bff.IMP_RELEASE
157 IMP_SILENT = _IMP_bff.IMP_SILENT
159 IMP_PROGRESS = _IMP_bff.IMP_PROGRESS
161 IMP_TERSE = _IMP_bff.IMP_TERSE
163 IMP_VERBOSE = _IMP_bff.IMP_VERBOSE
165 IMP_MEMORY = _IMP_bff.IMP_MEMORY
167 IMP_NONE = _IMP_bff.IMP_NONE
169 IMP_USAGE = _IMP_bff.IMP_USAGE
171 IMP_INTERNAL = _IMP_bff.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_bff.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_bff.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_bff.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_bff.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_bff.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_bff.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_bff.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_bff.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_bff.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_bff.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_bff._ostream_write(self, osa_buf)
238 _IMP_bff._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_bff.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_bff.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_bff.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_bff.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_bff.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_bff.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_bff.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_bff.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_bff.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_bff.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_bff.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_bff.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_bff.IMPDISPLAY_SHOW_WARNINGS
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_CGAL
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_HDF5
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_NUMPY
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_bff.IMPSCOREFUNCTOR_SHOW_WARNINGS
302 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_bff.IMP_STATISTICS_HAS_IMP_CGAL
304 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
306 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
308 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_RANDOM
310 IMP_STATISTICS_HAS_CGAL = _IMP_bff.IMP_STATISTICS_HAS_CGAL
312 IMP_STATISTICS_HAS_NUMPY = _IMP_bff.IMP_STATISTICS_HAS_NUMPY
314 IMPSTATISTICS_SHOW_WARNINGS = _IMP_bff.IMPSTATISTICS_SHOW_WARNINGS
317 IMP_CORE_HAS_IMP_CGAL = _IMP_bff.IMP_CORE_HAS_IMP_CGAL
319 IMP_CORE_HAS_IMP_KERNEL = _IMP_bff.IMP_CORE_HAS_IMP_KERNEL
321 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CORE_HAS_BOOST_FILESYSTEM
323 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
325 IMP_CORE_HAS_BOOST_RANDOM = _IMP_bff.IMP_CORE_HAS_BOOST_RANDOM
327 IMP_CORE_HAS_CGAL = _IMP_bff.IMP_CORE_HAS_CGAL
329 IMP_CORE_HAS_HDF5 = _IMP_bff.IMP_CORE_HAS_HDF5
331 IMP_CORE_HAS_NUMPY = _IMP_bff.IMP_CORE_HAS_NUMPY
333 IMPCORE_SHOW_WARNINGS = _IMP_bff.IMPCORE_SHOW_WARNINGS
336 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_bff.IMP_CONTAINER_HAS_IMP_ALGEBRA
338 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_bff.IMP_CONTAINER_HAS_IMP_CGAL
340 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_bff.IMP_CONTAINER_HAS_IMP_DISPLAY
342 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_bff.IMP_CONTAINER_HAS_IMP_KERNEL
344 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
346 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
348 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
350 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_RANDOM
352 IMP_CONTAINER_HAS_CGAL = _IMP_bff.IMP_CONTAINER_HAS_CGAL
354 IMP_CONTAINER_HAS_HDF5 = _IMP_bff.IMP_CONTAINER_HAS_HDF5
356 IMP_CONTAINER_HAS_NUMPY = _IMP_bff.IMP_CONTAINER_HAS_NUMPY
358 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_bff.IMP_CONTAINER_HAS_PYTHON_IHM
360 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_bff.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
362 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_bff.IMP_CONTAINER_HAS_ROBIN_MAP
364 IMPCONTAINER_SHOW_WARNINGS = _IMP_bff.IMPCONTAINER_SHOW_WARNINGS
367 IMP_ATOM_HAS_IMP_CGAL = _IMP_bff.IMP_ATOM_HAS_IMP_CGAL
369 IMP_ATOM_HAS_IMP_KERNEL = _IMP_bff.IMP_ATOM_HAS_IMP_KERNEL
371 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
373 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
375 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_bff.IMP_ATOM_HAS_BOOST_RANDOM
377 IMP_ATOM_HAS_BOOST_REGEX = _IMP_bff.IMP_ATOM_HAS_BOOST_REGEX
379 IMP_ATOM_HAS_CGAL = _IMP_bff.IMP_ATOM_HAS_CGAL
381 IMP_ATOM_HAS_HDF5 = _IMP_bff.IMP_ATOM_HAS_HDF5
383 IMP_ATOM_HAS_NUMPY = _IMP_bff.IMP_ATOM_HAS_NUMPY
385 IMP_ATOM_HAS_PYTHON_IHM = _IMP_bff.IMP_ATOM_HAS_PYTHON_IHM
387 IMPATOM_SHOW_WARNINGS = _IMP_bff.IMPATOM_SHOW_WARNINGS
389 IMP_ATOM_TYPE_INDEX = _IMP_bff.IMP_ATOM_TYPE_INDEX
391 IMP_RESIDUE_TYPE_INDEX = _IMP_bff.IMP_RESIDUE_TYPE_INDEX
393 IMP_HIERARCHY_TYPE_INDEX = _IMP_bff.IMP_HIERARCHY_TYPE_INDEX
395 IMP_CHAIN_TYPE_INDEX = _IMP_bff.IMP_CHAIN_TYPE_INDEX
398 IMP_EM_HAS_IMP_CGAL = _IMP_bff.IMP_EM_HAS_IMP_CGAL
400 IMP_EM_HAS_IMP_CONTAINER = _IMP_bff.IMP_EM_HAS_IMP_CONTAINER
402 IMP_EM_HAS_IMP_DISPLAY = _IMP_bff.IMP_EM_HAS_IMP_DISPLAY
404 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_EM_HAS_IMP_SCORE_FUNCTOR
406 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_EM_HAS_BOOST_FILESYSTEM
408 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
410 IMP_EM_HAS_BOOST_RANDOM = _IMP_bff.IMP_EM_HAS_BOOST_RANDOM
412 IMP_EM_HAS_BOOST_REGEX = _IMP_bff.IMP_EM_HAS_BOOST_REGEX
414 IMP_EM_HAS_CGAL = _IMP_bff.IMP_EM_HAS_CGAL
416 IMP_EM_HAS_HDF5 = _IMP_bff.IMP_EM_HAS_HDF5
418 IMP_EM_HAS_NUMPY = _IMP_bff.IMP_EM_HAS_NUMPY
420 IMP_EM_HAS_PYTHON_IHM = _IMP_bff.IMP_EM_HAS_PYTHON_IHM
422 IMPEM_SHOW_WARNINGS = _IMP_bff.IMPEM_SHOW_WARNINGS
425 IMP_BFF_HAS_IMP_ALGEBRA = _IMP_bff.IMP_BFF_HAS_IMP_ALGEBRA
427 IMP_BFF_HAS_IMP_CGAL = _IMP_bff.IMP_BFF_HAS_IMP_CGAL
429 IMP_BFF_HAS_IMP_DISPLAY = _IMP_bff.IMP_BFF_HAS_IMP_DISPLAY
431 IMP_BFF_HAS_IMP_KERNEL = _IMP_bff.IMP_BFF_HAS_IMP_KERNEL
433 IMP_BFF_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_BFF_HAS_IMP_SCORE_FUNCTOR
435 IMP_BFF_HAS_IMP_STATISTICS = _IMP_bff.IMP_BFF_HAS_IMP_STATISTICS
437 IMP_BFF_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_BFF_HAS_BOOST_FILESYSTEM
439 IMP_BFF_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_BFF_HAS_BOOST_PROGRAMOPTIONS
441 IMP_BFF_HAS_BOOST_RANDOM = _IMP_bff.IMP_BFF_HAS_BOOST_RANDOM
443 IMP_BFF_HAS_BOOST_REGEX = _IMP_bff.IMP_BFF_HAS_BOOST_REGEX
445 IMP_BFF_HAS_CGAL = _IMP_bff.IMP_BFF_HAS_CGAL
447 IMP_BFF_HAS_HDF5 = _IMP_bff.IMP_BFF_HAS_HDF5
449 IMP_BFF_HAS_PYTHON_IHM = _IMP_bff.IMP_BFF_HAS_PYTHON_IHM
451 IMP_BFF_HAS_AVX = _IMP_bff.IMP_BFF_HAS_AVX
453 IMPBFF_SHOW_WARNINGS = _IMP_bff.IMPBFF_SHOW_WARNINGS
458 SHARED_PTR_DISOWN = _IMP_bff.SHARED_PTR_DISOWN
460 class PairFloatFloat(object):
461 r"""Proxy of C++ std::pair< float,float > class."""
463 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
464 __repr__ = _swig_repr
466 def __init__(self, *args):
468 __init__(PairFloatFloat self) -> PairFloatFloat
469 __init__(PairFloatFloat self, float first, float second) -> PairFloatFloat
470 __init__(PairFloatFloat self, PairFloatFloat other) -> PairFloatFloat
472 _IMP_bff.PairFloatFloat_swiginit(self, _IMP_bff.new_PairFloatFloat(*args))
473 first = property(_IMP_bff.PairFloatFloat_first_get, _IMP_bff.PairFloatFloat_first_set, doc=
r"""first : float""")
474 second = property(_IMP_bff.PairFloatFloat_second_get, _IMP_bff.PairFloatFloat_second_set, doc=
r"""second : float""")
478 return str((self.first, self.second))
479 def __getitem__(self, index):
484 def __setitem__(self, index, val):
489 __swig_destroy__ = _IMP_bff.delete_PairFloatFloat
492 _IMP_bff.PairFloatFloat_swigregister(PairFloatFloat)
493 class VectorString(object):
494 r"""Proxy of C++ std::vector< std::string > class."""
496 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
497 __repr__ = _swig_repr
500 r"""iterator(VectorString self) -> IMP_BFF_SwigPyIterator"""
501 return _IMP_bff.VectorString_iterator(self)
503 return self.iterator()
505 def __nonzero__(self):
506 r"""__nonzero__(VectorString self) -> bool"""
507 return _IMP_bff.VectorString___nonzero__(self)
510 r"""__bool__(VectorString self) -> bool"""
511 return _IMP_bff.VectorString___bool__(self)
514 r"""__len__(VectorString self) -> std::vector< std::string >::size_type"""
515 return _IMP_bff.VectorString___len__(self)
517 def __getslice__(self, i, j):
518 r"""__getslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j) -> VectorString"""
519 return _IMP_bff.VectorString___getslice__(self, i, j)
521 def __setslice__(self, *args):
523 __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)
524 __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j, VectorString v)
526 return _IMP_bff.VectorString___setslice__(self, *args)
528 def __delslice__(self, i, j):
529 r"""__delslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)"""
530 return _IMP_bff.VectorString___delslice__(self, i, j)
532 def __delitem__(self, *args):
534 __delitem__(VectorString self, std::vector< std::string >::difference_type i)
535 __delitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
537 return _IMP_bff.VectorString___delitem__(self, *args)
539 def __getitem__(self, *args):
541 __getitem__(VectorString self, SWIGPY_SLICEOBJECT * slice) -> VectorString
542 __getitem__(VectorString self, std::vector< std::string >::difference_type i) -> std::vector< std::string >::value_type const &
544 return _IMP_bff.VectorString___getitem__(self, *args)
546 def __setitem__(self, *args):
548 __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice, VectorString v)
549 __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
550 __setitem__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::value_type const & x)
552 return _IMP_bff.VectorString___setitem__(self, *args)
555 r"""pop(VectorString self) -> std::vector< std::string >::value_type"""
556 return _IMP_bff.VectorString_pop(self)
559 r"""append(VectorString self, std::vector< std::string >::value_type const & x)"""
560 return _IMP_bff.VectorString_append(self, x)
563 r"""empty(VectorString self) -> bool"""
564 return _IMP_bff.VectorString_empty(self)
567 r"""size(VectorString self) -> std::vector< std::string >::size_type"""
568 return _IMP_bff.VectorString_size(self)
571 r"""swap(VectorString self, VectorString v)"""
572 return _IMP_bff.VectorString_swap(self, v)
575 r"""begin(VectorString self) -> std::vector< std::string >::iterator"""
576 return _IMP_bff.VectorString_begin(self)
579 r"""end(VectorString self) -> std::vector< std::string >::iterator"""
580 return _IMP_bff.VectorString_end(self)
583 r"""rbegin(VectorString self) -> std::vector< std::string >::reverse_iterator"""
584 return _IMP_bff.VectorString_rbegin(self)
587 r"""rend(VectorString self) -> std::vector< std::string >::reverse_iterator"""
588 return _IMP_bff.VectorString_rend(self)
591 r"""clear(VectorString self)"""
592 return _IMP_bff.VectorString_clear(self)
594 def get_allocator(self):
595 r"""get_allocator(VectorString self) -> std::vector< std::string >::allocator_type"""
596 return _IMP_bff.VectorString_get_allocator(self)
599 r"""pop_back(VectorString self)"""
600 return _IMP_bff.VectorString_pop_back(self)
602 def erase(self, *args):
604 erase(VectorString self, std::vector< std::string >::iterator pos) -> std::vector< std::string >::iterator
605 erase(VectorString self, std::vector< std::string >::iterator first, std::vector< std::string >::iterator last) -> std::vector< std::string >::iterator
607 return _IMP_bff.VectorString_erase(self, *args)
609 def __init__(self, *args):
611 __init__(VectorString self) -> VectorString
612 __init__(VectorString self, VectorString other) -> VectorString
613 __init__(VectorString self, std::vector< std::string >::size_type size) -> VectorString
614 __init__(VectorString self, std::vector< std::string >::size_type size, std::vector< std::string >::value_type const & value) -> VectorString
616 _IMP_bff.VectorString_swiginit(self, _IMP_bff.new_VectorString(*args))
618 def push_back(self, x):
619 r"""push_back(VectorString self, std::vector< std::string >::value_type const & x)"""
620 return _IMP_bff.VectorString_push_back(self, x)
623 r"""front(VectorString self) -> std::vector< std::string >::value_type const &"""
624 return _IMP_bff.VectorString_front(self)
627 r"""back(VectorString self) -> std::vector< std::string >::value_type const &"""
628 return _IMP_bff.VectorString_back(self)
630 def assign(self, n, x):
631 r"""assign(VectorString self, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)"""
632 return _IMP_bff.VectorString_assign(self, n, x)
634 def resize(self, *args):
636 resize(VectorString self, std::vector< std::string >::size_type new_size)
637 resize(VectorString self, std::vector< std::string >::size_type new_size, std::vector< std::string >::value_type const & x)
639 return _IMP_bff.VectorString_resize(self, *args)
641 def insert(self, *args):
643 insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::value_type const & x) -> std::vector< std::string >::iterator
644 insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)
646 return _IMP_bff.VectorString_insert(self, *args)
648 def reserve(self, n):
649 r"""reserve(VectorString self, std::vector< std::string >::size_type n)"""
650 return _IMP_bff.VectorString_reserve(self, n)
653 r"""capacity(VectorString self) -> std::vector< std::string >::size_type"""
654 return _IMP_bff.VectorString_capacity(self)
655 __swig_destroy__ = _IMP_bff.delete_VectorString
658 _IMP_bff.VectorString_swigregister(VectorString)
659 class VectorDouble(object):
660 r"""Proxy of C++ std::vector< double > class."""
662 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
663 __repr__ = _swig_repr
666 r"""iterator(VectorDouble self) -> IMP_BFF_SwigPyIterator"""
667 return _IMP_bff.VectorDouble_iterator(self)
669 return self.iterator()
671 def __nonzero__(self):
672 r"""__nonzero__(VectorDouble self) -> bool"""
673 return _IMP_bff.VectorDouble___nonzero__(self)
676 r"""__bool__(VectorDouble self) -> bool"""
677 return _IMP_bff.VectorDouble___bool__(self)
680 r"""__len__(VectorDouble self) -> std::vector< double >::size_type"""
681 return _IMP_bff.VectorDouble___len__(self)
683 def __getslice__(self, i, j):
684 r"""__getslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> VectorDouble"""
685 return _IMP_bff.VectorDouble___getslice__(self, i, j)
687 def __setslice__(self, *args):
689 __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
690 __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j, VectorDouble v)
692 return _IMP_bff.VectorDouble___setslice__(self, *args)
694 def __delslice__(self, i, j):
695 r"""__delslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
696 return _IMP_bff.VectorDouble___delslice__(self, i, j)
698 def __delitem__(self, *args):
700 __delitem__(VectorDouble self, std::vector< double >::difference_type i)
701 __delitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
703 return _IMP_bff.VectorDouble___delitem__(self, *args)
705 def __getitem__(self, *args):
707 __getitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice) -> VectorDouble
708 __getitem__(VectorDouble self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
710 return _IMP_bff.VectorDouble___getitem__(self, *args)
712 def __setitem__(self, *args):
714 __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice, VectorDouble v)
715 __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
716 __setitem__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
718 return _IMP_bff.VectorDouble___setitem__(self, *args)
721 r"""pop(VectorDouble self) -> std::vector< double >::value_type"""
722 return _IMP_bff.VectorDouble_pop(self)
725 r"""append(VectorDouble self, std::vector< double >::value_type const & x)"""
726 return _IMP_bff.VectorDouble_append(self, x)
729 r"""empty(VectorDouble self) -> bool"""
730 return _IMP_bff.VectorDouble_empty(self)
733 r"""size(VectorDouble self) -> std::vector< double >::size_type"""
734 return _IMP_bff.VectorDouble_size(self)
737 r"""swap(VectorDouble self, VectorDouble v)"""
738 return _IMP_bff.VectorDouble_swap(self, v)
741 r"""begin(VectorDouble self) -> std::vector< double >::iterator"""
742 return _IMP_bff.VectorDouble_begin(self)
745 r"""end(VectorDouble self) -> std::vector< double >::iterator"""
746 return _IMP_bff.VectorDouble_end(self)
749 r"""rbegin(VectorDouble self) -> std::vector< double >::reverse_iterator"""
750 return _IMP_bff.VectorDouble_rbegin(self)
753 r"""rend(VectorDouble self) -> std::vector< double >::reverse_iterator"""
754 return _IMP_bff.VectorDouble_rend(self)
757 r"""clear(VectorDouble self)"""
758 return _IMP_bff.VectorDouble_clear(self)
760 def get_allocator(self):
761 r"""get_allocator(VectorDouble self) -> std::vector< double >::allocator_type"""
762 return _IMP_bff.VectorDouble_get_allocator(self)
765 r"""pop_back(VectorDouble self)"""
766 return _IMP_bff.VectorDouble_pop_back(self)
768 def erase(self, *args):
770 erase(VectorDouble self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
771 erase(VectorDouble self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
773 return _IMP_bff.VectorDouble_erase(self, *args)
775 def __init__(self, *args):
777 __init__(VectorDouble self) -> VectorDouble
778 __init__(VectorDouble self, VectorDouble other) -> VectorDouble
779 __init__(VectorDouble self, std::vector< double >::size_type size) -> VectorDouble
780 __init__(VectorDouble self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> VectorDouble
782 _IMP_bff.VectorDouble_swiginit(self, _IMP_bff.new_VectorDouble(*args))
784 def push_back(self, x):
785 r"""push_back(VectorDouble self, std::vector< double >::value_type const & x)"""
786 return _IMP_bff.VectorDouble_push_back(self, x)
789 r"""front(VectorDouble self) -> std::vector< double >::value_type const &"""
790 return _IMP_bff.VectorDouble_front(self)
793 r"""back(VectorDouble self) -> std::vector< double >::value_type const &"""
794 return _IMP_bff.VectorDouble_back(self)
796 def assign(self, n, x):
797 r"""assign(VectorDouble self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
798 return _IMP_bff.VectorDouble_assign(self, n, x)
800 def resize(self, *args):
802 resize(VectorDouble self, std::vector< double >::size_type new_size)
803 resize(VectorDouble self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
805 return _IMP_bff.VectorDouble_resize(self, *args)
807 def insert(self, *args):
809 insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
810 insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
812 return _IMP_bff.VectorDouble_insert(self, *args)
814 def reserve(self, n):
815 r"""reserve(VectorDouble self, std::vector< double >::size_type n)"""
816 return _IMP_bff.VectorDouble_reserve(self, n)
819 r"""capacity(VectorDouble self) -> std::vector< double >::size_type"""
820 return _IMP_bff.VectorDouble_capacity(self)
821 __swig_destroy__ = _IMP_bff.delete_VectorDouble
824 _IMP_bff.VectorDouble_swigregister(VectorDouble)
825 class VectorFloat(object):
826 r"""Proxy of C++ std::vector< float > class."""
828 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
829 __repr__ = _swig_repr
832 r"""iterator(VectorFloat self) -> IMP_BFF_SwigPyIterator"""
833 return _IMP_bff.VectorFloat_iterator(self)
835 return self.iterator()
837 def __nonzero__(self):
838 r"""__nonzero__(VectorFloat self) -> bool"""
839 return _IMP_bff.VectorFloat___nonzero__(self)
842 r"""__bool__(VectorFloat self) -> bool"""
843 return _IMP_bff.VectorFloat___bool__(self)
846 r"""__len__(VectorFloat self) -> std::vector< float >::size_type"""
847 return _IMP_bff.VectorFloat___len__(self)
849 def __getslice__(self, i, j):
850 r"""__getslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j) -> VectorFloat"""
851 return _IMP_bff.VectorFloat___getslice__(self, i, j)
853 def __setslice__(self, *args):
855 __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)
856 __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j, VectorFloat v)
858 return _IMP_bff.VectorFloat___setslice__(self, *args)
860 def __delslice__(self, i, j):
861 r"""__delslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)"""
862 return _IMP_bff.VectorFloat___delslice__(self, i, j)
864 def __delitem__(self, *args):
866 __delitem__(VectorFloat self, std::vector< float >::difference_type i)
867 __delitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
869 return _IMP_bff.VectorFloat___delitem__(self, *args)
871 def __getitem__(self, *args):
873 __getitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice) -> VectorFloat
874 __getitem__(VectorFloat self, std::vector< float >::difference_type i) -> std::vector< float >::value_type const &
876 return _IMP_bff.VectorFloat___getitem__(self, *args)
878 def __setitem__(self, *args):
880 __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice, VectorFloat v)
881 __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
882 __setitem__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::value_type const & x)
884 return _IMP_bff.VectorFloat___setitem__(self, *args)
887 r"""pop(VectorFloat self) -> std::vector< float >::value_type"""
888 return _IMP_bff.VectorFloat_pop(self)
891 r"""append(VectorFloat self, std::vector< float >::value_type const & x)"""
892 return _IMP_bff.VectorFloat_append(self, x)
895 r"""empty(VectorFloat self) -> bool"""
896 return _IMP_bff.VectorFloat_empty(self)
899 r"""size(VectorFloat self) -> std::vector< float >::size_type"""
900 return _IMP_bff.VectorFloat_size(self)
903 r"""swap(VectorFloat self, VectorFloat v)"""
904 return _IMP_bff.VectorFloat_swap(self, v)
907 r"""begin(VectorFloat self) -> std::vector< float >::iterator"""
908 return _IMP_bff.VectorFloat_begin(self)
911 r"""end(VectorFloat self) -> std::vector< float >::iterator"""
912 return _IMP_bff.VectorFloat_end(self)
915 r"""rbegin(VectorFloat self) -> std::vector< float >::reverse_iterator"""
916 return _IMP_bff.VectorFloat_rbegin(self)
919 r"""rend(VectorFloat self) -> std::vector< float >::reverse_iterator"""
920 return _IMP_bff.VectorFloat_rend(self)
923 r"""clear(VectorFloat self)"""
924 return _IMP_bff.VectorFloat_clear(self)
926 def get_allocator(self):
927 r"""get_allocator(VectorFloat self) -> std::vector< float >::allocator_type"""
928 return _IMP_bff.VectorFloat_get_allocator(self)
931 r"""pop_back(VectorFloat self)"""
932 return _IMP_bff.VectorFloat_pop_back(self)
934 def erase(self, *args):
936 erase(VectorFloat self, std::vector< float >::iterator pos) -> std::vector< float >::iterator
937 erase(VectorFloat self, std::vector< float >::iterator first, std::vector< float >::iterator last) -> std::vector< float >::iterator
939 return _IMP_bff.VectorFloat_erase(self, *args)
941 def __init__(self, *args):
943 __init__(VectorFloat self) -> VectorFloat
944 __init__(VectorFloat self, VectorFloat other) -> VectorFloat
945 __init__(VectorFloat self, std::vector< float >::size_type size) -> VectorFloat
946 __init__(VectorFloat self, std::vector< float >::size_type size, std::vector< float >::value_type const & value) -> VectorFloat
948 _IMP_bff.VectorFloat_swiginit(self, _IMP_bff.new_VectorFloat(*args))
950 def push_back(self, x):
951 r"""push_back(VectorFloat self, std::vector< float >::value_type const & x)"""
952 return _IMP_bff.VectorFloat_push_back(self, x)
955 r"""front(VectorFloat self) -> std::vector< float >::value_type const &"""
956 return _IMP_bff.VectorFloat_front(self)
959 r"""back(VectorFloat self) -> std::vector< float >::value_type const &"""
960 return _IMP_bff.VectorFloat_back(self)
962 def assign(self, n, x):
963 r"""assign(VectorFloat self, std::vector< float >::size_type n, std::vector< float >::value_type const & x)"""
964 return _IMP_bff.VectorFloat_assign(self, n, x)
966 def resize(self, *args):
968 resize(VectorFloat self, std::vector< float >::size_type new_size)
969 resize(VectorFloat self, std::vector< float >::size_type new_size, std::vector< float >::value_type const & x)
971 return _IMP_bff.VectorFloat_resize(self, *args)
973 def insert(self, *args):
975 insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::value_type const & x) -> std::vector< float >::iterator
976 insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::size_type n, std::vector< float >::value_type const & x)
978 return _IMP_bff.VectorFloat_insert(self, *args)
980 def reserve(self, n):
981 r"""reserve(VectorFloat self, std::vector< float >::size_type n)"""
982 return _IMP_bff.VectorFloat_reserve(self, n)
985 r"""capacity(VectorFloat self) -> std::vector< float >::size_type"""
986 return _IMP_bff.VectorFloat_capacity(self)
987 __swig_destroy__ = _IMP_bff.delete_VectorFloat
990 _IMP_bff.VectorFloat_swigregister(VectorFloat)
991 class VectorInt(object):
992 r"""Proxy of C++ std::vector< int > class."""
994 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
995 __repr__ = _swig_repr
998 r"""iterator(VectorInt self) -> IMP_BFF_SwigPyIterator"""
999 return _IMP_bff.VectorInt_iterator(self)
1001 return self.iterator()
1003 def __nonzero__(self):
1004 r"""__nonzero__(VectorInt self) -> bool"""
1005 return _IMP_bff.VectorInt___nonzero__(self)
1008 r"""__bool__(VectorInt self) -> bool"""
1009 return _IMP_bff.VectorInt___bool__(self)
1012 r"""__len__(VectorInt self) -> std::vector< int >::size_type"""
1013 return _IMP_bff.VectorInt___len__(self)
1015 def __getslice__(self, i, j):
1016 r"""__getslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> VectorInt"""
1017 return _IMP_bff.VectorInt___getslice__(self, i, j)
1019 def __setslice__(self, *args):
1021 __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
1022 __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, VectorInt v)
1024 return _IMP_bff.VectorInt___setslice__(self, *args)
1026 def __delslice__(self, i, j):
1027 r"""__delslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
1028 return _IMP_bff.VectorInt___delslice__(self, i, j)
1030 def __delitem__(self, *args):
1032 __delitem__(VectorInt self, std::vector< int >::difference_type i)
1033 __delitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1035 return _IMP_bff.VectorInt___delitem__(self, *args)
1037 def __getitem__(self, *args):
1039 __getitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice) -> VectorInt
1040 __getitem__(VectorInt self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
1042 return _IMP_bff.VectorInt___getitem__(self, *args)
1044 def __setitem__(self, *args):
1046 __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice, VectorInt v)
1047 __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1048 __setitem__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
1050 return _IMP_bff.VectorInt___setitem__(self, *args)
1053 r"""pop(VectorInt self) -> std::vector< int >::value_type"""
1054 return _IMP_bff.VectorInt_pop(self)
1056 def append(self, x):
1057 r"""append(VectorInt self, std::vector< int >::value_type const & x)"""
1058 return _IMP_bff.VectorInt_append(self, x)
1061 r"""empty(VectorInt self) -> bool"""
1062 return _IMP_bff.VectorInt_empty(self)
1065 r"""size(VectorInt self) -> std::vector< int >::size_type"""
1066 return _IMP_bff.VectorInt_size(self)
1069 r"""swap(VectorInt self, VectorInt v)"""
1070 return _IMP_bff.VectorInt_swap(self, v)
1073 r"""begin(VectorInt self) -> std::vector< int >::iterator"""
1074 return _IMP_bff.VectorInt_begin(self)
1077 r"""end(VectorInt self) -> std::vector< int >::iterator"""
1078 return _IMP_bff.VectorInt_end(self)
1081 r"""rbegin(VectorInt self) -> std::vector< int >::reverse_iterator"""
1082 return _IMP_bff.VectorInt_rbegin(self)
1085 r"""rend(VectorInt self) -> std::vector< int >::reverse_iterator"""
1086 return _IMP_bff.VectorInt_rend(self)
1089 r"""clear(VectorInt self)"""
1090 return _IMP_bff.VectorInt_clear(self)
1092 def get_allocator(self):
1093 r"""get_allocator(VectorInt self) -> std::vector< int >::allocator_type"""
1094 return _IMP_bff.VectorInt_get_allocator(self)
1097 r"""pop_back(VectorInt self)"""
1098 return _IMP_bff.VectorInt_pop_back(self)
1100 def erase(self, *args):
1102 erase(VectorInt self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
1103 erase(VectorInt self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
1105 return _IMP_bff.VectorInt_erase(self, *args)
1107 def __init__(self, *args):
1109 __init__(VectorInt self) -> VectorInt
1110 __init__(VectorInt self, VectorInt other) -> VectorInt
1111 __init__(VectorInt self, std::vector< int >::size_type size) -> VectorInt
1112 __init__(VectorInt self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> VectorInt
1114 _IMP_bff.VectorInt_swiginit(self, _IMP_bff.new_VectorInt(*args))
1116 def push_back(self, x):
1117 r"""push_back(VectorInt self, std::vector< int >::value_type const & x)"""
1118 return _IMP_bff.VectorInt_push_back(self, x)
1121 r"""front(VectorInt self) -> std::vector< int >::value_type const &"""
1122 return _IMP_bff.VectorInt_front(self)
1125 r"""back(VectorInt self) -> std::vector< int >::value_type const &"""
1126 return _IMP_bff.VectorInt_back(self)
1128 def assign(self, n, x):
1129 r"""assign(VectorInt self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
1130 return _IMP_bff.VectorInt_assign(self, n, x)
1132 def resize(self, *args):
1134 resize(VectorInt self, std::vector< int >::size_type new_size)
1135 resize(VectorInt self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
1137 return _IMP_bff.VectorInt_resize(self, *args)
1139 def insert(self, *args):
1141 insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
1142 insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
1144 return _IMP_bff.VectorInt_insert(self, *args)
1146 def reserve(self, n):
1147 r"""reserve(VectorInt self, std::vector< int >::size_type n)"""
1148 return _IMP_bff.VectorInt_reserve(self, n)
1151 r"""capacity(VectorInt self) -> std::vector< int >::size_type"""
1152 return _IMP_bff.VectorInt_capacity(self)
1153 __swig_destroy__ = _IMP_bff.delete_VectorInt
1156 _IMP_bff.VectorInt_swigregister(VectorInt)
1157 class VectorLong(object):
1158 r"""Proxy of C++ std::vector< long > class."""
1160 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1161 __repr__ = _swig_repr
1164 r"""iterator(VectorLong self) -> IMP_BFF_SwigPyIterator"""
1165 return _IMP_bff.VectorLong_iterator(self)
1167 return self.iterator()
1169 def __nonzero__(self):
1170 r"""__nonzero__(VectorLong self) -> bool"""
1171 return _IMP_bff.VectorLong___nonzero__(self)
1174 r"""__bool__(VectorLong self) -> bool"""
1175 return _IMP_bff.VectorLong___bool__(self)
1178 r"""__len__(VectorLong self) -> std::vector< long >::size_type"""
1179 return _IMP_bff.VectorLong___len__(self)
1181 def __getslice__(self, i, j):
1182 r"""__getslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j) -> VectorLong"""
1183 return _IMP_bff.VectorLong___getslice__(self, i, j)
1185 def __setslice__(self, *args):
1187 __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)
1188 __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j, VectorLong v)
1190 return _IMP_bff.VectorLong___setslice__(self, *args)
1192 def __delslice__(self, i, j):
1193 r"""__delslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)"""
1194 return _IMP_bff.VectorLong___delslice__(self, i, j)
1196 def __delitem__(self, *args):
1198 __delitem__(VectorLong self, std::vector< long >::difference_type i)
1199 __delitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1201 return _IMP_bff.VectorLong___delitem__(self, *args)
1203 def __getitem__(self, *args):
1205 __getitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice) -> VectorLong
1206 __getitem__(VectorLong self, std::vector< long >::difference_type i) -> std::vector< long >::value_type const &
1208 return _IMP_bff.VectorLong___getitem__(self, *args)
1210 def __setitem__(self, *args):
1212 __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice, VectorLong v)
1213 __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1214 __setitem__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::value_type const & x)
1216 return _IMP_bff.VectorLong___setitem__(self, *args)
1219 r"""pop(VectorLong self) -> std::vector< long >::value_type"""
1220 return _IMP_bff.VectorLong_pop(self)
1222 def append(self, x):
1223 r"""append(VectorLong self, std::vector< long >::value_type const & x)"""
1224 return _IMP_bff.VectorLong_append(self, x)
1227 r"""empty(VectorLong self) -> bool"""
1228 return _IMP_bff.VectorLong_empty(self)
1231 r"""size(VectorLong self) -> std::vector< long >::size_type"""
1232 return _IMP_bff.VectorLong_size(self)
1235 r"""swap(VectorLong self, VectorLong v)"""
1236 return _IMP_bff.VectorLong_swap(self, v)
1239 r"""begin(VectorLong self) -> std::vector< long >::iterator"""
1240 return _IMP_bff.VectorLong_begin(self)
1243 r"""end(VectorLong self) -> std::vector< long >::iterator"""
1244 return _IMP_bff.VectorLong_end(self)
1247 r"""rbegin(VectorLong self) -> std::vector< long >::reverse_iterator"""
1248 return _IMP_bff.VectorLong_rbegin(self)
1251 r"""rend(VectorLong self) -> std::vector< long >::reverse_iterator"""
1252 return _IMP_bff.VectorLong_rend(self)
1255 r"""clear(VectorLong self)"""
1256 return _IMP_bff.VectorLong_clear(self)
1258 def get_allocator(self):
1259 r"""get_allocator(VectorLong self) -> std::vector< long >::allocator_type"""
1260 return _IMP_bff.VectorLong_get_allocator(self)
1263 r"""pop_back(VectorLong self)"""
1264 return _IMP_bff.VectorLong_pop_back(self)
1266 def erase(self, *args):
1268 erase(VectorLong self, std::vector< long >::iterator pos) -> std::vector< long >::iterator
1269 erase(VectorLong self, std::vector< long >::iterator first, std::vector< long >::iterator last) -> std::vector< long >::iterator
1271 return _IMP_bff.VectorLong_erase(self, *args)
1273 def __init__(self, *args):
1275 __init__(VectorLong self) -> VectorLong
1276 __init__(VectorLong self, VectorLong other) -> VectorLong
1277 __init__(VectorLong self, std::vector< long >::size_type size) -> VectorLong
1278 __init__(VectorLong self, std::vector< long >::size_type size, std::vector< long >::value_type const & value) -> VectorLong
1280 _IMP_bff.VectorLong_swiginit(self, _IMP_bff.new_VectorLong(*args))
1282 def push_back(self, x):
1283 r"""push_back(VectorLong self, std::vector< long >::value_type const & x)"""
1284 return _IMP_bff.VectorLong_push_back(self, x)
1287 r"""front(VectorLong self) -> std::vector< long >::value_type const &"""
1288 return _IMP_bff.VectorLong_front(self)
1291 r"""back(VectorLong self) -> std::vector< long >::value_type const &"""
1292 return _IMP_bff.VectorLong_back(self)
1294 def assign(self, n, x):
1295 r"""assign(VectorLong self, std::vector< long >::size_type n, std::vector< long >::value_type const & x)"""
1296 return _IMP_bff.VectorLong_assign(self, n, x)
1298 def resize(self, *args):
1300 resize(VectorLong self, std::vector< long >::size_type new_size)
1301 resize(VectorLong self, std::vector< long >::size_type new_size, std::vector< long >::value_type const & x)
1303 return _IMP_bff.VectorLong_resize(self, *args)
1305 def insert(self, *args):
1307 insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::value_type const & x) -> std::vector< long >::iterator
1308 insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::size_type n, std::vector< long >::value_type const & x)
1310 return _IMP_bff.VectorLong_insert(self, *args)
1312 def reserve(self, n):
1313 r"""reserve(VectorLong self, std::vector< long >::size_type n)"""
1314 return _IMP_bff.VectorLong_reserve(self, n)
1317 r"""capacity(VectorLong self) -> std::vector< long >::size_type"""
1318 return _IMP_bff.VectorLong_capacity(self)
1319 __swig_destroy__ = _IMP_bff.delete_VectorLong
1322 _IMP_bff.VectorLong_swigregister(VectorLong)
1324 PathMapTileEdges=list
1325 _plural_types.append(
"PathMapTileEdges")
1326 _value_types.append(
"PathMapTileEdge")
1329 _object_types.append(
"PathMap")
1332 def _object_cast_to_PathMap(o):
1333 r"""_object_cast_to_PathMap(Object o) -> PathMap"""
1334 return _IMP_bff._object_cast_to_PathMap(o)
1335 class PathMapHeader(object):
1336 r"""Proxy of C++ IMP::bff::PathMapHeader class."""
1338 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1339 __repr__ = _swig_repr
1340 __swig_destroy__ = _IMP_bff.delete_PathMapHeader
1342 def __init__(self, *args, **kwargs):
1343 r"""__init__(PathMapHeader self, double max_path_length=10.0, double grid_spacing=1.0, double neighbor_radius=2, double obstacle_threshold=std::numeric_limits< double >::epsilon()) -> PathMapHeader"""
1344 _IMP_bff.PathMapHeader_swiginit(self, _IMP_bff.new_PathMapHeader(*args, **kwargs))
1346 def update_map_dimensions(self, nx=-1, ny=-1, nz=-1):
1347 r"""update_map_dimensions(PathMapHeader self, int nx=-1, int ny=-1, int nz=-1)"""
1348 return _IMP_bff.PathMapHeader_update_map_dimensions(self, nx, ny, nz)
1350 def set_path_origin(self, v):
1351 r"""set_path_origin(PathMapHeader self, Vector3D v)"""
1352 return _IMP_bff.PathMapHeader_set_path_origin(self, v)
1354 def get_path_origin(self):
1355 r"""get_path_origin(PathMapHeader self) -> Vector3D"""
1356 return _IMP_bff.PathMapHeader_get_path_origin(self)
1358 def get_max_path_length(self):
1359 r"""get_max_path_length(PathMapHeader self) -> double"""
1360 return _IMP_bff.PathMapHeader_get_max_path_length(self)
1362 def get_simulation_grid_resolution(self):
1363 r"""get_simulation_grid_resolution(PathMapHeader self) -> double"""
1364 return _IMP_bff.PathMapHeader_get_simulation_grid_resolution(self)
1366 def set_obstacle_threshold(self, obstacle_threshold):
1367 r"""set_obstacle_threshold(PathMapHeader self, double obstacle_threshold)"""
1368 return _IMP_bff.PathMapHeader_set_obstacle_threshold(self, obstacle_threshold)
1370 def get_obstacle_threshold(self):
1371 r"""get_obstacle_threshold(PathMapHeader self) -> double"""
1372 return _IMP_bff.PathMapHeader_get_obstacle_threshold(self)
1374 def set_neighbor_radius(self, neighbor_radius):
1375 r"""set_neighbor_radius(PathMapHeader self, double neighbor_radius)"""
1376 return _IMP_bff.PathMapHeader_set_neighbor_radius(self, neighbor_radius)
1378 def get_neighbor_radius(self):
1379 r"""get_neighbor_radius(PathMapHeader self) -> double"""
1380 return _IMP_bff.PathMapHeader_get_neighbor_radius(self)
1382 def get_neighbor_box_size(self):
1383 r"""get_neighbor_box_size(PathMapHeader self) -> int"""
1384 return _IMP_bff.PathMapHeader_get_neighbor_box_size(self)
1386 def get_density_header(self):
1387 r"""get_density_header(PathMapHeader self) -> DensityHeader"""
1388 return _IMP_bff.PathMapHeader_get_density_header(self)
1390 def get_density_header_writable(self):
1391 r"""get_density_header_writable(PathMapHeader self) -> DensityHeader"""
1392 return _IMP_bff.PathMapHeader_get_density_header_writable(self)
1394 def get_origin(self):
1395 r"""get_origin(PathMapHeader self) -> Vector3D"""
1396 return _IMP_bff.PathMapHeader_get_origin(self)
1398 def get_grid_edge_length(self):
1399 r"""get_grid_edge_length(PathMapHeader self) -> double"""
1400 return _IMP_bff.PathMapHeader_get_grid_edge_length(self)
1402 def set_origin(self, x, y, z):
1403 r"""set_origin(PathMapHeader self, float x, float y, float z)"""
1404 return _IMP_bff.PathMapHeader_set_origin(self, x, y, z)
1406 def show(self, *args, **kwargs):
1407 r"""show(PathMapHeader self, _ostream out=std::cout)"""
1408 return _IMP_bff.PathMapHeader_show(self, *args, **kwargs)
1411 _IMP_bff.PathMapHeader_swigregister(PathMapHeader)
1413 r"""Proxy of C++ IMP::bff::PathMap class."""
1415 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1417 def update_tiles(self, *args, **kwargs):
1418 r"""update_tiles(PathMap self, float obstacle_threshold=-1.0, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT, bool reset_tile_edges=True)"""
1419 return _IMP_bff.PathMap_update_tiles(self, *args, **kwargs)
1421 def resize(self, nvox):
1422 r"""resize(PathMap self, unsigned int nvox)"""
1423 return _IMP_bff.PathMap_resize(self, nvox)
1425 def set_data(self, *args, **kwargs):
1426 r"""set_data(PathMap self, double * input, float obstacle_threshold=-1, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT)"""
1427 return _IMP_bff.PathMap_set_data(self, *args, **kwargs)
1429 def get_neighbor_idx_offsets(self, neighbor_radius=-1):
1430 r"""get_neighbor_idx_offsets(PathMap self, double neighbor_radius=-1) -> VectorInt"""
1431 return _IMP_bff.PathMap_get_neighbor_idx_offsets(self, neighbor_radius)
1433 def get_dim_index_by_voxel(self, index, dim):
1434 r"""get_dim_index_by_voxel(PathMap self, long index, int dim) -> int"""
1435 return _IMP_bff.PathMap_get_dim_index_by_voxel(self, index, dim)
1437 def get_path_map_header(self):
1438 h = _IMP_bff.DensityMap_get_path_map_header(self)
1444 def get_path_map_header_writable(self):
1445 h = _IMP_bff.PathMap_get_path_map_header_writable(self)
1451 def set_path_map_header(self, path_map_header, resolution=-1.0):
1452 r"""set_path_map_header(PathMap self, PathMapHeader path_map_header, float resolution=-1.0)"""
1453 return _IMP_bff.PathMap_set_path_map_header(self, path_map_header, resolution)
1455 def get_tile_values(self, *args, **kwargs):
1456 r"""get_tile_values(PathMap self, int value_type=PM_TILE_COST, PairFloatFloat bounds=std::pair< float,float >( {std::numeric_limits<float>::min(), std::numeric_limits<float>::max()}), std::string const & feature_name="")"""
1457 return _IMP_bff.PathMap_get_tile_values(self, *args, **kwargs)
1459 def get_tiles(self):
1460 r"""get_tiles(PathMap self) -> VectorPathMapTile"""
1461 return _IMP_bff.PathMap_get_tiles(self)
1463 def fill_sphere(self, r0, radius, value, inverse=True):
1464 r"""fill_sphere(PathMap self, Vector3D r0, double radius, double value, bool inverse=True)"""
1465 return _IMP_bff.PathMap_fill_sphere(self, r0, radius, value, inverse)
1467 def find_path(self, path_begin_idx, path_end_idx=-1, heuristic_mode=0):
1468 r"""find_path(PathMap self, long path_begin_idx, long path_end_idx=-1, int heuristic_mode=0)"""
1469 return _IMP_bff.PathMap_find_path(self, path_begin_idx, path_end_idx, heuristic_mode)
1471 def find_path_dijkstra(self, path_begin_idx, path_end_idx=-1):
1472 r"""find_path_dijkstra(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1473 return _IMP_bff.PathMap_find_path_dijkstra(self, path_begin_idx, path_end_idx)
1475 def find_path_astar(self, path_begin_idx, path_end_idx=-1):
1476 r"""find_path_astar(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1477 return _IMP_bff.PathMap_find_path_astar(self, path_begin_idx, path_end_idx)
1479 def get_xyz_density(self):
1480 r"""get_xyz_density(PathMap self)"""
1481 return _IMP_bff.PathMap_get_xyz_density(self)
1483 def sample_obstacles(self, extra_radius=0.0):
1484 r"""sample_obstacles(PathMap self, double extra_radius=0.0)"""
1485 return _IMP_bff.PathMap_sample_obstacles(self, extra_radius)
1487 def __init__(self, *args, **kwargs):
1488 r"""__init__(PathMap self, PathMapHeader header, std::string name="PathMap%1%", IMP::em::KernelType kt=BINARIZED_SPHERE, float resolution=-1.0) -> PathMap"""
1489 _IMP_bff.PathMap_swiginit(self, _IMP_bff.new_PathMap(*args, **kwargs))
1492 r"""__str__(PathMap self) -> std::string"""
1493 return _IMP_bff.PathMap___str__(self)
1496 r"""__repr__(PathMap self) -> std::string"""
1497 return _IMP_bff.PathMap___repr__(self)
1501 return _object_cast_to_PathMap(o)
1503 __swig_destroy__ = _IMP_bff.delete_PathMap
1506 _IMP_bff.PathMap_swigregister(PathMap)
1509 r"""write_path_map(PathMap m, std::string filename, int value_type, PairFloatFloat bounds=std::pair< float,float >( std::numeric_limits<float>::min(), std::numeric_limits<float>::max() ), std::string const & feature_name="")"""
1510 return _IMP_bff.write_path_map(*args, **kwargs)
1511 PM_TILE_PENALTY = _IMP_bff.PM_TILE_PENALTY
1513 PM_TILE_COST = _IMP_bff.PM_TILE_COST
1515 PM_TILE_DENSITY = _IMP_bff.PM_TILE_DENSITY
1517 PM_TILE_COST_DENSITY = _IMP_bff.PM_TILE_COST_DENSITY
1519 PM_TILE_PATH_LENGTH = _IMP_bff.PM_TILE_PATH_LENGTH
1521 PM_TILE_PATH_LENGTH_DENSITY = _IMP_bff.PM_TILE_PATH_LENGTH_DENSITY
1523 PM_TILE_FEATURE = _IMP_bff.PM_TILE_FEATURE
1525 PM_TILE_ACCESSIBLE_DENSITY = _IMP_bff.PM_TILE_ACCESSIBLE_DENSITY
1527 PM_TILE_ACCESSIBLE_FEATURE = _IMP_bff.PM_TILE_ACCESSIBLE_FEATURE
1529 class PathMapTile(object):
1530 r"""Proxy of C++ IMP::bff::PathMapTile class."""
1532 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1533 __repr__ = _swig_repr
1534 density = property(_IMP_bff.PathMapTile_density_get, _IMP_bff.PathMapTile_density_set, doc=
r"""density : float""")
1536 def __init__(self, index=-1, visit_penalty=0.0, tile_density=1.0):
1537 r"""__init__(PathMapTile self, long index=-1, float visit_penalty=0.0, float tile_density=1.0) -> PathMapTile"""
1538 _IMP_bff.PathMapTile_swiginit(self, _IMP_bff.new_PathMapTile(index, visit_penalty, tile_density))
1540 def backtrack_to_path(self):
1541 r"""backtrack_to_path(PathMapTile self) -> VectorLong"""
1542 return _IMP_bff.PathMapTile_backtrack_to_path(self)
1544 def get_value(self, *args, **kwargs):
1545 r"""get_value(PathMapTile self, int value_type, PairFloatFloat bounds=std::pair< float,float >( {std::numeric_limits<float>::min(), std::numeric_limits<float>::max()}), std::string const & feature_name="", float grid_spacing=1.0) -> float"""
1546 return _IMP_bff.PathMapTile_get_value(self, *args, **kwargs)
1548 def set_value(self, *args, **kwargs):
1549 r"""set_value(PathMapTile self, int value_type, float value, std::string const & name="")"""
1550 return _IMP_bff.PathMapTile_set_value(self, *args, **kwargs)
1551 __swig_destroy__ = _IMP_bff.delete_PathMapTile
1554 _IMP_bff.PathMapTile_swigregister(PathMapTile)
1555 cvar = _IMP_bff.cvar
1556 TILE_VISITED_DEFAULT = cvar.TILE_VISITED_DEFAULT
1557 TILE_PENALTY_DEFAULT = cvar.TILE_PENALTY_DEFAULT
1558 TILE_COST_DEFAULT = cvar.TILE_COST_DEFAULT
1559 TILE_EDGE_COST_DEFAULT = cvar.TILE_EDGE_COST_DEFAULT
1560 TILE_PENALTY_THRESHOLD = cvar.TILE_PENALTY_THRESHOLD
1561 TILE_OBSTACLE_THRESHOLD = cvar.TILE_OBSTACLE_THRESHOLD
1562 TILE_OBSTACLE_PENALTY = cvar.TILE_OBSTACLE_PENALTY
1564 class PathMapTileEdge(IMP._Value):
1565 r"""Proxy of C++ IMP::bff::PathMapTileEdge class."""
1567 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1569 def get_length(self):
1570 r"""get_length(PathMapTileEdge self) -> float"""
1571 return _IMP_bff.PathMapTileEdge_get_length(self)
1573 def __init__(self, *args, **kwargs):
1574 r"""__init__(PathMapTileEdge self, int edge_target=-1, float edge_cost=std::numeric_limits< float >::max()) -> PathMapTileEdge"""
1575 _IMP_bff.PathMapTileEdge_swiginit(self, _IMP_bff.new_PathMapTileEdge(*args, **kwargs))
1577 def show(self, *args, **kwargs):
1578 r"""show(PathMapTileEdge self, _ostream out=std::cout)"""
1579 return _IMP_bff.PathMapTileEdge_show(self, *args, **kwargs)
1582 r"""__str__(PathMapTileEdge self) -> std::string"""
1583 return _IMP_bff.PathMapTileEdge___str__(self)
1586 r"""__repr__(PathMapTileEdge self) -> std::string"""
1587 return _IMP_bff.PathMapTileEdge___repr__(self)
1588 __swig_destroy__ = _IMP_bff.delete_PathMapTileEdge
1591 _IMP_bff.PathMapTileEdge_swigregister(PathMapTileEdge)
1592 class VectorPathMapTile(object):
1593 r"""Proxy of C++ std::vector< IMP::bff::PathMapTile > class."""
1595 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1596 __repr__ = _swig_repr
1599 r"""iterator(VectorPathMapTile self) -> IMP_BFF_SwigPyIterator"""
1600 return _IMP_bff.VectorPathMapTile_iterator(self)
1602 return self.iterator()
1604 def __nonzero__(self):
1605 r"""__nonzero__(VectorPathMapTile self) -> bool"""
1606 return _IMP_bff.VectorPathMapTile___nonzero__(self)
1609 r"""__bool__(VectorPathMapTile self) -> bool"""
1610 return _IMP_bff.VectorPathMapTile___bool__(self)
1613 r"""__len__(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1614 return _IMP_bff.VectorPathMapTile___len__(self)
1616 def __getslice__(self, i, j):
1617 r"""__getslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j) -> VectorPathMapTile"""
1618 return _IMP_bff.VectorPathMapTile___getslice__(self, i, j)
1620 def __setslice__(self, *args):
1622 __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)
1623 __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j, VectorPathMapTile v)
1625 return _IMP_bff.VectorPathMapTile___setslice__(self, *args)
1627 def __delslice__(self, i, j):
1628 r"""__delslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)"""
1629 return _IMP_bff.VectorPathMapTile___delslice__(self, i, j)
1631 def __delitem__(self, *args):
1633 __delitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i)
1634 __delitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1636 return _IMP_bff.VectorPathMapTile___delitem__(self, *args)
1638 def __getitem__(self, *args):
1640 __getitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTile
1641 __getitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i) -> PathMapTile
1643 return _IMP_bff.VectorPathMapTile___getitem__(self, *args)
1645 def __setitem__(self, *args):
1647 __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTile v)
1648 __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1649 __setitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, PathMapTile x)
1651 return _IMP_bff.VectorPathMapTile___setitem__(self, *args)
1654 r"""pop(VectorPathMapTile self) -> PathMapTile"""
1655 return _IMP_bff.VectorPathMapTile_pop(self)
1657 def append(self, x):
1658 r"""append(VectorPathMapTile self, PathMapTile x)"""
1659 return _IMP_bff.VectorPathMapTile_append(self, x)
1662 r"""empty(VectorPathMapTile self) -> bool"""
1663 return _IMP_bff.VectorPathMapTile_empty(self)
1666 r"""size(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1667 return _IMP_bff.VectorPathMapTile_size(self)
1670 r"""swap(VectorPathMapTile self, VectorPathMapTile v)"""
1671 return _IMP_bff.VectorPathMapTile_swap(self, v)
1674 r"""begin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1675 return _IMP_bff.VectorPathMapTile_begin(self)
1678 r"""end(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1679 return _IMP_bff.VectorPathMapTile_end(self)
1682 r"""rbegin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1683 return _IMP_bff.VectorPathMapTile_rbegin(self)
1686 r"""rend(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1687 return _IMP_bff.VectorPathMapTile_rend(self)
1690 r"""clear(VectorPathMapTile self)"""
1691 return _IMP_bff.VectorPathMapTile_clear(self)
1693 def get_allocator(self):
1694 r"""get_allocator(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::allocator_type"""
1695 return _IMP_bff.VectorPathMapTile_get_allocator(self)
1698 r"""pop_back(VectorPathMapTile self)"""
1699 return _IMP_bff.VectorPathMapTile_pop_back(self)
1701 def erase(self, *args):
1703 erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos) -> std::vector< IMP::bff::PathMapTile >::iterator
1704 erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator first, std::vector< IMP::bff::PathMapTile >::iterator last) -> std::vector< IMP::bff::PathMapTile >::iterator
1706 return _IMP_bff.VectorPathMapTile_erase(self, *args)
1708 def __init__(self, *args):
1710 __init__(VectorPathMapTile self) -> VectorPathMapTile
1711 __init__(VectorPathMapTile self, VectorPathMapTile other) -> VectorPathMapTile
1712 __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size) -> VectorPathMapTile
1713 __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size, PathMapTile value) -> VectorPathMapTile
1715 _IMP_bff.VectorPathMapTile_swiginit(self, _IMP_bff.new_VectorPathMapTile(*args))
1717 def push_back(self, x):
1718 r"""push_back(VectorPathMapTile self, PathMapTile x)"""
1719 return _IMP_bff.VectorPathMapTile_push_back(self, x)
1722 r"""front(VectorPathMapTile self) -> PathMapTile"""
1723 return _IMP_bff.VectorPathMapTile_front(self)
1726 r"""back(VectorPathMapTile self) -> PathMapTile"""
1727 return _IMP_bff.VectorPathMapTile_back(self)
1729 def assign(self, n, x):
1730 r"""assign(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)"""
1731 return _IMP_bff.VectorPathMapTile_assign(self, n, x)
1733 def resize(self, *args):
1735 resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size)
1736 resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size, PathMapTile x)
1738 return _IMP_bff.VectorPathMapTile_resize(self, *args)
1740 def insert(self, *args):
1742 insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, PathMapTile x) -> std::vector< IMP::bff::PathMapTile >::iterator
1743 insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)
1745 return _IMP_bff.VectorPathMapTile_insert(self, *args)
1747 def reserve(self, n):
1748 r"""reserve(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n)"""
1749 return _IMP_bff.VectorPathMapTile_reserve(self, n)
1752 r"""capacity(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1753 return _IMP_bff.VectorPathMapTile_capacity(self)
1754 __swig_destroy__ = _IMP_bff.delete_VectorPathMapTile
1757 _IMP_bff.VectorPathMapTile_swigregister(VectorPathMapTile)
1758 class VectorPathMapTileEdge(object):
1759 r"""Proxy of C++ std::vector< IMP::bff::PathMapTileEdge > class."""
1761 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1762 __repr__ = _swig_repr
1765 r"""iterator(VectorPathMapTileEdge self) -> IMP_BFF_SwigPyIterator"""
1766 return _IMP_bff.VectorPathMapTileEdge_iterator(self)
1768 return self.iterator()
1770 def __nonzero__(self):
1771 r"""__nonzero__(VectorPathMapTileEdge self) -> bool"""
1772 return _IMP_bff.VectorPathMapTileEdge___nonzero__(self)
1775 r"""__bool__(VectorPathMapTileEdge self) -> bool"""
1776 return _IMP_bff.VectorPathMapTileEdge___bool__(self)
1779 r"""__len__(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1780 return _IMP_bff.VectorPathMapTileEdge___len__(self)
1782 def __getslice__(self, i, j):
1783 r"""__getslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j) -> VectorPathMapTileEdge"""
1784 return _IMP_bff.VectorPathMapTileEdge___getslice__(self, i, j)
1786 def __setslice__(self, *args):
1788 __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)
1789 __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j, VectorPathMapTileEdge v)
1791 return _IMP_bff.VectorPathMapTileEdge___setslice__(self, *args)
1793 def __delslice__(self, i, j):
1794 r"""__delslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)"""
1795 return _IMP_bff.VectorPathMapTileEdge___delslice__(self, i, j)
1797 def __delitem__(self, *args):
1799 __delitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i)
1800 __delitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1802 return _IMP_bff.VectorPathMapTileEdge___delitem__(self, *args)
1804 def __getitem__(self, *args):
1806 __getitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTileEdge
1807 __getitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i) -> PathMapTileEdge
1809 return _IMP_bff.VectorPathMapTileEdge___getitem__(self, *args)
1811 def __setitem__(self, *args):
1813 __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTileEdge v)
1814 __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1815 __setitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, PathMapTileEdge x)
1817 return _IMP_bff.VectorPathMapTileEdge___setitem__(self, *args)
1820 r"""pop(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1821 return _IMP_bff.VectorPathMapTileEdge_pop(self)
1823 def append(self, x):
1824 r"""append(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1825 return _IMP_bff.VectorPathMapTileEdge_append(self, x)
1828 r"""empty(VectorPathMapTileEdge self) -> bool"""
1829 return _IMP_bff.VectorPathMapTileEdge_empty(self)
1832 r"""size(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1833 return _IMP_bff.VectorPathMapTileEdge_size(self)
1836 r"""swap(VectorPathMapTileEdge self, VectorPathMapTileEdge v)"""
1837 return _IMP_bff.VectorPathMapTileEdge_swap(self, v)
1840 r"""begin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1841 return _IMP_bff.VectorPathMapTileEdge_begin(self)
1844 r"""end(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1845 return _IMP_bff.VectorPathMapTileEdge_end(self)
1848 r"""rbegin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1849 return _IMP_bff.VectorPathMapTileEdge_rbegin(self)
1852 r"""rend(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1853 return _IMP_bff.VectorPathMapTileEdge_rend(self)
1856 r"""clear(VectorPathMapTileEdge self)"""
1857 return _IMP_bff.VectorPathMapTileEdge_clear(self)
1859 def get_allocator(self):
1860 r"""get_allocator(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::allocator_type"""
1861 return _IMP_bff.VectorPathMapTileEdge_get_allocator(self)
1864 r"""pop_back(VectorPathMapTileEdge self)"""
1865 return _IMP_bff.VectorPathMapTileEdge_pop_back(self)
1867 def erase(self, *args):
1869 erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1870 erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator first, std::vector< IMP::bff::PathMapTileEdge >::iterator last) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1872 return _IMP_bff.VectorPathMapTileEdge_erase(self, *args)
1874 def __init__(self, *args):
1876 __init__(VectorPathMapTileEdge self) -> VectorPathMapTileEdge
1877 __init__(VectorPathMapTileEdge self, VectorPathMapTileEdge other) -> VectorPathMapTileEdge
1878 __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size) -> VectorPathMapTileEdge
1879 __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size, PathMapTileEdge value) -> VectorPathMapTileEdge
1881 _IMP_bff.VectorPathMapTileEdge_swiginit(self, _IMP_bff.new_VectorPathMapTileEdge(*args))
1883 def push_back(self, x):
1884 r"""push_back(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1885 return _IMP_bff.VectorPathMapTileEdge_push_back(self, x)
1888 r"""front(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1889 return _IMP_bff.VectorPathMapTileEdge_front(self)
1892 r"""back(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1893 return _IMP_bff.VectorPathMapTileEdge_back(self)
1895 def assign(self, n, x):
1896 r"""assign(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)"""
1897 return _IMP_bff.VectorPathMapTileEdge_assign(self, n, x)
1899 def resize(self, *args):
1901 resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size)
1902 resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size, PathMapTileEdge x)
1904 return _IMP_bff.VectorPathMapTileEdge_resize(self, *args)
1906 def insert(self, *args):
1908 insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, PathMapTileEdge x) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1909 insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)
1911 return _IMP_bff.VectorPathMapTileEdge_insert(self, *args)
1913 def reserve(self, n):
1914 r"""reserve(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n)"""
1915 return _IMP_bff.VectorPathMapTileEdge_reserve(self, n)
1918 r"""capacity(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1919 return _IMP_bff.VectorPathMapTileEdge_capacity(self)
1920 __swig_destroy__ = _IMP_bff.delete_VectorPathMapTileEdge
1923 _IMP_bff.VectorPathMapTileEdge_swigregister(VectorPathMapTileEdge)
1926 return [AV(x)
for x
in l]
1927 _plural_types.append(
"AVs")
1930 _value_types.append(
"AV")
1933 AVPairDistanceMeasurements=list
1934 _plural_types.append(
"AVPairDistanceMeasurements")
1935 _value_types.append(
"AVPairDistanceMeasurement")
1938 _object_types.append(
"AVNetworkRestraint")
1941 def _object_cast_to_AVNetworkRestraint(o):
1942 r"""_object_cast_to_AVNetworkRestraint(Object o) -> AVNetworkRestraint"""
1943 return _IMP_bff._object_cast_to_AVNetworkRestraint(o)
1944 class MapStringAVPairDistanceMeasurement(object):
1945 r"""Proxy of C++ std::map< std::string,IMP::bff::AVPairDistanceMeasurement > class."""
1947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1948 __repr__ = _swig_repr
1951 r"""iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
1952 return _IMP_bff.MapStringAVPairDistanceMeasurement_iterator(self)
1954 return self.iterator()
1956 def __nonzero__(self):
1957 r"""__nonzero__(MapStringAVPairDistanceMeasurement self) -> bool"""
1958 return _IMP_bff.MapStringAVPairDistanceMeasurement___nonzero__(self)
1961 r"""__bool__(MapStringAVPairDistanceMeasurement self) -> bool"""
1962 return _IMP_bff.MapStringAVPairDistanceMeasurement___bool__(self)
1965 r"""__len__(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
1966 return _IMP_bff.MapStringAVPairDistanceMeasurement___len__(self)
1968 return self.key_iterator()
1970 return self.key_iterator()
1971 def itervalues(self):
1972 return self.value_iterator()
1973 def iteritems(self):
1974 return self.iterator()
1976 def __getitem__(self, key):
1977 r"""__getitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> AVPairDistanceMeasurement"""
1978 return _IMP_bff.MapStringAVPairDistanceMeasurement___getitem__(self, key)
1980 def __delitem__(self, key):
1981 r"""__delitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)"""
1982 return _IMP_bff.MapStringAVPairDistanceMeasurement___delitem__(self, key)
1984 def has_key(self, key):
1985 r"""has_key(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
1986 return _IMP_bff.MapStringAVPairDistanceMeasurement_has_key(self, key)
1989 r"""keys(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
1990 return _IMP_bff.MapStringAVPairDistanceMeasurement_keys(self)
1993 r"""values(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
1994 return _IMP_bff.MapStringAVPairDistanceMeasurement_values(self)
1997 r"""items(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
1998 return _IMP_bff.MapStringAVPairDistanceMeasurement_items(self)
2000 def __contains__(self, key):
2001 r"""__contains__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
2002 return _IMP_bff.MapStringAVPairDistanceMeasurement___contains__(self, key)
2004 def key_iterator(self):
2005 r"""key_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2006 return _IMP_bff.MapStringAVPairDistanceMeasurement_key_iterator(self)
2008 def value_iterator(self):
2009 r"""value_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2010 return _IMP_bff.MapStringAVPairDistanceMeasurement_value_iterator(self)
2012 def __setitem__(self, *args):
2014 __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)
2015 __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key, AVPairDistanceMeasurement x)
2017 return _IMP_bff.MapStringAVPairDistanceMeasurement___setitem__(self, *args)
2020 r"""asdict(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2021 return _IMP_bff.MapStringAVPairDistanceMeasurement_asdict(self)
2023 def __init__(self, *args):
2025 __init__(MapStringAVPairDistanceMeasurement self, std::less< std::string > const & other) -> MapStringAVPairDistanceMeasurement
2026 __init__(MapStringAVPairDistanceMeasurement self) -> MapStringAVPairDistanceMeasurement
2027 __init__(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement other) -> MapStringAVPairDistanceMeasurement
2029 _IMP_bff.MapStringAVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_MapStringAVPairDistanceMeasurement(*args))
2032 r"""empty(MapStringAVPairDistanceMeasurement self) -> bool"""
2033 return _IMP_bff.MapStringAVPairDistanceMeasurement_empty(self)
2036 r"""size(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2037 return _IMP_bff.MapStringAVPairDistanceMeasurement_size(self)
2040 r"""swap(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement v)"""
2041 return _IMP_bff.MapStringAVPairDistanceMeasurement_swap(self, v)
2044 r"""begin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2045 return _IMP_bff.MapStringAVPairDistanceMeasurement_begin(self)
2048 r"""end(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2049 return _IMP_bff.MapStringAVPairDistanceMeasurement_end(self)
2052 r"""rbegin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2053 return _IMP_bff.MapStringAVPairDistanceMeasurement_rbegin(self)
2056 r"""rend(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2057 return _IMP_bff.MapStringAVPairDistanceMeasurement_rend(self)
2060 r"""clear(MapStringAVPairDistanceMeasurement self)"""
2061 return _IMP_bff.MapStringAVPairDistanceMeasurement_clear(self)
2063 def get_allocator(self):
2064 r"""get_allocator(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::allocator_type"""
2065 return _IMP_bff.MapStringAVPairDistanceMeasurement_get_allocator(self)
2068 r"""count(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2069 return _IMP_bff.MapStringAVPairDistanceMeasurement_count(self, x)
2071 def erase(self, *args):
2073 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type
2074 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator position)
2075 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator first, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator last)
2077 return _IMP_bff.MapStringAVPairDistanceMeasurement_erase(self, *args)
2080 r"""find(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2081 return _IMP_bff.MapStringAVPairDistanceMeasurement_find(self, x)
2083 def lower_bound(self, x):
2084 r"""lower_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2085 return _IMP_bff.MapStringAVPairDistanceMeasurement_lower_bound(self, x)
2087 def upper_bound(self, x):
2088 r"""upper_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2089 return _IMP_bff.MapStringAVPairDistanceMeasurement_upper_bound(self, x)
2090 __swig_destroy__ = _IMP_bff.delete_MapStringAVPairDistanceMeasurement
2093 _IMP_bff.MapStringAVPairDistanceMeasurement_swigregister(MapStringAVPairDistanceMeasurement)
2094 DYE_PAIR_DISTANCE_E = _IMP_bff.DYE_PAIR_DISTANCE_E
2096 DYE_PAIR_DISTANCE_MEAN = _IMP_bff.DYE_PAIR_DISTANCE_MEAN
2098 DYE_PAIR_DISTANCE_MP = _IMP_bff.DYE_PAIR_DISTANCE_MP
2100 DYE_PAIR_EFFICIENCY = _IMP_bff.DYE_PAIR_EFFICIENCY
2102 DYE_PAIR_DISTANCE_DISTRIBUTION = _IMP_bff.DYE_PAIR_DISTANCE_DISTRIBUTION
2104 DYE_PAIR_XYZ_DISTANCE = _IMP_bff.DYE_PAIR_XYZ_DISTANCE
2106 class AVPairDistanceMeasurement(IMP._Value):
2107 r"""Proxy of C++ IMP::bff::AVPairDistanceMeasurement class."""
2109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2110 distance = property(_IMP_bff.AVPairDistanceMeasurement_distance_get, _IMP_bff.AVPairDistanceMeasurement_distance_set, doc=
r"""distance : double""")
2111 error_neg = property(_IMP_bff.AVPairDistanceMeasurement_error_neg_get, _IMP_bff.AVPairDistanceMeasurement_error_neg_set, doc=
r"""error_neg : double""")
2112 error_pos = property(_IMP_bff.AVPairDistanceMeasurement_error_pos_get, _IMP_bff.AVPairDistanceMeasurement_error_pos_set, doc=
r"""error_pos : double""")
2113 forster_radius = property(_IMP_bff.AVPairDistanceMeasurement_forster_radius_get, _IMP_bff.AVPairDistanceMeasurement_forster_radius_set, doc=
r"""forster_radius : double""")
2114 distance_type = property(_IMP_bff.AVPairDistanceMeasurement_distance_type_get, _IMP_bff.AVPairDistanceMeasurement_distance_type_set, doc=
r"""distance_type : int""")
2115 position_1 = property(_IMP_bff.AVPairDistanceMeasurement_position_1_get, _IMP_bff.AVPairDistanceMeasurement_position_1_set, doc=
r"""position_1 : std::string""")
2116 position_2 = property(_IMP_bff.AVPairDistanceMeasurement_position_2_get, _IMP_bff.AVPairDistanceMeasurement_position_2_set, doc=
r"""position_2 : std::string""")
2119 r"""get_json(AVPairDistanceMeasurement self) -> std::string"""
2120 return _IMP_bff.AVPairDistanceMeasurement_get_json(self)
2122 def score_model(self, model):
2123 r"""score_model(AVPairDistanceMeasurement self, double model) -> double"""
2124 return _IMP_bff.AVPairDistanceMeasurement_score_model(self, model)
2126 def show(self, *args, **kwargs):
2127 r"""show(AVPairDistanceMeasurement self, _ostream out=std::cout)"""
2128 return _IMP_bff.AVPairDistanceMeasurement_show(self, *args, **kwargs)
2131 r"""__str__(AVPairDistanceMeasurement self) -> std::string"""
2132 return _IMP_bff.AVPairDistanceMeasurement___str__(self)
2135 r"""__repr__(AVPairDistanceMeasurement self) -> std::string"""
2136 return _IMP_bff.AVPairDistanceMeasurement___repr__(self)
2139 r"""__init__(AVPairDistanceMeasurement self) -> AVPairDistanceMeasurement"""
2140 _IMP_bff.AVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_AVPairDistanceMeasurement())
2141 __swig_destroy__ = _IMP_bff.delete_AVPairDistanceMeasurement
2144 _IMP_bff.AVPairDistanceMeasurement_swigregister(AVPairDistanceMeasurement)
2146 r"""Proxy of C++ IMP::bff::AV class."""
2148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2150 def create_path_map_header(self):
2151 r"""create_path_map_header(AV self) -> PathMapHeader"""
2152 return _IMP_bff.AV_create_path_map_header(self)
2154 def init_path_map(self):
2155 r"""init_path_map(AV self)"""
2156 return _IMP_bff.AV_init_path_map(self)
2160 r"""get_av_key(unsigned int i) -> FloatKey"""
2161 return _IMP_bff.AV_get_av_key(i)
2164 def do_setup_particle(*args, **kwargs):
2165 r"""do_setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_source, double linker_length=20.0, Vector3D radii=IMP::algebra::Vector3D(3.5, 0, 0), double linker_width=0.5, double allowed_sphere_radius=1.5, double contact_volume_thickness=0.0, double contact_volume_trapped_fraction=-1, double simulation_grid_resolution=1.5)"""
2166 return _IMP_bff.AV_do_setup_particle(*args, **kwargs)
2169 def get_particle_key(i):
2170 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2171 return _IMP_bff.AV_get_particle_key(i)
2173 def get_particle_index(self, *args):
2175 get_particle_index(AV self) -> ParticleIndex
2176 get_particle_index(AV self, unsigned int i) -> ParticleIndex
2178 return _IMP_bff.AV_get_particle_index(self, *args)
2180 def get_particle(self, *args):
2182 get_particle(AV self) -> Particle
2183 get_particle(AV self, unsigned int i) -> Particle
2185 return _IMP_bff.AV_get_particle(self, *args)
2187 def __init__(self, *args):
2189 __init__(AV self) -> AV
2190 __init__(AV self, Model m, ParticleIndex id) -> AV
2191 __init__(AV self, _ParticleAdaptor d) -> AV
2193 _IMP_bff.AV_swiginit(self, _IMP_bff.new_AV(*args))
2195 def show(self, *args, **kwargs):
2196 r"""show(AV self, _ostream out=std::cout)"""
2197 return _IMP_bff.AV_show(self, *args, **kwargs)
2200 def setup_particle(*args):
2202 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_source) -> AV
2203 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_source) -> AV
2205 return _IMP_bff.AV_setup_particle(*args)
2207 def get_linker_length(self):
2208 r"""get_linker_length(AV self) -> IMP::Float"""
2209 return _IMP_bff.AV_get_linker_length(self)
2211 def set_linker_length(self, t):
2212 r"""set_linker_length(AV self, IMP::Float t)"""
2213 return _IMP_bff.AV_set_linker_length(self, t)
2215 def get_radius1(self):
2216 r"""get_radius1(AV self) -> IMP::Float"""
2217 return _IMP_bff.AV_get_radius1(self)
2219 def set_radius1(self, t):
2220 r"""set_radius1(AV self, IMP::Float t)"""
2221 return _IMP_bff.AV_set_radius1(self, t)
2223 def get_radius2(self):
2224 r"""get_radius2(AV self) -> IMP::Float"""
2225 return _IMP_bff.AV_get_radius2(self)
2227 def set_radius2(self, t):
2228 r"""set_radius2(AV self, IMP::Float t)"""
2229 return _IMP_bff.AV_set_radius2(self, t)
2231 def get_radius3(self):
2232 r"""get_radius3(AV self) -> IMP::Float"""
2233 return _IMP_bff.AV_get_radius3(self)
2235 def set_radius3(self, t):
2236 r"""set_radius3(AV self, IMP::Float t)"""
2237 return _IMP_bff.AV_set_radius3(self, t)
2239 def get_linker_width(self):
2240 r"""get_linker_width(AV self) -> IMP::Float"""
2241 return _IMP_bff.AV_get_linker_width(self)
2243 def set_linker_width(self, t):
2244 r"""set_linker_width(AV self, IMP::Float t)"""
2245 return _IMP_bff.AV_set_linker_width(self, t)
2247 def get_allowed_sphere_radius(self):
2248 r"""get_allowed_sphere_radius(AV self) -> IMP::Float"""
2249 return _IMP_bff.AV_get_allowed_sphere_radius(self)
2251 def set_allowed_sphere_radius(self, t):
2252 r"""set_allowed_sphere_radius(AV self, IMP::Float t)"""
2253 return _IMP_bff.AV_set_allowed_sphere_radius(self, t)
2255 def get_contact_volume_thickness(self):
2256 r"""get_contact_volume_thickness(AV self) -> IMP::Float"""
2257 return _IMP_bff.AV_get_contact_volume_thickness(self)
2259 def set_contact_volume_thickness(self, t):
2260 r"""set_contact_volume_thickness(AV self, IMP::Float t)"""
2261 return _IMP_bff.AV_set_contact_volume_thickness(self, t)
2263 def get_contact_volume_trapped_fraction(self):
2264 r"""get_contact_volume_trapped_fraction(AV self) -> IMP::Float"""
2265 return _IMP_bff.AV_get_contact_volume_trapped_fraction(self)
2267 def set_contact_volume_trapped_fraction(self, t):
2268 r"""set_contact_volume_trapped_fraction(AV self, IMP::Float t)"""
2269 return _IMP_bff.AV_set_contact_volume_trapped_fraction(self, t)
2271 def get_simulation_grid_resolution(self):
2272 r"""get_simulation_grid_resolution(AV self) -> IMP::Float"""
2273 return _IMP_bff.AV_get_simulation_grid_resolution(self)
2275 def set_simulation_grid_resolution(self, t):
2276 r"""set_simulation_grid_resolution(AV self, IMP::Float t)"""
2277 return _IMP_bff.AV_set_simulation_grid_resolution(self, t)
2279 def get_radii(self):
2280 r"""get_radii(AV self) -> Vector3D"""
2281 return _IMP_bff.AV_get_radii(self)
2283 def get_parameters_are_optimized(self):
2284 r"""get_parameters_are_optimized(AV self) -> bool"""
2285 return _IMP_bff.AV_get_parameters_are_optimized(self)
2287 def set_av_parameters_are_optimized(self, tf):
2288 r"""set_av_parameters_are_optimized(AV self, bool tf)"""
2289 return _IMP_bff.AV_set_av_parameters_are_optimized(self, tf)
2291 def set_av_parameter(self, j):
2292 r"""set_av_parameter(AV self, nlohmann::json const & j)"""
2293 return _IMP_bff.AV_set_av_parameter(self, j)
2295 def get_derivatives(self):
2296 r"""get_derivatives(AV self) -> Vector3D"""
2297 return _IMP_bff.AV_get_derivatives(self)
2300 def get_is_setup(*args):
2302 get_is_setup(_ParticleAdaptor p) -> bool
2303 get_is_setup(Model m, ParticleIndex pi) -> bool
2305 return _IMP_bff.AV_get_is_setup(*args)
2308 r"""get_map(AV self) -> PathMap"""
2309 return _IMP_bff.AV_get_map(self)
2311 def resample(self, shift_xyz=True):
2312 r"""resample(AV self, bool shift_xyz=True)"""
2313 return _IMP_bff.AV_resample(self, shift_xyz)
2315 def get_mean_position(self, include_source=True):
2316 r"""get_mean_position(AV self, bool include_source=True) -> Vector3D"""
2317 return _IMP_bff.AV_get_mean_position(self, include_source)
2319 def get_source_coordinates(self):
2320 r"""get_source_coordinates(AV self) -> Vector3D"""
2321 return _IMP_bff.AV_get_source_coordinates(self)
2323 def get_source(self):
2324 r"""get_source(AV self) -> Particle"""
2325 return _IMP_bff.AV_get_source(self)
2327 def add_attribute(self, *args):
2329 add_attribute(AV self, FloatKey k, IMP::Float v, bool opt)
2330 add_attribute(AV self, FloatKey a0, IMP::Float a1)
2331 add_attribute(AV self, IntKey a0, IMP::Int a1)
2332 add_attribute(AV self, FloatsKey a0, IMP::Floats a1)
2333 add_attribute(AV self, IntsKey a0, IMP::Ints a1)
2334 add_attribute(AV self, StringKey a0, IMP::String a1)
2335 add_attribute(AV self, ParticleIndexKey a0, Particle a1)
2336 add_attribute(AV self, ObjectKey a0, Object a1)
2337 add_attribute(AV self, SparseFloatKey a0, IMP::Float a1)
2338 add_attribute(AV self, SparseIntKey a0, IMP::Int a1)
2339 add_attribute(AV self, SparseStringKey a0, IMP::String a1)
2340 add_attribute(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2342 return _IMP_bff.AV_add_attribute(self, *args)
2344 def get_value(self, *args):
2346 get_value(AV self, FloatKey a0) -> IMP::Float
2347 get_value(AV self, IntKey a0) -> IMP::Int
2348 get_value(AV self, FloatsKey a0) -> IMP::Floats
2349 get_value(AV self, IntsKey a0) -> IMP::Ints
2350 get_value(AV self, StringKey a0) -> IMP::String
2351 get_value(AV self, ParticleIndexKey a0) -> Particle
2352 get_value(AV self, ObjectKey a0) -> Object
2353 get_value(AV self, SparseFloatKey a0) -> IMP::Float
2354 get_value(AV self, SparseIntKey a0) -> IMP::Int
2355 get_value(AV self, SparseStringKey a0) -> IMP::String
2356 get_value(AV self, SparseParticleIndexKey a0) -> ParticleIndex
2358 return _IMP_bff.AV_get_value(self, *args)
2360 def set_value(self, *args):
2362 set_value(AV self, FloatKey a0, IMP::Float a1)
2363 set_value(AV self, IntKey a0, IMP::Int a1)
2364 set_value(AV self, FloatsKey a0, IMP::Floats a1)
2365 set_value(AV self, IntsKey a0, IMP::Ints a1)
2366 set_value(AV self, StringKey a0, IMP::String a1)
2367 set_value(AV self, ParticleIndexKey a0, Particle a1)
2368 set_value(AV self, ObjectKey a0, Object a1)
2369 set_value(AV self, SparseFloatKey a0, IMP::Float a1)
2370 set_value(AV self, SparseIntKey a0, IMP::Int a1)
2371 set_value(AV self, SparseStringKey a0, IMP::String a1)
2372 set_value(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2374 return _IMP_bff.AV_set_value(self, *args)
2376 def remove_attribute(self, *args):
2378 remove_attribute(AV self, FloatKey a0)
2379 remove_attribute(AV self, IntKey a0)
2380 remove_attribute(AV self, FloatsKey a0)
2381 remove_attribute(AV self, IntsKey a0)
2382 remove_attribute(AV self, StringKey a0)
2383 remove_attribute(AV self, ParticleIndexKey a0)
2384 remove_attribute(AV self, ObjectKey a0)
2385 remove_attribute(AV self, SparseFloatKey a0)
2386 remove_attribute(AV self, SparseIntKey a0)
2387 remove_attribute(AV self, SparseStringKey a0)
2388 remove_attribute(AV self, SparseParticleIndexKey a0)
2390 return _IMP_bff.AV_remove_attribute(self, *args)
2392 def has_attribute(self, *args):
2394 has_attribute(AV self, FloatKey a0) -> bool
2395 has_attribute(AV self, IntKey a0) -> bool
2396 has_attribute(AV self, FloatsKey a0) -> bool
2397 has_attribute(AV self, IntsKey a0) -> bool
2398 has_attribute(AV self, StringKey a0) -> bool
2399 has_attribute(AV self, ParticleIndexKey a0) -> bool
2400 has_attribute(AV self, ObjectKey a0) -> bool
2401 has_attribute(AV self, SparseFloatKey a0) -> bool
2402 has_attribute(AV self, SparseIntKey a0) -> bool
2403 has_attribute(AV self, SparseStringKey a0) -> bool
2404 has_attribute(AV self, SparseParticleIndexKey a0) -> bool
2406 return _IMP_bff.AV_has_attribute(self, *args)
2408 def get_derivative(self, a0):
2409 r"""get_derivative(AV self, FloatKey a0) -> double"""
2410 return _IMP_bff.AV_get_derivative(self, a0)
2413 r"""get_name(AV self) -> std::string"""
2414 return _IMP_bff.AV_get_name(self)
2416 def clear_caches(self):
2417 r"""clear_caches(AV self)"""
2418 return _IMP_bff.AV_clear_caches(self)
2420 def set_name(self, a0):
2421 r"""set_name(AV self, std::string a0)"""
2422 return _IMP_bff.AV_set_name(self, a0)
2425 r"""set_check_level(AV self, IMP::CheckLevel a0)"""
2426 return _IMP_bff.AV_set_check_level(self, a0)
2428 def add_to_derivative(self, a0, a1, a2):
2429 r"""add_to_derivative(AV self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2430 return _IMP_bff.AV_add_to_derivative(self, a0, a1, a2)
2432 def set_is_optimized(self, a0, a1):
2433 r"""set_is_optimized(AV self, FloatKey a0, bool a1)"""
2434 return _IMP_bff.AV_set_is_optimized(self, a0, a1)
2436 def get_is_optimized(self, a0):
2437 r"""get_is_optimized(AV self, FloatKey a0) -> bool"""
2438 return _IMP_bff.AV_get_is_optimized(self, a0)
2441 r"""get_check_level(AV self) -> IMP::CheckLevel"""
2442 return _IMP_bff.AV_get_check_level(self)
2444 def __eq__(self, *args):
2446 __eq__(AV self, AV o) -> bool
2447 __eq__(AV self, Particle d) -> bool
2449 return _IMP_bff.AV___eq__(self, *args)
2451 def __ne__(self, *args):
2453 __ne__(AV self, AV o) -> bool
2454 __ne__(AV self, Particle d) -> bool
2456 return _IMP_bff.AV___ne__(self, *args)
2458 def __le__(self, *args):
2460 __le__(AV self, AV o) -> bool
2461 __le__(AV self, Particle d) -> bool
2463 return _IMP_bff.AV___le__(self, *args)
2465 def __lt__(self, *args):
2467 __lt__(AV self, AV o) -> bool
2468 __lt__(AV self, Particle d) -> bool
2470 return _IMP_bff.AV___lt__(self, *args)
2472 def __ge__(self, *args):
2474 __ge__(AV self, AV o) -> bool
2475 __ge__(AV self, Particle d) -> bool
2477 return _IMP_bff.AV___ge__(self, *args)
2479 def __gt__(self, *args):
2481 __gt__(AV self, AV o) -> bool
2482 __gt__(AV self, Particle d) -> bool
2484 return _IMP_bff.AV___gt__(self, *args)
2487 r"""__hash__(AV self) -> std::size_t"""
2488 return _IMP_bff.AV___hash__(self)
2491 r"""__str__(AV self) -> std::string"""
2492 return _IMP_bff.AV___str__(self)
2495 r"""__repr__(AV self) -> std::string"""
2496 return _IMP_bff.AV___repr__(self)
2498 def _get_as_binary(self):
2499 r"""_get_as_binary(AV self) -> PyObject *"""
2500 return _IMP_bff.AV__get_as_binary(self)
2502 def _set_from_binary(self, p):
2503 r"""_set_from_binary(AV self, PyObject * p)"""
2504 return _IMP_bff.AV__set_from_binary(self, p)
2506 def __getstate__(self):
2507 p = self._get_as_binary()
2508 if len(self.__dict__) > 1:
2509 d = self.__dict__.copy()
2514 def __setstate__(self, p):
2515 if not hasattr(self,
'this'):
2517 if isinstance(p, tuple):
2519 self.__dict__.update(d)
2520 return self._set_from_binary(p)
2523 map = property(get_map)
2525 __swig_destroy__ = _IMP_bff.delete_AV
2528 _IMP_bff.AV_swigregister(AV)
2530 def __lshift__(out, n):
2531 r"""__lshift__(_ostream out, AV n) -> _ostream"""
2532 return _IMP_bff.__lshift__(out, n)
2535 r"""av_distance(AV a, AV b, double forster_radius=52.0, int distance_type=DYE_PAIR_DISTANCE_MEAN, int n_samples=10000) -> double"""
2536 return _IMP_bff.av_distance(*args, **kwargs)
2538 def av_random_points(av1, n_samples=10000):
2539 r"""av_random_points(AV av1, int n_samples=10000) -> VectorDouble"""
2540 return _IMP_bff.av_random_points(av1, n_samples)
2543 r"""av_random_distances(AV av1, AV av2, int n_samples=10000) -> VectorDouble"""
2544 return _IMP_bff.av_random_distances(av1, av2, n_samples)
2547 r"""av_distance_distribution(AV av1, AV av2, VectorDouble axis, int n_samples=10000) -> VectorDouble"""
2548 return _IMP_bff.av_distance_distribution(av1, av2, axis, n_samples)
2551 r"""search_labeling_site(Hierarchy hier, std::string json_str="", nlohmann::json const & json_data=nlohmann::json()) -> ParticleIndex"""
2552 return _IMP_bff.search_labeling_site(*args, **kwargs)
2554 r"""Proxy of C++ IMP::bff::AVNetworkRestraint class."""
2556 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2558 def __init__(self, *args, **kwargs):
2559 r"""__init__(AVNetworkRestraint self, Hierarchy hier, std::string fps_json_fn, std::string name="AVNetworkRestraint%1%", std::string score_set="", int n_samples=50000) -> AVNetworkRestraint"""
2560 _IMP_bff.AVNetworkRestraint_swiginit(self, _IMP_bff.new_AVNetworkRestraint(*args, **kwargs))
2562 def get_probability(self):
2563 r"""get_probability(AVNetworkRestraint self) -> double"""
2564 return _IMP_bff.AVNetworkRestraint_get_probability(self)
2566 def get_used_avs(self):
2567 r"""get_used_avs(AVNetworkRestraint self) -> IMP::bff::AVs const"""
2568 return _IMP_bff.AVNetworkRestraint_get_used_avs(self)
2570 def get_used_distances(self):
2571 r"""get_used_distances(AVNetworkRestraint self) -> MapStringAVPairDistanceMeasurement"""
2572 return _IMP_bff.AVNetworkRestraint_get_used_distances(self)
2574 def get_model_distance(self, position1_name, position2_name, forster_radius, distance_type):
2575 r"""get_model_distance(AVNetworkRestraint self, std::string position1_name, std::string position2_name, double forster_radius, int distance_type) -> double"""
2576 return _IMP_bff.AVNetworkRestraint_get_model_distance(self, position1_name, position2_name, forster_radius, distance_type)
2579 r"""get_indexes(AVNetworkRestraint self) -> IMP::ParticleIndexes const"""
2580 return _IMP_bff.AVNetworkRestraint_get_indexes(self)
2582 def do_get_inputs(self):
2583 r"""do_get_inputs(AVNetworkRestraint self) -> IMP::ModelObjectsTemp"""
2584 return _IMP_bff.AVNetworkRestraint_do_get_inputs(self)
2586 def show(self, out):
2587 r"""show(AVNetworkRestraint self, _ostream out)"""
2588 return _IMP_bff.AVNetworkRestraint_show(self, out)
2590 def get_version_info(self):
2591 r"""get_version_info(AVNetworkRestraint self) -> VersionInfo"""
2592 return _IMP_bff.AVNetworkRestraint_get_version_info(self)
2593 __swig_destroy__ = _IMP_bff.delete_AVNetworkRestraint
2596 r"""__str__(AVNetworkRestraint self) -> std::string"""
2597 return _IMP_bff.AVNetworkRestraint___str__(self)
2600 r"""__repr__(AVNetworkRestraint self) -> std::string"""
2601 return _IMP_bff.AVNetworkRestraint___repr__(self)
2605 return _object_cast_to_AVNetworkRestraint(o)
2609 _IMP_bff.AVNetworkRestraint_swigregister(AVNetworkRestraint)
2612 r"""decay_rescale(double * fit, double * decay, int start=0, int stop=-1) -> double"""
2613 return _IMP_bff.decay_rescale(fit, decay, start, stop)
2616 r"""decay_rescale_w(double * fit, double * decay, double * w_sq, int start=0, int stop=-1) -> double"""
2617 return _IMP_bff.decay_rescale_w(fit, decay, w_sq, start, stop)
2620 r"""decay_rescale_w_bg(double * fit, double * decay, double * w_sq, double bg=0.0, int start=0, int stop=-1) -> double"""
2621 return _IMP_bff.decay_rescale_w_bg(fit, decay, w_sq, bg, start, stop)
2623 def decay_fconv(fit, irf, x, start=0, stop=-1, dt=1.0):
2624 r"""decay_fconv(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2625 return _IMP_bff.decay_fconv(fit, irf, x, start, stop, dt)
2628 r"""decay_fconv_avx(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2629 return _IMP_bff.decay_fconv_avx(fit, irf, x, start, stop, dt)
2632 r"""decay_fconv_per(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2633 return _IMP_bff.decay_fconv_per(fit, irf, x, period, start, stop, dt)
2636 r"""decay_fconv_per_avx(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2637 return _IMP_bff.decay_fconv_per_avx(fit, irf, x, period, start, stop, dt)
2640 r"""decay_fconv_per_cs(double * fit, double * irf, double * x, double period, int conv_stop=-1, int stop=-1, double dt=1.0)"""
2641 return _IMP_bff.decay_fconv_per_cs(fit, irf, x, period, conv_stop, stop, dt)
2644 r"""decay_fconv_ref(double * fit, double * irf, double * x, double tauref, int start=0, int stop=-1, double dt=1.0)"""
2645 return _IMP_bff.decay_fconv_ref(fit, irf, x, tauref, start, stop, dt)
2647 def decay_sconv(fit, irf, model, start=0, stop=-1):
2648 r"""decay_sconv(double * fit, double * irf, double * model, int start=0, int stop=-1)"""
2649 return _IMP_bff.decay_sconv(fit, irf, model, start, stop)
2652 r"""decay_shift_lamp(double * irf, double * irf_shift, double ts)"""
2653 return _IMP_bff.decay_shift_lamp(irf, irf_shift, ts)
2656 r"""mod_p(int a, int n) -> int"""
2657 return _IMP_bff.mod_p(a, n)
2660 r"""decay_add_pile_up_to_model(double * model, double * data, double repetition_rate, double instrument_dead_time, double measurement_time, std::string pile_up_model="coates", int start=0, int stop=-1)"""
2661 return _IMP_bff.decay_add_pile_up_to_model(*args, **kwargs)
2664 r"""discriminate_small_amplitudes(double * lifetime_spectrum, double amplitude_threshold)"""
2665 return _IMP_bff.discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold)
2668 r"""decay_fconv_per_cs_time_axis(double * model, double * time_axis, double * irf, double * lifetime_spectrum, int convolution_start=0, int convolution_stop=-1, double period=100.0)"""
2669 return _IMP_bff.decay_fconv_per_cs_time_axis(model, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop, period)
2671 def decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start=0, convolution_stop=-1):
2672 r"""decay_fconv_cs_time_axis(double * inplace_output, double * time_axis, double * irf, double * lifetime_spectrum, int convolution_start=0, int convolution_stop=-1)"""
2673 return _IMP_bff.decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop)
2674 NOISE_NA = _IMP_bff.NOISE_NA
2676 NOISE_POISSON = _IMP_bff.NOISE_POISSON
2678 class DecayCurve(object):
2679 r"""Proxy of C++ IMP::bff::DecayCurve class."""
2681 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2682 __repr__ = _swig_repr
2685 def shift_array(input, shift):
2686 r"""shift_array(double * input, double shift) -> VectorDouble"""
2687 return _IMP_bff.DecayCurve_shift_array(input, shift)
2690 r"""size(DecayCurve self) -> size_t"""
2691 return _IMP_bff.DecayCurve_size(self)
2694 r"""empty(DecayCurve self) -> bool"""
2695 return _IMP_bff.DecayCurve_empty(self)
2698 r"""get_dx(DecayCurve self) -> VectorDouble"""
2699 return _IMP_bff.DecayCurve_get_dx(self)
2701 def resize(self, n, v=0.0, dx=1.0):
2702 r"""resize(DecayCurve self, size_t n, double v=0.0, double dx=1.0)"""
2703 return _IMP_bff.DecayCurve_resize(self, n, v, dx)
2705 def get_average_dx(self):
2706 r"""get_average_dx(DecayCurve self) -> double"""
2707 return _IMP_bff.DecayCurve_get_average_dx(self)
2710 r"""get_x(DecayCurve self) -> VectorDouble"""
2711 return _IMP_bff.DecayCurve_get_x(self)
2713 def set_x(self, *args):
2715 set_x(DecayCurve self, VectorDouble v)
2716 set_x(DecayCurve self, double * input)
2718 return _IMP_bff.DecayCurve_set_x(self, *args)
2721 r"""get_y(DecayCurve self) -> VectorDouble"""
2722 return _IMP_bff.DecayCurve_get_y(self)
2724 def set_y(self, *args):
2726 set_y(DecayCurve self, VectorDouble v)
2727 set_y(DecayCurve self, double * input)
2729 return _IMP_bff.DecayCurve_set_y(self, *args)
2732 r"""get_ey(DecayCurve self) -> VectorDouble"""
2733 return _IMP_bff.DecayCurve_get_ey(self)
2735 def set_ey(self, *args):
2737 set_ey(DecayCurve self, VectorDouble v)
2738 set_ey(DecayCurve self, double * input)
2740 return _IMP_bff.DecayCurve_set_ey(self, *args)
2742 def set_acquisition_time(self, v):
2743 r"""set_acquisition_time(DecayCurve self, double v)"""
2744 return _IMP_bff.DecayCurve_set_acquisition_time(self, v)
2746 def get_acquisition_time(self):
2747 r"""get_acquisition_time(DecayCurve self) -> double"""
2748 return _IMP_bff.DecayCurve_get_acquisition_time(self)
2750 def set_shift(self, v):
2751 r"""set_shift(DecayCurve self, double v)"""
2752 return _IMP_bff.DecayCurve_set_shift(self, v)
2754 def get_shift(self):
2755 r"""get_shift(DecayCurve self) -> double"""
2756 return _IMP_bff.DecayCurve_get_shift(self)
2759 r"""get_json(DecayCurve self) -> std::string"""
2760 return _IMP_bff.DecayCurve_get_json(self)
2762 def read_json(self, json_string):
2763 r"""read_json(DecayCurve self, std::string json_string) -> int"""
2764 return _IMP_bff.DecayCurve_read_json(self, json_string)
2766 def __init__(self, *args, **kwargs):
2767 r"""__init__(DecayCurve self, VectorDouble x=std::vector< double >(), VectorDouble y=std::vector< double >(), VectorDouble ey=std::vector< double >(), double acquisition_time=std::numeric_limits< double >::max(), int noise_model=NOISE_POISSON, int size=-1) -> DecayCurve"""
2768 _IMP_bff.DecayCurve_swiginit(self, _IMP_bff.new_DecayCurve(*args, **kwargs))
2770 def sum(self, start=0, stop=-1):
2771 r"""sum(DecayCurve self, int start=0, int stop=-1) -> double"""
2772 return _IMP_bff.DecayCurve_sum(self, start, stop)
2774 def apply_simple_moving_average(self, start, stop, n_window=5, normalize=False):
2775 r"""apply_simple_moving_average(DecayCurve self, int start, int stop, int n_window=5, bool normalize=False)"""
2776 return _IMP_bff.DecayCurve_apply_simple_moving_average(self, start, stop, n_window, normalize)
2778 def __iadd__(self, v):
2779 r"""__iadd__(DecayCurve self, double v) -> DecayCurve"""
2780 return _IMP_bff.DecayCurve___iadd__(self, v)
2782 def __isub__(self, v):
2783 r"""__isub__(DecayCurve self, double v) -> DecayCurve"""
2784 return _IMP_bff.DecayCurve___isub__(self, v)
2786 def __imul__(self, v):
2787 r"""__imul__(DecayCurve self, double v) -> DecayCurve"""
2788 return _IMP_bff.DecayCurve___imul__(self, v)
2790 def __itruediv__(self, *args):
2791 return _IMP_bff.DecayCurve___itruediv__(self, *args)
2792 __idiv__ = __itruediv__
2796 def __add__(self, *args):
2798 __add__(DecayCurve self, double v) -> DecayCurve
2799 __add__(DecayCurve self, DecayCurve other) -> DecayCurve
2801 return _IMP_bff.DecayCurve___add__(self, *args)
2803 def __sub__(self, *args):
2805 __sub__(DecayCurve self, double v) -> DecayCurve
2806 __sub__(DecayCurve self, DecayCurve other) -> DecayCurve
2808 return _IMP_bff.DecayCurve___sub__(self, *args)
2810 def __mul__(self, *args):
2812 __mul__(DecayCurve self, double v) -> DecayCurve
2813 __mul__(DecayCurve self, DecayCurve other) -> DecayCurve
2815 return _IMP_bff.DecayCurve___mul__(self, *args)
2817 def __truediv__(self, *args):
2818 return _IMP_bff.DecayCurve___truediv__(self, *args)
2819 __div__ = __truediv__
2823 def __lshift__(self, v):
2824 r"""__lshift__(DecayCurve self, double v) -> DecayCurve"""
2825 return _IMP_bff.DecayCurve___lshift__(self, v)
2827 acquisition_time = property(get_acquisition_time, set_acquisition_time)
2830 shift = property(get_shift, set_shift)
2834 lambda x: np.array(x.get_x()),
2840 lambda x: np.array(x.get_y()),
2846 lambda x: np.array(x.get_ey()),
2850 __swig_destroy__ = _IMP_bff.delete_DecayCurve
2853 _IMP_bff.DecayCurve_swigregister(DecayCurve)
2856 _plural_types.append(
"DecayRanges")
2857 _value_types.append(
"DecayRange")
2859 class DecayRange(IMP._Value):
2860 r"""Proxy of C++ IMP::bff::DecayRange class."""
2862 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2864 def get_start(self, d=None):
2865 r"""get_start(DecayRange self, DecayCurve d=None) -> size_t"""
2866 return _IMP_bff.DecayRange_get_start(self, d)
2868 def get_stop(self, d=None):
2869 r"""get_stop(DecayRange self, DecayCurve d=None) -> size_t"""
2870 return _IMP_bff.DecayRange_get_stop(self, d)
2872 def set_range(self, v):
2873 r"""set_range(DecayRange self, VectorInt v)"""
2874 return _IMP_bff.DecayRange_set_range(self, v)
2876 def get_range(self, d=None):
2877 r"""get_range(DecayRange self, DecayCurve d=None) -> VectorInt"""
2878 return _IMP_bff.DecayRange_get_range(self, d)
2880 def set(self, start=0, stop=-1):
2881 r"""set(DecayRange self, int start=0, int stop=-1)"""
2882 return _IMP_bff.DecayRange_set(self, start, stop)
2884 def __init__(self, start, stop):
2885 r"""__init__(DecayRange self, int start, int stop) -> DecayRange"""
2886 _IMP_bff.DecayRange_swiginit(self, _IMP_bff.new_DecayRange(start, stop))
2887 __swig_destroy__ = _IMP_bff.delete_DecayRange
2889 def show(self, *args, **kwargs):
2890 r"""show(DecayRange self, _ostream out=std::cout)"""
2891 return _IMP_bff.DecayRange_show(self, *args, **kwargs)
2894 r"""__str__(DecayRange self) -> std::string"""
2895 return _IMP_bff.DecayRange___str__(self)
2898 r"""__repr__(DecayRange self) -> std::string"""
2899 return _IMP_bff.DecayRange___repr__(self)
2900 start = property(_IMP_bff.DecayRange_start_get, _IMP_bff.DecayRange_start_set, doc=
r"""start : int""")
2901 stop = property(_IMP_bff.DecayRange_stop_get, _IMP_bff.DecayRange_stop_set, doc=
r"""stop : int""")
2904 _IMP_bff.DecayRange_swigregister(DecayRange)
2906 _object_types.append(
"DecayLifetimeHandler")
2909 def _object_cast_to_DecayLifetimeHandler(o):
2910 r"""_object_cast_to_DecayLifetimeHandler(Object o) -> DecayLifetimeHandler"""
2911 return _IMP_bff._object_cast_to_DecayLifetimeHandler(o)
2913 r"""Proxy of C++ IMP::bff::DecayLifetimeHandler class."""
2915 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2917 def add_lifetime(self, amplitude, lifetime):
2918 r"""add_lifetime(DecayLifetimeHandler self, double amplitude, double lifetime)"""
2919 return _IMP_bff.DecayLifetimeHandler_add_lifetime(self, amplitude, lifetime)
2921 def get_lifetime_spectrum(self):
2922 r"""get_lifetime_spectrum(DecayLifetimeHandler self)"""
2923 return _IMP_bff.DecayLifetimeHandler_get_lifetime_spectrum(self)
2925 def __init__(self, *args, **kwargs):
2926 r"""__init__(DecayLifetimeHandler self, VectorDouble lifetime_spectrum=std::vector< double >(), bool use_amplitude_threshold=False, bool abs_lifetime_spectrum=False, double amplitude_threshold=std::numeric_limits< double >::epsilon()) -> DecayLifetimeHandler"""
2927 _IMP_bff.DecayLifetimeHandler_swiginit(self, _IMP_bff.new_DecayLifetimeHandler(*args, **kwargs))
2929 def get_version_info(self):
2930 r"""get_version_info(DecayLifetimeHandler self) -> VersionInfo"""
2931 return _IMP_bff.DecayLifetimeHandler_get_version_info(self)
2932 __swig_destroy__ = _IMP_bff.delete_DecayLifetimeHandler
2935 r"""__str__(DecayLifetimeHandler self) -> std::string"""
2936 return _IMP_bff.DecayLifetimeHandler___str__(self)
2939 r"""__repr__(DecayLifetimeHandler self) -> std::string"""
2940 return _IMP_bff.DecayLifetimeHandler___repr__(self)
2944 return _object_cast_to_DecayLifetimeHandler(o)
2946 abs_lifetime_spectrum = property(_IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_get, _IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_set, doc=
r"""abs_lifetime_spectrum : bool""")
2947 use_amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_set, doc=
r"""use_amplitude_threshold : bool""")
2948 amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_amplitude_threshold_set, doc=
r"""amplitude_threshold : double""")
2949 lifetime_spectrum = property(_IMP_bff.DecayLifetimeHandler_lifetime_spectrum_get, _IMP_bff.DecayLifetimeHandler_lifetime_spectrum_set, doc=
r"""lifetime_spectrum : std::vector<(double,std::allocator<(double)>)>""")
2952 _IMP_bff.DecayLifetimeHandler_swigregister(DecayLifetimeHandler)
2955 _plural_types.append(
"DecayModifiers")
2956 _value_types.append(
"DecayModifier")
2958 class DecayModifier(DecayRange):
2959 r"""Proxy of C++ IMP::bff::DecayModifier class."""
2961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2963 def __init__(self, *args, **kwargs):
2964 raise AttributeError(
"No constructor defined - class is abstract")
2966 def set_data(self, v):
2967 r"""set_data(DecayModifier self, DecayCurve v)"""
2968 return _IMP_bff.DecayModifier_set_data(self, v)
2971 r"""get_data(DecayModifier self) -> DecayCurve"""
2972 return _IMP_bff.DecayModifier_get_data(self)
2974 def set(self, data, start=0, stop=-1, active=True):
2975 r"""set(DecayModifier self, DecayCurve data, int start=0, int stop=-1, bool active=True)"""
2976 return _IMP_bff.DecayModifier_set(self, data, start, stop, active)
2978 def resize(self, n, v=0.0):
2979 r"""resize(DecayModifier self, size_t n, double v=0.0)"""
2980 return _IMP_bff.DecayModifier_resize(self, n, v)
2983 r"""add(DecayModifier self, DecayCurve out)"""
2984 return _IMP_bff.DecayModifier_add(self, out)
2985 __swig_destroy__ = _IMP_bff.delete_DecayModifier
2988 r"""__str__(DecayModifier self) -> std::string"""
2989 return _IMP_bff.DecayModifier___str__(self)
2992 r"""__repr__(DecayModifier self) -> std::string"""
2993 return _IMP_bff.DecayModifier___repr__(self)
2994 active = property(_IMP_bff.DecayModifier_active_get, _IMP_bff.DecayModifier_active_set, doc=
r"""active : bool""")
2996 data = property(get_data, set_data)
2999 def __call__(self, *args, **kwargs):
3000 self.add(*args, **kwargs)
3004 _IMP_bff.DecayModifier_swigregister(DecayModifier)
3006 DecayConvolutions=list
3007 _plural_types.append(
"DecayConvolutions")
3008 _value_types.append(
"DecayConvolution")
3010 class DecayConvolution(DecayModifier):
3011 r"""Proxy of C++ IMP::bff::DecayConvolution class."""
3013 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3014 FAST_PERIODIC_TIME = _IMP_bff.DecayConvolution_FAST_PERIODIC_TIME
3016 FAST_TIME = _IMP_bff.DecayConvolution_FAST_TIME
3018 FAST_PERIODIC = _IMP_bff.DecayConvolution_FAST_PERIODIC
3020 FAST = _IMP_bff.DecayConvolution_FAST
3022 FAST_AVX = _IMP_bff.DecayConvolution_FAST_AVX
3024 FAST_PERIODIC_AVX = _IMP_bff.DecayConvolution_FAST_PERIODIC_AVX
3028 def compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts):
3029 r"""compute_corrected_irf(DecayCurve irf, DecayCurve corrected_irf, double irf_shift_channels, double irf_background_counts)"""
3030 return _IMP_bff.DecayConvolution_compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts)
3033 def compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution):
3034 r"""compute_mean_lifetime(VectorDouble irf_histogram, VectorDouble decay_histogram, double micro_time_resolution) -> double"""
3035 return _IMP_bff.DecayConvolution_compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution)
3037 def set_irf(self, v):
3038 r"""set_irf(DecayConvolution self, DecayCurve v)"""
3039 return _IMP_bff.DecayConvolution_set_irf(self, v)
3042 r"""get_irf(DecayConvolution self) -> DecayCurve"""
3043 return _IMP_bff.DecayConvolution_get_irf(self)
3045 def get_mean_lifetime(self, decay):
3046 r"""get_mean_lifetime(DecayConvolution self, DecayCurve decay) -> double"""
3047 return _IMP_bff.DecayConvolution_get_mean_lifetime(self, decay)
3049 def set(self, *args, **kwargs):
3050 r"""set(DecayConvolution self, int convolution_method=FAST_PERIODIC_TIME, double excitation_period=100, double irf_shift_channels=0.0, double irf_background_counts=0)"""
3051 return _IMP_bff.DecayConvolution_set(self, *args, **kwargs)
3053 def __init__(self, *args, **kwargs):
3054 r"""__init__(DecayConvolution self, DecayLifetimeHandler lifetime_handler=None, DecayCurve instrument_response_function=None, int convolution_method=FAST, double excitation_period=100, double irf_shift_channels=0.0, double irf_background_counts=0, int start=0, int stop=-1, bool active=True) -> DecayConvolution"""
3055 _IMP_bff.DecayConvolution_swiginit(self, _IMP_bff.new_DecayConvolution(*args, **kwargs))
3056 __swig_destroy__ = _IMP_bff.delete_DecayConvolution
3059 r"""__str__(DecayConvolution self) -> std::string"""
3060 return _IMP_bff.DecayConvolution___str__(self)
3063 r"""__repr__(DecayConvolution self) -> std::string"""
3064 return _IMP_bff.DecayConvolution___repr__(self)
3065 corrected_irf = property(_IMP_bff.DecayConvolution_corrected_irf_get, doc=
r"""corrected_irf : r.IMP::bff::DecayCurve""")
3066 convolution_method = property(_IMP_bff.DecayConvolution_convolution_method_get, _IMP_bff.DecayConvolution_convolution_method_set, doc=
r"""convolution_method : int""")
3067 excitation_period = property(_IMP_bff.DecayConvolution_excitation_period_get, _IMP_bff.DecayConvolution_excitation_period_set, doc=
r"""excitation_period : double""")
3068 irf_shift_channels = property(_IMP_bff.DecayConvolution_irf_shift_channels_get, _IMP_bff.DecayConvolution_irf_shift_channels_set, doc=
r"""irf_shift_channels : double""")
3069 irf_background_counts = property(_IMP_bff.DecayConvolution_irf_background_counts_get, _IMP_bff.DecayConvolution_irf_background_counts_set, doc=
r"""irf_background_counts : double""")
3071 irf = property(get_irf, set_irf)
3075 _IMP_bff.DecayConvolution_swigregister(DecayConvolution)
3078 _plural_types.append(
"DecayPatterns")
3079 _value_types.append(
"DecayPattern")
3081 class DecayPattern(DecayModifier):
3082 r"""Proxy of C++ IMP::bff::DecayPattern class."""
3084 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3086 def __init__(self, constant_offset=0.0, pattern=None, pattern_fraction=0.0, start=0, stop=-1, active=True):
3087 r"""__init__(DecayPattern self, double constant_offset=0.0, DecayCurve pattern=None, double pattern_fraction=0.0, int start=0, int stop=-1, bool active=True) -> DecayPattern"""
3088 _IMP_bff.DecayPattern_swiginit(self, _IMP_bff.new_DecayPattern(constant_offset, pattern, pattern_fraction, start, stop, active))
3091 r"""__str__(DecayPattern self) -> std::string"""
3092 return _IMP_bff.DecayPattern___str__(self)
3095 r"""__repr__(DecayPattern self) -> std::string"""
3096 return _IMP_bff.DecayPattern___repr__(self)
3097 pattern = property(_IMP_bff.DecayPattern_pattern_get, _IMP_bff.DecayPattern_pattern_set, doc=
r"""pattern : p.IMP::bff::DecayCurve""")
3098 pattern_fraction = property(_IMP_bff.DecayPattern_pattern_fraction_get, _IMP_bff.DecayPattern_pattern_fraction_set, doc=
r"""pattern_fraction : double""")
3099 constant_offset = property(_IMP_bff.DecayPattern_constant_offset_get, _IMP_bff.DecayPattern_constant_offset_set, doc=
r"""constant_offset : double""")
3100 __swig_destroy__ = _IMP_bff.delete_DecayPattern
3103 _IMP_bff.DecayPattern_swigregister(DecayPattern)
3106 _plural_types.append(
"DecayPileups")
3107 _value_types.append(
"DecayPileup")
3109 class DecayPileup(DecayModifier):
3110 r"""Proxy of C++ IMP::bff::DecayPileup class."""
3112 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3114 def __init__(self, *args, **kwargs):
3115 r"""__init__(DecayPileup self, DecayCurve data, char const * pile_up_model="coates", double repetition_rate=100, double instrument_dead_time=120, int start=0, int stop=-1, bool active=True) -> DecayPileup"""
3116 _IMP_bff.DecayPileup_swiginit(self, _IMP_bff.new_DecayPileup(*args, **kwargs))
3119 r"""__str__(DecayPileup self) -> std::string"""
3120 return _IMP_bff.DecayPileup___str__(self)
3123 r"""__repr__(DecayPileup self) -> std::string"""
3124 return _IMP_bff.DecayPileup___repr__(self)
3125 instrument_dead_time = property(_IMP_bff.DecayPileup_instrument_dead_time_get, _IMP_bff.DecayPileup_instrument_dead_time_set, doc=
r"""instrument_dead_time : double""")
3126 repetition_rate = property(_IMP_bff.DecayPileup_repetition_rate_get, _IMP_bff.DecayPileup_repetition_rate_set, doc=
r"""repetition_rate : double""")
3127 pile_up_model = property(_IMP_bff.DecayPileup_pile_up_model_get, _IMP_bff.DecayPileup_pile_up_model_set, doc=
r"""pile_up_model : std::string""")
3128 __swig_destroy__ = _IMP_bff.delete_DecayPileup
3131 _IMP_bff.DecayPileup_swigregister(DecayPileup)
3133 DecayLinearizations=list
3134 _plural_types.append(
"DecayLinearizations")
3135 _value_types.append(
"DecayLinearization")
3137 class DecayLinearization(DecayModifier):
3138 r"""Proxy of C++ IMP::bff::DecayLinearization class."""
3140 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3142 def set_linearization_table(self, v):
3143 r"""set_linearization_table(DecayLinearization self, DecayCurve v)"""
3144 return _IMP_bff.DecayLinearization_set_linearization_table(self, v)
3146 def get_linearization_table(self):
3147 r"""get_linearization_table(DecayLinearization self) -> DecayCurve"""
3148 return _IMP_bff.DecayLinearization_get_linearization_table(self)
3150 def __init__(self, linearization_table, start, stop, active=True, n_window=5):
3151 r"""__init__(DecayLinearization self, DecayCurve linearization_table, int start, int stop, bool active=True, int n_window=5) -> DecayLinearization"""
3152 _IMP_bff.DecayLinearization_swiginit(self, _IMP_bff.new_DecayLinearization(linearization_table, start, stop, active, n_window))
3155 r"""__str__(DecayLinearization self) -> std::string"""
3156 return _IMP_bff.DecayLinearization___str__(self)
3159 r"""__repr__(DecayLinearization self) -> std::string"""
3160 return _IMP_bff.DecayLinearization___repr__(self)
3161 __swig_destroy__ = _IMP_bff.delete_DecayLinearization
3164 _IMP_bff.DecayLinearization_swigregister(DecayLinearization)
3167 _plural_types.append(
"DecayScales")
3168 _value_types.append(
"DecayScale")
3170 class DecayScale(DecayModifier):
3171 r"""Proxy of C++ IMP::bff::DecayScale class."""
3173 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3175 def set_blank_outside(self, v):
3176 r"""set_blank_outside(DecayScale self, double v)"""
3177 return _IMP_bff.DecayScale_set_blank_outside(self, v)
3179 def get_blank_outside(self):
3180 r"""get_blank_outside(DecayScale self) -> bool"""
3181 return _IMP_bff.DecayScale_get_blank_outside(self)
3183 def set(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3184 r"""set(DecayScale self, DecayCurve data=None, double constant_background=0.0, int start=0, int stop=-1, bool active=True, bool blank_outside=True)"""
3185 return _IMP_bff.DecayScale_set(self, data, constant_background, start, stop, active, blank_outside)
3187 def __init__(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3188 r"""__init__(DecayScale self, DecayCurve data=None, double constant_background=0.0, int start=0, int stop=-1, bool active=True, bool blank_outside=True) -> DecayScale"""
3189 _IMP_bff.DecayScale_swiginit(self, _IMP_bff.new_DecayScale(data, constant_background, start, stop, active, blank_outside))
3192 r"""__str__(DecayScale self) -> std::string"""
3193 return _IMP_bff.DecayScale___str__(self)
3196 r"""__repr__(DecayScale self) -> std::string"""
3197 return _IMP_bff.DecayScale___repr__(self)
3198 number_of_photons = property(_IMP_bff.DecayScale_number_of_photons_get, doc=
r"""number_of_photons : double""")
3199 constant_background = property(_IMP_bff.DecayScale_constant_background_get, _IMP_bff.DecayScale_constant_background_set, doc=
r"""constant_background : double""")
3200 __swig_destroy__ = _IMP_bff.delete_DecayScale
3203 _IMP_bff.DecayScale_swigregister(DecayScale)
3206 _plural_types.append(
"DecayScores")
3207 _value_types.append(
"DecayScore")
3209 class DecayScore(DecayRange):
3210 r"""Proxy of C++ IMP::bff::DecayScore class."""
3212 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3214 def get_model(self):
3215 r"""get_model(DecayScore self) -> DecayCurve"""
3216 return _IMP_bff.DecayScore_get_model(self)
3218 def set_model(self, v):
3219 r"""set_model(DecayScore self, DecayCurve v)"""
3220 return _IMP_bff.DecayScore_set_model(self, v)
3223 r"""get_data(DecayScore self) -> DecayCurve"""
3224 return _IMP_bff.DecayScore_get_data(self)
3226 def set_data(self, v):
3227 r"""set_data(DecayScore self, DecayCurve v)"""
3228 return _IMP_bff.DecayScore_set_data(self, v)
3230 def get_weighted_residuals(self):
3231 r"""get_weighted_residuals(DecayScore self) -> VectorDouble"""
3232 return _IMP_bff.DecayScore_get_weighted_residuals(self)
3234 def get_score(self, start=0, stop=-1, score_type=None):
3235 r"""get_score(DecayScore self, int start=0, int stop=-1, char const * score_type=None) -> double"""
3236 return _IMP_bff.DecayScore_get_score(self, start, stop, score_type)
3238 def set(self, *args, **kwargs):
3239 r"""set(DecayScore self, DecayCurve model, DecayCurve data, std::string score_type="poisson", int start=0, int stop=-1)"""
3240 return _IMP_bff.DecayScore_set(self, *args, **kwargs)
3242 def __init__(self, *args, **kwargs):
3243 r"""__init__(DecayScore self, DecayCurve model=None, DecayCurve data=None, std::string score_type="poisson", int start=0, int stop=-1) -> DecayScore"""
3244 _IMP_bff.DecayScore_swiginit(self, _IMP_bff.new_DecayScore(*args, **kwargs))
3245 __swig_destroy__ = _IMP_bff.delete_DecayScore
3248 r"""__str__(DecayScore self) -> std::string"""
3249 return _IMP_bff.DecayScore___str__(self)
3252 r"""__repr__(DecayScore self) -> std::string"""
3253 return _IMP_bff.DecayScore___repr__(self)
3254 score_type = property(_IMP_bff.DecayScore_score_type_get, _IMP_bff.DecayScore_score_type_set, doc=
r"""score_type : std::string""")
3255 score = property(_IMP_bff.DecayScore_score_get, doc=
r"""score : double""")
3257 model = property(get_model, set_model)
3260 data = property(get_data, set_data)
3263 weighted_residuals = property(
3264 lambda x: np.array(x.get_weighted_residuals())
3269 _IMP_bff.DecayScore_swigregister(DecayScore)
3271 def get_module_name():
3272 r"""get_module_name() -> std::string const"""
3273 return _IMP_bff.get_module_name()
3276 r"""get_module_version() -> std::string const"""
3277 return _IMP_bff.get_module_version()
3280 r"""get_example_path(std::string fname) -> std::string"""
3281 return _IMP_bff.get_example_path(fname)
3284 r"""get_data_path(std::string fname) -> std::string"""
3285 return _IMP_bff.get_data_path(fname)
3287 from .
import _version_check
void decay_fconv_per_cs(double *fit, double *x, double *lamp, int numexp, int stop, int n_points, double period, int conv_stop, double dt)
Convolve lifetime spectrum - fast convolution, high repetition rate, with convolution stop...
void decay_fconv_avx(double *fit, double *x, double *lamp, int numexp, int start, int stop, double dt=0.05)
Convolve lifetime spectrum with instrument response (fast convolution, AVX optimized for large lifeti...
CheckLevel get_check_level()
Get the current audit mode.
void decay_rescale_w_bg(double *fit, double *decay, double *e_sq, double bg, double *scale, int start, int stop)
Scale model function to the data (with weights and background)
Various classes to hold sets of particles.
void decay_fconv_cs_time_axis(double *inplace_output, int n_output, double *time_axis, int n_time_axis, double *irf, int n_irf, double *lifetime_spectrum, int n_lifetime_spectrum, int convolution_start=0, int convolution_stop=-1)
Make CGAL functionality available to IMP.
void decay_rescale_w(double *fit, double *decay, double *w_sq, double *scale, int start, int stop)
Scale model function to the data (with weights).
void decay_add_pile_up_to_model(double *model, int n_model, double *data, int n_data, double repetition_rate, double instrument_dead_time, double measurement_time, std::string pile_up_model="coates", int start=0, int stop=-1)
Add a pile-up distortion to the model function.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Composable functors to implement scores via compile-time composition.
double av_distance(const AV &a, const AV &b, double forster_radius=52.0, int distance_type=DYE_PAIR_DISTANCE_MEAN, int n_samples=10000)
Computes the distance to another accessible volume.
void decay_rescale(double *fit, double *decay, double *scale, int start, int stop)
Scale model function to the data (old version).
void decay_fconv(double *fit, double *x, double *lamp, int numexp, int start, int stop, double dt=0.05)
Convolve lifetime spectrum with instrument response (fast convolution, low repetition rate) ...
void decay_fconv_per(double *fit, double *x, double *lamp, int numexp, int start, int stop, int n_points, double period, double dt=0.05)
Convolve lifetime spectrum with instrument response (fast convolution, high repetition rate) ...
void decay_shift_lamp(double *lampsh, double *lamp, double ts, int n_points, double out_value=0.0)
shift instrument response function
Code to compute statistical measures.
std::vector< double > av_distance_distribution(const AV &av1, const AV &av2, std::vector< double > axis, int n_samples=10000)
Compute the distance to another accessible volume.
Class for sampling a density map from particles.
Common base class for heavy weight IMP objects.
void decay_sconv(double *fit, double *p, double *lamp, int start, int stop)
Convolve fluorescence decay curve with irf.
Basic utilities for handling cryo-electron microscopy 3D density maps.
void decay_fconv_per_cs_time_axis(double *model, int n_model, double *time_axis, int n_time_axis, double *irf, int n_irf, double *lifetime_spectrum, int n_lifetime_spectrum, int convolution_start=0, int convolution_stop=-1, double period=100.0)
void decay_fconv_ref(double *fit, double *x, double *lamp, int numexp, int start, int stop, double tauref, double dt=0.05)
Convolve lifetime spectrum - fast convolution with reference compound decay.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
void write_path_map(PathMap *m, std::string filename, int value_type, const std::pair< float, float > bounds=std::pair< float, float >(std::numeric_limits< float >::min(), std::numeric_limits< float >::max()), const std::string &feature_name="")
Writes a path map to a file.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void decay_fconv_per_avx(double *fit, double *x, double *lamp, int numexp, int start, int stop, int n_points, double period, double dt=0.05)
Convolve lifetime spectrum with instrument response (fast convolution, high repetition rate)...
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void discriminate_small_amplitudes(double *lifetime_spectrum, int n_lifetime_spectrum, double amplitude_threshold)
std::vector< double > av_random_distances(const AV &av1, const AV &av2, int n_samples=10000)
Random sampling over AV/AV distances.
IMP::ParticleIndex search_labeling_site(const IMP::core::Hierarchy &hier, std::string json_str="", const nlohmann::json &json_data=nlohmann::json())
Find the particle index of a labeling site.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.
int mod_p(int a, int n)
Compute the modulo of a number with respect to a positive integer.