IMP logo
IMP Reference Guide  develop.02fce3ae61,2026/01/08
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.1
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-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_core
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_CORE_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_CORE_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_core.delete_IMP_CORE_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
78  return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
82  return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
86  return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
94  return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
98  return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
102  return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
106  return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
110  return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
114  return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
118  return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
122  return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
126  return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
130  return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
134  return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
139  __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_CORE_SwigPyIterator in _IMP_core:
146 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_core.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_core.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_core.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_core.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_core.IMP_MEMORY
166 
167 IMP_NONE = _IMP_core.IMP_NONE
168 
169 IMP_USAGE = _IMP_core.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_core.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
204  def register(self, obj):
205  """Take a reference to a director object; will only work for
206  refcounted C++ classes"""
207  if hasattr(obj, 'get_ref_count'):
208  self._objects.append(obj)
209  def cleanup(self):
210  """Only drop our reference and allow cleanup by Python if no other
211  Python references exist (we hold 3 references: one in self._objects,
212  one in x, and one in the argument list for getrefcount) *and* no
213  other C++ references exist (the Python object always holds one)"""
214  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
215  or x.get_ref_count() > 1]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
219  def get_object_count(self):
220  """Get number of director objects (useful for testing only)"""
221  return len(self._objects)
222 _director_objects = _DirectorObjects()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_core._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_core:
238 _IMP_core._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
271 
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
273 
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
277 
278 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
279 
280 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
281 
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
283 
284 import IMP.display
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
286 
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
292 
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
294 
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
296 
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
298 
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
300 
301 import IMP.score_functor
302 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
303 
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
305 
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
307 
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
309 
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
311 
312 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
313 
314 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
315 
316 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
317 
318 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
319 
320 class _OpenCubicSplineBase(IMP.UnaryFunction):
321  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
322 
323  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
324  __repr__ = _swig_repr
325 
326  def __init__(self, *args):
327  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
328  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
329 
330  def get_version_info(self):
331  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
332  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
333  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
334 
335 # Register _OpenCubicSplineBase in _IMP_core:
336 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
337 
338 _object_types.append("MonteCarloMover")
339 
340 
341 def _object_cast_to_MonteCarloMover(o):
342  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
343  return _IMP_core._object_cast_to_MonteCarloMover(o)
344 
345 MonteCarloMoverResults=list
346 _plural_types.append("MonteCarloMoverResults")
347 _value_types.append("MonteCarloMoverResult")
348 
349 
350 _object_types.append("AngleRestraint")
351 
352 
353 def _object_cast_to_AngleRestraint(o):
354  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
355  return _IMP_core._object_cast_to_AngleRestraint(o)
356 
357 _object_types.append("AngleTripletScore")
358 
359 
360 def _object_cast_to_AngleTripletScore(o):
361  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
362  return _IMP_core._object_cast_to_AngleTripletScore(o)
363 
364 _object_types.append("AttributeSingletonScore")
365 
366 
367 def _object_cast_to_AttributeSingletonScore(o):
368  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
369  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
370 
371 _object_types.append("BallMover")
372 
373 
374 def _object_cast_to_BallMover(o):
375  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
376  return _IMP_core._object_cast_to_BallMover(o)
377 
378 _object_types.append("SerialMover")
379 
380 
381 def _object_cast_to_SerialMover(o):
382  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
383  return _IMP_core._object_cast_to_SerialMover(o)
384 
385 _object_types.append("SubsetMover")
386 
387 
388 def _object_cast_to_SubsetMover(o):
389  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
390  return _IMP_core._object_cast_to_SubsetMover(o)
391 
392 _object_types.append("DirectionMover")
393 
394 
395 def _object_cast_to_DirectionMover(o):
396  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
397  return _IMP_core._object_cast_to_DirectionMover(o)
398 
399 _object_types.append("SurfaceMover")
400 
401 
402 def _object_cast_to_SurfaceMover(o):
403  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
404  return _IMP_core._object_cast_to_SurfaceMover(o)
405 
406 _object_types.append("BoundingBox3DSingletonScore")
407 
408 
409 def _object_cast_to_BoundingBox3DSingletonScore(o):
410  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
411  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
412 
413 _object_types.append("BoundingSphere3DSingletonScore")
414 
415 
416 def _object_cast_to_BoundingSphere3DSingletonScore(o):
417  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
418  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
419 
420 _object_types.append("BoxSweepClosePairsFinder")
421 
422 
423 def _object_cast_to_BoxSweepClosePairsFinder(o):
424  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
425  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
426 
427 _object_types.append("NearestNeighborsClosePairsFinder")
428 
429 
430 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
431  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
432  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
433 
434 _object_types.append("CentroidOfRefined")
435 
436 
437 def _object_cast_to_CentroidOfRefined(o):
438  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
439  return _IMP_core._object_cast_to_CentroidOfRefined(o)
440 
441 _object_types.append("ChecksScoreState")
442 
443 
444 def _object_cast_to_ChecksScoreState(o):
445  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
446  return _IMP_core._object_cast_to_ChecksScoreState(o)
447 
448 _object_types.append("ChildrenRefiner")
449 
450 
451 def _object_cast_to_ChildrenRefiner(o):
452  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
453  return _IMP_core._object_cast_to_ChildrenRefiner(o)
454 
455 _object_types.append("ClosePairsFinder")
456 
457 
458 def _object_cast_to_ClosePairsFinder(o):
459  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
460  return _IMP_core._object_cast_to_ClosePairsFinder(o)
461 
462 _object_types.append("ClosePairsPairScore")
463 
464 
465 def _object_cast_to_ClosePairsPairScore(o):
466  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
467  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
468 
469 _object_types.append("ClosedCubicSpline")
470 
471 
472 def _object_cast_to_ClosedCubicSpline(o):
473  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
474  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
475 
476 _object_types.append("ConjugateGradients")
477 
478 
479 def _object_cast_to_ConjugateGradients(o):
480  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
481  return _IMP_core._object_cast_to_ConjugateGradients(o)
482 
483 _object_types.append("ConnectivityRestraint")
484 
485 
486 def _object_cast_to_ConnectivityRestraint(o):
487  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
488  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
489 
490 _object_types.append("ConstantRestraint")
491 
492 
493 def _object_cast_to_ConstantRestraint(o):
494  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
495  return _IMP_core._object_cast_to_ConstantRestraint(o)
496 
497 _object_types.append("Cosine")
498 
499 
500 def _object_cast_to_Cosine(o):
501  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
502  return _IMP_core._object_cast_to_Cosine(o)
503 
504 _object_types.append("CoverRefined")
505 
506 
507 def _object_cast_to_CoverRefined(o):
508  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
509  return _IMP_core._object_cast_to_CoverRefined(o)
510 
511 _object_types.append("DerivativesFromRefined")
512 
513 
514 def _object_cast_to_DerivativesFromRefined(o):
515  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
516  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
517 
518 _object_types.append("DerivativesToRefined")
519 
520 
521 def _object_cast_to_DerivativesToRefined(o):
522  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
523  return _IMP_core._object_cast_to_DerivativesToRefined(o)
524 
525 _object_types.append("WeightedDerivativesToRefined")
526 
527 
528 def _object_cast_to_WeightedDerivativesToRefined(o):
529  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
530  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
531 
532 _object_types.append("DiameterRestraint")
533 
534 
535 def _object_cast_to_DiameterRestraint(o):
536  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
537  return _IMP_core._object_cast_to_DiameterRestraint(o)
538 
539 _object_types.append("DihedralRestraint")
540 
541 
542 def _object_cast_to_DihedralRestraint(o):
543  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
544  return _IMP_core._object_cast_to_DihedralRestraint(o)
545 
546 _object_types.append("DistanceRestraint")
547 
548 
549 def _object_cast_to_DistanceRestraint(o):
550  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
551  return _IMP_core._object_cast_to_DistanceRestraint(o)
552 
553 _object_types.append("DistanceToSingletonScore")
554 
555 
556 def _object_cast_to_DistanceToSingletonScore(o):
557  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
558  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
559 
560 _object_types.append("ExcludedVolumeRestraint")
561 
562 
563 def _object_cast_to_ExcludedVolumeRestraint(o):
564  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
565  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
566 
567 _object_types.append("FixedRefiner")
568 
569 
570 def _object_cast_to_FixedRefiner(o):
571  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
572  return _IMP_core._object_cast_to_FixedRefiner(o)
573 
574 _object_types.append("GridClosePairsFinder")
575 
576 
577 def _object_cast_to_GridClosePairsFinder(o):
578  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
579  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
580 
581 _object_types.append("Harmonic")
582 
583 
584 def _object_cast_to_Harmonic(o):
585  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
586  return _IMP_core._object_cast_to_Harmonic(o)
587 
588 _object_types.append("HarmonicWell")
589 
590 
591 def _object_cast_to_HarmonicWell(o):
592  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
593  return _IMP_core._object_cast_to_HarmonicWell(o)
594 
595 _object_types.append("HarmonicLowerBound")
596 
597 
598 def _object_cast_to_HarmonicLowerBound(o):
599  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
600  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
601 
602 _object_types.append("HarmonicUpperBound")
603 
604 
605 def _object_cast_to_HarmonicUpperBound(o):
606  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
607  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
608 
609 _object_types.append("HarmonicSphereDistancePairScore")
610 
611 
612 def _object_cast_to_HarmonicSphereDistancePairScore(o):
613  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
614  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
615 
616 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
617 
618 
619 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
620  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
621  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
622 
623 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
624 
625 
626 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
627  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
628  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
629 
630 _object_types.append("HarmonicSurfaceDistancePairScore")
631 
632 
633 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
634  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
635  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
636 
637 _object_types.append("HarmonicSurfaceHeightPairScore")
638 
639 
640 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
641  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
642  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
643 
644 _object_types.append("HarmonicSurfaceDepthPairScore")
645 
646 
647 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
648  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
649  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
650 
651 _object_types.append("WeightedSum")
652 
653 
654 def _object_cast_to_WeightedSum(o):
655  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
656  return _IMP_core._object_cast_to_WeightedSum(o)
657 
658 _object_types.append("WeightedSumOfExponential")
659 
660 
661 def _object_cast_to_WeightedSumOfExponential(o):
662  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
663  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
664 
665 _object_types.append("KClosePairsPairScore")
666 
667 
668 def _object_cast_to_KClosePairsPairScore(o):
669  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
670  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
671 
672 _object_types.append("LeavesRefiner")
673 
674 
675 def _object_cast_to_LeavesRefiner(o):
676  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
677  return _IMP_core._object_cast_to_LeavesRefiner(o)
678 
679 _object_types.append("Linear")
680 
681 
682 def _object_cast_to_Linear(o):
683  r"""_object_cast_to_Linear(Object o) -> Linear"""
684  return _IMP_core._object_cast_to_Linear(o)
685 
686 _object_types.append("LogNormalMover")
687 
688 
689 def _object_cast_to_LogNormalMover(o):
690  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
691  return _IMP_core._object_cast_to_LogNormalMover(o)
692 
693 _object_types.append("MCCGSampler")
694 
695 
696 def _object_cast_to_MCCGSampler(o):
697  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
698  return _IMP_core._object_cast_to_MCCGSampler(o)
699 
700 _object_types.append("MonteCarlo")
701 
702 
703 def _object_cast_to_MonteCarlo(o):
704  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
705  return _IMP_core._object_cast_to_MonteCarlo(o)
706 
707 _object_types.append("MonteCarloWithLocalOptimization")
708 
709 
710 def _object_cast_to_MonteCarloWithLocalOptimization(o):
711  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
712  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
713 
714 _object_types.append("MonteCarloWithBasinHopping")
715 
716 
717 def _object_cast_to_MonteCarloWithBasinHopping(o):
718  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
719  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
720 
721 _object_types.append("MSConnectivityRestraint")
722 
723 
724 def _object_cast_to_MSConnectivityRestraint(o):
725  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
726  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
727 
728 _object_types.append("NeighborsTable")
729 
730 
731 def _object_cast_to_NeighborsTable(o):
732  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
733  return _IMP_core._object_cast_to_NeighborsTable(o)
734 
735 _object_types.append("NormalMover")
736 
737 
738 def _object_cast_to_NormalMover(o):
739  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
740  return _IMP_core._object_cast_to_NormalMover(o)
741 
742 _object_types.append("NormalizedSphereDistancePairScore")
743 
744 
745 def _object_cast_to_NormalizedSphereDistancePairScore(o):
746  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
747  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
748 
749 _object_types.append("OpenCubicSpline")
750 
751 
752 def _object_cast_to_OpenCubicSpline(o):
753  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
754  return _IMP_core._object_cast_to_OpenCubicSpline(o)
755 
756 _object_types.append("PairConstraint")
757 
758 
759 def _object_cast_to_PairConstraint(o):
760  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
761  return _IMP_core._object_cast_to_PairConstraint(o)
762 
763 _object_types.append("PairRestraint")
764 
765 
766 def _object_cast_to_PairRestraint(o):
767  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
768  return _IMP_core._object_cast_to_PairRestraint(o)
769 
770 _object_types.append("QuadConstraint")
771 
772 
773 def _object_cast_to_QuadConstraint(o):
774  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
775  return _IMP_core._object_cast_to_QuadConstraint(o)
776 
777 _object_types.append("QuadRestraint")
778 
779 
780 def _object_cast_to_QuadRestraint(o):
781  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
782  return _IMP_core._object_cast_to_QuadRestraint(o)
783 
784 _object_types.append("QuadraticClosePairsFinder")
785 
786 
787 def _object_cast_to_QuadraticClosePairsFinder(o):
788  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
789  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
790 
791 _object_types.append("RefinedPairsPairScore")
792 
793 
794 def _object_cast_to_RefinedPairsPairScore(o):
795  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
796  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
797 
798 _object_types.append("RestraintsScoringFunction")
799 
800 
801 def _object_cast_to_RestraintsScoringFunction(o):
802  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
803  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
804 
805 _object_types.append("RigidBodyDistancePairScore")
806 
807 
808 def _object_cast_to_RigidBodyDistancePairScore(o):
809  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
810  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
811 
812 _object_types.append("RigidBodyAnglePairScore")
813 
814 
815 def _object_cast_to_RigidBodyAnglePairScore(o):
816  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
817  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
818 
819 _object_types.append("RigidBodyMover")
820 
821 
822 def _object_cast_to_RigidBodyMover(o):
823  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
824  return _IMP_core._object_cast_to_RigidBodyMover(o)
825 
826 _object_types.append("RigidBodyTunneler")
827 
828 
829 def _object_cast_to_RigidBodyTunneler(o):
830  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
831  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
832 
833 _object_types.append("RigidBodyUmbrella")
834 
835 
836 def _object_cast_to_RigidBodyUmbrella(o):
837  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
838  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
839 
840 _object_types.append("RigidClosePairsFinder")
841 
842 
843 def _object_cast_to_RigidClosePairsFinder(o):
844  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
845  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
846 
847 _object_types.append("RigidMembersRefiner")
848 
849 
850 def _object_cast_to_RigidMembersRefiner(o):
851  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
852  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
853 
854 _object_types.append("SingletonConstraint")
855 
856 
857 def _object_cast_to_SingletonConstraint(o):
858  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
859  return _IMP_core._object_cast_to_SingletonConstraint(o)
860 
861 _object_types.append("SingletonRestraint")
862 
863 
864 def _object_cast_to_SingletonRestraint(o):
865  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
866  return _IMP_core._object_cast_to_SingletonRestraint(o)
867 
868 _object_types.append("SoftSpherePairScore")
869 
870 
871 def _object_cast_to_SoftSpherePairScore(o):
872  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
873  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
874 
875 _object_types.append("_SphereDistancePairScore")
876 
877 
878 def _object_cast_to__SphereDistancePairScore(o):
879  r"""_object_cast_to__SphereDistancePairScore(Object o) -> _SphereDistancePairScore"""
880  return _IMP_core._object_cast_to__SphereDistancePairScore(o)
881 
882 _object_types.append("SphereDistanceToSingletonScore")
883 
884 
885 def _object_cast_to_SphereDistanceToSingletonScore(o):
886  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
887  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
888 
889 _object_types.append("SoftSubSurfacePairScore")
890 
891 
892 def _object_cast_to_SoftSubSurfacePairScore(o):
893  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
894  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
895 
896 _object_types.append("SoftSuperSurfacePairScore")
897 
898 
899 def _object_cast_to_SoftSuperSurfacePairScore(o):
900  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
901  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
902 
903 _object_types.append("SurfaceDistancePairScore")
904 
905 
906 def _object_cast_to_SurfaceDistancePairScore(o):
907  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
908  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
909 
910 _object_types.append("SurfaceHeightPairScore")
911 
912 
913 def _object_cast_to_SurfaceHeightPairScore(o):
914  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
915  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
916 
917 _object_types.append("SurfaceDepthPairScore")
918 
919 
920 def _object_cast_to_SurfaceDepthPairScore(o):
921  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
922  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
923 
924 _object_types.append("SurfaceTetheredChain")
925 
926 
927 def _object_cast_to_SurfaceTetheredChain(o):
928  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
929  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
930 
931 _object_types.append("SurfaceSymmetryConstraint")
932 
933 
934 def _object_cast_to_SurfaceSymmetryConstraint(o):
935  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
936  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
937 
938 _object_types.append("SteepestDescent")
939 
940 
941 def _object_cast_to_SteepestDescent(o):
942  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
943  return _IMP_core._object_cast_to_SteepestDescent(o)
944 
945 _object_types.append("TableRefiner")
946 
947 
948 def _object_cast_to_TableRefiner(o):
949  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
950  return _IMP_core._object_cast_to_TableRefiner(o)
951 
952 _object_types.append("Transform")
953 
954 
955 def _object_cast_to_Transform(o):
956  r"""_object_cast_to_Transform(Object o) -> Transform"""
957  return _IMP_core._object_cast_to_Transform(o)
958 
959 _object_types.append("TransformationAndReflectionSymmetry")
960 
961 
962 def _object_cast_to_TransformationAndReflectionSymmetry(o):
963  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
964  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
965 
966 _object_types.append("TransformationSymmetry")
967 
968 
969 def _object_cast_to_TransformationSymmetry(o):
970  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
971  return _IMP_core._object_cast_to_TransformationSymmetry(o)
972 
973 _object_types.append("TransformationSymmetryMover")
974 
975 
976 def _object_cast_to_TransformationSymmetryMover(o):
977  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
978  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
979 
980 _object_types.append("TransformedDistancePairScore")
981 
982 
983 def _object_cast_to_TransformedDistancePairScore(o):
984  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
985  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
986 
987 _object_types.append("TripletConstraint")
988 
989 
990 def _object_cast_to_TripletConstraint(o):
991  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
992  return _IMP_core._object_cast_to_TripletConstraint(o)
993 
994 _object_types.append("TripletRestraint")
995 
996 
997 def _object_cast_to_TripletRestraint(o):
998  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
999  return _IMP_core._object_cast_to_TripletRestraint(o)
1000 
1001 _object_types.append("TypedPairScore")
1002 
1003 
1004 def _object_cast_to_TypedPairScore(o):
1005  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1006  return _IMP_core._object_cast_to_TypedPairScore(o)
1007 
1008 _object_types.append("VolumeRestraint")
1009 
1010 
1011 def _object_cast_to_VolumeRestraint(o):
1012  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1013  return _IMP_core._object_cast_to_VolumeRestraint(o)
1014 
1015 _object_types.append("WeightedSphereDistancePairScore")
1016 
1017 
1018 def _object_cast_to_WeightedSphereDistancePairScore(o):
1019  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1020  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1021 
1022 _object_types.append("MoveStatisticsScoreState")
1023 
1024 
1025 def _object_cast_to_MoveStatisticsScoreState(o):
1026  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1027  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1028 
1029 _object_types.append("MinimumRestraint")
1030 
1031 
1032 def _object_cast_to_MinimumRestraint(o):
1033  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1034  return _IMP_core._object_cast_to_MinimumRestraint(o)
1035 
1036 _object_types.append("WriteRestraintScoresOptimizerState")
1037 
1038 
1039 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1040  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1041  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1042 
1043 _object_types.append("LateralSurfaceConstraint")
1044 
1045 
1046 def _object_cast_to_LateralSurfaceConstraint(o):
1047  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1048  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1049 
1050 _object_types.append("ConstantSingletonPredicate")
1051 
1052 
1053 def _object_cast_to_ConstantSingletonPredicate(o):
1054  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1055  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1056 
1057 _object_types.append("ConstantPairPredicate")
1058 
1059 
1060 def _object_cast_to_ConstantPairPredicate(o):
1061  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1062  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1063 
1064 _object_types.append("ConstantTripletPredicate")
1065 
1066 
1067 def _object_cast_to_ConstantTripletPredicate(o):
1068  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1069  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1070 
1071 _object_types.append("ConstantQuadPredicate")
1072 
1073 
1074 def _object_cast_to_ConstantQuadPredicate(o):
1075  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1076  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1077 
1078 _object_types.append("CoinFlipSingletonPredicate")
1079 
1080 
1081 def _object_cast_to_CoinFlipSingletonPredicate(o):
1082  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1083  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1084 
1085 _object_types.append("CoinFlipPairPredicate")
1086 
1087 
1088 def _object_cast_to_CoinFlipPairPredicate(o):
1089  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1090  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1091 
1092 _object_types.append("CoinFlipTripletPredicate")
1093 
1094 
1095 def _object_cast_to_CoinFlipTripletPredicate(o):
1096  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1097  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1098 
1099 _object_types.append("CoinFlipQuadPredicate")
1100 
1101 
1102 def _object_cast_to_CoinFlipQuadPredicate(o):
1103  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1104  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1105 
1106 _object_types.append("UnorderedTypeSingletonPredicate")
1107 
1108 
1109 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1110  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1111  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1112 
1113 _object_types.append("UnorderedTypePairPredicate")
1114 
1115 
1116 def _object_cast_to_UnorderedTypePairPredicate(o):
1117  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1118  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1119 
1120 _object_types.append("UnorderedTypeTripletPredicate")
1121 
1122 
1123 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1124  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1125  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1126 
1127 _object_types.append("UnorderedTypeQuadPredicate")
1128 
1129 
1130 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1131  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1132  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1133 
1134 _object_types.append("OrderedTypeSingletonPredicate")
1135 
1136 
1137 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1138  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1139  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1140 
1141 _object_types.append("OrderedTypePairPredicate")
1142 
1143 
1144 def _object_cast_to_OrderedTypePairPredicate(o):
1145  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1146  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1147 
1148 _object_types.append("OrderedTypeTripletPredicate")
1149 
1150 
1151 def _object_cast_to_OrderedTypeTripletPredicate(o):
1152  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1153  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1154 
1155 _object_types.append("OrderedTypeQuadPredicate")
1156 
1157 
1158 def _object_cast_to_OrderedTypeQuadPredicate(o):
1159  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1160  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1161 
1162 _object_types.append("AllSameSingletonPredicate")
1163 
1164 
1165 def _object_cast_to_AllSameSingletonPredicate(o):
1166  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1167  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1168 
1169 _object_types.append("AllSamePairPredicate")
1170 
1171 
1172 def _object_cast_to_AllSamePairPredicate(o):
1173  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1174  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1175 
1176 _object_types.append("AllSameTripletPredicate")
1177 
1178 
1179 def _object_cast_to_AllSameTripletPredicate(o):
1180  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1181  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1182 
1183 _object_types.append("AllSameQuadPredicate")
1184 
1185 
1186 def _object_cast_to_AllSameQuadPredicate(o):
1187  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1188  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1189 
1190 def XYZs(l=[]):
1191  return [XYZ(x) for x in l]
1192 _plural_types.append("XYZs")
1193 
1194 
1195 _value_types.append("XYZ")
1196 
1197 
1198 def XYZRs(l=[]):
1199  return [XYZR(x) for x in l]
1200 _plural_types.append("XYZRs")
1201 
1202 
1203 _value_types.append("XYZR")
1204 
1205 
1206 def RigidBodies(l=[]):
1207  return [RigidBody(x) for x in l]
1208 _plural_types.append("RigidBodies")
1209 
1210 
1211 _value_types.append("RigidBody")
1212 
1213 
1214 def RigidBodyMembers(l=[]):
1215  return [RigidBodyMember(x) for x in l]
1216 _plural_types.append("RigidBodyMembers")
1217 
1218 
1219 _value_types.append("RigidBodyMember")
1220 
1221 
1222 def RigidMembers(l=[]):
1223  return [RigidMember(x) for x in l]
1224 _plural_types.append("RigidMembers")
1225 
1226 
1227 _value_types.append("RigidMember")
1228 
1229 
1230 def NonRigidMembers(l=[]):
1231  return [NonRigidMember(x) for x in l]
1232 _plural_types.append("NonRigidMembers")
1233 
1234 
1235 _value_types.append("NonRigidMember")
1236 
1237 
1238 def Centroids(l=[]):
1239  return [Centroid(x) for x in l]
1240 _plural_types.append("Centroids")
1241 
1242 
1243 _value_types.append("Centroid")
1244 
1245 
1246 def Covers(l=[]):
1247  return [Cover(x) for x in l]
1248 _plural_types.append("Covers")
1249 
1250 
1251 _value_types.append("Cover")
1252 
1253 
1254 def References(l=[]):
1255  return [Reference(x) for x in l]
1256 _plural_types.append("References")
1257 
1258 
1259 _value_types.append("Reference")
1260 
1261 
1262 ParticleTypes=list
1263 _plural_types.append("ParticleTypes")
1264 _value_types.append("ParticleType")
1265 
1266 
1267 def Typeds(l=[]):
1268  return [Typed(x) for x in l]
1269 _plural_types.append("Typeds")
1270 
1271 
1272 _value_types.append("Typed")
1273 
1274 
1275 def GenericHierarchies(l=[]):
1276  return [Hierarchy(x) for x in l]
1277 _plural_types.append("GenericHierarchies")
1278 
1279 
1280 _value_types.append("Hierarchy")
1281 
1282 
1283 def Gaussians(l=[]):
1284  return [Gaussian(x) for x in l]
1285 _plural_types.append("Gaussians")
1286 
1287 
1288 _value_types.append("Gaussian")
1289 
1290 
1291 def Directions(l=[]):
1292  return [Direction(x) for x in l]
1293 _plural_types.append("Directions")
1294 
1295 
1296 _value_types.append("Direction")
1297 
1298 
1299 def DirectionAngles(l=[]):
1300  return [DirectionAngle(x) for x in l]
1301 _plural_types.append("DirectionAngles")
1302 
1303 
1304 _value_types.append("DirectionAngle")
1305 
1306 
1307 def Surfaces(l=[]):
1308  return [Surface(x) for x in l]
1309 _plural_types.append("Surfaces")
1310 
1311 
1312 _value_types.append("Surface")
1313 
1314 
1315 def Provenances(l=[]):
1316  return [Provenance(x) for x in l]
1317 _plural_types.append("Provenances")
1318 
1319 
1320 _value_types.append("Provenance")
1321 
1322 
1323 def StructureProvenances(l=[]):
1324  return [StructureProvenance(x) for x in l]
1325 _plural_types.append("StructureProvenances")
1326 
1327 
1328 _value_types.append("StructureProvenance")
1329 
1330 
1331 def SampleProvenances(l=[]):
1332  return [SampleProvenance(x) for x in l]
1333 _plural_types.append("SampleProvenances")
1334 
1335 
1336 _value_types.append("SampleProvenance")
1337 
1338 
1339 def ClusterProvenances(l=[]):
1340  return [ClusterProvenance(x) for x in l]
1341 _plural_types.append("ClusterProvenances")
1342 
1343 
1344 _value_types.append("ClusterProvenance")
1345 
1346 
1347 def CombineProvenances(l=[]):
1348  return [CombineProvenance(x) for x in l]
1349 _plural_types.append("CombineProvenances")
1350 
1351 
1352 _value_types.append("CombineProvenance")
1353 
1354 
1355 def FilterProvenances(l=[]):
1356  return [FilterProvenance(x) for x in l]
1357 _plural_types.append("FilterProvenances")
1358 
1359 
1360 _value_types.append("FilterProvenance")
1361 
1362 
1363 def ScriptProvenances(l=[]):
1364  return [ScriptProvenance(x) for x in l]
1365 _plural_types.append("ScriptProvenances")
1366 
1367 
1368 _value_types.append("ScriptProvenance")
1369 
1370 
1371 def SoftwareProvenances(l=[]):
1372  return [SoftwareProvenance(x) for x in l]
1373 _plural_types.append("SoftwareProvenances")
1374 
1375 
1376 _value_types.append("SoftwareProvenance")
1377 
1378 
1379 def Provenanceds(l=[]):
1380  return [Provenanced(x) for x in l]
1381 _plural_types.append("Provenanceds")
1382 
1383 
1384 _value_types.append("Provenanced")
1385 
1386 
1387 HierarchyCounters=list
1388 _plural_types.append("HierarchyCounters")
1389 _value_types.append("HierarchyCounter")
1390 
1391 
1392 HierarchyTraitsList=list
1393 _plural_types.append("HierarchyTraitsList")
1394 _value_types.append("HierarchyTraits")
1395 
1396 
1397 _object_types.append("TruncatedHarmonicBound")
1398 
1399 
1400 def _object_cast_to_TruncatedHarmonicBound(o):
1401  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1402  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1403 
1404 _object_types.append("TruncatedHarmonicLowerBound")
1405 
1406 
1407 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1408  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1409  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1410 
1411 _object_types.append("TruncatedHarmonicUpperBound")
1412 
1413 
1414 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1415  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1416  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1417 
1418 _object_types.append("HarmonicDistancePairScore")
1419 
1420 
1421 def _object_cast_to_HarmonicDistancePairScore(o):
1422  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1423  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1424 
1425 _object_types.append("DistancePairScore")
1426 
1427 
1428 def _object_cast_to_DistancePairScore(o):
1429  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1430  return _IMP_core._object_cast_to_DistancePairScore(o)
1431 
1432 _object_types.append("XYZRGeometry")
1433 
1434 
1435 def _object_cast_to_XYZRGeometry(o):
1436  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1437  return _IMP_core._object_cast_to_XYZRGeometry(o)
1438 
1439 _object_types.append("XYZRsGeometry")
1440 
1441 
1442 def _object_cast_to_XYZRsGeometry(o):
1443  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1444  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1445 
1446 _object_types.append("XYZDerivativeGeometry")
1447 
1448 
1449 def _object_cast_to_XYZDerivativeGeometry(o):
1450  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1451  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1452 
1453 _object_types.append("XYZDerivativesGeometry")
1454 
1455 
1456 def _object_cast_to_XYZDerivativesGeometry(o):
1457  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1458  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1459 
1460 _object_types.append("RigidBodyDerivativeGeometry")
1461 
1462 
1463 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1464  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1465  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1466 
1467 _object_types.append("RigidBodyDerivativesGeometry")
1468 
1469 
1470 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1471  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1472  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1473 
1474 _object_types.append("RigidBodyHierarchyGeometry")
1475 
1476 
1477 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1478  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1479  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1480 
1481 _object_types.append("RigidBodyFrameGeometry")
1482 
1483 
1484 def _object_cast_to_RigidBodyFrameGeometry(o):
1485  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1486  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1487 
1488 _object_types.append("RigidBodyFramesGeometry")
1489 
1490 
1491 def _object_cast_to_RigidBodyFramesGeometry(o):
1492  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1493  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1494 
1495 _object_types.append("RigidBodyTorque")
1496 
1497 
1498 def _object_cast_to_RigidBodyTorque(o):
1499  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1500  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1501 
1502 _object_types.append("EdgePairGeometry")
1503 
1504 
1505 def _object_cast_to_EdgePairGeometry(o):
1506  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1507  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1508 
1509 _object_types.append("EdgePairsGeometry")
1510 
1511 
1512 def _object_cast_to_EdgePairsGeometry(o):
1513  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1514  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1515 
1516 _object_types.append("SurfaceGeometry")
1517 
1518 
1519 def _object_cast_to_SurfaceGeometry(o):
1520  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1521  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1522 
1523 _object_types.append("SurfaceGeometryConstraint")
1524 
1525 
1526 def _object_cast_to_SurfaceGeometryConstraint(o):
1527  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1528  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1529 
1530 _object_types.append("AttributeSingletonPredicate")
1531 
1532 
1533 def _object_cast_to_AttributeSingletonPredicate(o):
1534  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1535  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1536 
1537 _object_types.append("InBoundingBox3DSingletonPredicate")
1538 
1539 
1540 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1541  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1542  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1543 
1544 _object_types.append("IsCollisionPairPredicate")
1545 
1546 
1547 def _object_cast_to_IsCollisionPairPredicate(o):
1548  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1549  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1550 
1551 BinormalTermList=list
1552 _plural_types.append("BinormalTermList")
1553 _value_types.append("BinormalTerm")
1554 
1555 
1556 _object_types.append("MultipleBinormalRestraint")
1557 
1558 
1559 def _object_cast_to_MultipleBinormalRestraint(o):
1560  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1561  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1562 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1563  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1564 
1565  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1566 
1567  def __init__(self, *args, **kwargs):
1568  raise AttributeError("No constructor defined - class is abstract")
1569  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1570 
1571  def get_close_pairs(self, *args):
1572  r"""
1573  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1574  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1575  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1576  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1577  """
1578  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1579 
1580  def set_distance(self, d):
1581  r"""set_distance(ClosePairsFinder self, double d)"""
1582  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1583 
1584  def get_distance(self):
1585  r"""get_distance(ClosePairsFinder self) -> double"""
1586  return _IMP_core.ClosePairsFinder_get_distance(self)
1587  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
1588  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1589  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1590  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1591 
1592  def remove_pair_filter(self, d):
1593  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1594  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1595 
1596  def _python_index_pair_filter(self, d, start, stop):
1597  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1598  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1599 
1600  def remove_pair_filters(self, d):
1601  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1602  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1603 
1604  def set_pair_filters(self, ps):
1605  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1606  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1607 
1608  def set_pair_filters_order(self, objs):
1609  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1610  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1611 
1612  def add_pair_filter(self, obj):
1613  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1614  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1615 
1616  def add_pair_filters(self, objs):
1617  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1619 
1620  def clear_pair_filters(self):
1621  r"""clear_pair_filters(ClosePairsFinder self)"""
1622  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1623 
1624  def get_number_of_pair_filters(self):
1625  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1626  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1627 
1628  def get_has_pair_filters(self):
1629  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1630  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1631 
1632  def get_pair_filter(self, i):
1633  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1634  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1635 
1636  def get_pair_filters(self):
1637  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1638  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1639 
1640  def erase_pair_filter(self, i):
1641  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1642  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1643 
1644  def reserve_pair_filters(self, sz):
1645  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1646  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1647 
1648  def __str__(self):
1649  r"""__str__(ClosePairsFinder self) -> std::string"""
1650  return _IMP_core.ClosePairsFinder___str__(self)
1651 
1652  def __repr__(self):
1653  r"""__repr__(ClosePairsFinder self) -> std::string"""
1654  return _IMP_core.ClosePairsFinder___repr__(self)
1655 
1656  @staticmethod
1657  def get_from(o):
1658  return _object_cast_to_ClosePairsFinder(o)
1659 
1660 
1661 # Register ClosePairsFinder in _IMP_core:
1662 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1663 class MonteCarloMoverResult(IMP._Value):
1664  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1665 
1666  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1667 
1668  def __init__(self, *args):
1669  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1670  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1671 
1672  def __hash__(self):
1673  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1674  return _IMP_core.MonteCarloMoverResult___hash__(self)
1675 
1676  def show(self, *args):
1677  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1678  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1679 
1680  def __cmp__(self, o):
1681  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1682  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1683 
1684  def __eq__(self, o):
1685  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1686  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1687 
1688  def __ne__(self, o):
1689  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1690  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1691 
1692  def __lt__(self, o):
1693  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1695 
1696  def __gt__(self, o):
1697  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1699 
1700  def __ge__(self, o):
1701  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1703 
1704  def __le__(self, o):
1705  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1707 
1708  def get_moved_particles(self):
1709  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1710  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1711 
1712  def set_moved_particles(self, v):
1713  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1714  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1715 
1716  def get_proposal_ratio(self):
1717  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1718  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1719 
1720  def set_proposal_ratio(self, v):
1721  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1722  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1723 
1724  def __str__(self):
1725  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1726  return _IMP_core.MonteCarloMoverResult___str__(self)
1727 
1728  def __repr__(self):
1729  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1730  return _IMP_core.MonteCarloMoverResult___repr__(self)
1731  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1732 
1733 # Register MonteCarloMoverResult in _IMP_core:
1734 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1735 class MonteCarloMover(IMP.ModelObject):
1736  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1737 
1738  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1739 
1740  def __init__(self, *args):
1741  r"""
1742  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1743  __init__(MonteCarloMover self) -> MonteCarloMover
1744  """
1745  if self.__class__ == MonteCarloMover:
1746  _self = None
1747  else:
1748  _self = self
1749  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1750 
1751  if self.__class__ != MonteCarloMover:
1752  _director_objects.register(self)
1753 
1754 
1755 
1756 
1757  def propose(self):
1758  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1759  return _IMP_core.MonteCarloMover_propose(self)
1760 
1761  def reject(self):
1762  r"""reject(MonteCarloMover self)"""
1763  return _IMP_core.MonteCarloMover_reject(self)
1764 
1765  def accept(self):
1766  r"""accept(MonteCarloMover self)"""
1767  return _IMP_core.MonteCarloMover_accept(self)
1768 
1769  def get_number_of_proposed(self):
1770  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1771  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1772 
1773  def get_number_of_accepted(self):
1774  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1775  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1776 
1777  def reset_statistics(self):
1778  r"""reset_statistics(MonteCarloMover self)"""
1779  return _IMP_core.MonteCarloMover_reset_statistics(self)
1780 
1781  def do_propose(self):
1782  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1783  return _IMP_core.MonteCarloMover_do_propose(self)
1784 
1785  def do_reject(self):
1786  r"""do_reject(MonteCarloMover self)"""
1787  return _IMP_core.MonteCarloMover_do_reject(self)
1788 
1789  def do_accept(self):
1790  r"""do_accept(MonteCarloMover self)"""
1791  return _IMP_core.MonteCarloMover_do_accept(self)
1792 
1793  def do_get_outputs(self):
1794  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1795  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1796 
1797  def __str__(self):
1798  r"""__str__(MonteCarloMover self) -> std::string"""
1799  return _IMP_core.MonteCarloMover___str__(self)
1800 
1801  def __repr__(self):
1802  r"""__repr__(MonteCarloMover self) -> std::string"""
1803  return _IMP_core.MonteCarloMover___repr__(self)
1804 
1805  @staticmethod
1806  def get_from(o):
1807  return _object_cast_to_MonteCarloMover(o)
1808 
1809 
1810  def do_show(self, out):
1811  pass
1812 
1813  @staticmethod
1814  def get_from(o):
1815  return _object_cast_to_MonteCarloMover(o)
1816 
1817 
1818  def _get_jax(self):
1819  """Return a JAX implementation of this mover.
1820  Implement this method in a MonteCarloMover subclass to provide
1821  an equivalent function using [JAX](https://docs.jax.dev/)
1822  that given the random number generator state and the current model
1823  state, returns a proposed new model state and the proposal ratio.
1824  """
1825  raise NotImplementedError(f"No JAX implementation for {self}")
1826 
1827  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1828  def __disown__(self):
1829  self.this.disown()
1830  _IMP_core.disown_MonteCarloMover(self)
1831  return weakref.proxy(self)
1832 
1833  def do_destroy(self):
1834  r"""do_destroy(MonteCarloMover self)"""
1835  return _IMP_core.MonteCarloMover_do_destroy(self)
1836 
1837  def handle_set_has_required_score_states(self, arg0):
1838  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1839  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1840 
1841  def do_get_inputs(self):
1842  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1843  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1844 
1845  def do_get_interactions(self):
1846  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1847  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1848 
1849 # Register MonteCarloMover in _IMP_core:
1850 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1851 class XYZ(IMP.Decorator):
1852  r"""Proxy of C++ IMP::core::XYZ class."""
1853 
1854  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1855 
1856  @staticmethod
1857  def get_coordinate_key(i):
1858  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1859  return _IMP_core.XYZ_get_coordinate_key(i)
1860 
1861  def __init__(self, *args):
1862  r"""
1863  __init__(XYZ self) -> XYZ
1864  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1865  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1866  """
1867  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1868 
1869  def show(self, *args):
1870  r"""show(XYZ self, _ostream out=std::cout)"""
1871  return _IMP_core.XYZ_show(self, *args)
1872 
1873  @staticmethod
1874  def setup_particle(*args):
1875  r"""
1876  setup_particle(Model m, ParticleIndex pi) -> XYZ
1877  setup_particle(_ParticleAdaptor pa) -> XYZ
1878  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1879  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1880  """
1881  return _IMP_core.XYZ_setup_particle(*args)
1882 
1883  def get_x(self):
1884  r"""get_x(XYZ self) -> IMP::Float"""
1885  return _IMP_core.XYZ_get_x(self)
1886 
1887  def set_x(self, t):
1888  r"""set_x(XYZ self, IMP::Float t)"""
1889  return _IMP_core.XYZ_set_x(self, t)
1890 
1891  def get_y(self):
1892  r"""get_y(XYZ self) -> IMP::Float"""
1893  return _IMP_core.XYZ_get_y(self)
1894 
1895  def set_y(self, t):
1896  r"""set_y(XYZ self, IMP::Float t)"""
1897  return _IMP_core.XYZ_set_y(self, t)
1898 
1899  def get_z(self):
1900  r"""get_z(XYZ self) -> IMP::Float"""
1901  return _IMP_core.XYZ_get_z(self)
1902 
1903  def set_z(self, t):
1904  r"""set_z(XYZ self, IMP::Float t)"""
1905  return _IMP_core.XYZ_set_z(self, t)
1906 
1907  def set_coordinate(self, i, v):
1908  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1909  return _IMP_core.XYZ_set_coordinate(self, i, v)
1910 
1911  def set_coordinates(self, v):
1912  r"""set_coordinates(XYZ self, Vector3D v)"""
1913  return _IMP_core.XYZ_set_coordinates(self, v)
1914 
1915  def get_coordinate(self, i):
1916  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1917  return _IMP_core.XYZ_get_coordinate(self, i)
1918 
1919  def add_to_derivatives(self, v, d):
1920  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1921  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1922 
1923  def get_coordinates_are_optimized(self):
1924  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1925  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1926 
1927  def set_coordinates_are_optimized(self, tf):
1928  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1929  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1930 
1931  def get_vector_to(self, b):
1932  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1933  return _IMP_core.XYZ_get_vector_to(self, b)
1934 
1935  def get_coordinates(self):
1936  r"""get_coordinates(XYZ self) -> Vector3D"""
1937  return _IMP_core.XYZ_get_coordinates(self)
1938 
1939  def get_derivatives(self):
1940  r"""get_derivatives(XYZ self) -> Vector3D"""
1941  return _IMP_core.XYZ_get_derivatives(self)
1942 
1943  @staticmethod
1944  def get_is_setup(*args):
1945  r"""
1946  get_is_setup(_ParticleAdaptor p) -> bool
1947  get_is_setup(Model m, ParticleIndex pi) -> bool
1948  """
1949  return _IMP_core.XYZ_get_is_setup(*args)
1950 
1951  @staticmethod
1952  def get_xyz_keys():
1953  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1954  return _IMP_core.XYZ_get_xyz_keys()
1955 
1956  def add_attribute(self, *args):
1957  r"""
1958  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1959  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1960  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1961  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1962  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1963  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1964  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1965  add_attribute(XYZ self, ObjectKey a0, Object a1)
1966  add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1967  add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1968  add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1969  add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1970  """
1971  return _IMP_core.XYZ_add_attribute(self, *args)
1972 
1973  def get_value(self, *args):
1974  r"""
1975  get_value(XYZ self, FloatKey a0) -> IMP::Float
1976  get_value(XYZ self, IntKey a0) -> IMP::Int
1977  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1978  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1979  get_value(XYZ self, StringKey a0) -> IMP::String
1980  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1981  get_value(XYZ self, ObjectKey a0) -> Object
1982  get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1983  get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1984  get_value(XYZ self, SparseStringKey a0) -> IMP::String
1985  get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1986  """
1987  return _IMP_core.XYZ_get_value(self, *args)
1988 
1989  def set_value(self, *args):
1990  r"""
1991  set_value(XYZ self, FloatKey a0, IMP::Float a1)
1992  set_value(XYZ self, IntKey a0, IMP::Int a1)
1993  set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
1994  set_value(XYZ self, IntsKey a0, IMP::Ints a1)
1995  set_value(XYZ self, StringKey a0, IMP::String a1)
1996  set_value(XYZ self, ParticleIndexKey a0, Particle a1)
1997  set_value(XYZ self, ObjectKey a0, Object a1)
1998  set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
1999  set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2000  set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2001  set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2002  """
2003  return _IMP_core.XYZ_set_value(self, *args)
2004 
2005  def remove_attribute(self, *args):
2006  r"""
2007  remove_attribute(XYZ self, FloatKey a0)
2008  remove_attribute(XYZ self, IntKey a0)
2009  remove_attribute(XYZ self, FloatsKey a0)
2010  remove_attribute(XYZ self, IntsKey a0)
2011  remove_attribute(XYZ self, StringKey a0)
2012  remove_attribute(XYZ self, ParticleIndexKey a0)
2013  remove_attribute(XYZ self, ObjectKey a0)
2014  remove_attribute(XYZ self, SparseFloatKey a0)
2015  remove_attribute(XYZ self, SparseIntKey a0)
2016  remove_attribute(XYZ self, SparseStringKey a0)
2017  remove_attribute(XYZ self, SparseParticleIndexKey a0)
2018  """
2019  return _IMP_core.XYZ_remove_attribute(self, *args)
2020 
2021  def has_attribute(self, *args):
2022  r"""
2023  has_attribute(XYZ self, FloatKey a0) -> bool
2024  has_attribute(XYZ self, IntKey a0) -> bool
2025  has_attribute(XYZ self, FloatsKey a0) -> bool
2026  has_attribute(XYZ self, IntsKey a0) -> bool
2027  has_attribute(XYZ self, StringKey a0) -> bool
2028  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2029  has_attribute(XYZ self, ObjectKey a0) -> bool
2030  has_attribute(XYZ self, SparseFloatKey a0) -> bool
2031  has_attribute(XYZ self, SparseIntKey a0) -> bool
2032  has_attribute(XYZ self, SparseStringKey a0) -> bool
2033  has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2034  """
2035  return _IMP_core.XYZ_has_attribute(self, *args)
2036 
2037  def get_derivative(self, *args):
2038  r"""
2039  get_derivative(XYZ self, int i) -> IMP::Float
2040  get_derivative(XYZ self, FloatKey a0) -> double
2041  """
2042  return _IMP_core.XYZ_get_derivative(self, *args)
2043 
2044  def get_name(self):
2045  r"""get_name(XYZ self) -> std::string"""
2046  return _IMP_core.XYZ_get_name(self)
2047 
2048  def clear_caches(self):
2049  r"""clear_caches(XYZ self)"""
2050  return _IMP_core.XYZ_clear_caches(self)
2051 
2052  def set_name(self, a0):
2053  r"""set_name(XYZ self, std::string a0)"""
2054  return _IMP_core.XYZ_set_name(self, a0)
2055 
2056  def set_check_level(self, a0):
2057  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2058  return _IMP_core.XYZ_set_check_level(self, a0)
2059 
2060  def add_to_derivative(self, *args):
2061  r"""
2062  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2063  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2064  """
2065  return _IMP_core.XYZ_add_to_derivative(self, *args)
2066 
2067  def set_is_optimized(self, a0, a1):
2068  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2069  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2070 
2071  def get_is_optimized(self, a0):
2072  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2073  return _IMP_core.XYZ_get_is_optimized(self, a0)
2074 
2075  def get_check_level(self):
2076  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2077  return _IMP_core.XYZ_get_check_level(self)
2078 
2079  def __eq__(self, *args):
2080  r"""
2081  __eq__(XYZ self, XYZ o) -> bool
2082  __eq__(XYZ self, Particle d) -> bool
2083  """
2084  return _IMP_core.XYZ___eq__(self, *args)
2085 
2086  def __ne__(self, *args):
2087  r"""
2088  __ne__(XYZ self, XYZ o) -> bool
2089  __ne__(XYZ self, Particle d) -> bool
2090  """
2091  return _IMP_core.XYZ___ne__(self, *args)
2092 
2093  def __le__(self, *args):
2094  r"""
2095  __le__(XYZ self, XYZ o) -> bool
2096  __le__(XYZ self, Particle d) -> bool
2097  """
2098  return _IMP_core.XYZ___le__(self, *args)
2099 
2100  def __lt__(self, *args):
2101  r"""
2102  __lt__(XYZ self, XYZ o) -> bool
2103  __lt__(XYZ self, Particle d) -> bool
2104  """
2105  return _IMP_core.XYZ___lt__(self, *args)
2106 
2107  def __ge__(self, *args):
2108  r"""
2109  __ge__(XYZ self, XYZ o) -> bool
2110  __ge__(XYZ self, Particle d) -> bool
2111  """
2112  return _IMP_core.XYZ___ge__(self, *args)
2113 
2114  def __gt__(self, *args):
2115  r"""
2116  __gt__(XYZ self, XYZ o) -> bool
2117  __gt__(XYZ self, Particle d) -> bool
2118  """
2119  return _IMP_core.XYZ___gt__(self, *args)
2120 
2121  def __hash__(self):
2122  r"""__hash__(XYZ self) -> std::size_t"""
2123  return _IMP_core.XYZ___hash__(self)
2124 
2125  def __str__(self):
2126  r"""__str__(XYZ self) -> std::string"""
2127  return _IMP_core.XYZ___str__(self)
2128 
2129  def __repr__(self):
2130  r"""__repr__(XYZ self) -> std::string"""
2131  return _IMP_core.XYZ___repr__(self)
2132 
2133  def _get_as_binary(self):
2134  r"""_get_as_binary(XYZ self) -> PyObject *"""
2135  return _IMP_core.XYZ__get_as_binary(self)
2136 
2137  def _set_from_binary(self, p):
2138  r"""_set_from_binary(XYZ self, PyObject * p)"""
2139  return _IMP_core.XYZ__set_from_binary(self, p)
2140 
2141  def __getstate__(self):
2142  p = self._get_as_binary()
2143  if len(self.__dict__) > 1:
2144  d = self.__dict__.copy()
2145  del d['this']
2146  p = (d, p)
2147  return p
2148 
2149  def __setstate__(self, p):
2150  if not hasattr(self, 'this'):
2151  self.__init__()
2152  if isinstance(p, tuple):
2153  d, p = p
2154  self.__dict__.update(d)
2155  return self._set_from_binary(p)
2156 
2157  __swig_destroy__ = _IMP_core.delete_XYZ
2158 
2159 # Register XYZ in _IMP_core:
2160 _IMP_core.XYZ_swigregister(XYZ)
2161 
2162 def set_vector_geometry(d, v):
2163  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2164  return _IMP_core.set_vector_geometry(d, v)
2165 
2166 def get_vector_geometry(d):
2167  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2168  return _IMP_core.get_vector_geometry(d)
2169 
2170 def get_dihedral(a, b, c, d):
2171  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2172  return _IMP_core.get_dihedral(a, b, c, d)
2173 class XYZR(XYZ):
2174  r"""Proxy of C++ IMP::core::XYZR class."""
2175 
2176  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2177 
2178  def __init__(self, *args):
2179  r"""
2180  __init__(XYZR self) -> XYZR
2181  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2182  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2183  """
2184  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2185 
2186  def show(self, *args):
2187  r"""show(XYZR self, _ostream out=std::cout)"""
2188  return _IMP_core.XYZR_show(self, *args)
2189 
2190  @staticmethod
2191  def setup_particle(*args):
2192  r"""
2193  setup_particle(Model m, ParticleIndex pi) -> XYZR
2194  setup_particle(_ParticleAdaptor pa) -> XYZR
2195  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2196  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2197  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2198  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2199  """
2200  return _IMP_core.XYZR_setup_particle(*args)
2201 
2202  @staticmethod
2203  def get_is_setup(*args):
2204  r"""
2205  get_is_setup(_ParticleAdaptor p) -> bool
2206  get_is_setup(Model m, ParticleIndex pi) -> bool
2207  """
2208  return _IMP_core.XYZR_get_is_setup(*args)
2209 
2210  def get_radius(self):
2211  r"""get_radius(XYZR self) -> double"""
2212  return _IMP_core.XYZR_get_radius(self)
2213 
2214  def set_radius(self, r):
2215  r"""set_radius(XYZR self, double r)"""
2216  return _IMP_core.XYZR_set_radius(self, r)
2217 
2218  def get_sphere(self):
2219  r"""get_sphere(XYZR self) -> Sphere3D"""
2220  return _IMP_core.XYZR_get_sphere(self)
2221 
2222  def set_sphere(self, s):
2223  r"""set_sphere(XYZR self, Sphere3D s)"""
2224  return _IMP_core.XYZR_set_sphere(self, s)
2225 
2226  @staticmethod
2227  def get_radius_key():
2228  r"""get_radius_key() -> FloatKey"""
2229  return _IMP_core.XYZR_get_radius_key()
2230 
2231  def add_to_radius_derivative(self, v, d):
2232  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2233  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2234 
2235  def add_attribute(self, *args):
2236  r"""
2237  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2238  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2239  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2240  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2241  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2242  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2243  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2244  add_attribute(XYZR self, ObjectKey a0, Object a1)
2245  add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2246  add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2247  add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2248  add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2249  """
2250  return _IMP_core.XYZR_add_attribute(self, *args)
2251 
2252  def get_value(self, *args):
2253  r"""
2254  get_value(XYZR self, FloatKey a0) -> IMP::Float
2255  get_value(XYZR self, IntKey a0) -> IMP::Int
2256  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2257  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2258  get_value(XYZR self, StringKey a0) -> IMP::String
2259  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2260  get_value(XYZR self, ObjectKey a0) -> Object
2261  get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2262  get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2263  get_value(XYZR self, SparseStringKey a0) -> IMP::String
2264  get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2265  """
2266  return _IMP_core.XYZR_get_value(self, *args)
2267 
2268  def set_value(self, *args):
2269  r"""
2270  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2271  set_value(XYZR self, IntKey a0, IMP::Int a1)
2272  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2273  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2274  set_value(XYZR self, StringKey a0, IMP::String a1)
2275  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2276  set_value(XYZR self, ObjectKey a0, Object a1)
2277  set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2278  set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2279  set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2280  set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2281  """
2282  return _IMP_core.XYZR_set_value(self, *args)
2283 
2284  def remove_attribute(self, *args):
2285  r"""
2286  remove_attribute(XYZR self, FloatKey a0)
2287  remove_attribute(XYZR self, IntKey a0)
2288  remove_attribute(XYZR self, FloatsKey a0)
2289  remove_attribute(XYZR self, IntsKey a0)
2290  remove_attribute(XYZR self, StringKey a0)
2291  remove_attribute(XYZR self, ParticleIndexKey a0)
2292  remove_attribute(XYZR self, ObjectKey a0)
2293  remove_attribute(XYZR self, SparseFloatKey a0)
2294  remove_attribute(XYZR self, SparseIntKey a0)
2295  remove_attribute(XYZR self, SparseStringKey a0)
2296  remove_attribute(XYZR self, SparseParticleIndexKey a0)
2297  """
2298  return _IMP_core.XYZR_remove_attribute(self, *args)
2299 
2300  def has_attribute(self, *args):
2301  r"""
2302  has_attribute(XYZR self, FloatKey a0) -> bool
2303  has_attribute(XYZR self, IntKey a0) -> bool
2304  has_attribute(XYZR self, FloatsKey a0) -> bool
2305  has_attribute(XYZR self, IntsKey a0) -> bool
2306  has_attribute(XYZR self, StringKey a0) -> bool
2307  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2308  has_attribute(XYZR self, ObjectKey a0) -> bool
2309  has_attribute(XYZR self, SparseFloatKey a0) -> bool
2310  has_attribute(XYZR self, SparseIntKey a0) -> bool
2311  has_attribute(XYZR self, SparseStringKey a0) -> bool
2312  has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2313  """
2314  return _IMP_core.XYZR_has_attribute(self, *args)
2315 
2316  def get_derivative(self, a0):
2317  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2318  return _IMP_core.XYZR_get_derivative(self, a0)
2319 
2320  def get_name(self):
2321  r"""get_name(XYZR self) -> std::string"""
2322  return _IMP_core.XYZR_get_name(self)
2323 
2324  def clear_caches(self):
2325  r"""clear_caches(XYZR self)"""
2326  return _IMP_core.XYZR_clear_caches(self)
2327 
2328  def set_name(self, a0):
2329  r"""set_name(XYZR self, std::string a0)"""
2330  return _IMP_core.XYZR_set_name(self, a0)
2331 
2332  def set_check_level(self, a0):
2333  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2334  return _IMP_core.XYZR_set_check_level(self, a0)
2335 
2336  def add_to_derivative(self, a0, a1, a2):
2337  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2338  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2339 
2340  def set_is_optimized(self, a0, a1):
2341  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2342  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2343 
2344  def get_is_optimized(self, a0):
2345  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2346  return _IMP_core.XYZR_get_is_optimized(self, a0)
2347 
2348  def get_check_level(self):
2349  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2350  return _IMP_core.XYZR_get_check_level(self)
2351 
2352  def __eq__(self, *args):
2353  r"""
2354  __eq__(XYZR self, XYZR o) -> bool
2355  __eq__(XYZR self, Particle d) -> bool
2356  """
2357  return _IMP_core.XYZR___eq__(self, *args)
2358 
2359  def __ne__(self, *args):
2360  r"""
2361  __ne__(XYZR self, XYZR o) -> bool
2362  __ne__(XYZR self, Particle d) -> bool
2363  """
2364  return _IMP_core.XYZR___ne__(self, *args)
2365 
2366  def __le__(self, *args):
2367  r"""
2368  __le__(XYZR self, XYZR o) -> bool
2369  __le__(XYZR self, Particle d) -> bool
2370  """
2371  return _IMP_core.XYZR___le__(self, *args)
2372 
2373  def __lt__(self, *args):
2374  r"""
2375  __lt__(XYZR self, XYZR o) -> bool
2376  __lt__(XYZR self, Particle d) -> bool
2377  """
2378  return _IMP_core.XYZR___lt__(self, *args)
2379 
2380  def __ge__(self, *args):
2381  r"""
2382  __ge__(XYZR self, XYZR o) -> bool
2383  __ge__(XYZR self, Particle d) -> bool
2384  """
2385  return _IMP_core.XYZR___ge__(self, *args)
2386 
2387  def __gt__(self, *args):
2388  r"""
2389  __gt__(XYZR self, XYZR o) -> bool
2390  __gt__(XYZR self, Particle d) -> bool
2391  """
2392  return _IMP_core.XYZR___gt__(self, *args)
2393 
2394  def __hash__(self):
2395  r"""__hash__(XYZR self) -> std::size_t"""
2396  return _IMP_core.XYZR___hash__(self)
2397 
2398  def __str__(self):
2399  r"""__str__(XYZR self) -> std::string"""
2400  return _IMP_core.XYZR___str__(self)
2401 
2402  def __repr__(self):
2403  r"""__repr__(XYZR self) -> std::string"""
2404  return _IMP_core.XYZR___repr__(self)
2405 
2406  def _get_as_binary(self):
2407  r"""_get_as_binary(XYZR self) -> PyObject *"""
2408  return _IMP_core.XYZR__get_as_binary(self)
2409 
2410  def _set_from_binary(self, p):
2411  r"""_set_from_binary(XYZR self, PyObject * p)"""
2412  return _IMP_core.XYZR__set_from_binary(self, p)
2413 
2414  def __getstate__(self):
2415  p = self._get_as_binary()
2416  if len(self.__dict__) > 1:
2417  d = self.__dict__.copy()
2418  del d['this']
2419  p = (d, p)
2420  return p
2421 
2422  def __setstate__(self, p):
2423  if not hasattr(self, 'this'):
2424  self.__init__()
2425  if isinstance(p, tuple):
2426  d, p = p
2427  self.__dict__.update(d)
2428  return self._set_from_binary(p)
2429 
2430  __swig_destroy__ = _IMP_core.delete_XYZR
2431 
2432 # Register XYZR in _IMP_core:
2433 _IMP_core.XYZR_swigregister(XYZR)
2434 
2435 def set_enclosing_sphere(b, v, slack=0):
2436  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2437  return _IMP_core.set_enclosing_sphere(b, v, slack)
2438 
2439 def set_enclosing_radius(b, v):
2440  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2441  return _IMP_core.set_enclosing_radius(b, v)
2442 
2443 def get_enclosing_sphere(v):
2444  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2445  return _IMP_core.get_enclosing_sphere(v)
2446 
2447 def create_xyzr_particles(m, num, radius, box_side=10):
2448  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2449  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2450 class XYZRGeometry(IMP.display.SingletonGeometry):
2451  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2452 
2453  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2454 
2455  def __init__(self, *args):
2456  r"""
2457  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2458  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2459  """
2460  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2461 
2462  def get_version_info(self):
2463  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2464  return _IMP_core.XYZRGeometry_get_version_info(self)
2465  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2466 
2467  def __str__(self):
2468  r"""__str__(XYZRGeometry self) -> std::string"""
2469  return _IMP_core.XYZRGeometry___str__(self)
2470 
2471  def __repr__(self):
2472  r"""__repr__(XYZRGeometry self) -> std::string"""
2473  return _IMP_core.XYZRGeometry___repr__(self)
2474 
2475  @staticmethod
2476  def get_from(o):
2477  return _object_cast_to_XYZRGeometry(o)
2478 
2479 
2480 # Register XYZRGeometry in _IMP_core:
2481 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2482 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2483  r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2484 
2485  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2486 
2487  def __init__(self, sc):
2488  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2489  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2490 
2491  def get_version_info(self):
2492  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2493  return _IMP_core.XYZRsGeometry_get_version_info(self)
2494  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2495 
2496  def __str__(self):
2497  r"""__str__(XYZRsGeometry self) -> std::string"""
2498  return _IMP_core.XYZRsGeometry___str__(self)
2499 
2500  def __repr__(self):
2501  r"""__repr__(XYZRsGeometry self) -> std::string"""
2502  return _IMP_core.XYZRsGeometry___repr__(self)
2503 
2504  @staticmethod
2505  def get_from(o):
2506  return _object_cast_to_XYZRsGeometry(o)
2507 
2508 
2509 # Register XYZRsGeometry in _IMP_core:
2510 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2511 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2512  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2513 
2514  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2515 
2516  def __init__(self, *args):
2517  r"""
2518  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2519  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2520  """
2521  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2522 
2523  def get_version_info(self):
2524  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2525  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2526  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2527 
2528  def __str__(self):
2529  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2530  return _IMP_core.XYZDerivativeGeometry___str__(self)
2531 
2532  def __repr__(self):
2533  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2534  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2535 
2536  @staticmethod
2537  def get_from(o):
2538  return _object_cast_to_XYZDerivativeGeometry(o)
2539 
2540 
2541 # Register XYZDerivativeGeometry in _IMP_core:
2542 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2543 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2544  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2545 
2546  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2547 
2548  def __init__(self, sc):
2549  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2550  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2551 
2552  def get_version_info(self):
2553  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2554  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2555  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2556 
2557  def __str__(self):
2558  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2559  return _IMP_core.XYZDerivativesGeometry___str__(self)
2560 
2561  def __repr__(self):
2562  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2563  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2564 
2565  @staticmethod
2566  def get_from(o):
2567  return _object_cast_to_XYZDerivativesGeometry(o)
2568 
2569 
2570 # Register XYZDerivativesGeometry in _IMP_core:
2571 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2572 class EdgePairGeometry(IMP.display.PairGeometry):
2573  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2574 
2575  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2576 
2577  def __init__(self, pp):
2578  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2579  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2580 
2581  def get_version_info(self):
2582  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2583  return _IMP_core.EdgePairGeometry_get_version_info(self)
2584  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2585 
2586  def __str__(self):
2587  r"""__str__(EdgePairGeometry self) -> std::string"""
2588  return _IMP_core.EdgePairGeometry___str__(self)
2589 
2590  def __repr__(self):
2591  r"""__repr__(EdgePairGeometry self) -> std::string"""
2592  return _IMP_core.EdgePairGeometry___repr__(self)
2593 
2594  @staticmethod
2595  def get_from(o):
2596  return _object_cast_to_EdgePairGeometry(o)
2597 
2598 
2599 # Register EdgePairGeometry in _IMP_core:
2600 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2601 class EdgePairsGeometry(IMP.display.PairsGeometry):
2602  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2603 
2604  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2605 
2606  def __init__(self, sc):
2607  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2608  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2609 
2610  def get_version_info(self):
2611  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2612  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2613  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2614 
2615  def __str__(self):
2616  r"""__str__(EdgePairsGeometry self) -> std::string"""
2617  return _IMP_core.EdgePairsGeometry___str__(self)
2618 
2619  def __repr__(self):
2620  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2621  return _IMP_core.EdgePairsGeometry___repr__(self)
2622 
2623  @staticmethod
2624  def get_from(o):
2625  return _object_cast_to_EdgePairsGeometry(o)
2626 
2627 
2628 # Register EdgePairsGeometry in _IMP_core:
2629 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2630 class Direction(IMP.Decorator):
2631  r"""Proxy of C++ IMP::core::Direction class."""
2632 
2633  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2634 
2635  @staticmethod
2636  def do_setup_particle(m, pi, v):
2637  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2638  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2639 
2640  def __init__(self, *args):
2641  r"""
2642  __init__(Direction self) -> Direction
2643  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2644  __init__(Direction self, _ParticleAdaptor d) -> Direction
2645  """
2646  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2647 
2648  def show(self, *args):
2649  r"""show(Direction self, _ostream out=std::cout)"""
2650  return _IMP_core.Direction_show(self, *args)
2651 
2652  @staticmethod
2653  def setup_particle(*args):
2654  r"""
2655  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2656  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2657  """
2658  return _IMP_core.Direction_setup_particle(*args)
2659 
2660  @staticmethod
2661  def get_is_setup(*args):
2662  r"""
2663  get_is_setup(_ParticleAdaptor p) -> bool
2664  get_is_setup(Model m, ParticleIndex pi) -> bool
2665  """
2666  return _IMP_core.Direction_get_is_setup(*args)
2667 
2668  @staticmethod
2669  def get_direction_key(i):
2670  r"""get_direction_key(unsigned int i) -> FloatKey"""
2671  return _IMP_core.Direction_get_direction_key(i)
2672 
2673  def get_direction_derivative(self, i):
2674  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2675  return _IMP_core.Direction_get_direction_derivative(self, i)
2676 
2677  def get_direction_derivatives(self):
2678  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2679  return _IMP_core.Direction_get_direction_derivatives(self)
2680 
2681  def add_to_direction_derivative(self, i, v, d):
2682  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2683  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2684 
2685  def add_to_direction_derivatives(self, v, d):
2686  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2687  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2688 
2689  def get_direction_is_optimized(self):
2690  r"""get_direction_is_optimized(Direction self) -> bool"""
2691  return _IMP_core.Direction_get_direction_is_optimized(self)
2692 
2693  def set_direction_is_optimized(self, tf):
2694  r"""set_direction_is_optimized(Direction self, bool tf)"""
2695  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2696 
2697  def get_direction(self):
2698  r"""get_direction(Direction self) -> Vector3D"""
2699  return _IMP_core.Direction_get_direction(self)
2700 
2701  def set_direction(self, v):
2702  r"""set_direction(Direction self, Vector3D v)"""
2703  return _IMP_core.Direction_set_direction(self, v)
2704 
2705  def reflect(self):
2706  r"""reflect(Direction self)"""
2707  return _IMP_core.Direction_reflect(self)
2708 
2709  def add_attribute(self, *args):
2710  r"""
2711  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2712  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2713  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2714  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2715  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2716  add_attribute(Direction self, StringKey a0, IMP::String a1)
2717  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2718  add_attribute(Direction self, ObjectKey a0, Object a1)
2719  add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2720  add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2721  add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2722  add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2723  """
2724  return _IMP_core.Direction_add_attribute(self, *args)
2725 
2726  def get_value(self, *args):
2727  r"""
2728  get_value(Direction self, FloatKey a0) -> IMP::Float
2729  get_value(Direction self, IntKey a0) -> IMP::Int
2730  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2731  get_value(Direction self, IntsKey a0) -> IMP::Ints
2732  get_value(Direction self, StringKey a0) -> IMP::String
2733  get_value(Direction self, ParticleIndexKey a0) -> Particle
2734  get_value(Direction self, ObjectKey a0) -> Object
2735  get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2736  get_value(Direction self, SparseIntKey a0) -> IMP::Int
2737  get_value(Direction self, SparseStringKey a0) -> IMP::String
2738  get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2739  """
2740  return _IMP_core.Direction_get_value(self, *args)
2741 
2742  def set_value(self, *args):
2743  r"""
2744  set_value(Direction self, FloatKey a0, IMP::Float a1)
2745  set_value(Direction self, IntKey a0, IMP::Int a1)
2746  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2747  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2748  set_value(Direction self, StringKey a0, IMP::String a1)
2749  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2750  set_value(Direction self, ObjectKey a0, Object a1)
2751  set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2752  set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2753  set_value(Direction self, SparseStringKey a0, IMP::String a1)
2754  set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2755  """
2756  return _IMP_core.Direction_set_value(self, *args)
2757 
2758  def remove_attribute(self, *args):
2759  r"""
2760  remove_attribute(Direction self, FloatKey a0)
2761  remove_attribute(Direction self, IntKey a0)
2762  remove_attribute(Direction self, FloatsKey a0)
2763  remove_attribute(Direction self, IntsKey a0)
2764  remove_attribute(Direction self, StringKey a0)
2765  remove_attribute(Direction self, ParticleIndexKey a0)
2766  remove_attribute(Direction self, ObjectKey a0)
2767  remove_attribute(Direction self, SparseFloatKey a0)
2768  remove_attribute(Direction self, SparseIntKey a0)
2769  remove_attribute(Direction self, SparseStringKey a0)
2770  remove_attribute(Direction self, SparseParticleIndexKey a0)
2771  """
2772  return _IMP_core.Direction_remove_attribute(self, *args)
2773 
2774  def has_attribute(self, *args):
2775  r"""
2776  has_attribute(Direction self, FloatKey a0) -> bool
2777  has_attribute(Direction self, IntKey a0) -> bool
2778  has_attribute(Direction self, FloatsKey a0) -> bool
2779  has_attribute(Direction self, IntsKey a0) -> bool
2780  has_attribute(Direction self, StringKey a0) -> bool
2781  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2782  has_attribute(Direction self, ObjectKey a0) -> bool
2783  has_attribute(Direction self, SparseFloatKey a0) -> bool
2784  has_attribute(Direction self, SparseIntKey a0) -> bool
2785  has_attribute(Direction self, SparseStringKey a0) -> bool
2786  has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2787  """
2788  return _IMP_core.Direction_has_attribute(self, *args)
2789 
2790  def get_derivative(self, a0):
2791  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2792  return _IMP_core.Direction_get_derivative(self, a0)
2793 
2794  def get_name(self):
2795  r"""get_name(Direction self) -> std::string"""
2796  return _IMP_core.Direction_get_name(self)
2797 
2798  def clear_caches(self):
2799  r"""clear_caches(Direction self)"""
2800  return _IMP_core.Direction_clear_caches(self)
2801 
2802  def set_name(self, a0):
2803  r"""set_name(Direction self, std::string a0)"""
2804  return _IMP_core.Direction_set_name(self, a0)
2805 
2806  def set_check_level(self, a0):
2807  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2808  return _IMP_core.Direction_set_check_level(self, a0)
2809 
2810  def add_to_derivative(self, a0, a1, a2):
2811  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2812  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2813 
2814  def set_is_optimized(self, a0, a1):
2815  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2816  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2817 
2818  def get_is_optimized(self, a0):
2819  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2820  return _IMP_core.Direction_get_is_optimized(self, a0)
2821 
2822  def get_check_level(self):
2823  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2824  return _IMP_core.Direction_get_check_level(self)
2825 
2826  def __eq__(self, *args):
2827  r"""
2828  __eq__(Direction self, Direction o) -> bool
2829  __eq__(Direction self, Particle d) -> bool
2830  """
2831  return _IMP_core.Direction___eq__(self, *args)
2832 
2833  def __ne__(self, *args):
2834  r"""
2835  __ne__(Direction self, Direction o) -> bool
2836  __ne__(Direction self, Particle d) -> bool
2837  """
2838  return _IMP_core.Direction___ne__(self, *args)
2839 
2840  def __le__(self, *args):
2841  r"""
2842  __le__(Direction self, Direction o) -> bool
2843  __le__(Direction self, Particle d) -> bool
2844  """
2845  return _IMP_core.Direction___le__(self, *args)
2846 
2847  def __lt__(self, *args):
2848  r"""
2849  __lt__(Direction self, Direction o) -> bool
2850  __lt__(Direction self, Particle d) -> bool
2851  """
2852  return _IMP_core.Direction___lt__(self, *args)
2853 
2854  def __ge__(self, *args):
2855  r"""
2856  __ge__(Direction self, Direction o) -> bool
2857  __ge__(Direction self, Particle d) -> bool
2858  """
2859  return _IMP_core.Direction___ge__(self, *args)
2860 
2861  def __gt__(self, *args):
2862  r"""
2863  __gt__(Direction self, Direction o) -> bool
2864  __gt__(Direction self, Particle d) -> bool
2865  """
2866  return _IMP_core.Direction___gt__(self, *args)
2867 
2868  def __hash__(self):
2869  r"""__hash__(Direction self) -> std::size_t"""
2870  return _IMP_core.Direction___hash__(self)
2871 
2872  def __str__(self):
2873  r"""__str__(Direction self) -> std::string"""
2874  return _IMP_core.Direction___str__(self)
2875 
2876  def __repr__(self):
2877  r"""__repr__(Direction self) -> std::string"""
2878  return _IMP_core.Direction___repr__(self)
2879 
2880  def _get_as_binary(self):
2881  r"""_get_as_binary(Direction self) -> PyObject *"""
2882  return _IMP_core.Direction__get_as_binary(self)
2883 
2884  def _set_from_binary(self, p):
2885  r"""_set_from_binary(Direction self, PyObject * p)"""
2886  return _IMP_core.Direction__set_from_binary(self, p)
2887 
2888  def __getstate__(self):
2889  p = self._get_as_binary()
2890  if len(self.__dict__) > 1:
2891  d = self.__dict__.copy()
2892  del d['this']
2893  p = (d, p)
2894  return p
2895 
2896  def __setstate__(self, p):
2897  if not hasattr(self, 'this'):
2898  self.__init__()
2899  if isinstance(p, tuple):
2900  d, p = p
2901  self.__dict__.update(d)
2902  return self._set_from_binary(p)
2903 
2904  __swig_destroy__ = _IMP_core.delete_Direction
2905 
2906 # Register Direction in _IMP_core:
2907 _IMP_core.Direction_swigregister(Direction)
2908 
2909 def get_angle(a, b):
2910  r"""get_angle(Direction a, Direction b) -> double"""
2911  return _IMP_core.get_angle(a, b)
2912 class DirectionAngle(IMP.Decorator):
2913  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2914 
2915  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2916 
2917  def __init__(self, *args):
2918  r"""
2919  __init__(DirectionAngle self) -> DirectionAngle
2920  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2921  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2922  """
2923  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2924 
2925  def show(self, *args):
2926  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2927  return _IMP_core.DirectionAngle_show(self, *args)
2928 
2929  @staticmethod
2930  def setup_particle(*args):
2931  r"""
2932  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2933  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2934  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2935  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2936  """
2937  return _IMP_core.DirectionAngle_setup_particle(*args)
2938 
2939  @staticmethod
2940  def get_is_setup(*args):
2941  r"""
2942  get_is_setup(_ParticleAdaptor p) -> bool
2943  get_is_setup(Model m, ParticleIndex pi) -> bool
2944  """
2945  return _IMP_core.DirectionAngle_get_is_setup(*args)
2946 
2947  @staticmethod
2948  def get_angle_key():
2949  r"""get_angle_key() -> FloatKey"""
2950  return _IMP_core.DirectionAngle_get_angle_key()
2951 
2952  @staticmethod
2953  def get_particle_key(i):
2954  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2955  return _IMP_core.DirectionAngle_get_particle_key(i)
2956 
2957  def get_particle(self, *args):
2958  r"""
2959  get_particle(DirectionAngle self, unsigned int i) -> Particle
2960  get_particle(DirectionAngle self) -> Particle
2961  """
2962  return _IMP_core.DirectionAngle_get_particle(self, *args)
2963 
2964  def get_particle_index(self, *args):
2965  r"""
2966  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2967  get_particle_index(DirectionAngle self) -> ParticleIndex
2968  """
2969  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2970 
2971  def get_angle(self):
2972  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2973  return _IMP_core.DirectionAngle_get_angle(self)
2974 
2975  def get_angle_derivative(self):
2976  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2977  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2978 
2979  def add_to_angle_derivative(self, v, d):
2980  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2981  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2982 
2983  def add_attribute(self, *args):
2984  r"""
2985  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2986  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2987  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2988  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2989  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2990  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2991  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2992  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2993  add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
2994  add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
2995  add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
2996  add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
2997  """
2998  return _IMP_core.DirectionAngle_add_attribute(self, *args)
2999 
3000  def get_value(self, *args):
3001  r"""
3002  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3003  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3004  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3005  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3006  get_value(DirectionAngle self, StringKey a0) -> IMP::String
3007  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3008  get_value(DirectionAngle self, ObjectKey a0) -> Object
3009  get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3010  get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3011  get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3012  get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3013  """
3014  return _IMP_core.DirectionAngle_get_value(self, *args)
3015 
3016  def set_value(self, *args):
3017  r"""
3018  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3019  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3020  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3021  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3022  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3023  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3024  set_value(DirectionAngle self, ObjectKey a0, Object a1)
3025  set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3026  set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3027  set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3028  set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3029  """
3030  return _IMP_core.DirectionAngle_set_value(self, *args)
3031 
3032  def remove_attribute(self, *args):
3033  r"""
3034  remove_attribute(DirectionAngle self, FloatKey a0)
3035  remove_attribute(DirectionAngle self, IntKey a0)
3036  remove_attribute(DirectionAngle self, FloatsKey a0)
3037  remove_attribute(DirectionAngle self, IntsKey a0)
3038  remove_attribute(DirectionAngle self, StringKey a0)
3039  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3040  remove_attribute(DirectionAngle self, ObjectKey a0)
3041  remove_attribute(DirectionAngle self, SparseFloatKey a0)
3042  remove_attribute(DirectionAngle self, SparseIntKey a0)
3043  remove_attribute(DirectionAngle self, SparseStringKey a0)
3044  remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3045  """
3046  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3047 
3048  def has_attribute(self, *args):
3049  r"""
3050  has_attribute(DirectionAngle self, FloatKey a0) -> bool
3051  has_attribute(DirectionAngle self, IntKey a0) -> bool
3052  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3053  has_attribute(DirectionAngle self, IntsKey a0) -> bool
3054  has_attribute(DirectionAngle self, StringKey a0) -> bool
3055  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3056  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3057  has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3058  has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3059  has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3060  has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3061  """
3062  return _IMP_core.DirectionAngle_has_attribute(self, *args)
3063 
3064  def get_derivative(self, a0):
3065  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3066  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3067 
3068  def get_name(self):
3069  r"""get_name(DirectionAngle self) -> std::string"""
3070  return _IMP_core.DirectionAngle_get_name(self)
3071 
3072  def clear_caches(self):
3073  r"""clear_caches(DirectionAngle self)"""
3074  return _IMP_core.DirectionAngle_clear_caches(self)
3075 
3076  def set_name(self, a0):
3077  r"""set_name(DirectionAngle self, std::string a0)"""
3078  return _IMP_core.DirectionAngle_set_name(self, a0)
3079 
3080  def set_check_level(self, a0):
3081  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3082  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3083 
3084  def add_to_derivative(self, a0, a1, a2):
3085  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3086  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3087 
3088  def set_is_optimized(self, a0, a1):
3089  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3090  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3091 
3092  def get_is_optimized(self, a0):
3093  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3094  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3095 
3096  def get_check_level(self):
3097  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3098  return _IMP_core.DirectionAngle_get_check_level(self)
3099 
3100  def __eq__(self, *args):
3101  r"""
3102  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3103  __eq__(DirectionAngle self, Particle d) -> bool
3104  """
3105  return _IMP_core.DirectionAngle___eq__(self, *args)
3106 
3107  def __ne__(self, *args):
3108  r"""
3109  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3110  __ne__(DirectionAngle self, Particle d) -> bool
3111  """
3112  return _IMP_core.DirectionAngle___ne__(self, *args)
3113 
3114  def __le__(self, *args):
3115  r"""
3116  __le__(DirectionAngle self, DirectionAngle o) -> bool
3117  __le__(DirectionAngle self, Particle d) -> bool
3118  """
3119  return _IMP_core.DirectionAngle___le__(self, *args)
3120 
3121  def __lt__(self, *args):
3122  r"""
3123  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3124  __lt__(DirectionAngle self, Particle d) -> bool
3125  """
3126  return _IMP_core.DirectionAngle___lt__(self, *args)
3127 
3128  def __ge__(self, *args):
3129  r"""
3130  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3131  __ge__(DirectionAngle self, Particle d) -> bool
3132  """
3133  return _IMP_core.DirectionAngle___ge__(self, *args)
3134 
3135  def __gt__(self, *args):
3136  r"""
3137  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3138  __gt__(DirectionAngle self, Particle d) -> bool
3139  """
3140  return _IMP_core.DirectionAngle___gt__(self, *args)
3141 
3142  def __hash__(self):
3143  r"""__hash__(DirectionAngle self) -> std::size_t"""
3144  return _IMP_core.DirectionAngle___hash__(self)
3145 
3146  def __str__(self):
3147  r"""__str__(DirectionAngle self) -> std::string"""
3148  return _IMP_core.DirectionAngle___str__(self)
3149 
3150  def __repr__(self):
3151  r"""__repr__(DirectionAngle self) -> std::string"""
3152  return _IMP_core.DirectionAngle___repr__(self)
3153 
3154  def _get_as_binary(self):
3155  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3156  return _IMP_core.DirectionAngle__get_as_binary(self)
3157 
3158  def _set_from_binary(self, p):
3159  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3160  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3161 
3162  def __getstate__(self):
3163  p = self._get_as_binary()
3164  if len(self.__dict__) > 1:
3165  d = self.__dict__.copy()
3166  del d['this']
3167  p = (d, p)
3168  return p
3169 
3170  def __setstate__(self, p):
3171  if not hasattr(self, 'this'):
3172  self.__init__()
3173  if isinstance(p, tuple):
3174  d, p = p
3175  self.__dict__.update(d)
3176  return self._set_from_binary(p)
3177 
3178  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3179 
3180 # Register DirectionAngle in _IMP_core:
3181 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3182 class Surface(XYZ):
3183  r"""Proxy of C++ IMP::core::Surface class."""
3184 
3185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3186 
3187  @staticmethod
3188  def do_setup_particle(*args):
3189  r"""
3190  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3191  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3192  """
3193  return _IMP_core.Surface_do_setup_particle(*args)
3194 
3195  def __init__(self, *args):
3196  r"""
3197  __init__(Surface self) -> Surface
3198  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3199  __init__(Surface self, _ParticleAdaptor d) -> Surface
3200  """
3201  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3202 
3203  def show(self, *args):
3204  r"""show(Surface self, _ostream out=std::cout)"""
3205  return _IMP_core.Surface_show(self, *args)
3206 
3207  @staticmethod
3208  def setup_particle(*args):
3209  r"""
3210  setup_particle(Model m, ParticleIndex pi) -> Surface
3211  setup_particle(_ParticleAdaptor pa) -> Surface
3212  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3213  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3214  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3215  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3216  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3217  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3218  """
3219  return _IMP_core.Surface_setup_particle(*args)
3220 
3221  def get_normal_x(self):
3222  r"""get_normal_x(Surface self) -> IMP::Float"""
3223  return _IMP_core.Surface_get_normal_x(self)
3224 
3225  def set_normal_x(self, t):
3226  r"""set_normal_x(Surface self, IMP::Float t)"""
3227  return _IMP_core.Surface_set_normal_x(self, t)
3228 
3229  def get_normal_y(self):
3230  r"""get_normal_y(Surface self) -> IMP::Float"""
3231  return _IMP_core.Surface_get_normal_y(self)
3232 
3233  def set_normal_y(self, t):
3234  r"""set_normal_y(Surface self, IMP::Float t)"""
3235  return _IMP_core.Surface_set_normal_y(self, t)
3236 
3237  def get_normal_z(self):
3238  r"""get_normal_z(Surface self) -> IMP::Float"""
3239  return _IMP_core.Surface_get_normal_z(self)
3240 
3241  def set_normal_z(self, t):
3242  r"""set_normal_z(Surface self, IMP::Float t)"""
3243  return _IMP_core.Surface_set_normal_z(self, t)
3244 
3245  @staticmethod
3246  def get_is_setup(*args):
3247  r"""
3248  get_is_setup(_ParticleAdaptor p) -> bool
3249  get_is_setup(Model m, ParticleIndex pi) -> bool
3250  """
3251  return _IMP_core.Surface_get_is_setup(*args)
3252 
3253  @staticmethod
3254  def get_normal_key(i):
3255  r"""get_normal_key(unsigned int i) -> FloatKey"""
3256  return _IMP_core.Surface_get_normal_key(i)
3257 
3258  def get_normal_derivative(self, i):
3259  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3260  return _IMP_core.Surface_get_normal_derivative(self, i)
3261 
3262  def get_normal_derivatives(self):
3263  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3264  return _IMP_core.Surface_get_normal_derivatives(self)
3265 
3266  def add_to_normal_derivative(self, i, v, d):
3267  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3268  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3269 
3270  def add_to_normal_derivatives(self, v, d):
3271  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3272  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3273 
3274  def get_normal_is_optimized(self):
3275  r"""get_normal_is_optimized(Surface self) -> bool"""
3276  return _IMP_core.Surface_get_normal_is_optimized(self)
3277 
3278  def set_normal_is_optimized(self, tf):
3279  r"""set_normal_is_optimized(Surface self, bool tf)"""
3280  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3281 
3282  def get_normal(self):
3283  r"""get_normal(Surface self) -> Vector3D"""
3284  return _IMP_core.Surface_get_normal(self)
3285 
3286  def set_normal(self, normal):
3287  r"""set_normal(Surface self, Vector3D normal)"""
3288  return _IMP_core.Surface_set_normal(self, normal)
3289 
3290  def reflect(self):
3291  r"""reflect(Surface self)"""
3292  return _IMP_core.Surface_reflect(self)
3293 
3294  def get_height(self, v):
3295  r"""get_height(Surface self, Vector3D v) -> double"""
3296  return _IMP_core.Surface_get_height(self, v)
3297 
3298  def get_depth(self, v):
3299  r"""get_depth(Surface self, Vector3D v) -> double"""
3300  return _IMP_core.Surface_get_depth(self, v)
3301 
3302  def get_distance_to(self, v):
3303  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3304  return _IMP_core.Surface_get_distance_to(self, v)
3305 
3306  def get_distance_to_center(self, v):
3307  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3308  return _IMP_core.Surface_get_distance_to_center(self, v)
3309 
3310  def set_reference_frame(self, rf):
3311  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3312  return _IMP_core.Surface_set_reference_frame(self, rf)
3313 
3314  def get_reference_frame(self):
3315  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3316  return _IMP_core.Surface_get_reference_frame(self)
3317 
3318  def get_plane(self):
3319  r"""get_plane(Surface self) -> Plane3D"""
3320  return _IMP_core.Surface_get_plane(self)
3321 
3322  def add_attribute(self, *args):
3323  r"""
3324  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3325  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3326  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3327  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3328  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3329  add_attribute(Surface self, StringKey a0, IMP::String a1)
3330  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3331  add_attribute(Surface self, ObjectKey a0, Object a1)
3332  add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3333  add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3334  add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3335  add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3336  """
3337  return _IMP_core.Surface_add_attribute(self, *args)
3338 
3339  def get_value(self, *args):
3340  r"""
3341  get_value(Surface self, FloatKey a0) -> IMP::Float
3342  get_value(Surface self, IntKey a0) -> IMP::Int
3343  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3344  get_value(Surface self, IntsKey a0) -> IMP::Ints
3345  get_value(Surface self, StringKey a0) -> IMP::String
3346  get_value(Surface self, ParticleIndexKey a0) -> Particle
3347  get_value(Surface self, ObjectKey a0) -> Object
3348  get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3349  get_value(Surface self, SparseIntKey a0) -> IMP::Int
3350  get_value(Surface self, SparseStringKey a0) -> IMP::String
3351  get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3352  """
3353  return _IMP_core.Surface_get_value(self, *args)
3354 
3355  def set_value(self, *args):
3356  r"""
3357  set_value(Surface self, FloatKey a0, IMP::Float a1)
3358  set_value(Surface self, IntKey a0, IMP::Int a1)
3359  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3360  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3361  set_value(Surface self, StringKey a0, IMP::String a1)
3362  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3363  set_value(Surface self, ObjectKey a0, Object a1)
3364  set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3365  set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3366  set_value(Surface self, SparseStringKey a0, IMP::String a1)
3367  set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3368  """
3369  return _IMP_core.Surface_set_value(self, *args)
3370 
3371  def remove_attribute(self, *args):
3372  r"""
3373  remove_attribute(Surface self, FloatKey a0)
3374  remove_attribute(Surface self, IntKey a0)
3375  remove_attribute(Surface self, FloatsKey a0)
3376  remove_attribute(Surface self, IntsKey a0)
3377  remove_attribute(Surface self, StringKey a0)
3378  remove_attribute(Surface self, ParticleIndexKey a0)
3379  remove_attribute(Surface self, ObjectKey a0)
3380  remove_attribute(Surface self, SparseFloatKey a0)
3381  remove_attribute(Surface self, SparseIntKey a0)
3382  remove_attribute(Surface self, SparseStringKey a0)
3383  remove_attribute(Surface self, SparseParticleIndexKey a0)
3384  """
3385  return _IMP_core.Surface_remove_attribute(self, *args)
3386 
3387  def has_attribute(self, *args):
3388  r"""
3389  has_attribute(Surface self, FloatKey a0) -> bool
3390  has_attribute(Surface self, IntKey a0) -> bool
3391  has_attribute(Surface self, FloatsKey a0) -> bool
3392  has_attribute(Surface self, IntsKey a0) -> bool
3393  has_attribute(Surface self, StringKey a0) -> bool
3394  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3395  has_attribute(Surface self, ObjectKey a0) -> bool
3396  has_attribute(Surface self, SparseFloatKey a0) -> bool
3397  has_attribute(Surface self, SparseIntKey a0) -> bool
3398  has_attribute(Surface self, SparseStringKey a0) -> bool
3399  has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3400  """
3401  return _IMP_core.Surface_has_attribute(self, *args)
3402 
3403  def get_derivative(self, a0):
3404  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3405  return _IMP_core.Surface_get_derivative(self, a0)
3406 
3407  def get_name(self):
3408  r"""get_name(Surface self) -> std::string"""
3409  return _IMP_core.Surface_get_name(self)
3410 
3411  def clear_caches(self):
3412  r"""clear_caches(Surface self)"""
3413  return _IMP_core.Surface_clear_caches(self)
3414 
3415  def set_name(self, a0):
3416  r"""set_name(Surface self, std::string a0)"""
3417  return _IMP_core.Surface_set_name(self, a0)
3418 
3419  def set_check_level(self, a0):
3420  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3421  return _IMP_core.Surface_set_check_level(self, a0)
3422 
3423  def add_to_derivative(self, a0, a1, a2):
3424  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3425  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3426 
3427  def set_is_optimized(self, a0, a1):
3428  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3429  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3430 
3431  def get_is_optimized(self, a0):
3432  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3433  return _IMP_core.Surface_get_is_optimized(self, a0)
3434 
3435  def get_check_level(self):
3436  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3437  return _IMP_core.Surface_get_check_level(self)
3438 
3439  def __eq__(self, *args):
3440  r"""
3441  __eq__(Surface self, Surface o) -> bool
3442  __eq__(Surface self, Particle d) -> bool
3443  """
3444  return _IMP_core.Surface___eq__(self, *args)
3445 
3446  def __ne__(self, *args):
3447  r"""
3448  __ne__(Surface self, Surface o) -> bool
3449  __ne__(Surface self, Particle d) -> bool
3450  """
3451  return _IMP_core.Surface___ne__(self, *args)
3452 
3453  def __le__(self, *args):
3454  r"""
3455  __le__(Surface self, Surface o) -> bool
3456  __le__(Surface self, Particle d) -> bool
3457  """
3458  return _IMP_core.Surface___le__(self, *args)
3459 
3460  def __lt__(self, *args):
3461  r"""
3462  __lt__(Surface self, Surface o) -> bool
3463  __lt__(Surface self, Particle d) -> bool
3464  """
3465  return _IMP_core.Surface___lt__(self, *args)
3466 
3467  def __ge__(self, *args):
3468  r"""
3469  __ge__(Surface self, Surface o) -> bool
3470  __ge__(Surface self, Particle d) -> bool
3471  """
3472  return _IMP_core.Surface___ge__(self, *args)
3473 
3474  def __gt__(self, *args):
3475  r"""
3476  __gt__(Surface self, Surface o) -> bool
3477  __gt__(Surface self, Particle d) -> bool
3478  """
3479  return _IMP_core.Surface___gt__(self, *args)
3480 
3481  def __hash__(self):
3482  r"""__hash__(Surface self) -> std::size_t"""
3483  return _IMP_core.Surface___hash__(self)
3484 
3485  def __str__(self):
3486  r"""__str__(Surface self) -> std::string"""
3487  return _IMP_core.Surface___str__(self)
3488 
3489  def __repr__(self):
3490  r"""__repr__(Surface self) -> std::string"""
3491  return _IMP_core.Surface___repr__(self)
3492 
3493  def _get_as_binary(self):
3494  r"""_get_as_binary(Surface self) -> PyObject *"""
3495  return _IMP_core.Surface__get_as_binary(self)
3496 
3497  def _set_from_binary(self, p):
3498  r"""_set_from_binary(Surface self, PyObject * p)"""
3499  return _IMP_core.Surface__set_from_binary(self, p)
3500 
3501  def __getstate__(self):
3502  p = self._get_as_binary()
3503  if len(self.__dict__) > 1:
3504  d = self.__dict__.copy()
3505  del d['this']
3506  p = (d, p)
3507  return p
3508 
3509  def __setstate__(self, p):
3510  if not hasattr(self, 'this'):
3511  self.__init__()
3512  if isinstance(p, tuple):
3513  d, p = p
3514  self.__dict__.update(d)
3515  return self._set_from_binary(p)
3516 
3517  __swig_destroy__ = _IMP_core.delete_Surface
3518 
3519 # Register Surface in _IMP_core:
3520 _IMP_core.Surface_swigregister(Surface)
3521 
3522 def get_height(*args):
3523  r"""
3524  get_height(Surface s, XYZR d) -> double
3525  get_height(Surface s, XYZ d) -> double
3526  """
3527  return _IMP_core.get_height(*args)
3528 
3529 def get_depth(*args):
3530  r"""
3531  get_depth(Surface s, XYZR d) -> double
3532  get_depth(Surface s, XYZ d) -> double
3533  """
3534  return _IMP_core.get_depth(*args)
3535 
3536 def get_distance(*args):
3537  r"""
3538  get_distance(XYZ a, XYZ b) -> double
3539  get_distance(XYZR a, XYZR b) -> double
3540  get_distance(Surface s, XYZR d) -> double
3541  get_distance(Surface s, XYZ d) -> double
3542  """
3543  return _IMP_core.get_distance(*args)
3544 class SurfaceGeometry(IMP.display.Geometry):
3545  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3546 
3547  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3548 
3549  def __init__(self, *args):
3550  r"""
3551  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3552  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3553  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3554  """
3555  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3556 
3557  def get_geometry(self):
3558  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3559  return _IMP_core.SurfaceGeometry_get_geometry(self)
3560 
3561  def set_geometry(self, s):
3562  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3563  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3564 
3565  def get_version_info(self):
3566  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3567  return _IMP_core.SurfaceGeometry_get_version_info(self)
3568  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3569 
3570  def __str__(self):
3571  r"""__str__(SurfaceGeometry self) -> std::string"""
3572  return _IMP_core.SurfaceGeometry___str__(self)
3573 
3574  def __repr__(self):
3575  r"""__repr__(SurfaceGeometry self) -> std::string"""
3576  return _IMP_core.SurfaceGeometry___repr__(self)
3577 
3578  @staticmethod
3579  def get_from(o):
3580  return _object_cast_to_SurfaceGeometry(o)
3581 
3582 
3583 # Register SurfaceGeometry in _IMP_core:
3584 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3585 
3586 def create_geometry(*args):
3587  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3588  return _IMP_core.create_geometry(*args)
3589 class SurfaceGeometryConstraint(IMP.Constraint):
3590  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3591 
3592  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3593 
3594  def __init__(self, s, g):
3595  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3596  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3597 
3598  def get_surface(self):
3599  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3600  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3601 
3602  def get_geometry(self):
3603  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3604  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3605 
3606  def do_get_inputs(self):
3607  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3608  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3609 
3610  def do_get_outputs(self):
3611  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3612  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3613 
3614  def get_version_info(self):
3615  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3616  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3617  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3618 
3619  def __str__(self):
3620  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3621  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3622 
3623  def __repr__(self):
3624  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3625  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3626 
3627  @staticmethod
3628  def get_from(o):
3629  return _object_cast_to_SurfaceGeometryConstraint(o)
3630 
3631 
3632 # Register SurfaceGeometryConstraint in _IMP_core:
3633 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3634 
3636  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3637  return _IMP_core.get_constrained_surface_geometry(*args)
3638 class LateralSurfaceConstraint(IMP.Constraint):
3639  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3640 
3641  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3642 
3643  def __init__(self, s, d):
3644  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3645  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3646 
3647  def do_get_inputs(self):
3648  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3649  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3650 
3651  def do_get_outputs(self):
3652  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3653  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3654 
3655  def get_version_info(self):
3656  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3657  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3658  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3659 
3660  def __str__(self):
3661  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3662  return _IMP_core.LateralSurfaceConstraint___str__(self)
3663 
3664  def __repr__(self):
3665  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3666  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3667 
3668  @staticmethod
3669  def get_from(o):
3670  return _object_cast_to_LateralSurfaceConstraint(o)
3671 
3672 
3673 # Register LateralSurfaceConstraint in _IMP_core:
3674 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3675 class AngleTripletScore(IMP.TripletScore):
3676  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3677 
3678  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3679 
3680  def __init__(self, *args):
3681  r"""
3682  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3683  __init__(AngleTripletScore self) -> AngleTripletScore
3684  """
3685  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3686 
3687  def do_get_inputs(self, m, pis):
3688  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3689  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3690 
3691  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3692  r"""evaluate_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3693  return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3694 
3695  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3696  r"""evaluate_indexes_scores(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3697  return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3698 
3699  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3700  r"""evaluate_indexes_delta(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3701  return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3702 
3703  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3704  r"""evaluate_if_good_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3705  return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3706 
3707  def get_version_info(self):
3708  r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3709  return _IMP_core.AngleTripletScore_get_version_info(self)
3710  __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3711 
3712  def __str__(self):
3713  r"""__str__(AngleTripletScore self) -> std::string"""
3714  return _IMP_core.AngleTripletScore___str__(self)
3715 
3716  def __repr__(self):
3717  r"""__repr__(AngleTripletScore self) -> std::string"""
3718  return _IMP_core.AngleTripletScore___repr__(self)
3719 
3720  @staticmethod
3721  def get_from(o):
3722  return _object_cast_to_AngleTripletScore(o)
3723 
3724 
3725  def _get_as_binary(self):
3726  r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3727  return _IMP_core.AngleTripletScore__get_as_binary(self)
3728 
3729  def _set_from_binary(self, p):
3730  r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3731  return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3732 
3733  def __getstate__(self):
3734  p = self._get_as_binary()
3735  if len(self.__dict__) > 1:
3736  d = self.__dict__.copy()
3737  del d['this']
3738  p = (d, p)
3739  return p
3740 
3741  def __setstate__(self, p):
3742  if not hasattr(self, 'this'):
3743  self.__init__()
3744  if isinstance(p, tuple):
3745  d, p = p
3746  self.__dict__.update(d)
3747  return self._set_from_binary(p)
3748 
3749 
3750 # Register AngleTripletScore in _IMP_core:
3751 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3752 class BallMover(MonteCarloMover):
3753  r"""Proxy of C++ IMP::core::BallMover class."""
3754 
3755  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3756 
3757  def __init__(self, *args):
3758  r"""
3759  __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3760  __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3761  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3762  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3763  __init__(BallMover self) -> BallMover
3764  """
3765  _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3766 
3767  def set_radius(self, radius):
3768  r"""set_radius(BallMover self, IMP::Float radius)"""
3769  return _IMP_core.BallMover_set_radius(self, radius)
3770 
3771  def get_radius(self):
3772  r"""get_radius(BallMover self) -> IMP::Float"""
3773  return _IMP_core.BallMover_get_radius(self)
3774 
3775  def get_indexes(self):
3776  r"""get_indexes(BallMover self) -> IMP::ParticleIndexes"""
3777  return _IMP_core.BallMover_get_indexes(self)
3778 
3779  def get_keys(self):
3780  r"""get_keys(BallMover self) -> IMP::FloatKeys"""
3781  return _IMP_core.BallMover_get_keys(self)
3782 
3783  def get_version_info(self):
3784  r"""get_version_info(BallMover self) -> VersionInfo"""
3785  return _IMP_core.BallMover_get_version_info(self)
3786  __swig_destroy__ = _IMP_core.delete_BallMover
3787 
3788  def __str__(self):
3789  r"""__str__(BallMover self) -> std::string"""
3790  return _IMP_core.BallMover___str__(self)
3791 
3792  def __repr__(self):
3793  r"""__repr__(BallMover self) -> std::string"""
3794  return _IMP_core.BallMover___repr__(self)
3795 
3796  @staticmethod
3797  def get_from(o):
3798  return _object_cast_to_BallMover(o)
3799 
3800 
3801  def _get_as_binary(self):
3802  r"""_get_as_binary(BallMover self) -> PyObject *"""
3803  return _IMP_core.BallMover__get_as_binary(self)
3804 
3805  def _set_from_binary(self, p):
3806  r"""_set_from_binary(BallMover self, PyObject * p)"""
3807  return _IMP_core.BallMover__set_from_binary(self, p)
3808 
3809  def __getstate__(self):
3810  p = self._get_as_binary()
3811  if len(self.__dict__) > 1:
3812  d = self.__dict__.copy()
3813  del d['this']
3814  p = (d, p)
3815  return p
3816 
3817  def __setstate__(self, p):
3818  if not hasattr(self, 'this'):
3819  self.__init__()
3820  if isinstance(p, tuple):
3821  d, p = p
3822  self.__dict__.update(d)
3823  return self._set_from_binary(p)
3824 
3825 
3826  def _get_jax(self):
3827  from IMP.algebra._jax_util import get_random_vector_in_3d_sphere
3828  indexes = self.get_indexes()
3829  keys = frozenset(self.get_keys())
3830  if keys != frozenset(IMP.core.XYZ.get_xyz_keys()):
3831  raise NotImplementedError("Only works for XYZ")
3832  radius = self.get_radius()
3833 
3834  def propose_func(k, X):
3835  v = get_random_vector_in_3d_sphere(k, radius)
3836  newX = X.copy()
3837  newX['xyz'] = X['xyz'].at[indexes].add(v)
3838  return newX, 1.0
3839  return propose_func
3840 
3841 
3842 # Register BallMover in _IMP_core:
3843 _IMP_core.BallMover_swigregister(BallMover)
3844 class SerialMover(MonteCarloMover):
3845  r"""Proxy of C++ IMP::core::SerialMover class."""
3846 
3847  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3848 
3849  def __init__(self, *args):
3850  r"""
3851  __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3852  __init__(SerialMover self) -> SerialMover
3853  """
3854  _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3855 
3856  def get_movers(self):
3857  r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3858  return _IMP_core.SerialMover_get_movers(self)
3859 
3860  def get_version_info(self):
3861  r"""get_version_info(SerialMover self) -> VersionInfo"""
3862  return _IMP_core.SerialMover_get_version_info(self)
3863  __swig_destroy__ = _IMP_core.delete_SerialMover
3864 
3865  def __str__(self):
3866  r"""__str__(SerialMover self) -> std::string"""
3867  return _IMP_core.SerialMover___str__(self)
3868 
3869  def __repr__(self):
3870  r"""__repr__(SerialMover self) -> std::string"""
3871  return _IMP_core.SerialMover___repr__(self)
3872 
3873  @staticmethod
3874  def get_from(o):
3875  return _object_cast_to_SerialMover(o)
3876 
3877 
3878  def _get_as_binary(self):
3879  r"""_get_as_binary(SerialMover self) -> PyObject *"""
3880  return _IMP_core.SerialMover__get_as_binary(self)
3881 
3882  def _set_from_binary(self, p):
3883  r"""_set_from_binary(SerialMover self, PyObject * p)"""
3884  return _IMP_core.SerialMover__set_from_binary(self, p)
3885 
3886  def __getstate__(self):
3887  p = self._get_as_binary()
3888  if len(self.__dict__) > 1:
3889  d = self.__dict__.copy()
3890  del d['this']
3891  p = (d, p)
3892  return p
3893 
3894  def __setstate__(self, p):
3895  if not hasattr(self, 'this'):
3896  self.__init__()
3897  if isinstance(p, tuple):
3898  d, p = p
3899  self.__dict__.update(d)
3900  return self._set_from_binary(p)
3901 
3902 
3903 # Register SerialMover in _IMP_core:
3904 _IMP_core.SerialMover_swigregister(SerialMover)
3905 class SubsetMover(MonteCarloMover):
3906  r"""Proxy of C++ IMP::core::SubsetMover class."""
3907 
3908  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3909 
3910  def __init__(self, *args):
3911  r"""
3912  __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3913  __init__(SubsetMover self) -> SubsetMover
3914  """
3915  _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3916 
3917  def get_movers(self):
3918  r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3919  return _IMP_core.SubsetMover_get_movers(self)
3920 
3921  def get_subset_size(self):
3922  r"""get_subset_size(SubsetMover self) -> unsigned int"""
3923  return _IMP_core.SubsetMover_get_subset_size(self)
3924 
3925  def get_version_info(self):
3926  r"""get_version_info(SubsetMover self) -> VersionInfo"""
3927  return _IMP_core.SubsetMover_get_version_info(self)
3928  __swig_destroy__ = _IMP_core.delete_SubsetMover
3929 
3930  def __str__(self):
3931  r"""__str__(SubsetMover self) -> std::string"""
3932  return _IMP_core.SubsetMover___str__(self)
3933 
3934  def __repr__(self):
3935  r"""__repr__(SubsetMover self) -> std::string"""
3936  return _IMP_core.SubsetMover___repr__(self)
3937 
3938  @staticmethod
3939  def get_from(o):
3940  return _object_cast_to_SubsetMover(o)
3941 
3942 
3943  def _get_as_binary(self):
3944  r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3945  return _IMP_core.SubsetMover__get_as_binary(self)
3946 
3947  def _set_from_binary(self, p):
3948  r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3949  return _IMP_core.SubsetMover__set_from_binary(self, p)
3950 
3951  def __getstate__(self):
3952  p = self._get_as_binary()
3953  if len(self.__dict__) > 1:
3954  d = self.__dict__.copy()
3955  del d['this']
3956  p = (d, p)
3957  return p
3958 
3959  def __setstate__(self, p):
3960  if not hasattr(self, 'this'):
3961  self.__init__()
3962  if isinstance(p, tuple):
3963  d, p = p
3964  self.__dict__.update(d)
3965  return self._set_from_binary(p)
3966 
3967 
3968 # Register SubsetMover in _IMP_core:
3969 _IMP_core.SubsetMover_swigregister(SubsetMover)
3970 class DirectionMover(MonteCarloMover):
3971  r"""Proxy of C++ IMP::core::DirectionMover class."""
3972 
3973  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3974 
3975  def __init__(self, *args):
3976  r"""
3977  __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3978  __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3979  __init__(DirectionMover self) -> DirectionMover
3980  """
3981  _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3982 
3983  def set_maximum_rotation(self, mr):
3984  r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3985  return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3986 
3987  def set_reflect_probability(self, rp):
3988  r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3989  return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3990 
3991  def get_maximum_rotation(self):
3992  r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3993  return _IMP_core.DirectionMover_get_maximum_rotation(self)
3994 
3995  def get_reflect_probability(self):
3996  r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3997  return _IMP_core.DirectionMover_get_reflect_probability(self)
3998 
3999  def get_direction(self):
4000  r"""get_direction(DirectionMover self) -> Direction"""
4001  return _IMP_core.DirectionMover_get_direction(self)
4002 
4003  def get_version_info(self):
4004  r"""get_version_info(DirectionMover self) -> VersionInfo"""
4005  return _IMP_core.DirectionMover_get_version_info(self)
4006  __swig_destroy__ = _IMP_core.delete_DirectionMover
4007 
4008  def __str__(self):
4009  r"""__str__(DirectionMover self) -> std::string"""
4010  return _IMP_core.DirectionMover___str__(self)
4011 
4012  def __repr__(self):
4013  r"""__repr__(DirectionMover self) -> std::string"""
4014  return _IMP_core.DirectionMover___repr__(self)
4015 
4016  @staticmethod
4017  def get_from(o):
4018  return _object_cast_to_DirectionMover(o)
4019 
4020 
4021  def _get_as_binary(self):
4022  r"""_get_as_binary(DirectionMover self) -> PyObject *"""
4023  return _IMP_core.DirectionMover__get_as_binary(self)
4024 
4025  def _set_from_binary(self, p):
4026  r"""_set_from_binary(DirectionMover self, PyObject * p)"""
4027  return _IMP_core.DirectionMover__set_from_binary(self, p)
4028 
4029  def __getstate__(self):
4030  p = self._get_as_binary()
4031  if len(self.__dict__) > 1:
4032  d = self.__dict__.copy()
4033  del d['this']
4034  p = (d, p)
4035  return p
4036 
4037  def __setstate__(self, p):
4038  if not hasattr(self, 'this'):
4039  self.__init__()
4040  if isinstance(p, tuple):
4041  d, p = p
4042  self.__dict__.update(d)
4043  return self._set_from_binary(p)
4044 
4045 
4046 # Register DirectionMover in _IMP_core:
4047 _IMP_core.DirectionMover_swigregister(DirectionMover)
4048 class SurfaceMover(MonteCarloMover):
4049  r"""Proxy of C++ IMP::core::SurfaceMover class."""
4050 
4051  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4052 
4053  def __init__(self, *args):
4054  r"""
4055  __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4056  __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4057  __init__(SurfaceMover self) -> SurfaceMover
4058  """
4059  _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4060 
4061  def set_maximum_translation(self, mt):
4062  r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4063  return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4064 
4065  def set_maximum_rotation(self, mr):
4066  r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4067  return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4068 
4069  def set_reflect_probability(self, rp):
4070  r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4071  return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4072 
4073  def get_maximum_translation(self):
4074  r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4075  return _IMP_core.SurfaceMover_get_maximum_translation(self)
4076 
4077  def get_maximum_rotation(self):
4078  r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4079  return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4080 
4081  def get_reflect_probability(self):
4082  r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4083  return _IMP_core.SurfaceMover_get_reflect_probability(self)
4084 
4085  def get_surface(self):
4086  r"""get_surface(SurfaceMover self) -> Surface"""
4087  return _IMP_core.SurfaceMover_get_surface(self)
4088 
4089  def get_version_info(self):
4090  r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4091  return _IMP_core.SurfaceMover_get_version_info(self)
4092  __swig_destroy__ = _IMP_core.delete_SurfaceMover
4093 
4094  def __str__(self):
4095  r"""__str__(SurfaceMover self) -> std::string"""
4096  return _IMP_core.SurfaceMover___str__(self)
4097 
4098  def __repr__(self):
4099  r"""__repr__(SurfaceMover self) -> std::string"""
4100  return _IMP_core.SurfaceMover___repr__(self)
4101 
4102  @staticmethod
4103  def get_from(o):
4104  return _object_cast_to_SurfaceMover(o)
4105 
4106 
4107  def _get_as_binary(self):
4108  r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4109  return _IMP_core.SurfaceMover__get_as_binary(self)
4110 
4111  def _set_from_binary(self, p):
4112  r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4113  return _IMP_core.SurfaceMover__set_from_binary(self, p)
4114 
4115  def __getstate__(self):
4116  p = self._get_as_binary()
4117  if len(self.__dict__) > 1:
4118  d = self.__dict__.copy()
4119  del d['this']
4120  p = (d, p)
4121  return p
4122 
4123  def __setstate__(self, p):
4124  if not hasattr(self, 'this'):
4125  self.__init__()
4126  if isinstance(p, tuple):
4127  d, p = p
4128  self.__dict__.update(d)
4129  return self._set_from_binary(p)
4130 
4131 
4132 # Register SurfaceMover in _IMP_core:
4133 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4134 class BoxSweepClosePairsFinder(ClosePairsFinder):
4135  r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4136 
4137  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4138 
4139  def __init__(self):
4140  r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4141  _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4142 
4143  def get_close_pairs(self, *args):
4144  r"""
4145  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4146  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4147  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4148  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4149  """
4150  return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4151 
4152  def do_get_inputs(self, m, pis):
4153  r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4154  return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4155 
4156  def get_version_info(self):
4157  r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4158  return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4159  __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4160 
4161  def __str__(self):
4162  r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4163  return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4164 
4165  def __repr__(self):
4166  r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4167  return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4168 
4169  @staticmethod
4170  def get_from(o):
4171  return _object_cast_to_BoxSweepClosePairsFinder(o)
4172 
4173 
4174 # Register BoxSweepClosePairsFinder in _IMP_core:
4175 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4176 class CentroidOfRefined(IMP.SingletonModifier):
4177  r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4178 
4179  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4180 
4181  def __init__(self, *args):
4182  r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4183  _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4184 
4185  def do_get_inputs(self, m, pis):
4186  r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4187  return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4188 
4189  def do_get_outputs(self, m, pis):
4190  r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4191  return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4192 
4193  def get_version_info(self):
4194  r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4195  return _IMP_core.CentroidOfRefined_get_version_info(self)
4196  __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4197 
4198  def __str__(self):
4199  r"""__str__(CentroidOfRefined self) -> std::string"""
4200  return _IMP_core.CentroidOfRefined___str__(self)
4201 
4202  def __repr__(self):
4203  r"""__repr__(CentroidOfRefined self) -> std::string"""
4204  return _IMP_core.CentroidOfRefined___repr__(self)
4205 
4206  @staticmethod
4207  def get_from(o):
4208  return _object_cast_to_CentroidOfRefined(o)
4209 
4210 
4211 # Register CentroidOfRefined in _IMP_core:
4212 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4213 class Centroid(XYZ):
4214  r"""Proxy of C++ IMP::core::Centroid class."""
4215 
4216  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4217 
4218  def get_constraint(self):
4219  r"""get_constraint(Centroid self) -> Constraint"""
4220  return _IMP_core.Centroid_get_constraint(self)
4221 
4222  def __init__(self, *args):
4223  r"""
4224  __init__(Centroid self) -> Centroid
4225  __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4226  __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4227  """
4228  _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4229 
4230  def show(self, *args):
4231  r"""show(Centroid self, _ostream out=std::cout)"""
4232  return _IMP_core.Centroid_show(self, *args)
4233 
4234  @staticmethod
4235  def setup_particle(*args):
4236  r"""
4237  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4238  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4239  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4240  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4241  """
4242  return _IMP_core.Centroid_setup_particle(*args)
4243 
4244  @staticmethod
4245  def get_is_setup(*args):
4246  r"""
4247  get_is_setup(_ParticleAdaptor p) -> bool
4248  get_is_setup(Model m, ParticleIndex pi) -> bool
4249  """
4250  return _IMP_core.Centroid_get_is_setup(*args)
4251 
4252  def add_attribute(self, *args):
4253  r"""
4254  add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4255  add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4256  add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4257  add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4258  add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4259  add_attribute(Centroid self, StringKey a0, IMP::String a1)
4260  add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4261  add_attribute(Centroid self, ObjectKey a0, Object a1)
4262  add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4263  add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4264  add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4265  add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4266  """
4267  return _IMP_core.Centroid_add_attribute(self, *args)
4268 
4269  def get_value(self, *args):
4270  r"""
4271  get_value(Centroid self, FloatKey a0) -> IMP::Float
4272  get_value(Centroid self, IntKey a0) -> IMP::Int
4273  get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4274  get_value(Centroid self, IntsKey a0) -> IMP::Ints
4275  get_value(Centroid self, StringKey a0) -> IMP::String
4276  get_value(Centroid self, ParticleIndexKey a0) -> Particle
4277  get_value(Centroid self, ObjectKey a0) -> Object
4278  get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4279  get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4280  get_value(Centroid self, SparseStringKey a0) -> IMP::String
4281  get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4282  """
4283  return _IMP_core.Centroid_get_value(self, *args)
4284 
4285  def set_value(self, *args):
4286  r"""
4287  set_value(Centroid self, FloatKey a0, IMP::Float a1)
4288  set_value(Centroid self, IntKey a0, IMP::Int a1)
4289  set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4290  set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4291  set_value(Centroid self, StringKey a0, IMP::String a1)
4292  set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4293  set_value(Centroid self, ObjectKey a0, Object a1)
4294  set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4295  set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4296  set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4297  set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4298  """
4299  return _IMP_core.Centroid_set_value(self, *args)
4300 
4301  def remove_attribute(self, *args):
4302  r"""
4303  remove_attribute(Centroid self, FloatKey a0)
4304  remove_attribute(Centroid self, IntKey a0)
4305  remove_attribute(Centroid self, FloatsKey a0)
4306  remove_attribute(Centroid self, IntsKey a0)
4307  remove_attribute(Centroid self, StringKey a0)
4308  remove_attribute(Centroid self, ParticleIndexKey a0)
4309  remove_attribute(Centroid self, ObjectKey a0)
4310  remove_attribute(Centroid self, SparseFloatKey a0)
4311  remove_attribute(Centroid self, SparseIntKey a0)
4312  remove_attribute(Centroid self, SparseStringKey a0)
4313  remove_attribute(Centroid self, SparseParticleIndexKey a0)
4314  """
4315  return _IMP_core.Centroid_remove_attribute(self, *args)
4316 
4317  def has_attribute(self, *args):
4318  r"""
4319  has_attribute(Centroid self, FloatKey a0) -> bool
4320  has_attribute(Centroid self, IntKey a0) -> bool
4321  has_attribute(Centroid self, FloatsKey a0) -> bool
4322  has_attribute(Centroid self, IntsKey a0) -> bool
4323  has_attribute(Centroid self, StringKey a0) -> bool
4324  has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4325  has_attribute(Centroid self, ObjectKey a0) -> bool
4326  has_attribute(Centroid self, SparseFloatKey a0) -> bool
4327  has_attribute(Centroid self, SparseIntKey a0) -> bool
4328  has_attribute(Centroid self, SparseStringKey a0) -> bool
4329  has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4330  """
4331  return _IMP_core.Centroid_has_attribute(self, *args)
4332 
4333  def get_derivative(self, a0):
4334  r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4335  return _IMP_core.Centroid_get_derivative(self, a0)
4336 
4337  def get_name(self):
4338  r"""get_name(Centroid self) -> std::string"""
4339  return _IMP_core.Centroid_get_name(self)
4340 
4341  def clear_caches(self):
4342  r"""clear_caches(Centroid self)"""
4343  return _IMP_core.Centroid_clear_caches(self)
4344 
4345  def set_name(self, a0):
4346  r"""set_name(Centroid self, std::string a0)"""
4347  return _IMP_core.Centroid_set_name(self, a0)
4348 
4349  def set_check_level(self, a0):
4350  r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4351  return _IMP_core.Centroid_set_check_level(self, a0)
4352 
4353  def add_to_derivative(self, a0, a1, a2):
4354  r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4355  return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4356 
4357  def set_is_optimized(self, a0, a1):
4358  r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4359  return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4360 
4361  def get_is_optimized(self, a0):
4362  r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4363  return _IMP_core.Centroid_get_is_optimized(self, a0)
4364 
4365  def get_check_level(self):
4366  r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4367  return _IMP_core.Centroid_get_check_level(self)
4368 
4369  def __eq__(self, *args):
4370  r"""
4371  __eq__(Centroid self, Centroid o) -> bool
4372  __eq__(Centroid self, Particle d) -> bool
4373  """
4374  return _IMP_core.Centroid___eq__(self, *args)
4375 
4376  def __ne__(self, *args):
4377  r"""
4378  __ne__(Centroid self, Centroid o) -> bool
4379  __ne__(Centroid self, Particle d) -> bool
4380  """
4381  return _IMP_core.Centroid___ne__(self, *args)
4382 
4383  def __le__(self, *args):
4384  r"""
4385  __le__(Centroid self, Centroid o) -> bool
4386  __le__(Centroid self, Particle d) -> bool
4387  """
4388  return _IMP_core.Centroid___le__(self, *args)
4389 
4390  def __lt__(self, *args):
4391  r"""
4392  __lt__(Centroid self, Centroid o) -> bool
4393  __lt__(Centroid self, Particle d) -> bool
4394  """
4395  return _IMP_core.Centroid___lt__(self, *args)
4396 
4397  def __ge__(self, *args):
4398  r"""
4399  __ge__(Centroid self, Centroid o) -> bool
4400  __ge__(Centroid self, Particle d) -> bool
4401  """
4402  return _IMP_core.Centroid___ge__(self, *args)
4403 
4404  def __gt__(self, *args):
4405  r"""
4406  __gt__(Centroid self, Centroid o) -> bool
4407  __gt__(Centroid self, Particle d) -> bool
4408  """
4409  return _IMP_core.Centroid___gt__(self, *args)
4410 
4411  def __hash__(self):
4412  r"""__hash__(Centroid self) -> std::size_t"""
4413  return _IMP_core.Centroid___hash__(self)
4414 
4415  def __str__(self):
4416  r"""__str__(Centroid self) -> std::string"""
4417  return _IMP_core.Centroid___str__(self)
4418 
4419  def __repr__(self):
4420  r"""__repr__(Centroid self) -> std::string"""
4421  return _IMP_core.Centroid___repr__(self)
4422 
4423  def _get_as_binary(self):
4424  r"""_get_as_binary(Centroid self) -> PyObject *"""
4425  return _IMP_core.Centroid__get_as_binary(self)
4426 
4427  def _set_from_binary(self, p):
4428  r"""_set_from_binary(Centroid self, PyObject * p)"""
4429  return _IMP_core.Centroid__set_from_binary(self, p)
4430 
4431  def __getstate__(self):
4432  p = self._get_as_binary()
4433  if len(self.__dict__) > 1:
4434  d = self.__dict__.copy()
4435  del d['this']
4436  p = (d, p)
4437  return p
4438 
4439  def __setstate__(self, p):
4440  if not hasattr(self, 'this'):
4441  self.__init__()
4442  if isinstance(p, tuple):
4443  d, p = p
4444  self.__dict__.update(d)
4445  return self._set_from_binary(p)
4446 
4447  __swig_destroy__ = _IMP_core.delete_Centroid
4448 
4449 # Register Centroid in _IMP_core:
4450 _IMP_core.Centroid_swigregister(Centroid)
4451 class ChecksScoreState(IMP.ScoreState):
4452  r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4453 
4454  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4455 
4456  def __init__(self, *args):
4457  r"""
4458  __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4459  __init__(ChecksScoreState self) -> ChecksScoreState
4460  """
4461  _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4462 
4463  def get_number_of_checked(self):
4464  r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4465  return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4466 
4467  def do_before_evaluate(self):
4468  r"""do_before_evaluate(ChecksScoreState self)"""
4469  return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4470 
4471  def do_after_evaluate(self, da):
4472  r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4473  return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4474 
4475  def do_get_outputs(self):
4476  r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4477  return _IMP_core.ChecksScoreState_do_get_outputs(self)
4478 
4479  def do_get_inputs(self):
4480  r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4481  return _IMP_core.ChecksScoreState_do_get_inputs(self)
4482 
4483  def get_version_info(self):
4484  r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4485  return _IMP_core.ChecksScoreState_get_version_info(self)
4486  __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4487 
4488  def __str__(self):
4489  r"""__str__(ChecksScoreState self) -> std::string"""
4490  return _IMP_core.ChecksScoreState___str__(self)
4491 
4492  def __repr__(self):
4493  r"""__repr__(ChecksScoreState self) -> std::string"""
4494  return _IMP_core.ChecksScoreState___repr__(self)
4495 
4496  @staticmethod
4497  def get_from(o):
4498  return _object_cast_to_ChecksScoreState(o)
4499 
4500 
4501  def _get_as_binary(self):
4502  r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4503  return _IMP_core.ChecksScoreState__get_as_binary(self)
4504 
4505  def _set_from_binary(self, p):
4506  r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4507  return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4508 
4509  def __getstate__(self):
4510  p = self._get_as_binary()
4511  if len(self.__dict__) > 1:
4512  d = self.__dict__.copy()
4513  del d['this']
4514  p = (d, p)
4515  return p
4516 
4517  def __setstate__(self, p):
4518  if not hasattr(self, 'this'):
4519  self.__init__()
4520  if isinstance(p, tuple):
4521  d, p = p
4522  self.__dict__.update(d)
4523  return self._set_from_binary(p)
4524 
4525 
4526 # Register ChecksScoreState in _IMP_core:
4527 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4528 class ChildrenRefiner(IMP.Refiner):
4529  r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4530 
4531  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4532 
4533  def __init__(self, tr):
4534  r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4535  _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4536 
4537  def do_get_inputs(self, m, pis):
4538  r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4539  return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4540 
4541  def get_version_info(self):
4542  r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4543  return _IMP_core.ChildrenRefiner_get_version_info(self)
4544  __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4545 
4546  def __str__(self):
4547  r"""__str__(ChildrenRefiner self) -> std::string"""
4548  return _IMP_core.ChildrenRefiner___str__(self)
4549 
4550  def __repr__(self):
4551  r"""__repr__(ChildrenRefiner self) -> std::string"""
4552  return _IMP_core.ChildrenRefiner___repr__(self)
4553 
4554  @staticmethod
4555  def get_from(o):
4556  return _object_cast_to_ChildrenRefiner(o)
4557 
4558 
4559 # Register ChildrenRefiner in _IMP_core:
4560 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4561 class ClosedCubicSpline(IMP.UnaryFunction):
4562  r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4563 
4564  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4565 
4566  def __init__(self, values, minrange, spacing):
4567  r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4568  _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4569 
4570  def get_version_info(self):
4571  r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4572  return _IMP_core.ClosedCubicSpline_get_version_info(self)
4573  __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4574 
4575  def do_show(self, out):
4576  r"""do_show(ClosedCubicSpline self, _ostream out)"""
4577  return _IMP_core.ClosedCubicSpline_do_show(self, out)
4578 
4579  def __str__(self):
4580  r"""__str__(ClosedCubicSpline self) -> std::string"""
4581  return _IMP_core.ClosedCubicSpline___str__(self)
4582 
4583  def __repr__(self):
4584  r"""__repr__(ClosedCubicSpline self) -> std::string"""
4585  return _IMP_core.ClosedCubicSpline___repr__(self)
4586 
4587  @staticmethod
4588  def get_from(o):
4589  return _object_cast_to_ClosedCubicSpline(o)
4590 
4591 
4592 # Register ClosedCubicSpline in _IMP_core:
4593 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4594 class KClosePairsPairScore(IMP.PairScore):
4595  r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4596 
4597  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4598 
4599  def __init__(self, f, r, k=1):
4600  r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4601  _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4602 
4603  def get_close_pairs(self, pp):
4604  r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4605  return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4606 
4607  def create_current_decomposition(self, m, vt):
4608  r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4609  return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4610 
4611  def do_get_inputs(self, m, pis):
4612  r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4613  return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4614 
4615  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4616  r"""evaluate_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4617  return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4618 
4619  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4620  r"""evaluate_indexes_scores(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4621  return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4622 
4623  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4624  r"""evaluate_indexes_delta(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4625  return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4626 
4627  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4628  r"""evaluate_if_good_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4629  return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4630 
4631  def get_version_info(self):
4632  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4633  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4634  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4635 
4636  def __str__(self):
4637  r"""__str__(KClosePairsPairScore self) -> std::string"""
4638  return _IMP_core.KClosePairsPairScore___str__(self)
4639 
4640  def __repr__(self):
4641  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4642  return _IMP_core.KClosePairsPairScore___repr__(self)
4643 
4644  @staticmethod
4645  def get_from(o):
4646  return _object_cast_to_KClosePairsPairScore(o)
4647 
4648 
4649 # Register KClosePairsPairScore in _IMP_core:
4650 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4651 class ClosePairsPairScore(IMP.PairScore):
4652  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4653 
4654  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4655 
4656  def __init__(self, f, r, max_distance):
4657  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4658  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4659 
4660  def get_close_pairs(self, pp):
4661  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4662  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4663 
4664  def create_current_decomposition(self, m, vt):
4665  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4666  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4667 
4668  def do_get_inputs(self, m, pis):
4669  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4670  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4671 
4672  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4673  r"""evaluate_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4674  return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4675 
4676  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4677  r"""evaluate_indexes_scores(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4678  return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4679 
4680  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4681  r"""evaluate_indexes_delta(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4682  return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4683 
4684  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4685  r"""evaluate_if_good_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4686  return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4687 
4688  def get_version_info(self):
4689  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4690  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4691  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4692 
4693  def __str__(self):
4694  r"""__str__(ClosePairsPairScore self) -> std::string"""
4695  return _IMP_core.ClosePairsPairScore___str__(self)
4696 
4697  def __repr__(self):
4698  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4699  return _IMP_core.ClosePairsPairScore___repr__(self)
4700 
4701  @staticmethod
4702  def get_from(o):
4703  return _object_cast_to_ClosePairsPairScore(o)
4704 
4705 
4706 # Register ClosePairsPairScore in _IMP_core:
4707 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4708 class ConjugateGradients(IMP.AttributeOptimizer):
4709  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4710 
4711  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4712 
4713  def __init__(self, *args):
4714  r"""
4715  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4716  __init__(ConjugateGradients self) -> ConjugateGradients
4717  """
4718  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4719 
4720  def set_gradient_threshold(self, t):
4721  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4722  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4723 
4724  def set_max_change(self, t):
4725  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4726  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4727 
4728  def do_optimize(self, max_steps):
4729  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4730  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4731 
4732  def get_version_info(self):
4733  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4734  return _IMP_core.ConjugateGradients_get_version_info(self)
4735  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4736 
4737  def __str__(self):
4738  r"""__str__(ConjugateGradients self) -> std::string"""
4739  return _IMP_core.ConjugateGradients___str__(self)
4740 
4741  def __repr__(self):
4742  r"""__repr__(ConjugateGradients self) -> std::string"""
4743  return _IMP_core.ConjugateGradients___repr__(self)
4744 
4745  @staticmethod
4746  def get_from(o):
4747  return _object_cast_to_ConjugateGradients(o)
4748 
4749 
4750  def _get_as_binary(self):
4751  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4752  return _IMP_core.ConjugateGradients__get_as_binary(self)
4753 
4754  def _set_from_binary(self, p):
4755  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4756  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4757 
4758  def __getstate__(self):
4759  p = self._get_as_binary()
4760  if len(self.__dict__) > 1:
4761  d = self.__dict__.copy()
4762  del d['this']
4763  p = (d, p)
4764  return p
4765 
4766  def __setstate__(self, p):
4767  if not hasattr(self, 'this'):
4768  self.__init__()
4769  if isinstance(p, tuple):
4770  d, p = p
4771  self.__dict__.update(d)
4772  return self._set_from_binary(p)
4773 
4774 
4775 # Register ConjugateGradients in _IMP_core:
4776 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4777 class ConnectivityRestraint(IMP.Restraint):
4778  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4779 
4780  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4781 
4782  def __init__(self, ps, sc):
4783  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4784  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4785 
4786  def get_connected_index_pairs(self):
4787  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4788  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4789 
4790  def get_pair_score(self):
4791  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4792  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4793 
4794  def do_create_current_decomposition(self):
4795  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4796  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4797 
4798  def do_get_inputs(self):
4799  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4800  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4801 
4802  def get_version_info(self):
4803  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4804  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4805  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4806 
4807  def __str__(self):
4808  r"""__str__(ConnectivityRestraint self) -> std::string"""
4809  return _IMP_core.ConnectivityRestraint___str__(self)
4810 
4811  def __repr__(self):
4812  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4813  return _IMP_core.ConnectivityRestraint___repr__(self)
4814 
4815  @staticmethod
4816  def get_from(o):
4817  return _object_cast_to_ConnectivityRestraint(o)
4818 
4819 
4820 # Register ConnectivityRestraint in _IMP_core:
4821 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4822 class ConstantRestraint(IMP.Restraint):
4823  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4824 
4825  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4826 
4827  def __init__(self, *args):
4828  r"""
4829  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4830  __init__(ConstantRestraint self) -> ConstantRestraint
4831  """
4832  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4833 
4834  def do_get_inputs(self):
4835  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4836  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4837 
4838  def get_version_info(self):
4839  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4840  return _IMP_core.ConstantRestraint_get_version_info(self)
4841  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4842 
4843  def __str__(self):
4844  r"""__str__(ConstantRestraint self) -> std::string"""
4845  return _IMP_core.ConstantRestraint___str__(self)
4846 
4847  def __repr__(self):
4848  r"""__repr__(ConstantRestraint self) -> std::string"""
4849  return _IMP_core.ConstantRestraint___repr__(self)
4850 
4851  @staticmethod
4852  def get_from(o):
4853  return _object_cast_to_ConstantRestraint(o)
4854 
4855 
4856  def _get_as_binary(self):
4857  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4858  return _IMP_core.ConstantRestraint__get_as_binary(self)
4859 
4860  def _set_from_binary(self, p):
4861  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4862  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4863 
4864  def __getstate__(self):
4865  p = self._get_as_binary()
4866  if len(self.__dict__) > 1:
4867  d = self.__dict__.copy()
4868  del d['this']
4869  p = (d, p)
4870  return p
4871 
4872  def __setstate__(self, p):
4873  if not hasattr(self, 'this'):
4874  self.__init__()
4875  if isinstance(p, tuple):
4876  d, p = p
4877  self.__dict__.update(d)
4878  return self._set_from_binary(p)
4879 
4880 
4881 # Register ConstantRestraint in _IMP_core:
4882 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4883 class Cosine(IMP.UnaryFunction):
4884  r"""Proxy of C++ IMP::core::Cosine class."""
4885 
4886  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4887 
4888  def __init__(self, *args):
4889  r"""
4890  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4891  __init__(Cosine self) -> Cosine
4892  """
4893  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4894 
4895  def get_version_info(self):
4896  r"""get_version_info(Cosine self) -> VersionInfo"""
4897  return _IMP_core.Cosine_get_version_info(self)
4898  __swig_destroy__ = _IMP_core.delete_Cosine
4899 
4900  def do_show(self, out):
4901  r"""do_show(Cosine self, _ostream out)"""
4902  return _IMP_core.Cosine_do_show(self, out)
4903 
4904  def __str__(self):
4905  r"""__str__(Cosine self) -> std::string"""
4906  return _IMP_core.Cosine___str__(self)
4907 
4908  def __repr__(self):
4909  r"""__repr__(Cosine self) -> std::string"""
4910  return _IMP_core.Cosine___repr__(self)
4911 
4912  @staticmethod
4913  def get_from(o):
4914  return _object_cast_to_Cosine(o)
4915 
4916 
4917  def _get_as_binary(self):
4918  r"""_get_as_binary(Cosine self) -> PyObject *"""
4919  return _IMP_core.Cosine__get_as_binary(self)
4920 
4921  def _set_from_binary(self, p):
4922  r"""_set_from_binary(Cosine self, PyObject * p)"""
4923  return _IMP_core.Cosine__set_from_binary(self, p)
4924 
4925  def __getstate__(self):
4926  p = self._get_as_binary()
4927  if len(self.__dict__) > 1:
4928  d = self.__dict__.copy()
4929  del d['this']
4930  p = (d, p)
4931  return p
4932 
4933  def __setstate__(self, p):
4934  if not hasattr(self, 'this'):
4935  self.__init__()
4936  if isinstance(p, tuple):
4937  d, p = p
4938  self.__dict__.update(d)
4939  return self._set_from_binary(p)
4940 
4941 
4942 # Register Cosine in _IMP_core:
4943 _IMP_core.Cosine_swigregister(Cosine)
4944 class CoverRefined(IMP.SingletonModifier):
4945  r"""Proxy of C++ IMP::core::CoverRefined class."""
4946 
4947  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4948 
4949  def __init__(self, ref, slack=0):
4950  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4951  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4952 
4953  def set_slack(self, slack):
4954  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4955  return _IMP_core.CoverRefined_set_slack(self, slack)
4956 
4957  def do_get_inputs(self, m, pis):
4958  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4959  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4960 
4961  def do_get_outputs(self, m, pis):
4962  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4963  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4964 
4965  def get_version_info(self):
4966  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4967  return _IMP_core.CoverRefined_get_version_info(self)
4968  __swig_destroy__ = _IMP_core.delete_CoverRefined
4969 
4970  def __str__(self):
4971  r"""__str__(CoverRefined self) -> std::string"""
4972  return _IMP_core.CoverRefined___str__(self)
4973 
4974  def __repr__(self):
4975  r"""__repr__(CoverRefined self) -> std::string"""
4976  return _IMP_core.CoverRefined___repr__(self)
4977 
4978  @staticmethod
4979  def get_from(o):
4980  return _object_cast_to_CoverRefined(o)
4981 
4982 
4983 # Register CoverRefined in _IMP_core:
4984 _IMP_core.CoverRefined_swigregister(CoverRefined)
4985 class Cover(XYZR):
4986  r"""Proxy of C++ IMP::core::Cover class."""
4987 
4988  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4989 
4990  def get_constraint(self):
4991  r"""get_constraint(Cover self) -> Constraint"""
4992  return _IMP_core.Cover_get_constraint(self)
4993 
4994  def __init__(self, *args):
4995  r"""
4996  __init__(Cover self) -> Cover
4997  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4998  __init__(Cover self, _ParticleAdaptor d) -> Cover
4999  """
5000  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
5001 
5002  def show(self, *args):
5003  r"""show(Cover self, _ostream out=std::cout)"""
5004  return _IMP_core.Cover_show(self, *args)
5005 
5006  @staticmethod
5007  def setup_particle(*args):
5008  r"""
5009  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
5010  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
5011  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
5012  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
5013  """
5014  return _IMP_core.Cover_setup_particle(*args)
5015 
5016  @staticmethod
5017  def get_is_setup(*args):
5018  r"""
5019  get_is_setup(_ParticleAdaptor p) -> bool
5020  get_is_setup(Model m, ParticleIndex pi) -> bool
5021  """
5022  return _IMP_core.Cover_get_is_setup(*args)
5023 
5024  def add_attribute(self, *args):
5025  r"""
5026  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
5027  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
5028  add_attribute(Cover self, IntKey a0, IMP::Int a1)
5029  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
5030  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
5031  add_attribute(Cover self, StringKey a0, IMP::String a1)
5032  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
5033  add_attribute(Cover self, ObjectKey a0, Object a1)
5034  add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5035  add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5036  add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5037  add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5038  """
5039  return _IMP_core.Cover_add_attribute(self, *args)
5040 
5041  def get_value(self, *args):
5042  r"""
5043  get_value(Cover self, FloatKey a0) -> IMP::Float
5044  get_value(Cover self, IntKey a0) -> IMP::Int
5045  get_value(Cover self, FloatsKey a0) -> IMP::Floats
5046  get_value(Cover self, IntsKey a0) -> IMP::Ints
5047  get_value(Cover self, StringKey a0) -> IMP::String
5048  get_value(Cover self, ParticleIndexKey a0) -> Particle
5049  get_value(Cover self, ObjectKey a0) -> Object
5050  get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5051  get_value(Cover self, SparseIntKey a0) -> IMP::Int
5052  get_value(Cover self, SparseStringKey a0) -> IMP::String
5053  get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5054  """
5055  return _IMP_core.Cover_get_value(self, *args)
5056 
5057  def set_value(self, *args):
5058  r"""
5059  set_value(Cover self, FloatKey a0, IMP::Float a1)
5060  set_value(Cover self, IntKey a0, IMP::Int a1)
5061  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5062  set_value(Cover self, IntsKey a0, IMP::Ints a1)
5063  set_value(Cover self, StringKey a0, IMP::String a1)
5064  set_value(Cover self, ParticleIndexKey a0, Particle a1)
5065  set_value(Cover self, ObjectKey a0, Object a1)
5066  set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5067  set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5068  set_value(Cover self, SparseStringKey a0, IMP::String a1)
5069  set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5070  """
5071  return _IMP_core.Cover_set_value(self, *args)
5072 
5073  def remove_attribute(self, *args):
5074  r"""
5075  remove_attribute(Cover self, FloatKey a0)
5076  remove_attribute(Cover self, IntKey a0)
5077  remove_attribute(Cover self, FloatsKey a0)
5078  remove_attribute(Cover self, IntsKey a0)
5079  remove_attribute(Cover self, StringKey a0)
5080  remove_attribute(Cover self, ParticleIndexKey a0)
5081  remove_attribute(Cover self, ObjectKey a0)
5082  remove_attribute(Cover self, SparseFloatKey a0)
5083  remove_attribute(Cover self, SparseIntKey a0)
5084  remove_attribute(Cover self, SparseStringKey a0)
5085  remove_attribute(Cover self, SparseParticleIndexKey a0)
5086  """
5087  return _IMP_core.Cover_remove_attribute(self, *args)
5088 
5089  def has_attribute(self, *args):
5090  r"""
5091  has_attribute(Cover self, FloatKey a0) -> bool
5092  has_attribute(Cover self, IntKey a0) -> bool
5093  has_attribute(Cover self, FloatsKey a0) -> bool
5094  has_attribute(Cover self, IntsKey a0) -> bool
5095  has_attribute(Cover self, StringKey a0) -> bool
5096  has_attribute(Cover self, ParticleIndexKey a0) -> bool
5097  has_attribute(Cover self, ObjectKey a0) -> bool
5098  has_attribute(Cover self, SparseFloatKey a0) -> bool
5099  has_attribute(Cover self, SparseIntKey a0) -> bool
5100  has_attribute(Cover self, SparseStringKey a0) -> bool
5101  has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5102  """
5103  return _IMP_core.Cover_has_attribute(self, *args)
5104 
5105  def get_derivative(self, a0):
5106  r"""get_derivative(Cover self, FloatKey a0) -> double"""
5107  return _IMP_core.Cover_get_derivative(self, a0)
5108 
5109  def get_name(self):
5110  r"""get_name(Cover self) -> std::string"""
5111  return _IMP_core.Cover_get_name(self)
5112 
5113  def clear_caches(self):
5114  r"""clear_caches(Cover self)"""
5115  return _IMP_core.Cover_clear_caches(self)
5116 
5117  def set_name(self, a0):
5118  r"""set_name(Cover self, std::string a0)"""
5119  return _IMP_core.Cover_set_name(self, a0)
5120 
5121  def set_check_level(self, a0):
5122  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5123  return _IMP_core.Cover_set_check_level(self, a0)
5124 
5125  def add_to_derivative(self, a0, a1, a2):
5126  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5127  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5128 
5129  def set_is_optimized(self, a0, a1):
5130  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5131  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5132 
5133  def get_is_optimized(self, a0):
5134  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5135  return _IMP_core.Cover_get_is_optimized(self, a0)
5136 
5137  def get_check_level(self):
5138  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5139  return _IMP_core.Cover_get_check_level(self)
5140 
5141  def __eq__(self, *args):
5142  r"""
5143  __eq__(Cover self, Cover o) -> bool
5144  __eq__(Cover self, Particle d) -> bool
5145  """
5146  return _IMP_core.Cover___eq__(self, *args)
5147 
5148  def __ne__(self, *args):
5149  r"""
5150  __ne__(Cover self, Cover o) -> bool
5151  __ne__(Cover self, Particle d) -> bool
5152  """
5153  return _IMP_core.Cover___ne__(self, *args)
5154 
5155  def __le__(self, *args):
5156  r"""
5157  __le__(Cover self, Cover o) -> bool
5158  __le__(Cover self, Particle d) -> bool
5159  """
5160  return _IMP_core.Cover___le__(self, *args)
5161 
5162  def __lt__(self, *args):
5163  r"""
5164  __lt__(Cover self, Cover o) -> bool
5165  __lt__(Cover self, Particle d) -> bool
5166  """
5167  return _IMP_core.Cover___lt__(self, *args)
5168 
5169  def __ge__(self, *args):
5170  r"""
5171  __ge__(Cover self, Cover o) -> bool
5172  __ge__(Cover self, Particle d) -> bool
5173  """
5174  return _IMP_core.Cover___ge__(self, *args)
5175 
5176  def __gt__(self, *args):
5177  r"""
5178  __gt__(Cover self, Cover o) -> bool
5179  __gt__(Cover self, Particle d) -> bool
5180  """
5181  return _IMP_core.Cover___gt__(self, *args)
5182 
5183  def __hash__(self):
5184  r"""__hash__(Cover self) -> std::size_t"""
5185  return _IMP_core.Cover___hash__(self)
5186 
5187  def __str__(self):
5188  r"""__str__(Cover self) -> std::string"""
5189  return _IMP_core.Cover___str__(self)
5190 
5191  def __repr__(self):
5192  r"""__repr__(Cover self) -> std::string"""
5193  return _IMP_core.Cover___repr__(self)
5194 
5195  def _get_as_binary(self):
5196  r"""_get_as_binary(Cover self) -> PyObject *"""
5197  return _IMP_core.Cover__get_as_binary(self)
5198 
5199  def _set_from_binary(self, p):
5200  r"""_set_from_binary(Cover self, PyObject * p)"""
5201  return _IMP_core.Cover__set_from_binary(self, p)
5202 
5203  def __getstate__(self):
5204  p = self._get_as_binary()
5205  if len(self.__dict__) > 1:
5206  d = self.__dict__.copy()
5207  del d['this']
5208  p = (d, p)
5209  return p
5210 
5211  def __setstate__(self, p):
5212  if not hasattr(self, 'this'):
5213  self.__init__()
5214  if isinstance(p, tuple):
5215  d, p = p
5216  self.__dict__.update(d)
5217  return self._set_from_binary(p)
5218 
5219  __swig_destroy__ = _IMP_core.delete_Cover
5220 
5221 # Register Cover in _IMP_core:
5222 _IMP_core.Cover_swigregister(Cover)
5223 class DerivativesFromRefined(IMP.SingletonModifier):
5224  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5225 
5226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5227 
5228  def __init__(self, *args):
5229  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5230  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5231 
5232  def do_get_inputs(self, m, pis):
5233  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5234  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5235 
5236  def do_get_outputs(self, m, pis):
5237  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5238  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5239 
5240  def get_version_info(self):
5241  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5242  return _IMP_core.DerivativesFromRefined_get_version_info(self)
5243  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5244 
5245  def __str__(self):
5246  r"""__str__(DerivativesFromRefined self) -> std::string"""
5247  return _IMP_core.DerivativesFromRefined___str__(self)
5248 
5249  def __repr__(self):
5250  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5251  return _IMP_core.DerivativesFromRefined___repr__(self)
5252 
5253  @staticmethod
5254  def get_from(o):
5255  return _object_cast_to_DerivativesFromRefined(o)
5256 
5257 
5258 # Register DerivativesFromRefined in _IMP_core:
5259 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5260 class DerivativesToRefined(IMP.SingletonModifier):
5261  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5262 
5263  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5264 
5265  def __init__(self, *args):
5266  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5267  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5268 
5269  def do_get_inputs(self, m, pis):
5270  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5271  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5272 
5273  def do_get_outputs(self, m, pis):
5274  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5275  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5276 
5277  def get_version_info(self):
5278  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5279  return _IMP_core.DerivativesToRefined_get_version_info(self)
5280  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5281 
5282  def __str__(self):
5283  r"""__str__(DerivativesToRefined self) -> std::string"""
5284  return _IMP_core.DerivativesToRefined___str__(self)
5285 
5286  def __repr__(self):
5287  r"""__repr__(DerivativesToRefined self) -> std::string"""
5288  return _IMP_core.DerivativesToRefined___repr__(self)
5289 
5290  @staticmethod
5291  def get_from(o):
5292  return _object_cast_to_DerivativesToRefined(o)
5293 
5294 
5295 # Register DerivativesToRefined in _IMP_core:
5296 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5297 class DiameterRestraint(IMP.Restraint):
5298  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5299 
5300  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5301 
5302  def __init__(self, f, sc, diameter):
5303  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5304  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5305 
5306  def do_get_inputs(self):
5307  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5308  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5309 
5310  def get_version_info(self):
5311  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5312  return _IMP_core.DiameterRestraint_get_version_info(self)
5313  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5314 
5315  def do_create_decomposition(self):
5316  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5317  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5318 
5319  def do_create_current_decomposition(self):
5320  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5321  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5322 
5323  def __str__(self):
5324  r"""__str__(DiameterRestraint self) -> std::string"""
5325  return _IMP_core.DiameterRestraint___str__(self)
5326 
5327  def __repr__(self):
5328  r"""__repr__(DiameterRestraint self) -> std::string"""
5329  return _IMP_core.DiameterRestraint___repr__(self)
5330 
5331  @staticmethod
5332  def get_from(o):
5333  return _object_cast_to_DiameterRestraint(o)
5334 
5335 
5336 # Register DiameterRestraint in _IMP_core:
5337 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5338 class Transform(IMP.SingletonModifier):
5339  r"""Proxy of C++ IMP::core::Transform class."""
5340 
5341  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5342 
5343  def __init__(self, *args):
5344  r"""
5345  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5346  __init__(Transform self) -> Transform
5347  """
5348  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5349 
5350  def do_get_inputs(self, m, pis):
5351  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5352  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5353 
5354  def do_get_outputs(self, m, pis):
5355  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5356  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5357 
5358  def get_version_info(self):
5359  r"""get_version_info(Transform self) -> VersionInfo"""
5360  return _IMP_core.Transform_get_version_info(self)
5361  __swig_destroy__ = _IMP_core.delete_Transform
5362 
5363  def __str__(self):
5364  r"""__str__(Transform self) -> std::string"""
5365  return _IMP_core.Transform___str__(self)
5366 
5367  def __repr__(self):
5368  r"""__repr__(Transform self) -> std::string"""
5369  return _IMP_core.Transform___repr__(self)
5370 
5371  @staticmethod
5372  def get_from(o):
5373  return _object_cast_to_Transform(o)
5374 
5375 
5376  def _get_as_binary(self):
5377  r"""_get_as_binary(Transform self) -> PyObject *"""
5378  return _IMP_core.Transform__get_as_binary(self)
5379 
5380  def _set_from_binary(self, p):
5381  r"""_set_from_binary(Transform self, PyObject * p)"""
5382  return _IMP_core.Transform__set_from_binary(self, p)
5383 
5384  def __getstate__(self):
5385  p = self._get_as_binary()
5386  if len(self.__dict__) > 1:
5387  d = self.__dict__.copy()
5388  del d['this']
5389  p = (d, p)
5390  return p
5391 
5392  def __setstate__(self, p):
5393  if not hasattr(self, 'this'):
5394  self.__init__()
5395  if isinstance(p, tuple):
5396  d, p = p
5397  self.__dict__.update(d)
5398  return self._set_from_binary(p)
5399 
5400 
5401 # Register Transform in _IMP_core:
5402 _IMP_core.Transform_swigregister(Transform)
5403 class Reference(IMP.Decorator):
5404  r"""Proxy of C++ IMP::core::Reference class."""
5405 
5406  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5407 
5408  def __init__(self, *args):
5409  r"""
5410  __init__(Reference self) -> Reference
5411  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5412  __init__(Reference self, _ParticleAdaptor d) -> Reference
5413  """
5414  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5415 
5416  def show(self, *args):
5417  r"""show(Reference self, _ostream out=std::cout)"""
5418  return _IMP_core.Reference_show(self, *args)
5419 
5420  @staticmethod
5421  def setup_particle(*args):
5422  r"""
5423  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5424  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5425  """
5426  return _IMP_core.Reference_setup_particle(*args)
5427 
5428  def get_reference_particle(self):
5429  r"""get_reference_particle(Reference self) -> Particle"""
5430  return _IMP_core.Reference_get_reference_particle(self)
5431 
5432  @staticmethod
5433  def get_is_setup(*args):
5434  r"""
5435  get_is_setup(_ParticleAdaptor p) -> bool
5436  get_is_setup(Model m, ParticleIndex pi) -> bool
5437  """
5438  return _IMP_core.Reference_get_is_setup(*args)
5439 
5440  @staticmethod
5441  def get_reference_key():
5442  r"""get_reference_key() -> ParticleIndexKey"""
5443  return _IMP_core.Reference_get_reference_key()
5444 
5445  def add_attribute(self, *args):
5446  r"""
5447  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5448  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5449  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5450  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5451  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5452  add_attribute(Reference self, StringKey a0, IMP::String a1)
5453  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5454  add_attribute(Reference self, ObjectKey a0, Object a1)
5455  add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5456  add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5457  add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5458  add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5459  """
5460  return _IMP_core.Reference_add_attribute(self, *args)
5461 
5462  def get_value(self, *args):
5463  r"""
5464  get_value(Reference self, FloatKey a0) -> IMP::Float
5465  get_value(Reference self, IntKey a0) -> IMP::Int
5466  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5467  get_value(Reference self, IntsKey a0) -> IMP::Ints
5468  get_value(Reference self, StringKey a0) -> IMP::String
5469  get_value(Reference self, ParticleIndexKey a0) -> Particle
5470  get_value(Reference self, ObjectKey a0) -> Object
5471  get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5472  get_value(Reference self, SparseIntKey a0) -> IMP::Int
5473  get_value(Reference self, SparseStringKey a0) -> IMP::String
5474  get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5475  """
5476  return _IMP_core.Reference_get_value(self, *args)
5477 
5478  def set_value(self, *args):
5479  r"""
5480  set_value(Reference self, FloatKey a0, IMP::Float a1)
5481  set_value(Reference self, IntKey a0, IMP::Int a1)
5482  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5483  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5484  set_value(Reference self, StringKey a0, IMP::String a1)
5485  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5486  set_value(Reference self, ObjectKey a0, Object a1)
5487  set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5488  set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5489  set_value(Reference self, SparseStringKey a0, IMP::String a1)
5490  set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5491  """
5492  return _IMP_core.Reference_set_value(self, *args)
5493 
5494  def remove_attribute(self, *args):
5495  r"""
5496  remove_attribute(Reference self, FloatKey a0)
5497  remove_attribute(Reference self, IntKey a0)
5498  remove_attribute(Reference self, FloatsKey a0)
5499  remove_attribute(Reference self, IntsKey a0)
5500  remove_attribute(Reference self, StringKey a0)
5501  remove_attribute(Reference self, ParticleIndexKey a0)
5502  remove_attribute(Reference self, ObjectKey a0)
5503  remove_attribute(Reference self, SparseFloatKey a0)
5504  remove_attribute(Reference self, SparseIntKey a0)
5505  remove_attribute(Reference self, SparseStringKey a0)
5506  remove_attribute(Reference self, SparseParticleIndexKey a0)
5507  """
5508  return _IMP_core.Reference_remove_attribute(self, *args)
5509 
5510  def has_attribute(self, *args):
5511  r"""
5512  has_attribute(Reference self, FloatKey a0) -> bool
5513  has_attribute(Reference self, IntKey a0) -> bool
5514  has_attribute(Reference self, FloatsKey a0) -> bool
5515  has_attribute(Reference self, IntsKey a0) -> bool
5516  has_attribute(Reference self, StringKey a0) -> bool
5517  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5518  has_attribute(Reference self, ObjectKey a0) -> bool
5519  has_attribute(Reference self, SparseFloatKey a0) -> bool
5520  has_attribute(Reference self, SparseIntKey a0) -> bool
5521  has_attribute(Reference self, SparseStringKey a0) -> bool
5522  has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5523  """
5524  return _IMP_core.Reference_has_attribute(self, *args)
5525 
5526  def get_derivative(self, a0):
5527  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5528  return _IMP_core.Reference_get_derivative(self, a0)
5529 
5530  def get_name(self):
5531  r"""get_name(Reference self) -> std::string"""
5532  return _IMP_core.Reference_get_name(self)
5533 
5534  def clear_caches(self):
5535  r"""clear_caches(Reference self)"""
5536  return _IMP_core.Reference_clear_caches(self)
5537 
5538  def set_name(self, a0):
5539  r"""set_name(Reference self, std::string a0)"""
5540  return _IMP_core.Reference_set_name(self, a0)
5541 
5542  def set_check_level(self, a0):
5543  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5544  return _IMP_core.Reference_set_check_level(self, a0)
5545 
5546  def add_to_derivative(self, a0, a1, a2):
5547  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5548  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5549 
5550  def set_is_optimized(self, a0, a1):
5551  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5552  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5553 
5554  def get_is_optimized(self, a0):
5555  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5556  return _IMP_core.Reference_get_is_optimized(self, a0)
5557 
5558  def get_check_level(self):
5559  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5560  return _IMP_core.Reference_get_check_level(self)
5561 
5562  def __eq__(self, *args):
5563  r"""
5564  __eq__(Reference self, Reference o) -> bool
5565  __eq__(Reference self, Particle d) -> bool
5566  """
5567  return _IMP_core.Reference___eq__(self, *args)
5568 
5569  def __ne__(self, *args):
5570  r"""
5571  __ne__(Reference self, Reference o) -> bool
5572  __ne__(Reference self, Particle d) -> bool
5573  """
5574  return _IMP_core.Reference___ne__(self, *args)
5575 
5576  def __le__(self, *args):
5577  r"""
5578  __le__(Reference self, Reference o) -> bool
5579  __le__(Reference self, Particle d) -> bool
5580  """
5581  return _IMP_core.Reference___le__(self, *args)
5582 
5583  def __lt__(self, *args):
5584  r"""
5585  __lt__(Reference self, Reference o) -> bool
5586  __lt__(Reference self, Particle d) -> bool
5587  """
5588  return _IMP_core.Reference___lt__(self, *args)
5589 
5590  def __ge__(self, *args):
5591  r"""
5592  __ge__(Reference self, Reference o) -> bool
5593  __ge__(Reference self, Particle d) -> bool
5594  """
5595  return _IMP_core.Reference___ge__(self, *args)
5596 
5597  def __gt__(self, *args):
5598  r"""
5599  __gt__(Reference self, Reference o) -> bool
5600  __gt__(Reference self, Particle d) -> bool
5601  """
5602  return _IMP_core.Reference___gt__(self, *args)
5603 
5604  def __hash__(self):
5605  r"""__hash__(Reference self) -> std::size_t"""
5606  return _IMP_core.Reference___hash__(self)
5607 
5608  def __str__(self):
5609  r"""__str__(Reference self) -> std::string"""
5610  return _IMP_core.Reference___str__(self)
5611 
5612  def __repr__(self):
5613  r"""__repr__(Reference self) -> std::string"""
5614  return _IMP_core.Reference___repr__(self)
5615 
5616  def _get_as_binary(self):
5617  r"""_get_as_binary(Reference self) -> PyObject *"""
5618  return _IMP_core.Reference__get_as_binary(self)
5619 
5620  def _set_from_binary(self, p):
5621  r"""_set_from_binary(Reference self, PyObject * p)"""
5622  return _IMP_core.Reference__set_from_binary(self, p)
5623 
5624  def __getstate__(self):
5625  p = self._get_as_binary()
5626  if len(self.__dict__) > 1:
5627  d = self.__dict__.copy()
5628  del d['this']
5629  p = (d, p)
5630  return p
5631 
5632  def __setstate__(self, p):
5633  if not hasattr(self, 'this'):
5634  self.__init__()
5635  if isinstance(p, tuple):
5636  d, p = p
5637  self.__dict__.update(d)
5638  return self._set_from_binary(p)
5639 
5640  __swig_destroy__ = _IMP_core.delete_Reference
5641 
5642 # Register Reference in _IMP_core:
5643 _IMP_core.Reference_swigregister(Reference)
5644 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5645  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5646 
5647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5648 
5649  def __init__(self, t, r):
5650  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5651  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5652 
5653  def do_get_inputs(self, m, pis):
5654  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5655  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5656 
5657  def do_get_outputs(self, m, pis):
5658  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5659  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5660 
5661  def get_version_info(self):
5662  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5663  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5664  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5665 
5666  def __str__(self):
5667  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5668  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5669 
5670  def __repr__(self):
5671  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5672  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5673 
5674  @staticmethod
5675  def get_from(o):
5676  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5677 
5678 
5679 # Register TransformationAndReflectionSymmetry in _IMP_core:
5680 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5681 class TransformationSymmetry(IMP.SingletonModifier):
5682  r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5683 
5684  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5685 
5686  def __init__(self, *args):
5687  r"""
5688  __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5689  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5690  """
5691  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5692 
5693  def get_transformation(self):
5694  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5695  return _IMP_core.TransformationSymmetry_get_transformation(self)
5696 
5697  def set_transformation(self, t):
5698  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5699  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5700 
5701  def do_get_inputs(self, m, pis):
5702  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5703  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5704 
5705  def do_get_outputs(self, m, pis):
5706  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5707  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5708 
5709  def get_version_info(self):
5710  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5711  return _IMP_core.TransformationSymmetry_get_version_info(self)
5712  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5713 
5714  def __str__(self):
5715  r"""__str__(TransformationSymmetry self) -> std::string"""
5716  return _IMP_core.TransformationSymmetry___str__(self)
5717 
5718  def __repr__(self):
5719  r"""__repr__(TransformationSymmetry self) -> std::string"""
5720  return _IMP_core.TransformationSymmetry___repr__(self)
5721 
5722  @staticmethod
5723  def get_from(o):
5724  return _object_cast_to_TransformationSymmetry(o)
5725 
5726 
5727 # Register TransformationSymmetry in _IMP_core:
5728 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5729 class TransformationSymmetryMover(MonteCarloMover):
5730  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5731 
5732  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5733 
5734  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5735  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5736  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5737 
5738  def set_maximum_translation(self, mt):
5739  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5740  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5741 
5742  def set_maximum_rotation(self, mr):
5743  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5744  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5745 
5746  def get_maximum_translation(self):
5747  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5748  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5749 
5750  def get_maximum_rotation(self):
5751  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5752  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5753 
5754  def get_version_info(self):
5755  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5756  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5757  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5758 
5759  def __str__(self):
5760  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5761  return _IMP_core.TransformationSymmetryMover___str__(self)
5762 
5763  def __repr__(self):
5764  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5765  return _IMP_core.TransformationSymmetryMover___repr__(self)
5766 
5767  @staticmethod
5768  def get_from(o):
5769  return _object_cast_to_TransformationSymmetryMover(o)
5770 
5771 
5772 # Register TransformationSymmetryMover in _IMP_core:
5773 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5774 class DihedralRestraint(IMP.Restraint):
5775  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5776 
5777  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5778 
5779  def __init__(self, m, score_func, p1, p2, p3, p4):
5780  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5781  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5782 
5783  def do_get_inputs(self):
5784  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5785  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5786 
5787  def get_version_info(self):
5788  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5789  return _IMP_core.DihedralRestraint_get_version_info(self)
5790  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5791 
5792  def __str__(self):
5793  r"""__str__(DihedralRestraint self) -> std::string"""
5794  return _IMP_core.DihedralRestraint___str__(self)
5795 
5796  def __repr__(self):
5797  r"""__repr__(DihedralRestraint self) -> std::string"""
5798  return _IMP_core.DihedralRestraint___repr__(self)
5799 
5800  @staticmethod
5801  def get_from(o):
5802  return _object_cast_to_DihedralRestraint(o)
5803 
5804 
5805 # Register DihedralRestraint in _IMP_core:
5806 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5807 class DistancePairScore(IMP.PairScore):
5808  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5809 
5810  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5811 
5812  def __init__(self, *args):
5813  r"""
5814  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5815  __init__(DistancePairScore self) -> DistancePairScore
5816  """
5817  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5818 
5819  def do_get_inputs(self, m, pis):
5820  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5821  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5822 
5823  def get_version_info(self):
5824  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5825  return _IMP_core.DistancePairScore_get_version_info(self)
5826  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5827 
5828  def __str__(self):
5829  r"""__str__(DistancePairScore self) -> std::string"""
5830  return _IMP_core.DistancePairScore___str__(self)
5831 
5832  def __repr__(self):
5833  r"""__repr__(DistancePairScore self) -> std::string"""
5834  return _IMP_core.DistancePairScore___repr__(self)
5835 
5836  @staticmethod
5837  def get_from(o):
5838  return _object_cast_to_DistancePairScore(o)
5839 
5840 
5841  def _get_as_binary(self):
5842  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5843  return _IMP_core.DistancePairScore__get_as_binary(self)
5844 
5845  def _set_from_binary(self, p):
5846  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5847  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5848 
5849  def __getstate__(self):
5850  p = self._get_as_binary()
5851  if len(self.__dict__) > 1:
5852  d = self.__dict__.copy()
5853  del d['this']
5854  p = (d, p)
5855  return p
5856 
5857  def __setstate__(self, p):
5858  if not hasattr(self, 'this'):
5859  self.__init__()
5860  if isinstance(p, tuple):
5861  d, p = p
5862  self.__dict__.update(d)
5863  return self._set_from_binary(p)
5864 
5865 
5866 # Register DistancePairScore in _IMP_core:
5867 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5868 class HarmonicDistancePairScore(IMP.PairScore):
5869  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5870 
5871  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5872 
5873  def __init__(self, *args):
5874  r"""
5875  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5876  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5877  """
5878  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5879 
5880  def do_get_inputs(self, m, pis):
5881  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5882  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5883 
5884  def get_x0(self):
5885  r"""get_x0(HarmonicDistancePairScore self) -> double"""
5886  return _IMP_core.HarmonicDistancePairScore_get_x0(self)
5887 
5888  def get_k(self):
5889  r"""get_k(HarmonicDistancePairScore self) -> double"""
5890  return _IMP_core.HarmonicDistancePairScore_get_k(self)
5891 
5892  def get_version_info(self):
5893  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5894  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5895  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5896 
5897  def __str__(self):
5898  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5899  return _IMP_core.HarmonicDistancePairScore___str__(self)
5900 
5901  def __repr__(self):
5902  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5903  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5904 
5905  @staticmethod
5906  def get_from(o):
5907  return _object_cast_to_HarmonicDistancePairScore(o)
5908 
5909 
5910  def _get_as_binary(self):
5911  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5912  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5913 
5914  def _set_from_binary(self, p):
5915  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5916  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5917 
5918  def __getstate__(self):
5919  p = self._get_as_binary()
5920  if len(self.__dict__) > 1:
5921  d = self.__dict__.copy()
5922  del d['this']
5923  p = (d, p)
5924  return p
5925 
5926  def __setstate__(self, p):
5927  if not hasattr(self, 'this'):
5928  self.__init__()
5929  if isinstance(p, tuple):
5930  d, p = p
5931  self.__dict__.update(d)
5932  return self._set_from_binary(p)
5933 
5934 
5935  def _get_jax(self):
5936  import jax.numpy as jnp
5937  import functools
5938  def jax_harmonic_distance_pair_score(X, indexes, d, k):
5939  xyzs = X['xyz'][indexes]
5940  diff = xyzs[:,0] - xyzs[:,1]
5941  drs = jnp.linalg.norm(diff, axis=1)
5942  return 0.5 * k * (d - drs)**2
5943  f = functools.partial(jax_harmonic_distance_pair_score,
5944  d=self.get_x0(), k=self.get_k())
5945  return self._wrap_jax(f)
5946 
5947 
5948 # Register HarmonicDistancePairScore in _IMP_core:
5949 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5950 class DistanceRestraint(IMP.Restraint):
5951  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5952 
5953  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5954 
5955  def __init__(self, *args):
5956  r"""
5957  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5958  __init__(DistanceRestraint self) -> DistanceRestraint
5959  """
5960  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5961 
5962  def get_version_info(self):
5963  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5964  return _IMP_core.DistanceRestraint_get_version_info(self)
5965  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5966 
5967  def __str__(self):
5968  r"""__str__(DistanceRestraint self) -> std::string"""
5969  return _IMP_core.DistanceRestraint___str__(self)
5970 
5971  def __repr__(self):
5972  r"""__repr__(DistanceRestraint self) -> std::string"""
5973  return _IMP_core.DistanceRestraint___repr__(self)
5974 
5975  @staticmethod
5976  def get_from(o):
5977  return _object_cast_to_DistanceRestraint(o)
5978 
5979 
5980  def _get_as_binary(self):
5981  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5982  return _IMP_core.DistanceRestraint__get_as_binary(self)
5983 
5984  def _set_from_binary(self, p):
5985  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5986  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5987 
5988  def __getstate__(self):
5989  p = self._get_as_binary()
5990  if len(self.__dict__) > 1:
5991  d = self.__dict__.copy()
5992  del d['this']
5993  p = (d, p)
5994  return p
5995 
5996  def __setstate__(self, p):
5997  if not hasattr(self, 'this'):
5998  self.__init__()
5999  if isinstance(p, tuple):
6000  d, p = p
6001  self.__dict__.update(d)
6002  return self._set_from_binary(p)
6003 
6004 
6005 # Register DistanceRestraint in _IMP_core:
6006 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
6007 class SphereDistanceToSingletonScore(IMP.SingletonScore):
6008  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
6009 
6010  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6011 
6012  def __init__(self, f, pt):
6013  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
6014  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
6015 
6016  def do_get_inputs(self, m, pis):
6017  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6018  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
6019 
6020  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6021  r"""evaluate_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6022  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6023 
6024  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6025  r"""evaluate_indexes_scores(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6026  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6027 
6028  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6029  r"""evaluate_indexes_delta(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
6030  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6031 
6032  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6033  r"""evaluate_if_good_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
6034  return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6035 
6036  def get_version_info(self):
6037  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
6038  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6039  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6040 
6041  def __str__(self):
6042  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6043  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6044 
6045  def __repr__(self):
6046  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6047  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6048 
6049  @staticmethod
6050  def get_from(o):
6051  return _object_cast_to_SphereDistanceToSingletonScore(o)
6052 
6053 
6054 # Register SphereDistanceToSingletonScore in _IMP_core:
6055 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6056 class ExcludedVolumeRestraint(IMP.Restraint):
6057  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6058 
6059  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6060 
6061  def __init__(self, *args):
6062  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6063  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6064 
6065  def do_get_inputs(self):
6066  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6067  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6068 
6069  def get_version_info(self):
6070  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6071  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6072  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6073 
6074  def do_create_decomposition(self):
6075  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6076  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6077 
6078  def do_create_current_decomposition(self):
6079  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6080  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6081 
6082  def get_indexes(self):
6083  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6084  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6085  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
6086  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6087  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6088  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
6089 
6090  def remove_pair_filter(self, d):
6091  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6092  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6093 
6094  def _python_index_pair_filter(self, d, start, stop):
6095  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6096  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6097 
6098  def remove_pair_filters(self, d):
6099  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6100  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6101 
6102  def set_pair_filters(self, ps):
6103  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6104  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6105 
6106  def set_pair_filters_order(self, objs):
6107  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6108  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6109 
6110  def add_pair_filter(self, obj):
6111  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6112  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6113 
6114  def add_pair_filters(self, objs):
6115  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6116  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6117 
6118  def clear_pair_filters(self):
6119  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6120  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6121 
6122  def get_number_of_pair_filters(self):
6123  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6124  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6125 
6126  def get_has_pair_filters(self):
6127  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6128  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6129 
6130  def get_pair_filter(self, i):
6131  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6132  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6133 
6134  def get_pair_filters(self):
6135  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6136  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6137 
6138  def erase_pair_filter(self, i):
6139  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6140  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6141 
6142  def reserve_pair_filters(self, sz):
6143  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6144  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6145 
6146  def __str__(self):
6147  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6148  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6149 
6150  def __repr__(self):
6151  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6152  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6153 
6154  @staticmethod
6155  def get_from(o):
6156  return _object_cast_to_ExcludedVolumeRestraint(o)
6157 
6158 
6159 # Register ExcludedVolumeRestraint in _IMP_core:
6160 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6161 class FixedRefiner(IMP.Refiner):
6162  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6163 
6164  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6165 
6166  def __init__(self, *args):
6167  r"""
6168  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6169  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6170  """
6171  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6172 
6173  def do_get_inputs(self, m, pis):
6174  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6175  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6176 
6177  def get_version_info(self):
6178  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6179  return _IMP_core.FixedRefiner_get_version_info(self)
6180  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6181 
6182  def __str__(self):
6183  r"""__str__(FixedRefiner self) -> std::string"""
6184  return _IMP_core.FixedRefiner___str__(self)
6185 
6186  def __repr__(self):
6187  r"""__repr__(FixedRefiner self) -> std::string"""
6188  return _IMP_core.FixedRefiner___repr__(self)
6189 
6190  @staticmethod
6191  def get_from(o):
6192  return _object_cast_to_FixedRefiner(o)
6193 
6194 
6195 # Register FixedRefiner in _IMP_core:
6196 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6197 class GridClosePairsFinder(ClosePairsFinder):
6198  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6199 
6200  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6201 
6202  def __init__(self):
6203  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6204  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6205 
6206  def get_close_pairs(self, *args):
6207  r"""
6208  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6209  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6210  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6211  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6212  """
6213  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6214 
6215  def do_get_inputs(self, m, pis):
6216  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6217  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6218 
6219  def get_version_info(self):
6220  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6221  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6222  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6223 
6224  def __str__(self):
6225  r"""__str__(GridClosePairsFinder self) -> std::string"""
6226  return _IMP_core.GridClosePairsFinder___str__(self)
6227 
6228  def __repr__(self):
6229  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6230  return _IMP_core.GridClosePairsFinder___repr__(self)
6231 
6232  @staticmethod
6233  def get_from(o):
6234  return _object_cast_to_GridClosePairsFinder(o)
6235 
6236 
6237  def _get_as_binary(self):
6238  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6239  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6240 
6241  def _set_from_binary(self, p):
6242  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6243  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6244 
6245  def __getstate__(self):
6246  p = self._get_as_binary()
6247  if len(self.__dict__) > 1:
6248  d = self.__dict__.copy()
6249  del d['this']
6250  p = (d, p)
6251  return p
6252 
6253  def __setstate__(self, p):
6254  if not hasattr(self, 'this'):
6255  self.__init__()
6256  if isinstance(p, tuple):
6257  d, p = p
6258  self.__dict__.update(d)
6259  return self._set_from_binary(p)
6260 
6261 
6262 # Register GridClosePairsFinder in _IMP_core:
6263 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6264 class Harmonic(IMP.UnaryFunction):
6265  r"""Proxy of C++ IMP::core::Harmonic class."""
6266 
6267  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6268 
6269  def __init__(self, *args):
6270  r"""
6271  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6272  __init__(Harmonic self) -> Harmonic
6273  """
6274  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6275 
6276  def get_version_info(self):
6277  r"""get_version_info(Harmonic self) -> VersionInfo"""
6278  return _IMP_core.Harmonic_get_version_info(self)
6279  __swig_destroy__ = _IMP_core.delete_Harmonic
6280 
6281  def get_mean(self):
6282  r"""get_mean(Harmonic self) -> IMP::Float"""
6283  return _IMP_core.Harmonic_get_mean(self)
6284 
6285  def get_k(self):
6286  r"""get_k(Harmonic self) -> IMP::Float"""
6287  return _IMP_core.Harmonic_get_k(self)
6288 
6289  def set_mean(self, mean):
6290  r"""set_mean(Harmonic self, IMP::Float mean)"""
6291  return _IMP_core.Harmonic_set_mean(self, mean)
6292 
6293  def set_k(self, k):
6294  r"""set_k(Harmonic self, IMP::Float k)"""
6295  return _IMP_core.Harmonic_set_k(self, k)
6296 
6297  @staticmethod
6298  def get_k_from_standard_deviation(sd, t=297.15):
6299  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6300  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6301 
6302  def __str__(self):
6303  r"""__str__(Harmonic self) -> std::string"""
6304  return _IMP_core.Harmonic___str__(self)
6305 
6306  def __repr__(self):
6307  r"""__repr__(Harmonic self) -> std::string"""
6308  return _IMP_core.Harmonic___repr__(self)
6309 
6310  @staticmethod
6311  def get_from(o):
6312  return _object_cast_to_Harmonic(o)
6313 
6314 
6315  def _get_as_binary(self):
6316  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6317  return _IMP_core.Harmonic__get_as_binary(self)
6318 
6319  def _set_from_binary(self, p):
6320  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6321  return _IMP_core.Harmonic__set_from_binary(self, p)
6322 
6323  def __getstate__(self):
6324  p = self._get_as_binary()
6325  if len(self.__dict__) > 1:
6326  d = self.__dict__.copy()
6327  del d['this']
6328  p = (d, p)
6329  return p
6330 
6331  def __setstate__(self, p):
6332  if not hasattr(self, 'this'):
6333  self.__init__()
6334  if isinstance(p, tuple):
6335  d, p = p
6336  self.__dict__.update(d)
6337  return self._set_from_binary(p)
6338 
6339 
6340  def _get_jax(self):
6341  import functools
6342  def score(val, mean, k):
6343  return 0.5 * k * (mean - val) ** 2
6344  return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6345 
6346 
6347 # Register Harmonic in _IMP_core:
6348 _IMP_core.Harmonic_swigregister(Harmonic)
6349 class HarmonicWell(IMP.UnaryFunction):
6350  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6351 
6352  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6353 
6354  def __init__(self, well, k):
6355  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6356  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6357 
6358  def get_version_info(self):
6359  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6360  return _IMP_core.HarmonicWell_get_version_info(self)
6361  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6362 
6363  def __str__(self):
6364  r"""__str__(HarmonicWell self) -> std::string"""
6365  return _IMP_core.HarmonicWell___str__(self)
6366 
6367  def __repr__(self):
6368  r"""__repr__(HarmonicWell self) -> std::string"""
6369  return _IMP_core.HarmonicWell___repr__(self)
6370 
6371  @staticmethod
6372  def get_from(o):
6373  return _object_cast_to_HarmonicWell(o)
6374 
6375 
6376 # Register HarmonicWell in _IMP_core:
6377 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6378 class HarmonicLowerBound(Harmonic):
6379  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6380 
6381  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6382 
6383  def __init__(self, *args):
6384  r"""
6385  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6386  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6387  """
6388  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6389  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6390 
6391  def __str__(self):
6392  r"""__str__(HarmonicLowerBound self) -> std::string"""
6393  return _IMP_core.HarmonicLowerBound___str__(self)
6394 
6395  def __repr__(self):
6396  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6397  return _IMP_core.HarmonicLowerBound___repr__(self)
6398 
6399  @staticmethod
6400  def get_from(o):
6401  return _object_cast_to_HarmonicLowerBound(o)
6402 
6403 
6404  def _get_as_binary(self):
6405  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6406  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6407 
6408  def _set_from_binary(self, p):
6409  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6410  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6411 
6412  def __getstate__(self):
6413  p = self._get_as_binary()
6414  if len(self.__dict__) > 1:
6415  d = self.__dict__.copy()
6416  del d['this']
6417  p = (d, p)
6418  return p
6419 
6420  def __setstate__(self, p):
6421  if not hasattr(self, 'this'):
6422  self.__init__()
6423  if isinstance(p, tuple):
6424  d, p = p
6425  self.__dict__.update(d)
6426  return self._set_from_binary(p)
6427 
6428 
6429  def _get_jax(self):
6430  import functools
6431  import jax.lax
6432  def score(val, mean, k):
6433  return 0.5 * k * jax.lax.max(mean - val, 0.0) ** 2
6434  return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6435 
6436 
6437 # Register HarmonicLowerBound in _IMP_core:
6438 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6439 class HarmonicUpperBound(Harmonic):
6440  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6441 
6442  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6443 
6444  def __init__(self, *args):
6445  r"""
6446  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6447  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6448  """
6449  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6450  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6451 
6452  def __str__(self):
6453  r"""__str__(HarmonicUpperBound self) -> std::string"""
6454  return _IMP_core.HarmonicUpperBound___str__(self)
6455 
6456  def __repr__(self):
6457  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6458  return _IMP_core.HarmonicUpperBound___repr__(self)
6459 
6460  @staticmethod
6461  def get_from(o):
6462  return _object_cast_to_HarmonicUpperBound(o)
6463 
6464 
6465  def _get_as_binary(self):
6466  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6467  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6468 
6469  def _set_from_binary(self, p):
6470  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6471  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6472 
6473  def __getstate__(self):
6474  p = self._get_as_binary()
6475  if len(self.__dict__) > 1:
6476  d = self.__dict__.copy()
6477  del d['this']
6478  p = (d, p)
6479  return p
6480 
6481  def __setstate__(self, p):
6482  if not hasattr(self, 'this'):
6483  self.__init__()
6484  if isinstance(p, tuple):
6485  d, p = p
6486  self.__dict__.update(d)
6487  return self._set_from_binary(p)
6488 
6489 
6490  def _get_jax(self):
6491  import functools
6492  import jax.lax
6493  def score(val, mean, k):
6494  return 0.5 * k * jax.lax.min(mean - val, 0.0) ** 2
6495  return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6496 
6497 
6498 # Register HarmonicUpperBound in _IMP_core:
6499 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6500 class WeightedSum(IMP.UnaryFunction):
6501  r"""Proxy of C++ IMP::core::WeightedSum class."""
6502 
6503  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6504 
6505  def __init__(self, funcs, weights):
6506  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6507  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6508 
6509  def get_function_number(self):
6510  r"""get_function_number(WeightedSum self) -> unsigned int"""
6511  return _IMP_core.WeightedSum_get_function_number(self)
6512 
6513  def set_weights(self, weights):
6514  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6515  return _IMP_core.WeightedSum_set_weights(self, weights)
6516 
6517  def get_weights(self):
6518  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6519  return _IMP_core.WeightedSum_get_weights(self)
6520 
6521  def get_weight(self, i):
6522  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6523  return _IMP_core.WeightedSum_get_weight(self, i)
6524 
6525  def get_function(self, i):
6526  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6527  return _IMP_core.WeightedSum_get_function(self, i)
6528 
6529  def get_version_info(self):
6530  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6531  return _IMP_core.WeightedSum_get_version_info(self)
6532  __swig_destroy__ = _IMP_core.delete_WeightedSum
6533 
6534  def __str__(self):
6535  r"""__str__(WeightedSum self) -> std::string"""
6536  return _IMP_core.WeightedSum___str__(self)
6537 
6538  def __repr__(self):
6539  r"""__repr__(WeightedSum self) -> std::string"""
6540  return _IMP_core.WeightedSum___repr__(self)
6541 
6542  @staticmethod
6543  def get_from(o):
6544  return _object_cast_to_WeightedSum(o)
6545 
6546 
6547 # Register WeightedSum in _IMP_core:
6548 _IMP_core.WeightedSum_swigregister(WeightedSum)
6549 class WeightedSumOfExponential(IMP.UnaryFunction):
6550  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6551 
6552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6553 
6554  def __init__(self, funcs, weights, denom=1.0):
6555  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6556  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6557 
6558  def get_function_number(self):
6559  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6560  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6561 
6562  def set_weights(self, weights):
6563  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6564  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6565 
6566  def get_weights(self):
6567  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6568  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6569 
6570  def get_weight(self, i):
6571  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6572  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6573 
6574  def get_function(self, i):
6575  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6576  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6577 
6578  def set_denominator(self, denom):
6579  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6580  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6581 
6582  def get_denominator(self):
6583  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6584  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6585 
6586  def get_version_info(self):
6587  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6588  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6589  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6590 
6591  def __str__(self):
6592  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6593  return _IMP_core.WeightedSumOfExponential___str__(self)
6594 
6595  def __repr__(self):
6596  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6597  return _IMP_core.WeightedSumOfExponential___repr__(self)
6598 
6599  @staticmethod
6600  def get_from(o):
6601  return _object_cast_to_WeightedSumOfExponential(o)
6602 
6603 
6604 # Register WeightedSumOfExponential in _IMP_core:
6605 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6606 class MSConnectivityRestraint(IMP.Restraint):
6607  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6608 
6609  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6610 
6611  def __init__(self, m, ps, eps=0.1):
6612  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6613  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6614 
6615  def add_type(self, ps):
6616  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6617  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6618 
6619  def add_composite(self, *args):
6620  r"""
6621  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6622  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6623  """
6624  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6625 
6626  def get_connected_pairs(self):
6627  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6628  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6629 
6630  def get_pair_score(self):
6631  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6632  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6633 
6634  def do_create_current_decomposition(self):
6635  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6636  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6637 
6638  def do_get_inputs(self):
6639  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6640  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6641 
6642  def get_version_info(self):
6643  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6644  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6645  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6646 
6647  def __str__(self):
6648  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6649  return _IMP_core.MSConnectivityRestraint___str__(self)
6650 
6651  def __repr__(self):
6652  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6653  return _IMP_core.MSConnectivityRestraint___repr__(self)
6654 
6655  @staticmethod
6656  def get_from(o):
6657  return _object_cast_to_MSConnectivityRestraint(o)
6658 
6659 
6660 # Register MSConnectivityRestraint in _IMP_core:
6661 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6662 class HierarchyTraits(object):
6663  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6664 
6665  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6666 
6667  def __init__(self, *args):
6668  r"""
6669  __init__(HierarchyTraits self) -> HierarchyTraits
6670  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6671  """
6672  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6673 
6674  def get_children_key(self):
6675  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6676  return _IMP_core.HierarchyTraits_get_children_key(self)
6677 
6678  def get_parent_key(self):
6679  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6680  return _IMP_core.HierarchyTraits_get_parent_key(self)
6681 
6682  def __eq__(self, o):
6683  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6684  return _IMP_core.HierarchyTraits___eq__(self, o)
6685 
6686  def show(self, *args):
6687  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6688  return _IMP_core.HierarchyTraits_show(self, *args)
6689 
6690  def __str__(self):
6691  r"""__str__(HierarchyTraits self) -> std::string"""
6692  return _IMP_core.HierarchyTraits___str__(self)
6693 
6694  def __repr__(self):
6695  r"""__repr__(HierarchyTraits self) -> std::string"""
6696  return _IMP_core.HierarchyTraits___repr__(self)
6697  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6698 
6699 # Register HierarchyTraits in _IMP_core:
6700 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6701 class Hierarchy(IMP.Decorator):
6702  r"""Proxy of C++ IMP::core::Hierarchy class."""
6703 
6704  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6705 
6706  def get_decorator_traits(self):
6707  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6708  return _IMP_core.Hierarchy_get_decorator_traits(self)
6709 
6710  @staticmethod
6711  def get_default_decorator_traits():
6712  r"""get_default_decorator_traits() -> HierarchyTraits"""
6713  return _IMP_core.Hierarchy_get_default_decorator_traits()
6714 
6715  def __init__(self, *args):
6716  r"""
6717  __init__(Hierarchy self) -> Hierarchy
6718  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6719  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6720  """
6721  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6722 
6723  def show(self, *args):
6724  r"""show(Hierarchy self, _ostream out=std::cout)"""
6725  return _IMP_core.Hierarchy_show(self, *args)
6726 
6727  @staticmethod
6728  def setup_particle(*args):
6729  r"""
6730  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6731  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6732  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6733  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6734  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6735  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6736  """
6737  return _IMP_core.Hierarchy_setup_particle(*args)
6738 
6739  @staticmethod
6740  def get_is_setup(*args):
6741  r"""
6742  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6743  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6744  """
6745  return _IMP_core.Hierarchy_get_is_setup(*args)
6746 
6747  @staticmethod
6748  def get_changed_key():
6749  r"""get_changed_key() -> TriggerKey"""
6750  return _IMP_core.Hierarchy_get_changed_key()
6751 
6752  def get_parent(self):
6753  r"""get_parent(Hierarchy self) -> Hierarchy"""
6754  return _IMP_core.Hierarchy_get_parent(self)
6755 
6756  def get_number_of_children(self):
6757  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6758  return _IMP_core.Hierarchy_get_number_of_children(self)
6759 
6760  def get_child(self, i):
6761  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6762  return _IMP_core.Hierarchy_get_child(self, i)
6763 
6764  def get_children_indexes(self):
6765  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6766  return _IMP_core.Hierarchy_get_children_indexes(self)
6767 
6768  def get_children(self):
6769  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6770  return _IMP_core.Hierarchy_get_children(self)
6771 
6772  def remove_child(self, *args):
6773  r"""
6774  remove_child(Hierarchy self, unsigned int i)
6775  remove_child(Hierarchy self, Hierarchy h)
6776  """
6777  return _IMP_core.Hierarchy_remove_child(self, *args)
6778 
6779  def clear_children(self):
6780  r"""clear_children(Hierarchy self)"""
6781  return _IMP_core.Hierarchy_clear_children(self)
6782 
6783  def add_child(self, h):
6784  r"""add_child(Hierarchy self, Hierarchy h)"""
6785  return _IMP_core.Hierarchy_add_child(self, h)
6786 
6787  def add_child_at(self, h, pos):
6788  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6789  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6790 
6791  def get_child_index(self, *args):
6792  r"""
6793  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6794  get_child_index(Hierarchy self) -> int
6795  """
6796  return _IMP_core.Hierarchy_get_child_index(self, *args)
6797 
6798  @staticmethod
6799  def get_default_traits():
6800  r"""get_default_traits() -> HierarchyTraits"""
6801  return _IMP_core.Hierarchy_get_default_traits()
6802 
6803  def get_traits(self):
6804  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6805  return _IMP_core.Hierarchy_get_traits(self)
6806 
6807  def add_attribute(self, *args):
6808  r"""
6809  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6810  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6811  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6812  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6813  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6814  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6815  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6816  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6817  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6818  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6819  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6820  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6821  """
6822  return _IMP_core.Hierarchy_add_attribute(self, *args)
6823 
6824  def get_value(self, *args):
6825  r"""
6826  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6827  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6828  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6829  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6830  get_value(Hierarchy self, StringKey a0) -> IMP::String
6831  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6832  get_value(Hierarchy self, ObjectKey a0) -> Object
6833  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6834  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6835  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6836  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6837  """
6838  return _IMP_core.Hierarchy_get_value(self, *args)
6839 
6840  def set_value(self, *args):
6841  r"""
6842  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6843  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6844  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6845  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6846  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6847  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6848  set_value(Hierarchy self, ObjectKey a0, Object a1)
6849  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6850  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6851  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6852  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6853  """
6854  return _IMP_core.Hierarchy_set_value(self, *args)
6855 
6856  def remove_attribute(self, *args):
6857  r"""
6858  remove_attribute(Hierarchy self, FloatKey a0)
6859  remove_attribute(Hierarchy self, IntKey a0)
6860  remove_attribute(Hierarchy self, FloatsKey a0)
6861  remove_attribute(Hierarchy self, IntsKey a0)
6862  remove_attribute(Hierarchy self, StringKey a0)
6863  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6864  remove_attribute(Hierarchy self, ObjectKey a0)
6865  remove_attribute(Hierarchy self, SparseFloatKey a0)
6866  remove_attribute(Hierarchy self, SparseIntKey a0)
6867  remove_attribute(Hierarchy self, SparseStringKey a0)
6868  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6869  """
6870  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6871 
6872  def has_attribute(self, *args):
6873  r"""
6874  has_attribute(Hierarchy self, FloatKey a0) -> bool
6875  has_attribute(Hierarchy self, IntKey a0) -> bool
6876  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6877  has_attribute(Hierarchy self, IntsKey a0) -> bool
6878  has_attribute(Hierarchy self, StringKey a0) -> bool
6879  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6880  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6881  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6882  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6883  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6884  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6885  """
6886  return _IMP_core.Hierarchy_has_attribute(self, *args)
6887 
6888  def get_derivative(self, a0):
6889  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6890  return _IMP_core.Hierarchy_get_derivative(self, a0)
6891 
6892  def get_name(self):
6893  r"""get_name(Hierarchy self) -> std::string"""
6894  return _IMP_core.Hierarchy_get_name(self)
6895 
6896  def clear_caches(self):
6897  r"""clear_caches(Hierarchy self)"""
6898  return _IMP_core.Hierarchy_clear_caches(self)
6899 
6900  def set_name(self, a0):
6901  r"""set_name(Hierarchy self, std::string a0)"""
6902  return _IMP_core.Hierarchy_set_name(self, a0)
6903 
6904  def set_check_level(self, a0):
6905  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6906  return _IMP_core.Hierarchy_set_check_level(self, a0)
6907 
6908  def add_to_derivative(self, a0, a1, a2):
6909  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6910  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6911 
6912  def set_is_optimized(self, a0, a1):
6913  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6914  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6915 
6916  def get_is_optimized(self, a0):
6917  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6918  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6919 
6920  def get_check_level(self):
6921  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6922  return _IMP_core.Hierarchy_get_check_level(self)
6923 
6924  def __eq__(self, *args):
6925  r"""
6926  __eq__(Hierarchy self, Hierarchy o) -> bool
6927  __eq__(Hierarchy self, Particle d) -> bool
6928  """
6929  return _IMP_core.Hierarchy___eq__(self, *args)
6930 
6931  def __ne__(self, *args):
6932  r"""
6933  __ne__(Hierarchy self, Hierarchy o) -> bool
6934  __ne__(Hierarchy self, Particle d) -> bool
6935  """
6936  return _IMP_core.Hierarchy___ne__(self, *args)
6937 
6938  def __le__(self, *args):
6939  r"""
6940  __le__(Hierarchy self, Hierarchy o) -> bool
6941  __le__(Hierarchy self, Particle d) -> bool
6942  """
6943  return _IMP_core.Hierarchy___le__(self, *args)
6944 
6945  def __lt__(self, *args):
6946  r"""
6947  __lt__(Hierarchy self, Hierarchy o) -> bool
6948  __lt__(Hierarchy self, Particle d) -> bool
6949  """
6950  return _IMP_core.Hierarchy___lt__(self, *args)
6951 
6952  def __ge__(self, *args):
6953  r"""
6954  __ge__(Hierarchy self, Hierarchy o) -> bool
6955  __ge__(Hierarchy self, Particle d) -> bool
6956  """
6957  return _IMP_core.Hierarchy___ge__(self, *args)
6958 
6959  def __gt__(self, *args):
6960  r"""
6961  __gt__(Hierarchy self, Hierarchy o) -> bool
6962  __gt__(Hierarchy self, Particle d) -> bool
6963  """
6964  return _IMP_core.Hierarchy___gt__(self, *args)
6965 
6966  def __hash__(self):
6967  r"""__hash__(Hierarchy self) -> std::size_t"""
6968  return _IMP_core.Hierarchy___hash__(self)
6969 
6970  def __str__(self):
6971  r"""__str__(Hierarchy self) -> std::string"""
6972  return _IMP_core.Hierarchy___str__(self)
6973 
6974  def __repr__(self):
6975  r"""__repr__(Hierarchy self) -> std::string"""
6976  return _IMP_core.Hierarchy___repr__(self)
6977  __swig_destroy__ = _IMP_core.delete_Hierarchy
6978 
6979 # Register Hierarchy in _IMP_core:
6980 _IMP_core.Hierarchy_swigregister(Hierarchy)
6981 class HierarchyVisitor(object):
6982  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6983 
6984  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6985  __repr__ = _swig_repr
6986 
6987  def __init__(self):
6988  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6989  if self.__class__ == HierarchyVisitor:
6990  _self = None
6991  else:
6992  _self = self
6993  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6994 
6995  if self.__class__ != HierarchyVisitor:
6996  _director_objects.register(self)
6997 
6998 
6999 
7000 
7001  def __call__(self, p):
7002  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
7003  return _IMP_core.HierarchyVisitor___call__(self, p)
7004  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
7005  def __disown__(self):
7006  self.this.disown()
7007  _IMP_core.disown_HierarchyVisitor(self)
7008  return weakref.proxy(self)
7009 
7010 # Register HierarchyVisitor in _IMP_core:
7011 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
7012 class ModifierVisitor(HierarchyVisitor):
7013  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
7014 
7015  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7016  __repr__ = _swig_repr
7017 
7018  def __init__(self, sm):
7019  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
7020  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
7021  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
7022 
7023 # Register ModifierVisitor in _IMP_core:
7024 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
7025 class HierarchyCounter(HierarchyVisitor):
7026  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
7027 
7028  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7029 
7030  def __init__(self):
7031  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
7032  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
7033 
7034  def get_count(self):
7035  r"""get_count(HierarchyCounter self) -> unsigned int"""
7036  return _IMP_core.HierarchyCounter_get_count(self)
7037 
7038  def show(self, *args):
7039  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
7040  return _IMP_core.HierarchyCounter_show(self, *args)
7041 
7042  def __str__(self):
7043  r"""__str__(HierarchyCounter self) -> std::string"""
7044  return _IMP_core.HierarchyCounter___str__(self)
7045 
7046  def __repr__(self):
7047  r"""__repr__(HierarchyCounter self) -> std::string"""
7048  return _IMP_core.HierarchyCounter___repr__(self)
7049 
7050  def _get_as_binary(self):
7051  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
7052  return _IMP_core.HierarchyCounter__get_as_binary(self)
7053 
7054  def _set_from_binary(self, p):
7055  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
7056  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
7057 
7058  def __getstate__(self):
7059  p = self._get_as_binary()
7060  if len(self.__dict__) > 1:
7061  d = self.__dict__.copy()
7062  del d['this']
7063  p = (d, p)
7064  return p
7065 
7066  def __setstate__(self, p):
7067  if not hasattr(self, 'this'):
7068  self.__init__()
7069  if isinstance(p, tuple):
7070  d, p = p
7071  self.__dict__.update(d)
7072  return self._set_from_binary(p)
7073 
7074  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7075 
7076 # Register HierarchyCounter in _IMP_core:
7077 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7078 
7079 def get_leaves(mhd):
7080  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7081  return _IMP_core.get_leaves(mhd)
7082 
7083 def get_internal(mhd):
7084  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7085  return _IMP_core.get_internal(mhd)
7086 
7087 def get_all_descendants(mhd):
7088  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7089  return _IMP_core.get_all_descendants(mhd)
7090 
7091 def get_root(h):
7092  r"""get_root(Hierarchy h) -> Hierarchy"""
7093  return _IMP_core.get_root(h)
7094 
7095 def visit_breadth_first(d, f):
7096  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7097  return _IMP_core.visit_breadth_first(d, f)
7098 
7099 def visit_depth_first(d, f):
7100  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7101  return _IMP_core.visit_depth_first(d, f)
7102 class LeavesRefiner(IMP.Refiner):
7103  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7104 
7105  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7106 
7107  def __init__(self, tr):
7108  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7109  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7110 
7111  def do_get_inputs(self, m, pis):
7112  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7113  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7114 
7115  def get_version_info(self):
7116  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7117  return _IMP_core.LeavesRefiner_get_version_info(self)
7118  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7119 
7120  def __str__(self):
7121  r"""__str__(LeavesRefiner self) -> std::string"""
7122  return _IMP_core.LeavesRefiner___str__(self)
7123 
7124  def __repr__(self):
7125  r"""__repr__(LeavesRefiner self) -> std::string"""
7126  return _IMP_core.LeavesRefiner___repr__(self)
7127 
7128  @staticmethod
7129  def get_from(o):
7130  return _object_cast_to_LeavesRefiner(o)
7131 
7132 
7133 # Register LeavesRefiner in _IMP_core:
7134 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7135 class Linear(IMP.UnaryFunction):
7136  r"""Proxy of C++ IMP::core::Linear class."""
7137 
7138  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7139 
7140  def __init__(self, *args):
7141  r"""
7142  __init__(Linear self, double offset, double slope) -> Linear
7143  __init__(Linear self) -> Linear
7144  """
7145  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7146 
7147  def set_slope(self, f):
7148  r"""set_slope(Linear self, double f)"""
7149  return _IMP_core.Linear_set_slope(self, f)
7150 
7151  def get_slope(self):
7152  r"""get_slope(Linear self) -> double"""
7153  return _IMP_core.Linear_get_slope(self)
7154 
7155  def set_offset(self, f):
7156  r"""set_offset(Linear self, double f)"""
7157  return _IMP_core.Linear_set_offset(self, f)
7158 
7159  def get_offset(self):
7160  r"""get_offset(Linear self) -> double"""
7161  return _IMP_core.Linear_get_offset(self)
7162 
7163  def get_version_info(self):
7164  r"""get_version_info(Linear self) -> VersionInfo"""
7165  return _IMP_core.Linear_get_version_info(self)
7166  __swig_destroy__ = _IMP_core.delete_Linear
7167 
7168  def __str__(self):
7169  r"""__str__(Linear self) -> std::string"""
7170  return _IMP_core.Linear___str__(self)
7171 
7172  def __repr__(self):
7173  r"""__repr__(Linear self) -> std::string"""
7174  return _IMP_core.Linear___repr__(self)
7175 
7176  @staticmethod
7177  def get_from(o):
7178  return _object_cast_to_Linear(o)
7179 
7180 
7181  def _get_as_binary(self):
7182  r"""_get_as_binary(Linear self) -> PyObject *"""
7183  return _IMP_core.Linear__get_as_binary(self)
7184 
7185  def _set_from_binary(self, p):
7186  r"""_set_from_binary(Linear self, PyObject * p)"""
7187  return _IMP_core.Linear__set_from_binary(self, p)
7188 
7189  def __getstate__(self):
7190  p = self._get_as_binary()
7191  if len(self.__dict__) > 1:
7192  d = self.__dict__.copy()
7193  del d['this']
7194  p = (d, p)
7195  return p
7196 
7197  def __setstate__(self, p):
7198  if not hasattr(self, 'this'):
7199  self.__init__()
7200  if isinstance(p, tuple):
7201  d, p = p
7202  self.__dict__.update(d)
7203  return self._set_from_binary(p)
7204 
7205 
7206  def _get_jax(self):
7207  import functools
7208  def score(val, slope, offset):
7209  return (val - offset) * slope
7210  return functools.partial(score, slope=self.get_slope(),
7211  offset=self.get_offset())
7212 
7213 
7214 # Register Linear in _IMP_core:
7215 _IMP_core.Linear_swigregister(Linear)
7216 class LogNormalMover(MonteCarloMover):
7217  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7218 
7219  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7220 
7221  def __init__(self, *args):
7222  r"""
7223  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7224  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7225  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7226  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7227  __init__(LogNormalMover self) -> LogNormalMover
7228  """
7229  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7230 
7231  def set_sigma(self, sigma):
7232  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7233  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7234 
7235  def get_sigma(self):
7236  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7237  return _IMP_core.LogNormalMover_get_sigma(self)
7238 
7239  def get_version_info(self):
7240  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7241  return _IMP_core.LogNormalMover_get_version_info(self)
7242  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7243 
7244  def __str__(self):
7245  r"""__str__(LogNormalMover self) -> std::string"""
7246  return _IMP_core.LogNormalMover___str__(self)
7247 
7248  def __repr__(self):
7249  r"""__repr__(LogNormalMover self) -> std::string"""
7250  return _IMP_core.LogNormalMover___repr__(self)
7251 
7252  @staticmethod
7253  def get_from(o):
7254  return _object_cast_to_LogNormalMover(o)
7255 
7256 
7257  def _get_as_binary(self):
7258  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7259  return _IMP_core.LogNormalMover__get_as_binary(self)
7260 
7261  def _set_from_binary(self, p):
7262  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7263  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7264 
7265  def __getstate__(self):
7266  p = self._get_as_binary()
7267  if len(self.__dict__) > 1:
7268  d = self.__dict__.copy()
7269  del d['this']
7270  p = (d, p)
7271  return p
7272 
7273  def __setstate__(self, p):
7274  if not hasattr(self, 'this'):
7275  self.__init__()
7276  if isinstance(p, tuple):
7277  d, p = p
7278  self.__dict__.update(d)
7279  return self._set_from_binary(p)
7280 
7281 
7282 # Register LogNormalMover in _IMP_core:
7283 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7284 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7285 
7286 class MonteCarlo(IMP.Optimizer):
7287  r"""Proxy of C++ IMP::core::MonteCarlo class."""
7288 
7289  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7290 
7291  def __init__(self, m):
7292  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7293  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7294 
7295  def get_version_info(self):
7296  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7297  return _IMP_core.MonteCarlo_get_version_info(self)
7298  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7299 
7300  def set_return_best(self, tf):
7301  r"""set_return_best(MonteCarlo self, bool tf)"""
7302  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7303 
7304  def get_return_best(self):
7305  r"""get_return_best(MonteCarlo self) -> bool"""
7306  return _IMP_core.MonteCarlo_get_return_best(self)
7307 
7308  def set_score_moved(self, mv):
7309  r"""set_score_moved(MonteCarlo self, bool mv)"""
7310  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7311 
7312  def set_kt(self, t):
7313  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7314  return _IMP_core.MonteCarlo_set_kt(self, t)
7315 
7316  def get_kt(self):
7317  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7318  return _IMP_core.MonteCarlo_get_kt(self)
7319 
7320  def get_last_accepted_energy(self):
7321  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7322  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7323 
7324  def set_last_accepted_energy(self, energy):
7325  r"""set_last_accepted_energy(MonteCarlo self, double energy)"""
7326  return _IMP_core.MonteCarlo_set_last_accepted_energy(self, energy)
7327 
7328  def get_best_accepted_energy(self):
7329  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7330  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7331 
7332  def set_best_accepted_energy(self, energy):
7333  r"""set_best_accepted_energy(MonteCarlo self, double energy)"""
7334  return _IMP_core.MonteCarlo_set_best_accepted_energy(self, energy)
7335 
7336  def get_number_of_downward_steps(self):
7337  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7338  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7339 
7340  def get_number_of_upward_steps(self):
7341  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7342  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7343 
7344  def get_number_of_proposed_steps(self):
7345  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7346  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7347 
7348  def get_number_of_accepted_steps(self):
7349  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7350  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7351 
7352  def set_number_of_downward_steps(self, nsteps):
7353  r"""set_number_of_downward_steps(MonteCarlo self, unsigned int nsteps)"""
7354  return _IMP_core.MonteCarlo_set_number_of_downward_steps(self, nsteps)
7355 
7356  def set_number_of_upward_steps(self, nsteps):
7357  r"""set_number_of_upward_steps(MonteCarlo self, unsigned int nsteps)"""
7358  return _IMP_core.MonteCarlo_set_number_of_upward_steps(self, nsteps)
7359 
7360  def set_number_of_rejected_steps(self, nsteps):
7361  r"""set_number_of_rejected_steps(MonteCarlo self, unsigned int nsteps)"""
7362  return _IMP_core.MonteCarlo_set_number_of_rejected_steps(self, nsteps)
7363 
7364  def reset_statistics(self):
7365  r"""reset_statistics(MonteCarlo self)"""
7366  return _IMP_core.MonteCarlo_reset_statistics(self)
7367 
7368  def set_score_threshold(self, s):
7369  r"""set_score_threshold(MonteCarlo self, double s)"""
7370  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7371 
7372  def get_score_threshold(self):
7373  r"""get_score_threshold(MonteCarlo self) -> double"""
7374  return _IMP_core.MonteCarlo_get_score_threshold(self)
7375 
7376  def set_maximum_difference(self, d):
7377  r"""set_maximum_difference(MonteCarlo self, double d)"""
7378  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7379 
7380  def get_maximum_difference(self):
7381  r"""get_maximum_difference(MonteCarlo self) -> double"""
7382  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7383  def __get_movers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_movers, getfunc=self.get_mover, erasefunc=self.erase_mover, appendfunc=self.add_mover, extendfunc=self.add_movers, clearfunc=self.clear_movers, indexfunc=self._python_index_mover)
7384  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7385  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7386  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7387 
7388  def remove_mover(self, d):
7389  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7390  return _IMP_core.MonteCarlo_remove_mover(self, d)
7391 
7392  def _python_index_mover(self, d, start, stop):
7393  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7394  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7395 
7396  def remove_movers(self, d):
7397  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7398  return _IMP_core.MonteCarlo_remove_movers(self, d)
7399 
7400  def set_movers(self, ps):
7401  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7402  return _IMP_core.MonteCarlo_set_movers(self, ps)
7403 
7404  def set_movers_order(self, objs):
7405  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7406  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7407 
7408  def add_mover(self, obj):
7409  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7410  return _IMP_core.MonteCarlo_add_mover(self, obj)
7411 
7412  def add_movers(self, objs):
7413  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7414  return _IMP_core.MonteCarlo_add_movers(self, objs)
7415 
7416  def clear_movers(self):
7417  r"""clear_movers(MonteCarlo self)"""
7418  return _IMP_core.MonteCarlo_clear_movers(self)
7419 
7420  def get_number_of_movers(self):
7421  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7422  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7423 
7424  def get_has_movers(self):
7425  r"""get_has_movers(MonteCarlo self) -> bool"""
7426  return _IMP_core.MonteCarlo_get_has_movers(self)
7427 
7428  def get_mover(self, i):
7429  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7430  return _IMP_core.MonteCarlo_get_mover(self, i)
7431 
7432  def get_movers(self):
7433  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7434  return _IMP_core.MonteCarlo_get_movers(self)
7435 
7436  def erase_mover(self, i):
7437  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7438  return _IMP_core.MonteCarlo_erase_mover(self, i)
7439 
7440  def reserve_movers(self, sz):
7441  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7442  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7443 
7444  def __str__(self):
7445  r"""__str__(MonteCarlo self) -> std::string"""
7446  return _IMP_core.MonteCarlo___str__(self)
7447 
7448  def __repr__(self):
7449  r"""__repr__(MonteCarlo self) -> std::string"""
7450  return _IMP_core.MonteCarlo___repr__(self)
7451 
7452  @staticmethod
7453  def get_from(o):
7454  return _object_cast_to_MonteCarlo(o)
7455 
7456 
7457  def _get_jax(self):
7458  from IMP.core._jax_util import _MCJaxInfo
7459  return _MCJaxInfo(self)
7460 
7461  def _optimize_jax(self, max_steps):
7462  import IMP.core._jax_util
7463  return IMP.core._jax_util._mc_optimize(self, max_steps)
7464 
7465 
7466 # Register MonteCarlo in _IMP_core:
7467 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7468 class MonteCarloWithLocalOptimization(MonteCarlo):
7469  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7470 
7471  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7472 
7473  def __init__(self, opt, steps):
7474  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7475  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7476 
7477  def get_number_of_steps(self):
7478  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7479  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7480 
7481  def get_local_optimizer(self):
7482  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7483  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7484  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7485 
7486  def __str__(self):
7487  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7488  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7489 
7490  def __repr__(self):
7491  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7492  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7493 
7494  @staticmethod
7495  def get_from(o):
7496  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7497 
7498 
7499 # Register MonteCarloWithLocalOptimization in _IMP_core:
7500 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7501 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7502  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7503 
7504  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7505 
7506  def __init__(self, opt, ns):
7507  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7508  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7509  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7510 
7511  def __str__(self):
7512  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7513  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7514 
7515  def __repr__(self):
7516  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7517  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7518 
7519  @staticmethod
7520  def get_from(o):
7521  return _object_cast_to_MonteCarloWithBasinHopping(o)
7522 
7523 
7524 # Register MonteCarloWithBasinHopping in _IMP_core:
7525 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7526 class NeighborsTable(IMP.ScoreState):
7527  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7528 
7529  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7530 
7531  def __init__(self, *args):
7532  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7533  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7534 
7535  def get_neighbors(self, pi):
7536  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7537  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7538 
7539  def get_version_info(self):
7540  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7541  return _IMP_core.NeighborsTable_get_version_info(self)
7542  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7543 
7544  def __str__(self):
7545  r"""__str__(NeighborsTable self) -> std::string"""
7546  return _IMP_core.NeighborsTable___str__(self)
7547 
7548  def __repr__(self):
7549  r"""__repr__(NeighborsTable self) -> std::string"""
7550  return _IMP_core.NeighborsTable___repr__(self)
7551 
7552  @staticmethod
7553  def get_from(o):
7554  return _object_cast_to_NeighborsTable(o)
7555 
7556 
7557 # Register NeighborsTable in _IMP_core:
7558 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7559 class NormalMover(MonteCarloMover):
7560  r"""Proxy of C++ IMP::core::NormalMover class."""
7561 
7562  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7563 
7564  def __init__(self, *args):
7565  r"""
7566  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7567  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7568  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7569  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7570  __init__(NormalMover self) -> NormalMover
7571  """
7572  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7573 
7574  def set_sigma(self, sigma):
7575  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7576  return _IMP_core.NormalMover_set_sigma(self, sigma)
7577 
7578  def get_sigma(self):
7579  r"""get_sigma(NormalMover self) -> IMP::Float"""
7580  return _IMP_core.NormalMover_get_sigma(self)
7581 
7582  def get_version_info(self):
7583  r"""get_version_info(NormalMover self) -> VersionInfo"""
7584  return _IMP_core.NormalMover_get_version_info(self)
7585  __swig_destroy__ = _IMP_core.delete_NormalMover
7586 
7587  def __str__(self):
7588  r"""__str__(NormalMover self) -> std::string"""
7589  return _IMP_core.NormalMover___str__(self)
7590 
7591  def __repr__(self):
7592  r"""__repr__(NormalMover self) -> std::string"""
7593  return _IMP_core.NormalMover___repr__(self)
7594 
7595  @staticmethod
7596  def get_from(o):
7597  return _object_cast_to_NormalMover(o)
7598 
7599 
7600  def _get_as_binary(self):
7601  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7602  return _IMP_core.NormalMover__get_as_binary(self)
7603 
7604  def _set_from_binary(self, p):
7605  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7606  return _IMP_core.NormalMover__set_from_binary(self, p)
7607 
7608  def __getstate__(self):
7609  p = self._get_as_binary()
7610  if len(self.__dict__) > 1:
7611  d = self.__dict__.copy()
7612  del d['this']
7613  p = (d, p)
7614  return p
7615 
7616  def __setstate__(self, p):
7617  if not hasattr(self, 'this'):
7618  self.__init__()
7619  if isinstance(p, tuple):
7620  d, p = p
7621  self.__dict__.update(d)
7622  return self._set_from_binary(p)
7623 
7624 
7625 # Register NormalMover in _IMP_core:
7626 _IMP_core.NormalMover_swigregister(NormalMover)
7627 class OpenCubicSpline(_OpenCubicSplineBase):
7628  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7629 
7630  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7631 
7632  def __init__(self, values, minrange, spacing, extend=False):
7633  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7634  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7635 
7636  def __str__(self):
7637  r"""__str__(OpenCubicSpline self) -> std::string"""
7638  return _IMP_core.OpenCubicSpline___str__(self)
7639 
7640  def __repr__(self):
7641  r"""__repr__(OpenCubicSpline self) -> std::string"""
7642  return _IMP_core.OpenCubicSpline___repr__(self)
7643 
7644  @staticmethod
7645  def get_from(o):
7646  return _object_cast_to_OpenCubicSpline(o)
7647 
7648  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7649 
7650 # Register OpenCubicSpline in _IMP_core:
7651 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7652 class QuadraticClosePairsFinder(ClosePairsFinder):
7653  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7654 
7655  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7656 
7657  def __init__(self):
7658  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7659  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7660 
7661  def get_are_close_and_filtered(self, *args):
7662  r"""
7663  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7664  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7665  """
7666  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7667 
7668  def get_close_pairs(self, *args):
7669  r"""
7670  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7671  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7672  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7673  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7674  """
7675  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7676 
7677  def do_get_inputs(self, m, pis):
7678  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7679  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7680 
7681  def get_version_info(self):
7682  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7683  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7684  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7685 
7686  def __str__(self):
7687  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7688  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7689 
7690  def __repr__(self):
7691  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7692  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7693 
7694  @staticmethod
7695  def get_from(o):
7696  return _object_cast_to_QuadraticClosePairsFinder(o)
7697 
7698 
7699 # Register QuadraticClosePairsFinder in _IMP_core:
7700 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7701 class RefinedPairsPairScore(IMP.PairScore):
7702  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7703 
7704  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7705 
7706  def __init__(self, r, f):
7707  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7708  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7709 
7710  def do_get_inputs(self, m, pis):
7711  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7712  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7713 
7714  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7715  r"""evaluate_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7716  return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7717 
7718  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7719  r"""evaluate_indexes_scores(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7720  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7721 
7722  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7723  r"""evaluate_indexes_delta(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7724  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7725 
7726  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7727  r"""evaluate_if_good_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7728  return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7729 
7730  def get_version_info(self):
7731  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7732  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7733  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7734 
7735  def __str__(self):
7736  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7737  return _IMP_core.RefinedPairsPairScore___str__(self)
7738 
7739  def __repr__(self):
7740  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7741  return _IMP_core.RefinedPairsPairScore___repr__(self)
7742 
7743  @staticmethod
7744  def get_from(o):
7745  return _object_cast_to_RefinedPairsPairScore(o)
7746 
7747 
7748 # Register RefinedPairsPairScore in _IMP_core:
7749 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7750 class RigidBody(XYZ):
7751  r"""Proxy of C++ IMP::core::RigidBody class."""
7752 
7753  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7754 
7755  def get_rigid_members(self):
7756  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7757  return _IMP_core.RigidBody_get_rigid_members(self)
7758 
7759  @staticmethod
7760  def get_rotation_keys():
7761  r"""get_rotation_keys() -> IMP::FloatKeys"""
7762  return _IMP_core.RigidBody_get_rotation_keys()
7763 
7764  def get_member_particle_indexes(self):
7765  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7766  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7767 
7768  def get_body_member_particle_indexes(self):
7769  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7770  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7771 
7772  def get_member_indexes(self):
7773  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7774  return _IMP_core.RigidBody_get_member_indexes(self)
7775 
7776  def show(self, *args):
7777  r"""show(RigidBody self, _ostream out=std::cout)"""
7778  return _IMP_core.RigidBody_show(self, *args)
7779 
7780  @staticmethod
7781  def setup_particle(*args):
7782  r"""
7783  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7784  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7785  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7786  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7787  """
7788  return _IMP_core.RigidBody_setup_particle(*args)
7789 
7790  @staticmethod
7791  def teardown_particle(rb):
7792  r"""teardown_particle(RigidBody rb)"""
7793  return _IMP_core.RigidBody_teardown_particle(rb)
7794 
7795  def __init__(self, *args):
7796  r"""
7797  __init__(RigidBody self) -> RigidBody
7798  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7799  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7800  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7801  """
7802  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7803  __swig_destroy__ = _IMP_core.delete_RigidBody
7804 
7805  @staticmethod
7806  def get_is_setup(*args):
7807  r"""
7808  get_is_setup(_ParticleAdaptor p) -> bool
7809  get_is_setup(Model m, ParticleIndex pi) -> bool
7810  """
7811  return _IMP_core.RigidBody_get_is_setup(*args)
7812 
7813  def get_coordinates(self):
7814  r"""get_coordinates(RigidBody self) -> Vector3D"""
7815  return _IMP_core.RigidBody_get_coordinates(self)
7816 
7817  def get_rotation(self):
7818  r"""get_rotation(RigidBody self) -> Rotation3D"""
7819  return _IMP_core.RigidBody_get_rotation(self)
7820 
7821  def get_reference_frame(self):
7822  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7823  return _IMP_core.RigidBody_get_reference_frame(self)
7824 
7825  def set_reference_frame(self, tr):
7826  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7827  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7828 
7829  def set_reference_frame_lazy(self, tr):
7830  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7831  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7832 
7833  def set_reference_frame_from_members(self, members):
7834  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7835  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7836 
7837  def pull_back_members_adjoints(self, da):
7838  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7839  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7840 
7841  def pull_back_member_adjoints(self, pi, da):
7842  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7843  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7844 
7845  def pull_back_body_member_adjoints(self, pi, da):
7846  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7847  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7848 
7849  def add_to_derivatives(self, *args):
7850  r"""
7851  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7852  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7853  """
7854  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7855 
7856  def add_to_rotational_derivatives(self, *args):
7857  r"""
7858  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7859  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7860  """
7861  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7862 
7863  def add_to_torque(self, torque_local, da):
7864  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7865  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7866 
7867  def get_torque(self):
7868  r"""get_torque(RigidBody self) -> Vector3D"""
7869  return _IMP_core.RigidBody_get_torque(self)
7870 
7871  def get_coordinates_are_optimized(self):
7872  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7873  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7874 
7875  def set_coordinates_are_optimized(self, tf):
7876  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7877  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7878 
7879  def normalize_rotation(self):
7880  r"""normalize_rotation(RigidBody self)"""
7881  return _IMP_core.RigidBody_normalize_rotation(self)
7882 
7883  def update_members(self):
7884  r"""update_members(RigidBody self)"""
7885  return _IMP_core.RigidBody_update_members(self)
7886 
7887  def get_rotational_derivatives(self):
7888  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7889  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7890 
7891  def get_number_of_members(self):
7892  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7893  return _IMP_core.RigidBody_get_number_of_members(self)
7894 
7895  def get_member(self, i):
7896  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7897  return _IMP_core.RigidBody_get_member(self, i)
7898 
7899  def add_member(self, p):
7900  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7901  return _IMP_core.RigidBody_add_member(self, p)
7902 
7903  def add_non_rigid_member(self, p):
7904  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7905  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7906 
7907  def set_is_rigid_member(self, pi, tf):
7908  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7909  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7910 
7911  def remove_member(self, p):
7912  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7913  return _IMP_core.RigidBody_remove_member(self, p)
7914 
7915  def add_attribute(self, *args):
7916  r"""
7917  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7918  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7919  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7920  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7921  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7922  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7923  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7924  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7925  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7926  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7927  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7928  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7929  """
7930  return _IMP_core.RigidBody_add_attribute(self, *args)
7931 
7932  def get_value(self, *args):
7933  r"""
7934  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7935  get_value(RigidBody self, IntKey a0) -> IMP::Int
7936  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7937  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7938  get_value(RigidBody self, StringKey a0) -> IMP::String
7939  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7940  get_value(RigidBody self, ObjectKey a0) -> Object
7941  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7942  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7943  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7944  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7945  """
7946  return _IMP_core.RigidBody_get_value(self, *args)
7947 
7948  def set_value(self, *args):
7949  r"""
7950  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7951  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7952  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7953  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7954  set_value(RigidBody self, StringKey a0, IMP::String a1)
7955  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7956  set_value(RigidBody self, ObjectKey a0, Object a1)
7957  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7958  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7959  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7960  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7961  """
7962  return _IMP_core.RigidBody_set_value(self, *args)
7963 
7964  def remove_attribute(self, *args):
7965  r"""
7966  remove_attribute(RigidBody self, FloatKey a0)
7967  remove_attribute(RigidBody self, IntKey a0)
7968  remove_attribute(RigidBody self, FloatsKey a0)
7969  remove_attribute(RigidBody self, IntsKey a0)
7970  remove_attribute(RigidBody self, StringKey a0)
7971  remove_attribute(RigidBody self, ParticleIndexKey a0)
7972  remove_attribute(RigidBody self, ObjectKey a0)
7973  remove_attribute(RigidBody self, SparseFloatKey a0)
7974  remove_attribute(RigidBody self, SparseIntKey a0)
7975  remove_attribute(RigidBody self, SparseStringKey a0)
7976  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7977  """
7978  return _IMP_core.RigidBody_remove_attribute(self, *args)
7979 
7980  def has_attribute(self, *args):
7981  r"""
7982  has_attribute(RigidBody self, FloatKey a0) -> bool
7983  has_attribute(RigidBody self, IntKey a0) -> bool
7984  has_attribute(RigidBody self, FloatsKey a0) -> bool
7985  has_attribute(RigidBody self, IntsKey a0) -> bool
7986  has_attribute(RigidBody self, StringKey a0) -> bool
7987  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7988  has_attribute(RigidBody self, ObjectKey a0) -> bool
7989  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7990  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7991  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7992  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7993  """
7994  return _IMP_core.RigidBody_has_attribute(self, *args)
7995 
7996  def get_derivative(self, a0):
7997  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7998  return _IMP_core.RigidBody_get_derivative(self, a0)
7999 
8000  def get_name(self):
8001  r"""get_name(RigidBody self) -> std::string"""
8002  return _IMP_core.RigidBody_get_name(self)
8003 
8004  def clear_caches(self):
8005  r"""clear_caches(RigidBody self)"""
8006  return _IMP_core.RigidBody_clear_caches(self)
8007 
8008  def set_name(self, a0):
8009  r"""set_name(RigidBody self, std::string a0)"""
8010  return _IMP_core.RigidBody_set_name(self, a0)
8011 
8012  def set_check_level(self, a0):
8013  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
8014  return _IMP_core.RigidBody_set_check_level(self, a0)
8015 
8016  def add_to_derivative(self, a0, a1, a2):
8017  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8018  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
8019 
8020  def set_is_optimized(self, a0, a1):
8021  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
8022  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
8023 
8024  def get_is_optimized(self, a0):
8025  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
8026  return _IMP_core.RigidBody_get_is_optimized(self, a0)
8027 
8028  def get_check_level(self):
8029  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
8030  return _IMP_core.RigidBody_get_check_level(self)
8031 
8032  def __eq__(self, *args):
8033  r"""
8034  __eq__(RigidBody self, RigidBody o) -> bool
8035  __eq__(RigidBody self, Particle d) -> bool
8036  """
8037  return _IMP_core.RigidBody___eq__(self, *args)
8038 
8039  def __ne__(self, *args):
8040  r"""
8041  __ne__(RigidBody self, RigidBody o) -> bool
8042  __ne__(RigidBody self, Particle d) -> bool
8043  """
8044  return _IMP_core.RigidBody___ne__(self, *args)
8045 
8046  def __le__(self, *args):
8047  r"""
8048  __le__(RigidBody self, RigidBody o) -> bool
8049  __le__(RigidBody self, Particle d) -> bool
8050  """
8051  return _IMP_core.RigidBody___le__(self, *args)
8052 
8053  def __lt__(self, *args):
8054  r"""
8055  __lt__(RigidBody self, RigidBody o) -> bool
8056  __lt__(RigidBody self, Particle d) -> bool
8057  """
8058  return _IMP_core.RigidBody___lt__(self, *args)
8059 
8060  def __ge__(self, *args):
8061  r"""
8062  __ge__(RigidBody self, RigidBody o) -> bool
8063  __ge__(RigidBody self, Particle d) -> bool
8064  """
8065  return _IMP_core.RigidBody___ge__(self, *args)
8066 
8067  def __gt__(self, *args):
8068  r"""
8069  __gt__(RigidBody self, RigidBody o) -> bool
8070  __gt__(RigidBody self, Particle d) -> bool
8071  """
8072  return _IMP_core.RigidBody___gt__(self, *args)
8073 
8074  def __hash__(self):
8075  r"""__hash__(RigidBody self) -> std::size_t"""
8076  return _IMP_core.RigidBody___hash__(self)
8077 
8078  def __str__(self):
8079  r"""__str__(RigidBody self) -> std::string"""
8080  return _IMP_core.RigidBody___str__(self)
8081 
8082  def __repr__(self):
8083  r"""__repr__(RigidBody self) -> std::string"""
8084  return _IMP_core.RigidBody___repr__(self)
8085 
8086  def _get_as_binary(self):
8087  r"""_get_as_binary(RigidBody self) -> PyObject *"""
8088  return _IMP_core.RigidBody__get_as_binary(self)
8089 
8090  def _set_from_binary(self, p):
8091  r"""_set_from_binary(RigidBody self, PyObject * p)"""
8092  return _IMP_core.RigidBody__set_from_binary(self, p)
8093 
8094  def __getstate__(self):
8095  p = self._get_as_binary()
8096  if len(self.__dict__) > 1:
8097  d = self.__dict__.copy()
8098  del d['this']
8099  p = (d, p)
8100  return p
8101 
8102  def __setstate__(self, p):
8103  if not hasattr(self, 'this'):
8104  self.__init__()
8105  if isinstance(p, tuple):
8106  d, p = p
8107  self.__dict__.update(d)
8108  return self._set_from_binary(p)
8109 
8110 
8111 # Register RigidBody in _IMP_core:
8112 _IMP_core.RigidBody_swigregister(RigidBody)
8113 
8115  r"""add_rigid_body_cache_key(ObjectKey k)"""
8116  return _IMP_core.add_rigid_body_cache_key(k)
8117 class RigidBodyMember(XYZ):
8118  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8119 
8120  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8121 
8122  def show(self, *args):
8123  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8124  return _IMP_core.RigidBodyMember_show(self, *args)
8125 
8126  def get_rigid_body(self):
8127  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8128  return _IMP_core.RigidBodyMember_get_rigid_body(self)
8129 
8130  def get_internal_coordinates(self):
8131  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8132  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8133 
8134  def set_internal_coordinates(self, v):
8135  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8136  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8137 
8138  def set_internal_transformation(self, v):
8139  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8140  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8141 
8142  def get_internal_transformation(self):
8143  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8144  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8145  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8146 
8147  def set_coordinates(self, *args):
8148  r"""
8149  set_coordinates(RigidBodyMember self, Vector3D center)
8150  set_coordinates(RigidBodyMember self, Transformation3D tr)
8151  """
8152  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8153 
8154  def __init__(self, *args):
8155  r"""
8156  __init__(RigidBodyMember self) -> RigidBodyMember
8157  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8158  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8159  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8160  """
8161  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8162 
8163  @staticmethod
8164  def get_is_setup(*args):
8165  r"""
8166  get_is_setup(_ParticleAdaptor p) -> bool
8167  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8168  """
8169  return _IMP_core.RigidBodyMember_get_is_setup(*args)
8170 
8171  @staticmethod
8172  def get_internal_coordinate_keys():
8173  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8174  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8175 
8176  @staticmethod
8177  def get_internal_rotation_keys():
8178  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8179  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8180 
8181  def add_attribute(self, *args):
8182  r"""
8183  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8184  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8185  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8186  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8187  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8188  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8189  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8190  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8191  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8192  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8193  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8194  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8195  """
8196  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8197 
8198  def get_value(self, *args):
8199  r"""
8200  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8201  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8202  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8203  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8204  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8205  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8206  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8207  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8208  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8209  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8210  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8211  """
8212  return _IMP_core.RigidBodyMember_get_value(self, *args)
8213 
8214  def set_value(self, *args):
8215  r"""
8216  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8217  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8218  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8219  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8220  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8221  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8222  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8223  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8224  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8225  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8226  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8227  """
8228  return _IMP_core.RigidBodyMember_set_value(self, *args)
8229 
8230  def remove_attribute(self, *args):
8231  r"""
8232  remove_attribute(RigidBodyMember self, FloatKey a0)
8233  remove_attribute(RigidBodyMember self, IntKey a0)
8234  remove_attribute(RigidBodyMember self, FloatsKey a0)
8235  remove_attribute(RigidBodyMember self, IntsKey a0)
8236  remove_attribute(RigidBodyMember self, StringKey a0)
8237  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8238  remove_attribute(RigidBodyMember self, ObjectKey a0)
8239  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8240  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8241  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8242  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8243  """
8244  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8245 
8246  def has_attribute(self, *args):
8247  r"""
8248  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8249  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8250  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8251  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8252  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8253  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8254  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8255  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8256  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8257  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8258  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8259  """
8260  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8261 
8262  def get_derivative(self, a0):
8263  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8264  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8265 
8266  def get_name(self):
8267  r"""get_name(RigidBodyMember self) -> std::string"""
8268  return _IMP_core.RigidBodyMember_get_name(self)
8269 
8270  def clear_caches(self):
8271  r"""clear_caches(RigidBodyMember self)"""
8272  return _IMP_core.RigidBodyMember_clear_caches(self)
8273 
8274  def set_name(self, a0):
8275  r"""set_name(RigidBodyMember self, std::string a0)"""
8276  return _IMP_core.RigidBodyMember_set_name(self, a0)
8277 
8278  def set_check_level(self, a0):
8279  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8280  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8281 
8282  def add_to_derivative(self, a0, a1, a2):
8283  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8284  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8285 
8286  def set_is_optimized(self, a0, a1):
8287  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8288  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8289 
8290  def get_is_optimized(self, a0):
8291  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8292  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8293 
8294  def get_check_level(self):
8295  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8296  return _IMP_core.RigidBodyMember_get_check_level(self)
8297 
8298  def __eq__(self, *args):
8299  r"""
8300  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8301  __eq__(RigidBodyMember self, Particle d) -> bool
8302  """
8303  return _IMP_core.RigidBodyMember___eq__(self, *args)
8304 
8305  def __ne__(self, *args):
8306  r"""
8307  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8308  __ne__(RigidBodyMember self, Particle d) -> bool
8309  """
8310  return _IMP_core.RigidBodyMember___ne__(self, *args)
8311 
8312  def __le__(self, *args):
8313  r"""
8314  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8315  __le__(RigidBodyMember self, Particle d) -> bool
8316  """
8317  return _IMP_core.RigidBodyMember___le__(self, *args)
8318 
8319  def __lt__(self, *args):
8320  r"""
8321  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8322  __lt__(RigidBodyMember self, Particle d) -> bool
8323  """
8324  return _IMP_core.RigidBodyMember___lt__(self, *args)
8325 
8326  def __ge__(self, *args):
8327  r"""
8328  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8329  __ge__(RigidBodyMember self, Particle d) -> bool
8330  """
8331  return _IMP_core.RigidBodyMember___ge__(self, *args)
8332 
8333  def __gt__(self, *args):
8334  r"""
8335  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8336  __gt__(RigidBodyMember self, Particle d) -> bool
8337  """
8338  return _IMP_core.RigidBodyMember___gt__(self, *args)
8339 
8340  def __hash__(self):
8341  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8342  return _IMP_core.RigidBodyMember___hash__(self)
8343 
8344  def __str__(self):
8345  r"""__str__(RigidBodyMember self) -> std::string"""
8346  return _IMP_core.RigidBodyMember___str__(self)
8347 
8348  def __repr__(self):
8349  r"""__repr__(RigidBodyMember self) -> std::string"""
8350  return _IMP_core.RigidBodyMember___repr__(self)
8351 
8352  def _get_as_binary(self):
8353  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8354  return _IMP_core.RigidBodyMember__get_as_binary(self)
8355 
8356  def _set_from_binary(self, p):
8357  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8358  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8359 
8360  def __getstate__(self):
8361  p = self._get_as_binary()
8362  if len(self.__dict__) > 1:
8363  d = self.__dict__.copy()
8364  del d['this']
8365  p = (d, p)
8366  return p
8367 
8368  def __setstate__(self, p):
8369  if not hasattr(self, 'this'):
8370  self.__init__()
8371  if isinstance(p, tuple):
8372  d, p = p
8373  self.__dict__.update(d)
8374  return self._set_from_binary(p)
8375 
8376 
8377 # Register RigidBodyMember in _IMP_core:
8378 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8379 class RigidMember(RigidBodyMember):
8380  r"""Proxy of C++ IMP::core::RigidMember class."""
8381 
8382  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8383 
8384  def show(self, *args):
8385  r"""show(RigidMember self, _ostream out=std::cout)"""
8386  return _IMP_core.RigidMember_show(self, *args)
8387 
8388  def __init__(self, *args):
8389  r"""
8390  __init__(RigidMember self) -> RigidMember
8391  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8392  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8393  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8394  """
8395  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8396  __swig_destroy__ = _IMP_core.delete_RigidMember
8397 
8398  @staticmethod
8399  def get_is_setup(*args):
8400  r"""
8401  get_is_setup(_ParticleAdaptor p) -> bool
8402  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8403  """
8404  return _IMP_core.RigidMember_get_is_setup(*args)
8405 
8406  def add_attribute(self, *args):
8407  r"""
8408  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8409  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8410  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8411  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8412  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8413  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8414  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8415  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8416  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8417  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8418  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8419  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8420  """
8421  return _IMP_core.RigidMember_add_attribute(self, *args)
8422 
8423  def get_value(self, *args):
8424  r"""
8425  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8426  get_value(RigidMember self, IntKey a0) -> IMP::Int
8427  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8428  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8429  get_value(RigidMember self, StringKey a0) -> IMP::String
8430  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8431  get_value(RigidMember self, ObjectKey a0) -> Object
8432  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8433  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8434  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8435  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8436  """
8437  return _IMP_core.RigidMember_get_value(self, *args)
8438 
8439  def set_value(self, *args):
8440  r"""
8441  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8442  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8443  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8444  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8445  set_value(RigidMember self, StringKey a0, IMP::String a1)
8446  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8447  set_value(RigidMember self, ObjectKey a0, Object a1)
8448  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8449  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8450  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8451  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8452  """
8453  return _IMP_core.RigidMember_set_value(self, *args)
8454 
8455  def remove_attribute(self, *args):
8456  r"""
8457  remove_attribute(RigidMember self, FloatKey a0)
8458  remove_attribute(RigidMember self, IntKey a0)
8459  remove_attribute(RigidMember self, FloatsKey a0)
8460  remove_attribute(RigidMember self, IntsKey a0)
8461  remove_attribute(RigidMember self, StringKey a0)
8462  remove_attribute(RigidMember self, ParticleIndexKey a0)
8463  remove_attribute(RigidMember self, ObjectKey a0)
8464  remove_attribute(RigidMember self, SparseFloatKey a0)
8465  remove_attribute(RigidMember self, SparseIntKey a0)
8466  remove_attribute(RigidMember self, SparseStringKey a0)
8467  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8468  """
8469  return _IMP_core.RigidMember_remove_attribute(self, *args)
8470 
8471  def has_attribute(self, *args):
8472  r"""
8473  has_attribute(RigidMember self, FloatKey a0) -> bool
8474  has_attribute(RigidMember self, IntKey a0) -> bool
8475  has_attribute(RigidMember self, FloatsKey a0) -> bool
8476  has_attribute(RigidMember self, IntsKey a0) -> bool
8477  has_attribute(RigidMember self, StringKey a0) -> bool
8478  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8479  has_attribute(RigidMember self, ObjectKey a0) -> bool
8480  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8481  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8482  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8483  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8484  """
8485  return _IMP_core.RigidMember_has_attribute(self, *args)
8486 
8487  def get_derivative(self, a0):
8488  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8489  return _IMP_core.RigidMember_get_derivative(self, a0)
8490 
8491  def get_name(self):
8492  r"""get_name(RigidMember self) -> std::string"""
8493  return _IMP_core.RigidMember_get_name(self)
8494 
8495  def clear_caches(self):
8496  r"""clear_caches(RigidMember self)"""
8497  return _IMP_core.RigidMember_clear_caches(self)
8498 
8499  def set_name(self, a0):
8500  r"""set_name(RigidMember self, std::string a0)"""
8501  return _IMP_core.RigidMember_set_name(self, a0)
8502 
8503  def set_check_level(self, a0):
8504  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8505  return _IMP_core.RigidMember_set_check_level(self, a0)
8506 
8507  def add_to_derivative(self, a0, a1, a2):
8508  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8509  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8510 
8511  def set_is_optimized(self, a0, a1):
8512  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8513  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8514 
8515  def get_is_optimized(self, a0):
8516  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8517  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8518 
8519  def get_check_level(self):
8520  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8521  return _IMP_core.RigidMember_get_check_level(self)
8522 
8523  def __eq__(self, *args):
8524  r"""
8525  __eq__(RigidMember self, RigidMember o) -> bool
8526  __eq__(RigidMember self, Particle d) -> bool
8527  """
8528  return _IMP_core.RigidMember___eq__(self, *args)
8529 
8530  def __ne__(self, *args):
8531  r"""
8532  __ne__(RigidMember self, RigidMember o) -> bool
8533  __ne__(RigidMember self, Particle d) -> bool
8534  """
8535  return _IMP_core.RigidMember___ne__(self, *args)
8536 
8537  def __le__(self, *args):
8538  r"""
8539  __le__(RigidMember self, RigidMember o) -> bool
8540  __le__(RigidMember self, Particle d) -> bool
8541  """
8542  return _IMP_core.RigidMember___le__(self, *args)
8543 
8544  def __lt__(self, *args):
8545  r"""
8546  __lt__(RigidMember self, RigidMember o) -> bool
8547  __lt__(RigidMember self, Particle d) -> bool
8548  """
8549  return _IMP_core.RigidMember___lt__(self, *args)
8550 
8551  def __ge__(self, *args):
8552  r"""
8553  __ge__(RigidMember self, RigidMember o) -> bool
8554  __ge__(RigidMember self, Particle d) -> bool
8555  """
8556  return _IMP_core.RigidMember___ge__(self, *args)
8557 
8558  def __gt__(self, *args):
8559  r"""
8560  __gt__(RigidMember self, RigidMember o) -> bool
8561  __gt__(RigidMember self, Particle d) -> bool
8562  """
8563  return _IMP_core.RigidMember___gt__(self, *args)
8564 
8565  def __hash__(self):
8566  r"""__hash__(RigidMember self) -> std::size_t"""
8567  return _IMP_core.RigidMember___hash__(self)
8568 
8569  def __str__(self):
8570  r"""__str__(RigidMember self) -> std::string"""
8571  return _IMP_core.RigidMember___str__(self)
8572 
8573  def __repr__(self):
8574  r"""__repr__(RigidMember self) -> std::string"""
8575  return _IMP_core.RigidMember___repr__(self)
8576 
8577  def _get_as_binary(self):
8578  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8579  return _IMP_core.RigidMember__get_as_binary(self)
8580 
8581  def _set_from_binary(self, p):
8582  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8583  return _IMP_core.RigidMember__set_from_binary(self, p)
8584 
8585  def __getstate__(self):
8586  p = self._get_as_binary()
8587  if len(self.__dict__) > 1:
8588  d = self.__dict__.copy()
8589  del d['this']
8590  p = (d, p)
8591  return p
8592 
8593  def __setstate__(self, p):
8594  if not hasattr(self, 'this'):
8595  self.__init__()
8596  if isinstance(p, tuple):
8597  d, p = p
8598  self.__dict__.update(d)
8599  return self._set_from_binary(p)
8600 
8601 
8602 # Register RigidMember in _IMP_core:
8603 _IMP_core.RigidMember_swigregister(RigidMember)
8604 class NonRigidMember(RigidBodyMember):
8605  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8606 
8607  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8608 
8609  def show(self, *args):
8610  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8611  return _IMP_core.NonRigidMember_show(self, *args)
8612 
8613  def __init__(self, *args):
8614  r"""
8615  __init__(NonRigidMember self) -> NonRigidMember
8616  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8617  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8618  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8619  """
8620  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8621  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8622 
8623  @staticmethod
8624  def get_is_setup(*args):
8625  r"""
8626  get_is_setup(_ParticleAdaptor p) -> bool
8627  get_is_setup(Model m, ParticleIndex p) -> bool
8628  """
8629  return _IMP_core.NonRigidMember_get_is_setup(*args)
8630 
8631  def add_to_internal_derivatives(self, deriv_parent, da):
8632  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8633  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8634 
8635  def add_to_internal_rotational_derivatives(self, *args):
8636  r"""
8637  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8638  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8639  """
8640  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8641 
8642  def get_internal_derivatives(self):
8643  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8644  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8645 
8646  def get_internal_rotational_derivatives(self):
8647  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8648  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8649 
8650  def add_attribute(self, *args):
8651  r"""
8652  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8653  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8654  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8655  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8656  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8657  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8658  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8659  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8660  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8661  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8662  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8663  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8664  """
8665  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8666 
8667  def get_value(self, *args):
8668  r"""
8669  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8670  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8671  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8672  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8673  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8674  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8675  get_value(NonRigidMember self, ObjectKey a0) -> Object
8676  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8677  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8678  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8679  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8680  """
8681  return _IMP_core.NonRigidMember_get_value(self, *args)
8682 
8683  def set_value(self, *args):
8684  r"""
8685  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8686  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8687  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8688  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8689  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8690  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8691  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8692  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8693  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8694  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8695  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8696  """
8697  return _IMP_core.NonRigidMember_set_value(self, *args)
8698 
8699  def remove_attribute(self, *args):
8700  r"""
8701  remove_attribute(NonRigidMember self, FloatKey a0)
8702  remove_attribute(NonRigidMember self, IntKey a0)
8703  remove_attribute(NonRigidMember self, FloatsKey a0)
8704  remove_attribute(NonRigidMember self, IntsKey a0)
8705  remove_attribute(NonRigidMember self, StringKey a0)
8706  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8707  remove_attribute(NonRigidMember self, ObjectKey a0)
8708  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8709  remove_attribute(NonRigidMember self, SparseIntKey a0)
8710  remove_attribute(NonRigidMember self, SparseStringKey a0)
8711  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8712  """
8713  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8714 
8715  def has_attribute(self, *args):
8716  r"""
8717  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8718  has_attribute(NonRigidMember self, IntKey a0) -> bool
8719  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8720  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8721  has_attribute(NonRigidMember self, StringKey a0) -> bool
8722  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8723  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8724  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8725  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8726  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8727  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8728  """
8729  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8730 
8731  def get_derivative(self, a0):
8732  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8733  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8734 
8735  def get_name(self):
8736  r"""get_name(NonRigidMember self) -> std::string"""
8737  return _IMP_core.NonRigidMember_get_name(self)
8738 
8739  def clear_caches(self):
8740  r"""clear_caches(NonRigidMember self)"""
8741  return _IMP_core.NonRigidMember_clear_caches(self)
8742 
8743  def set_name(self, a0):
8744  r"""set_name(NonRigidMember self, std::string a0)"""
8745  return _IMP_core.NonRigidMember_set_name(self, a0)
8746 
8747  def set_check_level(self, a0):
8748  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8749  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8750 
8751  def add_to_derivative(self, a0, a1, a2):
8752  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8753  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8754 
8755  def set_is_optimized(self, a0, a1):
8756  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8757  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8758 
8759  def get_is_optimized(self, a0):
8760  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8761  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8762 
8763  def get_check_level(self):
8764  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8765  return _IMP_core.NonRigidMember_get_check_level(self)
8766 
8767  def __eq__(self, *args):
8768  r"""
8769  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8770  __eq__(NonRigidMember self, Particle d) -> bool
8771  """
8772  return _IMP_core.NonRigidMember___eq__(self, *args)
8773 
8774  def __ne__(self, *args):
8775  r"""
8776  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8777  __ne__(NonRigidMember self, Particle d) -> bool
8778  """
8779  return _IMP_core.NonRigidMember___ne__(self, *args)
8780 
8781  def __le__(self, *args):
8782  r"""
8783  __le__(NonRigidMember self, NonRigidMember o) -> bool
8784  __le__(NonRigidMember self, Particle d) -> bool
8785  """
8786  return _IMP_core.NonRigidMember___le__(self, *args)
8787 
8788  def __lt__(self, *args):
8789  r"""
8790  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8791  __lt__(NonRigidMember self, Particle d) -> bool
8792  """
8793  return _IMP_core.NonRigidMember___lt__(self, *args)
8794 
8795  def __ge__(self, *args):
8796  r"""
8797  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8798  __ge__(NonRigidMember self, Particle d) -> bool
8799  """
8800  return _IMP_core.NonRigidMember___ge__(self, *args)
8801 
8802  def __gt__(self, *args):
8803  r"""
8804  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8805  __gt__(NonRigidMember self, Particle d) -> bool
8806  """
8807  return _IMP_core.NonRigidMember___gt__(self, *args)
8808 
8809  def __hash__(self):
8810  r"""__hash__(NonRigidMember self) -> std::size_t"""
8811  return _IMP_core.NonRigidMember___hash__(self)
8812 
8813  def __str__(self):
8814  r"""__str__(NonRigidMember self) -> std::string"""
8815  return _IMP_core.NonRigidMember___str__(self)
8816 
8817  def __repr__(self):
8818  r"""__repr__(NonRigidMember self) -> std::string"""
8819  return _IMP_core.NonRigidMember___repr__(self)
8820 
8821  def _get_as_binary(self):
8822  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8823  return _IMP_core.NonRigidMember__get_as_binary(self)
8824 
8825  def _set_from_binary(self, p):
8826  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8827  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8828 
8829  def __getstate__(self):
8830  p = self._get_as_binary()
8831  if len(self.__dict__) > 1:
8832  d = self.__dict__.copy()
8833  del d['this']
8834  p = (d, p)
8835  return p
8836 
8837  def __setstate__(self, p):
8838  if not hasattr(self, 'this'):
8839  self.__init__()
8840  if isinstance(p, tuple):
8841  d, p = p
8842  self.__dict__.update(d)
8843  return self._set_from_binary(p)
8844 
8845 
8846 # Register NonRigidMember in _IMP_core:
8847 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8848 class RigidMembersRefiner(IMP.Refiner):
8849  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8850 
8851  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8852 
8853  def __init__(self, *args):
8854  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8855  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8856 
8857  def do_get_inputs(self, m, pis):
8858  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8859  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8860 
8861  def get_version_info(self):
8862  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8863  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8864  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8865 
8866  def __str__(self):
8867  r"""__str__(RigidMembersRefiner self) -> std::string"""
8868  return _IMP_core.RigidMembersRefiner___str__(self)
8869 
8870  def __repr__(self):
8871  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8872  return _IMP_core.RigidMembersRefiner___repr__(self)
8873 
8874  @staticmethod
8875  def get_from(o):
8876  return _object_cast_to_RigidMembersRefiner(o)
8877 
8878 
8879 # Register RigidMembersRefiner in _IMP_core:
8880 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8881 
8882 def get_rigid_members_refiner():
8883  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8884  return _IMP_core.get_rigid_members_refiner()
8885 
8886 def transform(*args):
8887  r"""
8888  transform(XYZ a, Transformation3D tr)
8889  transform(RigidBody a, Transformation3D tr)
8890  """
8891  return _IMP_core.transform(*args)
8892 
8893 def get_initial_reference_frame(*args):
8894  r"""
8895  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8896  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8897  """
8898  return _IMP_core.get_initial_reference_frame(*args)
8899 
8900 def create_rigid_bodies(m, n, no_members=False):
8901  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8902  return _IMP_core.create_rigid_bodies(m, n, no_members)
8903 
8904 def show_rigid_body_hierarchy(*args):
8905  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8906  return _IMP_core.show_rigid_body_hierarchy(*args)
8907 
8908 def get_root_rigid_body(m):
8909  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8910  return _IMP_core.get_root_rigid_body(m)
8911 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8912  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8913 
8914  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8915 
8916  def __init__(self, rb, constituents):
8917  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8918  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8919 
8920  def get_version_info(self):
8921  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8922  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8923  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8924 
8925  def __str__(self):
8926  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8927  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8928 
8929  def __repr__(self):
8930  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8931  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8932 
8933  @staticmethod
8934  def get_from(o):
8935  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8936 
8937 
8938 # Register RigidBodyHierarchyGeometry in _IMP_core:
8939 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8940 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8941  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8942 
8943  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8944 
8945  def __init__(self, *args):
8946  r"""
8947  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8948  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8949  """
8950  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8951 
8952  def get_version_info(self):
8953  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8954  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8955  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8956 
8957  def __str__(self):
8958  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8959  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8960 
8961  def __repr__(self):
8962  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8963  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8964 
8965  @staticmethod
8966  def get_from(o):
8967  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8968 
8969 
8970 # Register RigidBodyDerivativeGeometry in _IMP_core:
8971 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8972 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8973  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8974 
8975  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8976 
8977  def __init__(self, sc):
8978  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8979  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8980 
8981  def get_version_info(self):
8982  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8983  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8984  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8985 
8986  def __str__(self):
8987  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8988  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8989 
8990  def __repr__(self):
8991  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8992  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8993 
8994  @staticmethod
8995  def get_from(o):
8996  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8997 
8998 
8999 # Register RigidBodyDerivativesGeometry in _IMP_core:
9000 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
9001 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
9002  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
9003 
9004  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9005 
9006  def __init__(self, *args):
9007  r"""
9008  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
9009  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
9010  """
9011  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
9012 
9013  def get_version_info(self):
9014  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
9015  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
9016  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
9017 
9018  def __str__(self):
9019  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
9020  return _IMP_core.RigidBodyFrameGeometry___str__(self)
9021 
9022  def __repr__(self):
9023  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
9024  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
9025 
9026  @staticmethod
9027  def get_from(o):
9028  return _object_cast_to_RigidBodyFrameGeometry(o)
9029 
9030 
9031 # Register RigidBodyFrameGeometry in _IMP_core:
9032 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
9033 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
9034  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
9035 
9036  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9037 
9038  def __init__(self, sc):
9039  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
9040  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
9041 
9042  def get_version_info(self):
9043  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
9044  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
9045  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
9046 
9047  def __str__(self):
9048  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
9049  return _IMP_core.RigidBodyFramesGeometry___str__(self)
9050 
9051  def __repr__(self):
9052  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
9053  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
9054 
9055  @staticmethod
9056  def get_from(o):
9057  return _object_cast_to_RigidBodyFramesGeometry(o)
9058 
9059 
9060 # Register RigidBodyFramesGeometry in _IMP_core:
9061 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
9062 class RigidBodyTorque(IMP.display.SegmentGeometry):
9063  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
9064 
9065  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9066 
9067  def __init__(self, p):
9068  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
9069  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
9070 
9071  def __str__(self):
9072  r"""__str__(RigidBodyTorque self) -> std::string"""
9073  return _IMP_core.RigidBodyTorque___str__(self)
9074 
9075  def __repr__(self):
9076  r"""__repr__(RigidBodyTorque self) -> std::string"""
9077  return _IMP_core.RigidBodyTorque___repr__(self)
9078 
9079  @staticmethod
9080  def get_from(o):
9081  return _object_cast_to_RigidBodyTorque(o)
9082 
9083  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
9084 
9085 # Register RigidBodyTorque in _IMP_core:
9086 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
9087 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
9088  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
9089 
9090  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9091 
9092  def __init__(self):
9093  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
9094  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
9095 
9096  def get_close_pairs(self, *args):
9097  r"""
9098  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9099  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9100  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9101  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9102  """
9103  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
9104 
9105  def do_get_inputs(self, m, pis):
9106  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9107  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
9108 
9109  def get_version_info(self):
9110  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9111  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9112  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9113 
9114  def __str__(self):
9115  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9116  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9117 
9118  def __repr__(self):
9119  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9120  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9121 
9122  @staticmethod
9123  def get_from(o):
9124  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9125 
9126 
9127 # Register NearestNeighborsClosePairsFinder in _IMP_core:
9128 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9129 class RestraintsScoringFunction(IMP.ScoringFunction):
9130  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9131 
9132  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9133 
9134  def __init__(self, *args):
9135  r"""
9136  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9137  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9138  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9139  """
9140  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9141 
9142  def do_add_score_and_derivatives(self, sa, ss):
9143  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9144  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9145 
9146  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9147  r"""do_add_score_and_derivatives_moved(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
9148  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9149 
9150  def do_get_inputs(self):
9151  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9152  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9153 
9154  def get_restraints(self):
9155  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9156  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9157 
9158  def set_restraints(self, d):
9159  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9160  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9161 
9162  def get_number_of_restraints(self):
9163  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9164  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9165 
9166  def clear_restraints(self):
9167  r"""clear_restraints(RestraintsScoringFunction self)"""
9168  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9169 
9170  def get_restraint(self, i):
9171  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9172  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9173 
9174  def erase_restraint(self, i):
9175  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9176  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9177 
9178  def add_restraint(self, d):
9179  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9180  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9181 
9182  def add_restraints(self, d):
9183  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9184  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9185 
9186  def _python_index_restraint(self, r, start, stop):
9187  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9188  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9189  def __get_restraints(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
9190  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9191  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9192  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9193 
9194  def get_version_info(self):
9195  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9196  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9197  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9198 
9199  def __str__(self):
9200  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9201  return _IMP_core.RestraintsScoringFunction___str__(self)
9202 
9203  def __repr__(self):
9204  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9205  return _IMP_core.RestraintsScoringFunction___repr__(self)
9206 
9207  @staticmethod
9208  def get_from(o):
9209  return _object_cast_to_RestraintsScoringFunction(o)
9210 
9211 
9212  def _get_as_binary(self):
9213  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9214  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9215 
9216  def _set_from_binary(self, p):
9217  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9218  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9219 
9220  def __getstate__(self):
9221  p = self._get_as_binary()
9222  if len(self.__dict__) > 1:
9223  d = self.__dict__.copy()
9224  del d['this']
9225  p = (d, p)
9226  return p
9227 
9228  def __setstate__(self, p):
9229  if not hasattr(self, 'this'):
9230  self.__init__()
9231  if isinstance(p, tuple):
9232  d, p = p
9233  self.__dict__.update(d)
9234  return self._set_from_binary(p)
9235 
9236 
9237  def _get_jax(self):
9238  import IMP._jax_util
9239  jis = [r.get_derived_object()._get_jax() for r in self.restraints]
9240  funcs = [j.score_func for j in jis]
9241  keys = frozenset(x for j in jis for x in j._keys)
9242  def jax_sf(X):
9243  return sum(f(X) for f in funcs)
9244  return IMP._jax_util.JaxRestraintInfo(
9245  m=self.get_model(), score_func=jax_sf, weight=1.0, keys=keys)
9246 
9247 
9248 # Register RestraintsScoringFunction in _IMP_core:
9249 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9250 class RigidClosePairsFinder(ClosePairsFinder):
9251  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9252 
9253  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9254 
9255  def __init__(self, cpf=None):
9256  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9257  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9258 
9259  def do_get_inputs(self, m, pis):
9260  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9261  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9262 
9263  def get_close_pairs(self, *args):
9264  r"""
9265  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9266  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9267  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9268  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9269  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9270  """
9271  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9272 
9273  def get_version_info(self):
9274  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9275  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9276  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9277 
9278  def __str__(self):
9279  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9280  return _IMP_core.RigidClosePairsFinder___str__(self)
9281 
9282  def __repr__(self):
9283  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9284  return _IMP_core.RigidClosePairsFinder___repr__(self)
9285 
9286  @staticmethod
9287  def get_from(o):
9288  return _object_cast_to_RigidClosePairsFinder(o)
9289 
9290 
9291  def _get_as_binary(self):
9292  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9293  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9294 
9295  def _set_from_binary(self, p):
9296  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9297  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9298 
9299  def __getstate__(self):
9300  p = self._get_as_binary()
9301  if len(self.__dict__) > 1:
9302  d = self.__dict__.copy()
9303  del d['this']
9304  p = (d, p)
9305  return p
9306 
9307  def __setstate__(self, p):
9308  if not hasattr(self, 'this'):
9309  self.__init__()
9310  if isinstance(p, tuple):
9311  d, p = p
9312  self.__dict__.update(d)
9313  return self._set_from_binary(p)
9314 
9315 
9316 # Register RigidClosePairsFinder in _IMP_core:
9317 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9318 class _SphereDistancePairScore(IMP.PairScore):
9319  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9320 
9321  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9322  __repr__ = _swig_repr
9323 
9324  def __init__(self, *args):
9325  r"""
9326  SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9327  __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9328  """
9329  _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9330 
9331  def do_get_inputs(self, m, pis):
9332  r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9333  return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9334 
9335  def get_version_info(self):
9336  r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9337  return _IMP_core._SphereDistancePairScore_get_version_info(self)
9338  __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9339 
9340  @staticmethod
9341  def get_from(o):
9342  return _object_cast_to__SphereDistancePairScore(o)
9343 
9344 
9345  def _get_as_binary(self):
9346  r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9347  return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9348 
9349  def _set_from_binary(self, p):
9350  r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9351  return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9352 
9353  def __getstate__(self):
9354  p = self._get_as_binary()
9355  if len(self.__dict__) > 1:
9356  d = self.__dict__.copy()
9357  del d['this']
9358  p = (d, p)
9359  return p
9360 
9361  def __setstate__(self, p):
9362  if not hasattr(self, 'this'):
9363  self.__init__()
9364  if isinstance(p, tuple):
9365  d, p = p
9366  self.__dict__.update(d)
9367  return self._set_from_binary(p)
9368 
9369 
9370 # Register _SphereDistancePairScore in _IMP_core:
9371 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9372 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9373  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9374 
9375  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9376 
9377  def __init__(self, *args):
9378  r"""
9379  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9380  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9381  """
9382  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9383 
9384  def do_get_inputs(self, m, pis):
9385  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9386  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9387 
9388  def get_version_info(self):
9389  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9390  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9391  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9392 
9393  def __str__(self):
9394  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9395  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9396 
9397  def __repr__(self):
9398  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9399  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9400 
9401  @staticmethod
9402  def get_from(o):
9403  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9404 
9405 
9406  def _get_as_binary(self):
9407  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9408  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9409 
9410  def _set_from_binary(self, p):
9411  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9412  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9413 
9414  def __getstate__(self):
9415  p = self._get_as_binary()
9416  if len(self.__dict__) > 1:
9417  d = self.__dict__.copy()
9418  del d['this']
9419  p = (d, p)
9420  return p
9421 
9422  def __setstate__(self, p):
9423  if not hasattr(self, 'this'):
9424  self.__init__()
9425  if isinstance(p, tuple):
9426  d, p = p
9427  self.__dict__.update(d)
9428  return self._set_from_binary(p)
9429 
9430 
9431 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9432 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9433 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9434  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9435 
9436  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9437 
9438  def __init__(self, d0, k):
9439  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9440  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9441 
9442  def get_rest_length(self):
9443  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9444  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9445 
9446  def get_stiffness(self):
9447  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9448  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9449 
9450  def do_get_inputs(self, m, pis):
9451  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9452  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9453 
9454  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9455  r"""evaluate_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9456  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9457 
9458  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9459  r"""evaluate_indexes_scores(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9460  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9461 
9462  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9463  r"""evaluate_indexes_delta(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9464  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9465 
9466  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9467  r"""evaluate_if_good_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9468  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9469 
9470  def get_version_info(self):
9471  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9472  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9473  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9474 
9475  def __str__(self):
9476  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9477  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9478 
9479  def __repr__(self):
9480  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9481  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9482 
9483  @staticmethod
9484  def get_from(o):
9485  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9486 
9487 
9488 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9489 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9490 class HarmonicSphereDistancePairScore(IMP.PairScore):
9491  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9492 
9493  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9494 
9495  def __init__(self, *args):
9496  r"""
9497  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9498  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9499  """
9500  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9501 
9502  def do_get_inputs(self, m, pis):
9503  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9504  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9505 
9506  def get_x0(self):
9507  r"""get_x0(HarmonicSphereDistancePairScore self) -> double"""
9508  return _IMP_core.HarmonicSphereDistancePairScore_get_x0(self)
9509 
9510  def get_k(self):
9511  r"""get_k(HarmonicSphereDistancePairScore self) -> double"""
9512  return _IMP_core.HarmonicSphereDistancePairScore_get_k(self)
9513 
9514  def get_version_info(self):
9515  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9516  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9517  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9518 
9519  def __str__(self):
9520  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9521  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9522 
9523  def __repr__(self):
9524  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9525  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9526 
9527  @staticmethod
9528  def get_from(o):
9529  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9530 
9531 
9532  def _get_as_binary(self):
9533  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9534  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9535 
9536  def _set_from_binary(self, p):
9537  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9538  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9539 
9540  def __getstate__(self):
9541  p = self._get_as_binary()
9542  if len(self.__dict__) > 1:
9543  d = self.__dict__.copy()
9544  del d['this']
9545  p = (d, p)
9546  return p
9547 
9548  def __setstate__(self, p):
9549  if not hasattr(self, 'this'):
9550  self.__init__()
9551  if isinstance(p, tuple):
9552  d, p = p
9553  self.__dict__.update(d)
9554  return self._set_from_binary(p)
9555 
9556 
9557  def _get_jax(self):
9558  import jax.numpy as jnp
9559  import functools
9560  def jax_score(X, indexes, d, k):
9561  xyzs = X['xyz'][indexes]
9562  rs = X['r'][indexes]
9563  diff = xyzs[:,0] - xyzs[:,1]
9564  drs = jnp.linalg.norm(diff, axis=1) - rs.sum(axis=1)
9565  return 0.5 * k * (d - drs)**2
9566  f = functools.partial(jax_score, d=self.get_x0(), k=self.get_k())
9567  return self._wrap_jax(f)
9568 
9569 
9570 # Register HarmonicSphereDistancePairScore in _IMP_core:
9571 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9572 class NormalizedSphereDistancePairScore(IMP.PairScore):
9573  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9574 
9575  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9576 
9577  def __init__(self, *args):
9578  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9579  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9580 
9581  def do_get_inputs(self, m, pis):
9582  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9583  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9584 
9585  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9586  r"""evaluate_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9587  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9588 
9589  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9590  r"""evaluate_indexes_scores(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9591  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9592 
9593  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9594  r"""evaluate_indexes_delta(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9595  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9596 
9597  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9598  r"""evaluate_if_good_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9599  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9600 
9601  def get_version_info(self):
9602  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9603  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9604  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9605 
9606  def __str__(self):
9607  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9608  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9609 
9610  def __repr__(self):
9611  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9612  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9613 
9614  @staticmethod
9615  def get_from(o):
9616  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9617 
9618 
9619 # Register NormalizedSphereDistancePairScore in _IMP_core:
9620 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9621 class WeightedSphereDistancePairScore(IMP.PairScore):
9622  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9623 
9624  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9625 
9626  def __init__(self, *args):
9627  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9628  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9629 
9630  def do_get_inputs(self, m, pis):
9631  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9632  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9633 
9634  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9635  r"""evaluate_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9636  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9637 
9638  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9639  r"""evaluate_indexes_scores(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9640  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9641 
9642  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9643  r"""evaluate_indexes_delta(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9644  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9645 
9646  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9647  r"""evaluate_if_good_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9648  return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9649 
9650  def get_version_info(self):
9651  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9652  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9653  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9654 
9655  def __str__(self):
9656  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9657  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9658 
9659  def __repr__(self):
9660  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9661  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9662 
9663  @staticmethod
9664  def get_from(o):
9665  return _object_cast_to_WeightedSphereDistancePairScore(o)
9666 
9667 
9668 # Register WeightedSphereDistancePairScore in _IMP_core:
9669 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9670 class SoftSpherePairScore(IMP.PairScore):
9671  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9672 
9673  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9674 
9675  def __init__(self, *args):
9676  r"""
9677  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9678  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9679  """
9680  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9681 
9682  def do_get_inputs(self, m, pis):
9683  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9684  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9685 
9686  def get_version_info(self):
9687  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9688  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9689  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9690 
9691  def __str__(self):
9692  r"""__str__(SoftSpherePairScore self) -> std::string"""
9693  return _IMP_core.SoftSpherePairScore___str__(self)
9694 
9695  def __repr__(self):
9696  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9697  return _IMP_core.SoftSpherePairScore___repr__(self)
9698 
9699  @staticmethod
9700  def get_from(o):
9701  return _object_cast_to_SoftSpherePairScore(o)
9702 
9703 
9704  def _get_as_binary(self):
9705  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9706  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9707 
9708  def _set_from_binary(self, p):
9709  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9710  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9711 
9712  def __getstate__(self):
9713  p = self._get_as_binary()
9714  if len(self.__dict__) > 1:
9715  d = self.__dict__.copy()
9716  del d['this']
9717  p = (d, p)
9718  return p
9719 
9720  def __setstate__(self, p):
9721  if not hasattr(self, 'this'):
9722  self.__init__()
9723  if isinstance(p, tuple):
9724  d, p = p
9725  self.__dict__.update(d)
9726  return self._set_from_binary(p)
9727 
9728 
9729 # Register SoftSpherePairScore in _IMP_core:
9730 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9731 class SurfaceDistancePairScore(IMP.PairScore):
9732  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9733 
9734  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9735 
9736  def __init__(self, *args):
9737  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9738  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9739 
9740  def do_get_inputs(self, m, pis):
9741  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9742  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9743 
9744  def get_version_info(self):
9745  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9746  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9747  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9748 
9749  def __str__(self):
9750  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9751  return _IMP_core.SurfaceDistancePairScore___str__(self)
9752 
9753  def __repr__(self):
9754  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9755  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9756 
9757  @staticmethod
9758  def get_from(o):
9759  return _object_cast_to_SurfaceDistancePairScore(o)
9760 
9761 
9762 # Register SurfaceDistancePairScore in _IMP_core:
9763 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9764 class SurfaceHeightPairScore(IMP.PairScore):
9765  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9766 
9767  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9768 
9769  def __init__(self, *args):
9770  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9771  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9772 
9773  def do_get_inputs(self, m, pis):
9774  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9775  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9776 
9777  def get_version_info(self):
9778  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9779  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9780  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9781 
9782  def __str__(self):
9783  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9784  return _IMP_core.SurfaceHeightPairScore___str__(self)
9785 
9786  def __repr__(self):
9787  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9788  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9789 
9790  @staticmethod
9791  def get_from(o):
9792  return _object_cast_to_SurfaceHeightPairScore(o)
9793 
9794 
9795 # Register SurfaceHeightPairScore in _IMP_core:
9796 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9797 class SurfaceDepthPairScore(IMP.PairScore):
9798  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9799 
9800  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9801 
9802  def __init__(self, *args):
9803  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9804  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9805 
9806  def do_get_inputs(self, m, pis):
9807  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9808  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9809 
9810  def get_version_info(self):
9811  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9812  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9813  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9814 
9815  def __str__(self):
9816  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9817  return _IMP_core.SurfaceDepthPairScore___str__(self)
9818 
9819  def __repr__(self):
9820  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9821  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9822 
9823  @staticmethod
9824  def get_from(o):
9825  return _object_cast_to_SurfaceDepthPairScore(o)
9826 
9827 
9828 # Register SurfaceDepthPairScore in _IMP_core:
9829 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9830 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9831  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9832 
9833  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9834 
9835  def __init__(self, *args):
9836  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9837  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9838 
9839  def do_get_inputs(self, m, pis):
9840  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9841  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9842 
9843  def get_version_info(self):
9844  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9845  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9846  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9847 
9848  def __str__(self):
9849  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9850  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9851 
9852  def __repr__(self):
9853  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9854  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9855 
9856  @staticmethod
9857  def get_from(o):
9858  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9859 
9860 
9861 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9862 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9863 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9864  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9865 
9866  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9867 
9868  def __init__(self, *args):
9869  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9870  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9871 
9872  def do_get_inputs(self, m, pis):
9873  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9874  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9875 
9876  def get_version_info(self):
9877  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9878  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9879  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9880 
9881  def __str__(self):
9882  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9883  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9884 
9885  def __repr__(self):
9886  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9887  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9888 
9889  @staticmethod
9890  def get_from(o):
9891  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9892 
9893 
9894 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9895 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9896 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9897  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9898 
9899  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9900 
9901  def __init__(self, *args):
9902  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9903  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9904 
9905  def do_get_inputs(self, m, pis):
9906  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9907  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9908 
9909  def get_version_info(self):
9910  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9911  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9912  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9913 
9914  def __str__(self):
9915  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9916  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9917 
9918  def __repr__(self):
9919  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9920  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9921 
9922  @staticmethod
9923  def get_from(o):
9924  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9925 
9926 
9927 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9928 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9929 class SoftSuperSurfacePairScore(IMP.PairScore):
9930  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9931 
9932  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9933 
9934  def __init__(self, *args):
9935  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9936  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9937 
9938  def do_get_inputs(self, m, pis):
9939  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9940  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9941 
9942  def get_version_info(self):
9943  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9944  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9945  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9946 
9947  def __str__(self):
9948  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9949  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9950 
9951  def __repr__(self):
9952  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9953  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9954 
9955  @staticmethod
9956  def get_from(o):
9957  return _object_cast_to_SoftSuperSurfacePairScore(o)
9958 
9959 
9960 # Register SoftSuperSurfacePairScore in _IMP_core:
9961 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9962 class SoftSubSurfacePairScore(IMP.PairScore):
9963  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9964 
9965  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9966 
9967  def __init__(self, *args):
9968  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9969  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9970 
9971  def do_get_inputs(self, m, pis):
9972  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9973  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9974 
9975  def get_version_info(self):
9976  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9977  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9978  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9979 
9980  def __str__(self):
9981  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9982  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9983 
9984  def __repr__(self):
9985  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9986  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9987 
9988  @staticmethod
9989  def get_from(o):
9990  return _object_cast_to_SoftSubSurfacePairScore(o)
9991 
9992 
9993 # Register SoftSubSurfacePairScore in _IMP_core:
9994 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9995 class SurfaceTetheredChain(IMP.UnaryFunction):
9996  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9997 
9998  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9999 
10000  def __init__(self, link_num, link_length):
10001  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
10002  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
10003 
10004  def get_version_info(self):
10005  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
10006  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
10007  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
10008 
10009  def get_link_number(self):
10010  r"""get_link_number(SurfaceTetheredChain self) -> int"""
10011  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
10012 
10013  def get_link_length(self):
10014  r"""get_link_length(SurfaceTetheredChain self) -> double"""
10015  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
10016 
10017  def set_link_number(self, N):
10018  r"""set_link_number(SurfaceTetheredChain self, int N)"""
10019  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
10020 
10021  def set_link_length(self, b):
10022  r"""set_link_length(SurfaceTetheredChain self, double b)"""
10023  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
10024 
10025  def get_distance_at_minimum(self):
10026  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
10027  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
10028 
10029  def get_average_distance(self):
10030  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
10031  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
10032 
10033  def __str__(self):
10034  r"""__str__(SurfaceTetheredChain self) -> std::string"""
10035  return _IMP_core.SurfaceTetheredChain___str__(self)
10036 
10037  def __repr__(self):
10038  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
10039  return _IMP_core.SurfaceTetheredChain___repr__(self)
10040 
10041  @staticmethod
10042  def get_from(o):
10043  return _object_cast_to_SurfaceTetheredChain(o)
10044 
10045 
10046 # Register SurfaceTetheredChain in _IMP_core:
10047 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
10048 class SurfaceSymmetryConstraint(IMP.Constraint):
10049  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
10050 
10051  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10052 
10053  def __init__(self, m, ss, rbs):
10054  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
10055  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
10056 
10057  def do_get_inputs(self):
10058  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
10059  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
10060 
10061  def do_get_outputs(self):
10062  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
10063  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
10064 
10065  def get_version_info(self):
10066  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
10067  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
10068  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
10069 
10070  def __str__(self):
10071  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
10072  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
10073 
10074  def __repr__(self):
10075  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
10076  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
10077 
10078  @staticmethod
10079  def get_from(o):
10080  return _object_cast_to_SurfaceSymmetryConstraint(o)
10081 
10082 
10083 # Register SurfaceSymmetryConstraint in _IMP_core:
10084 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
10085 class SteepestDescent(IMP.AttributeOptimizer):
10086  r"""Proxy of C++ IMP::core::SteepestDescent class."""
10087 
10088  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10089 
10090  def __init__(self, *args):
10091  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
10092  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
10093 
10094  def do_optimize(self, max_steps):
10095  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
10096  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
10097 
10098  def get_version_info(self):
10099  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
10100  return _IMP_core.SteepestDescent_get_version_info(self)
10101  __swig_destroy__ = _IMP_core.delete_SteepestDescent
10102 
10103  def set_threshold(self, t):
10104  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
10105  return _IMP_core.SteepestDescent_set_threshold(self, t)
10106 
10107  def set_step_size(self, t):
10108  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
10109  return _IMP_core.SteepestDescent_set_step_size(self, t)
10110 
10111  def set_maximum_step_size(self, t):
10112  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
10113  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
10114 
10115  def __str__(self):
10116  r"""__str__(SteepestDescent self) -> std::string"""
10117  return _IMP_core.SteepestDescent___str__(self)
10118 
10119  def __repr__(self):
10120  r"""__repr__(SteepestDescent self) -> std::string"""
10121  return _IMP_core.SteepestDescent___repr__(self)
10122 
10123  @staticmethod
10124  def get_from(o):
10125  return _object_cast_to_SteepestDescent(o)
10126 
10127 
10128 # Register SteepestDescent in _IMP_core:
10129 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
10130 class TransformedDistancePairScore(IMP.PairScore):
10131  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
10132 
10133  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10134 
10135  def __init__(self, f, transformation):
10136  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
10137  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
10138 
10139  def set_transformation(self, rot):
10140  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
10141  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
10142 
10143  def do_get_inputs(self, m, pis):
10144  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10145  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10146 
10147  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10148  r"""evaluate_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10149  return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10150 
10151  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10152  r"""evaluate_indexes_scores(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10153  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10154 
10155  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10156  r"""evaluate_indexes_delta(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10157  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10158 
10159  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10160  r"""evaluate_if_good_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10161  return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10162 
10163  def get_version_info(self):
10164  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10165  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10166  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10167 
10168  def __str__(self):
10169  r"""__str__(TransformedDistancePairScore self) -> std::string"""
10170  return _IMP_core.TransformedDistancePairScore___str__(self)
10171 
10172  def __repr__(self):
10173  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10174  return _IMP_core.TransformedDistancePairScore___repr__(self)
10175 
10176  @staticmethod
10177  def get_from(o):
10178  return _object_cast_to_TransformedDistancePairScore(o)
10179 
10180 
10181 # Register TransformedDistancePairScore in _IMP_core:
10182 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10183 class TypedPairScore(IMP.PairScore):
10184  r"""Proxy of C++ IMP::core::TypedPairScore class."""
10185 
10186  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10187 
10188  def __init__(self, typekey, allow_invalid_types=True):
10189  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10190  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10191 
10192  def set_particle_type(self, arg2):
10193  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10194  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10195 
10196  def set_pair_score(self, ps, atype, btype):
10197  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10198  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10199 
10200  def do_get_inputs(self, m, pis):
10201  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10202  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10203 
10204  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10205  r"""evaluate_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10206  return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10207 
10208  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10209  r"""evaluate_indexes_scores(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10210  return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10211 
10212  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10213  r"""evaluate_indexes_delta(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10214  return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10215 
10216  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10217  r"""evaluate_if_good_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10218  return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10219 
10220  def get_version_info(self):
10221  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10222  return _IMP_core.TypedPairScore_get_version_info(self)
10223  __swig_destroy__ = _IMP_core.delete_TypedPairScore
10224 
10225  def __str__(self):
10226  r"""__str__(TypedPairScore self) -> std::string"""
10227  return _IMP_core.TypedPairScore___str__(self)
10228 
10229  def __repr__(self):
10230  r"""__repr__(TypedPairScore self) -> std::string"""
10231  return _IMP_core.TypedPairScore___repr__(self)
10232 
10233  @staticmethod
10234  def get_from(o):
10235  return _object_cast_to_TypedPairScore(o)
10236 
10237 
10238 # Register TypedPairScore in _IMP_core:
10239 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10240 class RigidBodyDistancePairScore(KClosePairsPairScore):
10241  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10242 
10243  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10244 
10245  def __init__(self, ps, r):
10246  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10247  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10248 
10249  def __str__(self):
10250  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10251  return _IMP_core.RigidBodyDistancePairScore___str__(self)
10252 
10253  def __repr__(self):
10254  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10255  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10256 
10257  @staticmethod
10258  def get_from(o):
10259  return _object_cast_to_RigidBodyDistancePairScore(o)
10260 
10261  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10262 
10263 # Register RigidBodyDistancePairScore in _IMP_core:
10264 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10265 class RigidBodyAnglePairScore(IMP.PairScore):
10266  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10267 
10268  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10269 
10270  def __init__(self, f):
10271  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10272  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10273 
10274  def do_get_inputs(self, m, pis):
10275  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10276  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10277 
10278  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10279  r"""evaluate_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10280  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10281 
10282  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10283  r"""evaluate_indexes_scores(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10284  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10285 
10286  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10287  r"""evaluate_indexes_delta(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10288  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10289 
10290  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10291  r"""evaluate_if_good_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10292  return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10293 
10294  def get_version_info(self):
10295  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10296  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10297  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10298 
10299  def __str__(self):
10300  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10301  return _IMP_core.RigidBodyAnglePairScore___str__(self)
10302 
10303  def __repr__(self):
10304  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10305  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10306 
10307  @staticmethod
10308  def get_from(o):
10309  return _object_cast_to_RigidBodyAnglePairScore(o)
10310 
10311 
10312 # Register RigidBodyAnglePairScore in _IMP_core:
10313 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10314 class TableRefiner(IMP.Refiner):
10315  r"""Proxy of C++ IMP::core::TableRefiner class."""
10316 
10317  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10318 
10319  def __init__(self):
10320  r"""__init__(TableRefiner self) -> TableRefiner"""
10321  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10322 
10323  def add_particle(self, p, ps):
10324  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10325  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10326 
10327  def remove_particle(self, p):
10328  r"""remove_particle(TableRefiner self, Particle p)"""
10329  return _IMP_core.TableRefiner_remove_particle(self, p)
10330 
10331  def set_particle(self, p, ps):
10332  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10333  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10334 
10335  def do_get_inputs(self, m, pis):
10336  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10337  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10338 
10339  def get_version_info(self):
10340  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10341  return _IMP_core.TableRefiner_get_version_info(self)
10342  __swig_destroy__ = _IMP_core.delete_TableRefiner
10343 
10344  def __str__(self):
10345  r"""__str__(TableRefiner self) -> std::string"""
10346  return _IMP_core.TableRefiner___str__(self)
10347 
10348  def __repr__(self):
10349  r"""__repr__(TableRefiner self) -> std::string"""
10350  return _IMP_core.TableRefiner___repr__(self)
10351 
10352  @staticmethod
10353  def get_from(o):
10354  return _object_cast_to_TableRefiner(o)
10355 
10356 
10357 # Register TableRefiner in _IMP_core:
10358 _IMP_core.TableRefiner_swigregister(TableRefiner)
10359 LOWER = _IMP_core.LOWER
10360 
10361 BOTH = _IMP_core.BOTH
10362 
10363 UPPER = _IMP_core.UPPER
10364 
10365 class MCCGSampler(IMP.Sampler):
10366  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10367 
10368  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10369 
10370  def __init__(self, *args):
10371  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10372  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10373 
10374  def set_bounding_box(self, bb):
10375  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10376  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10377 
10378  def set_number_of_attempts(self, att):
10379  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10380  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10381 
10382  def set_number_of_monte_carlo_steps(self, cg):
10383  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10384  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10385 
10386  def set_number_of_conjugate_gradient_steps(self, cg):
10387  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10388  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10389 
10390  def set_max_monte_carlo_step_size(self, *args):
10391  r"""
10392  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10393  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10394  """
10395  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10396 
10397  def set_is_refining(self, tf):
10398  r"""set_is_refining(MCCGSampler self, bool tf)"""
10399  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10400 
10401  def set_local_optimizer(self, opt):
10402  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10403  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10404 
10405  def set_save_rejected_configurations(self, tf):
10406  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10407  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10408 
10409  def get_rejected_configurations(self):
10410  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10411  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10412  def __get_optimizer_states(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_optimizer_states, getfunc=self.get_optimizer_state, erasefunc=self.erase_optimizer_state, appendfunc=self.add_optimizer_state, extendfunc=self.add_optimizer_states, clearfunc=self.clear_optimizer_states, indexfunc=self._python_index_optimizer_state)
10413  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10414  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10415  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10416 
10417  def remove_optimizer_state(self, d):
10418  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10419  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10420 
10421  def _python_index_optimizer_state(self, d, start, stop):
10422  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10423  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10424 
10425  def remove_optimizer_states(self, d):
10426  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10427  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10428 
10429  def set_optimizer_states(self, ps):
10430  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10431  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10432 
10433  def set_optimizer_states_order(self, objs):
10434  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10435  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10436 
10437  def add_optimizer_state(self, obj):
10438  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10439  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10440 
10441  def add_optimizer_states(self, objs):
10442  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10443  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10444 
10445  def clear_optimizer_states(self):
10446  r"""clear_optimizer_states(MCCGSampler self)"""
10447  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10448 
10449  def get_number_of_optimizer_states(self):
10450  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10451  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10452 
10453  def get_has_optimizer_states(self):
10454  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10455  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10456 
10457  def get_optimizer_state(self, i):
10458  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10459  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10460 
10461  def get_optimizer_states(self):
10462  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10463  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10464 
10465  def erase_optimizer_state(self, i):
10466  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10467  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10468 
10469  def reserve_optimizer_states(self, sz):
10470  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10471  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10472 
10473  def do_sample(self):
10474  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10475  return _IMP_core.MCCGSampler_do_sample(self)
10476 
10477  def get_version_info(self):
10478  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10479  return _IMP_core.MCCGSampler_get_version_info(self)
10480  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10481 
10482  def __str__(self):
10483  r"""__str__(MCCGSampler self) -> std::string"""
10484  return _IMP_core.MCCGSampler___str__(self)
10485 
10486  def __repr__(self):
10487  r"""__repr__(MCCGSampler self) -> std::string"""
10488  return _IMP_core.MCCGSampler___repr__(self)
10489 
10490  @staticmethod
10491  def get_from(o):
10492  return _object_cast_to_MCCGSampler(o)
10493 
10494 
10495 # Register MCCGSampler in _IMP_core:
10496 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10497 class MinimumRestraint(IMP.Restraint):
10498  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10499 
10500  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10501 
10502  def __init__(self, *args):
10503  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10504  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10505 
10506  def do_get_inputs(self):
10507  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10508  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10509 
10510  def get_version_info(self):
10511  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10512  return _IMP_core.MinimumRestraint_get_version_info(self)
10513  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10514  def __get_restraints(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
10515  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10516  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10517  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10518 
10519  def remove_restraint(self, d):
10520  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10521  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10522 
10523  def _python_index_restraint(self, d, start, stop):
10524  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10525  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10526 
10527  def remove_restraints(self, d):
10528  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10529  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10530 
10531  def set_restraints(self, ps):
10532  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10533  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10534 
10535  def set_restraints_order(self, objs):
10536  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10537  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10538 
10539  def add_restraint(self, obj):
10540  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10541  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10542 
10543  def add_restraints(self, objs):
10544  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10545  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10546 
10547  def clear_restraints(self):
10548  r"""clear_restraints(MinimumRestraint self)"""
10549  return _IMP_core.MinimumRestraint_clear_restraints(self)
10550 
10551  def get_number_of_restraints(self):
10552  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10553  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10554 
10555  def get_has_restraints(self):
10556  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10557  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10558 
10559  def get_restraint(self, i):
10560  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10561  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10562 
10563  def get_restraints(self):
10564  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10565  return _IMP_core.MinimumRestraint_get_restraints(self)
10566 
10567  def erase_restraint(self, i):
10568  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10569  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10570 
10571  def reserve_restraints(self, sz):
10572  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10573  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10574 
10575  def __str__(self):
10576  r"""__str__(MinimumRestraint self) -> std::string"""
10577  return _IMP_core.MinimumRestraint___str__(self)
10578 
10579  def __repr__(self):
10580  r"""__repr__(MinimumRestraint self) -> std::string"""
10581  return _IMP_core.MinimumRestraint___repr__(self)
10582 
10583  @staticmethod
10584  def get_from(o):
10585  return _object_cast_to_MinimumRestraint(o)
10586 
10587 
10588 # Register MinimumRestraint in _IMP_core:
10589 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10590 class Gaussian(RigidBody):
10591  r"""Proxy of C++ IMP::core::Gaussian class."""
10592 
10593  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10594 
10595  def __init__(self, *args):
10596  r"""
10597  __init__(Gaussian self) -> Gaussian
10598  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10599  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10600  """
10601  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10602 
10603  def show(self, *args):
10604  r"""show(Gaussian self, _ostream out=std::cout)"""
10605  return _IMP_core.Gaussian_show(self, *args)
10606 
10607  @staticmethod
10608  def setup_particle(*args):
10609  r"""
10610  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10611  setup_particle(_ParticleAdaptor pa) -> Gaussian
10612  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10613  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10614  """
10615  return _IMP_core.Gaussian_setup_particle(*args)
10616 
10617  @staticmethod
10618  def get_local_covariance_key():
10619  r"""get_local_covariance_key() -> ObjectKey"""
10620  return _IMP_core.Gaussian_get_local_covariance_key()
10621 
10622  @staticmethod
10623  def get_global_covariance_key():
10624  r"""get_global_covariance_key() -> ObjectKey"""
10625  return _IMP_core.Gaussian_get_global_covariance_key()
10626 
10627  @staticmethod
10628  def get_is_setup(*args):
10629  r"""
10630  get_is_setup(_ParticleAdaptor p) -> bool
10631  get_is_setup(Model m, ParticleIndex pi) -> bool
10632  """
10633  return _IMP_core.Gaussian_get_is_setup(*args)
10634 
10635  def get_local_covariance(self):
10636  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10637  return _IMP_core.Gaussian_get_local_covariance(self)
10638 
10639  def get_variances(self):
10640  r"""get_variances(Gaussian self) -> Vector3D"""
10641  return _IMP_core.Gaussian_get_variances(self)
10642 
10643  def get_global_covariance(self):
10644  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10645  return _IMP_core.Gaussian_get_global_covariance(self)
10646 
10647  def get_gaussian(self):
10648  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10649  return _IMP_core.Gaussian_get_gaussian(self)
10650 
10651  def set_gaussian(self, g):
10652  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10653  return _IMP_core.Gaussian_set_gaussian(self, g)
10654 
10655  def set_local_covariance(self, covar):
10656  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10657  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10658 
10659  def set_variances(self, v):
10660  r"""set_variances(Gaussian self, Vector3D v)"""
10661  return _IMP_core.Gaussian_set_variances(self, v)
10662 
10663  def set_global_covariance(self, covar):
10664  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10665  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10666 
10667  def update_global_covariance(self):
10668  r"""update_global_covariance(Gaussian self)"""
10669  return _IMP_core.Gaussian_update_global_covariance(self)
10670 
10671  def add_attribute(self, *args):
10672  r"""
10673  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10674  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10675  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10676  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10677  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10678  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10679  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10680  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10681  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10682  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10683  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10684  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10685  """
10686  return _IMP_core.Gaussian_add_attribute(self, *args)
10687 
10688  def get_value(self, *args):
10689  r"""
10690  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10691  get_value(Gaussian self, IntKey a0) -> IMP::Int
10692  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10693  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10694  get_value(Gaussian self, StringKey a0) -> IMP::String
10695  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10696  get_value(Gaussian self, ObjectKey a0) -> Object
10697  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10698  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10699  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10700  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10701  """
10702  return _IMP_core.Gaussian_get_value(self, *args)
10703 
10704  def set_value(self, *args):
10705  r"""
10706  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10707  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10708  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10709  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10710  set_value(Gaussian self, StringKey a0, IMP::String a1)
10711  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10712  set_value(Gaussian self, ObjectKey a0, Object a1)
10713  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10714  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10715  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10716  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10717  """
10718  return _IMP_core.Gaussian_set_value(self, *args)
10719 
10720  def remove_attribute(self, *args):
10721  r"""
10722  remove_attribute(Gaussian self, FloatKey a0)
10723  remove_attribute(Gaussian self, IntKey a0)
10724  remove_attribute(Gaussian self, FloatsKey a0)
10725  remove_attribute(Gaussian self, IntsKey a0)
10726  remove_attribute(Gaussian self, StringKey a0)
10727  remove_attribute(Gaussian self, ParticleIndexKey a0)
10728  remove_attribute(Gaussian self, ObjectKey a0)
10729  remove_attribute(Gaussian self, SparseFloatKey a0)
10730  remove_attribute(Gaussian self, SparseIntKey a0)
10731  remove_attribute(Gaussian self, SparseStringKey a0)
10732  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10733  """
10734  return _IMP_core.Gaussian_remove_attribute(self, *args)
10735 
10736  def has_attribute(self, *args):
10737  r"""
10738  has_attribute(Gaussian self, FloatKey a0) -> bool
10739  has_attribute(Gaussian self, IntKey a0) -> bool
10740  has_attribute(Gaussian self, FloatsKey a0) -> bool
10741  has_attribute(Gaussian self, IntsKey a0) -> bool
10742  has_attribute(Gaussian self, StringKey a0) -> bool
10743  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10744  has_attribute(Gaussian self, ObjectKey a0) -> bool
10745  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10746  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10747  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10748  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10749  """
10750  return _IMP_core.Gaussian_has_attribute(self, *args)
10751 
10752  def get_derivative(self, a0):
10753  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10754  return _IMP_core.Gaussian_get_derivative(self, a0)
10755 
10756  def get_name(self):
10757  r"""get_name(Gaussian self) -> std::string"""
10758  return _IMP_core.Gaussian_get_name(self)
10759 
10760  def clear_caches(self):
10761  r"""clear_caches(Gaussian self)"""
10762  return _IMP_core.Gaussian_clear_caches(self)
10763 
10764  def set_name(self, a0):
10765  r"""set_name(Gaussian self, std::string a0)"""
10766  return _IMP_core.Gaussian_set_name(self, a0)
10767 
10768  def set_check_level(self, a0):
10769  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10770  return _IMP_core.Gaussian_set_check_level(self, a0)
10771 
10772  def add_to_derivative(self, a0, a1, a2):
10773  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10774  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10775 
10776  def set_is_optimized(self, a0, a1):
10777  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10778  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10779 
10780  def get_is_optimized(self, a0):
10781  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10782  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10783 
10784  def get_check_level(self):
10785  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10786  return _IMP_core.Gaussian_get_check_level(self)
10787 
10788  def __eq__(self, *args):
10789  r"""
10790  __eq__(Gaussian self, Gaussian o) -> bool
10791  __eq__(Gaussian self, Particle d) -> bool
10792  """
10793  return _IMP_core.Gaussian___eq__(self, *args)
10794 
10795  def __ne__(self, *args):
10796  r"""
10797  __ne__(Gaussian self, Gaussian o) -> bool
10798  __ne__(Gaussian self, Particle d) -> bool
10799  """
10800  return _IMP_core.Gaussian___ne__(self, *args)
10801 
10802  def __le__(self, *args):
10803  r"""
10804  __le__(Gaussian self, Gaussian o) -> bool
10805  __le__(Gaussian self, Particle d) -> bool
10806  """
10807  return _IMP_core.Gaussian___le__(self, *args)
10808 
10809  def __lt__(self, *args):
10810  r"""
10811  __lt__(Gaussian self, Gaussian o) -> bool
10812  __lt__(Gaussian self, Particle d) -> bool
10813  """
10814  return _IMP_core.Gaussian___lt__(self, *args)
10815 
10816  def __ge__(self, *args):
10817  r"""
10818  __ge__(Gaussian self, Gaussian o) -> bool
10819  __ge__(Gaussian self, Particle d) -> bool
10820  """
10821  return _IMP_core.Gaussian___ge__(self, *args)
10822 
10823  def __gt__(self, *args):
10824  r"""
10825  __gt__(Gaussian self, Gaussian o) -> bool
10826  __gt__(Gaussian self, Particle d) -> bool
10827  """
10828  return _IMP_core.Gaussian___gt__(self, *args)
10829 
10830  def __hash__(self):
10831  r"""__hash__(Gaussian self) -> std::size_t"""
10832  return _IMP_core.Gaussian___hash__(self)
10833 
10834  def __str__(self):
10835  r"""__str__(Gaussian self) -> std::string"""
10836  return _IMP_core.Gaussian___str__(self)
10837 
10838  def __repr__(self):
10839  r"""__repr__(Gaussian self) -> std::string"""
10840  return _IMP_core.Gaussian___repr__(self)
10841 
10842  def _get_as_binary(self):
10843  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10844  return _IMP_core.Gaussian__get_as_binary(self)
10845 
10846  def _set_from_binary(self, p):
10847  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10848  return _IMP_core.Gaussian__set_from_binary(self, p)
10849 
10850  def __getstate__(self):
10851  p = self._get_as_binary()
10852  if len(self.__dict__) > 1:
10853  d = self.__dict__.copy()
10854  del d['this']
10855  p = (d, p)
10856  return p
10857 
10858  def __setstate__(self, p):
10859  if not hasattr(self, 'this'):
10860  self.__init__()
10861  if isinstance(p, tuple):
10862  d, p = p
10863  self.__dict__.update(d)
10864  return self._set_from_binary(p)
10865 
10866  __swig_destroy__ = _IMP_core.delete_Gaussian
10867 
10868 # Register Gaussian in _IMP_core:
10869 _IMP_core.Gaussian_swigregister(Gaussian)
10870 class PairRestraint(IMP.Restraint):
10871  r"""Proxy of C++ IMP::core::PairRestraint class."""
10872 
10873  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10874 
10875  def __init__(self, *args):
10876  r"""
10877  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10878  __init__(PairRestraint self) -> PairRestraint
10879  """
10880  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10881 
10882  def get_score_object(self):
10883  r"""get_score_object(PairRestraint self) -> PairScore"""
10884  return _IMP_core.PairRestraint_get_score_object(self)
10885 
10886  def get_index(self):
10887  r"""get_index(PairRestraint self) -> IMP::PairScore::IndexArgument"""
10888  return _IMP_core.PairRestraint_get_index(self)
10889 
10890  def get_version_info(self):
10891  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10892  return _IMP_core.PairRestraint_get_version_info(self)
10893  __swig_destroy__ = _IMP_core.delete_PairRestraint
10894 
10895  def __str__(self):
10896  r"""__str__(PairRestraint self) -> std::string"""
10897  return _IMP_core.PairRestraint___str__(self)
10898 
10899  def __repr__(self):
10900  r"""__repr__(PairRestraint self) -> std::string"""
10901  return _IMP_core.PairRestraint___repr__(self)
10902 
10903  @staticmethod
10904  def get_from(o):
10905  return _object_cast_to_PairRestraint(o)
10906 
10907 
10908  def _get_as_binary(self):
10909  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10910  return _IMP_core.PairRestraint__get_as_binary(self)
10911 
10912  def _set_from_binary(self, p):
10913  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10914  return _IMP_core.PairRestraint__set_from_binary(self, p)
10915 
10916  def __getstate__(self):
10917  p = self._get_as_binary()
10918  if len(self.__dict__) > 1:
10919  d = self.__dict__.copy()
10920  del d['this']
10921  p = (d, p)
10922  return p
10923 
10924  def __setstate__(self, p):
10925  if not hasattr(self, 'this'):
10926  self.__init__()
10927  if isinstance(p, tuple):
10928  d, p = p
10929  self.__dict__.update(d)
10930  return self._set_from_binary(p)
10931 
10932 
10933  def _get_jax(self):
10934  from . import _jax_util
10935  return _jax_util._get_jax_restraint(self)
10936 
10937 
10938 # Register PairRestraint in _IMP_core:
10939 _IMP_core.PairRestraint_swigregister(PairRestraint)
10940 class SingletonRestraint(IMP.Restraint):
10941  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10942 
10943  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10944 
10945  def __init__(self, *args):
10946  r"""
10947  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10948  __init__(SingletonRestraint self) -> SingletonRestraint
10949  """
10950  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10951 
10952  def get_score_object(self):
10953  r"""get_score_object(SingletonRestraint self) -> SingletonScore"""
10954  return _IMP_core.SingletonRestraint_get_score_object(self)
10955 
10956  def get_index(self):
10957  r"""get_index(SingletonRestraint self) -> ParticleIndex"""
10958  return _IMP_core.SingletonRestraint_get_index(self)
10959 
10960  def get_version_info(self):
10961  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10962  return _IMP_core.SingletonRestraint_get_version_info(self)
10963  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10964 
10965  def __str__(self):
10966  r"""__str__(SingletonRestraint self) -> std::string"""
10967  return _IMP_core.SingletonRestraint___str__(self)
10968 
10969  def __repr__(self):
10970  r"""__repr__(SingletonRestraint self) -> std::string"""
10971  return _IMP_core.SingletonRestraint___repr__(self)
10972 
10973  @staticmethod
10974  def get_from(o):
10975  return _object_cast_to_SingletonRestraint(o)
10976 
10977 
10978  def _get_as_binary(self):
10979  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10980  return _IMP_core.SingletonRestraint__get_as_binary(self)
10981 
10982  def _set_from_binary(self, p):
10983  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10984  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10985 
10986  def __getstate__(self):
10987  p = self._get_as_binary()
10988  if len(self.__dict__) > 1:
10989  d = self.__dict__.copy()
10990  del d['this']
10991  p = (d, p)
10992  return p
10993 
10994  def __setstate__(self, p):
10995  if not hasattr(self, 'this'):
10996  self.__init__()
10997  if isinstance(p, tuple):
10998  d, p = p
10999  self.__dict__.update(d)
11000  return self._set_from_binary(p)
11001 
11002 
11003  def _get_jax(self):
11004  from . import _jax_util
11005  return _jax_util._get_jax_restraint(self)
11006 
11007 
11008 # Register SingletonRestraint in _IMP_core:
11009 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
11010 class TripletRestraint(IMP.Restraint):
11011  r"""Proxy of C++ IMP::core::TripletRestraint class."""
11012 
11013  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11014 
11015  def __init__(self, *args):
11016  r"""
11017  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
11018  __init__(TripletRestraint self) -> TripletRestraint
11019  """
11020  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
11021 
11022  def get_score_object(self):
11023  r"""get_score_object(TripletRestraint self) -> TripletScore"""
11024  return _IMP_core.TripletRestraint_get_score_object(self)
11025 
11026  def get_index(self):
11027  r"""get_index(TripletRestraint self) -> IMP::TripletScore::IndexArgument"""
11028  return _IMP_core.TripletRestraint_get_index(self)
11029 
11030  def get_version_info(self):
11031  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
11032  return _IMP_core.TripletRestraint_get_version_info(self)
11033  __swig_destroy__ = _IMP_core.delete_TripletRestraint
11034 
11035  def __str__(self):
11036  r"""__str__(TripletRestraint self) -> std::string"""
11037  return _IMP_core.TripletRestraint___str__(self)
11038 
11039  def __repr__(self):
11040  r"""__repr__(TripletRestraint self) -> std::string"""
11041  return _IMP_core.TripletRestraint___repr__(self)
11042 
11043  @staticmethod
11044  def get_from(o):
11045  return _object_cast_to_TripletRestraint(o)
11046 
11047 
11048  def _get_as_binary(self):
11049  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
11050  return _IMP_core.TripletRestraint__get_as_binary(self)
11051 
11052  def _set_from_binary(self, p):
11053  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
11054  return _IMP_core.TripletRestraint__set_from_binary(self, p)
11055 
11056  def __getstate__(self):
11057  p = self._get_as_binary()
11058  if len(self.__dict__) > 1:
11059  d = self.__dict__.copy()
11060  del d['this']
11061  p = (d, p)
11062  return p
11063 
11064  def __setstate__(self, p):
11065  if not hasattr(self, 'this'):
11066  self.__init__()
11067  if isinstance(p, tuple):
11068  d, p = p
11069  self.__dict__.update(d)
11070  return self._set_from_binary(p)
11071 
11072 
11073 # Register TripletRestraint in _IMP_core:
11074 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
11075 class QuadRestraint(IMP.Restraint):
11076  r"""Proxy of C++ IMP::core::QuadRestraint class."""
11077 
11078  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11079 
11080  def __init__(self, *args):
11081  r"""
11082  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
11083  __init__(QuadRestraint self) -> QuadRestraint
11084  """
11085  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
11086 
11087  def get_score_object(self):
11088  r"""get_score_object(QuadRestraint self) -> QuadScore"""
11089  return _IMP_core.QuadRestraint_get_score_object(self)
11090 
11091  def get_index(self):
11092  r"""get_index(QuadRestraint self) -> IMP::QuadScore::IndexArgument"""
11093  return _IMP_core.QuadRestraint_get_index(self)
11094 
11095  def get_version_info(self):
11096  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
11097  return _IMP_core.QuadRestraint_get_version_info(self)
11098  __swig_destroy__ = _IMP_core.delete_QuadRestraint
11099 
11100  def __str__(self):
11101  r"""__str__(QuadRestraint self) -> std::string"""
11102  return _IMP_core.QuadRestraint___str__(self)
11103 
11104  def __repr__(self):
11105  r"""__repr__(QuadRestraint self) -> std::string"""
11106  return _IMP_core.QuadRestraint___repr__(self)
11107 
11108  @staticmethod
11109  def get_from(o):
11110  return _object_cast_to_QuadRestraint(o)
11111 
11112 
11113  def _get_as_binary(self):
11114  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
11115  return _IMP_core.QuadRestraint__get_as_binary(self)
11116 
11117  def _set_from_binary(self, p):
11118  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
11119  return _IMP_core.QuadRestraint__set_from_binary(self, p)
11120 
11121  def __getstate__(self):
11122  p = self._get_as_binary()
11123  if len(self.__dict__) > 1:
11124  d = self.__dict__.copy()
11125  del d['this']
11126  p = (d, p)
11127  return p
11128 
11129  def __setstate__(self, p):
11130  if not hasattr(self, 'this'):
11131  self.__init__()
11132  if isinstance(p, tuple):
11133  d, p = p
11134  self.__dict__.update(d)
11135  return self._set_from_binary(p)
11136 
11137 
11138 # Register QuadRestraint in _IMP_core:
11139 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
11140 class SingletonConstraint(IMP.Constraint):
11141  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
11142 
11143  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11144 
11145  def __init__(self, *args):
11146  r"""
11147  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
11148  __init__(SingletonConstraint self) -> SingletonConstraint
11149  """
11150  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
11151 
11152  def get_version_info(self):
11153  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
11154  return _IMP_core.SingletonConstraint_get_version_info(self)
11155  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
11156 
11157  def __str__(self):
11158  r"""__str__(SingletonConstraint self) -> std::string"""
11159  return _IMP_core.SingletonConstraint___str__(self)
11160 
11161  def __repr__(self):
11162  r"""__repr__(SingletonConstraint self) -> std::string"""
11163  return _IMP_core.SingletonConstraint___repr__(self)
11164 
11165  @staticmethod
11166  def get_from(o):
11167  return _object_cast_to_SingletonConstraint(o)
11168 
11169 
11170  def _get_as_binary(self):
11171  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
11172  return _IMP_core.SingletonConstraint__get_as_binary(self)
11173 
11174  def _set_from_binary(self, p):
11175  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
11176  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
11177 
11178  def __getstate__(self):
11179  p = self._get_as_binary()
11180  if len(self.__dict__) > 1:
11181  d = self.__dict__.copy()
11182  del d['this']
11183  p = (d, p)
11184  return p
11185 
11186  def __setstate__(self, p):
11187  if not hasattr(self, 'this'):
11188  self.__init__()
11189  if isinstance(p, tuple):
11190  d, p = p
11191  self.__dict__.update(d)
11192  return self._set_from_binary(p)
11193 
11194 
11195 # Register SingletonConstraint in _IMP_core:
11196 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11197 class PairConstraint(IMP.Constraint):
11198  r"""Proxy of C++ IMP::core::PairConstraint class."""
11199 
11200  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11201 
11202  def __init__(self, *args):
11203  r"""
11204  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11205  __init__(PairConstraint self) -> PairConstraint
11206  """
11207  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11208 
11209  def get_version_info(self):
11210  r"""get_version_info(PairConstraint self) -> VersionInfo"""
11211  return _IMP_core.PairConstraint_get_version_info(self)
11212  __swig_destroy__ = _IMP_core.delete_PairConstraint
11213 
11214  def __str__(self):
11215  r"""__str__(PairConstraint self) -> std::string"""
11216  return _IMP_core.PairConstraint___str__(self)
11217 
11218  def __repr__(self):
11219  r"""__repr__(PairConstraint self) -> std::string"""
11220  return _IMP_core.PairConstraint___repr__(self)
11221 
11222  @staticmethod
11223  def get_from(o):
11224  return _object_cast_to_PairConstraint(o)
11225 
11226 
11227  def _get_as_binary(self):
11228  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11229  return _IMP_core.PairConstraint__get_as_binary(self)
11230 
11231  def _set_from_binary(self, p):
11232  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11233  return _IMP_core.PairConstraint__set_from_binary(self, p)
11234 
11235  def __getstate__(self):
11236  p = self._get_as_binary()
11237  if len(self.__dict__) > 1:
11238  d = self.__dict__.copy()
11239  del d['this']
11240  p = (d, p)
11241  return p
11242 
11243  def __setstate__(self, p):
11244  if not hasattr(self, 'this'):
11245  self.__init__()
11246  if isinstance(p, tuple):
11247  d, p = p
11248  self.__dict__.update(d)
11249  return self._set_from_binary(p)
11250 
11251 
11252 # Register PairConstraint in _IMP_core:
11253 _IMP_core.PairConstraint_swigregister(PairConstraint)
11254 class TripletConstraint(IMP.Constraint):
11255  r"""Proxy of C++ IMP::core::TripletConstraint class."""
11256 
11257  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11258 
11259  def __init__(self, *args):
11260  r"""
11261  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11262  __init__(TripletConstraint self) -> TripletConstraint
11263  """
11264  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11265 
11266  def get_version_info(self):
11267  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11268  return _IMP_core.TripletConstraint_get_version_info(self)
11269  __swig_destroy__ = _IMP_core.delete_TripletConstraint
11270 
11271  def __str__(self):
11272  r"""__str__(TripletConstraint self) -> std::string"""
11273  return _IMP_core.TripletConstraint___str__(self)
11274 
11275  def __repr__(self):
11276  r"""__repr__(TripletConstraint self) -> std::string"""
11277  return _IMP_core.TripletConstraint___repr__(self)
11278 
11279  @staticmethod
11280  def get_from(o):
11281  return _object_cast_to_TripletConstraint(o)
11282 
11283 
11284  def _get_as_binary(self):
11285  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11286  return _IMP_core.TripletConstraint__get_as_binary(self)
11287 
11288  def _set_from_binary(self, p):
11289  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11290  return _IMP_core.TripletConstraint__set_from_binary(self, p)
11291 
11292  def __getstate__(self):
11293  p = self._get_as_binary()
11294  if len(self.__dict__) > 1:
11295  d = self.__dict__.copy()
11296  del d['this']
11297  p = (d, p)
11298  return p
11299 
11300  def __setstate__(self, p):
11301  if not hasattr(self, 'this'):
11302  self.__init__()
11303  if isinstance(p, tuple):
11304  d, p = p
11305  self.__dict__.update(d)
11306  return self._set_from_binary(p)
11307 
11308 
11309 # Register TripletConstraint in _IMP_core:
11310 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11311 class QuadConstraint(IMP.Constraint):
11312  r"""Proxy of C++ IMP::core::QuadConstraint class."""
11313 
11314  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11315 
11316  def __init__(self, *args):
11317  r"""
11318  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11319  __init__(QuadConstraint self) -> QuadConstraint
11320  """
11321  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11322 
11323  def get_version_info(self):
11324  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11325  return _IMP_core.QuadConstraint_get_version_info(self)
11326  __swig_destroy__ = _IMP_core.delete_QuadConstraint
11327 
11328  def __str__(self):
11329  r"""__str__(QuadConstraint self) -> std::string"""
11330  return _IMP_core.QuadConstraint___str__(self)
11331 
11332  def __repr__(self):
11333  r"""__repr__(QuadConstraint self) -> std::string"""
11334  return _IMP_core.QuadConstraint___repr__(self)
11335 
11336  @staticmethod
11337  def get_from(o):
11338  return _object_cast_to_QuadConstraint(o)
11339 
11340 
11341  def _get_as_binary(self):
11342  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11343  return _IMP_core.QuadConstraint__get_as_binary(self)
11344 
11345  def _set_from_binary(self, p):
11346  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11347  return _IMP_core.QuadConstraint__set_from_binary(self, p)
11348 
11349  def __getstate__(self):
11350  p = self._get_as_binary()
11351  if len(self.__dict__) > 1:
11352  d = self.__dict__.copy()
11353  del d['this']
11354  p = (d, p)
11355  return p
11356 
11357  def __setstate__(self, p):
11358  if not hasattr(self, 'this'):
11359  self.__init__()
11360  if isinstance(p, tuple):
11361  d, p = p
11362  self.__dict__.update(d)
11363  return self._set_from_binary(p)
11364 
11365 
11366 # Register QuadConstraint in _IMP_core:
11367 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11368 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11369  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11370 
11371  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11372 
11373  def __init__(self, *args):
11374  r"""
11375  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11376  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11377  """
11378  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11379 
11380  def do_get_inputs(self, arg2, arg3):
11381  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11382  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11383 
11384  def get_value(self, *args):
11385  r"""
11386  get_value(ConstantSingletonPredicate self, Particle a) -> int
11387  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11388  """
11389  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11390 
11391  def get_value_index(self, *args):
11392  r"""
11393  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11394  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11395  """
11396  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11397 
11398  def get_version_info(self):
11399  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11400  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11401  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11402 
11403  def __str__(self):
11404  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11405  return _IMP_core.ConstantSingletonPredicate___str__(self)
11406 
11407  def __repr__(self):
11408  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11409  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11410 
11411  @staticmethod
11412  def get_from(o):
11413  return _object_cast_to_ConstantSingletonPredicate(o)
11414 
11415 
11416  def _get_as_binary(self):
11417  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11418  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11419 
11420  def _set_from_binary(self, p):
11421  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11422  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11423 
11424  def __getstate__(self):
11425  p = self._get_as_binary()
11426  if len(self.__dict__) > 1:
11427  d = self.__dict__.copy()
11428  del d['this']
11429  p = (d, p)
11430  return p
11431 
11432  def __setstate__(self, p):
11433  if not hasattr(self, 'this'):
11434  self.__init__()
11435  if isinstance(p, tuple):
11436  d, p = p
11437  self.__dict__.update(d)
11438  return self._set_from_binary(p)
11439 
11440 
11441 # Register ConstantSingletonPredicate in _IMP_core:
11442 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11443 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11444  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11445 
11446  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11447 
11448  def __init__(self, *args):
11449  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11450  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11451 
11452  def do_get_inputs(self, m, pis):
11453  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11454  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11455 
11456  def get_value(self, *args):
11457  r"""
11458  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11459  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11460  """
11461  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11462 
11463  def get_value_index(self, *args):
11464  r"""
11465  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11466  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11467  """
11468  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11469 
11470  def get_version_info(self):
11471  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11472  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11473  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11474 
11475  def __str__(self):
11476  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11477  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11478 
11479  def __repr__(self):
11480  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11481  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11482 
11483  @staticmethod
11484  def get_from(o):
11485  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11486 
11487 
11488  def _get_as_binary(self):
11489  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11490  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11491 
11492  def _set_from_binary(self, p):
11493  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11494  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11495 
11496  def __getstate__(self):
11497  p = self._get_as_binary()
11498  if len(self.__dict__) > 1:
11499  d = self.__dict__.copy()
11500  del d['this']
11501  p = (d, p)
11502  return p
11503 
11504  def __setstate__(self, p):
11505  if not hasattr(self, 'this'):
11506  self.__init__()
11507  if isinstance(p, tuple):
11508  d, p = p
11509  self.__dict__.update(d)
11510  return self._set_from_binary(p)
11511 
11512 
11513 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11514 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11515 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11516  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11517 
11518  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11519 
11520  def __init__(self, *args):
11521  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11522  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11523 
11524  def do_get_inputs(self, m, pis):
11525  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11526  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11527 
11528  def get_value(self, *args):
11529  r"""
11530  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11531  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11532  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11533  """
11534  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11535 
11536  def get_value_index(self, *args):
11537  r"""
11538  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11539  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11540  """
11541  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11542 
11543  def get_version_info(self):
11544  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11545  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11546  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11547 
11548  def __str__(self):
11549  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11550  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11551 
11552  def __repr__(self):
11553  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11554  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11555 
11556  @staticmethod
11557  def get_from(o):
11558  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11559 
11560 
11561 # Register OrderedTypeSingletonPredicate in _IMP_core:
11562 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11563 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11564  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11565 
11566  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11567 
11568  def __init__(self, *args):
11569  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11570  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11571 
11572  def do_get_inputs(self, arg2, arg3):
11573  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11574  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11575 
11576  def get_value(self, *args):
11577  r"""
11578  get_value(AllSameSingletonPredicate self, Particle a) -> int
11579  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11580  """
11581  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11582 
11583  def get_value_index(self, *args):
11584  r"""
11585  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11586  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11587  """
11588  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11589 
11590  def get_version_info(self):
11591  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11592  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11593  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11594 
11595  def __str__(self):
11596  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11597  return _IMP_core.AllSameSingletonPredicate___str__(self)
11598 
11599  def __repr__(self):
11600  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11601  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11602 
11603  @staticmethod
11604  def get_from(o):
11605  return _object_cast_to_AllSameSingletonPredicate(o)
11606 
11607 
11608  def _get_as_binary(self):
11609  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11610  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11611 
11612  def _set_from_binary(self, p):
11613  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11614  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11615 
11616  def __getstate__(self):
11617  p = self._get_as_binary()
11618  if len(self.__dict__) > 1:
11619  d = self.__dict__.copy()
11620  del d['this']
11621  p = (d, p)
11622  return p
11623 
11624  def __setstate__(self, p):
11625  if not hasattr(self, 'this'):
11626  self.__init__()
11627  if isinstance(p, tuple):
11628  d, p = p
11629  self.__dict__.update(d)
11630  return self._set_from_binary(p)
11631 
11632 
11633 # Register AllSameSingletonPredicate in _IMP_core:
11634 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11635 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11636  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11637 
11638  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11639 
11640  def __init__(self, *args):
11641  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11642  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11643 
11644  def do_get_inputs(self, arg2, arg3):
11645  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11646  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11647 
11648  def get_value(self, *args):
11649  r"""
11650  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11651  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11652  """
11653  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11654 
11655  def get_value_index(self, *args):
11656  r"""
11657  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11658  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11659  """
11660  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11661 
11662  def get_version_info(self):
11663  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11664  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11665  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11666 
11667  def __str__(self):
11668  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11669  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11670 
11671  def __repr__(self):
11672  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11673  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11674 
11675  @staticmethod
11676  def get_from(o):
11677  return _object_cast_to_CoinFlipSingletonPredicate(o)
11678 
11679 
11680 # Register CoinFlipSingletonPredicate in _IMP_core:
11681 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11682 class ConstantPairPredicate(IMP.PairPredicate):
11683  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11684 
11685  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11686 
11687  def __init__(self, *args):
11688  r"""
11689  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11690  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11691  """
11692  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11693 
11694  def do_get_inputs(self, arg2, arg3):
11695  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11696  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11697 
11698  def get_value(self, *args):
11699  r"""
11700  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11701  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11702  """
11703  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11704 
11705  def get_value_index(self, *args):
11706  r"""
11707  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11708  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11709  """
11710  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11711 
11712  def get_version_info(self):
11713  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11714  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11715  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11716 
11717  def __str__(self):
11718  r"""__str__(ConstantPairPredicate self) -> std::string"""
11719  return _IMP_core.ConstantPairPredicate___str__(self)
11720 
11721  def __repr__(self):
11722  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11723  return _IMP_core.ConstantPairPredicate___repr__(self)
11724 
11725  @staticmethod
11726  def get_from(o):
11727  return _object_cast_to_ConstantPairPredicate(o)
11728 
11729 
11730  def _get_as_binary(self):
11731  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11732  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11733 
11734  def _set_from_binary(self, p):
11735  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11736  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11737 
11738  def __getstate__(self):
11739  p = self._get_as_binary()
11740  if len(self.__dict__) > 1:
11741  d = self.__dict__.copy()
11742  del d['this']
11743  p = (d, p)
11744  return p
11745 
11746  def __setstate__(self, p):
11747  if not hasattr(self, 'this'):
11748  self.__init__()
11749  if isinstance(p, tuple):
11750  d, p = p
11751  self.__dict__.update(d)
11752  return self._set_from_binary(p)
11753 
11754 
11755 # Register ConstantPairPredicate in _IMP_core:
11756 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11757 class UnorderedTypePairPredicate(IMP.PairPredicate):
11758  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11759 
11760  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11761 
11762  def __init__(self, *args):
11763  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11764  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11765 
11766  def do_get_inputs(self, m, pis):
11767  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11768  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11769 
11770  def get_value(self, *args):
11771  r"""
11772  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11773  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11774  """
11775  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11776 
11777  def get_value_index(self, *args):
11778  r"""
11779  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11780  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11781  """
11782  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11783 
11784  def get_version_info(self):
11785  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11786  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11787  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11788 
11789  def __str__(self):
11790  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11791  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11792 
11793  def __repr__(self):
11794  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11795  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11796 
11797  @staticmethod
11798  def get_from(o):
11799  return _object_cast_to_UnorderedTypePairPredicate(o)
11800 
11801 
11802  def _get_as_binary(self):
11803  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11804  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11805 
11806  def _set_from_binary(self, p):
11807  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11808  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11809 
11810  def __getstate__(self):
11811  p = self._get_as_binary()
11812  if len(self.__dict__) > 1:
11813  d = self.__dict__.copy()
11814  del d['this']
11815  p = (d, p)
11816  return p
11817 
11818  def __setstate__(self, p):
11819  if not hasattr(self, 'this'):
11820  self.__init__()
11821  if isinstance(p, tuple):
11822  d, p = p
11823  self.__dict__.update(d)
11824  return self._set_from_binary(p)
11825 
11826 
11827 # Register UnorderedTypePairPredicate in _IMP_core:
11828 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11829 class OrderedTypePairPredicate(IMP.PairPredicate):
11830  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11831 
11832  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11833 
11834  def __init__(self, *args):
11835  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11836  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11837 
11838  def do_get_inputs(self, m, pis):
11839  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11840  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11841 
11842  def get_value(self, *args):
11843  r"""
11844  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11845  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11846  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11847  """
11848  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11849 
11850  def get_value_index(self, *args):
11851  r"""
11852  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11853  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11854  """
11855  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11856 
11857  def get_version_info(self):
11858  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11859  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11860  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11861 
11862  def __str__(self):
11863  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11864  return _IMP_core.OrderedTypePairPredicate___str__(self)
11865 
11866  def __repr__(self):
11867  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11868  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11869 
11870  @staticmethod
11871  def get_from(o):
11872  return _object_cast_to_OrderedTypePairPredicate(o)
11873 
11874 
11875 # Register OrderedTypePairPredicate in _IMP_core:
11876 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11877 class AllSamePairPredicate(IMP.PairPredicate):
11878  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11879 
11880  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11881 
11882  def __init__(self, *args):
11883  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11884  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11885 
11886  def do_get_inputs(self, arg2, arg3):
11887  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11888  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11889 
11890  def get_value(self, *args):
11891  r"""
11892  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11893  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11894  """
11895  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11896 
11897  def get_value_index(self, *args):
11898  r"""
11899  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11900  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11901  """
11902  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11903 
11904  def get_version_info(self):
11905  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11906  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11907  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11908 
11909  def __str__(self):
11910  r"""__str__(AllSamePairPredicate self) -> std::string"""
11911  return _IMP_core.AllSamePairPredicate___str__(self)
11912 
11913  def __repr__(self):
11914  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11915  return _IMP_core.AllSamePairPredicate___repr__(self)
11916 
11917  @staticmethod
11918  def get_from(o):
11919  return _object_cast_to_AllSamePairPredicate(o)
11920 
11921 
11922  def _get_as_binary(self):
11923  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11924  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11925 
11926  def _set_from_binary(self, p):
11927  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11928  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11929 
11930  def __getstate__(self):
11931  p = self._get_as_binary()
11932  if len(self.__dict__) > 1:
11933  d = self.__dict__.copy()
11934  del d['this']
11935  p = (d, p)
11936  return p
11937 
11938  def __setstate__(self, p):
11939  if not hasattr(self, 'this'):
11940  self.__init__()
11941  if isinstance(p, tuple):
11942  d, p = p
11943  self.__dict__.update(d)
11944  return self._set_from_binary(p)
11945 
11946 
11947 # Register AllSamePairPredicate in _IMP_core:
11948 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11949 class CoinFlipPairPredicate(IMP.PairPredicate):
11950  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11951 
11952  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11953 
11954  def __init__(self, *args):
11955  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11956  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11957 
11958  def do_get_inputs(self, arg2, arg3):
11959  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11960  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11961 
11962  def get_value(self, *args):
11963  r"""
11964  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11965  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11966  """
11967  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11968 
11969  def get_value_index(self, *args):
11970  r"""
11971  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11972  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11973  """
11974  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11975 
11976  def get_version_info(self):
11977  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11978  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11979  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11980 
11981  def __str__(self):
11982  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11983  return _IMP_core.CoinFlipPairPredicate___str__(self)
11984 
11985  def __repr__(self):
11986  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11987  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11988 
11989  @staticmethod
11990  def get_from(o):
11991  return _object_cast_to_CoinFlipPairPredicate(o)
11992 
11993 
11994 # Register CoinFlipPairPredicate in _IMP_core:
11995 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11996 class ConstantTripletPredicate(IMP.TripletPredicate):
11997  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11998 
11999  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12000 
12001  def __init__(self, *args):
12002  r"""
12003  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
12004  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
12005  """
12006  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
12007 
12008  def do_get_inputs(self, arg2, arg3):
12009  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12010  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
12011 
12012  def get_value(self, *args):
12013  r"""
12014  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12015  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12016  """
12017  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
12018 
12019  def get_value_index(self, *args):
12020  r"""
12021  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12022  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12023  """
12024  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
12025 
12026  def get_version_info(self):
12027  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
12028  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
12029  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
12030 
12031  def __str__(self):
12032  r"""__str__(ConstantTripletPredicate self) -> std::string"""
12033  return _IMP_core.ConstantTripletPredicate___str__(self)
12034 
12035  def __repr__(self):
12036  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
12037  return _IMP_core.ConstantTripletPredicate___repr__(self)
12038 
12039  @staticmethod
12040  def get_from(o):
12041  return _object_cast_to_ConstantTripletPredicate(o)
12042 
12043 
12044  def _get_as_binary(self):
12045  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
12046  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
12047 
12048  def _set_from_binary(self, p):
12049  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
12050  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
12051 
12052  def __getstate__(self):
12053  p = self._get_as_binary()
12054  if len(self.__dict__) > 1:
12055  d = self.__dict__.copy()
12056  del d['this']
12057  p = (d, p)
12058  return p
12059 
12060  def __setstate__(self, p):
12061  if not hasattr(self, 'this'):
12062  self.__init__()
12063  if isinstance(p, tuple):
12064  d, p = p
12065  self.__dict__.update(d)
12066  return self._set_from_binary(p)
12067 
12068 
12069 # Register ConstantTripletPredicate in _IMP_core:
12070 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
12071 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
12072  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
12073 
12074  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12075 
12076  def __init__(self, *args):
12077  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
12078  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
12079 
12080  def do_get_inputs(self, m, pis):
12081  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12082  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
12083 
12084  def get_value(self, *args):
12085  r"""
12086  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12087  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12088  """
12089  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
12090 
12091  def get_value_index(self, *args):
12092  r"""
12093  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12094  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12095  """
12096  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
12097 
12098  def get_version_info(self):
12099  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
12100  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
12101  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
12102 
12103  def __str__(self):
12104  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
12105  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
12106 
12107  def __repr__(self):
12108  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
12109  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
12110 
12111  @staticmethod
12112  def get_from(o):
12113  return _object_cast_to_UnorderedTypeTripletPredicate(o)
12114 
12115 
12116  def _get_as_binary(self):
12117  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
12118  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
12119 
12120  def _set_from_binary(self, p):
12121  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
12122  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
12123 
12124  def __getstate__(self):
12125  p = self._get_as_binary()
12126  if len(self.__dict__) > 1:
12127  d = self.__dict__.copy()
12128  del d['this']
12129  p = (d, p)
12130  return p
12131 
12132  def __setstate__(self, p):
12133  if not hasattr(self, 'this'):
12134  self.__init__()
12135  if isinstance(p, tuple):
12136  d, p = p
12137  self.__dict__.update(d)
12138  return self._set_from_binary(p)
12139 
12140 
12141 # Register UnorderedTypeTripletPredicate in _IMP_core:
12142 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
12143 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
12144  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
12145 
12146  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12147 
12148  def __init__(self, *args):
12149  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
12150  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
12151 
12152  def do_get_inputs(self, m, pis):
12153  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12154  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
12155 
12156  def get_value(self, *args):
12157  r"""
12158  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
12159  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12160  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12161  """
12162  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
12163 
12164  def get_value_index(self, *args):
12165  r"""
12166  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12167  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12168  """
12169  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
12170 
12171  def get_version_info(self):
12172  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
12173  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
12174  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
12175 
12176  def __str__(self):
12177  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
12178  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
12179 
12180  def __repr__(self):
12181  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
12182  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
12183 
12184  @staticmethod
12185  def get_from(o):
12186  return _object_cast_to_OrderedTypeTripletPredicate(o)
12187 
12188 
12189 # Register OrderedTypeTripletPredicate in _IMP_core:
12190 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12191 class AllSameTripletPredicate(IMP.TripletPredicate):
12192  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12193 
12194  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12195 
12196  def __init__(self, *args):
12197  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12198  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12199 
12200  def do_get_inputs(self, arg2, arg3):
12201  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12202  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12203 
12204  def get_value(self, *args):
12205  r"""
12206  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12207  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12208  """
12209  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12210 
12211  def get_value_index(self, *args):
12212  r"""
12213  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12214  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12215  """
12216  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12217 
12218  def get_version_info(self):
12219  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12220  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12221  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12222 
12223  def __str__(self):
12224  r"""__str__(AllSameTripletPredicate self) -> std::string"""
12225  return _IMP_core.AllSameTripletPredicate___str__(self)
12226 
12227  def __repr__(self):
12228  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12229  return _IMP_core.AllSameTripletPredicate___repr__(self)
12230 
12231  @staticmethod
12232  def get_from(o):
12233  return _object_cast_to_AllSameTripletPredicate(o)
12234 
12235 
12236  def _get_as_binary(self):
12237  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12238  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12239 
12240  def _set_from_binary(self, p):
12241  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12242  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12243 
12244  def __getstate__(self):
12245  p = self._get_as_binary()
12246  if len(self.__dict__) > 1:
12247  d = self.__dict__.copy()
12248  del d['this']
12249  p = (d, p)
12250  return p
12251 
12252  def __setstate__(self, p):
12253  if not hasattr(self, 'this'):
12254  self.__init__()
12255  if isinstance(p, tuple):
12256  d, p = p
12257  self.__dict__.update(d)
12258  return self._set_from_binary(p)
12259 
12260 
12261 # Register AllSameTripletPredicate in _IMP_core:
12262 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12263 class CoinFlipTripletPredicate(IMP.TripletPredicate):
12264  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12265 
12266  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12267 
12268  def __init__(self, *args):
12269  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12270  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12271 
12272  def do_get_inputs(self, arg2, arg3):
12273  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12274  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12275 
12276  def get_value(self, *args):
12277  r"""
12278  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12279  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12280  """
12281  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12282 
12283  def get_value_index(self, *args):
12284  r"""
12285  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12286  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12287  """
12288  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12289 
12290  def get_version_info(self):
12291  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12292  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12293  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12294 
12295  def __str__(self):
12296  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12297  return _IMP_core.CoinFlipTripletPredicate___str__(self)
12298 
12299  def __repr__(self):
12300  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12301  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12302 
12303  @staticmethod
12304  def get_from(o):
12305  return _object_cast_to_CoinFlipTripletPredicate(o)
12306 
12307 
12308 # Register CoinFlipTripletPredicate in _IMP_core:
12309 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12310 class ConstantQuadPredicate(IMP.QuadPredicate):
12311  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12312 
12313  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12314 
12315  def __init__(self, *args):
12316  r"""
12317  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12318  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12319  """
12320  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12321 
12322  def do_get_inputs(self, arg2, arg3):
12323  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12324  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12325 
12326  def get_value(self, *args):
12327  r"""
12328  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12329  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12330  """
12331  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12332 
12333  def get_value_index(self, *args):
12334  r"""
12335  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12336  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12337  """
12338  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12339 
12340  def get_version_info(self):
12341  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12342  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12343  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12344 
12345  def __str__(self):
12346  r"""__str__(ConstantQuadPredicate self) -> std::string"""
12347  return _IMP_core.ConstantQuadPredicate___str__(self)
12348 
12349  def __repr__(self):
12350  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12351  return _IMP_core.ConstantQuadPredicate___repr__(self)
12352 
12353  @staticmethod
12354  def get_from(o):
12355  return _object_cast_to_ConstantQuadPredicate(o)
12356 
12357 
12358  def _get_as_binary(self):
12359  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12360  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12361 
12362  def _set_from_binary(self, p):
12363  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12364  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12365 
12366  def __getstate__(self):
12367  p = self._get_as_binary()
12368  if len(self.__dict__) > 1:
12369  d = self.__dict__.copy()
12370  del d['this']
12371  p = (d, p)
12372  return p
12373 
12374  def __setstate__(self, p):
12375  if not hasattr(self, 'this'):
12376  self.__init__()
12377  if isinstance(p, tuple):
12378  d, p = p
12379  self.__dict__.update(d)
12380  return self._set_from_binary(p)
12381 
12382 
12383 # Register ConstantQuadPredicate in _IMP_core:
12384 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12385 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12386  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12387 
12388  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12389 
12390  def __init__(self, *args):
12391  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12392  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12393 
12394  def do_get_inputs(self, m, pis):
12395  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12396  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12397 
12398  def get_value(self, *args):
12399  r"""
12400  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12401  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12402  """
12403  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12404 
12405  def get_value_index(self, *args):
12406  r"""
12407  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12408  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12409  """
12410  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12411 
12412  def get_version_info(self):
12413  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12414  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12415  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12416 
12417  def __str__(self):
12418  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12419  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12420 
12421  def __repr__(self):
12422  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12423  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12424 
12425  @staticmethod
12426  def get_from(o):
12427  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12428 
12429 
12430  def _get_as_binary(self):
12431  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12432  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12433 
12434  def _set_from_binary(self, p):
12435  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12436  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12437 
12438  def __getstate__(self):
12439  p = self._get_as_binary()
12440  if len(self.__dict__) > 1:
12441  d = self.__dict__.copy()
12442  del d['this']
12443  p = (d, p)
12444  return p
12445 
12446  def __setstate__(self, p):
12447  if not hasattr(self, 'this'):
12448  self.__init__()
12449  if isinstance(p, tuple):
12450  d, p = p
12451  self.__dict__.update(d)
12452  return self._set_from_binary(p)
12453 
12454 
12455 # Register UnorderedTypeQuadPredicate in _IMP_core:
12456 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12457 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12458  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12459 
12460  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12461 
12462  def __init__(self, *args):
12463  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12464  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12465 
12466  def do_get_inputs(self, m, pis):
12467  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12468  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12469 
12470  def get_value(self, *args):
12471  r"""
12472  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12473  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12474  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12475  """
12476  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12477 
12478  def get_value_index(self, *args):
12479  r"""
12480  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12481  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12482  """
12483  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12484 
12485  def get_version_info(self):
12486  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12487  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12488  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12489 
12490  def __str__(self):
12491  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12492  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12493 
12494  def __repr__(self):
12495  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12496  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12497 
12498  @staticmethod
12499  def get_from(o):
12500  return _object_cast_to_OrderedTypeQuadPredicate(o)
12501 
12502 
12503 # Register OrderedTypeQuadPredicate in _IMP_core:
12504 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12505 class AllSameQuadPredicate(IMP.QuadPredicate):
12506  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12507 
12508  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12509 
12510  def __init__(self, *args):
12511  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12512  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12513 
12514  def do_get_inputs(self, arg2, arg3):
12515  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12516  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12517 
12518  def get_value(self, *args):
12519  r"""
12520  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12521  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12522  """
12523  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12524 
12525  def get_value_index(self, *args):
12526  r"""
12527  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12528  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12529  """
12530  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12531 
12532  def get_version_info(self):
12533  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12534  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12535  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12536 
12537  def __str__(self):
12538  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12539  return _IMP_core.AllSameQuadPredicate___str__(self)
12540 
12541  def __repr__(self):
12542  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12543  return _IMP_core.AllSameQuadPredicate___repr__(self)
12544 
12545  @staticmethod
12546  def get_from(o):
12547  return _object_cast_to_AllSameQuadPredicate(o)
12548 
12549 
12550  def _get_as_binary(self):
12551  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12552  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12553 
12554  def _set_from_binary(self, p):
12555  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12556  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12557 
12558  def __getstate__(self):
12559  p = self._get_as_binary()
12560  if len(self.__dict__) > 1:
12561  d = self.__dict__.copy()
12562  del d['this']
12563  p = (d, p)
12564  return p
12565 
12566  def __setstate__(self, p):
12567  if not hasattr(self, 'this'):
12568  self.__init__()
12569  if isinstance(p, tuple):
12570  d, p = p
12571  self.__dict__.update(d)
12572  return self._set_from_binary(p)
12573 
12574 
12575 # Register AllSameQuadPredicate in _IMP_core:
12576 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12577 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12578  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12579 
12580  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12581 
12582  def __init__(self, *args):
12583  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12584  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12585 
12586  def do_get_inputs(self, arg2, arg3):
12587  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12588  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12589 
12590  def get_value(self, *args):
12591  r"""
12592  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12593  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12594  """
12595  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12596 
12597  def get_value_index(self, *args):
12598  r"""
12599  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12600  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12601  """
12602  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12603 
12604  def get_version_info(self):
12605  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12606  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12607  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12608 
12609  def __str__(self):
12610  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12611  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12612 
12613  def __repr__(self):
12614  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12615  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12616 
12617  @staticmethod
12618  def get_from(o):
12619  return _object_cast_to_CoinFlipQuadPredicate(o)
12620 
12621 
12622 # Register CoinFlipQuadPredicate in _IMP_core:
12623 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12624 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12625  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12626 
12627  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12628 
12629  def __init__(self, *args):
12630  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12631  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12632 
12633  def do_get_inputs(self, m, pi):
12634  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12635  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12636 
12637  def get_value(self, *args):
12638  r"""
12639  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12640  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12641  """
12642  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12643 
12644  def get_value_index(self, *args):
12645  r"""
12646  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12647  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12648  """
12649  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12650 
12651  def get_version_info(self):
12652  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12653  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12654  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12655 
12656  def __str__(self):
12657  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12658  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12659 
12660  def __repr__(self):
12661  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12662  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12663 
12664  @staticmethod
12665  def get_from(o):
12666  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12667 
12668 
12669 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12670 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12671 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12672  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12673 
12674  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12675 
12676  def __init__(self, *args):
12677  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12678  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12679 
12680  def do_get_inputs(self, m, pi):
12681  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12682  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12683 
12684  def get_value(self, *args):
12685  r"""
12686  get_value(AttributeSingletonPredicate self, Particle a) -> int
12687  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12688  """
12689  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12690 
12691  def get_value_index(self, *args):
12692  r"""
12693  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12694  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12695  """
12696  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12697 
12698  def get_version_info(self):
12699  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12700  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12701  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12702 
12703  def __str__(self):
12704  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12705  return _IMP_core.AttributeSingletonPredicate___str__(self)
12706 
12707  def __repr__(self):
12708  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12709  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12710 
12711  @staticmethod
12712  def get_from(o):
12713  return _object_cast_to_AttributeSingletonPredicate(o)
12714 
12715 
12716 # Register AttributeSingletonPredicate in _IMP_core:
12717 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12718 class IsCollisionPairPredicate(IMP.PairPredicate):
12719  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12720 
12721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12722 
12723  def __init__(self, *args):
12724  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12725  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12726 
12727  def do_get_inputs(self, m, pi):
12728  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12729  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12730 
12731  def get_value(self, *args):
12732  r"""
12733  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12734  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12735  """
12736  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12737 
12738  def get_value_index(self, *args):
12739  r"""
12740  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12741  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12742  """
12743  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12744 
12745  def get_version_info(self):
12746  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12747  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12748  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12749 
12750  def __str__(self):
12751  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12752  return _IMP_core.IsCollisionPairPredicate___str__(self)
12753 
12754  def __repr__(self):
12755  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12756  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12757 
12758  @staticmethod
12759  def get_from(o):
12760  return _object_cast_to_IsCollisionPairPredicate(o)
12761 
12762 
12763 # Register IsCollisionPairPredicate in _IMP_core:
12764 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12765 class AngleRestraint(TripletRestraint):
12766  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12767 
12768  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12769 
12770  def __init__(self, *args):
12771  r"""
12772  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12773  __init__(AngleRestraint self) -> AngleRestraint
12774  """
12775  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12776  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12777 
12778  def __str__(self):
12779  r"""__str__(AngleRestraint self) -> std::string"""
12780  return _IMP_core.AngleRestraint___str__(self)
12781 
12782  def __repr__(self):
12783  r"""__repr__(AngleRestraint self) -> std::string"""
12784  return _IMP_core.AngleRestraint___repr__(self)
12785 
12786  @staticmethod
12787  def get_from(o):
12788  return _object_cast_to_AngleRestraint(o)
12789 
12790 
12791  def _get_as_binary(self):
12792  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12793  return _IMP_core.AngleRestraint__get_as_binary(self)
12794 
12795  def _set_from_binary(self, p):
12796  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12797  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12798 
12799  def __getstate__(self):
12800  p = self._get_as_binary()
12801  if len(self.__dict__) > 1:
12802  d = self.__dict__.copy()
12803  del d['this']
12804  p = (d, p)
12805  return p
12806 
12807  def __setstate__(self, p):
12808  if not hasattr(self, 'this'):
12809  self.__init__()
12810  if isinstance(p, tuple):
12811  d, p = p
12812  self.__dict__.update(d)
12813  return self._set_from_binary(p)
12814 
12815 
12816 # Register AngleRestraint in _IMP_core:
12817 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12818 class RigidBodyMover(MonteCarloMover):
12819  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12820 
12821  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12822 
12823  def __init__(self, *args):
12824  r"""
12825  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12826  __init__(RigidBodyMover self) -> RigidBodyMover
12827  """
12828  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12829 
12830  def set_maximum_translation(self, mt):
12831  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12832  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12833 
12834  def set_maximum_rotation(self, mr):
12835  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12836  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12837 
12838  def get_maximum_translation(self):
12839  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12840  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12841 
12842  def get_maximum_rotation(self):
12843  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12844  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12845 
12846  def get_version_info(self):
12847  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12848  return _IMP_core.RigidBodyMover_get_version_info(self)
12849  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12850 
12851  def __str__(self):
12852  r"""__str__(RigidBodyMover self) -> std::string"""
12853  return _IMP_core.RigidBodyMover___str__(self)
12854 
12855  def __repr__(self):
12856  r"""__repr__(RigidBodyMover self) -> std::string"""
12857  return _IMP_core.RigidBodyMover___repr__(self)
12858 
12859  @staticmethod
12860  def get_from(o):
12861  return _object_cast_to_RigidBodyMover(o)
12862 
12863 
12864  def _get_as_binary(self):
12865  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12866  return _IMP_core.RigidBodyMover__get_as_binary(self)
12867 
12868  def _set_from_binary(self, p):
12869  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12870  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12871 
12872  def __getstate__(self):
12873  p = self._get_as_binary()
12874  if len(self.__dict__) > 1:
12875  d = self.__dict__.copy()
12876  del d['this']
12877  p = (d, p)
12878  return p
12879 
12880  def __setstate__(self, p):
12881  if not hasattr(self, 'this'):
12882  self.__init__()
12883  if isinstance(p, tuple):
12884  d, p = p
12885  self.__dict__.update(d)
12886  return self._set_from_binary(p)
12887 
12888 
12889 # Register RigidBodyMover in _IMP_core:
12890 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12891 class RigidBodyTunneler(MonteCarloMover):
12892  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12893 
12894  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12895 
12896  def __init__(self, m, pis, ref, k, move_probability=1.):
12897  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12898  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12899 
12900  def add_entry_point(self, fl):
12901  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12902  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12903 
12904  def reset_stats(self):
12905  r"""reset_stats(RigidBodyTunneler self)"""
12906  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12907 
12908  def get_number_of_rejected_moves(self):
12909  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12910  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12911 
12912  def get_number_of_proposed_moves(self):
12913  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12914  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12915 
12916  def get_number_of_impossible_moves(self):
12917  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12918  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12919 
12920  def get_number_of_calls(self):
12921  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12922  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12923 
12924  @staticmethod
12925  def get_reduced_coordinates(*args):
12926  r"""
12927  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12928  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12929  """
12930  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12931 
12932  @staticmethod
12933  def set_reduced_coordinates(m, target, ref, coords):
12934  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12935  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12936 
12937  def get_version_info(self):
12938  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12939  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12940  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12941 
12942  def __str__(self):
12943  r"""__str__(RigidBodyTunneler self) -> std::string"""
12944  return _IMP_core.RigidBodyTunneler___str__(self)
12945 
12946  def __repr__(self):
12947  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12948  return _IMP_core.RigidBodyTunneler___repr__(self)
12949 
12950  @staticmethod
12951  def get_from(o):
12952  return _object_cast_to_RigidBodyTunneler(o)
12953 
12954 
12955 # Register RigidBodyTunneler in _IMP_core:
12956 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12957 class RigidBodyUmbrella(IMP.Restraint):
12958  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12959 
12960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12961 
12962  def __init__(self, *args):
12963  r"""
12964  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12965  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, double _lambda, IMP::Floats x1, IMP::Floats x2, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12966  """
12967  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12968 
12969  def set_x0(self, *args):
12970  r"""
12971  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12972  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12973  """
12974  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12975 
12976  def get_x0(self):
12977  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12978  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12979 
12980  def get_x(self):
12981  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12982  return _IMP_core.RigidBodyUmbrella_get_x(self)
12983 
12984  def set_alpha(self, alpha):
12985  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12986  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12987 
12988  def set_k(self, k):
12989  r"""set_k(RigidBodyUmbrella self, double k)"""
12990  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12991 
12992  def get_version_info(self):
12993  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12994  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12995  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12996 
12997  def __str__(self):
12998  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12999  return _IMP_core.RigidBodyUmbrella___str__(self)
13000 
13001  def __repr__(self):
13002  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
13003  return _IMP_core.RigidBodyUmbrella___repr__(self)
13004 
13005  @staticmethod
13006  def get_from(o):
13007  return _object_cast_to_RigidBodyUmbrella(o)
13008 
13009 
13010 # Register RigidBodyUmbrella in _IMP_core:
13011 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
13012 class VolumeRestraint(IMP.Restraint):
13013  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
13014 
13015  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13016 
13017  def __init__(self, f, sc, volume):
13018  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
13019  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
13020 
13021  def do_get_inputs(self):
13022  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
13023  return _IMP_core.VolumeRestraint_do_get_inputs(self)
13024 
13025  def get_version_info(self):
13026  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
13027  return _IMP_core.VolumeRestraint_get_version_info(self)
13028  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
13029 
13030  def __str__(self):
13031  r"""__str__(VolumeRestraint self) -> std::string"""
13032  return _IMP_core.VolumeRestraint___str__(self)
13033 
13034  def __repr__(self):
13035  r"""__repr__(VolumeRestraint self) -> std::string"""
13036  return _IMP_core.VolumeRestraint___repr__(self)
13037 
13038  @staticmethod
13039  def get_from(o):
13040  return _object_cast_to_VolumeRestraint(o)
13041 
13042 
13043 # Register VolumeRestraint in _IMP_core:
13044 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
13045 
13046 def get_centroid(ps):
13047  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
13048  return _IMP_core.get_centroid(ps)
13049 
13050 def get_bounding_box(ps):
13051  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
13052  return _IMP_core.get_bounding_box(ps)
13053 class MoveStatisticsScoreState(IMP.ScoreState):
13054  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
13055 
13056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13057 
13058  def __init__(self, ps):
13059  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
13060  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
13061 
13062  def show_statistics(self, *args):
13063  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
13064  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
13065 
13066  def reset(self):
13067  r"""reset(MoveStatisticsScoreState self)"""
13068  return _IMP_core.MoveStatisticsScoreState_reset(self)
13069 
13070  def do_before_evaluate(self):
13071  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
13072  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
13073 
13074  def do_after_evaluate(self, da):
13075  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
13076  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
13077 
13078  def do_get_inputs(self):
13079  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
13080  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
13081 
13082  def do_get_outputs(self):
13083  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
13084  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
13085 
13086  def get_version_info(self):
13087  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
13088  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
13089  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
13090 
13091  def __str__(self):
13092  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
13093  return _IMP_core.MoveStatisticsScoreState___str__(self)
13094 
13095  def __repr__(self):
13096  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
13097  return _IMP_core.MoveStatisticsScoreState___repr__(self)
13098 
13099  @staticmethod
13100  def get_from(o):
13101  return _object_cast_to_MoveStatisticsScoreState(o)
13102 
13103 
13104 # Register MoveStatisticsScoreState in _IMP_core:
13105 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
13106 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
13107 
13108 class Typed(IMP.Decorator):
13109  r"""Proxy of C++ IMP::core::Typed class."""
13110 
13111  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13112 
13113  @staticmethod
13114  def get_type_key():
13115  r"""get_type_key() -> IntKey"""
13116  return _IMP_core.Typed_get_type_key()
13117 
13118  def __init__(self, *args):
13119  r"""
13120  __init__(Typed self) -> Typed
13121  __init__(Typed self, Model m, ParticleIndex id) -> Typed
13122  __init__(Typed self, _ParticleAdaptor d) -> Typed
13123  """
13124  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
13125 
13126  def show(self, *args):
13127  r"""show(Typed self, _ostream out=std::cout)"""
13128  return _IMP_core.Typed_show(self, *args)
13129 
13130  @staticmethod
13131  def setup_particle(*args):
13132  r"""
13133  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
13134  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
13135  """
13136  return _IMP_core.Typed_setup_particle(*args)
13137 
13138  @staticmethod
13139  def get_is_setup(*args):
13140  r"""
13141  get_is_setup(_ParticleAdaptor p) -> bool
13142  get_is_setup(Model m, ParticleIndex pi) -> bool
13143  """
13144  return _IMP_core.Typed_get_is_setup(*args)
13145 
13146  def get_type(self):
13147  r"""get_type(Typed self) -> ParticleType"""
13148  return _IMP_core.Typed_get_type(self)
13149 
13150  def set_type(self, pt):
13151  r"""set_type(Typed self, ParticleType pt)"""
13152  return _IMP_core.Typed_set_type(self, pt)
13153 
13154  def add_attribute(self, *args):
13155  r"""
13156  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
13157  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
13158  add_attribute(Typed self, IntKey a0, IMP::Int a1)
13159  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
13160  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
13161  add_attribute(Typed self, StringKey a0, IMP::String a1)
13162  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
13163  add_attribute(Typed self, ObjectKey a0, Object a1)
13164  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
13165  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
13166  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
13167  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13168  """
13169  return _IMP_core.Typed_add_attribute(self, *args)
13170 
13171  def get_value(self, *args):
13172  r"""
13173  get_value(Typed self, FloatKey a0) -> IMP::Float
13174  get_value(Typed self, IntKey a0) -> IMP::Int
13175  get_value(Typed self, FloatsKey a0) -> IMP::Floats
13176  get_value(Typed self, IntsKey a0) -> IMP::Ints
13177  get_value(Typed self, StringKey a0) -> IMP::String
13178  get_value(Typed self, ParticleIndexKey a0) -> Particle
13179  get_value(Typed self, ObjectKey a0) -> Object
13180  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
13181  get_value(Typed self, SparseIntKey a0) -> IMP::Int
13182  get_value(Typed self, SparseStringKey a0) -> IMP::String
13183  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
13184  """
13185  return _IMP_core.Typed_get_value(self, *args)
13186 
13187  def set_value(self, *args):
13188  r"""
13189  set_value(Typed self, FloatKey a0, IMP::Float a1)
13190  set_value(Typed self, IntKey a0, IMP::Int a1)
13191  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13192  set_value(Typed self, IntsKey a0, IMP::Ints a1)
13193  set_value(Typed self, StringKey a0, IMP::String a1)
13194  set_value(Typed self, ParticleIndexKey a0, Particle a1)
13195  set_value(Typed self, ObjectKey a0, Object a1)
13196  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13197  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13198  set_value(Typed self, SparseStringKey a0, IMP::String a1)
13199  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13200  """
13201  return _IMP_core.Typed_set_value(self, *args)
13202 
13203  def remove_attribute(self, *args):
13204  r"""
13205  remove_attribute(Typed self, FloatKey a0)
13206  remove_attribute(Typed self, IntKey a0)
13207  remove_attribute(Typed self, FloatsKey a0)
13208  remove_attribute(Typed self, IntsKey a0)
13209  remove_attribute(Typed self, StringKey a0)
13210  remove_attribute(Typed self, ParticleIndexKey a0)
13211  remove_attribute(Typed self, ObjectKey a0)
13212  remove_attribute(Typed self, SparseFloatKey a0)
13213  remove_attribute(Typed self, SparseIntKey a0)
13214  remove_attribute(Typed self, SparseStringKey a0)
13215  remove_attribute(Typed self, SparseParticleIndexKey a0)
13216  """
13217  return _IMP_core.Typed_remove_attribute(self, *args)
13218 
13219  def has_attribute(self, *args):
13220  r"""
13221  has_attribute(Typed self, FloatKey a0) -> bool
13222  has_attribute(Typed self, IntKey a0) -> bool
13223  has_attribute(Typed self, FloatsKey a0) -> bool
13224  has_attribute(Typed self, IntsKey a0) -> bool
13225  has_attribute(Typed self, StringKey a0) -> bool
13226  has_attribute(Typed self, ParticleIndexKey a0) -> bool
13227  has_attribute(Typed self, ObjectKey a0) -> bool
13228  has_attribute(Typed self, SparseFloatKey a0) -> bool
13229  has_attribute(Typed self, SparseIntKey a0) -> bool
13230  has_attribute(Typed self, SparseStringKey a0) -> bool
13231  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13232  """
13233  return _IMP_core.Typed_has_attribute(self, *args)
13234 
13235  def get_derivative(self, a0):
13236  r"""get_derivative(Typed self, FloatKey a0) -> double"""
13237  return _IMP_core.Typed_get_derivative(self, a0)
13238 
13239  def get_name(self):
13240  r"""get_name(Typed self) -> std::string"""
13241  return _IMP_core.Typed_get_name(self)
13242 
13243  def clear_caches(self):
13244  r"""clear_caches(Typed self)"""
13245  return _IMP_core.Typed_clear_caches(self)
13246 
13247  def set_name(self, a0):
13248  r"""set_name(Typed self, std::string a0)"""
13249  return _IMP_core.Typed_set_name(self, a0)
13250 
13251  def set_check_level(self, a0):
13252  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13253  return _IMP_core.Typed_set_check_level(self, a0)
13254 
13255  def add_to_derivative(self, a0, a1, a2):
13256  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13257  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13258 
13259  def set_is_optimized(self, a0, a1):
13260  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13261  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13262 
13263  def get_is_optimized(self, a0):
13264  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13265  return _IMP_core.Typed_get_is_optimized(self, a0)
13266 
13267  def get_check_level(self):
13268  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13269  return _IMP_core.Typed_get_check_level(self)
13270 
13271  def __eq__(self, *args):
13272  r"""
13273  __eq__(Typed self, Typed o) -> bool
13274  __eq__(Typed self, Particle d) -> bool
13275  """
13276  return _IMP_core.Typed___eq__(self, *args)
13277 
13278  def __ne__(self, *args):
13279  r"""
13280  __ne__(Typed self, Typed o) -> bool
13281  __ne__(Typed self, Particle d) -> bool
13282  """
13283  return _IMP_core.Typed___ne__(self, *args)
13284 
13285  def __le__(self, *args):
13286  r"""
13287  __le__(Typed self, Typed o) -> bool
13288  __le__(Typed self, Particle d) -> bool
13289  """
13290  return _IMP_core.Typed___le__(self, *args)
13291 
13292  def __lt__(self, *args):
13293  r"""
13294  __lt__(Typed self, Typed o) -> bool
13295  __lt__(Typed self, Particle d) -> bool
13296  """
13297  return _IMP_core.Typed___lt__(self, *args)
13298 
13299  def __ge__(self, *args):
13300  r"""
13301  __ge__(Typed self, Typed o) -> bool
13302  __ge__(Typed self, Particle d) -> bool
13303  """
13304  return _IMP_core.Typed___ge__(self, *args)
13305 
13306  def __gt__(self, *args):
13307  r"""
13308  __gt__(Typed self, Typed o) -> bool
13309  __gt__(Typed self, Particle d) -> bool
13310  """
13311  return _IMP_core.Typed___gt__(self, *args)
13312 
13313  def __hash__(self):
13314  r"""__hash__(Typed self) -> std::size_t"""
13315  return _IMP_core.Typed___hash__(self)
13316 
13317  def __str__(self):
13318  r"""__str__(Typed self) -> std::string"""
13319  return _IMP_core.Typed___str__(self)
13320 
13321  def __repr__(self):
13322  r"""__repr__(Typed self) -> std::string"""
13323  return _IMP_core.Typed___repr__(self)
13324 
13325  def _get_as_binary(self):
13326  r"""_get_as_binary(Typed self) -> PyObject *"""
13327  return _IMP_core.Typed__get_as_binary(self)
13328 
13329  def _set_from_binary(self, p):
13330  r"""_set_from_binary(Typed self, PyObject * p)"""
13331  return _IMP_core.Typed__set_from_binary(self, p)
13332 
13333  def __getstate__(self):
13334  p = self._get_as_binary()
13335  if len(self.__dict__) > 1:
13336  d = self.__dict__.copy()
13337  del d['this']
13338  p = (d, p)
13339  return p
13340 
13341  def __setstate__(self, p):
13342  if not hasattr(self, 'this'):
13343  self.__init__()
13344  if isinstance(p, tuple):
13345  d, p = p
13346  self.__dict__.update(d)
13347  return self._set_from_binary(p)
13348 
13349  __swig_destroy__ = _IMP_core.delete_Typed
13350 
13351 # Register Typed in _IMP_core:
13352 _IMP_core.Typed_swigregister(Typed)
13353 
13354 def __lshift__(*args):
13355  r"""
13356  __lshift__(_ostream out, XYZ n) -> _ostream
13357  __lshift__(_ostream out, XYZR n) -> _ostream
13358  __lshift__(_ostream out, Direction n) -> _ostream
13359  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13360  __lshift__(_ostream out, Surface n) -> _ostream
13361  __lshift__(_ostream out, Centroid n) -> _ostream
13362  __lshift__(_ostream out, Cover n) -> _ostream
13363  __lshift__(_ostream out, Reference n) -> _ostream
13364  __lshift__(_ostream out, RigidMember n) -> _ostream
13365  __lshift__(_ostream out, RigidBody n) -> _ostream
13366  __lshift__(_ostream out, Gaussian n) -> _ostream
13367  __lshift__(_ostream out, Typed n) -> _ostream
13368  """
13369  return _IMP_core.__lshift__(*args)
13370 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13371  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13372 
13373  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13374 
13375  def __init__(self, rs, out):
13376  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13377  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13378 
13379  def get_version_info(self):
13380  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13381  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13382  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13383 
13384  def __str__(self):
13385  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13386  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13387 
13388  def __repr__(self):
13389  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13390  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13391 
13392  @staticmethod
13393  def get_from(o):
13394  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13395 
13396 
13397 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13398 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13399 
13400 def assign_blame(rs, ps, attribute):
13401  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13402  return _IMP_core.assign_blame(rs, ps, attribute)
13403 
13404 def create_blame_geometries(*args):
13405  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13406  return _IMP_core.create_blame_geometries(*args)
13407 class MultipleBinormalRestraint(IMP.Restraint):
13408  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13409 
13410  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13411 
13412  def __init__(self, m, q1, q2):
13413  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13414  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13415 
13416  def add_term(self, term):
13417  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13418  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13419 
13420  def do_get_inputs(self):
13421  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13422  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13423 
13424  def get_version_info(self):
13425  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13426  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13427  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13428 
13429  def __str__(self):
13430  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13431  return _IMP_core.MultipleBinormalRestraint___str__(self)
13432 
13433  def __repr__(self):
13434  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13435  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13436 
13437  @staticmethod
13438  def get_from(o):
13439  return _object_cast_to_MultipleBinormalRestraint(o)
13440 
13441 
13442 # Register MultipleBinormalRestraint in _IMP_core:
13443 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13444 class BinormalTerm(object):
13445  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13446 
13447  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13448 
13449  def __init__(self):
13450  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13451  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13452 
13453  def set_correlation(self, correlation):
13454  r"""set_correlation(BinormalTerm self, double correlation)"""
13455  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13456 
13457  def set_weight(self, weight):
13458  r"""set_weight(BinormalTerm self, double weight)"""
13459  return _IMP_core.BinormalTerm_set_weight(self, weight)
13460 
13461  def set_means(self, means):
13462  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13463  return _IMP_core.BinormalTerm_set_means(self, means)
13464 
13465  def set_standard_deviations(self, stdevs):
13466  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13467  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13468 
13469  def show(self, *args):
13470  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13471  return _IMP_core.BinormalTerm_show(self, *args)
13472 
13473  def __str__(self):
13474  r"""__str__(BinormalTerm self) -> std::string"""
13475  return _IMP_core.BinormalTerm___str__(self)
13476 
13477  def __repr__(self):
13478  r"""__repr__(BinormalTerm self) -> std::string"""
13479  return _IMP_core.BinormalTerm___repr__(self)
13480 
13481  def _get_as_binary(self):
13482  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13483  return _IMP_core.BinormalTerm__get_as_binary(self)
13484 
13485  def _set_from_binary(self, p):
13486  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13487  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13488 
13489  def __getstate__(self):
13490  p = self._get_as_binary()
13491  if len(self.__dict__) > 1:
13492  d = self.__dict__.copy()
13493  del d['this']
13494  p = (d, p)
13495  return p
13496 
13497  def __setstate__(self, p):
13498  if not hasattr(self, 'this'):
13499  self.__init__()
13500  if isinstance(p, tuple):
13501  d, p = p
13502  self.__dict__.update(d)
13503  return self._set_from_binary(p)
13504 
13505  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13506 
13507 # Register BinormalTerm in _IMP_core:
13508 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13509 class Provenance(IMP.Decorator):
13510  r"""Proxy of C++ IMP::core::Provenance class."""
13511 
13512  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13513 
13514  def get_previous(self):
13515  r"""get_previous(Provenance self) -> Provenance"""
13516  return _IMP_core.Provenance_get_previous(self)
13517 
13518  def set_previous(self, p):
13519  r"""set_previous(Provenance self, Provenance p)"""
13520  return _IMP_core.Provenance_set_previous(self, p)
13521 
13522  def __init__(self, *args):
13523  r"""
13524  __init__(Provenance self) -> Provenance
13525  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13526  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13527  """
13528  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13529 
13530  @staticmethod
13531  def get_is_setup(*args):
13532  r"""
13533  get_is_setup(Model m, ParticleIndex pi) -> bool
13534  get_is_setup(_ParticleAdaptor p) -> bool
13535  """
13536  return _IMP_core.Provenance_get_is_setup(*args)
13537 
13538  def show(self, *args):
13539  r"""show(Provenance self, _ostream out=std::cout)"""
13540  return _IMP_core.Provenance_show(self, *args)
13541 
13542  @staticmethod
13543  def setup_particle(*args):
13544  r"""
13545  setup_particle(Model m, ParticleIndex pi) -> Provenance
13546  setup_particle(_ParticleAdaptor pa) -> Provenance
13547  """
13548  return _IMP_core.Provenance_setup_particle(*args)
13549 
13550  def add_attribute(self, *args):
13551  r"""
13552  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13553  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13554  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13555  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13556  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13557  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13558  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13559  add_attribute(Provenance self, ObjectKey a0, Object a1)
13560  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13561  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13562  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13563  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13564  """
13565  return _IMP_core.Provenance_add_attribute(self, *args)
13566 
13567  def get_value(self, *args):
13568  r"""
13569  get_value(Provenance self, FloatKey a0) -> IMP::Float
13570  get_value(Provenance self, IntKey a0) -> IMP::Int
13571  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13572  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13573  get_value(Provenance self, StringKey a0) -> IMP::String
13574  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13575  get_value(Provenance self, ObjectKey a0) -> Object
13576  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13577  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13578  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13579  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13580  """
13581  return _IMP_core.Provenance_get_value(self, *args)
13582 
13583  def set_value(self, *args):
13584  r"""
13585  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13586  set_value(Provenance self, IntKey a0, IMP::Int a1)
13587  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13588  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13589  set_value(Provenance self, StringKey a0, IMP::String a1)
13590  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13591  set_value(Provenance self, ObjectKey a0, Object a1)
13592  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13593  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13594  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13595  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13596  """
13597  return _IMP_core.Provenance_set_value(self, *args)
13598 
13599  def remove_attribute(self, *args):
13600  r"""
13601  remove_attribute(Provenance self, FloatKey a0)
13602  remove_attribute(Provenance self, IntKey a0)
13603  remove_attribute(Provenance self, FloatsKey a0)
13604  remove_attribute(Provenance self, IntsKey a0)
13605  remove_attribute(Provenance self, StringKey a0)
13606  remove_attribute(Provenance self, ParticleIndexKey a0)
13607  remove_attribute(Provenance self, ObjectKey a0)
13608  remove_attribute(Provenance self, SparseFloatKey a0)
13609  remove_attribute(Provenance self, SparseIntKey a0)
13610  remove_attribute(Provenance self, SparseStringKey a0)
13611  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13612  """
13613  return _IMP_core.Provenance_remove_attribute(self, *args)
13614 
13615  def has_attribute(self, *args):
13616  r"""
13617  has_attribute(Provenance self, FloatKey a0) -> bool
13618  has_attribute(Provenance self, IntKey a0) -> bool
13619  has_attribute(Provenance self, FloatsKey a0) -> bool
13620  has_attribute(Provenance self, IntsKey a0) -> bool
13621  has_attribute(Provenance self, StringKey a0) -> bool
13622  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13623  has_attribute(Provenance self, ObjectKey a0) -> bool
13624  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13625  has_attribute(Provenance self, SparseIntKey a0) -> bool
13626  has_attribute(Provenance self, SparseStringKey a0) -> bool
13627  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13628  """
13629  return _IMP_core.Provenance_has_attribute(self, *args)
13630 
13631  def get_derivative(self, a0):
13632  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13633  return _IMP_core.Provenance_get_derivative(self, a0)
13634 
13635  def get_name(self):
13636  r"""get_name(Provenance self) -> std::string"""
13637  return _IMP_core.Provenance_get_name(self)
13638 
13639  def clear_caches(self):
13640  r"""clear_caches(Provenance self)"""
13641  return _IMP_core.Provenance_clear_caches(self)
13642 
13643  def set_name(self, a0):
13644  r"""set_name(Provenance self, std::string a0)"""
13645  return _IMP_core.Provenance_set_name(self, a0)
13646 
13647  def set_check_level(self, a0):
13648  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13649  return _IMP_core.Provenance_set_check_level(self, a0)
13650 
13651  def add_to_derivative(self, a0, a1, a2):
13652  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13653  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13654 
13655  def set_is_optimized(self, a0, a1):
13656  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13657  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13658 
13659  def get_is_optimized(self, a0):
13660  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13661  return _IMP_core.Provenance_get_is_optimized(self, a0)
13662 
13663  def get_check_level(self):
13664  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13665  return _IMP_core.Provenance_get_check_level(self)
13666 
13667  def __eq__(self, *args):
13668  r"""
13669  __eq__(Provenance self, Provenance o) -> bool
13670  __eq__(Provenance self, Particle d) -> bool
13671  """
13672  return _IMP_core.Provenance___eq__(self, *args)
13673 
13674  def __ne__(self, *args):
13675  r"""
13676  __ne__(Provenance self, Provenance o) -> bool
13677  __ne__(Provenance self, Particle d) -> bool
13678  """
13679  return _IMP_core.Provenance___ne__(self, *args)
13680 
13681  def __le__(self, *args):
13682  r"""
13683  __le__(Provenance self, Provenance o) -> bool
13684  __le__(Provenance self, Particle d) -> bool
13685  """
13686  return _IMP_core.Provenance___le__(self, *args)
13687 
13688  def __lt__(self, *args):
13689  r"""
13690  __lt__(Provenance self, Provenance o) -> bool
13691  __lt__(Provenance self, Particle d) -> bool
13692  """
13693  return _IMP_core.Provenance___lt__(self, *args)
13694 
13695  def __ge__(self, *args):
13696  r"""
13697  __ge__(Provenance self, Provenance o) -> bool
13698  __ge__(Provenance self, Particle d) -> bool
13699  """
13700  return _IMP_core.Provenance___ge__(self, *args)
13701 
13702  def __gt__(self, *args):
13703  r"""
13704  __gt__(Provenance self, Provenance o) -> bool
13705  __gt__(Provenance self, Particle d) -> bool
13706  """
13707  return _IMP_core.Provenance___gt__(self, *args)
13708 
13709  def __hash__(self):
13710  r"""__hash__(Provenance self) -> std::size_t"""
13711  return _IMP_core.Provenance___hash__(self)
13712 
13713  def __str__(self):
13714  r"""__str__(Provenance self) -> std::string"""
13715  return _IMP_core.Provenance___str__(self)
13716 
13717  def __repr__(self):
13718  r"""__repr__(Provenance self) -> std::string"""
13719  return _IMP_core.Provenance___repr__(self)
13720 
13721  def _get_as_binary(self):
13722  r"""_get_as_binary(Provenance self) -> PyObject *"""
13723  return _IMP_core.Provenance__get_as_binary(self)
13724 
13725  def _set_from_binary(self, p):
13726  r"""_set_from_binary(Provenance self, PyObject * p)"""
13727  return _IMP_core.Provenance__set_from_binary(self, p)
13728 
13729  def __getstate__(self):
13730  p = self._get_as_binary()
13731  if len(self.__dict__) > 1:
13732  d = self.__dict__.copy()
13733  del d['this']
13734  p = (d, p)
13735  return p
13736 
13737  def __setstate__(self, p):
13738  if not hasattr(self, 'this'):
13739  self.__init__()
13740  if isinstance(p, tuple):
13741  d, p = p
13742  self.__dict__.update(d)
13743  return self._set_from_binary(p)
13744 
13745  __swig_destroy__ = _IMP_core.delete_Provenance
13746 
13747 # Register Provenance in _IMP_core:
13748 _IMP_core.Provenance_swigregister(Provenance)
13749 class StructureProvenance(Provenance):
13750  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13751 
13752  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13753 
13754  def set_filename(self, filename):
13755  r"""set_filename(StructureProvenance self, std::string filename)"""
13756  return _IMP_core.StructureProvenance_set_filename(self, filename)
13757 
13758  def get_filename(self):
13759  r"""get_filename(StructureProvenance self) -> std::string"""
13760  return _IMP_core.StructureProvenance_get_filename(self)
13761 
13762  def set_chain_id(self, chain_id):
13763  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13764  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13765 
13766  def get_chain_id(self):
13767  r"""get_chain_id(StructureProvenance self) -> std::string"""
13768  return _IMP_core.StructureProvenance_get_chain_id(self)
13769 
13770  def set_residue_offset(self, residue_offset):
13771  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13772  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13773 
13774  def get_residue_offset(self):
13775  r"""get_residue_offset(StructureProvenance self) -> int"""
13776  return _IMP_core.StructureProvenance_get_residue_offset(self)
13777 
13778  def __init__(self, *args):
13779  r"""
13780  __init__(StructureProvenance self) -> StructureProvenance
13781  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13782  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13783  """
13784  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13785 
13786  @staticmethod
13787  def get_is_setup(*args):
13788  r"""
13789  get_is_setup(Model m, ParticleIndex pi) -> bool
13790  get_is_setup(_ParticleAdaptor p) -> bool
13791  """
13792  return _IMP_core.StructureProvenance_get_is_setup(*args)
13793 
13794  def show(self, *args):
13795  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13796  return _IMP_core.StructureProvenance_show(self, *args)
13797 
13798  @staticmethod
13799  def setup_particle(*args):
13800  r"""
13801  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13802  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13803  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13804  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13805  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13806  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13807  """
13808  return _IMP_core.StructureProvenance_setup_particle(*args)
13809 
13810  def add_attribute(self, *args):
13811  r"""
13812  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13813  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13814  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13815  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13816  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13817  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13818  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13819  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13820  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13821  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13822  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13823  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13824  """
13825  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13826 
13827  def get_value(self, *args):
13828  r"""
13829  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13830  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13831  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13832  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13833  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13834  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13835  get_value(StructureProvenance self, ObjectKey a0) -> Object
13836  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13837  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13838  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13839  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13840  """
13841  return _IMP_core.StructureProvenance_get_value(self, *args)
13842 
13843  def set_value(self, *args):
13844  r"""
13845  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13846  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13847  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13848  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13849  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13850  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13851  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13852  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13853  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13854  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13855  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13856  """
13857  return _IMP_core.StructureProvenance_set_value(self, *args)
13858 
13859  def remove_attribute(self, *args):
13860  r"""
13861  remove_attribute(StructureProvenance self, FloatKey a0)
13862  remove_attribute(StructureProvenance self, IntKey a0)
13863  remove_attribute(StructureProvenance self, FloatsKey a0)
13864  remove_attribute(StructureProvenance self, IntsKey a0)
13865  remove_attribute(StructureProvenance self, StringKey a0)
13866  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13867  remove_attribute(StructureProvenance self, ObjectKey a0)
13868  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13869  remove_attribute(StructureProvenance self, SparseIntKey a0)
13870  remove_attribute(StructureProvenance self, SparseStringKey a0)
13871  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13872  """
13873  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13874 
13875  def has_attribute(self, *args):
13876  r"""
13877  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13878  has_attribute(StructureProvenance self, IntKey a0) -> bool
13879  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13880  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13881  has_attribute(StructureProvenance self, StringKey a0) -> bool
13882  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13883  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13884  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13885  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13886  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13887  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13888  """
13889  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13890 
13891  def get_derivative(self, a0):
13892  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13893  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13894 
13895  def get_name(self):
13896  r"""get_name(StructureProvenance self) -> std::string"""
13897  return _IMP_core.StructureProvenance_get_name(self)
13898 
13899  def clear_caches(self):
13900  r"""clear_caches(StructureProvenance self)"""
13901  return _IMP_core.StructureProvenance_clear_caches(self)
13902 
13903  def set_name(self, a0):
13904  r"""set_name(StructureProvenance self, std::string a0)"""
13905  return _IMP_core.StructureProvenance_set_name(self, a0)
13906 
13907  def set_check_level(self, a0):
13908  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13909  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13910 
13911  def add_to_derivative(self, a0, a1, a2):
13912  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13913  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13914 
13915  def set_is_optimized(self, a0, a1):
13916  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13917  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13918 
13919  def get_is_optimized(self, a0):
13920  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13921  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13922 
13923  def get_check_level(self):
13924  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13925  return _IMP_core.StructureProvenance_get_check_level(self)
13926 
13927  def __eq__(self, *args):
13928  r"""
13929  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13930  __eq__(StructureProvenance self, Particle d) -> bool
13931  """
13932  return _IMP_core.StructureProvenance___eq__(self, *args)
13933 
13934  def __ne__(self, *args):
13935  r"""
13936  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13937  __ne__(StructureProvenance self, Particle d) -> bool
13938  """
13939  return _IMP_core.StructureProvenance___ne__(self, *args)
13940 
13941  def __le__(self, *args):
13942  r"""
13943  __le__(StructureProvenance self, StructureProvenance o) -> bool
13944  __le__(StructureProvenance self, Particle d) -> bool
13945  """
13946  return _IMP_core.StructureProvenance___le__(self, *args)
13947 
13948  def __lt__(self, *args):
13949  r"""
13950  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13951  __lt__(StructureProvenance self, Particle d) -> bool
13952  """
13953  return _IMP_core.StructureProvenance___lt__(self, *args)
13954 
13955  def __ge__(self, *args):
13956  r"""
13957  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13958  __ge__(StructureProvenance self, Particle d) -> bool
13959  """
13960  return _IMP_core.StructureProvenance___ge__(self, *args)
13961 
13962  def __gt__(self, *args):
13963  r"""
13964  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13965  __gt__(StructureProvenance self, Particle d) -> bool
13966  """
13967  return _IMP_core.StructureProvenance___gt__(self, *args)
13968 
13969  def __hash__(self):
13970  r"""__hash__(StructureProvenance self) -> std::size_t"""
13971  return _IMP_core.StructureProvenance___hash__(self)
13972 
13973  def __str__(self):
13974  r"""__str__(StructureProvenance self) -> std::string"""
13975  return _IMP_core.StructureProvenance___str__(self)
13976 
13977  def __repr__(self):
13978  r"""__repr__(StructureProvenance self) -> std::string"""
13979  return _IMP_core.StructureProvenance___repr__(self)
13980 
13981  def _get_as_binary(self):
13982  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13983  return _IMP_core.StructureProvenance__get_as_binary(self)
13984 
13985  def _set_from_binary(self, p):
13986  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13987  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13988 
13989  def __getstate__(self):
13990  p = self._get_as_binary()
13991  if len(self.__dict__) > 1:
13992  d = self.__dict__.copy()
13993  del d['this']
13994  p = (d, p)
13995  return p
13996 
13997  def __setstate__(self, p):
13998  if not hasattr(self, 'this'):
13999  self.__init__()
14000  if isinstance(p, tuple):
14001  d, p = p
14002  self.__dict__.update(d)
14003  return self._set_from_binary(p)
14004 
14005  __swig_destroy__ = _IMP_core.delete_StructureProvenance
14006 
14007 # Register StructureProvenance in _IMP_core:
14008 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
14009 class SampleProvenance(Provenance):
14010  r"""Proxy of C++ IMP::core::SampleProvenance class."""
14011 
14012  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14013 
14014  def set_method(self, method):
14015  r"""set_method(SampleProvenance self, std::string method)"""
14016  return _IMP_core.SampleProvenance_set_method(self, method)
14017 
14018  def get_method(self):
14019  r"""get_method(SampleProvenance self) -> std::string"""
14020  return _IMP_core.SampleProvenance_get_method(self)
14021 
14022  def set_number_of_frames(self, frames):
14023  r"""set_number_of_frames(SampleProvenance self, int frames)"""
14024  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
14025 
14026  def get_number_of_frames(self):
14027  r"""get_number_of_frames(SampleProvenance self) -> int"""
14028  return _IMP_core.SampleProvenance_get_number_of_frames(self)
14029 
14030  def set_number_of_iterations(self, iterations):
14031  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
14032  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
14033 
14034  def get_number_of_iterations(self):
14035  r"""get_number_of_iterations(SampleProvenance self) -> int"""
14036  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
14037 
14038  def set_number_of_replicas(self, replicas):
14039  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
14040  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
14041 
14042  def get_number_of_replicas(self):
14043  r"""get_number_of_replicas(SampleProvenance self) -> int"""
14044  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
14045 
14046  def __init__(self, *args):
14047  r"""
14048  __init__(SampleProvenance self) -> SampleProvenance
14049  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
14050  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
14051  """
14052  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
14053 
14054  @staticmethod
14055  def get_is_setup(*args):
14056  r"""
14057  get_is_setup(Model m, ParticleIndex pi) -> bool
14058  get_is_setup(_ParticleAdaptor p) -> bool
14059  """
14060  return _IMP_core.SampleProvenance_get_is_setup(*args)
14061 
14062  def show(self, *args):
14063  r"""show(SampleProvenance self, _ostream out=std::cout)"""
14064  return _IMP_core.SampleProvenance_show(self, *args)
14065 
14066  @staticmethod
14067  def setup_particle(*args):
14068  r"""
14069  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
14070  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
14071  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
14072  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
14073  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
14074  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
14075  """
14076  return _IMP_core.SampleProvenance_setup_particle(*args)
14077 
14078  def add_attribute(self, *args):
14079  r"""
14080  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
14081  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
14082  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
14083  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
14084  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
14085  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
14086  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
14087  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
14088  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
14089  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
14090  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
14091  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14092  """
14093  return _IMP_core.SampleProvenance_add_attribute(self, *args)
14094 
14095  def get_value(self, *args):
14096  r"""
14097  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
14098  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
14099  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
14100  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
14101  get_value(SampleProvenance self, StringKey a0) -> IMP::String
14102  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
14103  get_value(SampleProvenance self, ObjectKey a0) -> Object
14104  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
14105  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
14106  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
14107  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14108  """
14109  return _IMP_core.SampleProvenance_get_value(self, *args)
14110 
14111  def set_value(self, *args):
14112  r"""
14113  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
14114  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
14115  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
14116  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
14117  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
14118  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
14119  set_value(SampleProvenance self, ObjectKey a0, Object a1)
14120  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
14121  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
14122  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
14123  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14124  """
14125  return _IMP_core.SampleProvenance_set_value(self, *args)
14126 
14127  def remove_attribute(self, *args):
14128  r"""
14129  remove_attribute(SampleProvenance self, FloatKey a0)
14130  remove_attribute(SampleProvenance self, IntKey a0)
14131  remove_attribute(SampleProvenance self, FloatsKey a0)
14132  remove_attribute(SampleProvenance self, IntsKey a0)
14133  remove_attribute(SampleProvenance self, StringKey a0)
14134  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
14135  remove_attribute(SampleProvenance self, ObjectKey a0)
14136  remove_attribute(SampleProvenance self, SparseFloatKey a0)
14137  remove_attribute(SampleProvenance self, SparseIntKey a0)
14138  remove_attribute(SampleProvenance self, SparseStringKey a0)
14139  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
14140  """
14141  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
14142 
14143  def has_attribute(self, *args):
14144  r"""
14145  has_attribute(SampleProvenance self, FloatKey a0) -> bool
14146  has_attribute(SampleProvenance self, IntKey a0) -> bool
14147  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
14148  has_attribute(SampleProvenance self, IntsKey a0) -> bool
14149  has_attribute(SampleProvenance self, StringKey a0) -> bool
14150  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
14151  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
14152  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
14153  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
14154  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
14155  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
14156  """
14157  return _IMP_core.SampleProvenance_has_attribute(self, *args)
14158 
14159  def get_derivative(self, a0):
14160  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
14161  return _IMP_core.SampleProvenance_get_derivative(self, a0)
14162 
14163  def get_name(self):
14164  r"""get_name(SampleProvenance self) -> std::string"""
14165  return _IMP_core.SampleProvenance_get_name(self)
14166 
14167  def clear_caches(self):
14168  r"""clear_caches(SampleProvenance self)"""
14169  return _IMP_core.SampleProvenance_clear_caches(self)
14170 
14171  def set_name(self, a0):
14172  r"""set_name(SampleProvenance self, std::string a0)"""
14173  return _IMP_core.SampleProvenance_set_name(self, a0)
14174 
14175  def set_check_level(self, a0):
14176  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
14177  return _IMP_core.SampleProvenance_set_check_level(self, a0)
14178 
14179  def add_to_derivative(self, a0, a1, a2):
14180  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14181  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
14182 
14183  def set_is_optimized(self, a0, a1):
14184  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14185  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14186 
14187  def get_is_optimized(self, a0):
14188  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14189  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14190 
14191  def get_check_level(self):
14192  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14193  return _IMP_core.SampleProvenance_get_check_level(self)
14194 
14195  def __eq__(self, *args):
14196  r"""
14197  __eq__(SampleProvenance self, SampleProvenance o) -> bool
14198  __eq__(SampleProvenance self, Particle d) -> bool
14199  """
14200  return _IMP_core.SampleProvenance___eq__(self, *args)
14201 
14202  def __ne__(self, *args):
14203  r"""
14204  __ne__(SampleProvenance self, SampleProvenance o) -> bool
14205  __ne__(SampleProvenance self, Particle d) -> bool
14206  """
14207  return _IMP_core.SampleProvenance___ne__(self, *args)
14208 
14209  def __le__(self, *args):
14210  r"""
14211  __le__(SampleProvenance self, SampleProvenance o) -> bool
14212  __le__(SampleProvenance self, Particle d) -> bool
14213  """
14214  return _IMP_core.SampleProvenance___le__(self, *args)
14215 
14216  def __lt__(self, *args):
14217  r"""
14218  __lt__(SampleProvenance self, SampleProvenance o) -> bool
14219  __lt__(SampleProvenance self, Particle d) -> bool
14220  """
14221  return _IMP_core.SampleProvenance___lt__(self, *args)
14222 
14223  def __ge__(self, *args):
14224  r"""
14225  __ge__(SampleProvenance self, SampleProvenance o) -> bool
14226  __ge__(SampleProvenance self, Particle d) -> bool
14227  """
14228  return _IMP_core.SampleProvenance___ge__(self, *args)
14229 
14230  def __gt__(self, *args):
14231  r"""
14232  __gt__(SampleProvenance self, SampleProvenance o) -> bool
14233  __gt__(SampleProvenance self, Particle d) -> bool
14234  """
14235  return _IMP_core.SampleProvenance___gt__(self, *args)
14236 
14237  def __hash__(self):
14238  r"""__hash__(SampleProvenance self) -> std::size_t"""
14239  return _IMP_core.SampleProvenance___hash__(self)
14240 
14241  def __str__(self):
14242  r"""__str__(SampleProvenance self) -> std::string"""
14243  return _IMP_core.SampleProvenance___str__(self)
14244 
14245  def __repr__(self):
14246  r"""__repr__(SampleProvenance self) -> std::string"""
14247  return _IMP_core.SampleProvenance___repr__(self)
14248 
14249  def _get_as_binary(self):
14250  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14251  return _IMP_core.SampleProvenance__get_as_binary(self)
14252 
14253  def _set_from_binary(self, p):
14254  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14255  return _IMP_core.SampleProvenance__set_from_binary(self, p)
14256 
14257  def __getstate__(self):
14258  p = self._get_as_binary()
14259  if len(self.__dict__) > 1:
14260  d = self.__dict__.copy()
14261  del d['this']
14262  p = (d, p)
14263  return p
14264 
14265  def __setstate__(self, p):
14266  if not hasattr(self, 'this'):
14267  self.__init__()
14268  if isinstance(p, tuple):
14269  d, p = p
14270  self.__dict__.update(d)
14271  return self._set_from_binary(p)
14272 
14273  __swig_destroy__ = _IMP_core.delete_SampleProvenance
14274 
14275 # Register SampleProvenance in _IMP_core:
14276 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14277 class CombineProvenance(Provenance):
14278  r"""Proxy of C++ IMP::core::CombineProvenance class."""
14279 
14280  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14281 
14282  def set_number_of_frames(self, frames):
14283  r"""set_number_of_frames(CombineProvenance self, int frames)"""
14284  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14285 
14286  def get_number_of_frames(self):
14287  r"""get_number_of_frames(CombineProvenance self) -> int"""
14288  return _IMP_core.CombineProvenance_get_number_of_frames(self)
14289 
14290  def set_number_of_runs(self, runs):
14291  r"""set_number_of_runs(CombineProvenance self, int runs)"""
14292  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14293 
14294  def get_number_of_runs(self):
14295  r"""get_number_of_runs(CombineProvenance self) -> int"""
14296  return _IMP_core.CombineProvenance_get_number_of_runs(self)
14297 
14298  def __init__(self, *args):
14299  r"""
14300  __init__(CombineProvenance self) -> CombineProvenance
14301  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14302  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14303  """
14304  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14305 
14306  @staticmethod
14307  def get_is_setup(*args):
14308  r"""
14309  get_is_setup(Model m, ParticleIndex pi) -> bool
14310  get_is_setup(_ParticleAdaptor p) -> bool
14311  """
14312  return _IMP_core.CombineProvenance_get_is_setup(*args)
14313 
14314  def show(self, *args):
14315  r"""show(CombineProvenance self, _ostream out=std::cout)"""
14316  return _IMP_core.CombineProvenance_show(self, *args)
14317 
14318  @staticmethod
14319  def setup_particle(*args):
14320  r"""
14321  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14322  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14323  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14324  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14325  """
14326  return _IMP_core.CombineProvenance_setup_particle(*args)
14327 
14328  def add_attribute(self, *args):
14329  r"""
14330  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14331  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14332  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14333  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14334  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14335  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14336  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14337  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14338  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14339  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14340  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14341  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14342  """
14343  return _IMP_core.CombineProvenance_add_attribute(self, *args)
14344 
14345  def get_value(self, *args):
14346  r"""
14347  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14348  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14349  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14350  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14351  get_value(CombineProvenance self, StringKey a0) -> IMP::String
14352  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14353  get_value(CombineProvenance self, ObjectKey a0) -> Object
14354  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14355  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14356  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14357  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14358  """
14359  return _IMP_core.CombineProvenance_get_value(self, *args)
14360 
14361  def set_value(self, *args):
14362  r"""
14363  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14364  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14365  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14366  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14367  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14368  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14369  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14370  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14371  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14372  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14373  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14374  """
14375  return _IMP_core.CombineProvenance_set_value(self, *args)
14376 
14377  def remove_attribute(self, *args):
14378  r"""
14379  remove_attribute(CombineProvenance self, FloatKey a0)
14380  remove_attribute(CombineProvenance self, IntKey a0)
14381  remove_attribute(CombineProvenance self, FloatsKey a0)
14382  remove_attribute(CombineProvenance self, IntsKey a0)
14383  remove_attribute(CombineProvenance self, StringKey a0)
14384  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14385  remove_attribute(CombineProvenance self, ObjectKey a0)
14386  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14387  remove_attribute(CombineProvenance self, SparseIntKey a0)
14388  remove_attribute(CombineProvenance self, SparseStringKey a0)
14389  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14390  """
14391  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14392 
14393  def has_attribute(self, *args):
14394  r"""
14395  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14396  has_attribute(CombineProvenance self, IntKey a0) -> bool
14397  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14398  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14399  has_attribute(CombineProvenance self, StringKey a0) -> bool
14400  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14401  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14402  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14403  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14404  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14405  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14406  """
14407  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14408 
14409  def get_derivative(self, a0):
14410  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14411  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14412 
14413  def get_name(self):
14414  r"""get_name(CombineProvenance self) -> std::string"""
14415  return _IMP_core.CombineProvenance_get_name(self)
14416 
14417  def clear_caches(self):
14418  r"""clear_caches(CombineProvenance self)"""
14419  return _IMP_core.CombineProvenance_clear_caches(self)
14420 
14421  def set_name(self, a0):
14422  r"""set_name(CombineProvenance self, std::string a0)"""
14423  return _IMP_core.CombineProvenance_set_name(self, a0)
14424 
14425  def set_check_level(self, a0):
14426  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14427  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14428 
14429  def add_to_derivative(self, a0, a1, a2):
14430  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14431  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14432 
14433  def set_is_optimized(self, a0, a1):
14434  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14435  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14436 
14437  def get_is_optimized(self, a0):
14438  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14439  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14440 
14441  def get_check_level(self):
14442  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14443  return _IMP_core.CombineProvenance_get_check_level(self)
14444 
14445  def __eq__(self, *args):
14446  r"""
14447  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14448  __eq__(CombineProvenance self, Particle d) -> bool
14449  """
14450  return _IMP_core.CombineProvenance___eq__(self, *args)
14451 
14452  def __ne__(self, *args):
14453  r"""
14454  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14455  __ne__(CombineProvenance self, Particle d) -> bool
14456  """
14457  return _IMP_core.CombineProvenance___ne__(self, *args)
14458 
14459  def __le__(self, *args):
14460  r"""
14461  __le__(CombineProvenance self, CombineProvenance o) -> bool
14462  __le__(CombineProvenance self, Particle d) -> bool
14463  """
14464  return _IMP_core.CombineProvenance___le__(self, *args)
14465 
14466  def __lt__(self, *args):
14467  r"""
14468  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14469  __lt__(CombineProvenance self, Particle d) -> bool
14470  """
14471  return _IMP_core.CombineProvenance___lt__(self, *args)
14472 
14473  def __ge__(self, *args):
14474  r"""
14475  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14476  __ge__(CombineProvenance self, Particle d) -> bool
14477  """
14478  return _IMP_core.CombineProvenance___ge__(self, *args)
14479 
14480  def __gt__(self, *args):
14481  r"""
14482  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14483  __gt__(CombineProvenance self, Particle d) -> bool
14484  """
14485  return _IMP_core.CombineProvenance___gt__(self, *args)
14486 
14487  def __hash__(self):
14488  r"""__hash__(CombineProvenance self) -> std::size_t"""
14489  return _IMP_core.CombineProvenance___hash__(self)
14490 
14491  def __str__(self):
14492  r"""__str__(CombineProvenance self) -> std::string"""
14493  return _IMP_core.CombineProvenance___str__(self)
14494 
14495  def __repr__(self):
14496  r"""__repr__(CombineProvenance self) -> std::string"""
14497  return _IMP_core.CombineProvenance___repr__(self)
14498 
14499  def _get_as_binary(self):
14500  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14501  return _IMP_core.CombineProvenance__get_as_binary(self)
14502 
14503  def _set_from_binary(self, p):
14504  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14505  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14506 
14507  def __getstate__(self):
14508  p = self._get_as_binary()
14509  if len(self.__dict__) > 1:
14510  d = self.__dict__.copy()
14511  del d['this']
14512  p = (d, p)
14513  return p
14514 
14515  def __setstate__(self, p):
14516  if not hasattr(self, 'this'):
14517  self.__init__()
14518  if isinstance(p, tuple):
14519  d, p = p
14520  self.__dict__.update(d)
14521  return self._set_from_binary(p)
14522 
14523  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14524 
14525 # Register CombineProvenance in _IMP_core:
14526 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14527 class FilterProvenance(Provenance):
14528  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14529 
14530  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14531 
14532  def set_method(self, method):
14533  r"""set_method(FilterProvenance self, std::string method)"""
14534  return _IMP_core.FilterProvenance_set_method(self, method)
14535 
14536  def get_method(self):
14537  r"""get_method(FilterProvenance self) -> std::string"""
14538  return _IMP_core.FilterProvenance_get_method(self)
14539 
14540  def set_number_of_frames(self, frames):
14541  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14542  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14543 
14544  def get_number_of_frames(self):
14545  r"""get_number_of_frames(FilterProvenance self) -> int"""
14546  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14547 
14548  def set_threshold(self, threshold):
14549  r"""set_threshold(FilterProvenance self, double threshold)"""
14550  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14551 
14552  def get_threshold(self):
14553  r"""get_threshold(FilterProvenance self) -> double"""
14554  return _IMP_core.FilterProvenance_get_threshold(self)
14555 
14556  def __init__(self, *args):
14557  r"""
14558  __init__(FilterProvenance self) -> FilterProvenance
14559  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14560  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14561  """
14562  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14563 
14564  @staticmethod
14565  def get_is_setup(*args):
14566  r"""
14567  get_is_setup(Model m, ParticleIndex pi) -> bool
14568  get_is_setup(_ParticleAdaptor p) -> bool
14569  """
14570  return _IMP_core.FilterProvenance_get_is_setup(*args)
14571 
14572  def show(self, *args):
14573  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14574  return _IMP_core.FilterProvenance_show(self, *args)
14575 
14576  @staticmethod
14577  def setup_particle(*args):
14578  r"""
14579  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14580  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14581  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14582  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14583  """
14584  return _IMP_core.FilterProvenance_setup_particle(*args)
14585 
14586  def add_attribute(self, *args):
14587  r"""
14588  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14589  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14590  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14591  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14592  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14593  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14594  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14595  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14596  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14597  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14598  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14599  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14600  """
14601  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14602 
14603  def get_value(self, *args):
14604  r"""
14605  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14606  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14607  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14608  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14609  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14610  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14611  get_value(FilterProvenance self, ObjectKey a0) -> Object
14612  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14613  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14614  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14615  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14616  """
14617  return _IMP_core.FilterProvenance_get_value(self, *args)
14618 
14619  def set_value(self, *args):
14620  r"""
14621  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14622  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14623  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14624  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14625  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14626  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14627  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14628  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14629  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14630  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14631  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14632  """
14633  return _IMP_core.FilterProvenance_set_value(self, *args)
14634 
14635  def remove_attribute(self, *args):
14636  r"""
14637  remove_attribute(FilterProvenance self, FloatKey a0)
14638  remove_attribute(FilterProvenance self, IntKey a0)
14639  remove_attribute(FilterProvenance self, FloatsKey a0)
14640  remove_attribute(FilterProvenance self, IntsKey a0)
14641  remove_attribute(FilterProvenance self, StringKey a0)
14642  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14643  remove_attribute(FilterProvenance self, ObjectKey a0)
14644  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14645  remove_attribute(FilterProvenance self, SparseIntKey a0)
14646  remove_attribute(FilterProvenance self, SparseStringKey a0)
14647  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14648  """
14649  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14650 
14651  def has_attribute(self, *args):
14652  r"""
14653  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14654  has_attribute(FilterProvenance self, IntKey a0) -> bool
14655  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14656  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14657  has_attribute(FilterProvenance self, StringKey a0) -> bool
14658  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14659  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14660  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14661  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14662  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14663  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14664  """
14665  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14666 
14667  def get_derivative(self, a0):
14668  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14669  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14670 
14671  def get_name(self):
14672  r"""get_name(FilterProvenance self) -> std::string"""
14673  return _IMP_core.FilterProvenance_get_name(self)
14674 
14675  def clear_caches(self):
14676  r"""clear_caches(FilterProvenance self)"""
14677  return _IMP_core.FilterProvenance_clear_caches(self)
14678 
14679  def set_name(self, a0):
14680  r"""set_name(FilterProvenance self, std::string a0)"""
14681  return _IMP_core.FilterProvenance_set_name(self, a0)
14682 
14683  def set_check_level(self, a0):
14684  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14685  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14686 
14687  def add_to_derivative(self, a0, a1, a2):
14688  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14689  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14690 
14691  def set_is_optimized(self, a0, a1):
14692  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14693  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14694 
14695  def get_is_optimized(self, a0):
14696  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14697  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14698 
14699  def get_check_level(self):
14700  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14701  return _IMP_core.FilterProvenance_get_check_level(self)
14702 
14703  def __eq__(self, *args):
14704  r"""
14705  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14706  __eq__(FilterProvenance self, Particle d) -> bool
14707  """
14708  return _IMP_core.FilterProvenance___eq__(self, *args)
14709 
14710  def __ne__(self, *args):
14711  r"""
14712  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14713  __ne__(FilterProvenance self, Particle d) -> bool
14714  """
14715  return _IMP_core.FilterProvenance___ne__(self, *args)
14716 
14717  def __le__(self, *args):
14718  r"""
14719  __le__(FilterProvenance self, FilterProvenance o) -> bool
14720  __le__(FilterProvenance self, Particle d) -> bool
14721  """
14722  return _IMP_core.FilterProvenance___le__(self, *args)
14723 
14724  def __lt__(self, *args):
14725  r"""
14726  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14727  __lt__(FilterProvenance self, Particle d) -> bool
14728  """
14729  return _IMP_core.FilterProvenance___lt__(self, *args)
14730 
14731  def __ge__(self, *args):
14732  r"""
14733  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14734  __ge__(FilterProvenance self, Particle d) -> bool
14735  """
14736  return _IMP_core.FilterProvenance___ge__(self, *args)
14737 
14738  def __gt__(self, *args):
14739  r"""
14740  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14741  __gt__(FilterProvenance self, Particle d) -> bool
14742  """
14743  return _IMP_core.FilterProvenance___gt__(self, *args)
14744 
14745  def __hash__(self):
14746  r"""__hash__(FilterProvenance self) -> std::size_t"""
14747  return _IMP_core.FilterProvenance___hash__(self)
14748 
14749  def __str__(self):
14750  r"""__str__(FilterProvenance self) -> std::string"""
14751  return _IMP_core.FilterProvenance___str__(self)
14752 
14753  def __repr__(self):
14754  r"""__repr__(FilterProvenance self) -> std::string"""
14755  return _IMP_core.FilterProvenance___repr__(self)
14756 
14757  def _get_as_binary(self):
14758  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14759  return _IMP_core.FilterProvenance__get_as_binary(self)
14760 
14761  def _set_from_binary(self, p):
14762  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14763  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14764 
14765  def __getstate__(self):
14766  p = self._get_as_binary()
14767  if len(self.__dict__) > 1:
14768  d = self.__dict__.copy()
14769  del d['this']
14770  p = (d, p)
14771  return p
14772 
14773  def __setstate__(self, p):
14774  if not hasattr(self, 'this'):
14775  self.__init__()
14776  if isinstance(p, tuple):
14777  d, p = p
14778  self.__dict__.update(d)
14779  return self._set_from_binary(p)
14780 
14781  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14782 
14783 # Register FilterProvenance in _IMP_core:
14784 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14785 class ClusterProvenance(Provenance):
14786  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14787 
14788  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14789 
14790  def set_number_of_members(self, members):
14791  r"""set_number_of_members(ClusterProvenance self, int members)"""
14792  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14793 
14794  def get_number_of_members(self):
14795  r"""get_number_of_members(ClusterProvenance self) -> int"""
14796  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14797 
14798  def set_precision(self, precision):
14799  r"""set_precision(ClusterProvenance self, double precision)"""
14800  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14801 
14802  def get_precision(self):
14803  r"""get_precision(ClusterProvenance self) -> double"""
14804  return _IMP_core.ClusterProvenance_get_precision(self)
14805 
14806  def set_density(self, density):
14807  r"""set_density(ClusterProvenance self, std::string density)"""
14808  return _IMP_core.ClusterProvenance_set_density(self, density)
14809 
14810  def get_density(self):
14811  r"""get_density(ClusterProvenance self) -> std::string"""
14812  return _IMP_core.ClusterProvenance_get_density(self)
14813 
14814  def __init__(self, *args):
14815  r"""
14816  __init__(ClusterProvenance self) -> ClusterProvenance
14817  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14818  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14819  """
14820  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14821 
14822  @staticmethod
14823  def get_is_setup(*args):
14824  r"""
14825  get_is_setup(Model m, ParticleIndex pi) -> bool
14826  get_is_setup(_ParticleAdaptor p) -> bool
14827  """
14828  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14829 
14830  def show(self, *args):
14831  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14832  return _IMP_core.ClusterProvenance_show(self, *args)
14833 
14834  @staticmethod
14835  def setup_particle(*args):
14836  r"""
14837  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14838  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14839  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14840  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14841  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14842  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14843  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14844  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14845  """
14846  return _IMP_core.ClusterProvenance_setup_particle(*args)
14847 
14848  def add_attribute(self, *args):
14849  r"""
14850  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14851  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14852  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14853  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14854  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14855  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14856  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14857  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14858  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14859  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14860  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14861  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14862  """
14863  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14864 
14865  def get_value(self, *args):
14866  r"""
14867  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14868  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14869  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14870  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14871  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14872  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14873  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14874  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14875  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14876  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14877  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14878  """
14879  return _IMP_core.ClusterProvenance_get_value(self, *args)
14880 
14881  def set_value(self, *args):
14882  r"""
14883  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14884  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14885  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14886  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14887  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14888  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14889  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14890  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14891  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14892  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14893  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14894  """
14895  return _IMP_core.ClusterProvenance_set_value(self, *args)
14896 
14897  def remove_attribute(self, *args):
14898  r"""
14899  remove_attribute(ClusterProvenance self, FloatKey a0)
14900  remove_attribute(ClusterProvenance self, IntKey a0)
14901  remove_attribute(ClusterProvenance self, FloatsKey a0)
14902  remove_attribute(ClusterProvenance self, IntsKey a0)
14903  remove_attribute(ClusterProvenance self, StringKey a0)
14904  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14905  remove_attribute(ClusterProvenance self, ObjectKey a0)
14906  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14907  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14908  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14909  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14910  """
14911  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14912 
14913  def has_attribute(self, *args):
14914  r"""
14915  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14916  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14917  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14918  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14919  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14920  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14921  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14922  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14923  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14924  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14925  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14926  """
14927  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14928 
14929  def get_derivative(self, a0):
14930  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14931  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14932 
14933  def get_name(self):
14934  r"""get_name(ClusterProvenance self) -> std::string"""
14935  return _IMP_core.ClusterProvenance_get_name(self)
14936 
14937  def clear_caches(self):
14938  r"""clear_caches(ClusterProvenance self)"""
14939  return _IMP_core.ClusterProvenance_clear_caches(self)
14940 
14941  def set_name(self, a0):
14942  r"""set_name(ClusterProvenance self, std::string a0)"""
14943  return _IMP_core.ClusterProvenance_set_name(self, a0)
14944 
14945  def set_check_level(self, a0):
14946  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14947  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14948 
14949  def add_to_derivative(self, a0, a1, a2):
14950  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14951  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14952 
14953  def set_is_optimized(self, a0, a1):
14954  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14955  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14956 
14957  def get_is_optimized(self, a0):
14958  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14959  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14960 
14961  def get_check_level(self):
14962  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14963  return _IMP_core.ClusterProvenance_get_check_level(self)
14964 
14965  def __eq__(self, *args):
14966  r"""
14967  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14968  __eq__(ClusterProvenance self, Particle d) -> bool
14969  """
14970  return _IMP_core.ClusterProvenance___eq__(self, *args)
14971 
14972  def __ne__(self, *args):
14973  r"""
14974  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14975  __ne__(ClusterProvenance self, Particle d) -> bool
14976  """
14977  return _IMP_core.ClusterProvenance___ne__(self, *args)
14978 
14979  def __le__(self, *args):
14980  r"""
14981  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14982  __le__(ClusterProvenance self, Particle d) -> bool
14983  """
14984  return _IMP_core.ClusterProvenance___le__(self, *args)
14985 
14986  def __lt__(self, *args):
14987  r"""
14988  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14989  __lt__(ClusterProvenance self, Particle d) -> bool
14990  """
14991  return _IMP_core.ClusterProvenance___lt__(self, *args)
14992 
14993  def __ge__(self, *args):
14994  r"""
14995  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14996  __ge__(ClusterProvenance self, Particle d) -> bool
14997  """
14998  return _IMP_core.ClusterProvenance___ge__(self, *args)
14999 
15000  def __gt__(self, *args):
15001  r"""
15002  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
15003  __gt__(ClusterProvenance self, Particle d) -> bool
15004  """
15005  return _IMP_core.ClusterProvenance___gt__(self, *args)
15006 
15007  def __hash__(self):
15008  r"""__hash__(ClusterProvenance self) -> std::size_t"""
15009  return _IMP_core.ClusterProvenance___hash__(self)
15010 
15011  def __str__(self):
15012  r"""__str__(ClusterProvenance self) -> std::string"""
15013  return _IMP_core.ClusterProvenance___str__(self)
15014 
15015  def __repr__(self):
15016  r"""__repr__(ClusterProvenance self) -> std::string"""
15017  return _IMP_core.ClusterProvenance___repr__(self)
15018 
15019  def _get_as_binary(self):
15020  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
15021  return _IMP_core.ClusterProvenance__get_as_binary(self)
15022 
15023  def _set_from_binary(self, p):
15024  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
15025  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
15026 
15027  def __getstate__(self):
15028  p = self._get_as_binary()
15029  if len(self.__dict__) > 1:
15030  d = self.__dict__.copy()
15031  del d['this']
15032  p = (d, p)
15033  return p
15034 
15035  def __setstate__(self, p):
15036  if not hasattr(self, 'this'):
15037  self.__init__()
15038  if isinstance(p, tuple):
15039  d, p = p
15040  self.__dict__.update(d)
15041  return self._set_from_binary(p)
15042 
15043  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
15044 
15045 # Register ClusterProvenance in _IMP_core:
15046 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
15047 class ScriptProvenance(Provenance):
15048  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
15049 
15050  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15051 
15052  def set_filename(self, filename):
15053  r"""set_filename(ScriptProvenance self, std::string filename)"""
15054  return _IMP_core.ScriptProvenance_set_filename(self, filename)
15055 
15056  def get_filename(self):
15057  r"""get_filename(ScriptProvenance self) -> std::string"""
15058  return _IMP_core.ScriptProvenance_get_filename(self)
15059 
15060  def __init__(self, *args):
15061  r"""
15062  __init__(ScriptProvenance self) -> ScriptProvenance
15063  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
15064  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
15065  """
15066  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
15067 
15068  @staticmethod
15069  def get_is_setup(*args):
15070  r"""
15071  get_is_setup(Model m, ParticleIndex pi) -> bool
15072  get_is_setup(_ParticleAdaptor p) -> bool
15073  """
15074  return _IMP_core.ScriptProvenance_get_is_setup(*args)
15075 
15076  def show(self, *args):
15077  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
15078  return _IMP_core.ScriptProvenance_show(self, *args)
15079 
15080  @staticmethod
15081  def setup_particle(*args):
15082  r"""
15083  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
15084  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
15085  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
15086  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
15087  """
15088  return _IMP_core.ScriptProvenance_setup_particle(*args)
15089 
15090  def add_attribute(self, *args):
15091  r"""
15092  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
15093  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
15094  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
15095  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
15096  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
15097  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
15098  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
15099  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
15100  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
15101  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
15102  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
15103  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15104  """
15105  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
15106 
15107  def get_value(self, *args):
15108  r"""
15109  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
15110  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
15111  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
15112  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
15113  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
15114  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
15115  get_value(ScriptProvenance self, ObjectKey a0) -> Object
15116  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
15117  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
15118  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
15119  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15120  """
15121  return _IMP_core.ScriptProvenance_get_value(self, *args)
15122 
15123  def set_value(self, *args):
15124  r"""
15125  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
15126  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
15127  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
15128  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
15129  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
15130  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
15131  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
15132  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
15133  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
15134  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
15135  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15136  """
15137  return _IMP_core.ScriptProvenance_set_value(self, *args)
15138 
15139  def remove_attribute(self, *args):
15140  r"""
15141  remove_attribute(ScriptProvenance self, FloatKey a0)
15142  remove_attribute(ScriptProvenance self, IntKey a0)
15143  remove_attribute(ScriptProvenance self, FloatsKey a0)
15144  remove_attribute(ScriptProvenance self, IntsKey a0)
15145  remove_attribute(ScriptProvenance self, StringKey a0)
15146  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
15147  remove_attribute(ScriptProvenance self, ObjectKey a0)
15148  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
15149  remove_attribute(ScriptProvenance self, SparseIntKey a0)
15150  remove_attribute(ScriptProvenance self, SparseStringKey a0)
15151  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
15152  """
15153  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
15154 
15155  def has_attribute(self, *args):
15156  r"""
15157  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
15158  has_attribute(ScriptProvenance self, IntKey a0) -> bool
15159  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
15160  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
15161  has_attribute(ScriptProvenance self, StringKey a0) -> bool
15162  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
15163  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
15164  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
15165  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
15166  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
15167  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
15168  """
15169  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
15170 
15171  def get_derivative(self, a0):
15172  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
15173  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
15174 
15175  def get_name(self):
15176  r"""get_name(ScriptProvenance self) -> std::string"""
15177  return _IMP_core.ScriptProvenance_get_name(self)
15178 
15179  def clear_caches(self):
15180  r"""clear_caches(ScriptProvenance self)"""
15181  return _IMP_core.ScriptProvenance_clear_caches(self)
15182 
15183  def set_name(self, a0):
15184  r"""set_name(ScriptProvenance self, std::string a0)"""
15185  return _IMP_core.ScriptProvenance_set_name(self, a0)
15186 
15187  def set_check_level(self, a0):
15188  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15189  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15190 
15191  def add_to_derivative(self, a0, a1, a2):
15192  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15193  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15194 
15195  def set_is_optimized(self, a0, a1):
15196  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15197  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15198 
15199  def get_is_optimized(self, a0):
15200  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15201  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15202 
15203  def get_check_level(self):
15204  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15205  return _IMP_core.ScriptProvenance_get_check_level(self)
15206 
15207  def __eq__(self, *args):
15208  r"""
15209  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15210  __eq__(ScriptProvenance self, Particle d) -> bool
15211  """
15212  return _IMP_core.ScriptProvenance___eq__(self, *args)
15213 
15214  def __ne__(self, *args):
15215  r"""
15216  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15217  __ne__(ScriptProvenance self, Particle d) -> bool
15218  """
15219  return _IMP_core.ScriptProvenance___ne__(self, *args)
15220 
15221  def __le__(self, *args):
15222  r"""
15223  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15224  __le__(ScriptProvenance self, Particle d) -> bool
15225  """
15226  return _IMP_core.ScriptProvenance___le__(self, *args)
15227 
15228  def __lt__(self, *args):
15229  r"""
15230  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15231  __lt__(ScriptProvenance self, Particle d) -> bool
15232  """
15233  return _IMP_core.ScriptProvenance___lt__(self, *args)
15234 
15235  def __ge__(self, *args):
15236  r"""
15237  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15238  __ge__(ScriptProvenance self, Particle d) -> bool
15239  """
15240  return _IMP_core.ScriptProvenance___ge__(self, *args)
15241 
15242  def __gt__(self, *args):
15243  r"""
15244  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15245  __gt__(ScriptProvenance self, Particle d) -> bool
15246  """
15247  return _IMP_core.ScriptProvenance___gt__(self, *args)
15248 
15249  def __hash__(self):
15250  r"""__hash__(ScriptProvenance self) -> std::size_t"""
15251  return _IMP_core.ScriptProvenance___hash__(self)
15252 
15253  def __str__(self):
15254  r"""__str__(ScriptProvenance self) -> std::string"""
15255  return _IMP_core.ScriptProvenance___str__(self)
15256 
15257  def __repr__(self):
15258  r"""__repr__(ScriptProvenance self) -> std::string"""
15259  return _IMP_core.ScriptProvenance___repr__(self)
15260 
15261  def _get_as_binary(self):
15262  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15263  return _IMP_core.ScriptProvenance__get_as_binary(self)
15264 
15265  def _set_from_binary(self, p):
15266  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15267  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15268 
15269  def __getstate__(self):
15270  p = self._get_as_binary()
15271  if len(self.__dict__) > 1:
15272  d = self.__dict__.copy()
15273  del d['this']
15274  p = (d, p)
15275  return p
15276 
15277  def __setstate__(self, p):
15278  if not hasattr(self, 'this'):
15279  self.__init__()
15280  if isinstance(p, tuple):
15281  d, p = p
15282  self.__dict__.update(d)
15283  return self._set_from_binary(p)
15284 
15285  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15286 
15287 # Register ScriptProvenance in _IMP_core:
15288 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15289 class SoftwareProvenance(Provenance):
15290  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15291 
15292  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15293 
15294  def set_software_name(self, name):
15295  r"""set_software_name(SoftwareProvenance self, std::string name)"""
15296  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15297 
15298  def get_software_name(self):
15299  r"""get_software_name(SoftwareProvenance self) -> std::string"""
15300  return _IMP_core.SoftwareProvenance_get_software_name(self)
15301 
15302  def set_version(self, version):
15303  r"""set_version(SoftwareProvenance self, std::string version)"""
15304  return _IMP_core.SoftwareProvenance_set_version(self, version)
15305 
15306  def get_version(self):
15307  r"""get_version(SoftwareProvenance self) -> std::string"""
15308  return _IMP_core.SoftwareProvenance_get_version(self)
15309 
15310  def set_location(self, location):
15311  r"""set_location(SoftwareProvenance self, std::string location)"""
15312  return _IMP_core.SoftwareProvenance_set_location(self, location)
15313 
15314  def get_location(self):
15315  r"""get_location(SoftwareProvenance self) -> std::string"""
15316  return _IMP_core.SoftwareProvenance_get_location(self)
15317 
15318  def __init__(self, *args):
15319  r"""
15320  __init__(SoftwareProvenance self) -> SoftwareProvenance
15321  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15322  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15323  """
15324  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15325 
15326  @staticmethod
15327  def get_is_setup(*args):
15328  r"""
15329  get_is_setup(Model m, ParticleIndex pi) -> bool
15330  get_is_setup(_ParticleAdaptor p) -> bool
15331  """
15332  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15333 
15334  def show(self, *args):
15335  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15336  return _IMP_core.SoftwareProvenance_show(self, *args)
15337 
15338  @staticmethod
15339  def setup_particle(*args):
15340  r"""
15341  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15342  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15343  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15344  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15345  """
15346  return _IMP_core.SoftwareProvenance_setup_particle(*args)
15347 
15348  def add_attribute(self, *args):
15349  r"""
15350  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15351  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15352  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15353  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15354  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15355  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15356  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15357  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15358  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15359  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15360  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15361  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15362  """
15363  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15364 
15365  def get_value(self, *args):
15366  r"""
15367  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15368  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15369  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15370  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15371  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15372  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15373  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15374  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15375  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15376  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15377  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15378  """
15379  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15380 
15381  def set_value(self, *args):
15382  r"""
15383  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15384  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15385  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15386  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15387  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15388  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15389  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15390  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15391  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15392  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15393  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15394  """
15395  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15396 
15397  def remove_attribute(self, *args):
15398  r"""
15399  remove_attribute(SoftwareProvenance self, FloatKey a0)
15400  remove_attribute(SoftwareProvenance self, IntKey a0)
15401  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15402  remove_attribute(SoftwareProvenance self, IntsKey a0)
15403  remove_attribute(SoftwareProvenance self, StringKey a0)
15404  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15405  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15406  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15407  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15408  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15409  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15410  """
15411  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15412 
15413  def has_attribute(self, *args):
15414  r"""
15415  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15416  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15417  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15418  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15419  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15420  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15421  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15422  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15423  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15424  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15425  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15426  """
15427  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15428 
15429  def get_derivative(self, a0):
15430  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15431  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15432 
15433  def get_name(self):
15434  r"""get_name(SoftwareProvenance self) -> std::string"""
15435  return _IMP_core.SoftwareProvenance_get_name(self)
15436 
15437  def clear_caches(self):
15438  r"""clear_caches(SoftwareProvenance self)"""
15439  return _IMP_core.SoftwareProvenance_clear_caches(self)
15440 
15441  def set_name(self, a0):
15442  r"""set_name(SoftwareProvenance self, std::string a0)"""
15443  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15444 
15445  def set_check_level(self, a0):
15446  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15447  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15448 
15449  def add_to_derivative(self, a0, a1, a2):
15450  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15451  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15452 
15453  def set_is_optimized(self, a0, a1):
15454  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15455  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15456 
15457  def get_is_optimized(self, a0):
15458  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15459  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15460 
15461  def get_check_level(self):
15462  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15463  return _IMP_core.SoftwareProvenance_get_check_level(self)
15464 
15465  def __eq__(self, *args):
15466  r"""
15467  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15468  __eq__(SoftwareProvenance self, Particle d) -> bool
15469  """
15470  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15471 
15472  def __ne__(self, *args):
15473  r"""
15474  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15475  __ne__(SoftwareProvenance self, Particle d) -> bool
15476  """
15477  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15478 
15479  def __le__(self, *args):
15480  r"""
15481  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15482  __le__(SoftwareProvenance self, Particle d) -> bool
15483  """
15484  return _IMP_core.SoftwareProvenance___le__(self, *args)
15485 
15486  def __lt__(self, *args):
15487  r"""
15488  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15489  __lt__(SoftwareProvenance self, Particle d) -> bool
15490  """
15491  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15492 
15493  def __ge__(self, *args):
15494  r"""
15495  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15496  __ge__(SoftwareProvenance self, Particle d) -> bool
15497  """
15498  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15499 
15500  def __gt__(self, *args):
15501  r"""
15502  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15503  __gt__(SoftwareProvenance self, Particle d) -> bool
15504  """
15505  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15506 
15507  def __hash__(self):
15508  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15509  return _IMP_core.SoftwareProvenance___hash__(self)
15510 
15511  def __str__(self):
15512  r"""__str__(SoftwareProvenance self) -> std::string"""
15513  return _IMP_core.SoftwareProvenance___str__(self)
15514 
15515  def __repr__(self):
15516  r"""__repr__(SoftwareProvenance self) -> std::string"""
15517  return _IMP_core.SoftwareProvenance___repr__(self)
15518 
15519  def _get_as_binary(self):
15520  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15521  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15522 
15523  def _set_from_binary(self, p):
15524  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15525  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15526 
15527  def __getstate__(self):
15528  p = self._get_as_binary()
15529  if len(self.__dict__) > 1:
15530  d = self.__dict__.copy()
15531  del d['this']
15532  p = (d, p)
15533  return p
15534 
15535  def __setstate__(self, p):
15536  if not hasattr(self, 'this'):
15537  self.__init__()
15538  if isinstance(p, tuple):
15539  d, p = p
15540  self.__dict__.update(d)
15541  return self._set_from_binary(p)
15542 
15543  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15544 
15545 # Register SoftwareProvenance in _IMP_core:
15546 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15547 class Provenanced(IMP.Decorator):
15548  r"""Proxy of C++ IMP::core::Provenanced class."""
15549 
15550  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15551 
15552  def get_provenance(self):
15553  r"""get_provenance(Provenanced self) -> Provenance"""
15554  return _IMP_core.Provenanced_get_provenance(self)
15555 
15556  def set_provenance(self, p):
15557  r"""set_provenance(Provenanced self, Provenance p)"""
15558  return _IMP_core.Provenanced_set_provenance(self, p)
15559 
15560  def __init__(self, *args):
15561  r"""
15562  __init__(Provenanced self) -> Provenanced
15563  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15564  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15565  """
15566  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15567 
15568  @staticmethod
15569  def get_is_setup(*args):
15570  r"""
15571  get_is_setup(Model m, ParticleIndex pi) -> bool
15572  get_is_setup(_ParticleAdaptor p) -> bool
15573  """
15574  return _IMP_core.Provenanced_get_is_setup(*args)
15575 
15576  def show(self, *args):
15577  r"""show(Provenanced self, _ostream out=std::cout)"""
15578  return _IMP_core.Provenanced_show(self, *args)
15579 
15580  @staticmethod
15581  def setup_particle(*args):
15582  r"""
15583  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15584  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15585  """
15586  return _IMP_core.Provenanced_setup_particle(*args)
15587 
15588  def add_attribute(self, *args):
15589  r"""
15590  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15591  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15592  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15593  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15594  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15595  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15596  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15597  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15598  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15599  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15600  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15601  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15602  """
15603  return _IMP_core.Provenanced_add_attribute(self, *args)
15604 
15605  def get_value(self, *args):
15606  r"""
15607  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15608  get_value(Provenanced self, IntKey a0) -> IMP::Int
15609  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15610  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15611  get_value(Provenanced self, StringKey a0) -> IMP::String
15612  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15613  get_value(Provenanced self, ObjectKey a0) -> Object
15614  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15615  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15616  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15617  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15618  """
15619  return _IMP_core.Provenanced_get_value(self, *args)
15620 
15621  def set_value(self, *args):
15622  r"""
15623  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15624  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15625  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15626  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15627  set_value(Provenanced self, StringKey a0, IMP::String a1)
15628  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15629  set_value(Provenanced self, ObjectKey a0, Object a1)
15630  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15631  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15632  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15633  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15634  """
15635  return _IMP_core.Provenanced_set_value(self, *args)
15636 
15637  def remove_attribute(self, *args):
15638  r"""
15639  remove_attribute(Provenanced self, FloatKey a0)
15640  remove_attribute(Provenanced self, IntKey a0)
15641  remove_attribute(Provenanced self, FloatsKey a0)
15642  remove_attribute(Provenanced self, IntsKey a0)
15643  remove_attribute(Provenanced self, StringKey a0)
15644  remove_attribute(Provenanced self, ParticleIndexKey a0)
15645  remove_attribute(Provenanced self, ObjectKey a0)
15646  remove_attribute(Provenanced self, SparseFloatKey a0)
15647  remove_attribute(Provenanced self, SparseIntKey a0)
15648  remove_attribute(Provenanced self, SparseStringKey a0)
15649  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15650  """
15651  return _IMP_core.Provenanced_remove_attribute(self, *args)
15652 
15653  def has_attribute(self, *args):
15654  r"""
15655  has_attribute(Provenanced self, FloatKey a0) -> bool
15656  has_attribute(Provenanced self, IntKey a0) -> bool
15657  has_attribute(Provenanced self, FloatsKey a0) -> bool
15658  has_attribute(Provenanced self, IntsKey a0) -> bool
15659  has_attribute(Provenanced self, StringKey a0) -> bool
15660  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15661  has_attribute(Provenanced self, ObjectKey a0) -> bool
15662  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15663  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15664  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15665  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15666  """
15667  return _IMP_core.Provenanced_has_attribute(self, *args)
15668 
15669  def get_derivative(self, a0):
15670  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15671  return _IMP_core.Provenanced_get_derivative(self, a0)
15672 
15673  def get_name(self):
15674  r"""get_name(Provenanced self) -> std::string"""
15675  return _IMP_core.Provenanced_get_name(self)
15676 
15677  def clear_caches(self):
15678  r"""clear_caches(Provenanced self)"""
15679  return _IMP_core.Provenanced_clear_caches(self)
15680 
15681  def set_name(self, a0):
15682  r"""set_name(Provenanced self, std::string a0)"""
15683  return _IMP_core.Provenanced_set_name(self, a0)
15684 
15685  def set_check_level(self, a0):
15686  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15687  return _IMP_core.Provenanced_set_check_level(self, a0)
15688 
15689  def add_to_derivative(self, a0, a1, a2):
15690  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15691  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15692 
15693  def set_is_optimized(self, a0, a1):
15694  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15695  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15696 
15697  def get_is_optimized(self, a0):
15698  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15699  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15700 
15701  def get_check_level(self):
15702  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15703  return _IMP_core.Provenanced_get_check_level(self)
15704 
15705  def __eq__(self, *args):
15706  r"""
15707  __eq__(Provenanced self, Provenanced o) -> bool
15708  __eq__(Provenanced self, Particle d) -> bool
15709  """
15710  return _IMP_core.Provenanced___eq__(self, *args)
15711 
15712  def __ne__(self, *args):
15713  r"""
15714  __ne__(Provenanced self, Provenanced o) -> bool
15715  __ne__(Provenanced self, Particle d) -> bool
15716  """
15717  return _IMP_core.Provenanced___ne__(self, *args)
15718 
15719  def __le__(self, *args):
15720  r"""
15721  __le__(Provenanced self, Provenanced o) -> bool
15722  __le__(Provenanced self, Particle d) -> bool
15723  """
15724  return _IMP_core.Provenanced___le__(self, *args)
15725 
15726  def __lt__(self, *args):
15727  r"""
15728  __lt__(Provenanced self, Provenanced o) -> bool
15729  __lt__(Provenanced self, Particle d) -> bool
15730  """
15731  return _IMP_core.Provenanced___lt__(self, *args)
15732 
15733  def __ge__(self, *args):
15734  r"""
15735  __ge__(Provenanced self, Provenanced o) -> bool
15736  __ge__(Provenanced self, Particle d) -> bool
15737  """
15738  return _IMP_core.Provenanced___ge__(self, *args)
15739 
15740  def __gt__(self, *args):
15741  r"""
15742  __gt__(Provenanced self, Provenanced o) -> bool
15743  __gt__(Provenanced self, Particle d) -> bool
15744  """
15745  return _IMP_core.Provenanced___gt__(self, *args)
15746 
15747  def __hash__(self):
15748  r"""__hash__(Provenanced self) -> std::size_t"""
15749  return _IMP_core.Provenanced___hash__(self)
15750 
15751  def __str__(self):
15752  r"""__str__(Provenanced self) -> std::string"""
15753  return _IMP_core.Provenanced___str__(self)
15754 
15755  def __repr__(self):
15756  r"""__repr__(Provenanced self) -> std::string"""
15757  return _IMP_core.Provenanced___repr__(self)
15758 
15759  def _get_as_binary(self):
15760  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15761  return _IMP_core.Provenanced__get_as_binary(self)
15762 
15763  def _set_from_binary(self, p):
15764  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15765  return _IMP_core.Provenanced__set_from_binary(self, p)
15766 
15767  def __getstate__(self):
15768  p = self._get_as_binary()
15769  if len(self.__dict__) > 1:
15770  d = self.__dict__.copy()
15771  del d['this']
15772  p = (d, p)
15773  return p
15774 
15775  def __setstate__(self, p):
15776  if not hasattr(self, 'this'):
15777  self.__init__()
15778  if isinstance(p, tuple):
15779  d, p = p
15780  self.__dict__.update(d)
15781  return self._set_from_binary(p)
15782 
15783  __swig_destroy__ = _IMP_core.delete_Provenanced
15784 
15785 # Register Provenanced in _IMP_core:
15786 _IMP_core.Provenanced_swigregister(Provenanced)
15787 
15788 def add_provenance(m, pi, p):
15789  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15790  return _IMP_core.add_provenance(m, pi, p)
15791 
15792 def create_clone(p):
15793  r"""create_clone(Provenance p) -> Provenance"""
15794  return _IMP_core.create_clone(p)
15795 
15797  r"""
15798  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15799  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & b) -> Transformation3D
15800  get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15801  """
15802  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15803 
15804 def create_restraint(ps, pp):
15805  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15806  return _IMP_core.create_restraint(ps, pp)
15808  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15809 
15810  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15811 
15812  def __init__(self, *args):
15813  r"""
15814  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15815  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15816  """
15817  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15818 
15819  def get_version_info(self):
15820  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15821  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15822  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15823 
15824  def __str__(self):
15825  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15826  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15827 
15828  def __repr__(self):
15829  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15830  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15831 
15832  @staticmethod
15833  def get_from(o):
15834  return _object_cast_to_TruncatedHarmonic(o)
15835 
15836 
15837 # Register TruncatedHarmonicLowerBound in _IMP_core:
15838 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15840  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15841 
15842  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15843 
15844  def __init__(self, *args):
15845  r"""
15846  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15847  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15848  """
15849  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15850 
15851  def get_version_info(self):
15852  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15853  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15854  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15855 
15856  def __str__(self):
15857  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15858  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15859 
15860  def __repr__(self):
15861  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15862  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15863 
15864  @staticmethod
15865  def get_from(o):
15866  return _object_cast_to_TruncatedHarmonic(o)
15867 
15868 
15869 # Register TruncatedHarmonicUpperBound in _IMP_core:
15870 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15872  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15873 
15874  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15875 
15876  def __init__(self, *args):
15877  r"""
15878  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15879  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15880  """
15881  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15882 
15883  def get_version_info(self):
15884  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15885  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15886  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15887 
15888  def __str__(self):
15889  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15890  return _IMP_core.TruncatedHarmonicBound___str__(self)
15891 
15892  def __repr__(self):
15893  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15894  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15895 
15896  @staticmethod
15897  def get_from(o):
15898  return _object_cast_to_TruncatedHarmonic(o)
15899 
15900 
15901 # Register TruncatedHarmonicBound in _IMP_core:
15902 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15903 class ParticleType(IMP._Value):
15904  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15905 
15906  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15907 
15908  def __init__(self, *args):
15909  r"""
15910  __init__(ParticleType self) -> ParticleType
15911  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15912  __init__(ParticleType self, unsigned int i) -> ParticleType
15913  """
15914  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15915 
15916  @staticmethod
15917  def add_key(sc):
15918  r"""add_key(std::string sc) -> unsigned int"""
15919  return _IMP_core.ParticleType_add_key(sc)
15920 
15921  @staticmethod
15922  def get_key_exists(sc):
15923  r"""get_key_exists(std::string sc) -> bool"""
15924  return _IMP_core.ParticleType_get_key_exists(sc)
15925 
15926  def get_string(self):
15927  r"""get_string(ParticleType self) -> std::string const"""
15928  return _IMP_core.ParticleType_get_string(self)
15929 
15930  def __cmp__(self, o):
15931  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15932  return _IMP_core.ParticleType___cmp__(self, o)
15933 
15934  def __eq__(self, o):
15935  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15936  return _IMP_core.ParticleType___eq__(self, o)
15937 
15938  def __ne__(self, o):
15939  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15940  return _IMP_core.ParticleType___ne__(self, o)
15941 
15942  def __lt__(self, o):
15943  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15944  return _IMP_core.ParticleType___lt__(self, o)
15945 
15946  def __gt__(self, o):
15947  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15948  return _IMP_core.ParticleType___gt__(self, o)
15949 
15950  def __ge__(self, o):
15951  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15952  return _IMP_core.ParticleType___ge__(self, o)
15953 
15954  def __le__(self, o):
15955  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15956  return _IMP_core.ParticleType___le__(self, o)
15957 
15958  def __hash__(self):
15959  r"""__hash__(ParticleType self) -> std::size_t"""
15960  return _IMP_core.ParticleType___hash__(self)
15961 
15962  def show(self, *args):
15963  r"""show(ParticleType self, _ostream out=std::cout)"""
15964  return _IMP_core.ParticleType_show(self, *args)
15965 
15966  @staticmethod
15967  def add_alias(old_key, new_name):
15968  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15969  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15970 
15971  @staticmethod
15972  def get_number_of_keys():
15973  r"""get_number_of_keys() -> unsigned int"""
15974  return _IMP_core.ParticleType_get_number_of_keys()
15975 
15976  def get_index(self):
15977  r"""get_index(ParticleType self) -> unsigned int"""
15978  return _IMP_core.ParticleType_get_index(self)
15979 
15980  @staticmethod
15981  def show_all(out):
15982  r"""show_all(_ostream out)"""
15983  return _IMP_core.ParticleType_show_all(out)
15984 
15985  @staticmethod
15986  def get_all_strings():
15987  r"""get_all_strings() -> IMP::Vector< std::string >"""
15988  return _IMP_core.ParticleType_get_all_strings()
15989 
15990  @staticmethod
15991  def get_number_unique():
15992  r"""get_number_unique() -> unsigned int"""
15993  return _IMP_core.ParticleType_get_number_unique()
15994 
15995  def __str__(self):
15996  r"""__str__(ParticleType self) -> std::string"""
15997  return _IMP_core.ParticleType___str__(self)
15998 
15999  def __repr__(self):
16000  r"""__repr__(ParticleType self) -> std::string"""
16001  return _IMP_core.ParticleType___repr__(self)
16002  __swig_destroy__ = _IMP_core.delete_ParticleType
16003 
16004 # Register ParticleType in _IMP_core:
16005 _IMP_core.ParticleType_swigregister(ParticleType)
16007  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
16008 
16009  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16010  __repr__ = _swig_repr
16011 
16012  def __init__(self, f, k):
16013  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
16014  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
16015 
16016  def do_get_inputs(self, m, pis):
16017  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16018  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
16019 
16020  def get_unary_function(self):
16021  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
16022  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
16023 
16024  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16025  r"""evaluate_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16026  return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16027 
16028  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16029  r"""evaluate_indexes_scores(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16030  return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16031 
16032  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16033  r"""evaluate_indexes_delta(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16034  return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16035 
16036  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16037  r"""evaluate_if_good_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16038  return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16039 
16040  def get_version_info(self):
16041  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
16042  return _IMP_core.AttributeSingletonScore_get_version_info(self)
16043  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
16044 
16045  @staticmethod
16046  def get_from(o):
16047  return _object_cast_to_AttributeSingletonScore(o)
16048 
16049 
16050 # Register AttributeSingletonScore in _IMP_core:
16051 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
16052 
16054  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
16055  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
16057  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
16058 
16059  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16060  __repr__ = _swig_repr
16061 
16062  def __init__(self, f, bb):
16063  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
16064  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
16065 
16066  def do_get_inputs(self, m, pis):
16067  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16068  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
16069 
16070  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16071  r"""evaluate_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16072  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16073 
16074  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16075  r"""evaluate_indexes_scores(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16076  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16077 
16078  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16079  r"""evaluate_indexes_delta(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16080  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16081 
16082  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16083  r"""evaluate_if_good_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16084  return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16085 
16086  def get_version_info(self):
16087  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
16088  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
16089  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
16090 
16091  @staticmethod
16092  def get_from(o):
16093  return _object_cast_to_BoundingBox3DSingletonScore(o)
16094 
16095 
16096 # Register BoundingBox3DSingletonScore in _IMP_core:
16097 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
16098 
16099 def create_bounding_box_3d_singleton_score(f, bb):
16100  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
16101  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
16103  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
16104 
16105  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16106  __repr__ = _swig_repr
16107 
16108  def __init__(self, f, sphere):
16109  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
16110  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
16111 
16112  def do_get_inputs(self, m, pis):
16113  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16114  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
16115 
16116  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16117  r"""evaluate_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16118  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16119 
16120  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16121  r"""evaluate_indexes_scores(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16122  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16123 
16124  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16125  r"""evaluate_indexes_delta(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16126  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16127 
16128  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16129  r"""evaluate_if_good_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16130  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16131 
16132  def get_version_info(self):
16133  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
16134  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
16135  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
16136 
16137  @staticmethod
16138  def get_from(o):
16139  return _object_cast_to_BoundingSphere3DSingletonScore(o)
16140 
16141 
16142 # Register BoundingSphere3DSingletonScore in _IMP_core:
16143 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
16144 
16145 def create_bounding_sphere_3d_singleton_score(f, sphere):
16146  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
16147  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
16149  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
16150 
16151  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16152  __repr__ = _swig_repr
16153 
16154  def __init__(self, *args):
16155  r"""
16156  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
16157  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
16158  """
16159  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
16160 
16161  def do_get_inputs(self, m, pis):
16162  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16163  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
16164 
16165  def get_unary_function(self):
16166  r"""get_unary_function(DistanceToSingletonScore self) -> UnaryFunction"""
16167  return _IMP_core.DistanceToSingletonScore_get_unary_function(self)
16168 
16169  def get_point(self):
16170  r"""get_point(DistanceToSingletonScore self) -> Vector3D"""
16171  return _IMP_core.DistanceToSingletonScore_get_point(self)
16172 
16173  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16174  r"""evaluate_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16175  return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16176 
16177  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16178  r"""evaluate_indexes_scores(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16179  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16180 
16181  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16182  r"""evaluate_indexes_delta(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
16183  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16184 
16185  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16186  r"""evaluate_if_good_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
16187  return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16188 
16189  def get_version_info(self):
16190  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
16191  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
16192  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
16193 
16194  @staticmethod
16195  def get_from(o):
16196  return _object_cast_to_DistanceToSingletonScore(o)
16197 
16198 
16199  def _get_as_binary(self):
16200  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
16201  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
16202 
16203  def _set_from_binary(self, p):
16204  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
16205  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
16206 
16207  def __getstate__(self):
16208  p = self._get_as_binary()
16209  if len(self.__dict__) > 1:
16210  d = self.__dict__.copy()
16211  del d['this']
16212  p = (d, p)
16213  return p
16214 
16215  def __setstate__(self, p):
16216  if not hasattr(self, 'this'):
16217  self.__init__()
16218  if isinstance(p, tuple):
16219  d, p = p
16220  self.__dict__.update(d)
16221  return self._set_from_binary(p)
16222 
16223 
16224  def _get_jax(self):
16225  import jax.numpy as jnp
16226  import functools
16227  def score(X, indexes, point, uf):
16228  xyzs = X['xyz'][indexes]
16229  drs = jnp.linalg.norm(xyzs - point, axis=1)
16230  return uf(drs)
16231  uf = self.get_unary_function().get_derived_object()
16232  f = functools.partial(score, point=jnp.array(self.get_point()),
16233  uf=uf._get_jax())
16234  return self._wrap_jax(f)
16235 
16236 
16237 # Register DistanceToSingletonScore in _IMP_core:
16238 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16239 
16240 def create_distance_to_singleton_score(f, pt):
16241  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16242  return _IMP_core.create_distance_to_singleton_score(f, pt)
16243 
16244 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16245  def __init__(self, uf):
16246  if isinstance(uf, HarmonicUpperBound):
16247  p = HarmonicUpperBoundSphereDistancePairScore(
16248  uf.get_mean(), uf.get_k())
16249  elif isinstance(uf, HarmonicLowerBound):
16250  if uf.get_mean() == 0.0:
16251  p = SoftSpherePairScore(uf.get_k())
16252  else:
16253  p = _SphereDistancePairScore(uf)
16254  elif isinstance(uf, Harmonic):
16255  p = HarmonicSphereDistancePairScore(
16256  uf.get_mean(), uf.get_k())
16257  else:
16258  p = _SphereDistancePairScore(uf)
16259  self.__dict__['_proxied'] = p
16260  def __getattr__(self, key):
16261  return getattr(self._proxied, key)
16262  def __setattr__(self, key, val):
16263  return setattr(self._proxied, key, val)
16264 
16265  def __getstate__(self):
16266  return self.__dict__['_proxied']
16267 
16268  def __setstate__(self, p):
16269  self.__dict__['_proxied'] = p
16270 
16271  @staticmethod
16272  def get_from(o):
16273  try:
16274  p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16275  except ValueError:
16276  try:
16277  p = HarmonicSphereDistancePairScore.get_from(o)
16278  except ValueError:
16279  try:
16280  p = SoftSpherePairScore.get_from(o)
16281  except ValueError:
16282  p = _SphereDistancePairScore.get_from(o)
16283  obj = object.__new__(SphereDistancePairScore)
16284  obj.__dict__['_proxied'] = p
16285  return obj
16286 
16287 
16288 
16289 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
16290  CombineProvenance, FilterProvenance,
16291  ClusterProvenance, ScriptProvenance,
16292  SoftwareProvenance]):
16293  """Yield all provenance decorators of the given types for the particle.
16294  By default, all provenance types are returned. Provenance is returned
16295  in order, most recent first. If the particle has no provenance
16296  information, an empty generator is returned."""
16297  if Provenanced.get_is_setup(p):
16298  prov = Provenanced(p).get_provenance()
16299  while prov:
16300  for c in types:
16301  if c.get_is_setup(prov):
16302  yield c(prov)
16303  prov = prov.get_previous()
16304 
16306  """Tag the given particle with the current Python script.
16307  This is a noop if the particle is already so tagged."""
16308  main = sys.modules['__main__']
16309 # Can't do anything if running from an interactive interpreter
16310  if not hasattr(main, '__file__'):
16311  return
16312  f = IMP.get_absolute_path(main.__file__)
16313  for prov in get_all_provenance(p, types=[ScriptProvenance]):
16314  if prov.get_filename() == f:
16315  return
16316  m = p.get_model()
16317  provp = IMP.Particle(m)
16318  provp.set_name('script')
16319  prov = ScriptProvenance.setup_particle(provp, f)
16320  add_provenance(m, p, prov)
16321 
16322 def add_software_provenance(p, name, version, location):
16323  """Tag the given particle with the software used to create it.
16324  This is a noop if the particle is already so tagged."""
16325  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
16326  if prov.get_software_name() == name and prov.get_version() == version \
16327  and prov.get_location() == location:
16328  return
16329  m = p.get_model()
16330  provp = IMP.Particle(m)
16331  provp.set_name('software')
16332  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16333  add_provenance(m, p, prov)
16334 
16336  """Tag the given particle as being created by the current version of IMP."""
16337  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
16338  version=IMP.get_module_version(),
16339  location="https://integrativemodeling.org")
16340 
16341 
16342 def get_module_name():
16343  r"""get_module_name() -> std::string const"""
16344  return _IMP_core.get_module_name()
16345 
16346 def get_module_version():
16347  r"""get_module_version() -> std::string const"""
16348  return _IMP_core.get_module_version()
16349 
16350 def get_example_path(fname):
16351  r"""get_example_path(std::string fname) -> std::string"""
16352  return _IMP_core.get_example_path(fname)
16353 
16354 def get_data_path(fname):
16355  r"""get_data_path(std::string fname) -> std::string"""
16356  return _IMP_core.get_data_path(fname)
16357 
16358 from . import _version_check
16359 _version_check.check_version(get_module_version())
16360 __version__ = get_module_version()
16361 
16362 
F visit_breadth_first(HD d, F f)
Apply the visitor to each particle, breadth first.
A base class for geometry contained in particles.
A base class for modifiers of ParticlesTemp.
GenericDistanceToSingletonScore< UnaryFunction > DistanceToSingletonScore
double get_kt(double T)
Return kT for a given temperature in units of [kcal/mol].
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
double get_height(const Surface &s, const XYZR &d)
Get height of sphere above surface.
Definition: Surface.h:129
algebra::Transformation3D get_transformation_aligning_first_to_second(XYZsOrVector3ds a, XYZsOrVector3ds b)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:80
def add_script_provenance
Tag the given particle with the current Python script.
GenericBoundingSphere3DSingletonScore< UnaryFunction > BoundingSphere3DSingletonScore
Abstract predicate function.
Definition: QuadPredicate.h:31
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
Definition: generic.h:36
ParticleIndex get_root_rigid_body(RigidMember m)
Return the index of the outer-most rigid body containing the member.
algebra::ReferenceFrame3D get_initial_reference_frame(Model *m, const ParticleIndexes &pis)
The base class for geometry.
F visit_depth_first(HD d, F &f)
Apply functor F to each particle, traversing the hierarchy depth first.
XYZRs create_xyzr_particles(Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
A base class for geometry contained in particles.
double get_angle(Direction a, Direction b)
Get angle between directions.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
ParticlesTemp create_rigid_bodies(Model *m, unsigned int n, bool no_members=false)
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_rigid_body_cache_key(ObjectKey k)
Base class for all samplers.
Definition: Sampler.h:31
Key< 34897493 > ParticleType
An IMP::Key object for identifying types of particles by strings.
Definition: Typed.h:28
algebra::Vector3D get_centroid(const XYZs &ps)
Get the centroid.
void add_particle(RMF::FileHandle fh, Particle *hs)
GenericHierarchies get_leaves(Hierarchy mhd)
Get all the leaves of the bit of hierarchy.
Composable functors to implement scores via compile-time composition.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
GenericHierarchies get_all_descendants(Hierarchy mhd)
Get all the particles in the subtree.
A base class for geometry from a set of particles.
def add_imp_provenance
Tag the given particle as being created by the current version of IMP.
display::Geometries create_blame_geometries(const RestraintsTemp &rs, const ParticlesTemp &ps, double max=NO_MAX, std::string name=std::string())
void show_rigid_body_hierarchy(RigidBody rb, TextOutput out=TextOutput(std::cout))
Implement a constraint on the Model.
Definition: Constraint.h:49
void add_restraint(RMF::FileHandle fh, Restraint *hs)
def add_software_provenance
Tag the given particle with the software used to create it.
Base class for objects in a Model that depend on other objects.
Definition: ModelObject.h:28
Abstract predicate function.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Definition: Object.h:111
int get_number_of_frames(const ::npctransport_proto::Assignment &config, double time_step)
Abstract class for scoring object(s) of type ParticleIndex.
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:56
Base class for all optimizers.
Definition: Optimizer.h:48
GenericAttributeSingletonScore< UnaryFunction > AttributeSingletonScore
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Definition: Surface.h:191
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
algebra::BoundingBoxD< 3 > get_bounding_box(const XYZRs &ps)
Get the bounding box.
const algebra::Vector3D & get_vector_geometry(XYZ d)
Definition: XYZ.h:135
GenericHierarchies get_internal(Hierarchy mhd)
Get all the non-leaves of the bit of hierarchy.
Interface to specialized Particle types (e.g. atoms)
Definition: Decorator.h:119
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_absolute_path(std::string file)
Convert a possibly relative path to an absolute path.
algebra::Sphere3D get_enclosing_sphere(const XYZs &v)
Get a sphere enclosing the set of XYZRs.
Base class for optimizers that act on individual attributes.
SurfaceGeometry * get_constrained_surface_geometry(const Surface s, std::string name="SurfaceGeometry%1%")
Get surface geometry constrained to the surface.
Definition: Surface.h:236
Abstract predicate function.
Definition: PairPredicate.h:31
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Represents a scoring function on the model.
void set_vector_geometry(XYZ d, const algebra::Vector3D &v)
Definition: XYZ.h:131
Shared optimizer state that is invoked upon commitment of new coordinates.
Hierarchy get_root(Hierarchy h)
Return the root of the hierarchy.
Abstract predicate function.
GenericBoundingBox3DSingletonScore< UnaryFunction > BoundingBox3DSingletonScore
Abstract class to implement hierarchical methods.
Definition: Refiner.h:34
double get_depth(const Surface &s, const XYZR &d)
Get depth of sphere below surface.
Definition: Surface.h:143
void set_enclosing_radius(XYZR b, const XYZs &v)
Set the radius of the first to enclose the list.
Class to handle individual particles of a Model object.
Definition: Particle.h:45
GenericAttributeSingletonScore< UF > * create_generic_attribute_singleton_score(UF *uf, FloatKey k)
void transform(RigidBody a, const algebra::Transformation3D &tr)
Transform a rigid body.
Definition: rigid_bodies.h:882
void assign_blame(const RestraintsTemp &rs, const ParticlesTemp &ps, FloatKey attribute)
std::string get_module_version()
Return the version of this module, as a string.
TruncatedHarmonic< BOTH > TruncatedHarmonicBound
TruncatedHarmonic< UPPER > TruncatedHarmonicUpperBound
static const FloatKeys & get_xyz_keys()
Get a vector containing the keys for x,y,z.
BallMover
Definition: BallMover.py:1
Output IMP model data in various file formats.
std::string get_chain_id(Hierarchy h)
Walk up the hierarchy to determine the chain id.
def get_all_provenance
Yield all provenance decorators of the given types for the particle.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Definition: TripletScore.h:44
void add_provenance(Model *m, ParticleIndex pi, Provenance p)
Add provenance to part of the model.
Tag part of the system to track how it was created.
Definition: provenance.h:632
double get_distance(const Surface &s, const XYZR &d)
Get distance from sphere to surface.
Definition: Surface.h:153
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
Abstract single variable functor class for score functions.
Definition: UnaryFunction.h:27
void set_enclosing_sphere(XYZR b, const XYZs &v, double slack=0)
Set the coordinates and radius of the first to enclose the list.
TruncatedHarmonic< LOWER > TruncatedHarmonicLowerBound
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