IMP logo
IMP Reference Guide  develop.d97d4ead1f,2024/11/21
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-2024 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 IMPBFF_SHOW_WARNINGS = _IMP_bff.IMPBFF_SHOW_WARNINGS
470 
471 
472 import numpy as np
473 
474 SHARED_PTR_DISOWN = _IMP_bff.SHARED_PTR_DISOWN
475 
476 class PairFloatFloat(object):
477  r"""Proxy of C++ std::pair< float,float > class."""
478 
479  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
480  __repr__ = _swig_repr
481 
482  def __init__(self, *args):
483  r"""
484  __init__(PairFloatFloat self) -> PairFloatFloat
485  __init__(PairFloatFloat self, float first, float second) -> PairFloatFloat
486  __init__(PairFloatFloat self, PairFloatFloat other) -> PairFloatFloat
487  """
488  _IMP_bff.PairFloatFloat_swiginit(self, _IMP_bff.new_PairFloatFloat(*args))
489  first = property(_IMP_bff.PairFloatFloat_first_get, _IMP_bff.PairFloatFloat_first_set, doc=r"""first : float""")
490  second = property(_IMP_bff.PairFloatFloat_second_get, _IMP_bff.PairFloatFloat_second_set, doc=r"""second : float""")
491  def __len__(self):
492  return 2
493  def __repr__(self):
494  return str((self.first, self.second))
495  def __getitem__(self, index):
496  if not (index % 2):
497  return self.first
498  else:
499  return self.second
500  def __setitem__(self, index, val):
501  if not (index % 2):
502  self.first = val
503  else:
504  self.second = val
505  __swig_destroy__ = _IMP_bff.delete_PairFloatFloat
506 
507 # Register PairFloatFloat in _IMP_bff:
508 _IMP_bff.PairFloatFloat_swigregister(PairFloatFloat)
509 class VectorString(object):
510  r"""Proxy of C++ std::vector< std::string > class."""
511 
512  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
513  __repr__ = _swig_repr
514 
515  def iterator(self):
516  r"""iterator(VectorString self) -> IMP_BFF_SwigPyIterator"""
517  return _IMP_bff.VectorString_iterator(self)
518  def __iter__(self):
519  return self.iterator()
520 
521  def __nonzero__(self):
522  r"""__nonzero__(VectorString self) -> bool"""
523  return _IMP_bff.VectorString___nonzero__(self)
524 
525  def __bool__(self):
526  r"""__bool__(VectorString self) -> bool"""
527  return _IMP_bff.VectorString___bool__(self)
528 
529  def __len__(self):
530  r"""__len__(VectorString self) -> std::vector< std::string >::size_type"""
531  return _IMP_bff.VectorString___len__(self)
532 
533  def __getslice__(self, i, j):
534  r"""__getslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j) -> VectorString"""
535  return _IMP_bff.VectorString___getslice__(self, i, j)
536 
537  def __setslice__(self, *args):
538  r"""
539  __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)
540  __setslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j, VectorString v)
541  """
542  return _IMP_bff.VectorString___setslice__(self, *args)
543 
544  def __delslice__(self, i, j):
545  r"""__delslice__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::difference_type j)"""
546  return _IMP_bff.VectorString___delslice__(self, i, j)
547 
548  def __delitem__(self, *args):
549  r"""
550  __delitem__(VectorString self, std::vector< std::string >::difference_type i)
551  __delitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
552  """
553  return _IMP_bff.VectorString___delitem__(self, *args)
554 
555  def __getitem__(self, *args):
556  r"""
557  __getitem__(VectorString self, SWIGPY_SLICEOBJECT * slice) -> VectorString
558  __getitem__(VectorString self, std::vector< std::string >::difference_type i) -> std::vector< std::string >::value_type const &
559  """
560  return _IMP_bff.VectorString___getitem__(self, *args)
561 
562  def __setitem__(self, *args):
563  r"""
564  __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice, VectorString v)
565  __setitem__(VectorString self, SWIGPY_SLICEOBJECT * slice)
566  __setitem__(VectorString self, std::vector< std::string >::difference_type i, std::vector< std::string >::value_type const & x)
567  """
568  return _IMP_bff.VectorString___setitem__(self, *args)
569 
570  def pop(self):
571  r"""pop(VectorString self) -> std::vector< std::string >::value_type"""
572  return _IMP_bff.VectorString_pop(self)
573 
574  def append(self, x):
575  r"""append(VectorString self, std::vector< std::string >::value_type const & x)"""
576  return _IMP_bff.VectorString_append(self, x)
577 
578  def empty(self):
579  r"""empty(VectorString self) -> bool"""
580  return _IMP_bff.VectorString_empty(self)
581 
582  def size(self):
583  r"""size(VectorString self) -> std::vector< std::string >::size_type"""
584  return _IMP_bff.VectorString_size(self)
585 
586  def swap(self, v):
587  r"""swap(VectorString self, VectorString v)"""
588  return _IMP_bff.VectorString_swap(self, v)
589 
590  def begin(self):
591  r"""begin(VectorString self) -> std::vector< std::string >::iterator"""
592  return _IMP_bff.VectorString_begin(self)
593 
594  def end(self):
595  r"""end(VectorString self) -> std::vector< std::string >::iterator"""
596  return _IMP_bff.VectorString_end(self)
597 
598  def rbegin(self):
599  r"""rbegin(VectorString self) -> std::vector< std::string >::reverse_iterator"""
600  return _IMP_bff.VectorString_rbegin(self)
601 
602  def rend(self):
603  r"""rend(VectorString self) -> std::vector< std::string >::reverse_iterator"""
604  return _IMP_bff.VectorString_rend(self)
605 
606  def clear(self):
607  r"""clear(VectorString self)"""
608  return _IMP_bff.VectorString_clear(self)
609 
610  def get_allocator(self):
611  r"""get_allocator(VectorString self) -> std::vector< std::string >::allocator_type"""
612  return _IMP_bff.VectorString_get_allocator(self)
613 
614  def pop_back(self):
615  r"""pop_back(VectorString self)"""
616  return _IMP_bff.VectorString_pop_back(self)
617 
618  def erase(self, *args):
619  r"""
620  erase(VectorString self, std::vector< std::string >::iterator pos) -> std::vector< std::string >::iterator
621  erase(VectorString self, std::vector< std::string >::iterator first, std::vector< std::string >::iterator last) -> std::vector< std::string >::iterator
622  """
623  return _IMP_bff.VectorString_erase(self, *args)
624 
625  def __init__(self, *args):
626  r"""
627  __init__(VectorString self) -> VectorString
628  __init__(VectorString self, VectorString other) -> VectorString
629  __init__(VectorString self, std::vector< std::string >::size_type size) -> VectorString
630  __init__(VectorString self, std::vector< std::string >::size_type size, std::vector< std::string >::value_type const & value) -> VectorString
631  """
632  _IMP_bff.VectorString_swiginit(self, _IMP_bff.new_VectorString(*args))
633 
634  def push_back(self, x):
635  r"""push_back(VectorString self, std::vector< std::string >::value_type const & x)"""
636  return _IMP_bff.VectorString_push_back(self, x)
637 
638  def front(self):
639  r"""front(VectorString self) -> std::vector< std::string >::value_type const &"""
640  return _IMP_bff.VectorString_front(self)
641 
642  def back(self):
643  r"""back(VectorString self) -> std::vector< std::string >::value_type const &"""
644  return _IMP_bff.VectorString_back(self)
645 
646  def assign(self, n, x):
647  r"""assign(VectorString self, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)"""
648  return _IMP_bff.VectorString_assign(self, n, x)
649 
650  def resize(self, *args):
651  r"""
652  resize(VectorString self, std::vector< std::string >::size_type new_size)
653  resize(VectorString self, std::vector< std::string >::size_type new_size, std::vector< std::string >::value_type const & x)
654  """
655  return _IMP_bff.VectorString_resize(self, *args)
656 
657  def insert(self, *args):
658  r"""
659  insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::value_type const & x) -> std::vector< std::string >::iterator
660  insert(VectorString self, std::vector< std::string >::iterator pos, std::vector< std::string >::size_type n, std::vector< std::string >::value_type const & x)
661  """
662  return _IMP_bff.VectorString_insert(self, *args)
663 
664  def reserve(self, n):
665  r"""reserve(VectorString self, std::vector< std::string >::size_type n)"""
666  return _IMP_bff.VectorString_reserve(self, n)
667 
668  def capacity(self):
669  r"""capacity(VectorString self) -> std::vector< std::string >::size_type"""
670  return _IMP_bff.VectorString_capacity(self)
671  __swig_destroy__ = _IMP_bff.delete_VectorString
672 
673 # Register VectorString in _IMP_bff:
674 _IMP_bff.VectorString_swigregister(VectorString)
675 class VectorDouble(object):
676  r"""Proxy of C++ std::vector< double > class."""
677 
678  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
679  __repr__ = _swig_repr
680 
681  def iterator(self):
682  r"""iterator(VectorDouble self) -> IMP_BFF_SwigPyIterator"""
683  return _IMP_bff.VectorDouble_iterator(self)
684  def __iter__(self):
685  return self.iterator()
686 
687  def __nonzero__(self):
688  r"""__nonzero__(VectorDouble self) -> bool"""
689  return _IMP_bff.VectorDouble___nonzero__(self)
690 
691  def __bool__(self):
692  r"""__bool__(VectorDouble self) -> bool"""
693  return _IMP_bff.VectorDouble___bool__(self)
694 
695  def __len__(self):
696  r"""__len__(VectorDouble self) -> std::vector< double >::size_type"""
697  return _IMP_bff.VectorDouble___len__(self)
698 
699  def __getslice__(self, i, j):
700  r"""__getslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> VectorDouble"""
701  return _IMP_bff.VectorDouble___getslice__(self, i, j)
702 
703  def __setslice__(self, *args):
704  r"""
705  __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
706  __setslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j, VectorDouble v)
707  """
708  return _IMP_bff.VectorDouble___setslice__(self, *args)
709 
710  def __delslice__(self, i, j):
711  r"""__delslice__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
712  return _IMP_bff.VectorDouble___delslice__(self, i, j)
713 
714  def __delitem__(self, *args):
715  r"""
716  __delitem__(VectorDouble self, std::vector< double >::difference_type i)
717  __delitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
718  """
719  return _IMP_bff.VectorDouble___delitem__(self, *args)
720 
721  def __getitem__(self, *args):
722  r"""
723  __getitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice) -> VectorDouble
724  __getitem__(VectorDouble self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
725  """
726  return _IMP_bff.VectorDouble___getitem__(self, *args)
727 
728  def __setitem__(self, *args):
729  r"""
730  __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice, VectorDouble v)
731  __setitem__(VectorDouble self, SWIGPY_SLICEOBJECT * slice)
732  __setitem__(VectorDouble self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
733  """
734  return _IMP_bff.VectorDouble___setitem__(self, *args)
735 
736  def pop(self):
737  r"""pop(VectorDouble self) -> std::vector< double >::value_type"""
738  return _IMP_bff.VectorDouble_pop(self)
739 
740  def append(self, x):
741  r"""append(VectorDouble self, std::vector< double >::value_type const & x)"""
742  return _IMP_bff.VectorDouble_append(self, x)
743 
744  def empty(self):
745  r"""empty(VectorDouble self) -> bool"""
746  return _IMP_bff.VectorDouble_empty(self)
747 
748  def size(self):
749  r"""size(VectorDouble self) -> std::vector< double >::size_type"""
750  return _IMP_bff.VectorDouble_size(self)
751 
752  def swap(self, v):
753  r"""swap(VectorDouble self, VectorDouble v)"""
754  return _IMP_bff.VectorDouble_swap(self, v)
755 
756  def begin(self):
757  r"""begin(VectorDouble self) -> std::vector< double >::iterator"""
758  return _IMP_bff.VectorDouble_begin(self)
759 
760  def end(self):
761  r"""end(VectorDouble self) -> std::vector< double >::iterator"""
762  return _IMP_bff.VectorDouble_end(self)
763 
764  def rbegin(self):
765  r"""rbegin(VectorDouble self) -> std::vector< double >::reverse_iterator"""
766  return _IMP_bff.VectorDouble_rbegin(self)
767 
768  def rend(self):
769  r"""rend(VectorDouble self) -> std::vector< double >::reverse_iterator"""
770  return _IMP_bff.VectorDouble_rend(self)
771 
772  def clear(self):
773  r"""clear(VectorDouble self)"""
774  return _IMP_bff.VectorDouble_clear(self)
775 
776  def get_allocator(self):
777  r"""get_allocator(VectorDouble self) -> std::vector< double >::allocator_type"""
778  return _IMP_bff.VectorDouble_get_allocator(self)
779 
780  def pop_back(self):
781  r"""pop_back(VectorDouble self)"""
782  return _IMP_bff.VectorDouble_pop_back(self)
783 
784  def erase(self, *args):
785  r"""
786  erase(VectorDouble self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
787  erase(VectorDouble self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
788  """
789  return _IMP_bff.VectorDouble_erase(self, *args)
790 
791  def __init__(self, *args):
792  r"""
793  __init__(VectorDouble self) -> VectorDouble
794  __init__(VectorDouble self, VectorDouble other) -> VectorDouble
795  __init__(VectorDouble self, std::vector< double >::size_type size) -> VectorDouble
796  __init__(VectorDouble self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> VectorDouble
797  """
798  _IMP_bff.VectorDouble_swiginit(self, _IMP_bff.new_VectorDouble(*args))
799 
800  def push_back(self, x):
801  r"""push_back(VectorDouble self, std::vector< double >::value_type const & x)"""
802  return _IMP_bff.VectorDouble_push_back(self, x)
803 
804  def front(self):
805  r"""front(VectorDouble self) -> std::vector< double >::value_type const &"""
806  return _IMP_bff.VectorDouble_front(self)
807 
808  def back(self):
809  r"""back(VectorDouble self) -> std::vector< double >::value_type const &"""
810  return _IMP_bff.VectorDouble_back(self)
811 
812  def assign(self, n, x):
813  r"""assign(VectorDouble self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
814  return _IMP_bff.VectorDouble_assign(self, n, x)
815 
816  def resize(self, *args):
817  r"""
818  resize(VectorDouble self, std::vector< double >::size_type new_size)
819  resize(VectorDouble self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
820  """
821  return _IMP_bff.VectorDouble_resize(self, *args)
822 
823  def insert(self, *args):
824  r"""
825  insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
826  insert(VectorDouble self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
827  """
828  return _IMP_bff.VectorDouble_insert(self, *args)
829 
830  def reserve(self, n):
831  r"""reserve(VectorDouble self, std::vector< double >::size_type n)"""
832  return _IMP_bff.VectorDouble_reserve(self, n)
833 
834  def capacity(self):
835  r"""capacity(VectorDouble self) -> std::vector< double >::size_type"""
836  return _IMP_bff.VectorDouble_capacity(self)
837  __swig_destroy__ = _IMP_bff.delete_VectorDouble
838 
839 # Register VectorDouble in _IMP_bff:
840 _IMP_bff.VectorDouble_swigregister(VectorDouble)
841 class VectorFloat(object):
842  r"""Proxy of C++ std::vector< float > class."""
843 
844  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
845  __repr__ = _swig_repr
846 
847  def iterator(self):
848  r"""iterator(VectorFloat self) -> IMP_BFF_SwigPyIterator"""
849  return _IMP_bff.VectorFloat_iterator(self)
850  def __iter__(self):
851  return self.iterator()
852 
853  def __nonzero__(self):
854  r"""__nonzero__(VectorFloat self) -> bool"""
855  return _IMP_bff.VectorFloat___nonzero__(self)
856 
857  def __bool__(self):
858  r"""__bool__(VectorFloat self) -> bool"""
859  return _IMP_bff.VectorFloat___bool__(self)
860 
861  def __len__(self):
862  r"""__len__(VectorFloat self) -> std::vector< float >::size_type"""
863  return _IMP_bff.VectorFloat___len__(self)
864 
865  def __getslice__(self, i, j):
866  r"""__getslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j) -> VectorFloat"""
867  return _IMP_bff.VectorFloat___getslice__(self, i, j)
868 
869  def __setslice__(self, *args):
870  r"""
871  __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)
872  __setslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j, VectorFloat v)
873  """
874  return _IMP_bff.VectorFloat___setslice__(self, *args)
875 
876  def __delslice__(self, i, j):
877  r"""__delslice__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::difference_type j)"""
878  return _IMP_bff.VectorFloat___delslice__(self, i, j)
879 
880  def __delitem__(self, *args):
881  r"""
882  __delitem__(VectorFloat self, std::vector< float >::difference_type i)
883  __delitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
884  """
885  return _IMP_bff.VectorFloat___delitem__(self, *args)
886 
887  def __getitem__(self, *args):
888  r"""
889  __getitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice) -> VectorFloat
890  __getitem__(VectorFloat self, std::vector< float >::difference_type i) -> std::vector< float >::value_type const &
891  """
892  return _IMP_bff.VectorFloat___getitem__(self, *args)
893 
894  def __setitem__(self, *args):
895  r"""
896  __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice, VectorFloat v)
897  __setitem__(VectorFloat self, SWIGPY_SLICEOBJECT * slice)
898  __setitem__(VectorFloat self, std::vector< float >::difference_type i, std::vector< float >::value_type const & x)
899  """
900  return _IMP_bff.VectorFloat___setitem__(self, *args)
901 
902  def pop(self):
903  r"""pop(VectorFloat self) -> std::vector< float >::value_type"""
904  return _IMP_bff.VectorFloat_pop(self)
905 
906  def append(self, x):
907  r"""append(VectorFloat self, std::vector< float >::value_type const & x)"""
908  return _IMP_bff.VectorFloat_append(self, x)
909 
910  def empty(self):
911  r"""empty(VectorFloat self) -> bool"""
912  return _IMP_bff.VectorFloat_empty(self)
913 
914  def size(self):
915  r"""size(VectorFloat self) -> std::vector< float >::size_type"""
916  return _IMP_bff.VectorFloat_size(self)
917 
918  def swap(self, v):
919  r"""swap(VectorFloat self, VectorFloat v)"""
920  return _IMP_bff.VectorFloat_swap(self, v)
921 
922  def begin(self):
923  r"""begin(VectorFloat self) -> std::vector< float >::iterator"""
924  return _IMP_bff.VectorFloat_begin(self)
925 
926  def end(self):
927  r"""end(VectorFloat self) -> std::vector< float >::iterator"""
928  return _IMP_bff.VectorFloat_end(self)
929 
930  def rbegin(self):
931  r"""rbegin(VectorFloat self) -> std::vector< float >::reverse_iterator"""
932  return _IMP_bff.VectorFloat_rbegin(self)
933 
934  def rend(self):
935  r"""rend(VectorFloat self) -> std::vector< float >::reverse_iterator"""
936  return _IMP_bff.VectorFloat_rend(self)
937 
938  def clear(self):
939  r"""clear(VectorFloat self)"""
940  return _IMP_bff.VectorFloat_clear(self)
941 
942  def get_allocator(self):
943  r"""get_allocator(VectorFloat self) -> std::vector< float >::allocator_type"""
944  return _IMP_bff.VectorFloat_get_allocator(self)
945 
946  def pop_back(self):
947  r"""pop_back(VectorFloat self)"""
948  return _IMP_bff.VectorFloat_pop_back(self)
949 
950  def erase(self, *args):
951  r"""
952  erase(VectorFloat self, std::vector< float >::iterator pos) -> std::vector< float >::iterator
953  erase(VectorFloat self, std::vector< float >::iterator first, std::vector< float >::iterator last) -> std::vector< float >::iterator
954  """
955  return _IMP_bff.VectorFloat_erase(self, *args)
956 
957  def __init__(self, *args):
958  r"""
959  __init__(VectorFloat self) -> VectorFloat
960  __init__(VectorFloat self, VectorFloat other) -> VectorFloat
961  __init__(VectorFloat self, std::vector< float >::size_type size) -> VectorFloat
962  __init__(VectorFloat self, std::vector< float >::size_type size, std::vector< float >::value_type const & value) -> VectorFloat
963  """
964  _IMP_bff.VectorFloat_swiginit(self, _IMP_bff.new_VectorFloat(*args))
965 
966  def push_back(self, x):
967  r"""push_back(VectorFloat self, std::vector< float >::value_type const & x)"""
968  return _IMP_bff.VectorFloat_push_back(self, x)
969 
970  def front(self):
971  r"""front(VectorFloat self) -> std::vector< float >::value_type const &"""
972  return _IMP_bff.VectorFloat_front(self)
973 
974  def back(self):
975  r"""back(VectorFloat self) -> std::vector< float >::value_type const &"""
976  return _IMP_bff.VectorFloat_back(self)
977 
978  def assign(self, n, x):
979  r"""assign(VectorFloat self, std::vector< float >::size_type n, std::vector< float >::value_type const & x)"""
980  return _IMP_bff.VectorFloat_assign(self, n, x)
981 
982  def resize(self, *args):
983  r"""
984  resize(VectorFloat self, std::vector< float >::size_type new_size)
985  resize(VectorFloat self, std::vector< float >::size_type new_size, std::vector< float >::value_type const & x)
986  """
987  return _IMP_bff.VectorFloat_resize(self, *args)
988 
989  def insert(self, *args):
990  r"""
991  insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::value_type const & x) -> std::vector< float >::iterator
992  insert(VectorFloat self, std::vector< float >::iterator pos, std::vector< float >::size_type n, std::vector< float >::value_type const & x)
993  """
994  return _IMP_bff.VectorFloat_insert(self, *args)
995 
996  def reserve(self, n):
997  r"""reserve(VectorFloat self, std::vector< float >::size_type n)"""
998  return _IMP_bff.VectorFloat_reserve(self, n)
999 
1000  def capacity(self):
1001  r"""capacity(VectorFloat self) -> std::vector< float >::size_type"""
1002  return _IMP_bff.VectorFloat_capacity(self)
1003  __swig_destroy__ = _IMP_bff.delete_VectorFloat
1004 
1005 # Register VectorFloat in _IMP_bff:
1006 _IMP_bff.VectorFloat_swigregister(VectorFloat)
1007 class VectorInt(object):
1008  r"""Proxy of C++ std::vector< int > class."""
1009 
1010  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1011  __repr__ = _swig_repr
1012 
1013  def iterator(self):
1014  r"""iterator(VectorInt self) -> IMP_BFF_SwigPyIterator"""
1015  return _IMP_bff.VectorInt_iterator(self)
1016  def __iter__(self):
1017  return self.iterator()
1018 
1019  def __nonzero__(self):
1020  r"""__nonzero__(VectorInt self) -> bool"""
1021  return _IMP_bff.VectorInt___nonzero__(self)
1022 
1023  def __bool__(self):
1024  r"""__bool__(VectorInt self) -> bool"""
1025  return _IMP_bff.VectorInt___bool__(self)
1026 
1027  def __len__(self):
1028  r"""__len__(VectorInt self) -> std::vector< int >::size_type"""
1029  return _IMP_bff.VectorInt___len__(self)
1030 
1031  def __getslice__(self, i, j):
1032  r"""__getslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> VectorInt"""
1033  return _IMP_bff.VectorInt___getslice__(self, i, j)
1034 
1035  def __setslice__(self, *args):
1036  r"""
1037  __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
1038  __setslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, VectorInt v)
1039  """
1040  return _IMP_bff.VectorInt___setslice__(self, *args)
1041 
1042  def __delslice__(self, i, j):
1043  r"""__delslice__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
1044  return _IMP_bff.VectorInt___delslice__(self, i, j)
1045 
1046  def __delitem__(self, *args):
1047  r"""
1048  __delitem__(VectorInt self, std::vector< int >::difference_type i)
1049  __delitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1050  """
1051  return _IMP_bff.VectorInt___delitem__(self, *args)
1052 
1053  def __getitem__(self, *args):
1054  r"""
1055  __getitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice) -> VectorInt
1056  __getitem__(VectorInt self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
1057  """
1058  return _IMP_bff.VectorInt___getitem__(self, *args)
1059 
1060  def __setitem__(self, *args):
1061  r"""
1062  __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice, VectorInt v)
1063  __setitem__(VectorInt self, SWIGPY_SLICEOBJECT * slice)
1064  __setitem__(VectorInt self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
1065  """
1066  return _IMP_bff.VectorInt___setitem__(self, *args)
1067 
1068  def pop(self):
1069  r"""pop(VectorInt self) -> std::vector< int >::value_type"""
1070  return _IMP_bff.VectorInt_pop(self)
1071 
1072  def append(self, x):
1073  r"""append(VectorInt self, std::vector< int >::value_type const & x)"""
1074  return _IMP_bff.VectorInt_append(self, x)
1075 
1076  def empty(self):
1077  r"""empty(VectorInt self) -> bool"""
1078  return _IMP_bff.VectorInt_empty(self)
1079 
1080  def size(self):
1081  r"""size(VectorInt self) -> std::vector< int >::size_type"""
1082  return _IMP_bff.VectorInt_size(self)
1083 
1084  def swap(self, v):
1085  r"""swap(VectorInt self, VectorInt v)"""
1086  return _IMP_bff.VectorInt_swap(self, v)
1087 
1088  def begin(self):
1089  r"""begin(VectorInt self) -> std::vector< int >::iterator"""
1090  return _IMP_bff.VectorInt_begin(self)
1091 
1092  def end(self):
1093  r"""end(VectorInt self) -> std::vector< int >::iterator"""
1094  return _IMP_bff.VectorInt_end(self)
1095 
1096  def rbegin(self):
1097  r"""rbegin(VectorInt self) -> std::vector< int >::reverse_iterator"""
1098  return _IMP_bff.VectorInt_rbegin(self)
1099 
1100  def rend(self):
1101  r"""rend(VectorInt self) -> std::vector< int >::reverse_iterator"""
1102  return _IMP_bff.VectorInt_rend(self)
1103 
1104  def clear(self):
1105  r"""clear(VectorInt self)"""
1106  return _IMP_bff.VectorInt_clear(self)
1107 
1108  def get_allocator(self):
1109  r"""get_allocator(VectorInt self) -> std::vector< int >::allocator_type"""
1110  return _IMP_bff.VectorInt_get_allocator(self)
1111 
1112  def pop_back(self):
1113  r"""pop_back(VectorInt self)"""
1114  return _IMP_bff.VectorInt_pop_back(self)
1115 
1116  def erase(self, *args):
1117  r"""
1118  erase(VectorInt self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
1119  erase(VectorInt self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
1120  """
1121  return _IMP_bff.VectorInt_erase(self, *args)
1122 
1123  def __init__(self, *args):
1124  r"""
1125  __init__(VectorInt self) -> VectorInt
1126  __init__(VectorInt self, VectorInt other) -> VectorInt
1127  __init__(VectorInt self, std::vector< int >::size_type size) -> VectorInt
1128  __init__(VectorInt self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> VectorInt
1129  """
1130  _IMP_bff.VectorInt_swiginit(self, _IMP_bff.new_VectorInt(*args))
1131 
1132  def push_back(self, x):
1133  r"""push_back(VectorInt self, std::vector< int >::value_type const & x)"""
1134  return _IMP_bff.VectorInt_push_back(self, x)
1135 
1136  def front(self):
1137  r"""front(VectorInt self) -> std::vector< int >::value_type const &"""
1138  return _IMP_bff.VectorInt_front(self)
1139 
1140  def back(self):
1141  r"""back(VectorInt self) -> std::vector< int >::value_type const &"""
1142  return _IMP_bff.VectorInt_back(self)
1143 
1144  def assign(self, n, x):
1145  r"""assign(VectorInt self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
1146  return _IMP_bff.VectorInt_assign(self, n, x)
1147 
1148  def resize(self, *args):
1149  r"""
1150  resize(VectorInt self, std::vector< int >::size_type new_size)
1151  resize(VectorInt self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
1152  """
1153  return _IMP_bff.VectorInt_resize(self, *args)
1154 
1155  def insert(self, *args):
1156  r"""
1157  insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
1158  insert(VectorInt self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
1159  """
1160  return _IMP_bff.VectorInt_insert(self, *args)
1161 
1162  def reserve(self, n):
1163  r"""reserve(VectorInt self, std::vector< int >::size_type n)"""
1164  return _IMP_bff.VectorInt_reserve(self, n)
1165 
1166  def capacity(self):
1167  r"""capacity(VectorInt self) -> std::vector< int >::size_type"""
1168  return _IMP_bff.VectorInt_capacity(self)
1169  __swig_destroy__ = _IMP_bff.delete_VectorInt
1170 
1171 # Register VectorInt in _IMP_bff:
1172 _IMP_bff.VectorInt_swigregister(VectorInt)
1173 class VectorLong(object):
1174  r"""Proxy of C++ std::vector< long > class."""
1175 
1176  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1177  __repr__ = _swig_repr
1178 
1179  def iterator(self):
1180  r"""iterator(VectorLong self) -> IMP_BFF_SwigPyIterator"""
1181  return _IMP_bff.VectorLong_iterator(self)
1182  def __iter__(self):
1183  return self.iterator()
1184 
1185  def __nonzero__(self):
1186  r"""__nonzero__(VectorLong self) -> bool"""
1187  return _IMP_bff.VectorLong___nonzero__(self)
1188 
1189  def __bool__(self):
1190  r"""__bool__(VectorLong self) -> bool"""
1191  return _IMP_bff.VectorLong___bool__(self)
1192 
1193  def __len__(self):
1194  r"""__len__(VectorLong self) -> std::vector< long >::size_type"""
1195  return _IMP_bff.VectorLong___len__(self)
1196 
1197  def __getslice__(self, i, j):
1198  r"""__getslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j) -> VectorLong"""
1199  return _IMP_bff.VectorLong___getslice__(self, i, j)
1200 
1201  def __setslice__(self, *args):
1202  r"""
1203  __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)
1204  __setslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j, VectorLong v)
1205  """
1206  return _IMP_bff.VectorLong___setslice__(self, *args)
1207 
1208  def __delslice__(self, i, j):
1209  r"""__delslice__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::difference_type j)"""
1210  return _IMP_bff.VectorLong___delslice__(self, i, j)
1211 
1212  def __delitem__(self, *args):
1213  r"""
1214  __delitem__(VectorLong self, std::vector< long >::difference_type i)
1215  __delitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1216  """
1217  return _IMP_bff.VectorLong___delitem__(self, *args)
1218 
1219  def __getitem__(self, *args):
1220  r"""
1221  __getitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice) -> VectorLong
1222  __getitem__(VectorLong self, std::vector< long >::difference_type i) -> std::vector< long >::value_type const &
1223  """
1224  return _IMP_bff.VectorLong___getitem__(self, *args)
1225 
1226  def __setitem__(self, *args):
1227  r"""
1228  __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice, VectorLong v)
1229  __setitem__(VectorLong self, SWIGPY_SLICEOBJECT * slice)
1230  __setitem__(VectorLong self, std::vector< long >::difference_type i, std::vector< long >::value_type const & x)
1231  """
1232  return _IMP_bff.VectorLong___setitem__(self, *args)
1233 
1234  def pop(self):
1235  r"""pop(VectorLong self) -> std::vector< long >::value_type"""
1236  return _IMP_bff.VectorLong_pop(self)
1237 
1238  def append(self, x):
1239  r"""append(VectorLong self, std::vector< long >::value_type const & x)"""
1240  return _IMP_bff.VectorLong_append(self, x)
1241 
1242  def empty(self):
1243  r"""empty(VectorLong self) -> bool"""
1244  return _IMP_bff.VectorLong_empty(self)
1245 
1246  def size(self):
1247  r"""size(VectorLong self) -> std::vector< long >::size_type"""
1248  return _IMP_bff.VectorLong_size(self)
1249 
1250  def swap(self, v):
1251  r"""swap(VectorLong self, VectorLong v)"""
1252  return _IMP_bff.VectorLong_swap(self, v)
1253 
1254  def begin(self):
1255  r"""begin(VectorLong self) -> std::vector< long >::iterator"""
1256  return _IMP_bff.VectorLong_begin(self)
1257 
1258  def end(self):
1259  r"""end(VectorLong self) -> std::vector< long >::iterator"""
1260  return _IMP_bff.VectorLong_end(self)
1261 
1262  def rbegin(self):
1263  r"""rbegin(VectorLong self) -> std::vector< long >::reverse_iterator"""
1264  return _IMP_bff.VectorLong_rbegin(self)
1265 
1266  def rend(self):
1267  r"""rend(VectorLong self) -> std::vector< long >::reverse_iterator"""
1268  return _IMP_bff.VectorLong_rend(self)
1269 
1270  def clear(self):
1271  r"""clear(VectorLong self)"""
1272  return _IMP_bff.VectorLong_clear(self)
1273 
1274  def get_allocator(self):
1275  r"""get_allocator(VectorLong self) -> std::vector< long >::allocator_type"""
1276  return _IMP_bff.VectorLong_get_allocator(self)
1277 
1278  def pop_back(self):
1279  r"""pop_back(VectorLong self)"""
1280  return _IMP_bff.VectorLong_pop_back(self)
1281 
1282  def erase(self, *args):
1283  r"""
1284  erase(VectorLong self, std::vector< long >::iterator pos) -> std::vector< long >::iterator
1285  erase(VectorLong self, std::vector< long >::iterator first, std::vector< long >::iterator last) -> std::vector< long >::iterator
1286  """
1287  return _IMP_bff.VectorLong_erase(self, *args)
1288 
1289  def __init__(self, *args):
1290  r"""
1291  __init__(VectorLong self) -> VectorLong
1292  __init__(VectorLong self, VectorLong other) -> VectorLong
1293  __init__(VectorLong self, std::vector< long >::size_type size) -> VectorLong
1294  __init__(VectorLong self, std::vector< long >::size_type size, std::vector< long >::value_type const & value) -> VectorLong
1295  """
1296  _IMP_bff.VectorLong_swiginit(self, _IMP_bff.new_VectorLong(*args))
1297 
1298  def push_back(self, x):
1299  r"""push_back(VectorLong self, std::vector< long >::value_type const & x)"""
1300  return _IMP_bff.VectorLong_push_back(self, x)
1301 
1302  def front(self):
1303  r"""front(VectorLong self) -> std::vector< long >::value_type const &"""
1304  return _IMP_bff.VectorLong_front(self)
1305 
1306  def back(self):
1307  r"""back(VectorLong self) -> std::vector< long >::value_type const &"""
1308  return _IMP_bff.VectorLong_back(self)
1309 
1310  def assign(self, n, x):
1311  r"""assign(VectorLong self, std::vector< long >::size_type n, std::vector< long >::value_type const & x)"""
1312  return _IMP_bff.VectorLong_assign(self, n, x)
1313 
1314  def resize(self, *args):
1315  r"""
1316  resize(VectorLong self, std::vector< long >::size_type new_size)
1317  resize(VectorLong self, std::vector< long >::size_type new_size, std::vector< long >::value_type const & x)
1318  """
1319  return _IMP_bff.VectorLong_resize(self, *args)
1320 
1321  def insert(self, *args):
1322  r"""
1323  insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::value_type const & x) -> std::vector< long >::iterator
1324  insert(VectorLong self, std::vector< long >::iterator pos, std::vector< long >::size_type n, std::vector< long >::value_type const & x)
1325  """
1326  return _IMP_bff.VectorLong_insert(self, *args)
1327 
1328  def reserve(self, n):
1329  r"""reserve(VectorLong self, std::vector< long >::size_type n)"""
1330  return _IMP_bff.VectorLong_reserve(self, n)
1331 
1332  def capacity(self):
1333  r"""capacity(VectorLong self) -> std::vector< long >::size_type"""
1334  return _IMP_bff.VectorLong_capacity(self)
1335  __swig_destroy__ = _IMP_bff.delete_VectorLong
1336 
1337 # Register VectorLong in _IMP_bff:
1338 _IMP_bff.VectorLong_swigregister(VectorLong)
1339 
1340 PathMapTileEdges=list
1341 _plural_types.append("PathMapTileEdges")
1342 _value_types.append("PathMapTileEdge")
1343 
1344 
1345 _object_types.append("PathMap")
1346 
1347 
1348 def _object_cast_to_PathMap(o):
1349  r"""_object_cast_to_PathMap(Object o) -> PathMap"""
1350  return _IMP_bff._object_cast_to_PathMap(o)
1351 class PathMapHeader(object):
1352  r"""Proxy of C++ IMP::bff::PathMapHeader class."""
1353 
1354  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1355  __repr__ = _swig_repr
1356  __swig_destroy__ = _IMP_bff.delete_PathMapHeader
1357 
1358  def __init__(self, *args, **kwargs):
1359  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"""
1360  _IMP_bff.PathMapHeader_swiginit(self, _IMP_bff.new_PathMapHeader(*args, **kwargs))
1361 
1362  def update_map_dimensions(self, nx=-1, ny=-1, nz=-1):
1363  r"""update_map_dimensions(PathMapHeader self, int nx=-1, int ny=-1, int nz=-1)"""
1364  return _IMP_bff.PathMapHeader_update_map_dimensions(self, nx, ny, nz)
1365 
1366  def set_path_origin(self, v):
1367  r"""set_path_origin(PathMapHeader self, Vector3D v)"""
1368  return _IMP_bff.PathMapHeader_set_path_origin(self, v)
1369 
1370  def get_path_origin(self):
1371  r"""get_path_origin(PathMapHeader self) -> Vector3D"""
1372  return _IMP_bff.PathMapHeader_get_path_origin(self)
1373 
1374  def get_max_path_length(self):
1375  r"""get_max_path_length(PathMapHeader self) -> double"""
1376  return _IMP_bff.PathMapHeader_get_max_path_length(self)
1377 
1378  def get_simulation_grid_resolution(self):
1379  r"""get_simulation_grid_resolution(PathMapHeader self) -> double"""
1380  return _IMP_bff.PathMapHeader_get_simulation_grid_resolution(self)
1381 
1382  def set_obstacle_threshold(self, obstacle_threshold):
1383  r"""set_obstacle_threshold(PathMapHeader self, double obstacle_threshold)"""
1384  return _IMP_bff.PathMapHeader_set_obstacle_threshold(self, obstacle_threshold)
1385 
1386  def get_obstacle_threshold(self):
1387  r"""get_obstacle_threshold(PathMapHeader self) -> double"""
1388  return _IMP_bff.PathMapHeader_get_obstacle_threshold(self)
1389 
1390  def set_neighbor_radius(self, neighbor_radius):
1391  r"""set_neighbor_radius(PathMapHeader self, double neighbor_radius)"""
1392  return _IMP_bff.PathMapHeader_set_neighbor_radius(self, neighbor_radius)
1393 
1394  def get_neighbor_radius(self):
1395  r"""get_neighbor_radius(PathMapHeader self) -> double"""
1396  return _IMP_bff.PathMapHeader_get_neighbor_radius(self)
1397 
1398  def get_neighbor_box_size(self):
1399  r"""get_neighbor_box_size(PathMapHeader self) -> int"""
1400  return _IMP_bff.PathMapHeader_get_neighbor_box_size(self)
1401 
1402  def get_density_header(self):
1403  r"""get_density_header(PathMapHeader self) -> DensityHeader"""
1404  return _IMP_bff.PathMapHeader_get_density_header(self)
1405 
1406  def get_density_header_writable(self):
1407  r"""get_density_header_writable(PathMapHeader self) -> DensityHeader"""
1408  return _IMP_bff.PathMapHeader_get_density_header_writable(self)
1409 
1410  def get_origin(self):
1411  r"""get_origin(PathMapHeader self) -> Vector3D"""
1412  return _IMP_bff.PathMapHeader_get_origin(self)
1413 
1414  def get_grid_edge_length(self):
1415  r"""get_grid_edge_length(PathMapHeader self) -> double"""
1416  return _IMP_bff.PathMapHeader_get_grid_edge_length(self)
1417 
1418  def set_origin(self, x, y, z):
1419  r"""set_origin(PathMapHeader self, float x, float y, float z)"""
1420  return _IMP_bff.PathMapHeader_set_origin(self, x, y, z)
1421 
1422  def show(self, *args, **kwargs):
1423  r"""show(PathMapHeader self, _ostream out=std::cout)"""
1424  return _IMP_bff.PathMapHeader_show(self, *args, **kwargs)
1425 
1426 # Register PathMapHeader in _IMP_bff:
1427 _IMP_bff.PathMapHeader_swigregister(PathMapHeader)
1428 class PathMap(IMP.em.SampledDensityMap):
1429  r"""Proxy of C++ IMP::bff::PathMap class."""
1430 
1431  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1432 
1433  def update_tiles(self, *args, **kwargs):
1434  r"""update_tiles(PathMap self, float obstacle_threshold=-1.0, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT, bool reset_tile_edges=True)"""
1435  return _IMP_bff.PathMap_update_tiles(self, *args, **kwargs)
1436 
1437  def resize(self, nvox):
1438  r"""resize(PathMap self, unsigned int nvox)"""
1439  return _IMP_bff.PathMap_resize(self, nvox)
1440 
1441  def set_data(self, *args, **kwargs):
1442  r"""set_data(PathMap self, double * input, float obstacle_threshold=-1, bool binarize=True, float obstacle_penalty=TILE_PENALTY_DEFAULT)"""
1443  return _IMP_bff.PathMap_set_data(self, *args, **kwargs)
1444 
1445  def get_neighbor_idx_offsets(self, neighbor_radius=-1):
1446  r"""get_neighbor_idx_offsets(PathMap self, double neighbor_radius=-1) -> VectorInt"""
1447  return _IMP_bff.PathMap_get_neighbor_idx_offsets(self, neighbor_radius)
1448 
1449  def get_dim_index_by_voxel(self, index, dim):
1450  r"""get_dim_index_by_voxel(PathMap self, long index, int dim) -> int"""
1451  return _IMP_bff.PathMap_get_dim_index_by_voxel(self, index, dim)
1452 
1453  def get_path_map_header(self):
1454  h = _IMP_bff.DensityMap_get_path_map_header(self)
1455  h._owner = self
1456  return h
1457 
1458 
1459 
1460  def get_path_map_header_writable(self):
1461  h = _IMP_bff.PathMap_get_path_map_header_writable(self)
1462  h._owner = self
1463  return h
1464 
1465 
1466 
1467  def set_path_map_header(self, path_map_header, resolution=-1.0):
1468  r"""set_path_map_header(PathMap self, PathMapHeader path_map_header, float resolution=-1.0)"""
1469  return _IMP_bff.PathMap_set_path_map_header(self, path_map_header, resolution)
1470 
1471  def get_tile_values(self, *args, **kwargs):
1472  r"""
1473  get_tile_values(PathMap self, int value_type=PM_TILE_COST, PairFloatFloat bounds=std::pair< float,float >(
1474  {std::numeric_limits<float>::min(),
1475  std::numeric_limits<float>::max()}), std::string const & feature_name="")
1476  """
1477  return _IMP_bff.PathMap_get_tile_values(self, *args, **kwargs)
1478 
1479  def get_tiles(self):
1480  r"""get_tiles(PathMap self) -> VectorPathMapTile"""
1481  return _IMP_bff.PathMap_get_tiles(self)
1482 
1483  def fill_sphere(self, r0, radius, value, inverse=True):
1484  r"""fill_sphere(PathMap self, Vector3D r0, double radius, double value, bool inverse=True)"""
1485  return _IMP_bff.PathMap_fill_sphere(self, r0, radius, value, inverse)
1486 
1487  def find_path(self, path_begin_idx, path_end_idx=-1, heuristic_mode=0):
1488  r"""find_path(PathMap self, long path_begin_idx, long path_end_idx=-1, int heuristic_mode=0)"""
1489  return _IMP_bff.PathMap_find_path(self, path_begin_idx, path_end_idx, heuristic_mode)
1490 
1491  def find_path_dijkstra(self, path_begin_idx, path_end_idx=-1):
1492  r"""find_path_dijkstra(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1493  return _IMP_bff.PathMap_find_path_dijkstra(self, path_begin_idx, path_end_idx)
1494 
1495  def find_path_astar(self, path_begin_idx, path_end_idx=-1):
1496  r"""find_path_astar(PathMap self, long path_begin_idx, long path_end_idx=-1)"""
1497  return _IMP_bff.PathMap_find_path_astar(self, path_begin_idx, path_end_idx)
1498 
1499  def get_xyz_density(self):
1500  r"""get_xyz_density(PathMap self)"""
1501  return _IMP_bff.PathMap_get_xyz_density(self)
1502 
1503  def sample_obstacles(self, extra_radius=0.0):
1504  r"""sample_obstacles(PathMap self, double extra_radius=0.0)"""
1505  return _IMP_bff.PathMap_sample_obstacles(self, extra_radius)
1506 
1507  def __init__(self, *args, **kwargs):
1508  r"""__init__(PathMap self, PathMapHeader header, std::string name="PathMap%1%", IMP::em::KernelType kt=BINARIZED_SPHERE, float resolution=-1.0) -> PathMap"""
1509  _IMP_bff.PathMap_swiginit(self, _IMP_bff.new_PathMap(*args, **kwargs))
1510 
1511  def __str__(self):
1512  r"""__str__(PathMap self) -> std::string"""
1513  return _IMP_bff.PathMap___str__(self)
1514 
1515  def __repr__(self):
1516  r"""__repr__(PathMap self) -> std::string"""
1517  return _IMP_bff.PathMap___repr__(self)
1518 
1519  @staticmethod
1520  def get_from(o):
1521  return _object_cast_to_PathMap(o)
1522 
1523  __swig_destroy__ = _IMP_bff.delete_PathMap
1524 
1525 # Register PathMap in _IMP_bff:
1526 _IMP_bff.PathMap_swigregister(PathMap)
1527 
1528 def write_path_map(*args, **kwargs):
1529  r"""
1530  write_path_map(PathMap m, std::string filename, int value_type, PairFloatFloat bounds=std::pair< float,float >(
1531  std::numeric_limits<float>::min(),
1532  std::numeric_limits<float>::max()
1533  ), std::string const & feature_name="")
1534  """
1535  return _IMP_bff.write_path_map(*args, **kwargs)
1536 PM_TILE_PENALTY = _IMP_bff.PM_TILE_PENALTY
1537 
1538 PM_TILE_COST = _IMP_bff.PM_TILE_COST
1539 
1540 PM_TILE_DENSITY = _IMP_bff.PM_TILE_DENSITY
1541 
1542 PM_TILE_COST_DENSITY = _IMP_bff.PM_TILE_COST_DENSITY
1543 
1544 PM_TILE_PATH_LENGTH = _IMP_bff.PM_TILE_PATH_LENGTH
1545 
1546 PM_TILE_PATH_LENGTH_DENSITY = _IMP_bff.PM_TILE_PATH_LENGTH_DENSITY
1547 
1548 PM_TILE_FEATURE = _IMP_bff.PM_TILE_FEATURE
1549 
1550 PM_TILE_ACCESSIBLE_DENSITY = _IMP_bff.PM_TILE_ACCESSIBLE_DENSITY
1551 
1552 PM_TILE_ACCESSIBLE_FEATURE = _IMP_bff.PM_TILE_ACCESSIBLE_FEATURE
1553 
1554 class PathMapTile(object):
1555  r"""Proxy of C++ IMP::bff::PathMapTile class."""
1556 
1557  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1558  __repr__ = _swig_repr
1559  density = property(_IMP_bff.PathMapTile_density_get, _IMP_bff.PathMapTile_density_set, doc=r"""density : float""")
1560 
1561  def __init__(self, index=-1, visit_penalty=0.0, tile_density=1.0):
1562  r"""__init__(PathMapTile self, long index=-1, float visit_penalty=0.0, float tile_density=1.0) -> PathMapTile"""
1563  _IMP_bff.PathMapTile_swiginit(self, _IMP_bff.new_PathMapTile(index, visit_penalty, tile_density))
1564 
1565  def backtrack_to_path(self):
1566  r"""backtrack_to_path(PathMapTile self) -> VectorLong"""
1567  return _IMP_bff.PathMapTile_backtrack_to_path(self)
1568 
1569  def get_value(self, *args, **kwargs):
1570  r"""
1571  get_value(PathMapTile self, int value_type, PairFloatFloat bounds=std::pair< float,float >(
1572  {std::numeric_limits<float>::min(),
1573  std::numeric_limits<float>::max()}), std::string const & feature_name="", float grid_spacing=1.0) -> float
1574  """
1575  return _IMP_bff.PathMapTile_get_value(self, *args, **kwargs)
1576 
1577  def set_value(self, *args, **kwargs):
1578  r"""set_value(PathMapTile self, int value_type, float value, std::string const & name="")"""
1579  return _IMP_bff.PathMapTile_set_value(self, *args, **kwargs)
1580  __swig_destroy__ = _IMP_bff.delete_PathMapTile
1581 
1582 # Register PathMapTile in _IMP_bff:
1583 _IMP_bff.PathMapTile_swigregister(PathMapTile)
1584 cvar = _IMP_bff.cvar
1585 TILE_VISITED_DEFAULT = cvar.TILE_VISITED_DEFAULT
1586 TILE_PENALTY_DEFAULT = cvar.TILE_PENALTY_DEFAULT
1587 TILE_COST_DEFAULT = cvar.TILE_COST_DEFAULT
1588 TILE_EDGE_COST_DEFAULT = cvar.TILE_EDGE_COST_DEFAULT
1589 TILE_PENALTY_THRESHOLD = cvar.TILE_PENALTY_THRESHOLD
1590 TILE_OBSTACLE_THRESHOLD = cvar.TILE_OBSTACLE_THRESHOLD
1591 TILE_OBSTACLE_PENALTY = cvar.TILE_OBSTACLE_PENALTY
1592 
1593 class PathMapTileEdge(IMP._Value):
1594  r"""Proxy of C++ IMP::bff::PathMapTileEdge class."""
1595 
1596  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1597 
1598  def get_length(self):
1599  r"""get_length(PathMapTileEdge self) -> float"""
1600  return _IMP_bff.PathMapTileEdge_get_length(self)
1601 
1602  def __init__(self, *args, **kwargs):
1603  r"""__init__(PathMapTileEdge self, int edge_target=-1, float edge_cost=std::numeric_limits< float >::max()) -> PathMapTileEdge"""
1604  _IMP_bff.PathMapTileEdge_swiginit(self, _IMP_bff.new_PathMapTileEdge(*args, **kwargs))
1605 
1606  def show(self, *args, **kwargs):
1607  r"""show(PathMapTileEdge self, _ostream out=std::cout)"""
1608  return _IMP_bff.PathMapTileEdge_show(self, *args, **kwargs)
1609 
1610  def __str__(self):
1611  r"""__str__(PathMapTileEdge self) -> std::string"""
1612  return _IMP_bff.PathMapTileEdge___str__(self)
1613 
1614  def __repr__(self):
1615  r"""__repr__(PathMapTileEdge self) -> std::string"""
1616  return _IMP_bff.PathMapTileEdge___repr__(self)
1617  __swig_destroy__ = _IMP_bff.delete_PathMapTileEdge
1618 
1619 # Register PathMapTileEdge in _IMP_bff:
1620 _IMP_bff.PathMapTileEdge_swigregister(PathMapTileEdge)
1621 class VectorPathMapTile(object):
1622  r"""Proxy of C++ std::vector< IMP::bff::PathMapTile > class."""
1623 
1624  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1625  __repr__ = _swig_repr
1626 
1627  def iterator(self):
1628  r"""iterator(VectorPathMapTile self) -> IMP_BFF_SwigPyIterator"""
1629  return _IMP_bff.VectorPathMapTile_iterator(self)
1630  def __iter__(self):
1631  return self.iterator()
1632 
1633  def __nonzero__(self):
1634  r"""__nonzero__(VectorPathMapTile self) -> bool"""
1635  return _IMP_bff.VectorPathMapTile___nonzero__(self)
1636 
1637  def __bool__(self):
1638  r"""__bool__(VectorPathMapTile self) -> bool"""
1639  return _IMP_bff.VectorPathMapTile___bool__(self)
1640 
1641  def __len__(self):
1642  r"""__len__(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1643  return _IMP_bff.VectorPathMapTile___len__(self)
1644 
1645  def __getslice__(self, i, j):
1646  r"""__getslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j) -> VectorPathMapTile"""
1647  return _IMP_bff.VectorPathMapTile___getslice__(self, i, j)
1648 
1649  def __setslice__(self, *args):
1650  r"""
1651  __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)
1652  __setslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j, VectorPathMapTile v)
1653  """
1654  return _IMP_bff.VectorPathMapTile___setslice__(self, *args)
1655 
1656  def __delslice__(self, i, j):
1657  r"""__delslice__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, std::vector< IMP::bff::PathMapTile >::difference_type j)"""
1658  return _IMP_bff.VectorPathMapTile___delslice__(self, i, j)
1659 
1660  def __delitem__(self, *args):
1661  r"""
1662  __delitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i)
1663  __delitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1664  """
1665  return _IMP_bff.VectorPathMapTile___delitem__(self, *args)
1666 
1667  def __getitem__(self, *args):
1668  r"""
1669  __getitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTile
1670  __getitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i) -> PathMapTile
1671  """
1672  return _IMP_bff.VectorPathMapTile___getitem__(self, *args)
1673 
1674  def __setitem__(self, *args):
1675  r"""
1676  __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTile v)
1677  __setitem__(VectorPathMapTile self, SWIGPY_SLICEOBJECT * slice)
1678  __setitem__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::difference_type i, PathMapTile x)
1679  """
1680  return _IMP_bff.VectorPathMapTile___setitem__(self, *args)
1681 
1682  def pop(self):
1683  r"""pop(VectorPathMapTile self) -> PathMapTile"""
1684  return _IMP_bff.VectorPathMapTile_pop(self)
1685 
1686  def append(self, x):
1687  r"""append(VectorPathMapTile self, PathMapTile x)"""
1688  return _IMP_bff.VectorPathMapTile_append(self, x)
1689 
1690  def empty(self):
1691  r"""empty(VectorPathMapTile self) -> bool"""
1692  return _IMP_bff.VectorPathMapTile_empty(self)
1693 
1694  def size(self):
1695  r"""size(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1696  return _IMP_bff.VectorPathMapTile_size(self)
1697 
1698  def swap(self, v):
1699  r"""swap(VectorPathMapTile self, VectorPathMapTile v)"""
1700  return _IMP_bff.VectorPathMapTile_swap(self, v)
1701 
1702  def begin(self):
1703  r"""begin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1704  return _IMP_bff.VectorPathMapTile_begin(self)
1705 
1706  def end(self):
1707  r"""end(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::iterator"""
1708  return _IMP_bff.VectorPathMapTile_end(self)
1709 
1710  def rbegin(self):
1711  r"""rbegin(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1712  return _IMP_bff.VectorPathMapTile_rbegin(self)
1713 
1714  def rend(self):
1715  r"""rend(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::reverse_iterator"""
1716  return _IMP_bff.VectorPathMapTile_rend(self)
1717 
1718  def clear(self):
1719  r"""clear(VectorPathMapTile self)"""
1720  return _IMP_bff.VectorPathMapTile_clear(self)
1721 
1722  def get_allocator(self):
1723  r"""get_allocator(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::allocator_type"""
1724  return _IMP_bff.VectorPathMapTile_get_allocator(self)
1725 
1726  def pop_back(self):
1727  r"""pop_back(VectorPathMapTile self)"""
1728  return _IMP_bff.VectorPathMapTile_pop_back(self)
1729 
1730  def erase(self, *args):
1731  r"""
1732  erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos) -> std::vector< IMP::bff::PathMapTile >::iterator
1733  erase(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator first, std::vector< IMP::bff::PathMapTile >::iterator last) -> std::vector< IMP::bff::PathMapTile >::iterator
1734  """
1735  return _IMP_bff.VectorPathMapTile_erase(self, *args)
1736 
1737  def __init__(self, *args):
1738  r"""
1739  __init__(VectorPathMapTile self) -> VectorPathMapTile
1740  __init__(VectorPathMapTile self, VectorPathMapTile other) -> VectorPathMapTile
1741  __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size) -> VectorPathMapTile
1742  __init__(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type size, PathMapTile value) -> VectorPathMapTile
1743  """
1744  _IMP_bff.VectorPathMapTile_swiginit(self, _IMP_bff.new_VectorPathMapTile(*args))
1745 
1746  def push_back(self, x):
1747  r"""push_back(VectorPathMapTile self, PathMapTile x)"""
1748  return _IMP_bff.VectorPathMapTile_push_back(self, x)
1749 
1750  def front(self):
1751  r"""front(VectorPathMapTile self) -> PathMapTile"""
1752  return _IMP_bff.VectorPathMapTile_front(self)
1753 
1754  def back(self):
1755  r"""back(VectorPathMapTile self) -> PathMapTile"""
1756  return _IMP_bff.VectorPathMapTile_back(self)
1757 
1758  def assign(self, n, x):
1759  r"""assign(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)"""
1760  return _IMP_bff.VectorPathMapTile_assign(self, n, x)
1761 
1762  def resize(self, *args):
1763  r"""
1764  resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size)
1765  resize(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type new_size, PathMapTile x)
1766  """
1767  return _IMP_bff.VectorPathMapTile_resize(self, *args)
1768 
1769  def insert(self, *args):
1770  r"""
1771  insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, PathMapTile x) -> std::vector< IMP::bff::PathMapTile >::iterator
1772  insert(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::iterator pos, std::vector< IMP::bff::PathMapTile >::size_type n, PathMapTile x)
1773  """
1774  return _IMP_bff.VectorPathMapTile_insert(self, *args)
1775 
1776  def reserve(self, n):
1777  r"""reserve(VectorPathMapTile self, std::vector< IMP::bff::PathMapTile >::size_type n)"""
1778  return _IMP_bff.VectorPathMapTile_reserve(self, n)
1779 
1780  def capacity(self):
1781  r"""capacity(VectorPathMapTile self) -> std::vector< IMP::bff::PathMapTile >::size_type"""
1782  return _IMP_bff.VectorPathMapTile_capacity(self)
1783  __swig_destroy__ = _IMP_bff.delete_VectorPathMapTile
1784 
1785 # Register VectorPathMapTile in _IMP_bff:
1786 _IMP_bff.VectorPathMapTile_swigregister(VectorPathMapTile)
1787 class VectorPathMapTileEdge(object):
1788  r"""Proxy of C++ std::vector< IMP::bff::PathMapTileEdge > class."""
1789 
1790  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1791  __repr__ = _swig_repr
1792 
1793  def iterator(self):
1794  r"""iterator(VectorPathMapTileEdge self) -> IMP_BFF_SwigPyIterator"""
1795  return _IMP_bff.VectorPathMapTileEdge_iterator(self)
1796  def __iter__(self):
1797  return self.iterator()
1798 
1799  def __nonzero__(self):
1800  r"""__nonzero__(VectorPathMapTileEdge self) -> bool"""
1801  return _IMP_bff.VectorPathMapTileEdge___nonzero__(self)
1802 
1803  def __bool__(self):
1804  r"""__bool__(VectorPathMapTileEdge self) -> bool"""
1805  return _IMP_bff.VectorPathMapTileEdge___bool__(self)
1806 
1807  def __len__(self):
1808  r"""__len__(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1809  return _IMP_bff.VectorPathMapTileEdge___len__(self)
1810 
1811  def __getslice__(self, i, j):
1812  r"""__getslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j) -> VectorPathMapTileEdge"""
1813  return _IMP_bff.VectorPathMapTileEdge___getslice__(self, i, j)
1814 
1815  def __setslice__(self, *args):
1816  r"""
1817  __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)
1818  __setslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j, VectorPathMapTileEdge v)
1819  """
1820  return _IMP_bff.VectorPathMapTileEdge___setslice__(self, *args)
1821 
1822  def __delslice__(self, i, j):
1823  r"""__delslice__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, std::vector< IMP::bff::PathMapTileEdge >::difference_type j)"""
1824  return _IMP_bff.VectorPathMapTileEdge___delslice__(self, i, j)
1825 
1826  def __delitem__(self, *args):
1827  r"""
1828  __delitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i)
1829  __delitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1830  """
1831  return _IMP_bff.VectorPathMapTileEdge___delitem__(self, *args)
1832 
1833  def __getitem__(self, *args):
1834  r"""
1835  __getitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice) -> VectorPathMapTileEdge
1836  __getitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i) -> PathMapTileEdge
1837  """
1838  return _IMP_bff.VectorPathMapTileEdge___getitem__(self, *args)
1839 
1840  def __setitem__(self, *args):
1841  r"""
1842  __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice, VectorPathMapTileEdge v)
1843  __setitem__(VectorPathMapTileEdge self, SWIGPY_SLICEOBJECT * slice)
1844  __setitem__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::difference_type i, PathMapTileEdge x)
1845  """
1846  return _IMP_bff.VectorPathMapTileEdge___setitem__(self, *args)
1847 
1848  def pop(self):
1849  r"""pop(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1850  return _IMP_bff.VectorPathMapTileEdge_pop(self)
1851 
1852  def append(self, x):
1853  r"""append(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1854  return _IMP_bff.VectorPathMapTileEdge_append(self, x)
1855 
1856  def empty(self):
1857  r"""empty(VectorPathMapTileEdge self) -> bool"""
1858  return _IMP_bff.VectorPathMapTileEdge_empty(self)
1859 
1860  def size(self):
1861  r"""size(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1862  return _IMP_bff.VectorPathMapTileEdge_size(self)
1863 
1864  def swap(self, v):
1865  r"""swap(VectorPathMapTileEdge self, VectorPathMapTileEdge v)"""
1866  return _IMP_bff.VectorPathMapTileEdge_swap(self, v)
1867 
1868  def begin(self):
1869  r"""begin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1870  return _IMP_bff.VectorPathMapTileEdge_begin(self)
1871 
1872  def end(self):
1873  r"""end(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::iterator"""
1874  return _IMP_bff.VectorPathMapTileEdge_end(self)
1875 
1876  def rbegin(self):
1877  r"""rbegin(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1878  return _IMP_bff.VectorPathMapTileEdge_rbegin(self)
1879 
1880  def rend(self):
1881  r"""rend(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::reverse_iterator"""
1882  return _IMP_bff.VectorPathMapTileEdge_rend(self)
1883 
1884  def clear(self):
1885  r"""clear(VectorPathMapTileEdge self)"""
1886  return _IMP_bff.VectorPathMapTileEdge_clear(self)
1887 
1888  def get_allocator(self):
1889  r"""get_allocator(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::allocator_type"""
1890  return _IMP_bff.VectorPathMapTileEdge_get_allocator(self)
1891 
1892  def pop_back(self):
1893  r"""pop_back(VectorPathMapTileEdge self)"""
1894  return _IMP_bff.VectorPathMapTileEdge_pop_back(self)
1895 
1896  def erase(self, *args):
1897  r"""
1898  erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1899  erase(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator first, std::vector< IMP::bff::PathMapTileEdge >::iterator last) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1900  """
1901  return _IMP_bff.VectorPathMapTileEdge_erase(self, *args)
1902 
1903  def __init__(self, *args):
1904  r"""
1905  __init__(VectorPathMapTileEdge self) -> VectorPathMapTileEdge
1906  __init__(VectorPathMapTileEdge self, VectorPathMapTileEdge other) -> VectorPathMapTileEdge
1907  __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size) -> VectorPathMapTileEdge
1908  __init__(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type size, PathMapTileEdge value) -> VectorPathMapTileEdge
1909  """
1910  _IMP_bff.VectorPathMapTileEdge_swiginit(self, _IMP_bff.new_VectorPathMapTileEdge(*args))
1911 
1912  def push_back(self, x):
1913  r"""push_back(VectorPathMapTileEdge self, PathMapTileEdge x)"""
1914  return _IMP_bff.VectorPathMapTileEdge_push_back(self, x)
1915 
1916  def front(self):
1917  r"""front(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1918  return _IMP_bff.VectorPathMapTileEdge_front(self)
1919 
1920  def back(self):
1921  r"""back(VectorPathMapTileEdge self) -> PathMapTileEdge"""
1922  return _IMP_bff.VectorPathMapTileEdge_back(self)
1923 
1924  def assign(self, n, x):
1925  r"""assign(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)"""
1926  return _IMP_bff.VectorPathMapTileEdge_assign(self, n, x)
1927 
1928  def resize(self, *args):
1929  r"""
1930  resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size)
1931  resize(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type new_size, PathMapTileEdge x)
1932  """
1933  return _IMP_bff.VectorPathMapTileEdge_resize(self, *args)
1934 
1935  def insert(self, *args):
1936  r"""
1937  insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, PathMapTileEdge x) -> std::vector< IMP::bff::PathMapTileEdge >::iterator
1938  insert(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::iterator pos, std::vector< IMP::bff::PathMapTileEdge >::size_type n, PathMapTileEdge x)
1939  """
1940  return _IMP_bff.VectorPathMapTileEdge_insert(self, *args)
1941 
1942  def reserve(self, n):
1943  r"""reserve(VectorPathMapTileEdge self, std::vector< IMP::bff::PathMapTileEdge >::size_type n)"""
1944  return _IMP_bff.VectorPathMapTileEdge_reserve(self, n)
1945 
1946  def capacity(self):
1947  r"""capacity(VectorPathMapTileEdge self) -> std::vector< IMP::bff::PathMapTileEdge >::size_type"""
1948  return _IMP_bff.VectorPathMapTileEdge_capacity(self)
1949  __swig_destroy__ = _IMP_bff.delete_VectorPathMapTileEdge
1950 
1951 # Register VectorPathMapTileEdge in _IMP_bff:
1952 _IMP_bff.VectorPathMapTileEdge_swigregister(VectorPathMapTileEdge)
1953 
1954 def AVs(l=[]):
1955  return [AV(x) for x in l]
1956 _plural_types.append("AVs")
1957 
1958 
1959 _value_types.append("AV")
1960 
1961 
1962 AVPairDistanceMeasurements=list
1963 _plural_types.append("AVPairDistanceMeasurements")
1964 _value_types.append("AVPairDistanceMeasurement")
1965 
1966 
1967 _object_types.append("AVNetworkRestraint")
1968 
1969 
1970 def _object_cast_to_AVNetworkRestraint(o):
1971  r"""_object_cast_to_AVNetworkRestraint(Object o) -> AVNetworkRestraint"""
1972  return _IMP_bff._object_cast_to_AVNetworkRestraint(o)
1973 class MapStringAVPairDistanceMeasurement(object):
1974  r"""Proxy of C++ std::map< std::string,IMP::bff::AVPairDistanceMeasurement > class."""
1975 
1976  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1977  __repr__ = _swig_repr
1978 
1979  def iterator(self):
1980  r"""iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
1981  return _IMP_bff.MapStringAVPairDistanceMeasurement_iterator(self)
1982  def __iter__(self):
1983  return self.iterator()
1984 
1985  def __nonzero__(self):
1986  r"""__nonzero__(MapStringAVPairDistanceMeasurement self) -> bool"""
1987  return _IMP_bff.MapStringAVPairDistanceMeasurement___nonzero__(self)
1988 
1989  def __bool__(self):
1990  r"""__bool__(MapStringAVPairDistanceMeasurement self) -> bool"""
1991  return _IMP_bff.MapStringAVPairDistanceMeasurement___bool__(self)
1992 
1993  def __len__(self):
1994  r"""__len__(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
1995  return _IMP_bff.MapStringAVPairDistanceMeasurement___len__(self)
1996  def __iter__(self):
1997  return self.key_iterator()
1998  def iterkeys(self):
1999  return self.key_iterator()
2000  def itervalues(self):
2001  return self.value_iterator()
2002  def iteritems(self):
2003  return self.iterator()
2004 
2005  def __getitem__(self, key):
2006  r"""__getitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> AVPairDistanceMeasurement"""
2007  return _IMP_bff.MapStringAVPairDistanceMeasurement___getitem__(self, key)
2008 
2009  def __delitem__(self, key):
2010  r"""__delitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)"""
2011  return _IMP_bff.MapStringAVPairDistanceMeasurement___delitem__(self, key)
2012 
2013  def has_key(self, key):
2014  r"""has_key(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
2015  return _IMP_bff.MapStringAVPairDistanceMeasurement_has_key(self, key)
2016 
2017  def keys(self):
2018  r"""keys(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2019  return _IMP_bff.MapStringAVPairDistanceMeasurement_keys(self)
2020 
2021  def values(self):
2022  r"""values(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2023  return _IMP_bff.MapStringAVPairDistanceMeasurement_values(self)
2024 
2025  def items(self):
2026  r"""items(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2027  return _IMP_bff.MapStringAVPairDistanceMeasurement_items(self)
2028 
2029  def __contains__(self, key):
2030  r"""__contains__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key) -> bool"""
2031  return _IMP_bff.MapStringAVPairDistanceMeasurement___contains__(self, key)
2032 
2033  def key_iterator(self):
2034  r"""key_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2035  return _IMP_bff.MapStringAVPairDistanceMeasurement_key_iterator(self)
2036 
2037  def value_iterator(self):
2038  r"""value_iterator(MapStringAVPairDistanceMeasurement self) -> IMP_BFF_SwigPyIterator"""
2039  return _IMP_bff.MapStringAVPairDistanceMeasurement_value_iterator(self)
2040 
2041  def __setitem__(self, *args):
2042  r"""
2043  __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key)
2044  __setitem__(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & key, AVPairDistanceMeasurement x)
2045  """
2046  return _IMP_bff.MapStringAVPairDistanceMeasurement___setitem__(self, *args)
2047 
2048  def asdict(self):
2049  r"""asdict(MapStringAVPairDistanceMeasurement self) -> PyObject *"""
2050  return _IMP_bff.MapStringAVPairDistanceMeasurement_asdict(self)
2051 
2052  def __init__(self, *args):
2053  r"""
2054  __init__(MapStringAVPairDistanceMeasurement self, std::less< std::string > const & other) -> MapStringAVPairDistanceMeasurement
2055  __init__(MapStringAVPairDistanceMeasurement self) -> MapStringAVPairDistanceMeasurement
2056  __init__(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement other) -> MapStringAVPairDistanceMeasurement
2057  """
2058  _IMP_bff.MapStringAVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_MapStringAVPairDistanceMeasurement(*args))
2059 
2060  def empty(self):
2061  r"""empty(MapStringAVPairDistanceMeasurement self) -> bool"""
2062  return _IMP_bff.MapStringAVPairDistanceMeasurement_empty(self)
2063 
2064  def size(self):
2065  r"""size(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2066  return _IMP_bff.MapStringAVPairDistanceMeasurement_size(self)
2067 
2068  def swap(self, v):
2069  r"""swap(MapStringAVPairDistanceMeasurement self, MapStringAVPairDistanceMeasurement v)"""
2070  return _IMP_bff.MapStringAVPairDistanceMeasurement_swap(self, v)
2071 
2072  def begin(self):
2073  r"""begin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2074  return _IMP_bff.MapStringAVPairDistanceMeasurement_begin(self)
2075 
2076  def end(self):
2077  r"""end(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2078  return _IMP_bff.MapStringAVPairDistanceMeasurement_end(self)
2079 
2080  def rbegin(self):
2081  r"""rbegin(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2082  return _IMP_bff.MapStringAVPairDistanceMeasurement_rbegin(self)
2083 
2084  def rend(self):
2085  r"""rend(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::reverse_iterator"""
2086  return _IMP_bff.MapStringAVPairDistanceMeasurement_rend(self)
2087 
2088  def clear(self):
2089  r"""clear(MapStringAVPairDistanceMeasurement self)"""
2090  return _IMP_bff.MapStringAVPairDistanceMeasurement_clear(self)
2091 
2092  def get_allocator(self):
2093  r"""get_allocator(MapStringAVPairDistanceMeasurement self) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::allocator_type"""
2094  return _IMP_bff.MapStringAVPairDistanceMeasurement_get_allocator(self)
2095 
2096  def count(self, x):
2097  r"""count(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type"""
2098  return _IMP_bff.MapStringAVPairDistanceMeasurement_count(self, x)
2099 
2100  def erase(self, *args):
2101  r"""
2102  erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::size_type
2103  erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator position)
2104  erase(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator first, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator last)
2105  """
2106  return _IMP_bff.MapStringAVPairDistanceMeasurement_erase(self, *args)
2107 
2108  def find(self, x):
2109  r"""find(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2110  return _IMP_bff.MapStringAVPairDistanceMeasurement_find(self, x)
2111 
2112  def lower_bound(self, x):
2113  r"""lower_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2114  return _IMP_bff.MapStringAVPairDistanceMeasurement_lower_bound(self, x)
2115 
2116  def upper_bound(self, x):
2117  r"""upper_bound(MapStringAVPairDistanceMeasurement self, std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::key_type const & x) -> std::map< std::string,IMP::bff::AVPairDistanceMeasurement >::iterator"""
2118  return _IMP_bff.MapStringAVPairDistanceMeasurement_upper_bound(self, x)
2119  __swig_destroy__ = _IMP_bff.delete_MapStringAVPairDistanceMeasurement
2120 
2121 # Register MapStringAVPairDistanceMeasurement in _IMP_bff:
2122 _IMP_bff.MapStringAVPairDistanceMeasurement_swigregister(MapStringAVPairDistanceMeasurement)
2123 DYE_PAIR_DISTANCE_E = _IMP_bff.DYE_PAIR_DISTANCE_E
2124 
2125 DYE_PAIR_DISTANCE_MEAN = _IMP_bff.DYE_PAIR_DISTANCE_MEAN
2126 
2127 DYE_PAIR_DISTANCE_MP = _IMP_bff.DYE_PAIR_DISTANCE_MP
2128 
2129 DYE_PAIR_EFFICIENCY = _IMP_bff.DYE_PAIR_EFFICIENCY
2130 
2131 DYE_PAIR_DISTANCE_DISTRIBUTION = _IMP_bff.DYE_PAIR_DISTANCE_DISTRIBUTION
2132 
2133 DYE_PAIR_XYZ_DISTANCE = _IMP_bff.DYE_PAIR_XYZ_DISTANCE
2134 
2135 class AVPairDistanceMeasurement(IMP._Value):
2136  r"""Proxy of C++ IMP::bff::AVPairDistanceMeasurement class."""
2137 
2138  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2139  distance = property(_IMP_bff.AVPairDistanceMeasurement_distance_get, _IMP_bff.AVPairDistanceMeasurement_distance_set, doc=r"""distance : double""")
2140  error_neg = property(_IMP_bff.AVPairDistanceMeasurement_error_neg_get, _IMP_bff.AVPairDistanceMeasurement_error_neg_set, doc=r"""error_neg : double""")
2141  error_pos = property(_IMP_bff.AVPairDistanceMeasurement_error_pos_get, _IMP_bff.AVPairDistanceMeasurement_error_pos_set, doc=r"""error_pos : double""")
2142  forster_radius = property(_IMP_bff.AVPairDistanceMeasurement_forster_radius_get, _IMP_bff.AVPairDistanceMeasurement_forster_radius_set, doc=r"""forster_radius : double""")
2143  distance_type = property(_IMP_bff.AVPairDistanceMeasurement_distance_type_get, _IMP_bff.AVPairDistanceMeasurement_distance_type_set, doc=r"""distance_type : int""")
2144  position_1 = property(_IMP_bff.AVPairDistanceMeasurement_position_1_get, _IMP_bff.AVPairDistanceMeasurement_position_1_set, doc=r"""position_1 : std::string""")
2145  position_2 = property(_IMP_bff.AVPairDistanceMeasurement_position_2_get, _IMP_bff.AVPairDistanceMeasurement_position_2_set, doc=r"""position_2 : std::string""")
2146 
2147  def get_json(self):
2148  r"""get_json(AVPairDistanceMeasurement self) -> std::string"""
2149  return _IMP_bff.AVPairDistanceMeasurement_get_json(self)
2150 
2151  def score_model(self, model):
2152  r"""score_model(AVPairDistanceMeasurement self, double model) -> double"""
2153  return _IMP_bff.AVPairDistanceMeasurement_score_model(self, model)
2154 
2155  def show(self, *args, **kwargs):
2156  r"""show(AVPairDistanceMeasurement self, _ostream out=std::cout)"""
2157  return _IMP_bff.AVPairDistanceMeasurement_show(self, *args, **kwargs)
2158 
2159  def __str__(self):
2160  r"""__str__(AVPairDistanceMeasurement self) -> std::string"""
2161  return _IMP_bff.AVPairDistanceMeasurement___str__(self)
2162 
2163  def __repr__(self):
2164  r"""__repr__(AVPairDistanceMeasurement self) -> std::string"""
2165  return _IMP_bff.AVPairDistanceMeasurement___repr__(self)
2166 
2167  def __init__(self):
2168  r"""__init__(AVPairDistanceMeasurement self) -> AVPairDistanceMeasurement"""
2169  _IMP_bff.AVPairDistanceMeasurement_swiginit(self, _IMP_bff.new_AVPairDistanceMeasurement())
2170  __swig_destroy__ = _IMP_bff.delete_AVPairDistanceMeasurement
2171 
2172 # Register AVPairDistanceMeasurement in _IMP_bff:
2173 _IMP_bff.AVPairDistanceMeasurement_swigregister(AVPairDistanceMeasurement)
2174 class AV(IMP.core.Gaussian):
2175  r"""Proxy of C++ IMP::bff::AV class."""
2176 
2177  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2178 
2179  def create_path_map_header(self):
2180  r"""create_path_map_header(AV self) -> PathMapHeader"""
2181  return _IMP_bff.AV_create_path_map_header(self)
2182 
2183  def init_path_map(self):
2184  r"""init_path_map(AV self)"""
2185  return _IMP_bff.AV_init_path_map(self)
2186 
2187  @staticmethod
2188  def get_av_key(i):
2189  r"""get_av_key(unsigned int i) -> FloatKey"""
2190  return _IMP_bff.AV_get_av_key(i)
2191 
2192  @staticmethod
2193  def do_setup_particle(*args, **kwargs):
2194  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)"""
2195  return _IMP_bff.AV_do_setup_particle(*args, **kwargs)
2196 
2197  @staticmethod
2198  def get_particle_key(i):
2199  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2200  return _IMP_bff.AV_get_particle_key(i)
2201 
2202  def get_particle_index(self, *args):
2203  r"""
2204  get_particle_index(AV self) -> ParticleIndex
2205  get_particle_index(AV self, unsigned int i) -> ParticleIndex
2206  """
2207  return _IMP_bff.AV_get_particle_index(self, *args)
2208 
2209  def get_particle(self, *args):
2210  r"""
2211  get_particle(AV self) -> Particle
2212  get_particle(AV self, unsigned int i) -> Particle
2213  """
2214  return _IMP_bff.AV_get_particle(self, *args)
2215 
2216  def __init__(self, *args):
2217  r"""
2218  __init__(AV self) -> AV
2219  __init__(AV self, Model m, ParticleIndex id) -> AV
2220  __init__(AV self, _ParticleAdaptor d) -> AV
2221  """
2222  _IMP_bff.AV_swiginit(self, _IMP_bff.new_AV(*args))
2223 
2224  def show(self, *args, **kwargs):
2225  r"""show(AV self, _ostream out=std::cout)"""
2226  return _IMP_bff.AV_show(self, *args, **kwargs)
2227 
2228  @staticmethod
2229  def setup_particle(*args):
2230  r"""
2231  setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_source) -> AV
2232  setup_particle(_ParticleAdaptor pa, ParticleIndex pi_source) -> AV
2233  """
2234  return _IMP_bff.AV_setup_particle(*args)
2235 
2236  def get_linker_length(self):
2237  r"""get_linker_length(AV self) -> IMP::Float"""
2238  return _IMP_bff.AV_get_linker_length(self)
2239 
2240  def set_linker_length(self, t):
2241  r"""set_linker_length(AV self, IMP::Float t)"""
2242  return _IMP_bff.AV_set_linker_length(self, t)
2243 
2244  def get_radius1(self):
2245  r"""get_radius1(AV self) -> IMP::Float"""
2246  return _IMP_bff.AV_get_radius1(self)
2247 
2248  def set_radius1(self, t):
2249  r"""set_radius1(AV self, IMP::Float t)"""
2250  return _IMP_bff.AV_set_radius1(self, t)
2251 
2252  def get_radius2(self):
2253  r"""get_radius2(AV self) -> IMP::Float"""
2254  return _IMP_bff.AV_get_radius2(self)
2255 
2256  def set_radius2(self, t):
2257  r"""set_radius2(AV self, IMP::Float t)"""
2258  return _IMP_bff.AV_set_radius2(self, t)
2259 
2260  def get_radius3(self):
2261  r"""get_radius3(AV self) -> IMP::Float"""
2262  return _IMP_bff.AV_get_radius3(self)
2263 
2264  def set_radius3(self, t):
2265  r"""set_radius3(AV self, IMP::Float t)"""
2266  return _IMP_bff.AV_set_radius3(self, t)
2267 
2268  def get_linker_width(self):
2269  r"""get_linker_width(AV self) -> IMP::Float"""
2270  return _IMP_bff.AV_get_linker_width(self)
2271 
2272  def set_linker_width(self, t):
2273  r"""set_linker_width(AV self, IMP::Float t)"""
2274  return _IMP_bff.AV_set_linker_width(self, t)
2275 
2276  def get_allowed_sphere_radius(self):
2277  r"""get_allowed_sphere_radius(AV self) -> IMP::Float"""
2278  return _IMP_bff.AV_get_allowed_sphere_radius(self)
2279 
2280  def set_allowed_sphere_radius(self, t):
2281  r"""set_allowed_sphere_radius(AV self, IMP::Float t)"""
2282  return _IMP_bff.AV_set_allowed_sphere_radius(self, t)
2283 
2284  def get_contact_volume_thickness(self):
2285  r"""get_contact_volume_thickness(AV self) -> IMP::Float"""
2286  return _IMP_bff.AV_get_contact_volume_thickness(self)
2287 
2288  def set_contact_volume_thickness(self, t):
2289  r"""set_contact_volume_thickness(AV self, IMP::Float t)"""
2290  return _IMP_bff.AV_set_contact_volume_thickness(self, t)
2291 
2292  def get_contact_volume_trapped_fraction(self):
2293  r"""get_contact_volume_trapped_fraction(AV self) -> IMP::Float"""
2294  return _IMP_bff.AV_get_contact_volume_trapped_fraction(self)
2295 
2296  def set_contact_volume_trapped_fraction(self, t):
2297  r"""set_contact_volume_trapped_fraction(AV self, IMP::Float t)"""
2298  return _IMP_bff.AV_set_contact_volume_trapped_fraction(self, t)
2299 
2300  def get_simulation_grid_resolution(self):
2301  r"""get_simulation_grid_resolution(AV self) -> IMP::Float"""
2302  return _IMP_bff.AV_get_simulation_grid_resolution(self)
2303 
2304  def set_simulation_grid_resolution(self, t):
2305  r"""set_simulation_grid_resolution(AV self, IMP::Float t)"""
2306  return _IMP_bff.AV_set_simulation_grid_resolution(self, t)
2307 
2308  def get_radii(self):
2309  r"""get_radii(AV self) -> Vector3D"""
2310  return _IMP_bff.AV_get_radii(self)
2311 
2312  def get_parameters_are_optimized(self):
2313  r"""get_parameters_are_optimized(AV self) -> bool"""
2314  return _IMP_bff.AV_get_parameters_are_optimized(self)
2315 
2316  def set_av_parameters_are_optimized(self, tf):
2317  r"""set_av_parameters_are_optimized(AV self, bool tf)"""
2318  return _IMP_bff.AV_set_av_parameters_are_optimized(self, tf)
2319 
2320  def set_av_parameter(self, j):
2321  r"""set_av_parameter(AV self, nlohmann::json const & j)"""
2322  return _IMP_bff.AV_set_av_parameter(self, j)
2323 
2324  def get_derivatives(self):
2325  r"""get_derivatives(AV self) -> Vector3D"""
2326  return _IMP_bff.AV_get_derivatives(self)
2327 
2328  @staticmethod
2329  def get_is_setup(*args):
2330  r"""
2331  get_is_setup(_ParticleAdaptor p) -> bool
2332  get_is_setup(Model m, ParticleIndex pi) -> bool
2333  """
2334  return _IMP_bff.AV_get_is_setup(*args)
2335 
2336  def get_map(self):
2337  r"""get_map(AV self) -> PathMap"""
2338  return _IMP_bff.AV_get_map(self)
2339 
2340  def resample(self, shift_xyz=True):
2341  r"""resample(AV self, bool shift_xyz=True)"""
2342  return _IMP_bff.AV_resample(self, shift_xyz)
2343 
2344  def get_mean_position(self, include_source=True):
2345  r"""get_mean_position(AV self, bool include_source=True) -> Vector3D"""
2346  return _IMP_bff.AV_get_mean_position(self, include_source)
2347 
2348  def get_source_coordinates(self):
2349  r"""get_source_coordinates(AV self) -> Vector3D"""
2350  return _IMP_bff.AV_get_source_coordinates(self)
2351 
2352  def get_source(self):
2353  r"""get_source(AV self) -> Particle"""
2354  return _IMP_bff.AV_get_source(self)
2355 
2356  def add_attribute(self, *args):
2357  r"""
2358  add_attribute(AV self, FloatKey k, IMP::Float v, bool opt)
2359  add_attribute(AV self, FloatKey a0, IMP::Float a1)
2360  add_attribute(AV self, IntKey a0, IMP::Int a1)
2361  add_attribute(AV self, FloatsKey a0, IMP::Floats a1)
2362  add_attribute(AV self, IntsKey a0, IMP::Ints a1)
2363  add_attribute(AV self, StringKey a0, IMP::String a1)
2364  add_attribute(AV self, ParticleIndexKey a0, Particle a1)
2365  add_attribute(AV self, ObjectKey a0, Object a1)
2366  add_attribute(AV self, SparseFloatKey a0, IMP::Float a1)
2367  add_attribute(AV self, SparseIntKey a0, IMP::Int a1)
2368  add_attribute(AV self, SparseStringKey a0, IMP::String a1)
2369  add_attribute(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2370  """
2371  return _IMP_bff.AV_add_attribute(self, *args)
2372 
2373  def get_value(self, *args):
2374  r"""
2375  get_value(AV self, FloatKey a0) -> IMP::Float
2376  get_value(AV self, IntKey a0) -> IMP::Int
2377  get_value(AV self, FloatsKey a0) -> IMP::Floats
2378  get_value(AV self, IntsKey a0) -> IMP::Ints
2379  get_value(AV self, StringKey a0) -> IMP::String
2380  get_value(AV self, ParticleIndexKey a0) -> Particle
2381  get_value(AV self, ObjectKey a0) -> Object
2382  get_value(AV self, SparseFloatKey a0) -> IMP::Float
2383  get_value(AV self, SparseIntKey a0) -> IMP::Int
2384  get_value(AV self, SparseStringKey a0) -> IMP::String
2385  get_value(AV self, SparseParticleIndexKey a0) -> ParticleIndex
2386  """
2387  return _IMP_bff.AV_get_value(self, *args)
2388 
2389  def set_value(self, *args):
2390  r"""
2391  set_value(AV self, FloatKey a0, IMP::Float a1)
2392  set_value(AV self, IntKey a0, IMP::Int a1)
2393  set_value(AV self, FloatsKey a0, IMP::Floats a1)
2394  set_value(AV self, IntsKey a0, IMP::Ints a1)
2395  set_value(AV self, StringKey a0, IMP::String a1)
2396  set_value(AV self, ParticleIndexKey a0, Particle a1)
2397  set_value(AV self, ObjectKey a0, Object a1)
2398  set_value(AV self, SparseFloatKey a0, IMP::Float a1)
2399  set_value(AV self, SparseIntKey a0, IMP::Int a1)
2400  set_value(AV self, SparseStringKey a0, IMP::String a1)
2401  set_value(AV self, SparseParticleIndexKey a0, ParticleIndex a1)
2402  """
2403  return _IMP_bff.AV_set_value(self, *args)
2404 
2405  def remove_attribute(self, *args):
2406  r"""
2407  remove_attribute(AV self, FloatKey a0)
2408  remove_attribute(AV self, IntKey a0)
2409  remove_attribute(AV self, FloatsKey a0)
2410  remove_attribute(AV self, IntsKey a0)
2411  remove_attribute(AV self, StringKey a0)
2412  remove_attribute(AV self, ParticleIndexKey a0)
2413  remove_attribute(AV self, ObjectKey a0)
2414  remove_attribute(AV self, SparseFloatKey a0)
2415  remove_attribute(AV self, SparseIntKey a0)
2416  remove_attribute(AV self, SparseStringKey a0)
2417  remove_attribute(AV self, SparseParticleIndexKey a0)
2418  """
2419  return _IMP_bff.AV_remove_attribute(self, *args)
2420 
2421  def has_attribute(self, *args):
2422  r"""
2423  has_attribute(AV self, FloatKey a0) -> bool
2424  has_attribute(AV self, IntKey a0) -> bool
2425  has_attribute(AV self, FloatsKey a0) -> bool
2426  has_attribute(AV self, IntsKey a0) -> bool
2427  has_attribute(AV self, StringKey a0) -> bool
2428  has_attribute(AV self, ParticleIndexKey a0) -> bool
2429  has_attribute(AV self, ObjectKey a0) -> bool
2430  has_attribute(AV self, SparseFloatKey a0) -> bool
2431  has_attribute(AV self, SparseIntKey a0) -> bool
2432  has_attribute(AV self, SparseStringKey a0) -> bool
2433  has_attribute(AV self, SparseParticleIndexKey a0) -> bool
2434  """
2435  return _IMP_bff.AV_has_attribute(self, *args)
2436 
2437  def get_derivative(self, a0):
2438  r"""get_derivative(AV self, FloatKey a0) -> double"""
2439  return _IMP_bff.AV_get_derivative(self, a0)
2440 
2441  def get_name(self):
2442  r"""get_name(AV self) -> std::string"""
2443  return _IMP_bff.AV_get_name(self)
2444 
2445  def clear_caches(self):
2446  r"""clear_caches(AV self)"""
2447  return _IMP_bff.AV_clear_caches(self)
2448 
2449  def set_name(self, a0):
2450  r"""set_name(AV self, std::string a0)"""
2451  return _IMP_bff.AV_set_name(self, a0)
2452 
2453  def set_check_level(self, a0):
2454  r"""set_check_level(AV self, IMP::CheckLevel a0)"""
2455  return _IMP_bff.AV_set_check_level(self, a0)
2456 
2457  def add_to_derivative(self, a0, a1, a2):
2458  r"""add_to_derivative(AV self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2459  return _IMP_bff.AV_add_to_derivative(self, a0, a1, a2)
2460 
2461  def set_is_optimized(self, a0, a1):
2462  r"""set_is_optimized(AV self, FloatKey a0, bool a1)"""
2463  return _IMP_bff.AV_set_is_optimized(self, a0, a1)
2464 
2465  def get_is_optimized(self, a0):
2466  r"""get_is_optimized(AV self, FloatKey a0) -> bool"""
2467  return _IMP_bff.AV_get_is_optimized(self, a0)
2468 
2469  def get_check_level(self):
2470  r"""get_check_level(AV self) -> IMP::CheckLevel"""
2471  return _IMP_bff.AV_get_check_level(self)
2472 
2473  def __eq__(self, *args):
2474  r"""
2475  __eq__(AV self, AV o) -> bool
2476  __eq__(AV self, Particle d) -> bool
2477  """
2478  return _IMP_bff.AV___eq__(self, *args)
2479 
2480  def __ne__(self, *args):
2481  r"""
2482  __ne__(AV self, AV o) -> bool
2483  __ne__(AV self, Particle d) -> bool
2484  """
2485  return _IMP_bff.AV___ne__(self, *args)
2486 
2487  def __le__(self, *args):
2488  r"""
2489  __le__(AV self, AV o) -> bool
2490  __le__(AV self, Particle d) -> bool
2491  """
2492  return _IMP_bff.AV___le__(self, *args)
2493 
2494  def __lt__(self, *args):
2495  r"""
2496  __lt__(AV self, AV o) -> bool
2497  __lt__(AV self, Particle d) -> bool
2498  """
2499  return _IMP_bff.AV___lt__(self, *args)
2500 
2501  def __ge__(self, *args):
2502  r"""
2503  __ge__(AV self, AV o) -> bool
2504  __ge__(AV self, Particle d) -> bool
2505  """
2506  return _IMP_bff.AV___ge__(self, *args)
2507 
2508  def __gt__(self, *args):
2509  r"""
2510  __gt__(AV self, AV o) -> bool
2511  __gt__(AV self, Particle d) -> bool
2512  """
2513  return _IMP_bff.AV___gt__(self, *args)
2514 
2515  def __hash__(self):
2516  r"""__hash__(AV self) -> std::size_t"""
2517  return _IMP_bff.AV___hash__(self)
2518 
2519  def __str__(self):
2520  r"""__str__(AV self) -> std::string"""
2521  return _IMP_bff.AV___str__(self)
2522 
2523  def __repr__(self):
2524  r"""__repr__(AV self) -> std::string"""
2525  return _IMP_bff.AV___repr__(self)
2526 
2527  def _get_as_binary(self):
2528  r"""_get_as_binary(AV self) -> PyObject *"""
2529  return _IMP_bff.AV__get_as_binary(self)
2530 
2531  def _set_from_binary(self, p):
2532  r"""_set_from_binary(AV self, PyObject * p)"""
2533  return _IMP_bff.AV__set_from_binary(self, p)
2534 
2535  def __getstate__(self):
2536  p = self._get_as_binary()
2537  if len(self.__dict__) > 1:
2538  d = self.__dict__.copy()
2539  del d['this']
2540  p = (d, p)
2541  return p
2542 
2543  def __setstate__(self, p):
2544  if not hasattr(self, 'this'):
2545  self.__init__()
2546  if isinstance(p, tuple):
2547  d, p = p
2548  self.__dict__.update(d)
2549  return self._set_from_binary(p)
2550 
2551 
2552  map = property(get_map)
2553 
2554  __swig_destroy__ = _IMP_bff.delete_AV
2555 
2556 # Register AV in _IMP_bff:
2557 _IMP_bff.AV_swigregister(AV)
2558 
2559 def __lshift__(out, n):
2560  r"""__lshift__(_ostream out, AV n) -> _ostream"""
2561  return _IMP_bff.__lshift__(out, n)
2562 
2563 def av_distance(*args, **kwargs):
2564  r"""av_distance(AV a, AV b, double forster_radius=52.0, int distance_type=DYE_PAIR_DISTANCE_MEAN, int n_samples=10000) -> double"""
2565  return _IMP_bff.av_distance(*args, **kwargs)
2566 
2567 def av_random_points(av1, n_samples=10000):
2568  r"""av_random_points(AV av1, int n_samples=10000) -> VectorDouble"""
2569  return _IMP_bff.av_random_points(av1, n_samples)
2570 
2571 def av_random_distances(av1, av2, n_samples=10000):
2572  r"""av_random_distances(AV av1, AV av2, int n_samples=10000) -> VectorDouble"""
2573  return _IMP_bff.av_random_distances(av1, av2, n_samples)
2574 
2575 def av_distance_distribution(av1, av2, axis, n_samples=10000):
2576  r"""av_distance_distribution(AV av1, AV av2, VectorDouble axis, int n_samples=10000) -> VectorDouble"""
2577  return _IMP_bff.av_distance_distribution(av1, av2, axis, n_samples)
2578 
2579 def search_labeling_site(*args, **kwargs):
2580  r"""search_labeling_site(Hierarchy hier, std::string json_str="", nlohmann::json const & json_data=nlohmann::json()) -> ParticleIndex"""
2581  return _IMP_bff.search_labeling_site(*args, **kwargs)
2582 class AVNetworkRestraint(IMP.Restraint):
2583  r"""Proxy of C++ IMP::bff::AVNetworkRestraint class."""
2584 
2585  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2586 
2587  def __init__(self, *args, **kwargs):
2588  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"""
2589  _IMP_bff.AVNetworkRestraint_swiginit(self, _IMP_bff.new_AVNetworkRestraint(*args, **kwargs))
2590 
2591  def get_probability(self):
2592  r"""get_probability(AVNetworkRestraint self) -> double"""
2593  return _IMP_bff.AVNetworkRestraint_get_probability(self)
2594 
2595  def get_used_avs(self):
2596  r"""get_used_avs(AVNetworkRestraint self) -> IMP::bff::AVs const"""
2597  return _IMP_bff.AVNetworkRestraint_get_used_avs(self)
2598 
2599  def get_used_distances(self):
2600  r"""get_used_distances(AVNetworkRestraint self) -> MapStringAVPairDistanceMeasurement"""
2601  return _IMP_bff.AVNetworkRestraint_get_used_distances(self)
2602 
2603  def get_model_distance(self, position1_name, position2_name, forster_radius, distance_type):
2604  r"""get_model_distance(AVNetworkRestraint self, std::string position1_name, std::string position2_name, double forster_radius, int distance_type) -> double"""
2605  return _IMP_bff.AVNetworkRestraint_get_model_distance(self, position1_name, position2_name, forster_radius, distance_type)
2606 
2607  def get_indexes(self):
2608  r"""get_indexes(AVNetworkRestraint self) -> IMP::ParticleIndexes const"""
2609  return _IMP_bff.AVNetworkRestraint_get_indexes(self)
2610 
2611  def do_get_inputs(self):
2612  r"""do_get_inputs(AVNetworkRestraint self) -> IMP::ModelObjectsTemp"""
2613  return _IMP_bff.AVNetworkRestraint_do_get_inputs(self)
2614 
2615  def show(self, out):
2616  r"""show(AVNetworkRestraint self, _ostream out)"""
2617  return _IMP_bff.AVNetworkRestraint_show(self, out)
2618 
2619  def get_version_info(self):
2620  r"""get_version_info(AVNetworkRestraint self) -> VersionInfo"""
2621  return _IMP_bff.AVNetworkRestraint_get_version_info(self)
2622  __swig_destroy__ = _IMP_bff.delete_AVNetworkRestraint
2623 
2624  def __str__(self):
2625  r"""__str__(AVNetworkRestraint self) -> std::string"""
2626  return _IMP_bff.AVNetworkRestraint___str__(self)
2627 
2628  def __repr__(self):
2629  r"""__repr__(AVNetworkRestraint self) -> std::string"""
2630  return _IMP_bff.AVNetworkRestraint___repr__(self)
2631 
2632  @staticmethod
2633  def get_from(o):
2634  return _object_cast_to_AVNetworkRestraint(o)
2635 
2636 
2637 # Register AVNetworkRestraint in _IMP_bff:
2638 _IMP_bff.AVNetworkRestraint_swigregister(AVNetworkRestraint)
2639 
2640 def decay_rescale(fit, decay, start=0, stop=-1):
2641  r"""decay_rescale(double * fit, double * decay, int start=0, int stop=-1) -> double"""
2642  return _IMP_bff.decay_rescale(fit, decay, start, stop)
2643 
2644 def decay_rescale_w(fit, decay, w_sq, start=0, stop=-1):
2645  r"""decay_rescale_w(double * fit, double * decay, double * w_sq, int start=0, int stop=-1) -> double"""
2646  return _IMP_bff.decay_rescale_w(fit, decay, w_sq, start, stop)
2647 
2648 def decay_rescale_w_bg(fit, decay, w_sq, bg=0.0, start=0, stop=-1):
2649  r"""decay_rescale_w_bg(double * fit, double * decay, double * w_sq, double bg=0.0, int start=0, int stop=-1) -> double"""
2650  return _IMP_bff.decay_rescale_w_bg(fit, decay, w_sq, bg, start, stop)
2651 
2652 def decay_fconv(fit, irf, x, start=0, stop=-1, dt=1.0):
2653  r"""decay_fconv(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2654  return _IMP_bff.decay_fconv(fit, irf, x, start, stop, dt)
2655 
2656 def decay_fconv_avx(fit, irf, x, start=0, stop=-1, dt=1.0):
2657  r"""decay_fconv_avx(double * fit, double * irf, double * x, int start=0, int stop=-1, double dt=1.0)"""
2658  return _IMP_bff.decay_fconv_avx(fit, irf, x, start, stop, dt)
2659 
2660 def decay_fconv_per(fit, irf, x, period, start=0, stop=-1, dt=1.0):
2661  r"""decay_fconv_per(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2662  return _IMP_bff.decay_fconv_per(fit, irf, x, period, start, stop, dt)
2663 
2664 def decay_fconv_per_avx(fit, irf, x, period, start=0, stop=-1, dt=1.0):
2665  r"""decay_fconv_per_avx(double * fit, double * irf, double * x, double period, int start=0, int stop=-1, double dt=1.0)"""
2666  return _IMP_bff.decay_fconv_per_avx(fit, irf, x, period, start, stop, dt)
2667 
2668 def decay_fconv_per_cs(fit, irf, x, period, conv_stop=-1, stop=-1, dt=1.0):
2669  r"""decay_fconv_per_cs(double * fit, double * irf, double * x, double period, int conv_stop=-1, int stop=-1, double dt=1.0)"""
2670  return _IMP_bff.decay_fconv_per_cs(fit, irf, x, period, conv_stop, stop, dt)
2671 
2672 def decay_fconv_ref(fit, irf, x, tauref, start=0, stop=-1, dt=1.0):
2673  r"""decay_fconv_ref(double * fit, double * irf, double * x, double tauref, int start=0, int stop=-1, double dt=1.0)"""
2674  return _IMP_bff.decay_fconv_ref(fit, irf, x, tauref, start, stop, dt)
2675 
2676 def decay_sconv(fit, irf, model, start=0, stop=-1):
2677  r"""decay_sconv(double * fit, double * irf, double * model, int start=0, int stop=-1)"""
2678  return _IMP_bff.decay_sconv(fit, irf, model, start, stop)
2679 
2680 def decay_shift_lamp(irf, irf_shift, ts):
2681  r"""decay_shift_lamp(double * irf, double * irf_shift, double ts)"""
2682  return _IMP_bff.decay_shift_lamp(irf, irf_shift, ts)
2683 
2684 def mod_p(a, n):
2685  r"""mod_p(int a, int n) -> int"""
2686  return _IMP_bff.mod_p(a, n)
2687 
2688 def decay_add_pile_up_to_model(*args, **kwargs):
2689  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)"""
2690  return _IMP_bff.decay_add_pile_up_to_model(*args, **kwargs)
2691 
2692 def discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold):
2693  r"""discriminate_small_amplitudes(double * lifetime_spectrum, double amplitude_threshold)"""
2694  return _IMP_bff.discriminate_small_amplitudes(lifetime_spectrum, amplitude_threshold)
2695 
2696 def decay_fconv_per_cs_time_axis(model, time_axis, irf, lifetime_spectrum, convolution_start=0, convolution_stop=-1, period=100.0):
2697  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)"""
2698  return _IMP_bff.decay_fconv_per_cs_time_axis(model, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop, period)
2699 
2700 def decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start=0, convolution_stop=-1):
2701  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)"""
2702  return _IMP_bff.decay_fconv_cs_time_axis(inplace_output, time_axis, irf, lifetime_spectrum, convolution_start, convolution_stop)
2703 NOISE_NA = _IMP_bff.NOISE_NA
2704 
2705 NOISE_POISSON = _IMP_bff.NOISE_POISSON
2706 
2707 class DecayCurve(object):
2708  r"""Proxy of C++ IMP::bff::DecayCurve class."""
2709 
2710  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2711  __repr__ = _swig_repr
2712 
2713  @staticmethod
2714  def shift_array(input, shift):
2715  r"""shift_array(double * input, double shift) -> VectorDouble"""
2716  return _IMP_bff.DecayCurve_shift_array(input, shift)
2717 
2718  def size(self):
2719  r"""size(DecayCurve self) -> size_t"""
2720  return _IMP_bff.DecayCurve_size(self)
2721 
2722  def empty(self):
2723  r"""empty(DecayCurve self) -> bool"""
2724  return _IMP_bff.DecayCurve_empty(self)
2725 
2726  def get_dx(self):
2727  r"""get_dx(DecayCurve self) -> VectorDouble"""
2728  return _IMP_bff.DecayCurve_get_dx(self)
2729 
2730  def resize(self, n, v=0.0, dx=1.0):
2731  r"""resize(DecayCurve self, size_t n, double v=0.0, double dx=1.0)"""
2732  return _IMP_bff.DecayCurve_resize(self, n, v, dx)
2733 
2734  def get_average_dx(self):
2735  r"""get_average_dx(DecayCurve self) -> double"""
2736  return _IMP_bff.DecayCurve_get_average_dx(self)
2737 
2738  def get_x(self):
2739  r"""get_x(DecayCurve self) -> VectorDouble"""
2740  return _IMP_bff.DecayCurve_get_x(self)
2741 
2742  def set_x(self, *args):
2743  r"""
2744  set_x(DecayCurve self, VectorDouble v)
2745  set_x(DecayCurve self, double * input)
2746  """
2747  return _IMP_bff.DecayCurve_set_x(self, *args)
2748 
2749  def get_y(self):
2750  r"""get_y(DecayCurve self) -> VectorDouble"""
2751  return _IMP_bff.DecayCurve_get_y(self)
2752 
2753  def set_y(self, *args):
2754  r"""
2755  set_y(DecayCurve self, VectorDouble v)
2756  set_y(DecayCurve self, double * input)
2757  """
2758  return _IMP_bff.DecayCurve_set_y(self, *args)
2759 
2760  def get_ey(self):
2761  r"""get_ey(DecayCurve self) -> VectorDouble"""
2762  return _IMP_bff.DecayCurve_get_ey(self)
2763 
2764  def set_ey(self, *args):
2765  r"""
2766  set_ey(DecayCurve self, VectorDouble v)
2767  set_ey(DecayCurve self, double * input)
2768  """
2769  return _IMP_bff.DecayCurve_set_ey(self, *args)
2770 
2771  def set_acquisition_time(self, v):
2772  r"""set_acquisition_time(DecayCurve self, double v)"""
2773  return _IMP_bff.DecayCurve_set_acquisition_time(self, v)
2774 
2775  def get_acquisition_time(self):
2776  r"""get_acquisition_time(DecayCurve self) -> double"""
2777  return _IMP_bff.DecayCurve_get_acquisition_time(self)
2778 
2779  def set_shift(self, v):
2780  r"""set_shift(DecayCurve self, double v)"""
2781  return _IMP_bff.DecayCurve_set_shift(self, v)
2782 
2783  def get_shift(self):
2784  r"""get_shift(DecayCurve self) -> double"""
2785  return _IMP_bff.DecayCurve_get_shift(self)
2786 
2787  def get_json(self):
2788  r"""get_json(DecayCurve self) -> std::string"""
2789  return _IMP_bff.DecayCurve_get_json(self)
2790 
2791  def read_json(self, json_string):
2792  r"""read_json(DecayCurve self, std::string json_string) -> int"""
2793  return _IMP_bff.DecayCurve_read_json(self, json_string)
2794 
2795  def __init__(self, *args, **kwargs):
2796  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"""
2797  _IMP_bff.DecayCurve_swiginit(self, _IMP_bff.new_DecayCurve(*args, **kwargs))
2798 
2799  def sum(self, start=0, stop=-1):
2800  r"""sum(DecayCurve self, int start=0, int stop=-1) -> double"""
2801  return _IMP_bff.DecayCurve_sum(self, start, stop)
2802 
2803  def apply_simple_moving_average(self, start, stop, n_window=5, normalize=False):
2804  r"""apply_simple_moving_average(DecayCurve self, int start, int stop, int n_window=5, bool normalize=False)"""
2805  return _IMP_bff.DecayCurve_apply_simple_moving_average(self, start, stop, n_window, normalize)
2806 
2807  def __iadd__(self, v):
2808  r"""__iadd__(DecayCurve self, double v) -> DecayCurve"""
2809  return _IMP_bff.DecayCurve___iadd__(self, v)
2810 
2811  def __isub__(self, v):
2812  r"""__isub__(DecayCurve self, double v) -> DecayCurve"""
2813  return _IMP_bff.DecayCurve___isub__(self, v)
2814 
2815  def __imul__(self, v):
2816  r"""__imul__(DecayCurve self, double v) -> DecayCurve"""
2817  return _IMP_bff.DecayCurve___imul__(self, v)
2818 
2819  def __itruediv__(self, *args):
2820  return _IMP_bff.DecayCurve___itruediv__(self, *args)
2821  __idiv__ = __itruediv__
2822 
2823 
2824 
2825  def __add__(self, *args):
2826  r"""
2827  __add__(DecayCurve self, double v) -> DecayCurve
2828  __add__(DecayCurve self, DecayCurve other) -> DecayCurve
2829  """
2830  return _IMP_bff.DecayCurve___add__(self, *args)
2831 
2832  def __sub__(self, *args):
2833  r"""
2834  __sub__(DecayCurve self, double v) -> DecayCurve
2835  __sub__(DecayCurve self, DecayCurve other) -> DecayCurve
2836  """
2837  return _IMP_bff.DecayCurve___sub__(self, *args)
2838 
2839  def __mul__(self, *args):
2840  r"""
2841  __mul__(DecayCurve self, double v) -> DecayCurve
2842  __mul__(DecayCurve self, DecayCurve other) -> DecayCurve
2843  """
2844  return _IMP_bff.DecayCurve___mul__(self, *args)
2845 
2846  def __truediv__(self, *args):
2847  return _IMP_bff.DecayCurve___truediv__(self, *args)
2848  __div__ = __truediv__
2849 
2850 
2851 
2852  def __lshift__(self, v):
2853  r"""__lshift__(DecayCurve self, double v) -> DecayCurve"""
2854  return _IMP_bff.DecayCurve___lshift__(self, v)
2855 
2856  acquisition_time = property(get_acquisition_time, set_acquisition_time)
2857 
2858 
2859  shift = property(get_shift, set_shift)
2860 
2861 
2862  x = property(
2863  lambda x: np.array(x.get_x()),
2864  set_x
2865  )
2866 
2867 
2868  y = property(
2869  lambda x: np.array(x.get_y()),
2870  set_y
2871  )
2872 
2873 
2874  ey = property(
2875  lambda x: np.array(x.get_ey()),
2876  set_ey
2877  )
2878 
2879  __swig_destroy__ = _IMP_bff.delete_DecayCurve
2880 
2881 # Register DecayCurve in _IMP_bff:
2882 _IMP_bff.DecayCurve_swigregister(DecayCurve)
2883 
2884 DecayRanges=list
2885 _plural_types.append("DecayRanges")
2886 _value_types.append("DecayRange")
2887 
2888 class DecayRange(IMP._Value):
2889  r"""Proxy of C++ IMP::bff::DecayRange class."""
2890 
2891  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2892 
2893  def get_start(self, d=None):
2894  r"""get_start(DecayRange self, DecayCurve d=None) -> size_t"""
2895  return _IMP_bff.DecayRange_get_start(self, d)
2896 
2897  def get_stop(self, d=None):
2898  r"""get_stop(DecayRange self, DecayCurve d=None) -> size_t"""
2899  return _IMP_bff.DecayRange_get_stop(self, d)
2900 
2901  def set_range(self, v):
2902  r"""set_range(DecayRange self, VectorInt v)"""
2903  return _IMP_bff.DecayRange_set_range(self, v)
2904 
2905  def get_range(self, d=None):
2906  r"""get_range(DecayRange self, DecayCurve d=None) -> VectorInt"""
2907  return _IMP_bff.DecayRange_get_range(self, d)
2908 
2909  def set(self, start=0, stop=-1):
2910  r"""set(DecayRange self, int start=0, int stop=-1)"""
2911  return _IMP_bff.DecayRange_set(self, start, stop)
2912 
2913  def __init__(self, start, stop):
2914  r"""__init__(DecayRange self, int start, int stop) -> DecayRange"""
2915  _IMP_bff.DecayRange_swiginit(self, _IMP_bff.new_DecayRange(start, stop))
2916  __swig_destroy__ = _IMP_bff.delete_DecayRange
2917 
2918  def show(self, *args, **kwargs):
2919  r"""show(DecayRange self, _ostream out=std::cout)"""
2920  return _IMP_bff.DecayRange_show(self, *args, **kwargs)
2921 
2922  def __str__(self):
2923  r"""__str__(DecayRange self) -> std::string"""
2924  return _IMP_bff.DecayRange___str__(self)
2925 
2926  def __repr__(self):
2927  r"""__repr__(DecayRange self) -> std::string"""
2928  return _IMP_bff.DecayRange___repr__(self)
2929  start = property(_IMP_bff.DecayRange_start_get, _IMP_bff.DecayRange_start_set, doc=r"""start : int""")
2930  stop = property(_IMP_bff.DecayRange_stop_get, _IMP_bff.DecayRange_stop_set, doc=r"""stop : int""")
2931 
2932 # Register DecayRange in _IMP_bff:
2933 _IMP_bff.DecayRange_swigregister(DecayRange)
2934 
2935 _object_types.append("DecayLifetimeHandler")
2936 
2937 
2938 def _object_cast_to_DecayLifetimeHandler(o):
2939  r"""_object_cast_to_DecayLifetimeHandler(Object o) -> DecayLifetimeHandler"""
2940  return _IMP_bff._object_cast_to_DecayLifetimeHandler(o)
2941 class DecayLifetimeHandler(IMP.Object):
2942  r"""Proxy of C++ IMP::bff::DecayLifetimeHandler class."""
2943 
2944  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2945 
2946  def add_lifetime(self, amplitude, lifetime):
2947  r"""add_lifetime(DecayLifetimeHandler self, double amplitude, double lifetime)"""
2948  return _IMP_bff.DecayLifetimeHandler_add_lifetime(self, amplitude, lifetime)
2949 
2950  def get_lifetime_spectrum(self):
2951  r"""get_lifetime_spectrum(DecayLifetimeHandler self)"""
2952  return _IMP_bff.DecayLifetimeHandler_get_lifetime_spectrum(self)
2953 
2954  def __init__(self, *args, **kwargs):
2955  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"""
2956  _IMP_bff.DecayLifetimeHandler_swiginit(self, _IMP_bff.new_DecayLifetimeHandler(*args, **kwargs))
2957 
2958  def get_version_info(self):
2959  r"""get_version_info(DecayLifetimeHandler self) -> VersionInfo"""
2960  return _IMP_bff.DecayLifetimeHandler_get_version_info(self)
2961  __swig_destroy__ = _IMP_bff.delete_DecayLifetimeHandler
2962 
2963  def __str__(self):
2964  r"""__str__(DecayLifetimeHandler self) -> std::string"""
2965  return _IMP_bff.DecayLifetimeHandler___str__(self)
2966 
2967  def __repr__(self):
2968  r"""__repr__(DecayLifetimeHandler self) -> std::string"""
2969  return _IMP_bff.DecayLifetimeHandler___repr__(self)
2970 
2971  @staticmethod
2972  def get_from(o):
2973  return _object_cast_to_DecayLifetimeHandler(o)
2974 
2975  abs_lifetime_spectrum = property(_IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_get, _IMP_bff.DecayLifetimeHandler_abs_lifetime_spectrum_set, doc=r"""abs_lifetime_spectrum : bool""")
2976  use_amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_use_amplitude_threshold_set, doc=r"""use_amplitude_threshold : bool""")
2977  amplitude_threshold = property(_IMP_bff.DecayLifetimeHandler_amplitude_threshold_get, _IMP_bff.DecayLifetimeHandler_amplitude_threshold_set, doc=r"""amplitude_threshold : double""")
2978  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)>)>""")
2979 
2980 # Register DecayLifetimeHandler in _IMP_bff:
2981 _IMP_bff.DecayLifetimeHandler_swigregister(DecayLifetimeHandler)
2982 
2983 DecayModifiers=list
2984 _plural_types.append("DecayModifiers")
2985 _value_types.append("DecayModifier")
2986 
2987 class DecayModifier(DecayRange):
2988  r"""Proxy of C++ IMP::bff::DecayModifier class."""
2989 
2990  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2991 
2992  def __init__(self, *args, **kwargs):
2993  raise AttributeError("No constructor defined - class is abstract")
2994 
2995  def set_data(self, v):
2996  r"""set_data(DecayModifier self, DecayCurve v)"""
2997  return _IMP_bff.DecayModifier_set_data(self, v)
2998 
2999  def get_data(self):
3000  r"""get_data(DecayModifier self) -> DecayCurve"""
3001  return _IMP_bff.DecayModifier_get_data(self)
3002 
3003  def set(self, data, start=0, stop=-1, active=True):
3004  r"""set(DecayModifier self, DecayCurve data, int start=0, int stop=-1, bool active=True)"""
3005  return _IMP_bff.DecayModifier_set(self, data, start, stop, active)
3006 
3007  def resize(self, n, v=0.0):
3008  r"""resize(DecayModifier self, size_t n, double v=0.0)"""
3009  return _IMP_bff.DecayModifier_resize(self, n, v)
3010 
3011  def add(self, out):
3012  r"""add(DecayModifier self, DecayCurve out)"""
3013  return _IMP_bff.DecayModifier_add(self, out)
3014  __swig_destroy__ = _IMP_bff.delete_DecayModifier
3015 
3016  def __str__(self):
3017  r"""__str__(DecayModifier self) -> std::string"""
3018  return _IMP_bff.DecayModifier___str__(self)
3019 
3020  def __repr__(self):
3021  r"""__repr__(DecayModifier self) -> std::string"""
3022  return _IMP_bff.DecayModifier___repr__(self)
3023  active = property(_IMP_bff.DecayModifier_active_get, _IMP_bff.DecayModifier_active_set, doc=r"""active : bool""")
3024 
3025  data = property(get_data, set_data)
3026 
3027 
3028  def __call__(self, *args, **kwargs):
3029  self.add(*args, **kwargs)
3030 
3031 
3032 # Register DecayModifier in _IMP_bff:
3033 _IMP_bff.DecayModifier_swigregister(DecayModifier)
3034 
3035 DecayConvolutions=list
3036 _plural_types.append("DecayConvolutions")
3037 _value_types.append("DecayConvolution")
3038 
3039 class DecayConvolution(DecayModifier):
3040  r"""Proxy of C++ IMP::bff::DecayConvolution class."""
3041 
3042  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3043  FAST_PERIODIC_TIME = _IMP_bff.DecayConvolution_FAST_PERIODIC_TIME
3044 
3045  FAST_TIME = _IMP_bff.DecayConvolution_FAST_TIME
3046 
3047  FAST_PERIODIC = _IMP_bff.DecayConvolution_FAST_PERIODIC
3048 
3049  FAST = _IMP_bff.DecayConvolution_FAST
3050 
3051  FAST_AVX = _IMP_bff.DecayConvolution_FAST_AVX
3052 
3053  FAST_PERIODIC_AVX = _IMP_bff.DecayConvolution_FAST_PERIODIC_AVX
3054 
3055 
3056  @staticmethod
3057  def compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts):
3058  r"""compute_corrected_irf(DecayCurve irf, DecayCurve corrected_irf, double irf_shift_channels, double irf_background_counts)"""
3059  return _IMP_bff.DecayConvolution_compute_corrected_irf(irf, corrected_irf, irf_shift_channels, irf_background_counts)
3060 
3061  @staticmethod
3062  def compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution):
3063  r"""compute_mean_lifetime(VectorDouble irf_histogram, VectorDouble decay_histogram, double micro_time_resolution) -> double"""
3064  return _IMP_bff.DecayConvolution_compute_mean_lifetime(irf_histogram, decay_histogram, micro_time_resolution)
3065 
3066  def set_irf(self, v):
3067  r"""set_irf(DecayConvolution self, DecayCurve v)"""
3068  return _IMP_bff.DecayConvolution_set_irf(self, v)
3069 
3070  def get_irf(self):
3071  r"""get_irf(DecayConvolution self) -> DecayCurve"""
3072  return _IMP_bff.DecayConvolution_get_irf(self)
3073 
3074  def get_mean_lifetime(self, decay):
3075  r"""get_mean_lifetime(DecayConvolution self, DecayCurve decay) -> double"""
3076  return _IMP_bff.DecayConvolution_get_mean_lifetime(self, decay)
3077 
3078  def set(self, *args, **kwargs):
3079  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)"""
3080  return _IMP_bff.DecayConvolution_set(self, *args, **kwargs)
3081 
3082  def __init__(self, *args, **kwargs):
3083  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"""
3084  _IMP_bff.DecayConvolution_swiginit(self, _IMP_bff.new_DecayConvolution(*args, **kwargs))
3085  __swig_destroy__ = _IMP_bff.delete_DecayConvolution
3086 
3087  def __str__(self):
3088  r"""__str__(DecayConvolution self) -> std::string"""
3089  return _IMP_bff.DecayConvolution___str__(self)
3090 
3091  def __repr__(self):
3092  r"""__repr__(DecayConvolution self) -> std::string"""
3093  return _IMP_bff.DecayConvolution___repr__(self)
3094  corrected_irf = property(_IMP_bff.DecayConvolution_corrected_irf_get, doc=r"""corrected_irf : r.IMP::bff::DecayCurve""")
3095  convolution_method = property(_IMP_bff.DecayConvolution_convolution_method_get, _IMP_bff.DecayConvolution_convolution_method_set, doc=r"""convolution_method : int""")
3096  excitation_period = property(_IMP_bff.DecayConvolution_excitation_period_get, _IMP_bff.DecayConvolution_excitation_period_set, doc=r"""excitation_period : double""")
3097  irf_shift_channels = property(_IMP_bff.DecayConvolution_irf_shift_channels_get, _IMP_bff.DecayConvolution_irf_shift_channels_set, doc=r"""irf_shift_channels : double""")
3098  irf_background_counts = property(_IMP_bff.DecayConvolution_irf_background_counts_get, _IMP_bff.DecayConvolution_irf_background_counts_set, doc=r"""irf_background_counts : double""")
3099 
3100  irf = property(get_irf, set_irf)
3101 
3102 
3103 # Register DecayConvolution in _IMP_bff:
3104 _IMP_bff.DecayConvolution_swigregister(DecayConvolution)
3105 
3106 DecayPatterns=list
3107 _plural_types.append("DecayPatterns")
3108 _value_types.append("DecayPattern")
3109 
3110 class DecayPattern(DecayModifier):
3111  r"""Proxy of C++ IMP::bff::DecayPattern class."""
3112 
3113  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3114 
3115  def __init__(self, constant_offset=0.0, pattern=None, pattern_fraction=0.0, start=0, stop=-1, active=True):
3116  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"""
3117  _IMP_bff.DecayPattern_swiginit(self, _IMP_bff.new_DecayPattern(constant_offset, pattern, pattern_fraction, start, stop, active))
3118 
3119  def __str__(self):
3120  r"""__str__(DecayPattern self) -> std::string"""
3121  return _IMP_bff.DecayPattern___str__(self)
3122 
3123  def __repr__(self):
3124  r"""__repr__(DecayPattern self) -> std::string"""
3125  return _IMP_bff.DecayPattern___repr__(self)
3126  pattern = property(_IMP_bff.DecayPattern_pattern_get, _IMP_bff.DecayPattern_pattern_set, doc=r"""pattern : p.IMP::bff::DecayCurve""")
3127  pattern_fraction = property(_IMP_bff.DecayPattern_pattern_fraction_get, _IMP_bff.DecayPattern_pattern_fraction_set, doc=r"""pattern_fraction : double""")
3128  constant_offset = property(_IMP_bff.DecayPattern_constant_offset_get, _IMP_bff.DecayPattern_constant_offset_set, doc=r"""constant_offset : double""")
3129  __swig_destroy__ = _IMP_bff.delete_DecayPattern
3130 
3131 # Register DecayPattern in _IMP_bff:
3132 _IMP_bff.DecayPattern_swigregister(DecayPattern)
3133 
3134 DecayPileups=list
3135 _plural_types.append("DecayPileups")
3136 _value_types.append("DecayPileup")
3137 
3138 class DecayPileup(DecayModifier):
3139  r"""Proxy of C++ IMP::bff::DecayPileup class."""
3140 
3141  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3142 
3143  def __init__(self, *args, **kwargs):
3144  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"""
3145  _IMP_bff.DecayPileup_swiginit(self, _IMP_bff.new_DecayPileup(*args, **kwargs))
3146 
3147  def __str__(self):
3148  r"""__str__(DecayPileup self) -> std::string"""
3149  return _IMP_bff.DecayPileup___str__(self)
3150 
3151  def __repr__(self):
3152  r"""__repr__(DecayPileup self) -> std::string"""
3153  return _IMP_bff.DecayPileup___repr__(self)
3154  instrument_dead_time = property(_IMP_bff.DecayPileup_instrument_dead_time_get, _IMP_bff.DecayPileup_instrument_dead_time_set, doc=r"""instrument_dead_time : double""")
3155  repetition_rate = property(_IMP_bff.DecayPileup_repetition_rate_get, _IMP_bff.DecayPileup_repetition_rate_set, doc=r"""repetition_rate : double""")
3156  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""")
3157  __swig_destroy__ = _IMP_bff.delete_DecayPileup
3158 
3159 # Register DecayPileup in _IMP_bff:
3160 _IMP_bff.DecayPileup_swigregister(DecayPileup)
3161 
3162 DecayLinearizations=list
3163 _plural_types.append("DecayLinearizations")
3164 _value_types.append("DecayLinearization")
3165 
3166 class DecayLinearization(DecayModifier):
3167  r"""Proxy of C++ IMP::bff::DecayLinearization class."""
3168 
3169  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3170 
3171  def set_linearization_table(self, v):
3172  r"""set_linearization_table(DecayLinearization self, DecayCurve v)"""
3173  return _IMP_bff.DecayLinearization_set_linearization_table(self, v)
3174 
3175  def get_linearization_table(self):
3176  r"""get_linearization_table(DecayLinearization self) -> DecayCurve"""
3177  return _IMP_bff.DecayLinearization_get_linearization_table(self)
3178 
3179  def __init__(self, linearization_table, start, stop, active=True, n_window=5):
3180  r"""__init__(DecayLinearization self, DecayCurve linearization_table, int start, int stop, bool active=True, int n_window=5) -> DecayLinearization"""
3181  _IMP_bff.DecayLinearization_swiginit(self, _IMP_bff.new_DecayLinearization(linearization_table, start, stop, active, n_window))
3182 
3183  def __str__(self):
3184  r"""__str__(DecayLinearization self) -> std::string"""
3185  return _IMP_bff.DecayLinearization___str__(self)
3186 
3187  def __repr__(self):
3188  r"""__repr__(DecayLinearization self) -> std::string"""
3189  return _IMP_bff.DecayLinearization___repr__(self)
3190  __swig_destroy__ = _IMP_bff.delete_DecayLinearization
3191 
3192 # Register DecayLinearization in _IMP_bff:
3193 _IMP_bff.DecayLinearization_swigregister(DecayLinearization)
3194 
3195 DecayScales=list
3196 _plural_types.append("DecayScales")
3197 _value_types.append("DecayScale")
3198 
3199 class DecayScale(DecayModifier):
3200  r"""Proxy of C++ IMP::bff::DecayScale class."""
3201 
3202  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3203 
3204  def set_blank_outside(self, v):
3205  r"""set_blank_outside(DecayScale self, double v)"""
3206  return _IMP_bff.DecayScale_set_blank_outside(self, v)
3207 
3208  def get_blank_outside(self):
3209  r"""get_blank_outside(DecayScale self) -> bool"""
3210  return _IMP_bff.DecayScale_get_blank_outside(self)
3211 
3212  def set(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3213  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)"""
3214  return _IMP_bff.DecayScale_set(self, data, constant_background, start, stop, active, blank_outside)
3215 
3216  def __init__(self, data=None, constant_background=0.0, start=0, stop=-1, active=True, blank_outside=True):
3217  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"""
3218  _IMP_bff.DecayScale_swiginit(self, _IMP_bff.new_DecayScale(data, constant_background, start, stop, active, blank_outside))
3219 
3220  def __str__(self):
3221  r"""__str__(DecayScale self) -> std::string"""
3222  return _IMP_bff.DecayScale___str__(self)
3223 
3224  def __repr__(self):
3225  r"""__repr__(DecayScale self) -> std::string"""
3226  return _IMP_bff.DecayScale___repr__(self)
3227  number_of_photons = property(_IMP_bff.DecayScale_number_of_photons_get, doc=r"""number_of_photons : double""")
3228  constant_background = property(_IMP_bff.DecayScale_constant_background_get, _IMP_bff.DecayScale_constant_background_set, doc=r"""constant_background : double""")
3229  __swig_destroy__ = _IMP_bff.delete_DecayScale
3230 
3231 # Register DecayScale in _IMP_bff:
3232 _IMP_bff.DecayScale_swigregister(DecayScale)
3233 
3234 DecayScores=list
3235 _plural_types.append("DecayScores")
3236 _value_types.append("DecayScore")
3237 
3238 class DecayScore(DecayRange):
3239  r"""Proxy of C++ IMP::bff::DecayScore class."""
3240 
3241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3242 
3243  def get_model(self):
3244  r"""get_model(DecayScore self) -> DecayCurve"""
3245  return _IMP_bff.DecayScore_get_model(self)
3246 
3247  def set_model(self, v):
3248  r"""set_model(DecayScore self, DecayCurve v)"""
3249  return _IMP_bff.DecayScore_set_model(self, v)
3250 
3251  def get_data(self):
3252  r"""get_data(DecayScore self) -> DecayCurve"""
3253  return _IMP_bff.DecayScore_get_data(self)
3254 
3255  def set_data(self, v):
3256  r"""set_data(DecayScore self, DecayCurve v)"""
3257  return _IMP_bff.DecayScore_set_data(self, v)
3258 
3259  def get_weighted_residuals(self):
3260  r"""get_weighted_residuals(DecayScore self) -> VectorDouble"""
3261  return _IMP_bff.DecayScore_get_weighted_residuals(self)
3262 
3263  def get_score(self, start=0, stop=-1, score_type=None):
3264  r"""get_score(DecayScore self, int start=0, int stop=-1, char const * score_type=None) -> double"""
3265  return _IMP_bff.DecayScore_get_score(self, start, stop, score_type)
3266 
3267  def set(self, *args, **kwargs):
3268  r"""set(DecayScore self, DecayCurve model, DecayCurve data, std::string score_type="poisson", int start=0, int stop=-1)"""
3269  return _IMP_bff.DecayScore_set(self, *args, **kwargs)
3270 
3271  def __init__(self, *args, **kwargs):
3272  r"""__init__(DecayScore self, DecayCurve model=None, DecayCurve data=None, std::string score_type="poisson", int start=0, int stop=-1) -> DecayScore"""
3273  _IMP_bff.DecayScore_swiginit(self, _IMP_bff.new_DecayScore(*args, **kwargs))
3274  __swig_destroy__ = _IMP_bff.delete_DecayScore
3275 
3276  def __str__(self):
3277  r"""__str__(DecayScore self) -> std::string"""
3278  return _IMP_bff.DecayScore___str__(self)
3279 
3280  def __repr__(self):
3281  r"""__repr__(DecayScore self) -> std::string"""
3282  return _IMP_bff.DecayScore___repr__(self)
3283  score_type = property(_IMP_bff.DecayScore_score_type_get, _IMP_bff.DecayScore_score_type_set, doc=r"""score_type : std::string""")
3284  score = property(_IMP_bff.DecayScore_score_get, doc=r"""score : double""")
3285 
3286  model = property(get_model, set_model)
3287 
3288 
3289  data = property(get_data, set_data)
3290 
3291 
3292  weighted_residuals = property(
3293  lambda x: np.array(x.get_weighted_residuals())
3294  )
3295 
3296 
3297 # Register DecayScore in _IMP_bff:
3298 _IMP_bff.DecayScore_swigregister(DecayScore)
3299 
3300 def get_module_version():
3301  r"""get_module_version() -> std::string const"""
3302  return _IMP_bff.get_module_version()
3303 
3304 def get_example_path(fname):
3305  r"""get_example_path(std::string fname) -> std::string"""
3306  return _IMP_bff.get_example_path(fname)
3307 
3308 def get_data_path(fname):
3309  r"""get_data_path(std::string fname) -> std::string"""
3310  return _IMP_bff.get_data_path(fname)
3311 
3312 from . import _version_check
3313 _version_check.check_version(get_module_version())
3314 __version__ = get_module_version()
3315 
3316 
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