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_GPERFTOOLS = _IMP_bff.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_bff.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_bff._ostream_write(self, osa_buf)
236 _IMP_bff._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_bff.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_bff.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CGAL_HAS_BOOST_SYSTEM
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_BOOST_SYSTEM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_bff.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_bff.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_bff.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_bff.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_bff.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_bff.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_bff.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_bff.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_bff.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_bff.IMP_STATISTICS_HAS_IMP_CGAL
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_RANDOM
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_SYSTEM
318 IMP_STATISTICS_HAS_CGAL = _IMP_bff.IMP_STATISTICS_HAS_CGAL
320 IMP_STATISTICS_HAS_NUMPY = _IMP_bff.IMP_STATISTICS_HAS_NUMPY
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_bff.IMPSTATISTICS_SHOW_WARNINGS
325 IMP_CORE_HAS_IMP_CGAL = _IMP_bff.IMP_CORE_HAS_IMP_CGAL
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_bff.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CORE_HAS_BOOST_FILESYSTEM
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_bff.IMP_CORE_HAS_BOOST_RANDOM
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CORE_HAS_BOOST_SYSTEM
337 IMP_CORE_HAS_CGAL = _IMP_bff.IMP_CORE_HAS_CGAL
339 IMP_CORE_HAS_HDF5 = _IMP_bff.IMP_CORE_HAS_HDF5
341 IMP_CORE_HAS_NUMPY = _IMP_bff.IMP_CORE_HAS_NUMPY
343 IMPCORE_SHOW_WARNINGS = _IMP_bff.IMPCORE_SHOW_WARNINGS
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_bff.IMP_CONTAINER_HAS_IMP_ALGEBRA
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_bff.IMP_CONTAINER_HAS_IMP_CGAL
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_bff.IMP_CONTAINER_HAS_IMP_DISPLAY
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_bff.IMP_CONTAINER_HAS_IMP_KERNEL
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_RANDOM
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_SYSTEM
364 IMP_CONTAINER_HAS_CGAL = _IMP_bff.IMP_CONTAINER_HAS_CGAL
366 IMP_CONTAINER_HAS_HDF5 = _IMP_bff.IMP_CONTAINER_HAS_HDF5
368 IMP_CONTAINER_HAS_NUMPY = _IMP_bff.IMP_CONTAINER_HAS_NUMPY
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_bff.IMP_CONTAINER_HAS_PYTHON_IHM
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_bff.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_bff.IMP_CONTAINER_HAS_ROBIN_MAP
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_bff.IMPCONTAINER_SHOW_WARNINGS
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_bff.IMP_ATOM_HAS_IMP_CGAL
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_bff.IMP_ATOM_HAS_IMP_KERNEL
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_bff.IMP_ATOM_HAS_BOOST_RANDOM
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_bff.IMP_ATOM_HAS_BOOST_REGEX
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_bff.IMP_ATOM_HAS_BOOST_SYSTEM
393 IMP_ATOM_HAS_CGAL = _IMP_bff.IMP_ATOM_HAS_CGAL
395 IMP_ATOM_HAS_HDF5 = _IMP_bff.IMP_ATOM_HAS_HDF5
397 IMP_ATOM_HAS_NUMPY = _IMP_bff.IMP_ATOM_HAS_NUMPY
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_bff.IMP_ATOM_HAS_PYTHON_IHM
401 IMPATOM_SHOW_WARNINGS = _IMP_bff.IMPATOM_SHOW_WARNINGS
403 IMP_ATOM_TYPE_INDEX = _IMP_bff.IMP_ATOM_TYPE_INDEX
405 IMP_RESIDUE_TYPE_INDEX = _IMP_bff.IMP_RESIDUE_TYPE_INDEX
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_bff.IMP_HIERARCHY_TYPE_INDEX
409 IMP_CHAIN_TYPE_INDEX = _IMP_bff.IMP_CHAIN_TYPE_INDEX
412 IMP_EM_HAS_IMP_CGAL = _IMP_bff.IMP_EM_HAS_IMP_CGAL
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_bff.IMP_EM_HAS_IMP_CONTAINER
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_bff.IMP_EM_HAS_IMP_DISPLAY
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_EM_HAS_IMP_SCORE_FUNCTOR
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_EM_HAS_BOOST_FILESYSTEM
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_bff.IMP_EM_HAS_BOOST_RANDOM
426 IMP_EM_HAS_BOOST_REGEX = _IMP_bff.IMP_EM_HAS_BOOST_REGEX
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_bff.IMP_EM_HAS_BOOST_SYSTEM
430 IMP_EM_HAS_CGAL = _IMP_bff.IMP_EM_HAS_CGAL
432 IMP_EM_HAS_HDF5 = _IMP_bff.IMP_EM_HAS_HDF5
434 IMP_EM_HAS_NUMPY = _IMP_bff.IMP_EM_HAS_NUMPY
436 IMP_EM_HAS_PYTHON_IHM = _IMP_bff.IMP_EM_HAS_PYTHON_IHM
438 IMPEM_SHOW_WARNINGS = _IMP_bff.IMPEM_SHOW_WARNINGS
441 IMP_BFF_HAS_IMP_ALGEBRA = _IMP_bff.IMP_BFF_HAS_IMP_ALGEBRA
443 IMP_BFF_HAS_IMP_CGAL = _IMP_bff.IMP_BFF_HAS_IMP_CGAL
445 IMP_BFF_HAS_IMP_DISPLAY = _IMP_bff.IMP_BFF_HAS_IMP_DISPLAY
447 IMP_BFF_HAS_IMP_KERNEL = _IMP_bff.IMP_BFF_HAS_IMP_KERNEL
449 IMP_BFF_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_BFF_HAS_IMP_SCORE_FUNCTOR
451 IMP_BFF_HAS_IMP_STATISTICS = _IMP_bff.IMP_BFF_HAS_IMP_STATISTICS
453 IMP_BFF_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_BFF_HAS_BOOST_FILESYSTEM
455 IMP_BFF_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_BFF_HAS_BOOST_PROGRAMOPTIONS
457 IMP_BFF_HAS_BOOST_RANDOM = _IMP_bff.IMP_BFF_HAS_BOOST_RANDOM
459 IMP_BFF_HAS_BOOST_REGEX = _IMP_bff.IMP_BFF_HAS_BOOST_REGEX
461 IMP_BFF_HAS_BOOST_SYSTEM = _IMP_bff.IMP_BFF_HAS_BOOST_SYSTEM
463 IMP_BFF_HAS_CGAL = _IMP_bff.IMP_BFF_HAS_CGAL
465 IMP_BFF_HAS_HDF5 = _IMP_bff.IMP_BFF_HAS_HDF5
467 IMP_BFF_HAS_PYTHON_IHM = _IMP_bff.IMP_BFF_HAS_PYTHON_IHM
469 IMP_BFF_HAS_AVX = _IMP_bff.IMP_BFF_HAS_AVX
471 IMPBFF_SHOW_WARNINGS = _IMP_bff.IMPBFF_SHOW_WARNINGS
476 SHARED_PTR_DISOWN = _IMP_bff.SHARED_PTR_DISOWN
478 class PairFloatFloat(object):
479 r"""Proxy of C++ std::pair< float,float > class."""
481 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
482 __repr__ = _swig_repr
484 def __init__(self, *args):
486 __init__(PairFloatFloat self) -> PairFloatFloat
487 __init__(PairFloatFloat self, float first, float second) -> PairFloatFloat
488 __init__(PairFloatFloat self, PairFloatFloat other) -> PairFloatFloat
490 _IMP_bff.PairFloatFloat_swiginit(self, _IMP_bff.new_PairFloatFloat(*args))
491 first = property(_IMP_bff.PairFloatFloat_first_get, _IMP_bff.PairFloatFloat_first_set, doc=
r"""first : float""")
492 second = property(_IMP_bff.PairFloatFloat_second_get, _IMP_bff.PairFloatFloat_second_set, doc=
r"""second : float""")
496 return str((self.first, self.second))
497 def __getitem__(self, index):
502 def __setitem__(self, index, val):
507 __swig_destroy__ = _IMP_bff.delete_PairFloatFloat
510 _IMP_bff.PairFloatFloat_swigregister(PairFloatFloat)
511 class VectorString(object):
512 r"""Proxy of C++ std::vector< std::string > class."""
514 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
515 __repr__ = _swig_repr
518 r"""iterator(VectorString self) -> IMP_BFF_SwigPyIterator"""
519 return _IMP_bff.VectorString_iterator(self)
521 return self.iterator()
523 def __nonzero__(self):
524 r"""__nonzero__(VectorString self) -> bool"""
525 return _IMP_bff.VectorString___nonzero__(self)
528 r"""__bool__(VectorString self) -> bool"""
529 return _IMP_bff.VectorString___bool__(self)
532 r"""__len__(VectorString self) -> std::vector< std::string >::size_type"""
533 return _IMP_bff.VectorString___len__(self)
535 def __getslice__(self, i, j):
536 r"""__getslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j) -> VectorString"""
537 return _IMP_bff.VectorString___getslice__(self, i, j)
539 def __setslice__(self, *args):
541 __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)
542 __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j, VectorString v)
544 return _IMP_bff.VectorString___setslice__(self, *args)
546 def __delslice__(self, i, j):
547 r"""__delslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)"""
548 return _IMP_bff.VectorString___delslice__(self, i, j)
550 def __delitem__(self, *args):
552 __delitem__(VectorString self, std::vector< std::string >::difference_type i)
553 __delitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
555 return _IMP_bff.VectorString___delitem__(self, *args)
557 def __getitem__(self, *args):
559 __getitem__(VectorString self, SWIGPY_SLICEOBJECT * slice) -> VectorString
560 __getitem__(VectorString self, std::vector< std::string >::difference_type i) -> std::vector< std::string >::value_type const &
562 return _IMP_bff.VectorString___getitem__(self, *args)
564 def __setitem__(self, *args):
566 __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice, VectorString v)
567 __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
568 __setitem__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::value_type const & x)
570 return _IMP_bff.VectorString___setitem__(self, *args)
573 r"""pop(VectorString self) -> std::vector< std::string >::value_type"""
574 return _IMP_bff.VectorString_pop(self)
577 r"""append(VectorString self, std::vector< std::string >::value_type const & x)"""
578 return _IMP_bff.VectorString_append(self, x)
581 r"""empty(VectorString self) -> bool"""
582 return _IMP_bff.VectorString_empty(self)
585 r"""size(VectorString self) -> std::vector< std::string >::size_type"""
586 return _IMP_bff.VectorString_size(self)
589 r"""swap(VectorString self, VectorString v)"""
590 return _IMP_bff.VectorString_swap(self, v)
593 r"""begin(VectorString self) -> std::vector< std::string >::iterator"""
594 return _IMP_bff.VectorString_begin(self)
597 r"""end(VectorString self) -> std::vector< std::string >::iterator"""
598 return _IMP_bff.VectorString_end(self)
601 r"""rbegin(VectorString self) -> std::vector< std::string >::reverse_iterator"""
602 return _IMP_bff.VectorString_rbegin(self)
605 r"""rend(VectorString self) -> std::vector< std::string >::reverse_iterator"""
606 return _IMP_bff.VectorString_rend(self)
609 r"""clear(VectorString self)"""
610 return _IMP_bff.VectorString_clear(self)
612 def get_allocator(self):
613 r"""get_allocator(VectorString self) -> std::vector< std::string >::allocator_type"""
614 return _IMP_bff.VectorString_get_allocator(self)
617 r"""pop_back(VectorString self)"""
618 return _IMP_bff.VectorString_pop_back(self)
620 def erase(self, *args):
622 erase(VectorString self, std::vector< std::string >::iterator pos) -> std::vector< std::string >::iterator
623 erase(VectorString self, std::vector< std::string >::iterator first, std::vector< std::string >::iterator last) -> std::vector< std::string >::iterator
625 return _IMP_bff.VectorString_erase(self, *args)
627 def __init__(self, *args):
629 __init__(VectorString self) -> VectorString
630 __init__(VectorString self, VectorString other) -> VectorString
631 __init__(VectorString self, std::vector< std::string >::size_type size) -> VectorString
632 __init__(VectorString self, std::vector< std::string >::size_type size, std::vector< std::string >::value_type const & value) -> VectorString
634 _IMP_bff.VectorString_swiginit(self, _IMP_bff.new_VectorString(*args))
636 def push_back(self, x):
637 r"""push_back(VectorString self, std::vector< std::string >::value_type const & x)"""
638 return _IMP_bff.VectorString_push_back(self, x)
641 r"""front(VectorString self) -> std::vector< std::string >::value_type const &"""
642 return _IMP_bff.VectorString_front(self)
645 r"""back(VectorString self) -> std::vector< std::string >::value_type const &"""
646 return _IMP_bff.VectorString_back(self)
648 def assign(self, n, x):
649 r"""assign(VectorString self, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)"""
650 return _IMP_bff.VectorString_assign(self, n, x)
652 def resize(self, *args):
654 resize(VectorString self, std::vector< std::string >::size_type new_size)
655 resize(VectorString self, std::vector< std::string >::size_type new_size, std::vector< std::string >::value_type const & x)
657 return _IMP_bff.VectorString_resize(self, *args)
659 def insert(self, *args):
661 insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::value_type const & x) -> std::vector< std::string >::iterator
662 insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)
664 return _IMP_bff.VectorString_insert(self, *args)
666 def reserve(self, n):
667 r"""reserve(VectorString self, std::vector< std::string >::size_type n)"""
668 return _IMP_bff.VectorString_reserve(self, n)
671 r"""capacity(VectorString self) -> std::vector< std::string >::size_type"""
672 return _IMP_bff.VectorString_capacity(self)
673 __swig_destroy__ = _IMP_bff.delete_VectorString
676 _IMP_bff.VectorString_swigregister(VectorString)
677 class VectorDouble(object):
678 r"""Proxy of C++ std::vector< double > class."""
680 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
681 __repr__ = _swig_repr
684 r"""iterator(VectorDouble self) -> IMP_BFF_SwigPyIterator"""
685 return _IMP_bff.VectorDouble_iterator(self)
687 return self.iterator()
689 def __nonzero__(self):
690 r"""__nonzero__(VectorDouble self) -> bool"""
691 return _IMP_bff.VectorDouble___nonzero__(self)
694 r"""__bool__(VectorDouble self) -> bool"""
695 return _IMP_bff.VectorDouble___bool__(self)
698 r"""__len__(VectorDouble self) -> std::vector< double >::size_type"""
699 return _IMP_bff.VectorDouble___len__(self)
701 def __getslice__(self, i, j):
702 r"""__getslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> VectorDouble"""
703 return _IMP_bff.VectorDouble___getslice__(self, i, j)
705 def __setslice__(self, *args):
707 __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
708 __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j, VectorDouble v)
710 return _IMP_bff.VectorDouble___setslice__(self, *args)
712 def __delslice__(self, i, j):
713 r"""__delslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
714 return _IMP_bff.VectorDouble___delslice__(self, i, j)
716 def __delitem__(self, *args):
718 __delitem__(VectorDouble self, std::vector< double >::difference_type i)
719 __delitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
721 return _IMP_bff.VectorDouble___delitem__(self, *args)
723 def __getitem__(self, *args):
725 __getitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice) -> VectorDouble
726 __getitem__(VectorDouble self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
728 return _IMP_bff.VectorDouble___getitem__(self, *args)
730 def __setitem__(self, *args):
732 __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice, VectorDouble v)
733 __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
734 __setitem__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
736 return _IMP_bff.VectorDouble___setitem__(self, *args)
739 r"""pop(VectorDouble self) -> std::vector< double >::value_type"""
740 return _IMP_bff.VectorDouble_pop(self)
743 r"""append(VectorDouble self, std::vector< double >::value_type const & x)"""
744 return _IMP_bff.VectorDouble_append(self, x)
747 r"""empty(VectorDouble self) -> bool"""
748 return _IMP_bff.VectorDouble_empty(self)
751 r"""size(VectorDouble self) -> std::vector< double >::size_type"""
752 return _IMP_bff.VectorDouble_size(self)
755 r"""swap(VectorDouble self, VectorDouble v)"""
756 return _IMP_bff.VectorDouble_swap(self, v)
759 r"""begin(VectorDouble self) -> std::vector< double >::iterator"""
760 return _IMP_bff.VectorDouble_begin(self)
763 r"""end(VectorDouble self) -> std::vector< double >::iterator"""
764 return _IMP_bff.VectorDouble_end(self)
767 r"""rbegin(VectorDouble self) -> std::vector< double >::reverse_iterator"""
768 return _IMP_bff.VectorDouble_rbegin(self)
771 r"""rend(VectorDouble self) -> std::vector< double >::reverse_iterator"""
772 return _IMP_bff.VectorDouble_rend(self)
775 r"""clear(VectorDouble self)"""
776 return _IMP_bff.VectorDouble_clear(self)
778 def get_allocator(self):
779 r"""get_allocator(VectorDouble self) -> std::vector< double >::allocator_type"""
780 return _IMP_bff.VectorDouble_get_allocator(self)
783 r"""pop_back(VectorDouble self)"""
784 return _IMP_bff.VectorDouble_pop_back(self)
786 def erase(self, *args):
788 erase(VectorDouble self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
789 erase(VectorDouble self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
791 return _IMP_bff.VectorDouble_erase(self, *args)
793 def __init__(self, *args):
795 __init__(VectorDouble self) -> VectorDouble
796 __init__(VectorDouble self, VectorDouble other) -> VectorDouble
797 __init__(VectorDouble self, std::vector< double >::size_type size) -> VectorDouble
798 __init__(VectorDouble self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> VectorDouble
800 _IMP_bff.VectorDouble_swiginit(self, _IMP_bff.new_VectorDouble(*args))
802 def push_back(self, x):
803 r"""push_back(VectorDouble self, std::vector< double >::value_type const & x)"""
804 return _IMP_bff.VectorDouble_push_back(self, x)
807 r"""front(VectorDouble self) -> std::vector< double >::value_type const &"""
808 return _IMP_bff.VectorDouble_front(self)
811 r"""back(VectorDouble self) -> std::vector< double >::value_type const &"""
812 return _IMP_bff.VectorDouble_back(self)
814 def assign(self, n, x):
815 r"""assign(VectorDouble self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
816 return _IMP_bff.VectorDouble_assign(self, n, x)
818 def resize(self, *args):
820 resize(VectorDouble self, std::vector< double >::size_type new_size)
821 resize(VectorDouble self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
823 return _IMP_bff.VectorDouble_resize(self, *args)
825 def insert(self, *args):
827 insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
828 insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
830 return _IMP_bff.VectorDouble_insert(self, *args)
832 def reserve(self, n):
833 r"""reserve(VectorDouble self, std::vector< double >::size_type n)"""
834 return _IMP_bff.VectorDouble_reserve(self, n)
837 r"""capacity(VectorDouble self) -> std::vector< double >::size_type"""
838 return _IMP_bff.VectorDouble_capacity(self)
839 __swig_destroy__ = _IMP_bff.delete_VectorDouble
842 _IMP_bff.VectorDouble_swigregister(VectorDouble)
843 class VectorFloat(object):
844 r"""Proxy of C++ std::vector< float > class."""
846 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
847 __repr__ = _swig_repr
850 r"""iterator(VectorFloat self) -> IMP_BFF_SwigPyIterator"""
851 return _IMP_bff.VectorFloat_iterator(self)
853 return self.iterator()
855 def __nonzero__(self):
856 r"""__nonzero__(VectorFloat self) -> bool"""
857 return _IMP_bff.VectorFloat___nonzero__(self)
860 r"""__bool__(VectorFloat self) -> bool"""
861 return _IMP_bff.VectorFloat___bool__(self)
864 r"""__len__(VectorFloat self) -> std::vector< float >::size_type"""
865 return _IMP_bff.VectorFloat___len__(self)
867 def __getslice__(self, i, j):
868 r"""__getslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j) -> VectorFloat"""
869 return _IMP_bff.VectorFloat___getslice__(self, i, j)
871 def __setslice__(self, *args):
873 __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)
874 __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j, VectorFloat v)
876 return _IMP_bff.VectorFloat___setslice__(self, *args)
878 def __delslice__(self, i, j):
879 r"""__delslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)"""
880 return _IMP_bff.VectorFloat___delslice__(self, i, j)
882 def __delitem__(self, *args):
884 __delitem__(VectorFloat self, std::vector< float >::difference_type i)
885 __delitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
887 return _IMP_bff.VectorFloat___delitem__(self, *args)
889 def __getitem__(self, *args):
891 __getitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice) -> VectorFloat
892 __getitem__(VectorFloat self, std::vector< float >::difference_type i) -> std::vector< float >::value_type const &
894 return _IMP_bff.VectorFloat___getitem__(self, *args)
896 def __setitem__(self, *args):
898 __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice, VectorFloat v)
899 __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
900 __setitem__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::value_type const & x)
902 return _IMP_bff.VectorFloat___setitem__(self, *args)
905 r"""pop(VectorFloat self) -> std::vector< float >::value_type"""
906 return _IMP_bff.VectorFloat_pop(self)
909 r"""append(VectorFloat self, std::vector< float >::value_type const & x)"""
910 return _IMP_bff.VectorFloat_append(self, x)
913 r"""empty(VectorFloat self) -> bool"""
914 return _IMP_bff.VectorFloat_empty(self)
917 r"""size(VectorFloat self) -> std::vector< float >::size_type"""
918 return _IMP_bff.VectorFloat_size(self)
921 r"""swap(VectorFloat self, VectorFloat v)"""
922 return _IMP_bff.VectorFloat_swap(self, v)
925 r"""begin(VectorFloat self) -> std::vector< float >::iterator"""
926 return _IMP_bff.VectorFloat_begin(self)
929 r"""end(VectorFloat self) -> std::vector< float >::iterator"""
930 return _IMP_bff.VectorFloat_end(self)
933 r"""rbegin(VectorFloat self) -> std::vector< float >::reverse_iterator"""
934 return _IMP_bff.VectorFloat_rbegin(self)
937 r"""rend(VectorFloat self) -> std::vector< float >::reverse_iterator"""
938 return _IMP_bff.VectorFloat_rend(self)
941 r"""clear(VectorFloat self)"""
942 return _IMP_bff.VectorFloat_clear(self)
944 def get_allocator(self):
945 r"""get_allocator(VectorFloat self) -> std::vector< float >::allocator_type"""
946 return _IMP_bff.VectorFloat_get_allocator(self)
949 r"""pop_back(VectorFloat self)"""
950 return _IMP_bff.VectorFloat_pop_back(self)
952 def erase(self, *args):
954 erase(VectorFloat self, std::vector< float >::iterator pos) -> std::vector< float >::iterator
955 erase(VectorFloat self, std::vector< float >::iterator first, std::vector< float >::iterator last) -> std::vector< float >::iterator
957 return _IMP_bff.VectorFloat_erase(self, *args)
959 def __init__(self, *args):
961 __init__(VectorFloat self) -> VectorFloat
962 __init__(VectorFloat self, VectorFloat other) -> VectorFloat
963 __init__(VectorFloat self, std::vector< float >::size_type size) -> VectorFloat
964 __init__(VectorFloat self, std::vector< float >::size_type size, std::vector< float >::value_type const & value) -> VectorFloat
966 _IMP_bff.VectorFloat_swiginit(self, _IMP_bff.new_VectorFloat(*args))
968 def push_back(self, x):
969 r"""push_back(VectorFloat self, std::vector< float >::value_type const & x)"""
970 return _IMP_bff.VectorFloat_push_back(self, x)
973 r"""front(VectorFloat self) -> std::vector< float >::value_type const &"""
974 return _IMP_bff.VectorFloat_front(self)
977 r"""back(VectorFloat self) -> std::vector< float >::value_type const &"""
978 return _IMP_bff.VectorFloat_back(self)
980 def assign(self, n, x):
981 r"""assign(VectorFloat self, std::vector< float >::size_type n, std::vector< float >::value_type const & x)"""
982 return _IMP_bff.VectorFloat_assign(self, n, x)
984 def resize(self, *args):
986 resize(VectorFloat self, std::vector< float >::size_type new_size)
987 resize(VectorFloat self, std::vector< float >::size_type new_size, std::vector< float >::value_type const & x)
989 return _IMP_bff.VectorFloat_resize(self, *args)
991 def insert(self, *args):
993 insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::value_type const & x) -> std::vector< float >::iterator
994 insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::size_type n, std::vector< float >::value_type const & x)
996 return _IMP_bff.VectorFloat_insert(self, *args)
998 def reserve(self, n):
999 r"""reserve(VectorFloat self, std::vector< float >::size_type n)"""
1000 return _IMP_bff.VectorFloat_reserve(self, n)
1003 r"""capacity(VectorFloat self) -> std::vector< float >::size_type"""
1004 return _IMP_bff.VectorFloat_capacity(self)
1005 __swig_destroy__ = _IMP_bff.delete_VectorFloat
1008 _IMP_bff.VectorFloat_swigregister(VectorFloat)
1009 class VectorInt(object):
1010 r"""Proxy of C++ std::vector< int > class."""
1012 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1013 __repr__ = _swig_repr
1016 r"""iterator(VectorInt self) -> IMP_BFF_SwigPyIterator"""
1017 return _IMP_bff.VectorInt_iterator(self)
1019 return self.iterator()
1021 def __nonzero__(self):
1022 r"""__nonzero__(VectorInt self) -> bool"""
1023 return _IMP_bff.VectorInt___nonzero__(self)
1026 r"""__bool__(VectorInt self) -> bool"""
1027 return _IMP_bff.VectorInt___bool__(self)
1030 r"""__len__(VectorInt self) -> std::vector< int >::size_type"""
1031 return _IMP_bff.VectorInt___len__(self)
1033 def __getslice__(self, i, j):
1034 r"""__getslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> VectorInt"""
1035 return _IMP_bff.VectorInt___getslice__(self, i, j)
1037 def __setslice__(self, *args):
1039 __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
1040 __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, VectorInt v)
1042 return _IMP_bff.VectorInt___setslice__(self, *args)
1044 def __delslice__(self, i, j):
1045 r"""__delslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
1046 return _IMP_bff.VectorInt___delslice__(self, i, j)
1048 def __delitem__(self, *args):
1050 __delitem__(VectorInt self, std::vector< int >::difference_type i)
1051 __delitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1053 return _IMP_bff.VectorInt___delitem__(self, *args)
1055 def __getitem__(self, *args):
1057 __getitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice) -> VectorInt
1058 __getitem__(VectorInt self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
1060 return _IMP_bff.VectorInt___getitem__(self, *args)
1062 def __setitem__(self, *args):
1064 __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice, VectorInt v)
1065 __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1066 __setitem__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
1068 return _IMP_bff.VectorInt___setitem__(self, *args)
1071 r"""pop(VectorInt self) -> std::vector< int >::value_type"""
1072 return _IMP_bff.VectorInt_pop(self)
1074 def append(self, x):
1075 r"""append(VectorInt self, std::vector< int >::value_type const & x)"""
1076 return _IMP_bff.VectorInt_append(self, x)
1079 r"""empty(VectorInt self) -> bool"""
1080 return _IMP_bff.VectorInt_empty(self)
1083 r"""size(VectorInt self) -> std::vector< int >::size_type"""
1084 return _IMP_bff.VectorInt_size(self)
1087 r"""swap(VectorInt self, VectorInt v)"""
1088 return _IMP_bff.VectorInt_swap(self, v)
1091 r"""begin(VectorInt self) -> std::vector< int >::iterator"""
1092 return _IMP_bff.VectorInt_begin(self)
1095 r"""end(VectorInt self) -> std::vector< int >::iterator"""
1096 return _IMP_bff.VectorInt_end(self)
1099 r"""rbegin(VectorInt self) -> std::vector< int >::reverse_iterator"""
1100 return _IMP_bff.VectorInt_rbegin(self)
1103 r"""rend(VectorInt self) -> std::vector< int >::reverse_iterator"""
1104 return _IMP_bff.VectorInt_rend(self)
1107 r"""clear(VectorInt self)"""
1108 return _IMP_bff.VectorInt_clear(self)
1110 def get_allocator(self):
1111 r"""get_allocator(VectorInt self) -> std::vector< int >::allocator_type"""
1112 return _IMP_bff.VectorInt_get_allocator(self)
1115 r"""pop_back(VectorInt self)"""
1116 return _IMP_bff.VectorInt_pop_back(self)
1118 def erase(self, *args):
1120 erase(VectorInt self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
1121 erase(VectorInt self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
1123 return _IMP_bff.VectorInt_erase(self, *args)
1125 def __init__(self, *args):
1127 __init__(VectorInt self) -> VectorInt
1128 __init__(VectorInt self, VectorInt other) -> VectorInt
1129 __init__(VectorInt self, std::vector< int >::size_type size) -> VectorInt
1130 __init__(VectorInt self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> VectorInt
1132 _IMP_bff.VectorInt_swiginit(self, _IMP_bff.new_VectorInt(*args))
1134 def push_back(self, x):
1135 r"""push_back(VectorInt self, std::vector< int >::value_type const & x)"""
1136 return _IMP_bff.VectorInt_push_back(self, x)
1139 r"""front(VectorInt self) -> std::vector< int >::value_type const &"""
1140 return _IMP_bff.VectorInt_front(self)
1143 r"""back(VectorInt self) -> std::vector< int >::value_type const &"""
1144 return _IMP_bff.VectorInt_back(self)
1146 def assign(self, n, x):
1147 r"""assign(VectorInt self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
1148 return _IMP_bff.VectorInt_assign(self, n, x)
1150 def resize(self, *args):
1152 resize(VectorInt self, std::vector< int >::size_type new_size)
1153 resize(VectorInt self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
1155 return _IMP_bff.VectorInt_resize(self, *args)
1157 def insert(self, *args):
1159 insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
1160 insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
1162 return _IMP_bff.VectorInt_insert(self, *args)
1164 def reserve(self, n):
1165 r"""reserve(VectorInt self, std::vector< int >::size_type n)"""
1166 return _IMP_bff.VectorInt_reserve(self, n)
1169 r"""capacity(VectorInt self) -> std::vector< int >::size_type"""
1170 return _IMP_bff.VectorInt_capacity(self)
1171 __swig_destroy__ = _IMP_bff.delete_VectorInt
1174 _IMP_bff.VectorInt_swigregister(VectorInt)
1175 class VectorLong(object):
1176 r"""Proxy of C++ std::vector< long > class."""
1178 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1179 __repr__ = _swig_repr
1182 r"""iterator(VectorLong self) -> IMP_BFF_SwigPyIterator"""
1183 return _IMP_bff.VectorLong_iterator(self)
1185 return self.iterator()
1187 def __nonzero__(self):
1188 r"""__nonzero__(VectorLong self) -> bool"""
1189 return _IMP_bff.VectorLong___nonzero__(self)
1192 r"""__bool__(VectorLong self) -> bool"""
1193 return _IMP_bff.VectorLong___bool__(self)
1196 r"""__len__(VectorLong self) -> std::vector< long >::size_type"""
1197 return _IMP_bff.VectorLong___len__(self)
1199 def __getslice__(self, i, j):
1200 r"""__getslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j) -> VectorLong"""
1201 return _IMP_bff.VectorLong___getslice__(self, i, j)
1203 def __setslice__(self, *args):
1205 __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)
1206 __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j, VectorLong v)
1208 return _IMP_bff.VectorLong___setslice__(self, *args)
1210 def __delslice__(self, i, j):
1211 r"""__delslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)"""
1212 return _IMP_bff.VectorLong___delslice__(self, i, j)
1214 def __delitem__(self, *args):
1216 __delitem__(VectorLong self, std::vector< long >::difference_type i)
1217 __delitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1219 return _IMP_bff.VectorLong___delitem__(self, *args)
1221 def __getitem__(self, *args):
1223 __getitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice) -> VectorLong
1224 __getitem__(VectorLong self, std::vector< long >::difference_type i) -> std::vector< long >::value_type const &
1226 return _IMP_bff.VectorLong___getitem__(self, *args)
1228 def __setitem__(self, *args):
1230 __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice, VectorLong v)
1231 __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1232 __setitem__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::value_type const & x)
1234 return _IMP_bff.VectorLong___setitem__(self, *args)
1237 r"""pop(VectorLong self) -> std::vector< long >::value_type"""
1238 return _IMP_bff.VectorLong_pop(self)
1240 def append(self, x):
1241 r"""append(VectorLong self, std::vector< long >::value_type const & x)"""
1242 return _IMP_bff.VectorLong_append(self, x)
1245 r"""empty(VectorLong self) -> bool"""
1246 return _IMP_bff.VectorLong_empty(self)
1249 r"""size(VectorLong self) -> std::vector< long >::size_type"""
1250 return _IMP_bff.VectorLong_size(self)
1253 r"""swap(VectorLong self, VectorLong v)"""
1254 return _IMP_bff.VectorLong_swap(self, v)
1257 r"""begin(VectorLong self) -> std::vector< long >::iterator"""
1258 return _IMP_bff.VectorLong_begin(self)
1261 r"""end(VectorLong self) -> std::vector< long >::iterator"""
1262 return _IMP_bff.VectorLong_end(self)
1265 r"""rbegin(VectorLong self) -> std::vector< long >::reverse_iterator"""
1266 return _IMP_bff.VectorLong_rbegin(self)
1269 r"""rend(VectorLong self) -> std::vector< long >::reverse_iterator"""
1270 return _IMP_bff.VectorLong_rend(self)
1273 r"""clear(VectorLong self)"""
1274 return _IMP_bff.VectorLong_clear(self)
1276 def get_allocator(self):
1277 r"""get_allocator(VectorLong self) -> std::vector< long >::allocator_type"""
1278 return _IMP_bff.VectorLong_get_allocator(self)
1281 r"""pop_back(VectorLong self)"""
1282 return _IMP_bff.VectorLong_pop_back(self)
1284 def erase(self, *args):
1286 erase(VectorLong self, std::vector< long >::iterator pos) -> std::vector< long >::iterator
1287 erase(VectorLong self, std::vector< long >::iterator first, std::vector< long >::iterator last) -> std::vector< long >::iterator
1289 return _IMP_bff.VectorLong_erase(self, *args)
1291 def __init__(self, *args):
1293 __init__(VectorLong self) -> VectorLong
1294 __init__(VectorLong self, VectorLong other) -> VectorLong
1295 __init__(VectorLong self, std::vector< long >::size_type size) -> VectorLong
1296 __init__(VectorLong self, std::vector< long >::size_type size, std::vector< long >::value_type const & value) -> VectorLong
1298 _IMP_bff.VectorLong_swiginit(self, _IMP_bff.new_VectorLong(*args))
1300 def push_back(self, x):
1301 r"""push_back(VectorLong self, std::vector< long >::value_type const & x)"""
1302 return _IMP_bff.VectorLong_push_back(self, x)
1305 r"""front(VectorLong self) -> std::vector< long >::value_type const &"""
1306 return _IMP_bff.VectorLong_front(self)
1309 r"""back(VectorLong self) -> std::vector< long >::value_type const &"""
1310 return _IMP_bff.VectorLong_back(self)
1312 def assign(self, n, x):
1313 r"""assign(VectorLong self, std::vector< long >::size_type n, std::vector< long >::value_type const & x)"""
1314 return _IMP_bff.VectorLong_assign(self, n, x)
1316 def resize(self, *args):
1318 resize(VectorLong self, std::vector< long >::size_type new_size)
1319 resize(VectorLong self, std::vector< long >::size_type new_size, std::vector< long >::value_type const & x)
1321 return _IMP_bff.VectorLong_resize(self, *args)
1323 def insert(self, *args):
1325 insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::value_type const & x) -> std::vector< long >::iterator
1326 insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::size_type n, std::vector< long >::value_type const & x)
1328 return _IMP_bff.VectorLong_insert(self, *args)
1330 def reserve(self, n):
1331 r"""reserve(VectorLong self, std::vector< long >::size_type n)"""
1332 return _IMP_bff.VectorLong_reserve(self, n)
1335 r"""capacity(VectorLong self) -> std::vector< long >::size_type"""
1336 return _IMP_bff.VectorLong_capacity(self)
1337 __swig_destroy__ = _IMP_bff.delete_VectorLong
1340 _IMP_bff.VectorLong_swigregister(VectorLong)
1342 PathMapTileEdges=list
1343 _plural_types.append(
"PathMapTileEdges")
1344 _value_types.append(
"PathMapTileEdge")
1347 _object_types.append(
"PathMap")
1350 def _object_cast_to_PathMap(o):
1351 r"""_object_cast_to_PathMap(Object o) -> PathMap"""
1352 return _IMP_bff._object_cast_to_PathMap(o)
1353 class PathMapHeader(object):
1354 r"""Proxy of C++ IMP::bff::PathMapHeader class."""
1356 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1357 __repr__ = _swig_repr
1358 __swig_destroy__ = _IMP_bff.delete_PathMapHeader
1360 def __init__(self, *args, **kwargs):
1361 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"""
1362 _IMP_bff.PathMapHeader_swiginit(self, _IMP_bff.new_PathMapHeader(*args, **kwargs))
1364 def update_map_dimensions(self, nx=-1, ny=-1, nz=-1):
1365 r"""update_map_dimensions(PathMapHeader self, int nx=-1, int ny=-1, int nz=-1)"""
1366 return _IMP_bff.PathMapHeader_update_map_dimensions(self, nx, ny, nz)
1368 def set_path_origin(self, v):
1369 r"""set_path_origin(PathMapHeader self, Vector3D v)"""
1370 return _IMP_bff.PathMapHeader_set_path_origin(self, v)
1372 def get_path_origin(self):
1373 r"""get_path_origin(PathMapHeader self) -> Vector3D"""
1374 return _IMP_bff.PathMapHeader_get_path_origin(self)
1376 def get_max_path_length(self):
1377 r"""get_max_path_length(PathMapHeader self) -> double"""
1378 return _IMP_bff.PathMapHeader_get_max_path_length(self)
1380 def get_simulation_grid_resolution(self):
1381 r"""get_simulation_grid_resolution(PathMapHeader self) -> double"""
1382 return _IMP_bff.PathMapHeader_get_simulation_grid_resolution(self)
1384 def set_obstacle_threshold(self, obstacle_threshold):
1385 r"""set_obstacle_threshold(PathMapHeader self, double obstacle_threshold)"""
1386 return _IMP_bff.PathMapHeader_set_obstacle_threshold(self, obstacle_threshold)
1388 def get_obstacle_threshold(self):
1389 r"""get_obstacle_threshold(PathMapHeader self) -> double"""
1390 return _IMP_bff.PathMapHeader_get_obstacle_threshold(self)
1392 def set_neighbor_radius(self, neighbor_radius):
1393 r"""set_neighbor_radius(PathMapHeader self, double neighbor_radius)"""
1394 return _IMP_bff.PathMapHeader_set_neighbor_radius(self, neighbor_radius)
1396 def get_neighbor_radius(self):
1397 r"""get_neighbor_radius(PathMapHeader self) -> double"""
1398 return _IMP_bff.PathMapHeader_get_neighbor_radius(self)
1400 def get_neighbor_box_size(self):
1401 r"""get_neighbor_box_size(PathMapHeader self) -> int"""
1402 return _IMP_bff.PathMapHeader_get_neighbor_box_size(self)
1404 def get_density_header(self):
1405 r"""get_density_header(PathMapHeader self) -> DensityHeader"""
1406 return _IMP_bff.PathMapHeader_get_density_header(self)
1408 def get_density_header_writable(self):
1409 r"""get_density_header_writable(PathMapHeader self) -> DensityHeader"""
1410 return _IMP_bff.PathMapHeader_get_density_header_writable(self)
1412 def get_origin(self):
1413 r"""get_origin(PathMapHeader self) -> Vector3D"""
1414 return _IMP_bff.PathMapHeader_get_origin(self)
1416 def get_grid_edge_length(self):
1417 r"""get_grid_edge_length(PathMapHeader self) -> double"""
1418 return _IMP_bff.PathMapHeader_get_grid_edge_length(self)
1420 def set_origin(self, x, y, z):
1421 r"""set_origin(PathMapHeader self, float x, float y, float z)"""
1422 return _IMP_bff.PathMapHeader_set_origin(self, x, y, z)
1424 def show(self, *args, **kwargs):
1425 r"""show(PathMapHeader self, _ostream out=std::cout)"""
1426 return _IMP_bff.PathMapHeader_show(self, *args, **kwargs)
1429 _IMP_bff.PathMapHeader_swigregister(PathMapHeader)
1431 r"""Proxy of C++ IMP::bff::PathMap class."""
1433 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1435 def update_tiles(self, *args, **kwargs):
1436 r"""update_tiles(PathMap self, float obstacle_threshold=-1.0, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT, bool reset_tile_edges=True)"""
1437 return _IMP_bff.PathMap_update_tiles(self, *args, **kwargs)
1439 def resize(self, nvox):
1440 r"""resize(PathMap self, unsigned int nvox)"""
1441 return _IMP_bff.PathMap_resize(self, nvox)
1443 def set_data(self, *args, **kwargs):
1444 r"""set_data(PathMap self, double * input, float obstacle_threshold=-1, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT)"""
1445 return _IMP_bff.PathMap_set_data(self, *args, **kwargs)
1447 def get_neighbor_idx_offsets(self, neighbor_radius=-1):
1448 r"""get_neighbor_idx_offsets(PathMap self, double neighbor_radius=-1) -> VectorInt"""
1449 return _IMP_bff.PathMap_get_neighbor_idx_offsets(self, neighbor_radius)
1451 def get_dim_index_by_voxel(self, index, dim):
1452 r"""get_dim_index_by_voxel(PathMap self, long index, int dim) -> int"""
1453 return _IMP_bff.PathMap_get_dim_index_by_voxel(self, index, dim)
1455 def get_path_map_header(self):
1456 h = _IMP_bff.DensityMap_get_path_map_header(self)
1462 def get_path_map_header_writable(self):
1463 h = _IMP_bff.PathMap_get_path_map_header_writable(self)
1469 def set_path_map_header(self, path_map_header, resolution=-1.0):
1470 r"""set_path_map_header(PathMap self, PathMapHeader path_map_header, float resolution=-1.0)"""
1471 return _IMP_bff.PathMap_set_path_map_header(self, path_map_header, resolution)
1473 def get_tile_values(self, *args, **kwargs):
1475 get_tile_values(PathMap self, int value_type=PM_TILE_COST, PairFloatFloat bounds=std::pair< float,float >(
1476 {std::numeric_limits<float>::min(),
1477 std::numeric_limits<float>::max()}), std::string const & feature_name="")
1479 return _IMP_bff.PathMap_get_tile_values(self, *args, **kwargs)
1481 def get_tiles(self):
1482 r"""get_tiles(PathMap self) -> VectorPathMapTile"""
1483 return _IMP_bff.PathMap_get_tiles(self)
1485 def fill_sphere(self, r0, radius, value, inverse=True):
1486 r"""fill_sphere(PathMap self, Vector3D r0, double radius, double value, bool inverse=True)"""
1487 return _IMP_bff.PathMap_fill_sphere(self, r0, radius, value, inverse)
1489 def find_path(self, path_begin_idx, path_end_idx=-1, heuristic_mode=0):
1490 r"""find_path(PathMap self, long path_begin_idx, long path_end_idx=-1, int heuristic_mode=0)"""
1491 return _IMP_bff.PathMap_find_path(self, path_begin_idx, path_end_idx, heuristic_mode)
1493 def find_path_dijkstra(self, path_begin_idx, path_end_idx=-1):
1494 r"""find_path_dijkstra(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1495 return _IMP_bff.PathMap_find_path_dijkstra(self, path_begin_idx, path_end_idx)
1497 def find_path_astar(self, path_begin_idx, path_end_idx=-1):
1498 r"""find_path_astar(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1499 return _IMP_bff.PathMap_find_path_astar(self, path_begin_idx, path_end_idx)
1501 def get_xyz_density(self):
1502 r"""get_xyz_density(PathMap self)"""
1503 return _IMP_bff.PathMap_get_xyz_density(self)
1505 def sample_obstacles(self, extra_radius=0.0):
1506 r"""sample_obstacles(PathMap self, double extra_radius=0.0)"""
1507 return _IMP_bff.PathMap_sample_obstacles(self, extra_radius)
1509 def __init__(self, *args, **kwargs):
1510 r"""__init__(PathMap self, PathMapHeader header, std::string name="PathMap%1%", IMP::em::KernelType kt=BINARIZED_SPHERE, float resolution=-1.0) -> PathMap"""
1511 _IMP_bff.PathMap_swiginit(self, _IMP_bff.new_PathMap(*args, **kwargs))
1514 r"""__str__(PathMap self) -> std::string"""
1515 return _IMP_bff.PathMap___str__(self)
1518 r"""__repr__(PathMap self) -> std::string"""
1519 return _IMP_bff.PathMap___repr__(self)
1523 return _object_cast_to_PathMap(o)
1525 __swig_destroy__ = _IMP_bff.delete_PathMap
1528 _IMP_bff.PathMap_swigregister(PathMap)
1532 write_path_map(PathMap m, std::string filename, int value_type, PairFloatFloat bounds=std::pair< float,float >(
1533 std::numeric_limits<float>::min(),
1534 std::numeric_limits<float>::max()
1535 ), std::string const & feature_name="")
1537 return _IMP_bff.write_path_map(*args, **kwargs)
1538 PM_TILE_PENALTY = _IMP_bff.PM_TILE_PENALTY
1540 PM_TILE_COST = _IMP_bff.PM_TILE_COST
1542 PM_TILE_DENSITY = _IMP_bff.PM_TILE_DENSITY
1544 PM_TILE_COST_DENSITY = _IMP_bff.PM_TILE_COST_DENSITY
1546 PM_TILE_PATH_LENGTH = _IMP_bff.PM_TILE_PATH_LENGTH
1548 PM_TILE_PATH_LENGTH_DENSITY = _IMP_bff.PM_TILE_PATH_LENGTH_DENSITY
1550 PM_TILE_FEATURE = _IMP_bff.PM_TILE_FEATURE
1552 PM_TILE_ACCESSIBLE_DENSITY = _IMP_bff.PM_TILE_ACCESSIBLE_DENSITY
1554 PM_TILE_ACCESSIBLE_FEATURE = _IMP_bff.PM_TILE_ACCESSIBLE_FEATURE
1556 class PathMapTile(object):
1557 r"""Proxy of C++ IMP::bff::PathMapTile class."""
1559 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1560 __repr__ = _swig_repr
1561 density = property(_IMP_bff.PathMapTile_density_get, _IMP_bff.PathMapTile_density_set, doc=
r"""density : float""")
1563 def __init__(self, index=-1, visit_penalty=0.0, tile_density=1.0):
1564 r"""__init__(PathMapTile self, long index=-1, float visit_penalty=0.0, float tile_density=1.0) -> PathMapTile"""
1565 _IMP_bff.PathMapTile_swiginit(self, _IMP_bff.new_PathMapTile(index, visit_penalty, tile_density))
1567 def backtrack_to_path(self):
1568 r"""backtrack_to_path(PathMapTile self) -> VectorLong"""
1569 return _IMP_bff.PathMapTile_backtrack_to_path(self)
1571 def get_value(self, *args, **kwargs):
1573 get_value(PathMapTile self, int value_type, PairFloatFloat bounds=std::pair< float,float >(
1574 {std::numeric_limits<float>::min(),
1575 std::numeric_limits<float>::max()}), std::string const & feature_name="", float grid_spacing=1.0) -> float
1577 return _IMP_bff.PathMapTile_get_value(self, *args, **kwargs)
1579 def set_value(self, *args, **kwargs):
1580 r"""set_value(PathMapTile self, int value_type, float value, std::string const & name="")"""
1581 return _IMP_bff.PathMapTile_set_value(self, *args, **kwargs)
1582 __swig_destroy__ = _IMP_bff.delete_PathMapTile
1585 _IMP_bff.PathMapTile_swigregister(PathMapTile)
1586 cvar = _IMP_bff.cvar
1587 TILE_VISITED_DEFAULT = cvar.TILE_VISITED_DEFAULT
1588 TILE_PENALTY_DEFAULT = cvar.TILE_PENALTY_DEFAULT
1589 TILE_COST_DEFAULT = cvar.TILE_COST_DEFAULT
1590 TILE_EDGE_COST_DEFAULT = cvar.TILE_EDGE_COST_DEFAULT
1591 TILE_PENALTY_THRESHOLD = cvar.TILE_PENALTY_THRESHOLD
1592 TILE_OBSTACLE_THRESHOLD = cvar.TILE_OBSTACLE_THRESHOLD
1593 TILE_OBSTACLE_PENALTY = cvar.TILE_OBSTACLE_PENALTY
1595 class PathMapTileEdge(IMP._Value):
1596 r"""Proxy of C++ IMP::bff::PathMapTileEdge class."""
1598 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1600 def get_length(self):
1601 r"""get_length(PathMapTileEdge self) -> float"""
1602 return _IMP_bff.PathMapTileEdge_get_length(self)
1604 def __init__(self, *args, **kwargs):
1605 r"""__init__(PathMapTileEdge self, int edge_target=-1, float edge_cost=std::numeric_limits< float >::max()) -> PathMapTileEdge"""
1606 _IMP_bff.PathMapTileEdge_swiginit(self, _IMP_bff.new_PathMapTileEdge(*args, **kwargs))
1608 def show(self, *args, **kwargs):
1609 r"""show(PathMapTileEdge self, _ostream out=std::cout)"""
1610 return _IMP_bff.PathMapTileEdge_show(self, *args, **kwargs)
1613 r"""__str__(PathMapTileEdge self) -> std::string"""
1614 return _IMP_bff.PathMapTileEdge___str__(self)
1617 r"""__repr__(PathMapTileEdge self) -> std::string"""
1618 return _IMP_bff.PathMapTileEdge___repr__(self)
1619 __swig_destroy__ = _IMP_bff.delete_PathMapTileEdge
1622 _IMP_bff.PathMapTileEdge_swigregister(PathMapTileEdge)
1623 class VectorPathMapTile(object):
1624 r"""Proxy of C++ std::vector< IMP::bff::PathMapTile > class."""
1626 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1627 __repr__ = _swig_repr
1630 r"""iterator(VectorPathMapTile self) -> IMP_BFF_SwigPyIterator"""
1631 return _IMP_bff.VectorPathMapTile_iterator(self)
1633 return self.iterator()
1635 def __nonzero__(self):
1636 r"""__nonzero__(VectorPathMapTile self) -> bool"""
1637 return _IMP_bff.VectorPathMapTile___nonzero__(self)
1640 r"""__bool__(VectorPathMapTile self) -> bool"""
1641 return _IMP_bff.VectorPathMapTile___bool__(self)
1644 r"""__len__(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1645 return _IMP_bff.VectorPathMapTile___len__(self)
1647 def __getslice__(self, i, j):
1648 r"""__getslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j) -> VectorPathMapTile"""
1649 return _IMP_bff.VectorPathMapTile___getslice__(self, i, j)
1651 def __setslice__(self, *args):
1653 __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)
1654 __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j, VectorPathMapTile v)
1656 return _IMP_bff.VectorPathMapTile___setslice__(self, *args)
1658 def __delslice__(self, i, j):
1659 r"""__delslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)"""
1660 return _IMP_bff.VectorPathMapTile___delslice__(self, i, j)
1662 def __delitem__(self, *args):
1664 __delitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i)
1665 __delitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1667 return _IMP_bff.VectorPathMapTile___delitem__(self, *args)
1669 def __getitem__(self, *args):
1671 __getitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTile
1672 __getitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i) -> PathMapTile
1674 return _IMP_bff.VectorPathMapTile___getitem__(self, *args)
1676 def __setitem__(self, *args):
1678 __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTile v)
1679 __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1680 __setitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, PathMapTile x)
1682 return _IMP_bff.VectorPathMapTile___setitem__(self, *args)
1685 r"""pop(VectorPathMapTile self) -> PathMapTile"""
1686 return _IMP_bff.VectorPathMapTile_pop(self)
1688 def append(self, x):
1689 r"""append(VectorPathMapTile self, PathMapTile x)"""
1690 return _IMP_bff.VectorPathMapTile_append(self, x)
1693 r"""empty(VectorPathMapTile self) -> bool"""
1694 return _IMP_bff.VectorPathMapTile_empty(self)
1697 r"""size(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1698 return _IMP_bff.VectorPathMapTile_size(self)
1701 r"""swap(VectorPathMapTile self, VectorPathMapTile v)"""
1702 return _IMP_bff.VectorPathMapTile_swap(self, v)
1705 r"""begin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1706 return _IMP_bff.VectorPathMapTile_begin(self)
1709 r"""end(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1710 return _IMP_bff.VectorPathMapTile_end(self)
1713 r"""rbegin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1714 return _IMP_bff.VectorPathMapTile_rbegin(self)
1717 r"""rend(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1718 return _IMP_bff.VectorPathMapTile_rend(self)
1721 r"""clear(VectorPathMapTile self)"""
1722 return _IMP_bff.VectorPathMapTile_clear(self)
1724 def get_allocator(self):
1725 r"""get_allocator(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::allocator_type"""
1726 return _IMP_bff.VectorPathMapTile_get_allocator(self)
1729 r"""pop_back(VectorPathMapTile self)"""
1730 return _IMP_bff.VectorPathMapTile_pop_back(self)
1732 def erase(self, *args):
1734 erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos) -> std::vector< IMP::bff::PathMapTile >::iterator
1735 erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator first, std::vector< IMP::bff::PathMapTile >::iterator last) -> std::vector< IMP::bff::PathMapTile >::iterator
1737 return _IMP_bff.VectorPathMapTile_erase(self, *args)
1739 def __init__(self, *args):
1741 __init__(VectorPathMapTile self) -> VectorPathMapTile
1742 __init__(VectorPathMapTile self, VectorPathMapTile other) -> VectorPathMapTile
1743 __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size) -> VectorPathMapTile
1744 __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size, PathMapTile value) -> VectorPathMapTile
1746 _IMP_bff.VectorPathMapTile_swiginit(self, _IMP_bff.new_VectorPathMapTile(*args))
1748 def push_back(self, x):
1749 r"""push_back(VectorPathMapTile self, PathMapTile x)"""
1750 return _IMP_bff.VectorPathMapTile_push_back(self, x)
1753 r"""front(VectorPathMapTile self) -> PathMapTile"""
1754 return _IMP_bff.VectorPathMapTile_front(self)
1757 r"""back(VectorPathMapTile self) -> PathMapTile"""
1758 return _IMP_bff.VectorPathMapTile_back(self)
1760 def assign(self, n, x):
1761 r"""assign(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)"""
1762 return _IMP_bff.VectorPathMapTile_assign(self, n, x)
1764 def resize(self, *args):
1766 resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size)
1767 resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size, PathMapTile x)
1769 return _IMP_bff.VectorPathMapTile_resize(self, *args)
1771 def insert(self, *args):
1773 insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, PathMapTile x) -> std::vector< IMP::bff::PathMapTile >::iterator
1774 insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)
1776 return _IMP_bff.VectorPathMapTile_insert(self, *args)
1778 def reserve(self, n):
1779 r"""reserve(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n)"""
1780 return _IMP_bff.VectorPathMapTile_reserve(self, n)
1783 r"""capacity(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1784 return _IMP_bff.VectorPathMapTile_capacity(self)
1785 __swig_destroy__ = _IMP_bff.delete_VectorPathMapTile
1788 _IMP_bff.VectorPathMapTile_swigregister(VectorPathMapTile)
1789 class VectorPathMapTileEdge(object):
1790 r"""Proxy of C++ std::vector< IMP::bff::PathMapTileEdge > class."""
1792 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1793 __repr__ = _swig_repr
1796 r"""iterator(VectorPathMapTileEdge self) -> IMP_BFF_SwigPyIterator"""
1797 return _IMP_bff.VectorPathMapTileEdge_iterator(self)
1799 return self.iterator()
1801 def __nonzero__(self):
1802 r"""__nonzero__(VectorPathMapTileEdge self) -> bool"""
1803 return _IMP_bff.VectorPathMapTileEdge___nonzero__(self)
1806 r"""__bool__(VectorPathMapTileEdge self) -> bool"""
1807 return _IMP_bff.VectorPathMapTileEdge___bool__(self)
1810 r"""__len__(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1811 return _IMP_bff.VectorPathMapTileEdge___len__(self)
1813 def __getslice__(self, i, j):
1814 r"""__getslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j) -> VectorPathMapTileEdge"""
1815 return _IMP_bff.VectorPathMapTileEdge___getslice__(self, i, j)
1817 def __setslice__(self, *args):
1819 __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)
1820 __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j, VectorPathMapTileEdge v)
1822 return _IMP_bff.VectorPathMapTileEdge___setslice__(self, *args)
1824 def __delslice__(self, i, j):
1825 r"""__delslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)"""
1826 return _IMP_bff.VectorPathMapTileEdge___delslice__(self, i, j)
1828 def __delitem__(self, *args):
1830 __delitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i)
1831 __delitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1833 return _IMP_bff.VectorPathMapTileEdge___delitem__(self, *args)
1835 def __getitem__(self, *args):
1837 __getitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTileEdge
1838 __getitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i) -> PathMapTileEdge
1840 return _IMP_bff.VectorPathMapTileEdge___getitem__(self, *args)
1842 def __setitem__(self, *args):
1844 __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTileEdge v)
1845 __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1846 __setitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, PathMapTileEdge x)
1848 return _IMP_bff.VectorPathMapTileEdge___setitem__(self, *args)
1851 r"""pop(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1852 return _IMP_bff.VectorPathMapTileEdge_pop(self)
1854 def append(self, x):
1855 r"""append(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1856 return _IMP_bff.VectorPathMapTileEdge_append(self, x)
1859 r"""empty(VectorPathMapTileEdge self) -> bool"""
1860 return _IMP_bff.VectorPathMapTileEdge_empty(self)
1863 r"""size(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1864 return _IMP_bff.VectorPathMapTileEdge_size(self)
1867 r"""swap(VectorPathMapTileEdge self, VectorPathMapTileEdge v)"""
1868 return _IMP_bff.VectorPathMapTileEdge_swap(self, v)
1871 r"""begin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1872 return _IMP_bff.VectorPathMapTileEdge_begin(self)
1875 r"""end(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1876 return _IMP_bff.VectorPathMapTileEdge_end(self)
1879 r"""rbegin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1880 return _IMP_bff.VectorPathMapTileEdge_rbegin(self)
1883 r"""rend(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1884 return _IMP_bff.VectorPathMapTileEdge_rend(self)
1887 r"""clear(VectorPathMapTileEdge self)"""
1888 return _IMP_bff.VectorPathMapTileEdge_clear(self)
1890 def get_allocator(self):
1891 r"""get_allocator(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::allocator_type"""
1892 return _IMP_bff.VectorPathMapTileEdge_get_allocator(self)
1895 r"""pop_back(VectorPathMapTileEdge self)"""
1896 return _IMP_bff.VectorPathMapTileEdge_pop_back(self)
1898 def erase(self, *args):
1900 erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1901 erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator first, std::vector< IMP::bff::PathMapTileEdge >::iterator last) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1903 return _IMP_bff.VectorPathMapTileEdge_erase(self, *args)
1905 def __init__(self, *args):
1907 __init__(VectorPathMapTileEdge self) -> VectorPathMapTileEdge
1908 __init__(VectorPathMapTileEdge self, VectorPathMapTileEdge other) -> VectorPathMapTileEdge
1909 __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size) -> VectorPathMapTileEdge
1910 __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size, PathMapTileEdge value) -> VectorPathMapTileEdge
1912 _IMP_bff.VectorPathMapTileEdge_swiginit(self, _IMP_bff.new_VectorPathMapTileEdge(*args))
1914 def push_back(self, x):
1915 r"""push_back(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1916 return _IMP_bff.VectorPathMapTileEdge_push_back(self, x)
1919 r"""front(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1920 return _IMP_bff.VectorPathMapTileEdge_front(self)
1923 r"""back(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1924 return _IMP_bff.VectorPathMapTileEdge_back(self)
1926 def assign(self, n, x):
1927 r"""assign(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)"""
1928 return _IMP_bff.VectorPathMapTileEdge_assign(self, n, x)
1930 def resize(self, *args):
1932 resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size)
1933 resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size, PathMapTileEdge x)
1935 return _IMP_bff.VectorPathMapTileEdge_resize(self, *args)
1937 def insert(self, *args):
1939 insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, PathMapTileEdge x) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1940 insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)
1942 return _IMP_bff.VectorPathMapTileEdge_insert(self, *args)
1944 def reserve(self, n):
1945 r"""reserve(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n)"""
1946 return _IMP_bff.VectorPathMapTileEdge_reserve(self, n)
1949 r"""capacity(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1950 return _IMP_bff.VectorPathMapTileEdge_capacity(self)
1951 __swig_destroy__ = _IMP_bff.delete_VectorPathMapTileEdge
1954 _IMP_bff.VectorPathMapTileEdge_swigregister(VectorPathMapTileEdge)
1957 return [AV(x)
for x
in l]
1958 _plural_types.append(
"AVs")
1961 _value_types.append(
"AV")
1964 AVPairDistanceMeasurements=list
1965 _plural_types.append(
"AVPairDistanceMeasurements")
1966 _value_types.append(
"AVPairDistanceMeasurement")
1969 _object_types.append(
"AVNetworkRestraint")
1972 def _object_cast_to_AVNetworkRestraint(o):
1973 r"""_object_cast_to_AVNetworkRestraint(Object o) -> AVNetworkRestraint"""
1974 return _IMP_bff._object_cast_to_AVNetworkRestraint(o)
1975 class MapStringAVPairDistanceMeasurement(object):
1976 r"""Proxy of C++ std::map< std::string,IMP::bff::AVPairDistanceMeasurement > class."""
1978 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1979 __repr__ = _swig_repr
1982 r"""iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
1983 return _IMP_bff.MapStringAVPairDistanceMeasurement_iterator(self)
1985 return self.iterator()
1987 def __nonzero__(self):
1988 r"""__nonzero__(MapStringAVPairDistanceMeasurement self) -> bool"""
1989 return _IMP_bff.MapStringAVPairDistanceMeasurement___nonzero__(self)
1992 r"""__bool__(MapStringAVPairDistanceMeasurement self) -> bool"""
1993 return _IMP_bff.MapStringAVPairDistanceMeasurement___bool__(self)
1996 r"""__len__(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
1997 return _IMP_bff.MapStringAVPairDistanceMeasurement___len__(self)
1999 return self.key_iterator()
2001 return self.key_iterator()
2002 def itervalues(self):
2003 return self.value_iterator()
2004 def iteritems(self):
2005 return self.iterator()
2007 def __getitem__(self, key):
2008 r"""__getitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> AVPairDistanceMeasurement"""
2009 return _IMP_bff.MapStringAVPairDistanceMeasurement___getitem__(self, key)
2011 def __delitem__(self, key):
2012 r"""__delitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)"""
2013 return _IMP_bff.MapStringAVPairDistanceMeasurement___delitem__(self, key)
2015 def has_key(self, key):
2016 r"""has_key(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
2017 return _IMP_bff.MapStringAVPairDistanceMeasurement_has_key(self, key)
2020 r"""keys(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2021 return _IMP_bff.MapStringAVPairDistanceMeasurement_keys(self)
2024 r"""values(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2025 return _IMP_bff.MapStringAVPairDistanceMeasurement_values(self)
2028 r"""items(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2029 return _IMP_bff.MapStringAVPairDistanceMeasurement_items(self)
2031 def __contains__(self, key):
2032 r"""__contains__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
2033 return _IMP_bff.MapStringAVPairDistanceMeasurement___contains__(self, key)
2035 def key_iterator(self):
2036 r"""key_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2037 return _IMP_bff.MapStringAVPairDistanceMeasurement_key_iterator(self)
2039 def value_iterator(self):
2040 r"""value_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2041 return _IMP_bff.MapStringAVPairDistanceMeasurement_value_iterator(self)
2043 def __setitem__(self, *args):
2045 __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)
2046 __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key, AVPairDistanceMeasurement x)
2048 return _IMP_bff.MapStringAVPairDistanceMeasurement___setitem__(self, *args)
2051 r"""asdict(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2052 return _IMP_bff.MapStringAVPairDistanceMeasurement_asdict(self)
2054 def __init__(self, *args):
2056 __init__(MapStringAVPairDistanceMeasurement self, std::less< std::string > const & other) -> MapStringAVPairDistanceMeasurement
2057 __init__(MapStringAVPairDistanceMeasurement self) -> MapStringAVPairDistanceMeasurement
2058 __init__(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement other) -> MapStringAVPairDistanceMeasurement
2060 _IMP_bff.MapStringAVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_MapStringAVPairDistanceMeasurement(*args))
2063 r"""empty(MapStringAVPairDistanceMeasurement self) -> bool"""
2064 return _IMP_bff.MapStringAVPairDistanceMeasurement_empty(self)
2067 r"""size(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2068 return _IMP_bff.MapStringAVPairDistanceMeasurement_size(self)
2071 r"""swap(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement v)"""
2072 return _IMP_bff.MapStringAVPairDistanceMeasurement_swap(self, v)
2075 r"""begin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2076 return _IMP_bff.MapStringAVPairDistanceMeasurement_begin(self)
2079 r"""end(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2080 return _IMP_bff.MapStringAVPairDistanceMeasurement_end(self)
2083 r"""rbegin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2084 return _IMP_bff.MapStringAVPairDistanceMeasurement_rbegin(self)
2087 r"""rend(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2088 return _IMP_bff.MapStringAVPairDistanceMeasurement_rend(self)
2091 r"""clear(MapStringAVPairDistanceMeasurement self)"""
2092 return _IMP_bff.MapStringAVPairDistanceMeasurement_clear(self)
2094 def get_allocator(self):
2095 r"""get_allocator(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::allocator_type"""
2096 return _IMP_bff.MapStringAVPairDistanceMeasurement_get_allocator(self)
2099 r"""count(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2100 return _IMP_bff.MapStringAVPairDistanceMeasurement_count(self, x)
2102 def erase(self, *args):
2104 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type
2105 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator position)
2106 erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator first, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator last)
2108 return _IMP_bff.MapStringAVPairDistanceMeasurement_erase(self, *args)
2111 r"""find(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2112 return _IMP_bff.MapStringAVPairDistanceMeasurement_find(self, x)
2114 def lower_bound(self, x):
2115 r"""lower_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2116 return _IMP_bff.MapStringAVPairDistanceMeasurement_lower_bound(self, x)
2118 def upper_bound(self, x):
2119 r"""upper_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2120 return _IMP_bff.MapStringAVPairDistanceMeasurement_upper_bound(self, x)
2121 __swig_destroy__ = _IMP_bff.delete_MapStringAVPairDistanceMeasurement
2124 _IMP_bff.MapStringAVPairDistanceMeasurement_swigregister(MapStringAVPairDistanceMeasurement)
2125 DYE_PAIR_DISTANCE_E = _IMP_bff.DYE_PAIR_DISTANCE_E
2127 DYE_PAIR_DISTANCE_MEAN = _IMP_bff.DYE_PAIR_DISTANCE_MEAN
2129 DYE_PAIR_DISTANCE_MP = _IMP_bff.DYE_PAIR_DISTANCE_MP
2131 DYE_PAIR_EFFICIENCY = _IMP_bff.DYE_PAIR_EFFICIENCY
2133 DYE_PAIR_DISTANCE_DISTRIBUTION = _IMP_bff.DYE_PAIR_DISTANCE_DISTRIBUTION
2135 DYE_PAIR_XYZ_DISTANCE = _IMP_bff.DYE_PAIR_XYZ_DISTANCE
2137 class AVPairDistanceMeasurement(IMP._Value):
2138 r"""Proxy of C++ IMP::bff::AVPairDistanceMeasurement class."""
2140 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2141 distance = property(_IMP_bff.AVPairDistanceMeasurement_distance_get, _IMP_bff.AVPairDistanceMeasurement_distance_set, doc=
r"""distance : double""")
2142 error_neg = property(_IMP_bff.AVPairDistanceMeasurement_error_neg_get, _IMP_bff.AVPairDistanceMeasurement_error_neg_set, doc=
r"""error_neg : double""")
2143 error_pos = property(_IMP_bff.AVPairDistanceMeasurement_error_pos_get, _IMP_bff.AVPairDistanceMeasurement_error_pos_set, doc=
r"""error_pos : double""")
2144 forster_radius = property(_IMP_bff.AVPairDistanceMeasurement_forster_radius_get, _IMP_bff.AVPairDistanceMeasurement_forster_radius_set, doc=
r"""forster_radius : double""")
2145 distance_type = property(_IMP_bff.AVPairDistanceMeasurement_distance_type_get, _IMP_bff.AVPairDistanceMeasurement_distance_type_set, doc=
r"""distance_type : int""")
2146 position_1 = property(_IMP_bff.AVPairDistanceMeasurement_position_1_get, _IMP_bff.AVPairDistanceMeasurement_position_1_set, doc=
r"""position_1 : std::string""")
2147 position_2 = property(_IMP_bff.AVPairDistanceMeasurement_position_2_get, _IMP_bff.AVPairDistanceMeasurement_position_2_set, doc=
r"""position_2 : std::string""")
2150 r"""get_json(AVPairDistanceMeasurement self) -> std::string"""
2151 return _IMP_bff.AVPairDistanceMeasurement_get_json(self)
2153 def score_model(self, model):
2154 r"""score_model(AVPairDistanceMeasurement self, double model) -> double"""
2155 return _IMP_bff.AVPairDistanceMeasurement_score_model(self, model)
2157 def show(self, *args, **kwargs):
2158 r"""show(AVPairDistanceMeasurement self, _ostream out=std::cout)"""
2159 return _IMP_bff.AVPairDistanceMeasurement_show(self, *args, **kwargs)
2162 r"""__str__(AVPairDistanceMeasurement self) -> std::string"""
2163 return _IMP_bff.AVPairDistanceMeasurement___str__(self)
2166 r"""__repr__(AVPairDistanceMeasurement self) -> std::string"""
2167 return _IMP_bff.AVPairDistanceMeasurement___repr__(self)
2170 r"""__init__(AVPairDistanceMeasurement self) -> AVPairDistanceMeasurement"""
2171 _IMP_bff.AVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_AVPairDistanceMeasurement())
2172 __swig_destroy__ = _IMP_bff.delete_AVPairDistanceMeasurement
2175 _IMP_bff.AVPairDistanceMeasurement_swigregister(AVPairDistanceMeasurement)
2177 r"""Proxy of C++ IMP::bff::AV class."""
2179 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2181 def create_path_map_header(self):
2182 r"""create_path_map_header(AV self) -> PathMapHeader"""
2183 return _IMP_bff.AV_create_path_map_header(self)
2185 def init_path_map(self):
2186 r"""init_path_map(AV self)"""
2187 return _IMP_bff.AV_init_path_map(self)
2191 r"""get_av_key(unsigned int i) -> FloatKey"""
2192 return _IMP_bff.AV_get_av_key(i)
2195 def do_setup_particle(*args, **kwargs):
2196 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)"""
2197 return _IMP_bff.AV_do_setup_particle(*args, **kwargs)
2200 def get_particle_key(i):
2201 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2202 return _IMP_bff.AV_get_particle_key(i)
2204 def get_particle_index(self, *args):
2206 get_particle_index(AV self) -> ParticleIndex
2207 get_particle_index(AV self, unsigned int i) -> ParticleIndex
2209 return _IMP_bff.AV_get_particle_index(self, *args)
2211 def get_particle(self, *args):
2213 get_particle(AV self) -> Particle
2214 get_particle(AV self, unsigned int i) -> Particle
2216 return _IMP_bff.AV_get_particle(self, *args)
2218 def __init__(self, *args):
2220 __init__(AV self) -> AV
2221 __init__(AV self, Model m, ParticleIndex id) -> AV
2222 __init__(AV self, _ParticleAdaptor d) -> AV
2224 _IMP_bff.AV_swiginit(self, _IMP_bff.new_AV(*args))
2226 def show(self, *args, **kwargs):
2227 r"""show(AV self, _ostream out=std::cout)"""
2228 return _IMP_bff.AV_show(self, *args, **kwargs)
2231 def setup_particle(*args):
2233 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_source) -> AV
2234 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_source) -> AV
2236 return _IMP_bff.AV_setup_particle(*args)
2238 def get_linker_length(self):
2239 r"""get_linker_length(AV self) -> IMP::Float"""
2240 return _IMP_bff.AV_get_linker_length(self)
2242 def set_linker_length(self, t):
2243 r"""set_linker_length(AV self, IMP::Float t)"""
2244 return _IMP_bff.AV_set_linker_length(self, t)
2246 def get_radius1(self):
2247 r"""get_radius1(AV self) -> IMP::Float"""
2248 return _IMP_bff.AV_get_radius1(self)
2250 def set_radius1(self, t):
2251 r"""set_radius1(AV self, IMP::Float t)"""
2252 return _IMP_bff.AV_set_radius1(self, t)
2254 def get_radius2(self):
2255 r"""get_radius2(AV self) -> IMP::Float"""
2256 return _IMP_bff.AV_get_radius2(self)
2258 def set_radius2(self, t):
2259 r"""set_radius2(AV self, IMP::Float t)"""
2260 return _IMP_bff.AV_set_radius2(self, t)
2262 def get_radius3(self):
2263 r"""get_radius3(AV self) -> IMP::Float"""
2264 return _IMP_bff.AV_get_radius3(self)
2266 def set_radius3(self, t):
2267 r"""set_radius3(AV self, IMP::Float t)"""
2268 return _IMP_bff.AV_set_radius3(self, t)
2270 def get_linker_width(self):
2271 r"""get_linker_width(AV self) -> IMP::Float"""
2272 return _IMP_bff.AV_get_linker_width(self)
2274 def set_linker_width(self, t):
2275 r"""set_linker_width(AV self, IMP::Float t)"""
2276 return _IMP_bff.AV_set_linker_width(self, t)
2278 def get_allowed_sphere_radius(self):
2279 r"""get_allowed_sphere_radius(AV self) -> IMP::Float"""
2280 return _IMP_bff.AV_get_allowed_sphere_radius(self)
2282 def set_allowed_sphere_radius(self, t):
2283 r"""set_allowed_sphere_radius(AV self, IMP::Float t)"""
2284 return _IMP_bff.AV_set_allowed_sphere_radius(self, t)
2286 def get_contact_volume_thickness(self):
2287 r"""get_contact_volume_thickness(AV self) -> IMP::Float"""
2288 return _IMP_bff.AV_get_contact_volume_thickness(self)
2290 def set_contact_volume_thickness(self, t):
2291 r"""set_contact_volume_thickness(AV self, IMP::Float t)"""
2292 return _IMP_bff.AV_set_contact_volume_thickness(self, t)
2294 def get_contact_volume_trapped_fraction(self):
2295 r"""get_contact_volume_trapped_fraction(AV self) -> IMP::Float"""
2296 return _IMP_bff.AV_get_contact_volume_trapped_fraction(self)
2298 def set_contact_volume_trapped_fraction(self, t):
2299 r"""set_contact_volume_trapped_fraction(AV self, IMP::Float t)"""
2300 return _IMP_bff.AV_set_contact_volume_trapped_fraction(self, t)
2302 def get_simulation_grid_resolution(self):
2303 r"""get_simulation_grid_resolution(AV self) -> IMP::Float"""
2304 return _IMP_bff.AV_get_simulation_grid_resolution(self)
2306 def set_simulation_grid_resolution(self, t):
2307 r"""set_simulation_grid_resolution(AV self, IMP::Float t)"""
2308 return _IMP_bff.AV_set_simulation_grid_resolution(self, t)
2310 def get_radii(self):
2311 r"""get_radii(AV self) -> Vector3D"""
2312 return _IMP_bff.AV_get_radii(self)
2314 def get_parameters_are_optimized(self):
2315 r"""get_parameters_are_optimized(AV self) -> bool"""
2316 return _IMP_bff.AV_get_parameters_are_optimized(self)
2318 def set_av_parameters_are_optimized(self, tf):
2319 r"""set_av_parameters_are_optimized(AV self, bool tf)"""
2320 return _IMP_bff.AV_set_av_parameters_are_optimized(self, tf)
2322 def set_av_parameter(self, j):
2323 r"""set_av_parameter(AV self, nlohmann::json const & j)"""
2324 return _IMP_bff.AV_set_av_parameter(self, j)
2326 def get_derivatives(self):
2327 r"""get_derivatives(AV self) -> Vector3D"""
2328 return _IMP_bff.AV_get_derivatives(self)
2331 def get_is_setup(*args):
2333 get_is_setup(_ParticleAdaptor p) -> bool
2334 get_is_setup(Model m, ParticleIndex pi) -> bool
2336 return _IMP_bff.AV_get_is_setup(*args)
2339 r"""get_map(AV self) -> PathMap"""
2340 return _IMP_bff.AV_get_map(self)
2342 def resample(self, shift_xyz=True):
2343 r"""resample(AV self, bool shift_xyz=True)"""
2344 return _IMP_bff.AV_resample(self, shift_xyz)
2346 def get_mean_position(self, include_source=True):
2347 r"""get_mean_position(AV self, bool include_source=True) -> Vector3D"""
2348 return _IMP_bff.AV_get_mean_position(self, include_source)
2350 def get_source_coordinates(self):
2351 r"""get_source_coordinates(AV self) -> Vector3D"""
2352 return _IMP_bff.AV_get_source_coordinates(self)
2354 def get_source(self):
2355 r"""get_source(AV self) -> Particle"""
2356 return _IMP_bff.AV_get_source(self)
2358 def add_attribute(self, *args):
2360 add_attribute(AV self, FloatKey k, IMP::Float v, bool opt)
2361 add_attribute(AV self, FloatKey a0, IMP::Float a1)
2362 add_attribute(AV self, IntKey a0, IMP::Int a1)
2363 add_attribute(AV self, FloatsKey a0, IMP::Floats a1)
2364 add_attribute(AV self, IntsKey a0, IMP::Ints a1)
2365 add_attribute(AV self, StringKey a0, IMP::String a1)
2366 add_attribute(AV self, ParticleIndexKey a0, Particle a1)
2367 add_attribute(AV self, ObjectKey a0, Object a1)
2368 add_attribute(AV self, SparseFloatKey a0, IMP::Float a1)
2369 add_attribute(AV self, SparseIntKey a0, IMP::Int a1)
2370 add_attribute(AV self, SparseStringKey a0, IMP::String a1)
2371 add_attribute(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2373 return _IMP_bff.AV_add_attribute(self, *args)
2375 def get_value(self, *args):
2377 get_value(AV self, FloatKey a0) -> IMP::Float
2378 get_value(AV self, IntKey a0) -> IMP::Int
2379 get_value(AV self, FloatsKey a0) -> IMP::Floats
2380 get_value(AV self, IntsKey a0) -> IMP::Ints
2381 get_value(AV self, StringKey a0) -> IMP::String
2382 get_value(AV self, ParticleIndexKey a0) -> Particle
2383 get_value(AV self, ObjectKey a0) -> Object
2384 get_value(AV self, SparseFloatKey a0) -> IMP::Float
2385 get_value(AV self, SparseIntKey a0) -> IMP::Int
2386 get_value(AV self, SparseStringKey a0) -> IMP::String
2387 get_value(AV self, SparseParticleIndexKey a0) -> ParticleIndex
2389 return _IMP_bff.AV_get_value(self, *args)
2391 def set_value(self, *args):
2393 set_value(AV self, FloatKey a0, IMP::Float a1)
2394 set_value(AV self, IntKey a0, IMP::Int a1)
2395 set_value(AV self, FloatsKey a0, IMP::Floats a1)
2396 set_value(AV self, IntsKey a0, IMP::Ints a1)
2397 set_value(AV self, StringKey a0, IMP::String a1)
2398 set_value(AV self, ParticleIndexKey a0, Particle a1)
2399 set_value(AV self, ObjectKey a0, Object a1)
2400 set_value(AV self, SparseFloatKey a0, IMP::Float a1)
2401 set_value(AV self, SparseIntKey a0, IMP::Int a1)
2402 set_value(AV self, SparseStringKey a0, IMP::String a1)
2403 set_value(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2405 return _IMP_bff.AV_set_value(self, *args)
2407 def remove_attribute(self, *args):
2409 remove_attribute(AV self, FloatKey a0)
2410 remove_attribute(AV self, IntKey a0)
2411 remove_attribute(AV self, FloatsKey a0)
2412 remove_attribute(AV self, IntsKey a0)
2413 remove_attribute(AV self, StringKey a0)
2414 remove_attribute(AV self, ParticleIndexKey a0)
2415 remove_attribute(AV self, ObjectKey a0)
2416 remove_attribute(AV self, SparseFloatKey a0)
2417 remove_attribute(AV self, SparseIntKey a0)
2418 remove_attribute(AV self, SparseStringKey a0)
2419 remove_attribute(AV self, SparseParticleIndexKey a0)
2421 return _IMP_bff.AV_remove_attribute(self, *args)
2423 def has_attribute(self, *args):
2425 has_attribute(AV self, FloatKey a0) -> bool
2426 has_attribute(AV self, IntKey a0) -> bool
2427 has_attribute(AV self, FloatsKey a0) -> bool
2428 has_attribute(AV self, IntsKey a0) -> bool
2429 has_attribute(AV self, StringKey a0) -> bool
2430 has_attribute(AV self, ParticleIndexKey a0) -> bool
2431 has_attribute(AV self, ObjectKey a0) -> bool
2432 has_attribute(AV self, SparseFloatKey a0) -> bool
2433 has_attribute(AV self, SparseIntKey a0) -> bool
2434 has_attribute(AV self, SparseStringKey a0) -> bool
2435 has_attribute(AV self, SparseParticleIndexKey a0) -> bool
2437 return _IMP_bff.AV_has_attribute(self, *args)
2439 def get_derivative(self, a0):
2440 r"""get_derivative(AV self, FloatKey a0) -> double"""
2441 return _IMP_bff.AV_get_derivative(self, a0)
2444 r"""get_name(AV self) -> std::string"""
2445 return _IMP_bff.AV_get_name(self)
2447 def clear_caches(self):
2448 r"""clear_caches(AV self)"""
2449 return _IMP_bff.AV_clear_caches(self)
2451 def set_name(self, a0):
2452 r"""set_name(AV self, std::string a0)"""
2453 return _IMP_bff.AV_set_name(self, a0)
2456 r"""set_check_level(AV self, IMP::CheckLevel a0)"""
2457 return _IMP_bff.AV_set_check_level(self, a0)
2459 def add_to_derivative(self, a0, a1, a2):
2460 r"""add_to_derivative(AV self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2461 return _IMP_bff.AV_add_to_derivative(self, a0, a1, a2)
2463 def set_is_optimized(self, a0, a1):
2464 r"""set_is_optimized(AV self, FloatKey a0, bool a1)"""
2465 return _IMP_bff.AV_set_is_optimized(self, a0, a1)
2467 def get_is_optimized(self, a0):
2468 r"""get_is_optimized(AV self, FloatKey a0) -> bool"""
2469 return _IMP_bff.AV_get_is_optimized(self, a0)
2472 r"""get_check_level(AV self) -> IMP::CheckLevel"""
2473 return _IMP_bff.AV_get_check_level(self)
2475 def __eq__(self, *args):
2477 __eq__(AV self, AV o) -> bool
2478 __eq__(AV self, Particle d) -> bool
2480 return _IMP_bff.AV___eq__(self, *args)
2482 def __ne__(self, *args):
2484 __ne__(AV self, AV o) -> bool
2485 __ne__(AV self, Particle d) -> bool
2487 return _IMP_bff.AV___ne__(self, *args)
2489 def __le__(self, *args):
2491 __le__(AV self, AV o) -> bool
2492 __le__(AV self, Particle d) -> bool
2494 return _IMP_bff.AV___le__(self, *args)
2496 def __lt__(self, *args):
2498 __lt__(AV self, AV o) -> bool
2499 __lt__(AV self, Particle d) -> bool
2501 return _IMP_bff.AV___lt__(self, *args)
2503 def __ge__(self, *args):
2505 __ge__(AV self, AV o) -> bool
2506 __ge__(AV self, Particle d) -> bool
2508 return _IMP_bff.AV___ge__(self, *args)
2510 def __gt__(self, *args):
2512 __gt__(AV self, AV o) -> bool
2513 __gt__(AV self, Particle d) -> bool
2515 return _IMP_bff.AV___gt__(self, *args)
2518 r"""__hash__(AV self) -> std::size_t"""
2519 return _IMP_bff.AV___hash__(self)
2522 r"""__str__(AV self) -> std::string"""
2523 return _IMP_bff.AV___str__(self)
2526 r"""__repr__(AV self) -> std::string"""
2527 return _IMP_bff.AV___repr__(self)
2529 def _get_as_binary(self):
2530 r"""_get_as_binary(AV self) -> PyObject *"""
2531 return _IMP_bff.AV__get_as_binary(self)
2533 def _set_from_binary(self, p):
2534 r"""_set_from_binary(AV self, PyObject * p)"""
2535 return _IMP_bff.AV__set_from_binary(self, p)
2537 def __getstate__(self):
2538 p = self._get_as_binary()
2539 if len(self.__dict__) > 1:
2540 d = self.__dict__.copy()
2545 def __setstate__(self, p):
2546 if not hasattr(self,
'this'):
2548 if isinstance(p, tuple):
2550 self.__dict__.update(d)
2551 return self._set_from_binary(p)
2554 map = property(get_map)
2556 __swig_destroy__ = _IMP_bff.delete_AV
2559 _IMP_bff.AV_swigregister(AV)
2561 def __lshift__(out, n):
2562 r"""__lshift__(_ostream out, AV n) -> _ostream"""
2563 return _IMP_bff.__lshift__(out, n)
2566 r"""av_distance(AV a, AV b, double forster_radius=52.0, int distance_type=DYE_PAIR_DISTANCE_MEAN, int n_samples=10000) -> double"""
2567 return _IMP_bff.av_distance(*args, **kwargs)
2569 def av_random_points(av1, n_samples=10000):
2570 r"""av_random_points(AV av1, int n_samples=10000) -> VectorDouble"""
2571 return _IMP_bff.av_random_points(av1, n_samples)
2574 r"""av_random_distances(AV av1, AV av2, int n_samples=10000) -> VectorDouble"""
2575 return _IMP_bff.av_random_distances(av1, av2, n_samples)
2578 r"""av_distance_distribution(AV av1, AV av2, VectorDouble axis, int n_samples=10000) -> VectorDouble"""
2579 return _IMP_bff.av_distance_distribution(av1, av2, axis, n_samples)
2582 r"""search_labeling_site(Hierarchy hier, std::string json_str="", nlohmann::json const & json_data=nlohmann::json()) -> ParticleIndex"""
2583 return _IMP_bff.search_labeling_site(*args, **kwargs)
2585 r"""Proxy of C++ IMP::bff::AVNetworkRestraint class."""
2587 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2589 def __init__(self, *args, **kwargs):
2590 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"""
2591 _IMP_bff.AVNetworkRestraint_swiginit(self, _IMP_bff.new_AVNetworkRestraint(*args, **kwargs))
2593 def get_probability(self):
2594 r"""get_probability(AVNetworkRestraint self) -> double"""
2595 return _IMP_bff.AVNetworkRestraint_get_probability(self)
2597 def get_used_avs(self):
2598 r"""get_used_avs(AVNetworkRestraint self) -> IMP::bff::AVs const"""
2599 return _IMP_bff.AVNetworkRestraint_get_used_avs(self)
2601 def get_used_distances(self):
2602 r"""get_used_distances(AVNetworkRestraint self) -> MapStringAVPairDistanceMeasurement"""
2603 return _IMP_bff.AVNetworkRestraint_get_used_distances(self)
2605 def get_model_distance(self, position1_name, position2_name, forster_radius, distance_type):
2606 r"""get_model_distance(AVNetworkRestraint self, std::string position1_name, std::string position2_name, double forster_radius, int distance_type) -> double"""
2607 return _IMP_bff.AVNetworkRestraint_get_model_distance(self, position1_name, position2_name, forster_radius, distance_type)
2610 r"""get_indexes(AVNetworkRestraint self) -> IMP::ParticleIndexes const"""
2611 return _IMP_bff.AVNetworkRestraint_get_indexes(self)
2613 def do_get_inputs(self):
2614 r"""do_get_inputs(AVNetworkRestraint self) -> IMP::ModelObjectsTemp"""
2615 return _IMP_bff.AVNetworkRestraint_do_get_inputs(self)
2617 def show(self, out):
2618 r"""show(AVNetworkRestraint self, _ostream out)"""
2619 return _IMP_bff.AVNetworkRestraint_show(self, out)
2621 def get_version_info(self):
2622 r"""get_version_info(AVNetworkRestraint self) -> VersionInfo"""
2623 return _IMP_bff.AVNetworkRestraint_get_version_info(self)
2624 __swig_destroy__ = _IMP_bff.delete_AVNetworkRestraint
2627 r"""__str__(AVNetworkRestraint self) -> std::string"""
2628 return _IMP_bff.AVNetworkRestraint___str__(self)
2631 r"""__repr__(AVNetworkRestraint self) -> std::string"""
2632 return _IMP_bff.AVNetworkRestraint___repr__(self)
2636 return _object_cast_to_AVNetworkRestraint(o)
2640 _IMP_bff.AVNetworkRestraint_swigregister(AVNetworkRestraint)
2643 r"""decay_rescale(double * fit, double * decay, int start=0, int stop=-1) -> double"""
2644 return _IMP_bff.decay_rescale(fit, decay, start, stop)
2647 r"""decay_rescale_w(double * fit, double * decay, double * w_sq, int start=0, int stop=-1) -> double"""
2648 return _IMP_bff.decay_rescale_w(fit, decay, w_sq, start, stop)
2651 r"""decay_rescale_w_bg(double * fit, double * decay, double * w_sq, double bg=0.0, int start=0, int stop=-1) -> double"""
2652 return _IMP_bff.decay_rescale_w_bg(fit, decay, w_sq, bg, start, stop)
2654 def decay_fconv(fit, irf, x, start=0, stop=-1, dt=1.0):
2655 r"""decay_fconv(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2656 return _IMP_bff.decay_fconv(fit, irf, x, start, stop, dt)
2659 r"""decay_fconv_avx(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2660 return _IMP_bff.decay_fconv_avx(fit, irf, x, start, stop, dt)
2663 r"""decay_fconv_per(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2664 return _IMP_bff.decay_fconv_per(fit, irf, x, period, start, stop, dt)
2667 r"""decay_fconv_per_avx(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2668 return _IMP_bff.decay_fconv_per_avx(fit, irf, x, period, start, stop, dt)
2671 r"""decay_fconv_per_cs(double * fit, double * irf, double * x, double period, int conv_stop=-1, int stop=-1, double dt=1.0)"""
2672 return _IMP_bff.decay_fconv_per_cs(fit, irf, x, period, conv_stop, stop, dt)
2675 r"""decay_fconv_ref(double * fit, double * irf, double * x, double tauref, int start=0, int stop=-1, double dt=1.0)"""
2676 return _IMP_bff.decay_fconv_ref(fit, irf, x, tauref, start, stop, dt)
2678 def decay_sconv(fit, irf, model, start=0, stop=-1):
2679 r"""decay_sconv(double * fit, double * irf, double * model, int start=0, int stop=-1)"""
2680 return _IMP_bff.decay_sconv(fit, irf, model, start, stop)
2683 r"""decay_shift_lamp(double * irf, double * irf_shift, double ts)"""
2684 return _IMP_bff.decay_shift_lamp(irf, irf_shift, ts)
2687 r"""mod_p(int a, int n) -> int"""
2688 return _IMP_bff.mod_p(a, n)
2691 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)"""
2692 return _IMP_bff.decay_add_pile_up_to_model(*args, **kwargs)
2695 r"""discriminate_small_amplitudes(double * lifetime_spectrum, double amplitude_threshold)"""
2696 return _IMP_bff.discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold)
2699 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)"""
2700 return _IMP_bff.decay_fconv_per_cs_time_axis(model, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop, period)
2702 def decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start=0, convolution_stop=-1):
2703 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)"""
2704 return _IMP_bff.decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop)
2705 NOISE_NA = _IMP_bff.NOISE_NA
2707 NOISE_POISSON = _IMP_bff.NOISE_POISSON
2709 class DecayCurve(object):
2710 r"""Proxy of C++ IMP::bff::DecayCurve class."""
2712 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2713 __repr__ = _swig_repr
2716 def shift_array(input, shift):
2717 r"""shift_array(double * input, double shift) -> VectorDouble"""
2718 return _IMP_bff.DecayCurve_shift_array(input, shift)
2721 r"""size(DecayCurve self) -> size_t"""
2722 return _IMP_bff.DecayCurve_size(self)
2725 r"""empty(DecayCurve self) -> bool"""
2726 return _IMP_bff.DecayCurve_empty(self)
2729 r"""get_dx(DecayCurve self) -> VectorDouble"""
2730 return _IMP_bff.DecayCurve_get_dx(self)
2732 def resize(self, n, v=0.0, dx=1.0):
2733 r"""resize(DecayCurve self, size_t n, double v=0.0, double dx=1.0)"""
2734 return _IMP_bff.DecayCurve_resize(self, n, v, dx)
2736 def get_average_dx(self):
2737 r"""get_average_dx(DecayCurve self) -> double"""
2738 return _IMP_bff.DecayCurve_get_average_dx(self)
2741 r"""get_x(DecayCurve self) -> VectorDouble"""
2742 return _IMP_bff.DecayCurve_get_x(self)
2744 def set_x(self, *args):
2746 set_x(DecayCurve self, VectorDouble v)
2747 set_x(DecayCurve self, double * input)
2749 return _IMP_bff.DecayCurve_set_x(self, *args)
2752 r"""get_y(DecayCurve self) -> VectorDouble"""
2753 return _IMP_bff.DecayCurve_get_y(self)
2755 def set_y(self, *args):
2757 set_y(DecayCurve self, VectorDouble v)
2758 set_y(DecayCurve self, double * input)
2760 return _IMP_bff.DecayCurve_set_y(self, *args)
2763 r"""get_ey(DecayCurve self) -> VectorDouble"""
2764 return _IMP_bff.DecayCurve_get_ey(self)
2766 def set_ey(self, *args):
2768 set_ey(DecayCurve self, VectorDouble v)
2769 set_ey(DecayCurve self, double * input)
2771 return _IMP_bff.DecayCurve_set_ey(self, *args)
2773 def set_acquisition_time(self, v):
2774 r"""set_acquisition_time(DecayCurve self, double v)"""
2775 return _IMP_bff.DecayCurve_set_acquisition_time(self, v)
2777 def get_acquisition_time(self):
2778 r"""get_acquisition_time(DecayCurve self) -> double"""
2779 return _IMP_bff.DecayCurve_get_acquisition_time(self)
2781 def set_shift(self, v):
2782 r"""set_shift(DecayCurve self, double v)"""
2783 return _IMP_bff.DecayCurve_set_shift(self, v)
2785 def get_shift(self):
2786 r"""get_shift(DecayCurve self) -> double"""
2787 return _IMP_bff.DecayCurve_get_shift(self)
2790 r"""get_json(DecayCurve self) -> std::string"""
2791 return _IMP_bff.DecayCurve_get_json(self)
2793 def read_json(self, json_string):
2794 r"""read_json(DecayCurve self, std::string json_string) -> int"""
2795 return _IMP_bff.DecayCurve_read_json(self, json_string)
2797 def __init__(self, *args, **kwargs):
2798 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"""
2799 _IMP_bff.DecayCurve_swiginit(self, _IMP_bff.new_DecayCurve(*args, **kwargs))
2801 def sum(self, start=0, stop=-1):
2802 r"""sum(DecayCurve self, int start=0, int stop=-1) -> double"""
2803 return _IMP_bff.DecayCurve_sum(self, start, stop)
2805 def apply_simple_moving_average(self, start, stop, n_window=5, normalize=False):
2806 r"""apply_simple_moving_average(DecayCurve self, int start, int stop, int n_window=5, bool normalize=False)"""
2807 return _IMP_bff.DecayCurve_apply_simple_moving_average(self, start, stop, n_window, normalize)
2809 def __iadd__(self, v):
2810 r"""__iadd__(DecayCurve self, double v) -> DecayCurve"""
2811 return _IMP_bff.DecayCurve___iadd__(self, v)
2813 def __isub__(self, v):
2814 r"""__isub__(DecayCurve self, double v) -> DecayCurve"""
2815 return _IMP_bff.DecayCurve___isub__(self, v)
2817 def __imul__(self, v):
2818 r"""__imul__(DecayCurve self, double v) -> DecayCurve"""
2819 return _IMP_bff.DecayCurve___imul__(self, v)
2821 def __itruediv__(self, *args):
2822 return _IMP_bff.DecayCurve___itruediv__(self, *args)
2823 __idiv__ = __itruediv__
2827 def __add__(self, *args):
2829 __add__(DecayCurve self, double v) -> DecayCurve
2830 __add__(DecayCurve self, DecayCurve other) -> DecayCurve
2832 return _IMP_bff.DecayCurve___add__(self, *args)
2834 def __sub__(self, *args):
2836 __sub__(DecayCurve self, double v) -> DecayCurve
2837 __sub__(DecayCurve self, DecayCurve other) -> DecayCurve
2839 return _IMP_bff.DecayCurve___sub__(self, *args)
2841 def __mul__(self, *args):
2843 __mul__(DecayCurve self, double v) -> DecayCurve
2844 __mul__(DecayCurve self, DecayCurve other) -> DecayCurve
2846 return _IMP_bff.DecayCurve___mul__(self, *args)
2848 def __truediv__(self, *args):
2849 return _IMP_bff.DecayCurve___truediv__(self, *args)
2850 __div__ = __truediv__
2854 def __lshift__(self, v):
2855 r"""__lshift__(DecayCurve self, double v) -> DecayCurve"""
2856 return _IMP_bff.DecayCurve___lshift__(self, v)
2858 acquisition_time = property(get_acquisition_time, set_acquisition_time)
2861 shift = property(get_shift, set_shift)
2865 lambda x: np.array(x.get_x()),
2871 lambda x: np.array(x.get_y()),
2877 lambda x: np.array(x.get_ey()),
2881 __swig_destroy__ = _IMP_bff.delete_DecayCurve
2884 _IMP_bff.DecayCurve_swigregister(DecayCurve)
2887 _plural_types.append(
"DecayRanges")
2888 _value_types.append(
"DecayRange")
2890 class DecayRange(IMP._Value):
2891 r"""Proxy of C++ IMP::bff::DecayRange class."""
2893 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2895 def get_start(self, d=None):
2896 r"""get_start(DecayRange self, DecayCurve d=None) -> size_t"""
2897 return _IMP_bff.DecayRange_get_start(self, d)
2899 def get_stop(self, d=None):
2900 r"""get_stop(DecayRange self, DecayCurve d=None) -> size_t"""
2901 return _IMP_bff.DecayRange_get_stop(self, d)
2903 def set_range(self, v):
2904 r"""set_range(DecayRange self, VectorInt v)"""
2905 return _IMP_bff.DecayRange_set_range(self, v)
2907 def get_range(self, d=None):
2908 r"""get_range(DecayRange self, DecayCurve d=None) -> VectorInt"""
2909 return _IMP_bff.DecayRange_get_range(self, d)
2911 def set(self, start=0, stop=-1):
2912 r"""set(DecayRange self, int start=0, int stop=-1)"""
2913 return _IMP_bff.DecayRange_set(self, start, stop)
2915 def __init__(self, start, stop):
2916 r"""__init__(DecayRange self, int start, int stop) -> DecayRange"""
2917 _IMP_bff.DecayRange_swiginit(self, _IMP_bff.new_DecayRange(start, stop))
2918 __swig_destroy__ = _IMP_bff.delete_DecayRange
2920 def show(self, *args, **kwargs):
2921 r"""show(DecayRange self, _ostream out=std::cout)"""
2922 return _IMP_bff.DecayRange_show(self, *args, **kwargs)
2925 r"""__str__(DecayRange self) -> std::string"""
2926 return _IMP_bff.DecayRange___str__(self)
2929 r"""__repr__(DecayRange self) -> std::string"""
2930 return _IMP_bff.DecayRange___repr__(self)
2931 start = property(_IMP_bff.DecayRange_start_get, _IMP_bff.DecayRange_start_set, doc=
r"""start : int""")
2932 stop = property(_IMP_bff.DecayRange_stop_get, _IMP_bff.DecayRange_stop_set, doc=
r"""stop : int""")
2935 _IMP_bff.DecayRange_swigregister(DecayRange)
2937 _object_types.append(
"DecayLifetimeHandler")
2940 def _object_cast_to_DecayLifetimeHandler(o):
2941 r"""_object_cast_to_DecayLifetimeHandler(Object o) -> DecayLifetimeHandler"""
2942 return _IMP_bff._object_cast_to_DecayLifetimeHandler(o)
2944 r"""Proxy of C++ IMP::bff::DecayLifetimeHandler class."""
2946 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2948 def add_lifetime(self, amplitude, lifetime):
2949 r"""add_lifetime(DecayLifetimeHandler self, double amplitude, double lifetime)"""
2950 return _IMP_bff.DecayLifetimeHandler_add_lifetime(self, amplitude, lifetime)
2952 def get_lifetime_spectrum(self):
2953 r"""get_lifetime_spectrum(DecayLifetimeHandler self)"""
2954 return _IMP_bff.DecayLifetimeHandler_get_lifetime_spectrum(self)
2956 def __init__(self, *args, **kwargs):
2957 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"""
2958 _IMP_bff.DecayLifetimeHandler_swiginit(self, _IMP_bff.new_DecayLifetimeHandler(*args, **kwargs))
2960 def get_version_info(self):
2961 r"""get_version_info(DecayLifetimeHandler self) -> VersionInfo"""
2962 return _IMP_bff.DecayLifetimeHandler_get_version_info(self)
2963 __swig_destroy__ = _IMP_bff.delete_DecayLifetimeHandler
2966 r"""__str__(DecayLifetimeHandler self) -> std::string"""
2967 return _IMP_bff.DecayLifetimeHandler___str__(self)
2970 r"""__repr__(DecayLifetimeHandler self) -> std::string"""
2971 return _IMP_bff.DecayLifetimeHandler___repr__(self)
2975 return _object_cast_to_DecayLifetimeHandler(o)
2977 abs_lifetime_spectrum = property(_IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_get, _IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_set, doc=
r"""abs_lifetime_spectrum : bool""")
2978 use_amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_set, doc=
r"""use_amplitude_threshold : bool""")
2979 amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_amplitude_threshold_set, doc=
r"""amplitude_threshold : double""")
2980 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)>)>""")
2983 _IMP_bff.DecayLifetimeHandler_swigregister(DecayLifetimeHandler)
2986 _plural_types.append(
"DecayModifiers")
2987 _value_types.append(
"DecayModifier")
2989 class DecayModifier(DecayRange):
2990 r"""Proxy of C++ IMP::bff::DecayModifier class."""
2992 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2994 def __init__(self, *args, **kwargs):
2995 raise AttributeError(
"No constructor defined - class is abstract")
2997 def set_data(self, v):
2998 r"""set_data(DecayModifier self, DecayCurve v)"""
2999 return _IMP_bff.DecayModifier_set_data(self, v)
3002 r"""get_data(DecayModifier self) -> DecayCurve"""
3003 return _IMP_bff.DecayModifier_get_data(self)
3005 def set(self, data, start=0, stop=-1, active=True):
3006 r"""set(DecayModifier self, DecayCurve data, int start=0, int stop=-1, bool active=True)"""
3007 return _IMP_bff.DecayModifier_set(self, data, start, stop, active)
3009 def resize(self, n, v=0.0):
3010 r"""resize(DecayModifier self, size_t n, double v=0.0)"""
3011 return _IMP_bff.DecayModifier_resize(self, n, v)
3014 r"""add(DecayModifier self, DecayCurve out)"""
3015 return _IMP_bff.DecayModifier_add(self, out)
3016 __swig_destroy__ = _IMP_bff.delete_DecayModifier
3019 r"""__str__(DecayModifier self) -> std::string"""
3020 return _IMP_bff.DecayModifier___str__(self)
3023 r"""__repr__(DecayModifier self) -> std::string"""
3024 return _IMP_bff.DecayModifier___repr__(self)
3025 active = property(_IMP_bff.DecayModifier_active_get, _IMP_bff.DecayModifier_active_set, doc=
r"""active : bool""")
3027 data = property(get_data, set_data)
3030 def __call__(self, *args, **kwargs):
3031 self.add(*args, **kwargs)
3035 _IMP_bff.DecayModifier_swigregister(DecayModifier)
3037 DecayConvolutions=list
3038 _plural_types.append(
"DecayConvolutions")
3039 _value_types.append(
"DecayConvolution")
3041 class DecayConvolution(DecayModifier):
3042 r"""Proxy of C++ IMP::bff::DecayConvolution class."""
3044 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3045 FAST_PERIODIC_TIME = _IMP_bff.DecayConvolution_FAST_PERIODIC_TIME
3047 FAST_TIME = _IMP_bff.DecayConvolution_FAST_TIME
3049 FAST_PERIODIC = _IMP_bff.DecayConvolution_FAST_PERIODIC
3051 FAST = _IMP_bff.DecayConvolution_FAST
3053 FAST_AVX = _IMP_bff.DecayConvolution_FAST_AVX
3055 FAST_PERIODIC_AVX = _IMP_bff.DecayConvolution_FAST_PERIODIC_AVX
3059 def compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts):
3060 r"""compute_corrected_irf(DecayCurve irf, DecayCurve corrected_irf, double irf_shift_channels, double irf_background_counts)"""
3061 return _IMP_bff.DecayConvolution_compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts)
3064 def compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution):
3065 r"""compute_mean_lifetime(VectorDouble irf_histogram, VectorDouble decay_histogram, double micro_time_resolution) -> double"""
3066 return _IMP_bff.DecayConvolution_compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution)
3068 def set_irf(self, v):
3069 r"""set_irf(DecayConvolution self, DecayCurve v)"""
3070 return _IMP_bff.DecayConvolution_set_irf(self, v)
3073 r"""get_irf(DecayConvolution self) -> DecayCurve"""
3074 return _IMP_bff.DecayConvolution_get_irf(self)
3076 def get_mean_lifetime(self, decay):
3077 r"""get_mean_lifetime(DecayConvolution self, DecayCurve decay) -> double"""
3078 return _IMP_bff.DecayConvolution_get_mean_lifetime(self, decay)
3080 def set(self, *args, **kwargs):
3081 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)"""
3082 return _IMP_bff.DecayConvolution_set(self, *args, **kwargs)
3084 def __init__(self, *args, **kwargs):
3085 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"""
3086 _IMP_bff.DecayConvolution_swiginit(self, _IMP_bff.new_DecayConvolution(*args, **kwargs))
3087 __swig_destroy__ = _IMP_bff.delete_DecayConvolution
3090 r"""__str__(DecayConvolution self) -> std::string"""
3091 return _IMP_bff.DecayConvolution___str__(self)
3094 r"""__repr__(DecayConvolution self) -> std::string"""
3095 return _IMP_bff.DecayConvolution___repr__(self)
3096 corrected_irf = property(_IMP_bff.DecayConvolution_corrected_irf_get, doc=
r"""corrected_irf : r.IMP::bff::DecayCurve""")
3097 convolution_method = property(_IMP_bff.DecayConvolution_convolution_method_get, _IMP_bff.DecayConvolution_convolution_method_set, doc=
r"""convolution_method : int""")
3098 excitation_period = property(_IMP_bff.DecayConvolution_excitation_period_get, _IMP_bff.DecayConvolution_excitation_period_set, doc=
r"""excitation_period : double""")
3099 irf_shift_channels = property(_IMP_bff.DecayConvolution_irf_shift_channels_get, _IMP_bff.DecayConvolution_irf_shift_channels_set, doc=
r"""irf_shift_channels : double""")
3100 irf_background_counts = property(_IMP_bff.DecayConvolution_irf_background_counts_get, _IMP_bff.DecayConvolution_irf_background_counts_set, doc=
r"""irf_background_counts : double""")
3102 irf = property(get_irf, set_irf)
3106 _IMP_bff.DecayConvolution_swigregister(DecayConvolution)
3109 _plural_types.append(
"DecayPatterns")
3110 _value_types.append(
"DecayPattern")
3112 class DecayPattern(DecayModifier):
3113 r"""Proxy of C++ IMP::bff::DecayPattern class."""
3115 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3117 def __init__(self, constant_offset=0.0, pattern=None, pattern_fraction=0.0, start=0, stop=-1, active=True):
3118 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"""
3119 _IMP_bff.DecayPattern_swiginit(self, _IMP_bff.new_DecayPattern(constant_offset, pattern, pattern_fraction, start, stop, active))
3122 r"""__str__(DecayPattern self) -> std::string"""
3123 return _IMP_bff.DecayPattern___str__(self)
3126 r"""__repr__(DecayPattern self) -> std::string"""
3127 return _IMP_bff.DecayPattern___repr__(self)
3128 pattern = property(_IMP_bff.DecayPattern_pattern_get, _IMP_bff.DecayPattern_pattern_set, doc=
r"""pattern : p.IMP::bff::DecayCurve""")
3129 pattern_fraction = property(_IMP_bff.DecayPattern_pattern_fraction_get, _IMP_bff.DecayPattern_pattern_fraction_set, doc=
r"""pattern_fraction : double""")
3130 constant_offset = property(_IMP_bff.DecayPattern_constant_offset_get, _IMP_bff.DecayPattern_constant_offset_set, doc=
r"""constant_offset : double""")
3131 __swig_destroy__ = _IMP_bff.delete_DecayPattern
3134 _IMP_bff.DecayPattern_swigregister(DecayPattern)
3137 _plural_types.append(
"DecayPileups")
3138 _value_types.append(
"DecayPileup")
3140 class DecayPileup(DecayModifier):
3141 r"""Proxy of C++ IMP::bff::DecayPileup class."""
3143 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3145 def __init__(self, *args, **kwargs):
3146 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"""
3147 _IMP_bff.DecayPileup_swiginit(self, _IMP_bff.new_DecayPileup(*args, **kwargs))
3150 r"""__str__(DecayPileup self) -> std::string"""
3151 return _IMP_bff.DecayPileup___str__(self)
3154 r"""__repr__(DecayPileup self) -> std::string"""
3155 return _IMP_bff.DecayPileup___repr__(self)
3156 instrument_dead_time = property(_IMP_bff.DecayPileup_instrument_dead_time_get, _IMP_bff.DecayPileup_instrument_dead_time_set, doc=
r"""instrument_dead_time : double""")
3157 repetition_rate = property(_IMP_bff.DecayPileup_repetition_rate_get, _IMP_bff.DecayPileup_repetition_rate_set, doc=
r"""repetition_rate : double""")
3158 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""")
3159 __swig_destroy__ = _IMP_bff.delete_DecayPileup
3162 _IMP_bff.DecayPileup_swigregister(DecayPileup)
3164 DecayLinearizations=list
3165 _plural_types.append(
"DecayLinearizations")
3166 _value_types.append(
"DecayLinearization")
3168 class DecayLinearization(DecayModifier):
3169 r"""Proxy of C++ IMP::bff::DecayLinearization class."""
3171 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3173 def set_linearization_table(self, v):
3174 r"""set_linearization_table(DecayLinearization self, DecayCurve v)"""
3175 return _IMP_bff.DecayLinearization_set_linearization_table(self, v)
3177 def get_linearization_table(self):
3178 r"""get_linearization_table(DecayLinearization self) -> DecayCurve"""
3179 return _IMP_bff.DecayLinearization_get_linearization_table(self)
3181 def __init__(self, linearization_table, start, stop, active=True, n_window=5):
3182 r"""__init__(DecayLinearization self, DecayCurve linearization_table, int start, int stop, bool active=True, int n_window=5) -> DecayLinearization"""
3183 _IMP_bff.DecayLinearization_swiginit(self, _IMP_bff.new_DecayLinearization(linearization_table, start, stop, active, n_window))
3186 r"""__str__(DecayLinearization self) -> std::string"""
3187 return _IMP_bff.DecayLinearization___str__(self)
3190 r"""__repr__(DecayLinearization self) -> std::string"""
3191 return _IMP_bff.DecayLinearization___repr__(self)
3192 __swig_destroy__ = _IMP_bff.delete_DecayLinearization
3195 _IMP_bff.DecayLinearization_swigregister(DecayLinearization)
3198 _plural_types.append(
"DecayScales")
3199 _value_types.append(
"DecayScale")
3201 class DecayScale(DecayModifier):
3202 r"""Proxy of C++ IMP::bff::DecayScale class."""
3204 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3206 def set_blank_outside(self, v):
3207 r"""set_blank_outside(DecayScale self, double v)"""
3208 return _IMP_bff.DecayScale_set_blank_outside(self, v)
3210 def get_blank_outside(self):
3211 r"""get_blank_outside(DecayScale self) -> bool"""
3212 return _IMP_bff.DecayScale_get_blank_outside(self)
3214 def set(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3215 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)"""
3216 return _IMP_bff.DecayScale_set(self, data, constant_background, start, stop, active, blank_outside)
3218 def __init__(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3219 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"""
3220 _IMP_bff.DecayScale_swiginit(self, _IMP_bff.new_DecayScale(data, constant_background, start, stop, active, blank_outside))
3223 r"""__str__(DecayScale self) -> std::string"""
3224 return _IMP_bff.DecayScale___str__(self)
3227 r"""__repr__(DecayScale self) -> std::string"""
3228 return _IMP_bff.DecayScale___repr__(self)
3229 number_of_photons = property(_IMP_bff.DecayScale_number_of_photons_get, doc=
r"""number_of_photons : double""")
3230 constant_background = property(_IMP_bff.DecayScale_constant_background_get, _IMP_bff.DecayScale_constant_background_set, doc=
r"""constant_background : double""")
3231 __swig_destroy__ = _IMP_bff.delete_DecayScale
3234 _IMP_bff.DecayScale_swigregister(DecayScale)
3237 _plural_types.append(
"DecayScores")
3238 _value_types.append(
"DecayScore")
3240 class DecayScore(DecayRange):
3241 r"""Proxy of C++ IMP::bff::DecayScore class."""
3243 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3245 def get_model(self):
3246 r"""get_model(DecayScore self) -> DecayCurve"""
3247 return _IMP_bff.DecayScore_get_model(self)
3249 def set_model(self, v):
3250 r"""set_model(DecayScore self, DecayCurve v)"""
3251 return _IMP_bff.DecayScore_set_model(self, v)
3254 r"""get_data(DecayScore self) -> DecayCurve"""
3255 return _IMP_bff.DecayScore_get_data(self)
3257 def set_data(self, v):
3258 r"""set_data(DecayScore self, DecayCurve v)"""
3259 return _IMP_bff.DecayScore_set_data(self, v)
3261 def get_weighted_residuals(self):
3262 r"""get_weighted_residuals(DecayScore self) -> VectorDouble"""
3263 return _IMP_bff.DecayScore_get_weighted_residuals(self)
3265 def get_score(self, start=0, stop=-1, score_type=None):
3266 r"""get_score(DecayScore self, int start=0, int stop=-1, char const * score_type=None) -> double"""
3267 return _IMP_bff.DecayScore_get_score(self, start, stop, score_type)
3269 def set(self, *args, **kwargs):
3270 r"""set(DecayScore self, DecayCurve model, DecayCurve data, std::string score_type="poisson", int start=0, int stop=-1)"""
3271 return _IMP_bff.DecayScore_set(self, *args, **kwargs)
3273 def __init__(self, *args, **kwargs):
3274 r"""__init__(DecayScore self, DecayCurve model=None, DecayCurve data=None, std::string score_type="poisson", int start=0, int stop=-1) -> DecayScore"""
3275 _IMP_bff.DecayScore_swiginit(self, _IMP_bff.new_DecayScore(*args, **kwargs))
3276 __swig_destroy__ = _IMP_bff.delete_DecayScore
3279 r"""__str__(DecayScore self) -> std::string"""
3280 return _IMP_bff.DecayScore___str__(self)
3283 r"""__repr__(DecayScore self) -> std::string"""
3284 return _IMP_bff.DecayScore___repr__(self)
3285 score_type = property(_IMP_bff.DecayScore_score_type_get, _IMP_bff.DecayScore_score_type_set, doc=
r"""score_type : std::string""")
3286 score = property(_IMP_bff.DecayScore_score_get, doc=
r"""score : double""")
3288 model = property(get_model, set_model)
3291 data = property(get_data, set_data)
3294 weighted_residuals = property(
3295 lambda x: np.array(x.get_weighted_residuals())
3300 _IMP_bff.DecayScore_swigregister(DecayScore)
3303 r"""get_module_version() -> std::string const"""
3304 return _IMP_bff.get_module_version()
3307 r"""get_example_path(std::string fname) -> std::string"""
3308 return _IMP_bff.get_example_path(fname)
3311 r"""get_data_path(std::string fname) -> std::string"""
3312 return _IMP_bff.get_data_path(fname)
3314 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.