IMP logo
IMP Reference Guide  develop.298718d020,2025/02/22
The Integrative Modeling Platform
bff/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_bff
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
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):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
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"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
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__)
62 
63 
64 import weakref
65 
66 class IMP_BFF_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_BFF_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_bff.delete_IMP_BFF_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_BFF_SwigPyIterator self) -> PyObject *"""
78  return _IMP_bff.IMP_BFF_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_BFF_SwigPyIterator self, size_t n=1) -> IMP_BFF_SwigPyIterator"""
82  return _IMP_bff.IMP_BFF_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_BFF_SwigPyIterator self, size_t n=1) -> IMP_BFF_SwigPyIterator"""
86  return _IMP_bff.IMP_BFF_SwigPyIterator_decr(self, n)
87 
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)
91 
92  def equal(self, x):
93  r"""equal(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
94  return _IMP_bff.IMP_BFF_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_BFF_SwigPyIterator self) -> IMP_BFF_SwigPyIterator"""
98  return _IMP_bff.IMP_BFF_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_BFF_SwigPyIterator self) -> PyObject *"""
102  return _IMP_bff.IMP_BFF_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_BFF_SwigPyIterator self) -> PyObject *"""
106  return _IMP_bff.IMP_BFF_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_BFF_SwigPyIterator self) -> PyObject *"""
110  return _IMP_bff.IMP_BFF_SwigPyIterator_previous(self)
111 
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)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
118  return _IMP_bff.IMP_BFF_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> bool"""
122  return _IMP_bff.IMP_BFF_SwigPyIterator___ne__(self, x)
123 
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)
127 
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)
131 
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)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_BFF_SwigPyIterator self, ptrdiff_t n) -> IMP_BFF_SwigPyIterator
139  __sub__(IMP_BFF_SwigPyIterator self, IMP_BFF_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_bff.IMP_BFF_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_BFF_SwigPyIterator in _IMP_bff:
146 _IMP_bff.IMP_BFF_SwigPyIterator_swigregister(IMP_BFF_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_bff.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_bff.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_bff.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_bff.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_bff.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_bff.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_bff.IMP_MEMORY
166 
167 IMP_NONE = _IMP_bff.IMP_NONE
168 
169 IMP_USAGE = _IMP_bff.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_bff.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_bff.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_bff.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_bff.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_bff.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_bff.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_bff.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_bff.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_bff.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_bff.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_bff.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
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)
207  def cleanup(self):
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]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
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()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_bff._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_bff:
236 _IMP_bff._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_bff.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_bff.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CGAL_HAS_BOOST_SYSTEM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_bff.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_bff.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_bff.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_bff.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_bff.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_bff.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_bff.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_bff.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_bff.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_bff.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_bff.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_bff.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_bff.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_bff.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_bff.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_bff.IMP_STATISTICS_HAS_IMP_CGAL
309 
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
311 
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
313 
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_RANDOM
315 
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_bff.IMP_STATISTICS_HAS_BOOST_SYSTEM
317 
318 IMP_STATISTICS_HAS_CGAL = _IMP_bff.IMP_STATISTICS_HAS_CGAL
319 
320 IMP_STATISTICS_HAS_NUMPY = _IMP_bff.IMP_STATISTICS_HAS_NUMPY
321 
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_bff.IMPSTATISTICS_SHOW_WARNINGS
323 
324 import IMP.statistics
325 IMP_CORE_HAS_IMP_CGAL = _IMP_bff.IMP_CORE_HAS_IMP_CGAL
326 
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_bff.IMP_CORE_HAS_IMP_KERNEL
328 
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CORE_HAS_BOOST_FILESYSTEM
330 
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
332 
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_bff.IMP_CORE_HAS_BOOST_RANDOM
334 
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CORE_HAS_BOOST_SYSTEM
336 
337 IMP_CORE_HAS_CGAL = _IMP_bff.IMP_CORE_HAS_CGAL
338 
339 IMP_CORE_HAS_HDF5 = _IMP_bff.IMP_CORE_HAS_HDF5
340 
341 IMP_CORE_HAS_NUMPY = _IMP_bff.IMP_CORE_HAS_NUMPY
342 
343 IMPCORE_SHOW_WARNINGS = _IMP_bff.IMPCORE_SHOW_WARNINGS
344 
345 import IMP.core
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_bff.IMP_CONTAINER_HAS_IMP_ALGEBRA
347 
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_bff.IMP_CONTAINER_HAS_IMP_CGAL
349 
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_bff.IMP_CONTAINER_HAS_IMP_DISPLAY
351 
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_bff.IMP_CONTAINER_HAS_IMP_KERNEL
353 
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
355 
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
357 
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
359 
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_RANDOM
361 
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_bff.IMP_CONTAINER_HAS_BOOST_SYSTEM
363 
364 IMP_CONTAINER_HAS_CGAL = _IMP_bff.IMP_CONTAINER_HAS_CGAL
365 
366 IMP_CONTAINER_HAS_HDF5 = _IMP_bff.IMP_CONTAINER_HAS_HDF5
367 
368 IMP_CONTAINER_HAS_NUMPY = _IMP_bff.IMP_CONTAINER_HAS_NUMPY
369 
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_bff.IMP_CONTAINER_HAS_PYTHON_IHM
371 
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_bff.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
373 
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_bff.IMP_CONTAINER_HAS_ROBIN_MAP
375 
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_bff.IMPCONTAINER_SHOW_WARNINGS
377 
378 import IMP.container
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_bff.IMP_ATOM_HAS_IMP_CGAL
380 
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_bff.IMP_ATOM_HAS_IMP_KERNEL
382 
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
384 
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
386 
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_bff.IMP_ATOM_HAS_BOOST_RANDOM
388 
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_bff.IMP_ATOM_HAS_BOOST_REGEX
390 
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_bff.IMP_ATOM_HAS_BOOST_SYSTEM
392 
393 IMP_ATOM_HAS_CGAL = _IMP_bff.IMP_ATOM_HAS_CGAL
394 
395 IMP_ATOM_HAS_HDF5 = _IMP_bff.IMP_ATOM_HAS_HDF5
396 
397 IMP_ATOM_HAS_NUMPY = _IMP_bff.IMP_ATOM_HAS_NUMPY
398 
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_bff.IMP_ATOM_HAS_PYTHON_IHM
400 
401 IMPATOM_SHOW_WARNINGS = _IMP_bff.IMPATOM_SHOW_WARNINGS
402 
403 IMP_ATOM_TYPE_INDEX = _IMP_bff.IMP_ATOM_TYPE_INDEX
404 
405 IMP_RESIDUE_TYPE_INDEX = _IMP_bff.IMP_RESIDUE_TYPE_INDEX
406 
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_bff.IMP_HIERARCHY_TYPE_INDEX
408 
409 IMP_CHAIN_TYPE_INDEX = _IMP_bff.IMP_CHAIN_TYPE_INDEX
410 
411 import IMP.atom
412 IMP_EM_HAS_IMP_CGAL = _IMP_bff.IMP_EM_HAS_IMP_CGAL
413 
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_bff.IMP_EM_HAS_IMP_CONTAINER
415 
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_bff.IMP_EM_HAS_IMP_DISPLAY
417 
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_EM_HAS_IMP_SCORE_FUNCTOR
419 
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_EM_HAS_BOOST_FILESYSTEM
421 
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
423 
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_bff.IMP_EM_HAS_BOOST_RANDOM
425 
426 IMP_EM_HAS_BOOST_REGEX = _IMP_bff.IMP_EM_HAS_BOOST_REGEX
427 
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_bff.IMP_EM_HAS_BOOST_SYSTEM
429 
430 IMP_EM_HAS_CGAL = _IMP_bff.IMP_EM_HAS_CGAL
431 
432 IMP_EM_HAS_HDF5 = _IMP_bff.IMP_EM_HAS_HDF5
433 
434 IMP_EM_HAS_NUMPY = _IMP_bff.IMP_EM_HAS_NUMPY
435 
436 IMP_EM_HAS_PYTHON_IHM = _IMP_bff.IMP_EM_HAS_PYTHON_IHM
437 
438 IMPEM_SHOW_WARNINGS = _IMP_bff.IMPEM_SHOW_WARNINGS
439 
440 import IMP.em
441 IMP_BFF_HAS_IMP_ALGEBRA = _IMP_bff.IMP_BFF_HAS_IMP_ALGEBRA
442 
443 IMP_BFF_HAS_IMP_CGAL = _IMP_bff.IMP_BFF_HAS_IMP_CGAL
444 
445 IMP_BFF_HAS_IMP_DISPLAY = _IMP_bff.IMP_BFF_HAS_IMP_DISPLAY
446 
447 IMP_BFF_HAS_IMP_KERNEL = _IMP_bff.IMP_BFF_HAS_IMP_KERNEL
448 
449 IMP_BFF_HAS_IMP_SCORE_FUNCTOR = _IMP_bff.IMP_BFF_HAS_IMP_SCORE_FUNCTOR
450 
451 IMP_BFF_HAS_IMP_STATISTICS = _IMP_bff.IMP_BFF_HAS_IMP_STATISTICS
452 
453 IMP_BFF_HAS_BOOST_FILESYSTEM = _IMP_bff.IMP_BFF_HAS_BOOST_FILESYSTEM
454 
455 IMP_BFF_HAS_BOOST_PROGRAMOPTIONS = _IMP_bff.IMP_BFF_HAS_BOOST_PROGRAMOPTIONS
456 
457 IMP_BFF_HAS_BOOST_RANDOM = _IMP_bff.IMP_BFF_HAS_BOOST_RANDOM
458 
459 IMP_BFF_HAS_BOOST_REGEX = _IMP_bff.IMP_BFF_HAS_BOOST_REGEX
460 
461 IMP_BFF_HAS_BOOST_SYSTEM = _IMP_bff.IMP_BFF_HAS_BOOST_SYSTEM
462 
463 IMP_BFF_HAS_CGAL = _IMP_bff.IMP_BFF_HAS_CGAL
464 
465 IMP_BFF_HAS_HDF5 = _IMP_bff.IMP_BFF_HAS_HDF5
466 
467 IMP_BFF_HAS_PYTHON_IHM = _IMP_bff.IMP_BFF_HAS_PYTHON_IHM
468 
469 IMP_BFF_HAS_AVX = _IMP_bff.IMP_BFF_HAS_AVX
470 
471 IMPBFF_SHOW_WARNINGS = _IMP_bff.IMPBFF_SHOW_WARNINGS
472 
473 
474 import numpy as np
475 
476 SHARED_PTR_DISOWN = _IMP_bff.SHARED_PTR_DISOWN
477 
478 class PairFloatFloat(object):
479  r"""Proxy of C++ std::pair< float,float > class."""
480 
481  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
482  __repr__ = _swig_repr
483 
484  def __init__(self, *args):
485  r"""
486  __init__(PairFloatFloat self) -> PairFloatFloat
487  __init__(PairFloatFloat self, float first, float second) -> PairFloatFloat
488  __init__(PairFloatFloat self, PairFloatFloat other) -> PairFloatFloat
489  """
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""")
493  def __len__(self):
494  return 2
495  def __repr__(self):
496  return str((self.first, self.second))
497  def __getitem__(self, index):
498  if not (index % 2):
499  return self.first
500  else:
501  return self.second
502  def __setitem__(self, index, val):
503  if not (index % 2):
504  self.first = val
505  else:
506  self.second = val
507  __swig_destroy__ = _IMP_bff.delete_PairFloatFloat
508 
509 # Register PairFloatFloat in _IMP_bff:
510 _IMP_bff.PairFloatFloat_swigregister(PairFloatFloat)
511 class VectorString(object):
512  r"""Proxy of C++ std::vector< std::string > class."""
513 
514  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
515  __repr__ = _swig_repr
516 
517  def iterator(self):
518  r"""iterator(VectorString self) -> IMP_BFF_SwigPyIterator"""
519  return _IMP_bff.VectorString_iterator(self)
520  def __iter__(self):
521  return self.iterator()
522 
523  def __nonzero__(self):
524  r"""__nonzero__(VectorString self) -> bool"""
525  return _IMP_bff.VectorString___nonzero__(self)
526 
527  def __bool__(self):
528  r"""__bool__(VectorString self) -> bool"""
529  return _IMP_bff.VectorString___bool__(self)
530 
531  def __len__(self):
532  r"""__len__(VectorString self) -> std::vector< std::string >::size_type"""
533  return _IMP_bff.VectorString___len__(self)
534 
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)
538 
539  def __setslice__(self, *args):
540  r"""
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)
543  """
544  return _IMP_bff.VectorString___setslice__(self, *args)
545 
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)
549 
550  def __delitem__(self, *args):
551  r"""
552  __delitem__(VectorString self, std::vector< std::string >::difference_type i)
553  __delitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
554  """
555  return _IMP_bff.VectorString___delitem__(self, *args)
556 
557  def __getitem__(self, *args):
558  r"""
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 &
561  """
562  return _IMP_bff.VectorString___getitem__(self, *args)
563 
564  def __setitem__(self, *args):
565  r"""
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)
569  """
570  return _IMP_bff.VectorString___setitem__(self, *args)
571 
572  def pop(self):
573  r"""pop(VectorString self) -> std::vector< std::string >::value_type"""
574  return _IMP_bff.VectorString_pop(self)
575 
576  def append(self, x):
577  r"""append(VectorString self, std::vector< std::string >::value_type const & x)"""
578  return _IMP_bff.VectorString_append(self, x)
579 
580  def empty(self):
581  r"""empty(VectorString self) -> bool"""
582  return _IMP_bff.VectorString_empty(self)
583 
584  def size(self):
585  r"""size(VectorString self) -> std::vector< std::string >::size_type"""
586  return _IMP_bff.VectorString_size(self)
587 
588  def swap(self, v):
589  r"""swap(VectorString self, VectorString v)"""
590  return _IMP_bff.VectorString_swap(self, v)
591 
592  def begin(self):
593  r"""begin(VectorString self) -> std::vector< std::string >::iterator"""
594  return _IMP_bff.VectorString_begin(self)
595 
596  def end(self):
597  r"""end(VectorString self) -> std::vector< std::string >::iterator"""
598  return _IMP_bff.VectorString_end(self)
599 
600  def rbegin(self):
601  r"""rbegin(VectorString self) -> std::vector< std::string >::reverse_iterator"""
602  return _IMP_bff.VectorString_rbegin(self)
603 
604  def rend(self):
605  r"""rend(VectorString self) -> std::vector< std::string >::reverse_iterator"""
606  return _IMP_bff.VectorString_rend(self)
607 
608  def clear(self):
609  r"""clear(VectorString self)"""
610  return _IMP_bff.VectorString_clear(self)
611 
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)
615 
616  def pop_back(self):
617  r"""pop_back(VectorString self)"""
618  return _IMP_bff.VectorString_pop_back(self)
619 
620  def erase(self, *args):
621  r"""
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
624  """
625  return _IMP_bff.VectorString_erase(self, *args)
626 
627  def __init__(self, *args):
628  r"""
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
633  """
634  _IMP_bff.VectorString_swiginit(self, _IMP_bff.new_VectorString(*args))
635 
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)
639 
640  def front(self):
641  r"""front(VectorString self) -> std::vector< std::string >::value_type const &"""
642  return _IMP_bff.VectorString_front(self)
643 
644  def back(self):
645  r"""back(VectorString self) -> std::vector< std::string >::value_type const &"""
646  return _IMP_bff.VectorString_back(self)
647 
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)
651 
652  def resize(self, *args):
653  r"""
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)
656  """
657  return _IMP_bff.VectorString_resize(self, *args)
658 
659  def insert(self, *args):
660  r"""
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)
663  """
664  return _IMP_bff.VectorString_insert(self, *args)
665 
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)
669 
670  def capacity(self):
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
674 
675 # Register VectorString in _IMP_bff:
676 _IMP_bff.VectorString_swigregister(VectorString)
677 class VectorDouble(object):
678  r"""Proxy of C++ std::vector< double > class."""
679 
680  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
681  __repr__ = _swig_repr
682 
683  def iterator(self):
684  r"""iterator(VectorDouble self) -> IMP_BFF_SwigPyIterator"""
685  return _IMP_bff.VectorDouble_iterator(self)
686  def __iter__(self):
687  return self.iterator()
688 
689  def __nonzero__(self):
690  r"""__nonzero__(VectorDouble self) -> bool"""
691  return _IMP_bff.VectorDouble___nonzero__(self)
692 
693  def __bool__(self):
694  r"""__bool__(VectorDouble self) -> bool"""
695  return _IMP_bff.VectorDouble___bool__(self)
696 
697  def __len__(self):
698  r"""__len__(VectorDouble self) -> std::vector< double >::size_type"""
699  return _IMP_bff.VectorDouble___len__(self)
700 
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)
704 
705  def __setslice__(self, *args):
706  r"""
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)
709  """
710  return _IMP_bff.VectorDouble___setslice__(self, *args)
711 
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)
715 
716  def __delitem__(self, *args):
717  r"""
718  __delitem__(VectorDouble self, std::vector< double >::difference_type i)
719  __delitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
720  """
721  return _IMP_bff.VectorDouble___delitem__(self, *args)
722 
723  def __getitem__(self, *args):
724  r"""
725  __getitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice) -> VectorDouble
726  __getitem__(VectorDouble self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
727  """
728  return _IMP_bff.VectorDouble___getitem__(self, *args)
729 
730  def __setitem__(self, *args):
731  r"""
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)
735  """
736  return _IMP_bff.VectorDouble___setitem__(self, *args)
737 
738  def pop(self):
739  r"""pop(VectorDouble self) -> std::vector< double >::value_type"""
740  return _IMP_bff.VectorDouble_pop(self)
741 
742  def append(self, x):
743  r"""append(VectorDouble self, std::vector< double >::value_type const & x)"""
744  return _IMP_bff.VectorDouble_append(self, x)
745 
746  def empty(self):
747  r"""empty(VectorDouble self) -> bool"""
748  return _IMP_bff.VectorDouble_empty(self)
749 
750  def size(self):
751  r"""size(VectorDouble self) -> std::vector< double >::size_type"""
752  return _IMP_bff.VectorDouble_size(self)
753 
754  def swap(self, v):
755  r"""swap(VectorDouble self, VectorDouble v)"""
756  return _IMP_bff.VectorDouble_swap(self, v)
757 
758  def begin(self):
759  r"""begin(VectorDouble self) -> std::vector< double >::iterator"""
760  return _IMP_bff.VectorDouble_begin(self)
761 
762  def end(self):
763  r"""end(VectorDouble self) -> std::vector< double >::iterator"""
764  return _IMP_bff.VectorDouble_end(self)
765 
766  def rbegin(self):
767  r"""rbegin(VectorDouble self) -> std::vector< double >::reverse_iterator"""
768  return _IMP_bff.VectorDouble_rbegin(self)
769 
770  def rend(self):
771  r"""rend(VectorDouble self) -> std::vector< double >::reverse_iterator"""
772  return _IMP_bff.VectorDouble_rend(self)
773 
774  def clear(self):
775  r"""clear(VectorDouble self)"""
776  return _IMP_bff.VectorDouble_clear(self)
777 
778  def get_allocator(self):
779  r"""get_allocator(VectorDouble self) -> std::vector< double >::allocator_type"""
780  return _IMP_bff.VectorDouble_get_allocator(self)
781 
782  def pop_back(self):
783  r"""pop_back(VectorDouble self)"""
784  return _IMP_bff.VectorDouble_pop_back(self)
785 
786  def erase(self, *args):
787  r"""
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
790  """
791  return _IMP_bff.VectorDouble_erase(self, *args)
792 
793  def __init__(self, *args):
794  r"""
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
799  """
800  _IMP_bff.VectorDouble_swiginit(self, _IMP_bff.new_VectorDouble(*args))
801 
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)
805 
806  def front(self):
807  r"""front(VectorDouble self) -> std::vector< double >::value_type const &"""
808  return _IMP_bff.VectorDouble_front(self)
809 
810  def back(self):
811  r"""back(VectorDouble self) -> std::vector< double >::value_type const &"""
812  return _IMP_bff.VectorDouble_back(self)
813 
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)
817 
818  def resize(self, *args):
819  r"""
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)
822  """
823  return _IMP_bff.VectorDouble_resize(self, *args)
824 
825  def insert(self, *args):
826  r"""
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)
829  """
830  return _IMP_bff.VectorDouble_insert(self, *args)
831 
832  def reserve(self, n):
833  r"""reserve(VectorDouble self, std::vector< double >::size_type n)"""
834  return _IMP_bff.VectorDouble_reserve(self, n)
835 
836  def capacity(self):
837  r"""capacity(VectorDouble self) -> std::vector< double >::size_type"""
838  return _IMP_bff.VectorDouble_capacity(self)
839  __swig_destroy__ = _IMP_bff.delete_VectorDouble
840 
841 # Register VectorDouble in _IMP_bff:
842 _IMP_bff.VectorDouble_swigregister(VectorDouble)
843 class VectorFloat(object):
844  r"""Proxy of C++ std::vector< float > class."""
845 
846  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
847  __repr__ = _swig_repr
848 
849  def iterator(self):
850  r"""iterator(VectorFloat self) -> IMP_BFF_SwigPyIterator"""
851  return _IMP_bff.VectorFloat_iterator(self)
852  def __iter__(self):
853  return self.iterator()
854 
855  def __nonzero__(self):
856  r"""__nonzero__(VectorFloat self) -> bool"""
857  return _IMP_bff.VectorFloat___nonzero__(self)
858 
859  def __bool__(self):
860  r"""__bool__(VectorFloat self) -> bool"""
861  return _IMP_bff.VectorFloat___bool__(self)
862 
863  def __len__(self):
864  r"""__len__(VectorFloat self) -> std::vector< float >::size_type"""
865  return _IMP_bff.VectorFloat___len__(self)
866 
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)
870 
871  def __setslice__(self, *args):
872  r"""
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)
875  """
876  return _IMP_bff.VectorFloat___setslice__(self, *args)
877 
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)
881 
882  def __delitem__(self, *args):
883  r"""
884  __delitem__(VectorFloat self, std::vector< float >::difference_type i)
885  __delitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
886  """
887  return _IMP_bff.VectorFloat___delitem__(self, *args)
888 
889  def __getitem__(self, *args):
890  r"""
891  __getitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice) -> VectorFloat
892  __getitem__(VectorFloat self, std::vector< float >::difference_type i) -> std::vector< float >::value_type const &
893  """
894  return _IMP_bff.VectorFloat___getitem__(self, *args)
895 
896  def __setitem__(self, *args):
897  r"""
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)
901  """
902  return _IMP_bff.VectorFloat___setitem__(self, *args)
903 
904  def pop(self):
905  r"""pop(VectorFloat self) -> std::vector< float >::value_type"""
906  return _IMP_bff.VectorFloat_pop(self)
907 
908  def append(self, x):
909  r"""append(VectorFloat self, std::vector< float >::value_type const & x)"""
910  return _IMP_bff.VectorFloat_append(self, x)
911 
912  def empty(self):
913  r"""empty(VectorFloat self) -> bool"""
914  return _IMP_bff.VectorFloat_empty(self)
915 
916  def size(self):
917  r"""size(VectorFloat self) -> std::vector< float >::size_type"""
918  return _IMP_bff.VectorFloat_size(self)
919 
920  def swap(self, v):
921  r"""swap(VectorFloat self, VectorFloat v)"""
922  return _IMP_bff.VectorFloat_swap(self, v)
923 
924  def begin(self):
925  r"""begin(VectorFloat self) -> std::vector< float >::iterator"""
926  return _IMP_bff.VectorFloat_begin(self)
927 
928  def end(self):
929  r"""end(VectorFloat self) -> std::vector< float >::iterator"""
930  return _IMP_bff.VectorFloat_end(self)
931 
932  def rbegin(self):
933  r"""rbegin(VectorFloat self) -> std::vector< float >::reverse_iterator"""
934  return _IMP_bff.VectorFloat_rbegin(self)
935 
936  def rend(self):
937  r"""rend(VectorFloat self) -> std::vector< float >::reverse_iterator"""
938  return _IMP_bff.VectorFloat_rend(self)
939 
940  def clear(self):
941  r"""clear(VectorFloat self)"""
942  return _IMP_bff.VectorFloat_clear(self)
943 
944  def get_allocator(self):
945  r"""get_allocator(VectorFloat self) -> std::vector< float >::allocator_type"""
946  return _IMP_bff.VectorFloat_get_allocator(self)
947 
948  def pop_back(self):
949  r"""pop_back(VectorFloat self)"""
950  return _IMP_bff.VectorFloat_pop_back(self)
951 
952  def erase(self, *args):
953  r"""
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
956  """
957  return _IMP_bff.VectorFloat_erase(self, *args)
958 
959  def __init__(self, *args):
960  r"""
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
965  """
966  _IMP_bff.VectorFloat_swiginit(self, _IMP_bff.new_VectorFloat(*args))
967 
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)
971 
972  def front(self):
973  r"""front(VectorFloat self) -> std::vector< float >::value_type const &"""
974  return _IMP_bff.VectorFloat_front(self)
975 
976  def back(self):
977  r"""back(VectorFloat self) -> std::vector< float >::value_type const &"""
978  return _IMP_bff.VectorFloat_back(self)
979 
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)
983 
984  def resize(self, *args):
985  r"""
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)
988  """
989  return _IMP_bff.VectorFloat_resize(self, *args)
990 
991  def insert(self, *args):
992  r"""
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)
995  """
996  return _IMP_bff.VectorFloat_insert(self, *args)
997 
998  def reserve(self, n):
999  r"""reserve(VectorFloat self, std::vector< float >::size_type n)"""
1000  return _IMP_bff.VectorFloat_reserve(self, n)
1001 
1002  def capacity(self):
1003  r"""capacity(VectorFloat self) -> std::vector< float >::size_type"""
1004  return _IMP_bff.VectorFloat_capacity(self)
1005  __swig_destroy__ = _IMP_bff.delete_VectorFloat
1006 
1007 # Register VectorFloat in _IMP_bff:
1008 _IMP_bff.VectorFloat_swigregister(VectorFloat)
1009 class VectorInt(object):
1010  r"""Proxy of C++ std::vector< int > class."""
1011 
1012  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1013  __repr__ = _swig_repr
1014 
1015  def iterator(self):
1016  r"""iterator(VectorInt self) -> IMP_BFF_SwigPyIterator"""
1017  return _IMP_bff.VectorInt_iterator(self)
1018  def __iter__(self):
1019  return self.iterator()
1020 
1021  def __nonzero__(self):
1022  r"""__nonzero__(VectorInt self) -> bool"""
1023  return _IMP_bff.VectorInt___nonzero__(self)
1024 
1025  def __bool__(self):
1026  r"""__bool__(VectorInt self) -> bool"""
1027  return _IMP_bff.VectorInt___bool__(self)
1028 
1029  def __len__(self):
1030  r"""__len__(VectorInt self) -> std::vector< int >::size_type"""
1031  return _IMP_bff.VectorInt___len__(self)
1032 
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)
1036 
1037  def __setslice__(self, *args):
1038  r"""
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)
1041  """
1042  return _IMP_bff.VectorInt___setslice__(self, *args)
1043 
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)
1047 
1048  def __delitem__(self, *args):
1049  r"""
1050  __delitem__(VectorInt self, std::vector< int >::difference_type i)
1051  __delitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1052  """
1053  return _IMP_bff.VectorInt___delitem__(self, *args)
1054 
1055  def __getitem__(self, *args):
1056  r"""
1057  __getitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice) -> VectorInt
1058  __getitem__(VectorInt self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
1059  """
1060  return _IMP_bff.VectorInt___getitem__(self, *args)
1061 
1062  def __setitem__(self, *args):
1063  r"""
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)
1067  """
1068  return _IMP_bff.VectorInt___setitem__(self, *args)
1069 
1070  def pop(self):
1071  r"""pop(VectorInt self) -> std::vector< int >::value_type"""
1072  return _IMP_bff.VectorInt_pop(self)
1073 
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)
1077 
1078  def empty(self):
1079  r"""empty(VectorInt self) -> bool"""
1080  return _IMP_bff.VectorInt_empty(self)
1081 
1082  def size(self):
1083  r"""size(VectorInt self) -> std::vector< int >::size_type"""
1084  return _IMP_bff.VectorInt_size(self)
1085 
1086  def swap(self, v):
1087  r"""swap(VectorInt self, VectorInt v)"""
1088  return _IMP_bff.VectorInt_swap(self, v)
1089 
1090  def begin(self):
1091  r"""begin(VectorInt self) -> std::vector< int >::iterator"""
1092  return _IMP_bff.VectorInt_begin(self)
1093 
1094  def end(self):
1095  r"""end(VectorInt self) -> std::vector< int >::iterator"""
1096  return _IMP_bff.VectorInt_end(self)
1097 
1098  def rbegin(self):
1099  r"""rbegin(VectorInt self) -> std::vector< int >::reverse_iterator"""
1100  return _IMP_bff.VectorInt_rbegin(self)
1101 
1102  def rend(self):
1103  r"""rend(VectorInt self) -> std::vector< int >::reverse_iterator"""
1104  return _IMP_bff.VectorInt_rend(self)
1105 
1106  def clear(self):
1107  r"""clear(VectorInt self)"""
1108  return _IMP_bff.VectorInt_clear(self)
1109 
1110  def get_allocator(self):
1111  r"""get_allocator(VectorInt self) -> std::vector< int >::allocator_type"""
1112  return _IMP_bff.VectorInt_get_allocator(self)
1113 
1114  def pop_back(self):
1115  r"""pop_back(VectorInt self)"""
1116  return _IMP_bff.VectorInt_pop_back(self)
1117 
1118  def erase(self, *args):
1119  r"""
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
1122  """
1123  return _IMP_bff.VectorInt_erase(self, *args)
1124 
1125  def __init__(self, *args):
1126  r"""
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
1131  """
1132  _IMP_bff.VectorInt_swiginit(self, _IMP_bff.new_VectorInt(*args))
1133 
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)
1137 
1138  def front(self):
1139  r"""front(VectorInt self) -> std::vector< int >::value_type const &"""
1140  return _IMP_bff.VectorInt_front(self)
1141 
1142  def back(self):
1143  r"""back(VectorInt self) -> std::vector< int >::value_type const &"""
1144  return _IMP_bff.VectorInt_back(self)
1145 
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)
1149 
1150  def resize(self, *args):
1151  r"""
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)
1154  """
1155  return _IMP_bff.VectorInt_resize(self, *args)
1156 
1157  def insert(self, *args):
1158  r"""
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)
1161  """
1162  return _IMP_bff.VectorInt_insert(self, *args)
1163 
1164  def reserve(self, n):
1165  r"""reserve(VectorInt self, std::vector< int >::size_type n)"""
1166  return _IMP_bff.VectorInt_reserve(self, n)
1167 
1168  def capacity(self):
1169  r"""capacity(VectorInt self) -> std::vector< int >::size_type"""
1170  return _IMP_bff.VectorInt_capacity(self)
1171  __swig_destroy__ = _IMP_bff.delete_VectorInt
1172 
1173 # Register VectorInt in _IMP_bff:
1174 _IMP_bff.VectorInt_swigregister(VectorInt)
1175 class VectorLong(object):
1176  r"""Proxy of C++ std::vector< long > class."""
1177 
1178  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1179  __repr__ = _swig_repr
1180 
1181  def iterator(self):
1182  r"""iterator(VectorLong self) -> IMP_BFF_SwigPyIterator"""
1183  return _IMP_bff.VectorLong_iterator(self)
1184  def __iter__(self):
1185  return self.iterator()
1186 
1187  def __nonzero__(self):
1188  r"""__nonzero__(VectorLong self) -> bool"""
1189  return _IMP_bff.VectorLong___nonzero__(self)
1190 
1191  def __bool__(self):
1192  r"""__bool__(VectorLong self) -> bool"""
1193  return _IMP_bff.VectorLong___bool__(self)
1194 
1195  def __len__(self):
1196  r"""__len__(VectorLong self) -> std::vector< long >::size_type"""
1197  return _IMP_bff.VectorLong___len__(self)
1198 
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)
1202 
1203  def __setslice__(self, *args):
1204  r"""
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)
1207  """
1208  return _IMP_bff.VectorLong___setslice__(self, *args)
1209 
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)
1213 
1214  def __delitem__(self, *args):
1215  r"""
1216  __delitem__(VectorLong self, std::vector< long >::difference_type i)
1217  __delitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1218  """
1219  return _IMP_bff.VectorLong___delitem__(self, *args)
1220 
1221  def __getitem__(self, *args):
1222  r"""
1223  __getitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice) -> VectorLong
1224  __getitem__(VectorLong self, std::vector< long >::difference_type i) -> std::vector< long >::value_type const &
1225  """
1226  return _IMP_bff.VectorLong___getitem__(self, *args)
1227 
1228  def __setitem__(self, *args):
1229  r"""
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)
1233  """
1234  return _IMP_bff.VectorLong___setitem__(self, *args)
1235 
1236  def pop(self):
1237  r"""pop(VectorLong self) -> std::vector< long >::value_type"""
1238  return _IMP_bff.VectorLong_pop(self)
1239 
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)
1243 
1244  def empty(self):
1245  r"""empty(VectorLong self) -> bool"""
1246  return _IMP_bff.VectorLong_empty(self)
1247 
1248  def size(self):
1249  r"""size(VectorLong self) -> std::vector< long >::size_type"""
1250  return _IMP_bff.VectorLong_size(self)
1251 
1252  def swap(self, v):
1253  r"""swap(VectorLong self, VectorLong v)"""
1254  return _IMP_bff.VectorLong_swap(self, v)
1255 
1256  def begin(self):
1257  r"""begin(VectorLong self) -> std::vector< long >::iterator"""
1258  return _IMP_bff.VectorLong_begin(self)
1259 
1260  def end(self):
1261  r"""end(VectorLong self) -> std::vector< long >::iterator"""
1262  return _IMP_bff.VectorLong_end(self)
1263 
1264  def rbegin(self):
1265  r"""rbegin(VectorLong self) -> std::vector< long >::reverse_iterator"""
1266  return _IMP_bff.VectorLong_rbegin(self)
1267 
1268  def rend(self):
1269  r"""rend(VectorLong self) -> std::vector< long >::reverse_iterator"""
1270  return _IMP_bff.VectorLong_rend(self)
1271 
1272  def clear(self):
1273  r"""clear(VectorLong self)"""
1274  return _IMP_bff.VectorLong_clear(self)
1275 
1276  def get_allocator(self):
1277  r"""get_allocator(VectorLong self) -> std::vector< long >::allocator_type"""
1278  return _IMP_bff.VectorLong_get_allocator(self)
1279 
1280  def pop_back(self):
1281  r"""pop_back(VectorLong self)"""
1282  return _IMP_bff.VectorLong_pop_back(self)
1283 
1284  def erase(self, *args):
1285  r"""
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
1288  """
1289  return _IMP_bff.VectorLong_erase(self, *args)
1290 
1291  def __init__(self, *args):
1292  r"""
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
1297  """
1298  _IMP_bff.VectorLong_swiginit(self, _IMP_bff.new_VectorLong(*args))
1299 
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)
1303 
1304  def front(self):
1305  r"""front(VectorLong self) -> std::vector< long >::value_type const &"""
1306  return _IMP_bff.VectorLong_front(self)
1307 
1308  def back(self):
1309  r"""back(VectorLong self) -> std::vector< long >::value_type const &"""
1310  return _IMP_bff.VectorLong_back(self)
1311 
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)
1315 
1316  def resize(self, *args):
1317  r"""
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)
1320  """
1321  return _IMP_bff.VectorLong_resize(self, *args)
1322 
1323  def insert(self, *args):
1324  r"""
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)
1327  """
1328  return _IMP_bff.VectorLong_insert(self, *args)
1329 
1330  def reserve(self, n):
1331  r"""reserve(VectorLong self, std::vector< long >::size_type n)"""
1332  return _IMP_bff.VectorLong_reserve(self, n)
1333 
1334  def capacity(self):
1335  r"""capacity(VectorLong self) -> std::vector< long >::size_type"""
1336  return _IMP_bff.VectorLong_capacity(self)
1337  __swig_destroy__ = _IMP_bff.delete_VectorLong
1338 
1339 # Register VectorLong in _IMP_bff:
1340 _IMP_bff.VectorLong_swigregister(VectorLong)
1341 
1342 PathMapTileEdges=list
1343 _plural_types.append("PathMapTileEdges")
1344 _value_types.append("PathMapTileEdge")
1345 
1346 
1347 _object_types.append("PathMap")
1348 
1349 
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."""
1355 
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
1359 
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))
1363 
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)
1367 
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)
1371 
1372  def get_path_origin(self):
1373  r"""get_path_origin(PathMapHeader self) -> Vector3D"""
1374  return _IMP_bff.PathMapHeader_get_path_origin(self)
1375 
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)
1379 
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)
1383 
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)
1387 
1388  def get_obstacle_threshold(self):
1389  r"""get_obstacle_threshold(PathMapHeader self) -> double"""
1390  return _IMP_bff.PathMapHeader_get_obstacle_threshold(self)
1391 
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)
1395 
1396  def get_neighbor_radius(self):
1397  r"""get_neighbor_radius(PathMapHeader self) -> double"""
1398  return _IMP_bff.PathMapHeader_get_neighbor_radius(self)
1399 
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)
1403 
1404  def get_density_header(self):
1405  r"""get_density_header(PathMapHeader self) -> DensityHeader"""
1406  return _IMP_bff.PathMapHeader_get_density_header(self)
1407 
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)
1411 
1412  def get_origin(self):
1413  r"""get_origin(PathMapHeader self) -> Vector3D"""
1414  return _IMP_bff.PathMapHeader_get_origin(self)
1415 
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)
1419 
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)
1423 
1424  def show(self, *args, **kwargs):
1425  r"""show(PathMapHeader self, _ostream out=std::cout)"""
1426  return _IMP_bff.PathMapHeader_show(self, *args, **kwargs)
1427 
1428 # Register PathMapHeader in _IMP_bff:
1429 _IMP_bff.PathMapHeader_swigregister(PathMapHeader)
1430 class PathMap(IMP.em.SampledDensityMap):
1431  r"""Proxy of C++ IMP::bff::PathMap class."""
1432 
1433  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1434 
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)
1438 
1439  def resize(self, nvox):
1440  r"""resize(PathMap self, unsigned int nvox)"""
1441  return _IMP_bff.PathMap_resize(self, nvox)
1442 
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)
1446 
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)
1450 
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)
1454 
1455  def get_path_map_header(self):
1456  h = _IMP_bff.DensityMap_get_path_map_header(self)
1457  h._owner = self
1458  return h
1459 
1460 
1461 
1462  def get_path_map_header_writable(self):
1463  h = _IMP_bff.PathMap_get_path_map_header_writable(self)
1464  h._owner = self
1465  return h
1466 
1467 
1468 
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)
1472 
1473  def get_tile_values(self, *args, **kwargs):
1474  r"""
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="")
1478  """
1479  return _IMP_bff.PathMap_get_tile_values(self, *args, **kwargs)
1480 
1481  def get_tiles(self):
1482  r"""get_tiles(PathMap self) -> VectorPathMapTile"""
1483  return _IMP_bff.PathMap_get_tiles(self)
1484 
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)
1488 
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)
1492 
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)
1496 
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)
1500 
1501  def get_xyz_density(self):
1502  r"""get_xyz_density(PathMap self)"""
1503  return _IMP_bff.PathMap_get_xyz_density(self)
1504 
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)
1508 
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))
1512 
1513  def __str__(self):
1514  r"""__str__(PathMap self) -> std::string"""
1515  return _IMP_bff.PathMap___str__(self)
1516 
1517  def __repr__(self):
1518  r"""__repr__(PathMap self) -> std::string"""
1519  return _IMP_bff.PathMap___repr__(self)
1520 
1521  @staticmethod
1522  def get_from(o):
1523  return _object_cast_to_PathMap(o)
1524 
1525  __swig_destroy__ = _IMP_bff.delete_PathMap
1526 
1527 # Register PathMap in _IMP_bff:
1528 _IMP_bff.PathMap_swigregister(PathMap)
1529 
1530 def write_path_map(*args, **kwargs):
1531  r"""
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="")
1536  """
1537  return _IMP_bff.write_path_map(*args, **kwargs)
1538 PM_TILE_PENALTY = _IMP_bff.PM_TILE_PENALTY
1539 
1540 PM_TILE_COST = _IMP_bff.PM_TILE_COST
1541 
1542 PM_TILE_DENSITY = _IMP_bff.PM_TILE_DENSITY
1543 
1544 PM_TILE_COST_DENSITY = _IMP_bff.PM_TILE_COST_DENSITY
1545 
1546 PM_TILE_PATH_LENGTH = _IMP_bff.PM_TILE_PATH_LENGTH
1547 
1548 PM_TILE_PATH_LENGTH_DENSITY = _IMP_bff.PM_TILE_PATH_LENGTH_DENSITY
1549 
1550 PM_TILE_FEATURE = _IMP_bff.PM_TILE_FEATURE
1551 
1552 PM_TILE_ACCESSIBLE_DENSITY = _IMP_bff.PM_TILE_ACCESSIBLE_DENSITY
1553 
1554 PM_TILE_ACCESSIBLE_FEATURE = _IMP_bff.PM_TILE_ACCESSIBLE_FEATURE
1555 
1556 class PathMapTile(object):
1557  r"""Proxy of C++ IMP::bff::PathMapTile class."""
1558 
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""")
1562 
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))
1566 
1567  def backtrack_to_path(self):
1568  r"""backtrack_to_path(PathMapTile self) -> VectorLong"""
1569  return _IMP_bff.PathMapTile_backtrack_to_path(self)
1570 
1571  def get_value(self, *args, **kwargs):
1572  r"""
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
1576  """
1577  return _IMP_bff.PathMapTile_get_value(self, *args, **kwargs)
1578 
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
1583 
1584 # Register PathMapTile in _IMP_bff:
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
1594 
1595 class PathMapTileEdge(IMP._Value):
1596  r"""Proxy of C++ IMP::bff::PathMapTileEdge class."""
1597 
1598  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1599 
1600  def get_length(self):
1601  r"""get_length(PathMapTileEdge self) -> float"""
1602  return _IMP_bff.PathMapTileEdge_get_length(self)
1603 
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))
1607 
1608  def show(self, *args, **kwargs):
1609  r"""show(PathMapTileEdge self, _ostream out=std::cout)"""
1610  return _IMP_bff.PathMapTileEdge_show(self, *args, **kwargs)
1611 
1612  def __str__(self):
1613  r"""__str__(PathMapTileEdge self) -> std::string"""
1614  return _IMP_bff.PathMapTileEdge___str__(self)
1615 
1616  def __repr__(self):
1617  r"""__repr__(PathMapTileEdge self) -> std::string"""
1618  return _IMP_bff.PathMapTileEdge___repr__(self)
1619  __swig_destroy__ = _IMP_bff.delete_PathMapTileEdge
1620 
1621 # Register PathMapTileEdge in _IMP_bff:
1622 _IMP_bff.PathMapTileEdge_swigregister(PathMapTileEdge)
1623 class VectorPathMapTile(object):
1624  r"""Proxy of C++ std::vector< IMP::bff::PathMapTile > class."""
1625 
1626  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1627  __repr__ = _swig_repr
1628 
1629  def iterator(self):
1630  r"""iterator(VectorPathMapTile self) -> IMP_BFF_SwigPyIterator"""
1631  return _IMP_bff.VectorPathMapTile_iterator(self)
1632  def __iter__(self):
1633  return self.iterator()
1634 
1635  def __nonzero__(self):
1636  r"""__nonzero__(VectorPathMapTile self) -> bool"""
1637  return _IMP_bff.VectorPathMapTile___nonzero__(self)
1638 
1639  def __bool__(self):
1640  r"""__bool__(VectorPathMapTile self) -> bool"""
1641  return _IMP_bff.VectorPathMapTile___bool__(self)
1642 
1643  def __len__(self):
1644  r"""__len__(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1645  return _IMP_bff.VectorPathMapTile___len__(self)
1646 
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)
1650 
1651  def __setslice__(self, *args):
1652  r"""
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)
1655  """
1656  return _IMP_bff.VectorPathMapTile___setslice__(self, *args)
1657 
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)
1661 
1662  def __delitem__(self, *args):
1663  r"""
1664  __delitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i)
1665  __delitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1666  """
1667  return _IMP_bff.VectorPathMapTile___delitem__(self, *args)
1668 
1669  def __getitem__(self, *args):
1670  r"""
1671  __getitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTile
1672  __getitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i) -> PathMapTile
1673  """
1674  return _IMP_bff.VectorPathMapTile___getitem__(self, *args)
1675 
1676  def __setitem__(self, *args):
1677  r"""
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)
1681  """
1682  return _IMP_bff.VectorPathMapTile___setitem__(self, *args)
1683 
1684  def pop(self):
1685  r"""pop(VectorPathMapTile self) -> PathMapTile"""
1686  return _IMP_bff.VectorPathMapTile_pop(self)
1687 
1688  def append(self, x):
1689  r"""append(VectorPathMapTile self, PathMapTile x)"""
1690  return _IMP_bff.VectorPathMapTile_append(self, x)
1691 
1692  def empty(self):
1693  r"""empty(VectorPathMapTile self) -> bool"""
1694  return _IMP_bff.VectorPathMapTile_empty(self)
1695 
1696  def size(self):
1697  r"""size(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1698  return _IMP_bff.VectorPathMapTile_size(self)
1699 
1700  def swap(self, v):
1701  r"""swap(VectorPathMapTile self, VectorPathMapTile v)"""
1702  return _IMP_bff.VectorPathMapTile_swap(self, v)
1703 
1704  def begin(self):
1705  r"""begin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1706  return _IMP_bff.VectorPathMapTile_begin(self)
1707 
1708  def end(self):
1709  r"""end(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1710  return _IMP_bff.VectorPathMapTile_end(self)
1711 
1712  def rbegin(self):
1713  r"""rbegin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1714  return _IMP_bff.VectorPathMapTile_rbegin(self)
1715 
1716  def rend(self):
1717  r"""rend(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1718  return _IMP_bff.VectorPathMapTile_rend(self)
1719 
1720  def clear(self):
1721  r"""clear(VectorPathMapTile self)"""
1722  return _IMP_bff.VectorPathMapTile_clear(self)
1723 
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)
1727 
1728  def pop_back(self):
1729  r"""pop_back(VectorPathMapTile self)"""
1730  return _IMP_bff.VectorPathMapTile_pop_back(self)
1731 
1732  def erase(self, *args):
1733  r"""
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
1736  """
1737  return _IMP_bff.VectorPathMapTile_erase(self, *args)
1738 
1739  def __init__(self, *args):
1740  r"""
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
1745  """
1746  _IMP_bff.VectorPathMapTile_swiginit(self, _IMP_bff.new_VectorPathMapTile(*args))
1747 
1748  def push_back(self, x):
1749  r"""push_back(VectorPathMapTile self, PathMapTile x)"""
1750  return _IMP_bff.VectorPathMapTile_push_back(self, x)
1751 
1752  def front(self):
1753  r"""front(VectorPathMapTile self) -> PathMapTile"""
1754  return _IMP_bff.VectorPathMapTile_front(self)
1755 
1756  def back(self):
1757  r"""back(VectorPathMapTile self) -> PathMapTile"""
1758  return _IMP_bff.VectorPathMapTile_back(self)
1759 
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)
1763 
1764  def resize(self, *args):
1765  r"""
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)
1768  """
1769  return _IMP_bff.VectorPathMapTile_resize(self, *args)
1770 
1771  def insert(self, *args):
1772  r"""
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)
1775  """
1776  return _IMP_bff.VectorPathMapTile_insert(self, *args)
1777 
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)
1781 
1782  def capacity(self):
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
1786 
1787 # Register VectorPathMapTile in _IMP_bff:
1788 _IMP_bff.VectorPathMapTile_swigregister(VectorPathMapTile)
1789 class VectorPathMapTileEdge(object):
1790  r"""Proxy of C++ std::vector< IMP::bff::PathMapTileEdge > class."""
1791 
1792  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1793  __repr__ = _swig_repr
1794 
1795  def iterator(self):
1796  r"""iterator(VectorPathMapTileEdge self) -> IMP_BFF_SwigPyIterator"""
1797  return _IMP_bff.VectorPathMapTileEdge_iterator(self)
1798  def __iter__(self):
1799  return self.iterator()
1800 
1801  def __nonzero__(self):
1802  r"""__nonzero__(VectorPathMapTileEdge self) -> bool"""
1803  return _IMP_bff.VectorPathMapTileEdge___nonzero__(self)
1804 
1805  def __bool__(self):
1806  r"""__bool__(VectorPathMapTileEdge self) -> bool"""
1807  return _IMP_bff.VectorPathMapTileEdge___bool__(self)
1808 
1809  def __len__(self):
1810  r"""__len__(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1811  return _IMP_bff.VectorPathMapTileEdge___len__(self)
1812 
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)
1816 
1817  def __setslice__(self, *args):
1818  r"""
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)
1821  """
1822  return _IMP_bff.VectorPathMapTileEdge___setslice__(self, *args)
1823 
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)
1827 
1828  def __delitem__(self, *args):
1829  r"""
1830  __delitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i)
1831  __delitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1832  """
1833  return _IMP_bff.VectorPathMapTileEdge___delitem__(self, *args)
1834 
1835  def __getitem__(self, *args):
1836  r"""
1837  __getitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTileEdge
1838  __getitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i) -> PathMapTileEdge
1839  """
1840  return _IMP_bff.VectorPathMapTileEdge___getitem__(self, *args)
1841 
1842  def __setitem__(self, *args):
1843  r"""
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)
1847  """
1848  return _IMP_bff.VectorPathMapTileEdge___setitem__(self, *args)
1849 
1850  def pop(self):
1851  r"""pop(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1852  return _IMP_bff.VectorPathMapTileEdge_pop(self)
1853 
1854  def append(self, x):
1855  r"""append(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1856  return _IMP_bff.VectorPathMapTileEdge_append(self, x)
1857 
1858  def empty(self):
1859  r"""empty(VectorPathMapTileEdge self) -> bool"""
1860  return _IMP_bff.VectorPathMapTileEdge_empty(self)
1861 
1862  def size(self):
1863  r"""size(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1864  return _IMP_bff.VectorPathMapTileEdge_size(self)
1865 
1866  def swap(self, v):
1867  r"""swap(VectorPathMapTileEdge self, VectorPathMapTileEdge v)"""
1868  return _IMP_bff.VectorPathMapTileEdge_swap(self, v)
1869 
1870  def begin(self):
1871  r"""begin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1872  return _IMP_bff.VectorPathMapTileEdge_begin(self)
1873 
1874  def end(self):
1875  r"""end(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1876  return _IMP_bff.VectorPathMapTileEdge_end(self)
1877 
1878  def rbegin(self):
1879  r"""rbegin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1880  return _IMP_bff.VectorPathMapTileEdge_rbegin(self)
1881 
1882  def rend(self):
1883  r"""rend(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1884  return _IMP_bff.VectorPathMapTileEdge_rend(self)
1885 
1886  def clear(self):
1887  r"""clear(VectorPathMapTileEdge self)"""
1888  return _IMP_bff.VectorPathMapTileEdge_clear(self)
1889 
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)
1893 
1894  def pop_back(self):
1895  r"""pop_back(VectorPathMapTileEdge self)"""
1896  return _IMP_bff.VectorPathMapTileEdge_pop_back(self)
1897 
1898  def erase(self, *args):
1899  r"""
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
1902  """
1903  return _IMP_bff.VectorPathMapTileEdge_erase(self, *args)
1904 
1905  def __init__(self, *args):
1906  r"""
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
1911  """
1912  _IMP_bff.VectorPathMapTileEdge_swiginit(self, _IMP_bff.new_VectorPathMapTileEdge(*args))
1913 
1914  def push_back(self, x):
1915  r"""push_back(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1916  return _IMP_bff.VectorPathMapTileEdge_push_back(self, x)
1917 
1918  def front(self):
1919  r"""front(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1920  return _IMP_bff.VectorPathMapTileEdge_front(self)
1921 
1922  def back(self):
1923  r"""back(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1924  return _IMP_bff.VectorPathMapTileEdge_back(self)
1925 
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)
1929 
1930  def resize(self, *args):
1931  r"""
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)
1934  """
1935  return _IMP_bff.VectorPathMapTileEdge_resize(self, *args)
1936 
1937  def insert(self, *args):
1938  r"""
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)
1941  """
1942  return _IMP_bff.VectorPathMapTileEdge_insert(self, *args)
1943 
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)
1947 
1948  def capacity(self):
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
1952 
1953 # Register VectorPathMapTileEdge in _IMP_bff:
1954 _IMP_bff.VectorPathMapTileEdge_swigregister(VectorPathMapTileEdge)
1955 
1956 def AVs(l=[]):
1957  return [AV(x) for x in l]
1958 _plural_types.append("AVs")
1959 
1960 
1961 _value_types.append("AV")
1962 
1963 
1964 AVPairDistanceMeasurements=list
1965 _plural_types.append("AVPairDistanceMeasurements")
1966 _value_types.append("AVPairDistanceMeasurement")
1967 
1968 
1969 _object_types.append("AVNetworkRestraint")
1970 
1971 
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."""
1977 
1978  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1979  __repr__ = _swig_repr
1980 
1981  def iterator(self):
1982  r"""iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
1983  return _IMP_bff.MapStringAVPairDistanceMeasurement_iterator(self)
1984  def __iter__(self):
1985  return self.iterator()
1986 
1987  def __nonzero__(self):
1988  r"""__nonzero__(MapStringAVPairDistanceMeasurement self) -> bool"""
1989  return _IMP_bff.MapStringAVPairDistanceMeasurement___nonzero__(self)
1990 
1991  def __bool__(self):
1992  r"""__bool__(MapStringAVPairDistanceMeasurement self) -> bool"""
1993  return _IMP_bff.MapStringAVPairDistanceMeasurement___bool__(self)
1994 
1995  def __len__(self):
1996  r"""__len__(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
1997  return _IMP_bff.MapStringAVPairDistanceMeasurement___len__(self)
1998  def __iter__(self):
1999  return self.key_iterator()
2000  def iterkeys(self):
2001  return self.key_iterator()
2002  def itervalues(self):
2003  return self.value_iterator()
2004  def iteritems(self):
2005  return self.iterator()
2006 
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)
2010 
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)
2014 
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)
2018 
2019  def keys(self):
2020  r"""keys(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2021  return _IMP_bff.MapStringAVPairDistanceMeasurement_keys(self)
2022 
2023  def values(self):
2024  r"""values(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2025  return _IMP_bff.MapStringAVPairDistanceMeasurement_values(self)
2026 
2027  def items(self):
2028  r"""items(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2029  return _IMP_bff.MapStringAVPairDistanceMeasurement_items(self)
2030 
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)
2034 
2035  def key_iterator(self):
2036  r"""key_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2037  return _IMP_bff.MapStringAVPairDistanceMeasurement_key_iterator(self)
2038 
2039  def value_iterator(self):
2040  r"""value_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2041  return _IMP_bff.MapStringAVPairDistanceMeasurement_value_iterator(self)
2042 
2043  def __setitem__(self, *args):
2044  r"""
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)
2047  """
2048  return _IMP_bff.MapStringAVPairDistanceMeasurement___setitem__(self, *args)
2049 
2050  def asdict(self):
2051  r"""asdict(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2052  return _IMP_bff.MapStringAVPairDistanceMeasurement_asdict(self)
2053 
2054  def __init__(self, *args):
2055  r"""
2056  __init__(MapStringAVPairDistanceMeasurement self, std::less< std::string > const & other) -> MapStringAVPairDistanceMeasurement
2057  __init__(MapStringAVPairDistanceMeasurement self) -> MapStringAVPairDistanceMeasurement
2058  __init__(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement other) -> MapStringAVPairDistanceMeasurement
2059  """
2060  _IMP_bff.MapStringAVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_MapStringAVPairDistanceMeasurement(*args))
2061 
2062  def empty(self):
2063  r"""empty(MapStringAVPairDistanceMeasurement self) -> bool"""
2064  return _IMP_bff.MapStringAVPairDistanceMeasurement_empty(self)
2065 
2066  def size(self):
2067  r"""size(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2068  return _IMP_bff.MapStringAVPairDistanceMeasurement_size(self)
2069 
2070  def swap(self, v):
2071  r"""swap(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement v)"""
2072  return _IMP_bff.MapStringAVPairDistanceMeasurement_swap(self, v)
2073 
2074  def begin(self):
2075  r"""begin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2076  return _IMP_bff.MapStringAVPairDistanceMeasurement_begin(self)
2077 
2078  def end(self):
2079  r"""end(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2080  return _IMP_bff.MapStringAVPairDistanceMeasurement_end(self)
2081 
2082  def rbegin(self):
2083  r"""rbegin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2084  return _IMP_bff.MapStringAVPairDistanceMeasurement_rbegin(self)
2085 
2086  def rend(self):
2087  r"""rend(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2088  return _IMP_bff.MapStringAVPairDistanceMeasurement_rend(self)
2089 
2090  def clear(self):
2091  r"""clear(MapStringAVPairDistanceMeasurement self)"""
2092  return _IMP_bff.MapStringAVPairDistanceMeasurement_clear(self)
2093 
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)
2097 
2098  def count(self, x):
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)
2101 
2102  def erase(self, *args):
2103  r"""
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)
2107  """
2108  return _IMP_bff.MapStringAVPairDistanceMeasurement_erase(self, *args)
2109 
2110  def find(self, x):
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)
2113 
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)
2117 
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
2122 
2123 # Register MapStringAVPairDistanceMeasurement in _IMP_bff:
2124 _IMP_bff.MapStringAVPairDistanceMeasurement_swigregister(MapStringAVPairDistanceMeasurement)
2125 DYE_PAIR_DISTANCE_E = _IMP_bff.DYE_PAIR_DISTANCE_E
2126 
2127 DYE_PAIR_DISTANCE_MEAN = _IMP_bff.DYE_PAIR_DISTANCE_MEAN
2128 
2129 DYE_PAIR_DISTANCE_MP = _IMP_bff.DYE_PAIR_DISTANCE_MP
2130 
2131 DYE_PAIR_EFFICIENCY = _IMP_bff.DYE_PAIR_EFFICIENCY
2132 
2133 DYE_PAIR_DISTANCE_DISTRIBUTION = _IMP_bff.DYE_PAIR_DISTANCE_DISTRIBUTION
2134 
2135 DYE_PAIR_XYZ_DISTANCE = _IMP_bff.DYE_PAIR_XYZ_DISTANCE
2136 
2137 class AVPairDistanceMeasurement(IMP._Value):
2138  r"""Proxy of C++ IMP::bff::AVPairDistanceMeasurement class."""
2139 
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""")
2148 
2149  def get_json(self):
2150  r"""get_json(AVPairDistanceMeasurement self) -> std::string"""
2151  return _IMP_bff.AVPairDistanceMeasurement_get_json(self)
2152 
2153  def score_model(self, model):
2154  r"""score_model(AVPairDistanceMeasurement self, double model) -> double"""
2155  return _IMP_bff.AVPairDistanceMeasurement_score_model(self, model)
2156 
2157  def show(self, *args, **kwargs):
2158  r"""show(AVPairDistanceMeasurement self, _ostream out=std::cout)"""
2159  return _IMP_bff.AVPairDistanceMeasurement_show(self, *args, **kwargs)
2160 
2161  def __str__(self):
2162  r"""__str__(AVPairDistanceMeasurement self) -> std::string"""
2163  return _IMP_bff.AVPairDistanceMeasurement___str__(self)
2164 
2165  def __repr__(self):
2166  r"""__repr__(AVPairDistanceMeasurement self) -> std::string"""
2167  return _IMP_bff.AVPairDistanceMeasurement___repr__(self)
2168 
2169  def __init__(self):
2170  r"""__init__(AVPairDistanceMeasurement self) -> AVPairDistanceMeasurement"""
2171  _IMP_bff.AVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_AVPairDistanceMeasurement())
2172  __swig_destroy__ = _IMP_bff.delete_AVPairDistanceMeasurement
2173 
2174 # Register AVPairDistanceMeasurement in _IMP_bff:
2175 _IMP_bff.AVPairDistanceMeasurement_swigregister(AVPairDistanceMeasurement)
2176 class AV(IMP.core.Gaussian):
2177  r"""Proxy of C++ IMP::bff::AV class."""
2178 
2179  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2180 
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)
2184 
2185  def init_path_map(self):
2186  r"""init_path_map(AV self)"""
2187  return _IMP_bff.AV_init_path_map(self)
2188 
2189  @staticmethod
2190  def get_av_key(i):
2191  r"""get_av_key(unsigned int i) -> FloatKey"""
2192  return _IMP_bff.AV_get_av_key(i)
2193 
2194  @staticmethod
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)
2198 
2199  @staticmethod
2200  def get_particle_key(i):
2201  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2202  return _IMP_bff.AV_get_particle_key(i)
2203 
2204  def get_particle_index(self, *args):
2205  r"""
2206  get_particle_index(AV self) -> ParticleIndex
2207  get_particle_index(AV self, unsigned int i) -> ParticleIndex
2208  """
2209  return _IMP_bff.AV_get_particle_index(self, *args)
2210 
2211  def get_particle(self, *args):
2212  r"""
2213  get_particle(AV self) -> Particle
2214  get_particle(AV self, unsigned int i) -> Particle
2215  """
2216  return _IMP_bff.AV_get_particle(self, *args)
2217 
2218  def __init__(self, *args):
2219  r"""
2220  __init__(AV self) -> AV
2221  __init__(AV self, Model m, ParticleIndex id) -> AV
2222  __init__(AV self, _ParticleAdaptor d) -> AV
2223  """
2224  _IMP_bff.AV_swiginit(self, _IMP_bff.new_AV(*args))
2225 
2226  def show(self, *args, **kwargs):
2227  r"""show(AV self, _ostream out=std::cout)"""
2228  return _IMP_bff.AV_show(self, *args, **kwargs)
2229 
2230  @staticmethod
2231  def setup_particle(*args):
2232  r"""
2233  setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_source) -> AV
2234  setup_particle(_ParticleAdaptor pa, ParticleIndex pi_source) -> AV
2235  """
2236  return _IMP_bff.AV_setup_particle(*args)
2237 
2238  def get_linker_length(self):
2239  r"""get_linker_length(AV self) -> IMP::Float"""
2240  return _IMP_bff.AV_get_linker_length(self)
2241 
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)
2245 
2246  def get_radius1(self):
2247  r"""get_radius1(AV self) -> IMP::Float"""
2248  return _IMP_bff.AV_get_radius1(self)
2249 
2250  def set_radius1(self, t):
2251  r"""set_radius1(AV self, IMP::Float t)"""
2252  return _IMP_bff.AV_set_radius1(self, t)
2253 
2254  def get_radius2(self):
2255  r"""get_radius2(AV self) -> IMP::Float"""
2256  return _IMP_bff.AV_get_radius2(self)
2257 
2258  def set_radius2(self, t):
2259  r"""set_radius2(AV self, IMP::Float t)"""
2260  return _IMP_bff.AV_set_radius2(self, t)
2261 
2262  def get_radius3(self):
2263  r"""get_radius3(AV self) -> IMP::Float"""
2264  return _IMP_bff.AV_get_radius3(self)
2265 
2266  def set_radius3(self, t):
2267  r"""set_radius3(AV self, IMP::Float t)"""
2268  return _IMP_bff.AV_set_radius3(self, t)
2269 
2270  def get_linker_width(self):
2271  r"""get_linker_width(AV self) -> IMP::Float"""
2272  return _IMP_bff.AV_get_linker_width(self)
2273 
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)
2277 
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)
2281 
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)
2285 
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)
2289 
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)
2293 
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)
2297 
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)
2301 
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)
2305 
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)
2309 
2310  def get_radii(self):
2311  r"""get_radii(AV self) -> Vector3D"""
2312  return _IMP_bff.AV_get_radii(self)
2313 
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)
2317 
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)
2321 
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)
2325 
2326  def get_derivatives(self):
2327  r"""get_derivatives(AV self) -> Vector3D"""
2328  return _IMP_bff.AV_get_derivatives(self)
2329 
2330  @staticmethod
2331  def get_is_setup(*args):
2332  r"""
2333  get_is_setup(_ParticleAdaptor p) -> bool
2334  get_is_setup(Model m, ParticleIndex pi) -> bool
2335  """
2336  return _IMP_bff.AV_get_is_setup(*args)
2337 
2338  def get_map(self):
2339  r"""get_map(AV self) -> PathMap"""
2340  return _IMP_bff.AV_get_map(self)
2341 
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)
2345 
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)
2349 
2350  def get_source_coordinates(self):
2351  r"""get_source_coordinates(AV self) -> Vector3D"""
2352  return _IMP_bff.AV_get_source_coordinates(self)
2353 
2354  def get_source(self):
2355  r"""get_source(AV self) -> Particle"""
2356  return _IMP_bff.AV_get_source(self)
2357 
2358  def add_attribute(self, *args):
2359  r"""
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)
2372  """
2373  return _IMP_bff.AV_add_attribute(self, *args)
2374 
2375  def get_value(self, *args):
2376  r"""
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
2388  """
2389  return _IMP_bff.AV_get_value(self, *args)
2390 
2391  def set_value(self, *args):
2392  r"""
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)
2404  """
2405  return _IMP_bff.AV_set_value(self, *args)
2406 
2407  def remove_attribute(self, *args):
2408  r"""
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)
2420  """
2421  return _IMP_bff.AV_remove_attribute(self, *args)
2422 
2423  def has_attribute(self, *args):
2424  r"""
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
2436  """
2437  return _IMP_bff.AV_has_attribute(self, *args)
2438 
2439  def get_derivative(self, a0):
2440  r"""get_derivative(AV self, FloatKey a0) -> double"""
2441  return _IMP_bff.AV_get_derivative(self, a0)
2442 
2443  def get_name(self):
2444  r"""get_name(AV self) -> std::string"""
2445  return _IMP_bff.AV_get_name(self)
2446 
2447  def clear_caches(self):
2448  r"""clear_caches(AV self)"""
2449  return _IMP_bff.AV_clear_caches(self)
2450 
2451  def set_name(self, a0):
2452  r"""set_name(AV self, std::string a0)"""
2453  return _IMP_bff.AV_set_name(self, a0)
2454 
2455  def set_check_level(self, a0):
2456  r"""set_check_level(AV self, IMP::CheckLevel a0)"""
2457  return _IMP_bff.AV_set_check_level(self, a0)
2458 
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)
2462 
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)
2466 
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)
2470 
2471  def get_check_level(self):
2472  r"""get_check_level(AV self) -> IMP::CheckLevel"""
2473  return _IMP_bff.AV_get_check_level(self)
2474 
2475  def __eq__(self, *args):
2476  r"""
2477  __eq__(AV self, AV o) -> bool
2478  __eq__(AV self, Particle d) -> bool
2479  """
2480  return _IMP_bff.AV___eq__(self, *args)
2481 
2482  def __ne__(self, *args):
2483  r"""
2484  __ne__(AV self, AV o) -> bool
2485  __ne__(AV self, Particle d) -> bool
2486  """
2487  return _IMP_bff.AV___ne__(self, *args)
2488 
2489  def __le__(self, *args):
2490  r"""
2491  __le__(AV self, AV o) -> bool
2492  __le__(AV self, Particle d) -> bool
2493  """
2494  return _IMP_bff.AV___le__(self, *args)
2495 
2496  def __lt__(self, *args):
2497  r"""
2498  __lt__(AV self, AV o) -> bool
2499  __lt__(AV self, Particle d) -> bool
2500  """
2501  return _IMP_bff.AV___lt__(self, *args)
2502 
2503  def __ge__(self, *args):
2504  r"""
2505  __ge__(AV self, AV o) -> bool
2506  __ge__(AV self, Particle d) -> bool
2507  """
2508  return _IMP_bff.AV___ge__(self, *args)
2509 
2510  def __gt__(self, *args):
2511  r"""
2512  __gt__(AV self, AV o) -> bool
2513  __gt__(AV self, Particle d) -> bool
2514  """
2515  return _IMP_bff.AV___gt__(self, *args)
2516 
2517  def __hash__(self):
2518  r"""__hash__(AV self) -> std::size_t"""
2519  return _IMP_bff.AV___hash__(self)
2520 
2521  def __str__(self):
2522  r"""__str__(AV self) -> std::string"""
2523  return _IMP_bff.AV___str__(self)
2524 
2525  def __repr__(self):
2526  r"""__repr__(AV self) -> std::string"""
2527  return _IMP_bff.AV___repr__(self)
2528 
2529  def _get_as_binary(self):
2530  r"""_get_as_binary(AV self) -> PyObject *"""
2531  return _IMP_bff.AV__get_as_binary(self)
2532 
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)
2536 
2537  def __getstate__(self):
2538  p = self._get_as_binary()
2539  if len(self.__dict__) > 1:
2540  d = self.__dict__.copy()
2541  del d['this']
2542  p = (d, p)
2543  return p
2544 
2545  def __setstate__(self, p):
2546  if not hasattr(self, 'this'):
2547  self.__init__()
2548  if isinstance(p, tuple):
2549  d, p = p
2550  self.__dict__.update(d)
2551  return self._set_from_binary(p)
2552 
2553 
2554  map = property(get_map)
2555 
2556  __swig_destroy__ = _IMP_bff.delete_AV
2557 
2558 # Register AV in _IMP_bff:
2559 _IMP_bff.AV_swigregister(AV)
2560 
2561 def __lshift__(out, n):
2562  r"""__lshift__(_ostream out, AV n) -> _ostream"""
2563  return _IMP_bff.__lshift__(out, n)
2564 
2565 def av_distance(*args, **kwargs):
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)
2568 
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)
2572 
2573 def av_random_distances(av1, av2, n_samples=10000):
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)
2576 
2577 def av_distance_distribution(av1, av2, axis, n_samples=10000):
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)
2580 
2581 def search_labeling_site(*args, **kwargs):
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)
2584 class AVNetworkRestraint(IMP.Restraint):
2585  r"""Proxy of C++ IMP::bff::AVNetworkRestraint class."""
2586 
2587  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2588 
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))
2592 
2593  def get_probability(self):
2594  r"""get_probability(AVNetworkRestraint self) -> double"""
2595  return _IMP_bff.AVNetworkRestraint_get_probability(self)
2596 
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)
2600 
2601  def get_used_distances(self):
2602  r"""get_used_distances(AVNetworkRestraint self) -> MapStringAVPairDistanceMeasurement"""
2603  return _IMP_bff.AVNetworkRestraint_get_used_distances(self)
2604 
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)
2608 
2609  def get_indexes(self):
2610  r"""get_indexes(AVNetworkRestraint self) -> IMP::ParticleIndexes const"""
2611  return _IMP_bff.AVNetworkRestraint_get_indexes(self)
2612 
2613  def do_get_inputs(self):
2614  r"""do_get_inputs(AVNetworkRestraint self) -> IMP::ModelObjectsTemp"""
2615  return _IMP_bff.AVNetworkRestraint_do_get_inputs(self)
2616 
2617  def show(self, out):
2618  r"""show(AVNetworkRestraint self, _ostream out)"""
2619  return _IMP_bff.AVNetworkRestraint_show(self, out)
2620 
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
2625 
2626  def __str__(self):
2627  r"""__str__(AVNetworkRestraint self) -> std::string"""
2628  return _IMP_bff.AVNetworkRestraint___str__(self)
2629 
2630  def __repr__(self):
2631  r"""__repr__(AVNetworkRestraint self) -> std::string"""
2632  return _IMP_bff.AVNetworkRestraint___repr__(self)
2633 
2634  @staticmethod
2635  def get_from(o):
2636  return _object_cast_to_AVNetworkRestraint(o)
2637 
2638 
2639 # Register AVNetworkRestraint in _IMP_bff:
2640 _IMP_bff.AVNetworkRestraint_swigregister(AVNetworkRestraint)
2641 
2642 def decay_rescale(fit, decay, start=0, stop=-1):
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)
2645 
2646 def decay_rescale_w(fit, decay, w_sq, start=0, stop=-1):
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)
2649 
2650 def decay_rescale_w_bg(fit, decay, w_sq, bg=0.0, start=0, stop=-1):
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)
2653 
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)
2657 
2658 def decay_fconv_avx(fit, irf, x, start=0, stop=-1, dt=1.0):
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)
2661 
2662 def decay_fconv_per(fit, irf, x, period, start=0, stop=-1, dt=1.0):
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)
2665 
2666 def decay_fconv_per_avx(fit, irf, x, period, start=0, stop=-1, dt=1.0):
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)
2669 
2670 def decay_fconv_per_cs(fit, irf, x, period, conv_stop=-1, stop=-1, dt=1.0):
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)
2673 
2674 def decay_fconv_ref(fit, irf, x, tauref, start=0, stop=-1, dt=1.0):
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)
2677 
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)
2681 
2682 def decay_shift_lamp(irf, irf_shift, ts):
2683  r"""decay_shift_lamp(double * irf, double * irf_shift, double ts)"""
2684  return _IMP_bff.decay_shift_lamp(irf, irf_shift, ts)
2685 
2686 def mod_p(a, n):
2687  r"""mod_p(int a, int n) -> int"""
2688  return _IMP_bff.mod_p(a, n)
2689 
2690 def decay_add_pile_up_to_model(*args, **kwargs):
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)
2693 
2694 def discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold):
2695  r"""discriminate_small_amplitudes(double * lifetime_spectrum, double amplitude_threshold)"""
2696  return _IMP_bff.discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold)
2697 
2698 def decay_fconv_per_cs_time_axis(model, time_axis, irf, lifetime_spectrum, convolution_start=0, convolution_stop=-1, period=100.0):
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)
2701 
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
2706 
2707 NOISE_POISSON = _IMP_bff.NOISE_POISSON
2708 
2709 class DecayCurve(object):
2710  r"""Proxy of C++ IMP::bff::DecayCurve class."""
2711 
2712  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2713  __repr__ = _swig_repr
2714 
2715  @staticmethod
2716  def shift_array(input, shift):
2717  r"""shift_array(double * input, double shift) -> VectorDouble"""
2718  return _IMP_bff.DecayCurve_shift_array(input, shift)
2719 
2720  def size(self):
2721  r"""size(DecayCurve self) -> size_t"""
2722  return _IMP_bff.DecayCurve_size(self)
2723 
2724  def empty(self):
2725  r"""empty(DecayCurve self) -> bool"""
2726  return _IMP_bff.DecayCurve_empty(self)
2727 
2728  def get_dx(self):
2729  r"""get_dx(DecayCurve self) -> VectorDouble"""
2730  return _IMP_bff.DecayCurve_get_dx(self)
2731 
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)
2735 
2736  def get_average_dx(self):
2737  r"""get_average_dx(DecayCurve self) -> double"""
2738  return _IMP_bff.DecayCurve_get_average_dx(self)
2739 
2740  def get_x(self):
2741  r"""get_x(DecayCurve self) -> VectorDouble"""
2742  return _IMP_bff.DecayCurve_get_x(self)
2743 
2744  def set_x(self, *args):
2745  r"""
2746  set_x(DecayCurve self, VectorDouble v)
2747  set_x(DecayCurve self, double * input)
2748  """
2749  return _IMP_bff.DecayCurve_set_x(self, *args)
2750 
2751  def get_y(self):
2752  r"""get_y(DecayCurve self) -> VectorDouble"""
2753  return _IMP_bff.DecayCurve_get_y(self)
2754 
2755  def set_y(self, *args):
2756  r"""
2757  set_y(DecayCurve self, VectorDouble v)
2758  set_y(DecayCurve self, double * input)
2759  """
2760  return _IMP_bff.DecayCurve_set_y(self, *args)
2761 
2762  def get_ey(self):
2763  r"""get_ey(DecayCurve self) -> VectorDouble"""
2764  return _IMP_bff.DecayCurve_get_ey(self)
2765 
2766  def set_ey(self, *args):
2767  r"""
2768  set_ey(DecayCurve self, VectorDouble v)
2769  set_ey(DecayCurve self, double * input)
2770  """
2771  return _IMP_bff.DecayCurve_set_ey(self, *args)
2772 
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)
2776 
2777  def get_acquisition_time(self):
2778  r"""get_acquisition_time(DecayCurve self) -> double"""
2779  return _IMP_bff.DecayCurve_get_acquisition_time(self)
2780 
2781  def set_shift(self, v):
2782  r"""set_shift(DecayCurve self, double v)"""
2783  return _IMP_bff.DecayCurve_set_shift(self, v)
2784 
2785  def get_shift(self):
2786  r"""get_shift(DecayCurve self) -> double"""
2787  return _IMP_bff.DecayCurve_get_shift(self)
2788 
2789  def get_json(self):
2790  r"""get_json(DecayCurve self) -> std::string"""
2791  return _IMP_bff.DecayCurve_get_json(self)
2792 
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)
2796 
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))
2800 
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)
2804 
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)
2808 
2809  def __iadd__(self, v):
2810  r"""__iadd__(DecayCurve self, double v) -> DecayCurve"""
2811  return _IMP_bff.DecayCurve___iadd__(self, v)
2812 
2813  def __isub__(self, v):
2814  r"""__isub__(DecayCurve self, double v) -> DecayCurve"""
2815  return _IMP_bff.DecayCurve___isub__(self, v)
2816 
2817  def __imul__(self, v):
2818  r"""__imul__(DecayCurve self, double v) -> DecayCurve"""
2819  return _IMP_bff.DecayCurve___imul__(self, v)
2820 
2821  def __itruediv__(self, *args):
2822  return _IMP_bff.DecayCurve___itruediv__(self, *args)
2823  __idiv__ = __itruediv__
2824 
2825 
2826 
2827  def __add__(self, *args):
2828  r"""
2829  __add__(DecayCurve self, double v) -> DecayCurve
2830  __add__(DecayCurve self, DecayCurve other) -> DecayCurve
2831  """
2832  return _IMP_bff.DecayCurve___add__(self, *args)
2833 
2834  def __sub__(self, *args):
2835  r"""
2836  __sub__(DecayCurve self, double v) -> DecayCurve
2837  __sub__(DecayCurve self, DecayCurve other) -> DecayCurve
2838  """
2839  return _IMP_bff.DecayCurve___sub__(self, *args)
2840 
2841  def __mul__(self, *args):
2842  r"""
2843  __mul__(DecayCurve self, double v) -> DecayCurve
2844  __mul__(DecayCurve self, DecayCurve other) -> DecayCurve
2845  """
2846  return _IMP_bff.DecayCurve___mul__(self, *args)
2847 
2848  def __truediv__(self, *args):
2849  return _IMP_bff.DecayCurve___truediv__(self, *args)
2850  __div__ = __truediv__
2851 
2852 
2853 
2854  def __lshift__(self, v):
2855  r"""__lshift__(DecayCurve self, double v) -> DecayCurve"""
2856  return _IMP_bff.DecayCurve___lshift__(self, v)
2857 
2858  acquisition_time = property(get_acquisition_time, set_acquisition_time)
2859 
2860 
2861  shift = property(get_shift, set_shift)
2862 
2863 
2864  x = property(
2865  lambda x: np.array(x.get_x()),
2866  set_x
2867  )
2868 
2869 
2870  y = property(
2871  lambda x: np.array(x.get_y()),
2872  set_y
2873  )
2874 
2875 
2876  ey = property(
2877  lambda x: np.array(x.get_ey()),
2878  set_ey
2879  )
2880 
2881  __swig_destroy__ = _IMP_bff.delete_DecayCurve
2882 
2883 # Register DecayCurve in _IMP_bff:
2884 _IMP_bff.DecayCurve_swigregister(DecayCurve)
2885 
2886 DecayRanges=list
2887 _plural_types.append("DecayRanges")
2888 _value_types.append("DecayRange")
2889 
2890 class DecayRange(IMP._Value):
2891  r"""Proxy of C++ IMP::bff::DecayRange class."""
2892 
2893  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2894 
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)
2898 
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)
2902 
2903  def set_range(self, v):
2904  r"""set_range(DecayRange self, VectorInt v)"""
2905  return _IMP_bff.DecayRange_set_range(self, v)
2906 
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)
2910 
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)
2914 
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
2919 
2920  def show(self, *args, **kwargs):
2921  r"""show(DecayRange self, _ostream out=std::cout)"""
2922  return _IMP_bff.DecayRange_show(self, *args, **kwargs)
2923 
2924  def __str__(self):
2925  r"""__str__(DecayRange self) -> std::string"""
2926  return _IMP_bff.DecayRange___str__(self)
2927 
2928  def __repr__(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""")
2933 
2934 # Register DecayRange in _IMP_bff:
2935 _IMP_bff.DecayRange_swigregister(DecayRange)
2936 
2937 _object_types.append("DecayLifetimeHandler")
2938 
2939 
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)
2943 class DecayLifetimeHandler(IMP.Object):
2944  r"""Proxy of C++ IMP::bff::DecayLifetimeHandler class."""
2945 
2946  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2947 
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)
2951 
2952  def get_lifetime_spectrum(self):
2953  r"""get_lifetime_spectrum(DecayLifetimeHandler self)"""
2954  return _IMP_bff.DecayLifetimeHandler_get_lifetime_spectrum(self)
2955 
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))
2959 
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
2964 
2965  def __str__(self):
2966  r"""__str__(DecayLifetimeHandler self) -> std::string"""
2967  return _IMP_bff.DecayLifetimeHandler___str__(self)
2968 
2969  def __repr__(self):
2970  r"""__repr__(DecayLifetimeHandler self) -> std::string"""
2971  return _IMP_bff.DecayLifetimeHandler___repr__(self)
2972 
2973  @staticmethod
2974  def get_from(o):
2975  return _object_cast_to_DecayLifetimeHandler(o)
2976 
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)>)>""")
2981 
2982 # Register DecayLifetimeHandler in _IMP_bff:
2983 _IMP_bff.DecayLifetimeHandler_swigregister(DecayLifetimeHandler)
2984 
2985 DecayModifiers=list
2986 _plural_types.append("DecayModifiers")
2987 _value_types.append("DecayModifier")
2988 
2989 class DecayModifier(DecayRange):
2990  r"""Proxy of C++ IMP::bff::DecayModifier class."""
2991 
2992  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2993 
2994  def __init__(self, *args, **kwargs):
2995  raise AttributeError("No constructor defined - class is abstract")
2996 
2997  def set_data(self, v):
2998  r"""set_data(DecayModifier self, DecayCurve v)"""
2999  return _IMP_bff.DecayModifier_set_data(self, v)
3000 
3001  def get_data(self):
3002  r"""get_data(DecayModifier self) -> DecayCurve"""
3003  return _IMP_bff.DecayModifier_get_data(self)
3004 
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)
3008 
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)
3012 
3013  def add(self, out):
3014  r"""add(DecayModifier self, DecayCurve out)"""
3015  return _IMP_bff.DecayModifier_add(self, out)
3016  __swig_destroy__ = _IMP_bff.delete_DecayModifier
3017 
3018  def __str__(self):
3019  r"""__str__(DecayModifier self) -> std::string"""
3020  return _IMP_bff.DecayModifier___str__(self)
3021 
3022  def __repr__(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""")
3026 
3027  data = property(get_data, set_data)
3028 
3029 
3030  def __call__(self, *args, **kwargs):
3031  self.add(*args, **kwargs)
3032 
3033 
3034 # Register DecayModifier in _IMP_bff:
3035 _IMP_bff.DecayModifier_swigregister(DecayModifier)
3036 
3037 DecayConvolutions=list
3038 _plural_types.append("DecayConvolutions")
3039 _value_types.append("DecayConvolution")
3040 
3041 class DecayConvolution(DecayModifier):
3042  r"""Proxy of C++ IMP::bff::DecayConvolution class."""
3043 
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
3046 
3047  FAST_TIME = _IMP_bff.DecayConvolution_FAST_TIME
3048 
3049  FAST_PERIODIC = _IMP_bff.DecayConvolution_FAST_PERIODIC
3050 
3051  FAST = _IMP_bff.DecayConvolution_FAST
3052 
3053  FAST_AVX = _IMP_bff.DecayConvolution_FAST_AVX
3054 
3055  FAST_PERIODIC_AVX = _IMP_bff.DecayConvolution_FAST_PERIODIC_AVX
3056 
3057 
3058  @staticmethod
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)
3062 
3063  @staticmethod
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)
3067 
3068  def set_irf(self, v):
3069  r"""set_irf(DecayConvolution self, DecayCurve v)"""
3070  return _IMP_bff.DecayConvolution_set_irf(self, v)
3071 
3072  def get_irf(self):
3073  r"""get_irf(DecayConvolution self) -> DecayCurve"""
3074  return _IMP_bff.DecayConvolution_get_irf(self)
3075 
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)
3079 
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)
3083 
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
3088 
3089  def __str__(self):
3090  r"""__str__(DecayConvolution self) -> std::string"""
3091  return _IMP_bff.DecayConvolution___str__(self)
3092 
3093  def __repr__(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""")
3101 
3102  irf = property(get_irf, set_irf)
3103 
3104 
3105 # Register DecayConvolution in _IMP_bff:
3106 _IMP_bff.DecayConvolution_swigregister(DecayConvolution)
3107 
3108 DecayPatterns=list
3109 _plural_types.append("DecayPatterns")
3110 _value_types.append("DecayPattern")
3111 
3112 class DecayPattern(DecayModifier):
3113  r"""Proxy of C++ IMP::bff::DecayPattern class."""
3114 
3115  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3116 
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))
3120 
3121  def __str__(self):
3122  r"""__str__(DecayPattern self) -> std::string"""
3123  return _IMP_bff.DecayPattern___str__(self)
3124 
3125  def __repr__(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
3132 
3133 # Register DecayPattern in _IMP_bff:
3134 _IMP_bff.DecayPattern_swigregister(DecayPattern)
3135 
3136 DecayPileups=list
3137 _plural_types.append("DecayPileups")
3138 _value_types.append("DecayPileup")
3139 
3140 class DecayPileup(DecayModifier):
3141  r"""Proxy of C++ IMP::bff::DecayPileup class."""
3142 
3143  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3144 
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))
3148 
3149  def __str__(self):
3150  r"""__str__(DecayPileup self) -> std::string"""
3151  return _IMP_bff.DecayPileup___str__(self)
3152 
3153  def __repr__(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
3160 
3161 # Register DecayPileup in _IMP_bff:
3162 _IMP_bff.DecayPileup_swigregister(DecayPileup)
3163 
3164 DecayLinearizations=list
3165 _plural_types.append("DecayLinearizations")
3166 _value_types.append("DecayLinearization")
3167 
3168 class DecayLinearization(DecayModifier):
3169  r"""Proxy of C++ IMP::bff::DecayLinearization class."""
3170 
3171  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3172 
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)
3176 
3177  def get_linearization_table(self):
3178  r"""get_linearization_table(DecayLinearization self) -> DecayCurve"""
3179  return _IMP_bff.DecayLinearization_get_linearization_table(self)
3180 
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))
3184 
3185  def __str__(self):
3186  r"""__str__(DecayLinearization self) -> std::string"""
3187  return _IMP_bff.DecayLinearization___str__(self)
3188 
3189  def __repr__(self):
3190  r"""__repr__(DecayLinearization self) -> std::string"""
3191  return _IMP_bff.DecayLinearization___repr__(self)
3192  __swig_destroy__ = _IMP_bff.delete_DecayLinearization
3193 
3194 # Register DecayLinearization in _IMP_bff:
3195 _IMP_bff.DecayLinearization_swigregister(DecayLinearization)
3196 
3197 DecayScales=list
3198 _plural_types.append("DecayScales")
3199 _value_types.append("DecayScale")
3200 
3201 class DecayScale(DecayModifier):
3202  r"""Proxy of C++ IMP::bff::DecayScale class."""
3203 
3204  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3205 
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)
3209 
3210  def get_blank_outside(self):
3211  r"""get_blank_outside(DecayScale self) -> bool"""
3212  return _IMP_bff.DecayScale_get_blank_outside(self)
3213 
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)
3217 
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))
3221 
3222  def __str__(self):
3223  r"""__str__(DecayScale self) -> std::string"""
3224  return _IMP_bff.DecayScale___str__(self)
3225 
3226  def __repr__(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
3232 
3233 # Register DecayScale in _IMP_bff:
3234 _IMP_bff.DecayScale_swigregister(DecayScale)
3235 
3236 DecayScores=list
3237 _plural_types.append("DecayScores")
3238 _value_types.append("DecayScore")
3239 
3240 class DecayScore(DecayRange):
3241  r"""Proxy of C++ IMP::bff::DecayScore class."""
3242 
3243  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3244 
3245  def get_model(self):
3246  r"""get_model(DecayScore self) -> DecayCurve"""
3247  return _IMP_bff.DecayScore_get_model(self)
3248 
3249  def set_model(self, v):
3250  r"""set_model(DecayScore self, DecayCurve v)"""
3251  return _IMP_bff.DecayScore_set_model(self, v)
3252 
3253  def get_data(self):
3254  r"""get_data(DecayScore self) -> DecayCurve"""
3255  return _IMP_bff.DecayScore_get_data(self)
3256 
3257  def set_data(self, v):
3258  r"""set_data(DecayScore self, DecayCurve v)"""
3259  return _IMP_bff.DecayScore_set_data(self, v)
3260 
3261  def get_weighted_residuals(self):
3262  r"""get_weighted_residuals(DecayScore self) -> VectorDouble"""
3263  return _IMP_bff.DecayScore_get_weighted_residuals(self)
3264 
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)
3268 
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)
3272 
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
3277 
3278  def __str__(self):
3279  r"""__str__(DecayScore self) -> std::string"""
3280  return _IMP_bff.DecayScore___str__(self)
3281 
3282  def __repr__(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""")
3287 
3288  model = property(get_model, set_model)
3289 
3290 
3291  data = property(get_data, set_data)
3292 
3293 
3294  weighted_residuals = property(
3295  lambda x: np.array(x.get_weighted_residuals())
3296  )
3297 
3298 
3299 # Register DecayScore in _IMP_bff:
3300 _IMP_bff.DecayScore_swigregister(DecayScore)
3301 
3302 def get_module_version():
3303  r"""get_module_version() -> std::string const"""
3304  return _IMP_bff.get_module_version()
3305 
3306 def get_example_path(fname):
3307  r"""get_example_path(std::string fname) -> std::string"""
3308  return _IMP_bff.get_example_path(fname)
3309 
3310 def get_data_path(fname):
3311  r"""get_data_path(std::string fname) -> std::string"""
3312  return _IMP_bff.get_data_path(fname)
3313 
3314 from . import _version_check
3315 _version_check.check_version(get_module_version())
3316 __version__ = get_module_version()
3317 
3318 
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.
Definition: exception.h:80
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.
Definition: Object.h:111
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.
Definition: exception.h:72
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:56
int mod_p(int a, int n)
Compute the modulo of a number with respect to a positive integer.
Definition: DecayRoutines.h:48