11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
44 def _swig_setattr_nondynamic_class_variable(set):
45 def set_class_attr(cls, name, value):
46 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
53 def _swig_add_metaclass(metaclass):
54 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
60 class _SwigNonDynamicMeta(type):
61 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
67 class IMP_CORE_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
72 def __init__(self, *args, **kwargs):
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
78 r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
79 return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
82 r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
83 return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
87 return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
89 def distance(self, x):
90 r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
91 return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
94 r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
95 return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
99 return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
102 r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
103 return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
106 r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
107 return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
110 r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
111 return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
113 def advance(self, n):
114 r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
115 return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
118 r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
119 return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
123 return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
125 def __iadd__(self, n):
126 r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
127 return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
129 def __isub__(self, n):
130 r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
131 return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
133 def __add__(self, n):
134 r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
135 return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
137 def __sub__(self, *args):
139 __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
140 __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
147 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
154 IMP_DEBUG = _IMP_core.IMP_DEBUG
156 IMP_RELEASE = _IMP_core.IMP_RELEASE
158 IMP_SILENT = _IMP_core.IMP_SILENT
160 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
162 IMP_TERSE = _IMP_core.IMP_TERSE
164 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
166 IMP_MEMORY = _IMP_core.IMP_MEMORY
168 IMP_NONE = _IMP_core.IMP_NONE
170 IMP_USAGE = _IMP_core.IMP_USAGE
172 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
203 def register(self, obj):
204 """Take a reference to a director object; will only work for
205 refcounted C++ classes"""
206 if hasattr(obj,
'get_ref_count'):
207 self._objects.append(obj)
209 """Only drop our reference and allow cleanup by Python if no other
210 Python references exist (we hold 3 references: one in self._objects,
211 one in x, and one in the argument list for getrefcount) *and* no
212 other C++ references exist (the Python object always holds one)"""
213 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
214 or x.get_ref_count() > 1]
218 def get_object_count(self):
219 """Get number of director objects (useful for testing only)"""
220 return len(self._objects)
221 _director_objects = _DirectorObjects()
223 class _ostream(object):
224 r"""Proxy of C++ std::ostream class."""
226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
228 def __init__(self, *args, **kwargs):
229 raise AttributeError(
"No constructor defined")
230 __repr__ = _swig_repr
232 def write(self, osa_buf):
233 r"""write(_ostream self, char const * osa_buf)"""
234 return _IMP_core._ostream_write(self, osa_buf)
237 _IMP_core._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
249 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
251 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
283 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
285 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
309 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
311 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
313 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
315 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
317 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
319 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
321 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
323 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
325 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
327 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
330 r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
332 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
333 __repr__ = _swig_repr
335 def __init__(self, *args):
336 r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
337 _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
339 def get_version_info(self):
340 r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
341 return _IMP_core._OpenCubicSplineBase_get_version_info(self)
342 __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
345 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
347 _object_types.append(
"MonteCarloMover")
350 def _object_cast_to_MonteCarloMover(o):
351 r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
352 return _IMP_core._object_cast_to_MonteCarloMover(o)
354 MonteCarloMoverResults=list
355 _plural_types.append(
"MonteCarloMoverResults")
356 _value_types.append(
"MonteCarloMoverResult")
359 _object_types.append(
"AngleRestraint")
362 def _object_cast_to_AngleRestraint(o):
363 r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
364 return _IMP_core._object_cast_to_AngleRestraint(o)
366 _object_types.append(
"AngleTripletScore")
369 def _object_cast_to_AngleTripletScore(o):
370 r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
371 return _IMP_core._object_cast_to_AngleTripletScore(o)
373 _object_types.append(
"AttributeSingletonScore")
376 def _object_cast_to_AttributeSingletonScore(o):
377 r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
378 return _IMP_core._object_cast_to_AttributeSingletonScore(o)
380 _object_types.append(
"BallMover")
383 def _object_cast_to_BallMover(o):
384 r"""_object_cast_to_BallMover(Object o) -> BallMover"""
385 return _IMP_core._object_cast_to_BallMover(o)
387 _object_types.append(
"SerialMover")
390 def _object_cast_to_SerialMover(o):
391 r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
392 return _IMP_core._object_cast_to_SerialMover(o)
394 _object_types.append(
"SubsetMover")
397 def _object_cast_to_SubsetMover(o):
398 r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
399 return _IMP_core._object_cast_to_SubsetMover(o)
401 _object_types.append(
"DirectionMover")
404 def _object_cast_to_DirectionMover(o):
405 r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
406 return _IMP_core._object_cast_to_DirectionMover(o)
408 _object_types.append(
"SurfaceMover")
411 def _object_cast_to_SurfaceMover(o):
412 r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
413 return _IMP_core._object_cast_to_SurfaceMover(o)
415 _object_types.append(
"BoundingBox3DSingletonScore")
418 def _object_cast_to_BoundingBox3DSingletonScore(o):
419 r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
420 return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
422 _object_types.append(
"BoundingSphere3DSingletonScore")
425 def _object_cast_to_BoundingSphere3DSingletonScore(o):
426 r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
427 return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
429 _object_types.append(
"BoxSweepClosePairsFinder")
432 def _object_cast_to_BoxSweepClosePairsFinder(o):
433 r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
434 return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
436 _object_types.append(
"NearestNeighborsClosePairsFinder")
439 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
440 r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
441 return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
443 _object_types.append(
"CentroidOfRefined")
446 def _object_cast_to_CentroidOfRefined(o):
447 r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
448 return _IMP_core._object_cast_to_CentroidOfRefined(o)
450 _object_types.append(
"ChecksScoreState")
453 def _object_cast_to_ChecksScoreState(o):
454 r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
455 return _IMP_core._object_cast_to_ChecksScoreState(o)
457 _object_types.append(
"ChildrenRefiner")
460 def _object_cast_to_ChildrenRefiner(o):
461 r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
462 return _IMP_core._object_cast_to_ChildrenRefiner(o)
464 _object_types.append(
"ClosePairsFinder")
467 def _object_cast_to_ClosePairsFinder(o):
468 r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
469 return _IMP_core._object_cast_to_ClosePairsFinder(o)
471 _object_types.append(
"ClosePairsPairScore")
474 def _object_cast_to_ClosePairsPairScore(o):
475 r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
476 return _IMP_core._object_cast_to_ClosePairsPairScore(o)
478 _object_types.append(
"ClosedCubicSpline")
481 def _object_cast_to_ClosedCubicSpline(o):
482 r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
483 return _IMP_core._object_cast_to_ClosedCubicSpline(o)
485 _object_types.append(
"ConjugateGradients")
488 def _object_cast_to_ConjugateGradients(o):
489 r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
490 return _IMP_core._object_cast_to_ConjugateGradients(o)
492 _object_types.append(
"ConnectivityRestraint")
495 def _object_cast_to_ConnectivityRestraint(o):
496 r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
497 return _IMP_core._object_cast_to_ConnectivityRestraint(o)
499 _object_types.append(
"ConstantRestraint")
502 def _object_cast_to_ConstantRestraint(o):
503 r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
504 return _IMP_core._object_cast_to_ConstantRestraint(o)
506 _object_types.append(
"Cosine")
509 def _object_cast_to_Cosine(o):
510 r"""_object_cast_to_Cosine(Object o) -> Cosine"""
511 return _IMP_core._object_cast_to_Cosine(o)
513 _object_types.append(
"CoverRefined")
516 def _object_cast_to_CoverRefined(o):
517 r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
518 return _IMP_core._object_cast_to_CoverRefined(o)
520 _object_types.append(
"DerivativesFromRefined")
523 def _object_cast_to_DerivativesFromRefined(o):
524 r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
525 return _IMP_core._object_cast_to_DerivativesFromRefined(o)
527 _object_types.append(
"DerivativesToRefined")
530 def _object_cast_to_DerivativesToRefined(o):
531 r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
532 return _IMP_core._object_cast_to_DerivativesToRefined(o)
534 _object_types.append(
"WeightedDerivativesToRefined")
537 def _object_cast_to_WeightedDerivativesToRefined(o):
538 r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
539 return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
541 _object_types.append(
"DiameterRestraint")
544 def _object_cast_to_DiameterRestraint(o):
545 r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
546 return _IMP_core._object_cast_to_DiameterRestraint(o)
548 _object_types.append(
"DihedralRestraint")
551 def _object_cast_to_DihedralRestraint(o):
552 r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
553 return _IMP_core._object_cast_to_DihedralRestraint(o)
555 _object_types.append(
"DistanceRestraint")
558 def _object_cast_to_DistanceRestraint(o):
559 r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
560 return _IMP_core._object_cast_to_DistanceRestraint(o)
562 _object_types.append(
"DistanceToSingletonScore")
565 def _object_cast_to_DistanceToSingletonScore(o):
566 r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
567 return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
569 _object_types.append(
"ExcludedVolumeRestraint")
572 def _object_cast_to_ExcludedVolumeRestraint(o):
573 r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
574 return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
576 _object_types.append(
"FixedRefiner")
579 def _object_cast_to_FixedRefiner(o):
580 r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
581 return _IMP_core._object_cast_to_FixedRefiner(o)
583 _object_types.append(
"GridClosePairsFinder")
586 def _object_cast_to_GridClosePairsFinder(o):
587 r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
588 return _IMP_core._object_cast_to_GridClosePairsFinder(o)
590 _object_types.append(
"Harmonic")
593 def _object_cast_to_Harmonic(o):
594 r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
595 return _IMP_core._object_cast_to_Harmonic(o)
597 _object_types.append(
"HarmonicWell")
600 def _object_cast_to_HarmonicWell(o):
601 r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
602 return _IMP_core._object_cast_to_HarmonicWell(o)
604 _object_types.append(
"HarmonicLowerBound")
607 def _object_cast_to_HarmonicLowerBound(o):
608 r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
609 return _IMP_core._object_cast_to_HarmonicLowerBound(o)
611 _object_types.append(
"HarmonicUpperBound")
614 def _object_cast_to_HarmonicUpperBound(o):
615 r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
616 return _IMP_core._object_cast_to_HarmonicUpperBound(o)
618 _object_types.append(
"HarmonicSphereDistancePairScore")
621 def _object_cast_to_HarmonicSphereDistancePairScore(o):
622 r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
623 return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
625 _object_types.append(
"HarmonicUpperBoundSphereDistancePairScore")
628 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
629 r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
630 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
632 _object_types.append(
"HarmonicUpperBoundSphereDiameterPairScore")
635 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
636 r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
637 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
639 _object_types.append(
"HarmonicSurfaceDistancePairScore")
642 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
643 r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
644 return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
646 _object_types.append(
"HarmonicSurfaceHeightPairScore")
649 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
650 r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
651 return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
653 _object_types.append(
"HarmonicSurfaceDepthPairScore")
656 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
657 r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
658 return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
660 _object_types.append(
"WeightedSum")
663 def _object_cast_to_WeightedSum(o):
664 r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
665 return _IMP_core._object_cast_to_WeightedSum(o)
667 _object_types.append(
"WeightedSumOfExponential")
670 def _object_cast_to_WeightedSumOfExponential(o):
671 r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
672 return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
674 _object_types.append(
"KClosePairsPairScore")
677 def _object_cast_to_KClosePairsPairScore(o):
678 r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
679 return _IMP_core._object_cast_to_KClosePairsPairScore(o)
681 _object_types.append(
"LeavesRefiner")
684 def _object_cast_to_LeavesRefiner(o):
685 r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
686 return _IMP_core._object_cast_to_LeavesRefiner(o)
688 _object_types.append(
"Linear")
691 def _object_cast_to_Linear(o):
692 r"""_object_cast_to_Linear(Object o) -> Linear"""
693 return _IMP_core._object_cast_to_Linear(o)
695 _object_types.append(
"LogNormalMover")
698 def _object_cast_to_LogNormalMover(o):
699 r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
700 return _IMP_core._object_cast_to_LogNormalMover(o)
702 _object_types.append(
"MCCGSampler")
705 def _object_cast_to_MCCGSampler(o):
706 r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
707 return _IMP_core._object_cast_to_MCCGSampler(o)
709 _object_types.append(
"MonteCarlo")
712 def _object_cast_to_MonteCarlo(o):
713 r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
714 return _IMP_core._object_cast_to_MonteCarlo(o)
716 _object_types.append(
"MonteCarloWithLocalOptimization")
719 def _object_cast_to_MonteCarloWithLocalOptimization(o):
720 r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
721 return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
723 _object_types.append(
"MonteCarloWithBasinHopping")
726 def _object_cast_to_MonteCarloWithBasinHopping(o):
727 r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
728 return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
730 _object_types.append(
"MSConnectivityRestraint")
733 def _object_cast_to_MSConnectivityRestraint(o):
734 r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
735 return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
737 _object_types.append(
"NeighborsTable")
740 def _object_cast_to_NeighborsTable(o):
741 r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
742 return _IMP_core._object_cast_to_NeighborsTable(o)
744 _object_types.append(
"NormalMover")
747 def _object_cast_to_NormalMover(o):
748 r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
749 return _IMP_core._object_cast_to_NormalMover(o)
751 _object_types.append(
"NormalizedSphereDistancePairScore")
754 def _object_cast_to_NormalizedSphereDistancePairScore(o):
755 r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
756 return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
758 _object_types.append(
"OpenCubicSpline")
761 def _object_cast_to_OpenCubicSpline(o):
762 r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
763 return _IMP_core._object_cast_to_OpenCubicSpline(o)
765 _object_types.append(
"PairConstraint")
768 def _object_cast_to_PairConstraint(o):
769 r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
770 return _IMP_core._object_cast_to_PairConstraint(o)
772 _object_types.append(
"PairRestraint")
775 def _object_cast_to_PairRestraint(o):
776 r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
777 return _IMP_core._object_cast_to_PairRestraint(o)
779 _object_types.append(
"QuadConstraint")
782 def _object_cast_to_QuadConstraint(o):
783 r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
784 return _IMP_core._object_cast_to_QuadConstraint(o)
786 _object_types.append(
"QuadRestraint")
789 def _object_cast_to_QuadRestraint(o):
790 r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
791 return _IMP_core._object_cast_to_QuadRestraint(o)
793 _object_types.append(
"QuadraticClosePairsFinder")
796 def _object_cast_to_QuadraticClosePairsFinder(o):
797 r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
798 return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
800 _object_types.append(
"RefinedPairsPairScore")
803 def _object_cast_to_RefinedPairsPairScore(o):
804 r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
805 return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
807 _object_types.append(
"RestraintsScoringFunction")
810 def _object_cast_to_RestraintsScoringFunction(o):
811 r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
812 return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
814 _object_types.append(
"RigidBodyDistancePairScore")
817 def _object_cast_to_RigidBodyDistancePairScore(o):
818 r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
819 return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
821 _object_types.append(
"RigidBodyAnglePairScore")
824 def _object_cast_to_RigidBodyAnglePairScore(o):
825 r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
826 return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
828 _object_types.append(
"RigidBodyMover")
831 def _object_cast_to_RigidBodyMover(o):
832 r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
833 return _IMP_core._object_cast_to_RigidBodyMover(o)
835 _object_types.append(
"RigidBodyTunneler")
838 def _object_cast_to_RigidBodyTunneler(o):
839 r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
840 return _IMP_core._object_cast_to_RigidBodyTunneler(o)
842 _object_types.append(
"RigidBodyUmbrella")
845 def _object_cast_to_RigidBodyUmbrella(o):
846 r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
847 return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
849 _object_types.append(
"RigidClosePairsFinder")
852 def _object_cast_to_RigidClosePairsFinder(o):
853 r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
854 return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
856 _object_types.append(
"RigidMembersRefiner")
859 def _object_cast_to_RigidMembersRefiner(o):
860 r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
861 return _IMP_core._object_cast_to_RigidMembersRefiner(o)
863 _object_types.append(
"SingletonConstraint")
866 def _object_cast_to_SingletonConstraint(o):
867 r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
868 return _IMP_core._object_cast_to_SingletonConstraint(o)
870 _object_types.append(
"SingletonRestraint")
873 def _object_cast_to_SingletonRestraint(o):
874 r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
875 return _IMP_core._object_cast_to_SingletonRestraint(o)
877 _object_types.append(
"SoftSpherePairScore")
880 def _object_cast_to_SoftSpherePairScore(o):
881 r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
882 return _IMP_core._object_cast_to_SoftSpherePairScore(o)
884 _object_types.append(
"SphereDistancePairScore")
887 def _object_cast_to_SphereDistancePairScore(o):
888 r"""_object_cast_to_SphereDistancePairScore(Object o) -> SphereDistancePairScore"""
889 return _IMP_core._object_cast_to_SphereDistancePairScore(o)
891 _object_types.append(
"SphereDistanceToSingletonScore")
894 def _object_cast_to_SphereDistanceToSingletonScore(o):
895 r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
896 return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
898 _object_types.append(
"SoftSubSurfacePairScore")
901 def _object_cast_to_SoftSubSurfacePairScore(o):
902 r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
903 return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
905 _object_types.append(
"SoftSuperSurfacePairScore")
908 def _object_cast_to_SoftSuperSurfacePairScore(o):
909 r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
910 return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
912 _object_types.append(
"SurfaceDistancePairScore")
915 def _object_cast_to_SurfaceDistancePairScore(o):
916 r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
917 return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
919 _object_types.append(
"SurfaceHeightPairScore")
922 def _object_cast_to_SurfaceHeightPairScore(o):
923 r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
924 return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
926 _object_types.append(
"SurfaceDepthPairScore")
929 def _object_cast_to_SurfaceDepthPairScore(o):
930 r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
931 return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
933 _object_types.append(
"SurfaceTetheredChain")
936 def _object_cast_to_SurfaceTetheredChain(o):
937 r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
938 return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
940 _object_types.append(
"SurfaceSymmetryConstraint")
943 def _object_cast_to_SurfaceSymmetryConstraint(o):
944 r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
945 return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
947 _object_types.append(
"SteepestDescent")
950 def _object_cast_to_SteepestDescent(o):
951 r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
952 return _IMP_core._object_cast_to_SteepestDescent(o)
954 _object_types.append(
"TableRefiner")
957 def _object_cast_to_TableRefiner(o):
958 r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
959 return _IMP_core._object_cast_to_TableRefiner(o)
961 _object_types.append(
"Transform")
964 def _object_cast_to_Transform(o):
965 r"""_object_cast_to_Transform(Object o) -> Transform"""
966 return _IMP_core._object_cast_to_Transform(o)
968 _object_types.append(
"TransformationAndReflectionSymmetry")
971 def _object_cast_to_TransformationAndReflectionSymmetry(o):
972 r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
973 return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
975 _object_types.append(
"TransformationSymmetry")
978 def _object_cast_to_TransformationSymmetry(o):
979 r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
980 return _IMP_core._object_cast_to_TransformationSymmetry(o)
982 _object_types.append(
"TransformationSymmetryMover")
985 def _object_cast_to_TransformationSymmetryMover(o):
986 r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
987 return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
989 _object_types.append(
"TransformedDistancePairScore")
992 def _object_cast_to_TransformedDistancePairScore(o):
993 r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
994 return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
996 _object_types.append(
"TripletConstraint")
999 def _object_cast_to_TripletConstraint(o):
1000 r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1001 return _IMP_core._object_cast_to_TripletConstraint(o)
1003 _object_types.append(
"TripletRestraint")
1006 def _object_cast_to_TripletRestraint(o):
1007 r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1008 return _IMP_core._object_cast_to_TripletRestraint(o)
1010 _object_types.append(
"TypedPairScore")
1013 def _object_cast_to_TypedPairScore(o):
1014 r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1015 return _IMP_core._object_cast_to_TypedPairScore(o)
1017 _object_types.append(
"VolumeRestraint")
1020 def _object_cast_to_VolumeRestraint(o):
1021 r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1022 return _IMP_core._object_cast_to_VolumeRestraint(o)
1024 _object_types.append(
"WeightedSphereDistancePairScore")
1027 def _object_cast_to_WeightedSphereDistancePairScore(o):
1028 r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1029 return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1031 _object_types.append(
"MoveStatisticsScoreState")
1034 def _object_cast_to_MoveStatisticsScoreState(o):
1035 r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1036 return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1038 _object_types.append(
"MinimumRestraint")
1041 def _object_cast_to_MinimumRestraint(o):
1042 r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1043 return _IMP_core._object_cast_to_MinimumRestraint(o)
1045 _object_types.append(
"WriteRestraintScoresOptimizerState")
1048 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1049 r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1050 return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1052 _object_types.append(
"LateralSurfaceConstraint")
1055 def _object_cast_to_LateralSurfaceConstraint(o):
1056 r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1057 return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1059 _object_types.append(
"ConstantSingletonPredicate")
1062 def _object_cast_to_ConstantSingletonPredicate(o):
1063 r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1064 return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1066 _object_types.append(
"ConstantPairPredicate")
1069 def _object_cast_to_ConstantPairPredicate(o):
1070 r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1071 return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1073 _object_types.append(
"ConstantTripletPredicate")
1076 def _object_cast_to_ConstantTripletPredicate(o):
1077 r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1078 return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1080 _object_types.append(
"ConstantQuadPredicate")
1083 def _object_cast_to_ConstantQuadPredicate(o):
1084 r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1085 return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1087 _object_types.append(
"CoinFlipSingletonPredicate")
1090 def _object_cast_to_CoinFlipSingletonPredicate(o):
1091 r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1092 return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1094 _object_types.append(
"CoinFlipPairPredicate")
1097 def _object_cast_to_CoinFlipPairPredicate(o):
1098 r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1099 return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1101 _object_types.append(
"CoinFlipTripletPredicate")
1104 def _object_cast_to_CoinFlipTripletPredicate(o):
1105 r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1106 return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1108 _object_types.append(
"CoinFlipQuadPredicate")
1111 def _object_cast_to_CoinFlipQuadPredicate(o):
1112 r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1113 return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1115 _object_types.append(
"UnorderedTypeSingletonPredicate")
1118 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1119 r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1120 return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1122 _object_types.append(
"UnorderedTypePairPredicate")
1125 def _object_cast_to_UnorderedTypePairPredicate(o):
1126 r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1127 return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1129 _object_types.append(
"UnorderedTypeTripletPredicate")
1132 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1133 r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1134 return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1136 _object_types.append(
"UnorderedTypeQuadPredicate")
1139 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1140 r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1141 return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1143 _object_types.append(
"OrderedTypeSingletonPredicate")
1146 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1147 r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1148 return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1150 _object_types.append(
"OrderedTypePairPredicate")
1153 def _object_cast_to_OrderedTypePairPredicate(o):
1154 r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1155 return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1157 _object_types.append(
"OrderedTypeTripletPredicate")
1160 def _object_cast_to_OrderedTypeTripletPredicate(o):
1161 r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1162 return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1164 _object_types.append(
"OrderedTypeQuadPredicate")
1167 def _object_cast_to_OrderedTypeQuadPredicate(o):
1168 r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1169 return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1171 _object_types.append(
"AllSameSingletonPredicate")
1174 def _object_cast_to_AllSameSingletonPredicate(o):
1175 r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1176 return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1178 _object_types.append(
"AllSamePairPredicate")
1181 def _object_cast_to_AllSamePairPredicate(o):
1182 r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1183 return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1185 _object_types.append(
"AllSameTripletPredicate")
1188 def _object_cast_to_AllSameTripletPredicate(o):
1189 r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1190 return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1192 _object_types.append(
"AllSameQuadPredicate")
1195 def _object_cast_to_AllSameQuadPredicate(o):
1196 r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1197 return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1200 return [XYZ(x)
for x
in l]
1201 _plural_types.append(
"XYZs")
1204 _value_types.append(
"XYZ")
1208 return [XYZR(x)
for x
in l]
1209 _plural_types.append(
"XYZRs")
1212 _value_types.append(
"XYZR")
1215 def RigidBodies(l=[]):
1216 return [RigidBody(x)
for x
in l]
1217 _plural_types.append(
"RigidBodies")
1220 _value_types.append(
"RigidBody")
1223 def RigidBodyMembers(l=[]):
1224 return [RigidBodyMember(x)
for x
in l]
1225 _plural_types.append(
"RigidBodyMembers")
1228 _value_types.append(
"RigidBodyMember")
1231 def RigidMembers(l=[]):
1232 return [RigidMember(x)
for x
in l]
1233 _plural_types.append(
"RigidMembers")
1236 _value_types.append(
"RigidMember")
1239 def NonRigidMembers(l=[]):
1240 return [NonRigidMember(x)
for x
in l]
1241 _plural_types.append(
"NonRigidMembers")
1244 _value_types.append(
"NonRigidMember")
1247 def Centroids(l=[]):
1248 return [Centroid(x)
for x
in l]
1249 _plural_types.append(
"Centroids")
1252 _value_types.append(
"Centroid")
1256 return [Cover(x)
for x
in l]
1257 _plural_types.append(
"Covers")
1260 _value_types.append(
"Cover")
1263 def References(l=[]):
1264 return [Reference(x)
for x
in l]
1265 _plural_types.append(
"References")
1268 _value_types.append(
"Reference")
1272 _plural_types.append(
"ParticleTypes")
1273 _value_types.append(
"ParticleType")
1277 return [Typed(x)
for x
in l]
1278 _plural_types.append(
"Typeds")
1281 _value_types.append(
"Typed")
1284 def GenericHierarchies(l=[]):
1285 return [Hierarchy(x)
for x
in l]
1286 _plural_types.append(
"GenericHierarchies")
1289 _value_types.append(
"Hierarchy")
1292 def Gaussians(l=[]):
1293 return [Gaussian(x)
for x
in l]
1294 _plural_types.append(
"Gaussians")
1297 _value_types.append(
"Gaussian")
1300 def Directions(l=[]):
1301 return [Direction(x)
for x
in l]
1302 _plural_types.append(
"Directions")
1305 _value_types.append(
"Direction")
1308 def DirectionAngles(l=[]):
1309 return [DirectionAngle(x)
for x
in l]
1310 _plural_types.append(
"DirectionAngles")
1313 _value_types.append(
"DirectionAngle")
1317 return [Surface(x)
for x
in l]
1318 _plural_types.append(
"Surfaces")
1321 _value_types.append(
"Surface")
1324 def Provenances(l=[]):
1325 return [Provenance(x)
for x
in l]
1326 _plural_types.append(
"Provenances")
1329 _value_types.append(
"Provenance")
1332 def StructureProvenances(l=[]):
1333 return [StructureProvenance(x)
for x
in l]
1334 _plural_types.append(
"StructureProvenances")
1337 _value_types.append(
"StructureProvenance")
1340 def SampleProvenances(l=[]):
1341 return [SampleProvenance(x)
for x
in l]
1342 _plural_types.append(
"SampleProvenances")
1345 _value_types.append(
"SampleProvenance")
1348 def ClusterProvenances(l=[]):
1349 return [ClusterProvenance(x)
for x
in l]
1350 _plural_types.append(
"ClusterProvenances")
1353 _value_types.append(
"ClusterProvenance")
1356 def CombineProvenances(l=[]):
1357 return [CombineProvenance(x)
for x
in l]
1358 _plural_types.append(
"CombineProvenances")
1361 _value_types.append(
"CombineProvenance")
1364 def FilterProvenances(l=[]):
1365 return [FilterProvenance(x)
for x
in l]
1366 _plural_types.append(
"FilterProvenances")
1369 _value_types.append(
"FilterProvenance")
1372 def ScriptProvenances(l=[]):
1373 return [ScriptProvenance(x)
for x
in l]
1374 _plural_types.append(
"ScriptProvenances")
1377 _value_types.append(
"ScriptProvenance")
1380 def SoftwareProvenances(l=[]):
1381 return [SoftwareProvenance(x)
for x
in l]
1382 _plural_types.append(
"SoftwareProvenances")
1385 _value_types.append(
"SoftwareProvenance")
1388 def Provenanceds(l=[]):
1389 return [Provenanced(x)
for x
in l]
1390 _plural_types.append(
"Provenanceds")
1393 _value_types.append(
"Provenanced")
1396 HierarchyCounters=list
1397 _plural_types.append(
"HierarchyCounters")
1398 _value_types.append(
"HierarchyCounter")
1401 HierarchyTraitsList=list
1402 _plural_types.append(
"HierarchyTraitsList")
1403 _value_types.append(
"HierarchyTraits")
1406 _object_types.append(
"TruncatedHarmonicBound")
1409 def _object_cast_to_TruncatedHarmonicBound(o):
1410 r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1411 return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1413 _object_types.append(
"TruncatedHarmonicLowerBound")
1416 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1417 r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1418 return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1420 _object_types.append(
"TruncatedHarmonicUpperBound")
1423 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1424 r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1425 return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1427 _object_types.append(
"HarmonicDistancePairScore")
1430 def _object_cast_to_HarmonicDistancePairScore(o):
1431 r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1432 return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1434 _object_types.append(
"DistancePairScore")
1437 def _object_cast_to_DistancePairScore(o):
1438 r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1439 return _IMP_core._object_cast_to_DistancePairScore(o)
1441 _object_types.append(
"XYZRGeometry")
1444 def _object_cast_to_XYZRGeometry(o):
1445 r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1446 return _IMP_core._object_cast_to_XYZRGeometry(o)
1448 _object_types.append(
"XYZRsGeometry")
1451 def _object_cast_to_XYZRsGeometry(o):
1452 r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1453 return _IMP_core._object_cast_to_XYZRsGeometry(o)
1455 _object_types.append(
"XYZDerivativeGeometry")
1458 def _object_cast_to_XYZDerivativeGeometry(o):
1459 r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1460 return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1462 _object_types.append(
"XYZDerivativesGeometry")
1465 def _object_cast_to_XYZDerivativesGeometry(o):
1466 r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1467 return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1469 _object_types.append(
"RigidBodyDerivativeGeometry")
1472 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1473 r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1474 return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1476 _object_types.append(
"RigidBodyDerivativesGeometry")
1479 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1480 r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1481 return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1483 _object_types.append(
"RigidBodyHierarchyGeometry")
1486 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1487 r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1488 return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1490 _object_types.append(
"RigidBodyFrameGeometry")
1493 def _object_cast_to_RigidBodyFrameGeometry(o):
1494 r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1495 return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1497 _object_types.append(
"RigidBodyFramesGeometry")
1500 def _object_cast_to_RigidBodyFramesGeometry(o):
1501 r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1502 return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1504 _object_types.append(
"RigidBodyTorque")
1507 def _object_cast_to_RigidBodyTorque(o):
1508 r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1509 return _IMP_core._object_cast_to_RigidBodyTorque(o)
1511 _object_types.append(
"EdgePairGeometry")
1514 def _object_cast_to_EdgePairGeometry(o):
1515 r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1516 return _IMP_core._object_cast_to_EdgePairGeometry(o)
1518 _object_types.append(
"EdgePairsGeometry")
1521 def _object_cast_to_EdgePairsGeometry(o):
1522 r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1523 return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1525 _object_types.append(
"SurfaceGeometry")
1528 def _object_cast_to_SurfaceGeometry(o):
1529 r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1530 return _IMP_core._object_cast_to_SurfaceGeometry(o)
1532 _object_types.append(
"SurfaceGeometryConstraint")
1535 def _object_cast_to_SurfaceGeometryConstraint(o):
1536 r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1537 return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1539 _object_types.append(
"AttributeSingletonPredicate")
1542 def _object_cast_to_AttributeSingletonPredicate(o):
1543 r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1544 return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1546 _object_types.append(
"InBoundingBox3DSingletonPredicate")
1549 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1550 r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1551 return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1553 _object_types.append(
"IsCollisionPairPredicate")
1556 def _object_cast_to_IsCollisionPairPredicate(o):
1557 r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1558 return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1560 BinormalTermList=list
1561 _plural_types.append(
"BinormalTermList")
1562 _value_types.append(
"BinormalTerm")
1565 _object_types.append(
"MultipleBinormalRestraint")
1568 def _object_cast_to_MultipleBinormalRestraint(o):
1569 r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1570 return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1571 class ClosePairsFinder(IMP._ParticleInputs,
IMP.Object):
1572 r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1574 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1576 def __init__(self, *args, **kwargs):
1577 raise AttributeError(
"No constructor defined - class is abstract")
1578 __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1580 def get_close_pairs(self, *args):
1582 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1583 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1584 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1585 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1587 return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1589 def set_distance(self, d):
1590 r"""set_distance(ClosePairsFinder self, double d)"""
1591 return _IMP_core.ClosePairsFinder_set_distance(self, d)
1594 r"""get_distance(ClosePairsFinder self) -> double"""
1595 return _IMP_core.ClosePairsFinder_get_distance(self)
1596 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)
1597 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1598 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1599 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1601 def remove_pair_filter(self, d):
1602 r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1603 return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1605 def _python_index_pair_filter(self, d, start, stop):
1606 r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1607 return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1609 def remove_pair_filters(self, d):
1610 r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1611 return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1613 def set_pair_filters(self, ps):
1614 r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1615 return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1617 def set_pair_filters_order(self, objs):
1618 r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1619 return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1621 def add_pair_filter(self, obj):
1622 r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1623 return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1625 def add_pair_filters(self, objs):
1626 r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1627 return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1629 def clear_pair_filters(self):
1630 r"""clear_pair_filters(ClosePairsFinder self)"""
1631 return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1633 def get_number_of_pair_filters(self):
1634 r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1635 return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1637 def get_has_pair_filters(self):
1638 r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1639 return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1641 def get_pair_filter(self, i):
1642 r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1643 return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1645 def get_pair_filters(self):
1646 r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1647 return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1649 def erase_pair_filter(self, i):
1650 r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1651 return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1653 def reserve_pair_filters(self, sz):
1654 r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1655 return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1658 r"""__str__(ClosePairsFinder self) -> std::string"""
1659 return _IMP_core.ClosePairsFinder___str__(self)
1662 r"""__repr__(ClosePairsFinder self) -> std::string"""
1663 return _IMP_core.ClosePairsFinder___repr__(self)
1667 return _object_cast_to_ClosePairsFinder(o)
1671 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1672 class MonteCarloMoverResult(IMP._Value):
1673 r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1675 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1677 def __init__(self, *args):
1678 r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1679 _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1682 r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1683 return _IMP_core.MonteCarloMoverResult___hash__(self)
1685 def show(self, *args):
1686 r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1687 return _IMP_core.MonteCarloMoverResult_show(self, *args)
1689 def __cmp__(self, o):
1690 r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1691 return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1693 def __eq__(self, o):
1694 r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1695 return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1697 def __ne__(self, o):
1698 r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1699 return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1701 def __lt__(self, o):
1702 r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1703 return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1705 def __gt__(self, o):
1706 r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1707 return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1709 def __ge__(self, o):
1710 r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1711 return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1713 def __le__(self, o):
1714 r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1715 return _IMP_core.MonteCarloMoverResult___le__(self, o)
1717 def get_moved_particles(self):
1718 r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1719 return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1721 def set_moved_particles(self, v):
1722 r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1723 return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1725 def get_proposal_ratio(self):
1726 r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1727 return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1729 def set_proposal_ratio(self, v):
1730 r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1731 return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1734 r"""__str__(MonteCarloMoverResult self) -> std::string"""
1735 return _IMP_core.MonteCarloMoverResult___str__(self)
1738 r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1739 return _IMP_core.MonteCarloMoverResult___repr__(self)
1740 __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1743 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1745 r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1747 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1749 def __init__(self, *args):
1751 __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1752 __init__(MonteCarloMover self) -> MonteCarloMover
1754 if self.__class__ == MonteCarloMover:
1758 _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1760 if self.__class__ != MonteCarloMover:
1761 _director_objects.register(self)
1767 r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1768 return _IMP_core.MonteCarloMover_propose(self)
1771 r"""reject(MonteCarloMover self)"""
1772 return _IMP_core.MonteCarloMover_reject(self)
1775 r"""accept(MonteCarloMover self)"""
1776 return _IMP_core.MonteCarloMover_accept(self)
1778 def get_number_of_proposed(self):
1779 r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1780 return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1782 def get_number_of_accepted(self):
1783 r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1784 return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1786 def reset_statistics(self):
1787 r"""reset_statistics(MonteCarloMover self)"""
1788 return _IMP_core.MonteCarloMover_reset_statistics(self)
1790 def do_propose(self):
1791 r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1792 return _IMP_core.MonteCarloMover_do_propose(self)
1794 def do_reject(self):
1795 r"""do_reject(MonteCarloMover self)"""
1796 return _IMP_core.MonteCarloMover_do_reject(self)
1798 def do_accept(self):
1799 r"""do_accept(MonteCarloMover self)"""
1800 return _IMP_core.MonteCarloMover_do_accept(self)
1802 def do_get_outputs(self):
1803 r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1804 return _IMP_core.MonteCarloMover_do_get_outputs(self)
1807 r"""__str__(MonteCarloMover self) -> std::string"""
1808 return _IMP_core.MonteCarloMover___str__(self)
1811 r"""__repr__(MonteCarloMover self) -> std::string"""
1812 return _IMP_core.MonteCarloMover___repr__(self)
1816 return _object_cast_to_MonteCarloMover(o)
1819 def get_type_name(self):
1820 return self.__class__.__name__
1821 def do_show(self, out):
1823 def get_version_info(self):
1824 if"IMP::core" ==
"IMP":
1825 return VersionInfo(self.__module__,
1832 return _object_cast_to_MonteCarloMover(o)
1834 __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1835 def __disown__(self):
1837 _IMP_core.disown_MonteCarloMover(self)
1838 return weakref.proxy(self)
1840 def do_destroy(self):
1841 r"""do_destroy(MonteCarloMover self)"""
1842 return _IMP_core.MonteCarloMover_do_destroy(self)
1844 def handle_set_has_required_score_states(self, arg0):
1845 r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1846 return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1848 def do_get_inputs(self):
1849 r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1850 return _IMP_core.MonteCarloMover_do_get_inputs(self)
1852 def do_get_interactions(self):
1853 r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1854 return _IMP_core.MonteCarloMover_do_get_interactions(self)
1857 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1859 r"""Proxy of C++ IMP::core::XYZ class."""
1861 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1864 def get_coordinate_key(i):
1865 r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1866 return _IMP_core.XYZ_get_coordinate_key(i)
1868 def __init__(self, *args):
1870 __init__(XYZ self) -> XYZ
1871 __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1872 __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1874 _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1876 def show(self, *args):
1877 r"""show(XYZ self, _ostream out=std::cout)"""
1878 return _IMP_core.XYZ_show(self, *args)
1881 def setup_particle(*args):
1883 setup_particle(Model m, ParticleIndex pi) -> XYZ
1884 setup_particle(_ParticleAdaptor pa) -> XYZ
1885 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1886 setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1888 return _IMP_core.XYZ_setup_particle(*args)
1891 r"""get_x(XYZ self) -> IMP::Float"""
1892 return _IMP_core.XYZ_get_x(self)
1895 r"""set_x(XYZ self, IMP::Float t)"""
1896 return _IMP_core.XYZ_set_x(self, t)
1899 r"""get_y(XYZ self) -> IMP::Float"""
1900 return _IMP_core.XYZ_get_y(self)
1903 r"""set_y(XYZ self, IMP::Float t)"""
1904 return _IMP_core.XYZ_set_y(self, t)
1907 r"""get_z(XYZ self) -> IMP::Float"""
1908 return _IMP_core.XYZ_get_z(self)
1911 r"""set_z(XYZ self, IMP::Float t)"""
1912 return _IMP_core.XYZ_set_z(self, t)
1914 def set_coordinate(self, i, v):
1915 r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1916 return _IMP_core.XYZ_set_coordinate(self, i, v)
1918 def set_coordinates(self, v):
1919 r"""set_coordinates(XYZ self, Vector3D v)"""
1920 return _IMP_core.XYZ_set_coordinates(self, v)
1922 def get_coordinate(self, i):
1923 r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1924 return _IMP_core.XYZ_get_coordinate(self, i)
1926 def add_to_derivatives(self, v, d):
1927 r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1928 return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1930 def get_coordinates_are_optimized(self):
1931 r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1932 return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1934 def set_coordinates_are_optimized(self, tf):
1935 r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1936 return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1938 def get_vector_to(self, b):
1939 r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1940 return _IMP_core.XYZ_get_vector_to(self, b)
1942 def get_coordinates(self):
1943 r"""get_coordinates(XYZ self) -> Vector3D"""
1944 return _IMP_core.XYZ_get_coordinates(self)
1946 def get_derivatives(self):
1947 r"""get_derivatives(XYZ self) -> Vector3D"""
1948 return _IMP_core.XYZ_get_derivatives(self)
1951 def get_is_setup(*args):
1953 get_is_setup(_ParticleAdaptor p) -> bool
1954 get_is_setup(Model m, ParticleIndex pi) -> bool
1956 return _IMP_core.XYZ_get_is_setup(*args)
1960 r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1961 return _IMP_core.XYZ_get_xyz_keys()
1963 def add_attribute(self, *args):
1965 add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1966 add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1967 add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1968 add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1969 add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1970 add_attribute(XYZ self, StringKey a0, IMP::String a1)
1971 add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1972 add_attribute(XYZ self, ObjectKey a0, Object a1)
1973 add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1974 add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1975 add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1976 add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1978 return _IMP_core.XYZ_add_attribute(self, *args)
1980 def get_value(self, *args):
1982 get_value(XYZ self, FloatKey a0) -> IMP::Float
1983 get_value(XYZ self, IntKey a0) -> IMP::Int
1984 get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1985 get_value(XYZ self, IntsKey a0) -> IMP::Ints
1986 get_value(XYZ self, StringKey a0) -> IMP::String
1987 get_value(XYZ self, ParticleIndexKey a0) -> Particle
1988 get_value(XYZ self, ObjectKey a0) -> Object
1989 get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1990 get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1991 get_value(XYZ self, SparseStringKey a0) -> IMP::String
1992 get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1994 return _IMP_core.XYZ_get_value(self, *args)
1996 def set_value(self, *args):
1998 set_value(XYZ self, FloatKey a0, IMP::Float a1)
1999 set_value(XYZ self, IntKey a0, IMP::Int a1)
2000 set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
2001 set_value(XYZ self, IntsKey a0, IMP::Ints a1)
2002 set_value(XYZ self, StringKey a0, IMP::String a1)
2003 set_value(XYZ self, ParticleIndexKey a0, Particle a1)
2004 set_value(XYZ self, ObjectKey a0, Object a1)
2005 set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
2006 set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2007 set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2008 set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2010 return _IMP_core.XYZ_set_value(self, *args)
2012 def remove_attribute(self, *args):
2014 remove_attribute(XYZ self, FloatKey a0)
2015 remove_attribute(XYZ self, IntKey a0)
2016 remove_attribute(XYZ self, FloatsKey a0)
2017 remove_attribute(XYZ self, IntsKey a0)
2018 remove_attribute(XYZ self, StringKey a0)
2019 remove_attribute(XYZ self, ParticleIndexKey a0)
2020 remove_attribute(XYZ self, ObjectKey a0)
2021 remove_attribute(XYZ self, SparseFloatKey a0)
2022 remove_attribute(XYZ self, SparseIntKey a0)
2023 remove_attribute(XYZ self, SparseStringKey a0)
2024 remove_attribute(XYZ self, SparseParticleIndexKey a0)
2026 return _IMP_core.XYZ_remove_attribute(self, *args)
2028 def has_attribute(self, *args):
2030 has_attribute(XYZ self, FloatKey a0) -> bool
2031 has_attribute(XYZ self, IntKey a0) -> bool
2032 has_attribute(XYZ self, FloatsKey a0) -> bool
2033 has_attribute(XYZ self, IntsKey a0) -> bool
2034 has_attribute(XYZ self, StringKey a0) -> bool
2035 has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2036 has_attribute(XYZ self, ObjectKey a0) -> bool
2037 has_attribute(XYZ self, SparseFloatKey a0) -> bool
2038 has_attribute(XYZ self, SparseIntKey a0) -> bool
2039 has_attribute(XYZ self, SparseStringKey a0) -> bool
2040 has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2042 return _IMP_core.XYZ_has_attribute(self, *args)
2044 def get_derivative(self, *args):
2046 get_derivative(XYZ self, int i) -> IMP::Float
2047 get_derivative(XYZ self, FloatKey a0) -> double
2049 return _IMP_core.XYZ_get_derivative(self, *args)
2052 r"""get_name(XYZ self) -> std::string"""
2053 return _IMP_core.XYZ_get_name(self)
2055 def clear_caches(self):
2056 r"""clear_caches(XYZ self)"""
2057 return _IMP_core.XYZ_clear_caches(self)
2059 def set_name(self, a0):
2060 r"""set_name(XYZ self, std::string a0)"""
2061 return _IMP_core.XYZ_set_name(self, a0)
2064 r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2065 return _IMP_core.XYZ_set_check_level(self, a0)
2067 def add_to_derivative(self, *args):
2069 add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2070 add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2072 return _IMP_core.XYZ_add_to_derivative(self, *args)
2074 def set_is_optimized(self, a0, a1):
2075 r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2076 return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2078 def get_is_optimized(self, a0):
2079 r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2080 return _IMP_core.XYZ_get_is_optimized(self, a0)
2083 r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2084 return _IMP_core.XYZ_get_check_level(self)
2086 def __eq__(self, *args):
2088 __eq__(XYZ self, XYZ o) -> bool
2089 __eq__(XYZ self, Particle d) -> bool
2091 return _IMP_core.XYZ___eq__(self, *args)
2093 def __ne__(self, *args):
2095 __ne__(XYZ self, XYZ o) -> bool
2096 __ne__(XYZ self, Particle d) -> bool
2098 return _IMP_core.XYZ___ne__(self, *args)
2100 def __le__(self, *args):
2102 __le__(XYZ self, XYZ o) -> bool
2103 __le__(XYZ self, Particle d) -> bool
2105 return _IMP_core.XYZ___le__(self, *args)
2107 def __lt__(self, *args):
2109 __lt__(XYZ self, XYZ o) -> bool
2110 __lt__(XYZ self, Particle d) -> bool
2112 return _IMP_core.XYZ___lt__(self, *args)
2114 def __ge__(self, *args):
2116 __ge__(XYZ self, XYZ o) -> bool
2117 __ge__(XYZ self, Particle d) -> bool
2119 return _IMP_core.XYZ___ge__(self, *args)
2121 def __gt__(self, *args):
2123 __gt__(XYZ self, XYZ o) -> bool
2124 __gt__(XYZ self, Particle d) -> bool
2126 return _IMP_core.XYZ___gt__(self, *args)
2129 r"""__hash__(XYZ self) -> std::size_t"""
2130 return _IMP_core.XYZ___hash__(self)
2133 r"""__str__(XYZ self) -> std::string"""
2134 return _IMP_core.XYZ___str__(self)
2137 r"""__repr__(XYZ self) -> std::string"""
2138 return _IMP_core.XYZ___repr__(self)
2140 def _get_as_binary(self):
2141 r"""_get_as_binary(XYZ self) -> PyObject *"""
2142 return _IMP_core.XYZ__get_as_binary(self)
2144 def _set_from_binary(self, p):
2145 r"""_set_from_binary(XYZ self, PyObject * p)"""
2146 return _IMP_core.XYZ__set_from_binary(self, p)
2148 def __getstate__(self):
2149 p = self._get_as_binary()
2150 if len(self.__dict__) > 1:
2151 d = self.__dict__.copy()
2156 def __setstate__(self, p):
2157 if not hasattr(self,
'this'):
2159 if isinstance(p, tuple):
2161 self.__dict__.update(d)
2162 return self._set_from_binary(p)
2164 __swig_destroy__ = _IMP_core.delete_XYZ
2167 _IMP_core.XYZ_swigregister(XYZ)
2170 r"""set_vector_geometry(XYZ d, Vector3D v)"""
2171 return _IMP_core.set_vector_geometry(d, v)
2174 r"""get_vector_geometry(XYZ d) -> Vector3D"""
2175 return _IMP_core.get_vector_geometry(d)
2178 r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2179 return _IMP_core.get_dihedral(a, b, c, d)
2181 r"""Proxy of C++ IMP::core::XYZR class."""
2183 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2185 def __init__(self, *args):
2187 __init__(XYZR self) -> XYZR
2188 __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2189 __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2191 _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2193 def show(self, *args):
2194 r"""show(XYZR self, _ostream out=std::cout)"""
2195 return _IMP_core.XYZR_show(self, *args)
2198 def setup_particle(*args):
2200 setup_particle(Model m, ParticleIndex pi) -> XYZR
2201 setup_particle(_ParticleAdaptor pa) -> XYZR
2202 setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2203 setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2204 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2205 setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2207 return _IMP_core.XYZR_setup_particle(*args)
2210 def get_is_setup(*args):
2212 get_is_setup(_ParticleAdaptor p) -> bool
2213 get_is_setup(Model m, ParticleIndex pi) -> bool
2215 return _IMP_core.XYZR_get_is_setup(*args)
2217 def get_radius(self):
2218 r"""get_radius(XYZR self) -> double"""
2219 return _IMP_core.XYZR_get_radius(self)
2221 def set_radius(self, r):
2222 r"""set_radius(XYZR self, double r)"""
2223 return _IMP_core.XYZR_set_radius(self, r)
2225 def get_sphere(self):
2226 r"""get_sphere(XYZR self) -> Sphere3D"""
2227 return _IMP_core.XYZR_get_sphere(self)
2229 def set_sphere(self, s):
2230 r"""set_sphere(XYZR self, Sphere3D s)"""
2231 return _IMP_core.XYZR_set_sphere(self, s)
2234 def get_radius_key():
2235 r"""get_radius_key() -> FloatKey"""
2236 return _IMP_core.XYZR_get_radius_key()
2238 def add_to_radius_derivative(self, v, d):
2239 r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2240 return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2242 def add_attribute(self, *args):
2244 add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2245 add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2246 add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2247 add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2248 add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2249 add_attribute(XYZR self, StringKey a0, IMP::String a1)
2250 add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2251 add_attribute(XYZR self, ObjectKey a0, Object a1)
2252 add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2253 add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2254 add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2255 add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2257 return _IMP_core.XYZR_add_attribute(self, *args)
2259 def get_value(self, *args):
2261 get_value(XYZR self, FloatKey a0) -> IMP::Float
2262 get_value(XYZR self, IntKey a0) -> IMP::Int
2263 get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2264 get_value(XYZR self, IntsKey a0) -> IMP::Ints
2265 get_value(XYZR self, StringKey a0) -> IMP::String
2266 get_value(XYZR self, ParticleIndexKey a0) -> Particle
2267 get_value(XYZR self, ObjectKey a0) -> Object
2268 get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2269 get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2270 get_value(XYZR self, SparseStringKey a0) -> IMP::String
2271 get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2273 return _IMP_core.XYZR_get_value(self, *args)
2275 def set_value(self, *args):
2277 set_value(XYZR self, FloatKey a0, IMP::Float a1)
2278 set_value(XYZR self, IntKey a0, IMP::Int a1)
2279 set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2280 set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2281 set_value(XYZR self, StringKey a0, IMP::String a1)
2282 set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2283 set_value(XYZR self, ObjectKey a0, Object a1)
2284 set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2285 set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2286 set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2287 set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2289 return _IMP_core.XYZR_set_value(self, *args)
2291 def remove_attribute(self, *args):
2293 remove_attribute(XYZR self, FloatKey a0)
2294 remove_attribute(XYZR self, IntKey a0)
2295 remove_attribute(XYZR self, FloatsKey a0)
2296 remove_attribute(XYZR self, IntsKey a0)
2297 remove_attribute(XYZR self, StringKey a0)
2298 remove_attribute(XYZR self, ParticleIndexKey a0)
2299 remove_attribute(XYZR self, ObjectKey a0)
2300 remove_attribute(XYZR self, SparseFloatKey a0)
2301 remove_attribute(XYZR self, SparseIntKey a0)
2302 remove_attribute(XYZR self, SparseStringKey a0)
2303 remove_attribute(XYZR self, SparseParticleIndexKey a0)
2305 return _IMP_core.XYZR_remove_attribute(self, *args)
2307 def has_attribute(self, *args):
2309 has_attribute(XYZR self, FloatKey a0) -> bool
2310 has_attribute(XYZR self, IntKey a0) -> bool
2311 has_attribute(XYZR self, FloatsKey a0) -> bool
2312 has_attribute(XYZR self, IntsKey a0) -> bool
2313 has_attribute(XYZR self, StringKey a0) -> bool
2314 has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2315 has_attribute(XYZR self, ObjectKey a0) -> bool
2316 has_attribute(XYZR self, SparseFloatKey a0) -> bool
2317 has_attribute(XYZR self, SparseIntKey a0) -> bool
2318 has_attribute(XYZR self, SparseStringKey a0) -> bool
2319 has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2321 return _IMP_core.XYZR_has_attribute(self, *args)
2323 def get_derivative(self, a0):
2324 r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2325 return _IMP_core.XYZR_get_derivative(self, a0)
2328 r"""get_name(XYZR self) -> std::string"""
2329 return _IMP_core.XYZR_get_name(self)
2331 def clear_caches(self):
2332 r"""clear_caches(XYZR self)"""
2333 return _IMP_core.XYZR_clear_caches(self)
2335 def set_name(self, a0):
2336 r"""set_name(XYZR self, std::string a0)"""
2337 return _IMP_core.XYZR_set_name(self, a0)
2340 r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2341 return _IMP_core.XYZR_set_check_level(self, a0)
2343 def add_to_derivative(self, a0, a1, a2):
2344 r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2345 return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2347 def set_is_optimized(self, a0, a1):
2348 r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2349 return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2351 def get_is_optimized(self, a0):
2352 r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2353 return _IMP_core.XYZR_get_is_optimized(self, a0)
2356 r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2357 return _IMP_core.XYZR_get_check_level(self)
2359 def __eq__(self, *args):
2361 __eq__(XYZR self, XYZR o) -> bool
2362 __eq__(XYZR self, Particle d) -> bool
2364 return _IMP_core.XYZR___eq__(self, *args)
2366 def __ne__(self, *args):
2368 __ne__(XYZR self, XYZR o) -> bool
2369 __ne__(XYZR self, Particle d) -> bool
2371 return _IMP_core.XYZR___ne__(self, *args)
2373 def __le__(self, *args):
2375 __le__(XYZR self, XYZR o) -> bool
2376 __le__(XYZR self, Particle d) -> bool
2378 return _IMP_core.XYZR___le__(self, *args)
2380 def __lt__(self, *args):
2382 __lt__(XYZR self, XYZR o) -> bool
2383 __lt__(XYZR self, Particle d) -> bool
2385 return _IMP_core.XYZR___lt__(self, *args)
2387 def __ge__(self, *args):
2389 __ge__(XYZR self, XYZR o) -> bool
2390 __ge__(XYZR self, Particle d) -> bool
2392 return _IMP_core.XYZR___ge__(self, *args)
2394 def __gt__(self, *args):
2396 __gt__(XYZR self, XYZR o) -> bool
2397 __gt__(XYZR self, Particle d) -> bool
2399 return _IMP_core.XYZR___gt__(self, *args)
2402 r"""__hash__(XYZR self) -> std::size_t"""
2403 return _IMP_core.XYZR___hash__(self)
2406 r"""__str__(XYZR self) -> std::string"""
2407 return _IMP_core.XYZR___str__(self)
2410 r"""__repr__(XYZR self) -> std::string"""
2411 return _IMP_core.XYZR___repr__(self)
2413 def _get_as_binary(self):
2414 r"""_get_as_binary(XYZR self) -> PyObject *"""
2415 return _IMP_core.XYZR__get_as_binary(self)
2417 def _set_from_binary(self, p):
2418 r"""_set_from_binary(XYZR self, PyObject * p)"""
2419 return _IMP_core.XYZR__set_from_binary(self, p)
2421 def __getstate__(self):
2422 p = self._get_as_binary()
2423 if len(self.__dict__) > 1:
2424 d = self.__dict__.copy()
2429 def __setstate__(self, p):
2430 if not hasattr(self,
'this'):
2432 if isinstance(p, tuple):
2434 self.__dict__.update(d)
2435 return self._set_from_binary(p)
2437 __swig_destroy__ = _IMP_core.delete_XYZR
2440 _IMP_core.XYZR_swigregister(XYZR)
2443 r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2444 return _IMP_core.set_enclosing_sphere(b, v, slack)
2447 r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2448 return _IMP_core.set_enclosing_radius(b, v)
2451 r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2452 return _IMP_core.get_enclosing_sphere(v)
2455 r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2456 return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2458 r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2460 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2462 def __init__(self, *args):
2464 __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2465 __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2467 _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2469 def get_version_info(self):
2470 r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2471 return _IMP_core.XYZRGeometry_get_version_info(self)
2472 __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2475 r"""__str__(XYZRGeometry self) -> std::string"""
2476 return _IMP_core.XYZRGeometry___str__(self)
2479 r"""__repr__(XYZRGeometry self) -> std::string"""
2480 return _IMP_core.XYZRGeometry___repr__(self)
2484 return _object_cast_to_XYZRGeometry(o)
2488 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2490 r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2492 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2494 def __init__(self, sc):
2495 r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2496 _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2498 def get_version_info(self):
2499 r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2500 return _IMP_core.XYZRsGeometry_get_version_info(self)
2501 __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2504 r"""__str__(XYZRsGeometry self) -> std::string"""
2505 return _IMP_core.XYZRsGeometry___str__(self)
2508 r"""__repr__(XYZRsGeometry self) -> std::string"""
2509 return _IMP_core.XYZRsGeometry___repr__(self)
2513 return _object_cast_to_XYZRsGeometry(o)
2517 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2519 r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2521 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2523 def __init__(self, *args):
2525 __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2526 __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2528 _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2530 def get_version_info(self):
2531 r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2532 return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2533 __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2536 r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2537 return _IMP_core.XYZDerivativeGeometry___str__(self)
2540 r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2541 return _IMP_core.XYZDerivativeGeometry___repr__(self)
2545 return _object_cast_to_XYZDerivativeGeometry(o)
2549 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2551 r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2553 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2555 def __init__(self, sc):
2556 r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2557 _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2559 def get_version_info(self):
2560 r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2561 return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2562 __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2565 r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2566 return _IMP_core.XYZDerivativesGeometry___str__(self)
2569 r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2570 return _IMP_core.XYZDerivativesGeometry___repr__(self)
2574 return _object_cast_to_XYZDerivativesGeometry(o)
2578 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2580 r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2584 def __init__(self, pp):
2585 r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2586 _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2588 def get_version_info(self):
2589 r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2590 return _IMP_core.EdgePairGeometry_get_version_info(self)
2591 __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2594 r"""__str__(EdgePairGeometry self) -> std::string"""
2595 return _IMP_core.EdgePairGeometry___str__(self)
2598 r"""__repr__(EdgePairGeometry self) -> std::string"""
2599 return _IMP_core.EdgePairGeometry___repr__(self)
2603 return _object_cast_to_EdgePairGeometry(o)
2607 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2609 r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2611 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2613 def __init__(self, sc):
2614 r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2615 _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2617 def get_version_info(self):
2618 r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2619 return _IMP_core.EdgePairsGeometry_get_version_info(self)
2620 __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2623 r"""__str__(EdgePairsGeometry self) -> std::string"""
2624 return _IMP_core.EdgePairsGeometry___str__(self)
2627 r"""__repr__(EdgePairsGeometry self) -> std::string"""
2628 return _IMP_core.EdgePairsGeometry___repr__(self)
2632 return _object_cast_to_EdgePairsGeometry(o)
2636 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2638 r"""Proxy of C++ IMP::core::Direction class."""
2640 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2643 def do_setup_particle(m, pi, v):
2644 r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2645 return _IMP_core.Direction_do_setup_particle(m, pi, v)
2647 def __init__(self, *args):
2649 __init__(Direction self) -> Direction
2650 __init__(Direction self, Model m, ParticleIndex id) -> Direction
2651 __init__(Direction self, _ParticleAdaptor d) -> Direction
2653 _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2655 def show(self, *args):
2656 r"""show(Direction self, _ostream out=std::cout)"""
2657 return _IMP_core.Direction_show(self, *args)
2660 def setup_particle(*args):
2662 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2663 setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2665 return _IMP_core.Direction_setup_particle(*args)
2668 def get_is_setup(*args):
2670 get_is_setup(_ParticleAdaptor p) -> bool
2671 get_is_setup(Model m, ParticleIndex pi) -> bool
2673 return _IMP_core.Direction_get_is_setup(*args)
2676 def get_direction_key(i):
2677 r"""get_direction_key(unsigned int i) -> FloatKey"""
2678 return _IMP_core.Direction_get_direction_key(i)
2680 def get_direction_derivative(self, i):
2681 r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2682 return _IMP_core.Direction_get_direction_derivative(self, i)
2684 def get_direction_derivatives(self):
2685 r"""get_direction_derivatives(Direction self) -> Vector3D"""
2686 return _IMP_core.Direction_get_direction_derivatives(self)
2688 def add_to_direction_derivative(self, i, v, d):
2689 r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2690 return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2692 def add_to_direction_derivatives(self, v, d):
2693 r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2694 return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2696 def get_direction_is_optimized(self):
2697 r"""get_direction_is_optimized(Direction self) -> bool"""
2698 return _IMP_core.Direction_get_direction_is_optimized(self)
2700 def set_direction_is_optimized(self, tf):
2701 r"""set_direction_is_optimized(Direction self, bool tf)"""
2702 return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2704 def get_direction(self):
2705 r"""get_direction(Direction self) -> Vector3D"""
2706 return _IMP_core.Direction_get_direction(self)
2708 def set_direction(self, v):
2709 r"""set_direction(Direction self, Vector3D v)"""
2710 return _IMP_core.Direction_set_direction(self, v)
2713 r"""reflect(Direction self)"""
2714 return _IMP_core.Direction_reflect(self)
2716 def add_attribute(self, *args):
2718 add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2719 add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2720 add_attribute(Direction self, IntKey a0, IMP::Int a1)
2721 add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2722 add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2723 add_attribute(Direction self, StringKey a0, IMP::String a1)
2724 add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2725 add_attribute(Direction self, ObjectKey a0, Object a1)
2726 add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2727 add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2728 add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2729 add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2731 return _IMP_core.Direction_add_attribute(self, *args)
2733 def get_value(self, *args):
2735 get_value(Direction self, FloatKey a0) -> IMP::Float
2736 get_value(Direction self, IntKey a0) -> IMP::Int
2737 get_value(Direction self, FloatsKey a0) -> IMP::Floats
2738 get_value(Direction self, IntsKey a0) -> IMP::Ints
2739 get_value(Direction self, StringKey a0) -> IMP::String
2740 get_value(Direction self, ParticleIndexKey a0) -> Particle
2741 get_value(Direction self, ObjectKey a0) -> Object
2742 get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2743 get_value(Direction self, SparseIntKey a0) -> IMP::Int
2744 get_value(Direction self, SparseStringKey a0) -> IMP::String
2745 get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2747 return _IMP_core.Direction_get_value(self, *args)
2749 def set_value(self, *args):
2751 set_value(Direction self, FloatKey a0, IMP::Float a1)
2752 set_value(Direction self, IntKey a0, IMP::Int a1)
2753 set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2754 set_value(Direction self, IntsKey a0, IMP::Ints a1)
2755 set_value(Direction self, StringKey a0, IMP::String a1)
2756 set_value(Direction self, ParticleIndexKey a0, Particle a1)
2757 set_value(Direction self, ObjectKey a0, Object a1)
2758 set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2759 set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2760 set_value(Direction self, SparseStringKey a0, IMP::String a1)
2761 set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2763 return _IMP_core.Direction_set_value(self, *args)
2765 def remove_attribute(self, *args):
2767 remove_attribute(Direction self, FloatKey a0)
2768 remove_attribute(Direction self, IntKey a0)
2769 remove_attribute(Direction self, FloatsKey a0)
2770 remove_attribute(Direction self, IntsKey a0)
2771 remove_attribute(Direction self, StringKey a0)
2772 remove_attribute(Direction self, ParticleIndexKey a0)
2773 remove_attribute(Direction self, ObjectKey a0)
2774 remove_attribute(Direction self, SparseFloatKey a0)
2775 remove_attribute(Direction self, SparseIntKey a0)
2776 remove_attribute(Direction self, SparseStringKey a0)
2777 remove_attribute(Direction self, SparseParticleIndexKey a0)
2779 return _IMP_core.Direction_remove_attribute(self, *args)
2781 def has_attribute(self, *args):
2783 has_attribute(Direction self, FloatKey a0) -> bool
2784 has_attribute(Direction self, IntKey a0) -> bool
2785 has_attribute(Direction self, FloatsKey a0) -> bool
2786 has_attribute(Direction self, IntsKey a0) -> bool
2787 has_attribute(Direction self, StringKey a0) -> bool
2788 has_attribute(Direction self, ParticleIndexKey a0) -> bool
2789 has_attribute(Direction self, ObjectKey a0) -> bool
2790 has_attribute(Direction self, SparseFloatKey a0) -> bool
2791 has_attribute(Direction self, SparseIntKey a0) -> bool
2792 has_attribute(Direction self, SparseStringKey a0) -> bool
2793 has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2795 return _IMP_core.Direction_has_attribute(self, *args)
2797 def get_derivative(self, a0):
2798 r"""get_derivative(Direction self, FloatKey a0) -> double"""
2799 return _IMP_core.Direction_get_derivative(self, a0)
2802 r"""get_name(Direction self) -> std::string"""
2803 return _IMP_core.Direction_get_name(self)
2805 def clear_caches(self):
2806 r"""clear_caches(Direction self)"""
2807 return _IMP_core.Direction_clear_caches(self)
2809 def set_name(self, a0):
2810 r"""set_name(Direction self, std::string a0)"""
2811 return _IMP_core.Direction_set_name(self, a0)
2814 r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2815 return _IMP_core.Direction_set_check_level(self, a0)
2817 def add_to_derivative(self, a0, a1, a2):
2818 r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2819 return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2821 def set_is_optimized(self, a0, a1):
2822 r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2823 return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2825 def get_is_optimized(self, a0):
2826 r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2827 return _IMP_core.Direction_get_is_optimized(self, a0)
2830 r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2831 return _IMP_core.Direction_get_check_level(self)
2833 def __eq__(self, *args):
2835 __eq__(Direction self, Direction o) -> bool
2836 __eq__(Direction self, Particle d) -> bool
2838 return _IMP_core.Direction___eq__(self, *args)
2840 def __ne__(self, *args):
2842 __ne__(Direction self, Direction o) -> bool
2843 __ne__(Direction self, Particle d) -> bool
2845 return _IMP_core.Direction___ne__(self, *args)
2847 def __le__(self, *args):
2849 __le__(Direction self, Direction o) -> bool
2850 __le__(Direction self, Particle d) -> bool
2852 return _IMP_core.Direction___le__(self, *args)
2854 def __lt__(self, *args):
2856 __lt__(Direction self, Direction o) -> bool
2857 __lt__(Direction self, Particle d) -> bool
2859 return _IMP_core.Direction___lt__(self, *args)
2861 def __ge__(self, *args):
2863 __ge__(Direction self, Direction o) -> bool
2864 __ge__(Direction self, Particle d) -> bool
2866 return _IMP_core.Direction___ge__(self, *args)
2868 def __gt__(self, *args):
2870 __gt__(Direction self, Direction o) -> bool
2871 __gt__(Direction self, Particle d) -> bool
2873 return _IMP_core.Direction___gt__(self, *args)
2876 r"""__hash__(Direction self) -> std::size_t"""
2877 return _IMP_core.Direction___hash__(self)
2880 r"""__str__(Direction self) -> std::string"""
2881 return _IMP_core.Direction___str__(self)
2884 r"""__repr__(Direction self) -> std::string"""
2885 return _IMP_core.Direction___repr__(self)
2887 def _get_as_binary(self):
2888 r"""_get_as_binary(Direction self) -> PyObject *"""
2889 return _IMP_core.Direction__get_as_binary(self)
2891 def _set_from_binary(self, p):
2892 r"""_set_from_binary(Direction self, PyObject * p)"""
2893 return _IMP_core.Direction__set_from_binary(self, p)
2895 def __getstate__(self):
2896 p = self._get_as_binary()
2897 if len(self.__dict__) > 1:
2898 d = self.__dict__.copy()
2903 def __setstate__(self, p):
2904 if not hasattr(self,
'this'):
2906 if isinstance(p, tuple):
2908 self.__dict__.update(d)
2909 return self._set_from_binary(p)
2911 __swig_destroy__ = _IMP_core.delete_Direction
2914 _IMP_core.Direction_swigregister(Direction)
2917 r"""get_angle(Direction a, Direction b) -> double"""
2918 return _IMP_core.get_angle(a, b)
2920 r"""Proxy of C++ IMP::core::DirectionAngle class."""
2922 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2924 def __init__(self, *args):
2926 __init__(DirectionAngle self) -> DirectionAngle
2927 __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2928 __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2930 _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2932 def show(self, *args):
2933 r"""show(DirectionAngle self, _ostream out=std::cout)"""
2934 return _IMP_core.DirectionAngle_show(self, *args)
2937 def setup_particle(*args):
2939 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2940 setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2941 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2942 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2944 return _IMP_core.DirectionAngle_setup_particle(*args)
2947 def get_is_setup(*args):
2949 get_is_setup(_ParticleAdaptor p) -> bool
2950 get_is_setup(Model m, ParticleIndex pi) -> bool
2952 return _IMP_core.DirectionAngle_get_is_setup(*args)
2955 def get_angle_key():
2956 r"""get_angle_key() -> FloatKey"""
2957 return _IMP_core.DirectionAngle_get_angle_key()
2960 def get_particle_key(i):
2961 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2962 return _IMP_core.DirectionAngle_get_particle_key(i)
2964 def get_particle(self, *args):
2966 get_particle(DirectionAngle self, unsigned int i) -> Particle
2967 get_particle(DirectionAngle self) -> Particle
2969 return _IMP_core.DirectionAngle_get_particle(self, *args)
2971 def get_particle_index(self, *args):
2973 get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2974 get_particle_index(DirectionAngle self) -> ParticleIndex
2976 return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2979 r"""get_angle(DirectionAngle self) -> IMP::Float"""
2980 return _IMP_core.DirectionAngle_get_angle(self)
2982 def get_angle_derivative(self):
2983 r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2984 return _IMP_core.DirectionAngle_get_angle_derivative(self)
2986 def add_to_angle_derivative(self, v, d):
2987 r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2988 return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2990 def add_attribute(self, *args):
2992 add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2993 add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2994 add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2995 add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2996 add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2997 add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2998 add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2999 add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
3000 add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3001 add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3002 add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3003 add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3005 return _IMP_core.DirectionAngle_add_attribute(self, *args)
3007 def get_value(self, *args):
3009 get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3010 get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3011 get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3012 get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3013 get_value(DirectionAngle self, StringKey a0) -> IMP::String
3014 get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3015 get_value(DirectionAngle self, ObjectKey a0) -> Object
3016 get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3017 get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3018 get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3019 get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3021 return _IMP_core.DirectionAngle_get_value(self, *args)
3023 def set_value(self, *args):
3025 set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3026 set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3027 set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3028 set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3029 set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3030 set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3031 set_value(DirectionAngle self, ObjectKey a0, Object a1)
3032 set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3033 set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3034 set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3035 set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3037 return _IMP_core.DirectionAngle_set_value(self, *args)
3039 def remove_attribute(self, *args):
3041 remove_attribute(DirectionAngle self, FloatKey a0)
3042 remove_attribute(DirectionAngle self, IntKey a0)
3043 remove_attribute(DirectionAngle self, FloatsKey a0)
3044 remove_attribute(DirectionAngle self, IntsKey a0)
3045 remove_attribute(DirectionAngle self, StringKey a0)
3046 remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3047 remove_attribute(DirectionAngle self, ObjectKey a0)
3048 remove_attribute(DirectionAngle self, SparseFloatKey a0)
3049 remove_attribute(DirectionAngle self, SparseIntKey a0)
3050 remove_attribute(DirectionAngle self, SparseStringKey a0)
3051 remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3053 return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3055 def has_attribute(self, *args):
3057 has_attribute(DirectionAngle self, FloatKey a0) -> bool
3058 has_attribute(DirectionAngle self, IntKey a0) -> bool
3059 has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3060 has_attribute(DirectionAngle self, IntsKey a0) -> bool
3061 has_attribute(DirectionAngle self, StringKey a0) -> bool
3062 has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3063 has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3064 has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3065 has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3066 has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3067 has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3069 return _IMP_core.DirectionAngle_has_attribute(self, *args)
3071 def get_derivative(self, a0):
3072 r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3073 return _IMP_core.DirectionAngle_get_derivative(self, a0)
3076 r"""get_name(DirectionAngle self) -> std::string"""
3077 return _IMP_core.DirectionAngle_get_name(self)
3079 def clear_caches(self):
3080 r"""clear_caches(DirectionAngle self)"""
3081 return _IMP_core.DirectionAngle_clear_caches(self)
3083 def set_name(self, a0):
3084 r"""set_name(DirectionAngle self, std::string a0)"""
3085 return _IMP_core.DirectionAngle_set_name(self, a0)
3088 r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3089 return _IMP_core.DirectionAngle_set_check_level(self, a0)
3091 def add_to_derivative(self, a0, a1, a2):
3092 r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3093 return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3095 def set_is_optimized(self, a0, a1):
3096 r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3097 return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3099 def get_is_optimized(self, a0):
3100 r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3101 return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3104 r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3105 return _IMP_core.DirectionAngle_get_check_level(self)
3107 def __eq__(self, *args):
3109 __eq__(DirectionAngle self, DirectionAngle o) -> bool
3110 __eq__(DirectionAngle self, Particle d) -> bool
3112 return _IMP_core.DirectionAngle___eq__(self, *args)
3114 def __ne__(self, *args):
3116 __ne__(DirectionAngle self, DirectionAngle o) -> bool
3117 __ne__(DirectionAngle self, Particle d) -> bool
3119 return _IMP_core.DirectionAngle___ne__(self, *args)
3121 def __le__(self, *args):
3123 __le__(DirectionAngle self, DirectionAngle o) -> bool
3124 __le__(DirectionAngle self, Particle d) -> bool
3126 return _IMP_core.DirectionAngle___le__(self, *args)
3128 def __lt__(self, *args):
3130 __lt__(DirectionAngle self, DirectionAngle o) -> bool
3131 __lt__(DirectionAngle self, Particle d) -> bool
3133 return _IMP_core.DirectionAngle___lt__(self, *args)
3135 def __ge__(self, *args):
3137 __ge__(DirectionAngle self, DirectionAngle o) -> bool
3138 __ge__(DirectionAngle self, Particle d) -> bool
3140 return _IMP_core.DirectionAngle___ge__(self, *args)
3142 def __gt__(self, *args):
3144 __gt__(DirectionAngle self, DirectionAngle o) -> bool
3145 __gt__(DirectionAngle self, Particle d) -> bool
3147 return _IMP_core.DirectionAngle___gt__(self, *args)
3150 r"""__hash__(DirectionAngle self) -> std::size_t"""
3151 return _IMP_core.DirectionAngle___hash__(self)
3154 r"""__str__(DirectionAngle self) -> std::string"""
3155 return _IMP_core.DirectionAngle___str__(self)
3158 r"""__repr__(DirectionAngle self) -> std::string"""
3159 return _IMP_core.DirectionAngle___repr__(self)
3161 def _get_as_binary(self):
3162 r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3163 return _IMP_core.DirectionAngle__get_as_binary(self)
3165 def _set_from_binary(self, p):
3166 r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3167 return _IMP_core.DirectionAngle__set_from_binary(self, p)
3169 def __getstate__(self):
3170 p = self._get_as_binary()
3171 if len(self.__dict__) > 1:
3172 d = self.__dict__.copy()
3177 def __setstate__(self, p):
3178 if not hasattr(self,
'this'):
3180 if isinstance(p, tuple):
3182 self.__dict__.update(d)
3183 return self._set_from_binary(p)
3185 __swig_destroy__ = _IMP_core.delete_DirectionAngle
3188 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3190 r"""Proxy of C++ IMP::core::Surface class."""
3192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3195 def do_setup_particle(*args):
3197 do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3198 do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3200 return _IMP_core.Surface_do_setup_particle(*args)
3202 def __init__(self, *args):
3204 __init__(Surface self) -> Surface
3205 __init__(Surface self, Model m, ParticleIndex id) -> Surface
3206 __init__(Surface self, _ParticleAdaptor d) -> Surface
3208 _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3210 def show(self, *args):
3211 r"""show(Surface self, _ostream out=std::cout)"""
3212 return _IMP_core.Surface_show(self, *args)
3215 def setup_particle(*args):
3217 setup_particle(Model m, ParticleIndex pi) -> Surface
3218 setup_particle(_ParticleAdaptor pa) -> Surface
3219 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3220 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3221 setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3222 setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3223 setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3224 setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3226 return _IMP_core.Surface_setup_particle(*args)
3228 def get_normal_x(self):
3229 r"""get_normal_x(Surface self) -> IMP::Float"""
3230 return _IMP_core.Surface_get_normal_x(self)
3232 def set_normal_x(self, t):
3233 r"""set_normal_x(Surface self, IMP::Float t)"""
3234 return _IMP_core.Surface_set_normal_x(self, t)
3236 def get_normal_y(self):
3237 r"""get_normal_y(Surface self) -> IMP::Float"""
3238 return _IMP_core.Surface_get_normal_y(self)
3240 def set_normal_y(self, t):
3241 r"""set_normal_y(Surface self, IMP::Float t)"""
3242 return _IMP_core.Surface_set_normal_y(self, t)
3244 def get_normal_z(self):
3245 r"""get_normal_z(Surface self) -> IMP::Float"""
3246 return _IMP_core.Surface_get_normal_z(self)
3248 def set_normal_z(self, t):
3249 r"""set_normal_z(Surface self, IMP::Float t)"""
3250 return _IMP_core.Surface_set_normal_z(self, t)
3253 def get_is_setup(*args):
3255 get_is_setup(_ParticleAdaptor p) -> bool
3256 get_is_setup(Model m, ParticleIndex pi) -> bool
3258 return _IMP_core.Surface_get_is_setup(*args)
3261 def get_normal_key(i):
3262 r"""get_normal_key(unsigned int i) -> FloatKey"""
3263 return _IMP_core.Surface_get_normal_key(i)
3265 def get_normal_derivative(self, i):
3266 r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3267 return _IMP_core.Surface_get_normal_derivative(self, i)
3269 def get_normal_derivatives(self):
3270 r"""get_normal_derivatives(Surface self) -> Vector3D"""
3271 return _IMP_core.Surface_get_normal_derivatives(self)
3273 def add_to_normal_derivative(self, i, v, d):
3274 r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3275 return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3277 def add_to_normal_derivatives(self, v, d):
3278 r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3279 return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3281 def get_normal_is_optimized(self):
3282 r"""get_normal_is_optimized(Surface self) -> bool"""
3283 return _IMP_core.Surface_get_normal_is_optimized(self)
3285 def set_normal_is_optimized(self, tf):
3286 r"""set_normal_is_optimized(Surface self, bool tf)"""
3287 return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3289 def get_normal(self):
3290 r"""get_normal(Surface self) -> Vector3D"""
3291 return _IMP_core.Surface_get_normal(self)
3293 def set_normal(self, normal):
3294 r"""set_normal(Surface self, Vector3D normal)"""
3295 return _IMP_core.Surface_set_normal(self, normal)
3298 r"""reflect(Surface self)"""
3299 return _IMP_core.Surface_reflect(self)
3302 r"""get_height(Surface self, Vector3D v) -> double"""
3303 return _IMP_core.Surface_get_height(self, v)
3306 r"""get_depth(Surface self, Vector3D v) -> double"""
3307 return _IMP_core.Surface_get_depth(self, v)
3309 def get_distance_to(self, v):
3310 r"""get_distance_to(Surface self, Vector3D v) -> double"""
3311 return _IMP_core.Surface_get_distance_to(self, v)
3313 def get_distance_to_center(self, v):
3314 r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3315 return _IMP_core.Surface_get_distance_to_center(self, v)
3317 def set_reference_frame(self, rf):
3318 r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3319 return _IMP_core.Surface_set_reference_frame(self, rf)
3321 def get_reference_frame(self):
3322 r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3323 return _IMP_core.Surface_get_reference_frame(self)
3325 def get_plane(self):
3326 r"""get_plane(Surface self) -> Plane3D"""
3327 return _IMP_core.Surface_get_plane(self)
3329 def add_attribute(self, *args):
3331 add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3332 add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3333 add_attribute(Surface self, IntKey a0, IMP::Int a1)
3334 add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3335 add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3336 add_attribute(Surface self, StringKey a0, IMP::String a1)
3337 add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3338 add_attribute(Surface self, ObjectKey a0, Object a1)
3339 add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3340 add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3341 add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3342 add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3344 return _IMP_core.Surface_add_attribute(self, *args)
3346 def get_value(self, *args):
3348 get_value(Surface self, FloatKey a0) -> IMP::Float
3349 get_value(Surface self, IntKey a0) -> IMP::Int
3350 get_value(Surface self, FloatsKey a0) -> IMP::Floats
3351 get_value(Surface self, IntsKey a0) -> IMP::Ints
3352 get_value(Surface self, StringKey a0) -> IMP::String
3353 get_value(Surface self, ParticleIndexKey a0) -> Particle
3354 get_value(Surface self, ObjectKey a0) -> Object
3355 get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3356 get_value(Surface self, SparseIntKey a0) -> IMP::Int
3357 get_value(Surface self, SparseStringKey a0) -> IMP::String
3358 get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3360 return _IMP_core.Surface_get_value(self, *args)
3362 def set_value(self, *args):
3364 set_value(Surface self, FloatKey a0, IMP::Float a1)
3365 set_value(Surface self, IntKey a0, IMP::Int a1)
3366 set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3367 set_value(Surface self, IntsKey a0, IMP::Ints a1)
3368 set_value(Surface self, StringKey a0, IMP::String a1)
3369 set_value(Surface self, ParticleIndexKey a0, Particle a1)
3370 set_value(Surface self, ObjectKey a0, Object a1)
3371 set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3372 set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3373 set_value(Surface self, SparseStringKey a0, IMP::String a1)
3374 set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3376 return _IMP_core.Surface_set_value(self, *args)
3378 def remove_attribute(self, *args):
3380 remove_attribute(Surface self, FloatKey a0)
3381 remove_attribute(Surface self, IntKey a0)
3382 remove_attribute(Surface self, FloatsKey a0)
3383 remove_attribute(Surface self, IntsKey a0)
3384 remove_attribute(Surface self, StringKey a0)
3385 remove_attribute(Surface self, ParticleIndexKey a0)
3386 remove_attribute(Surface self, ObjectKey a0)
3387 remove_attribute(Surface self, SparseFloatKey a0)
3388 remove_attribute(Surface self, SparseIntKey a0)
3389 remove_attribute(Surface self, SparseStringKey a0)
3390 remove_attribute(Surface self, SparseParticleIndexKey a0)
3392 return _IMP_core.Surface_remove_attribute(self, *args)
3394 def has_attribute(self, *args):
3396 has_attribute(Surface self, FloatKey a0) -> bool
3397 has_attribute(Surface self, IntKey a0) -> bool
3398 has_attribute(Surface self, FloatsKey a0) -> bool
3399 has_attribute(Surface self, IntsKey a0) -> bool
3400 has_attribute(Surface self, StringKey a0) -> bool
3401 has_attribute(Surface self, ParticleIndexKey a0) -> bool
3402 has_attribute(Surface self, ObjectKey a0) -> bool
3403 has_attribute(Surface self, SparseFloatKey a0) -> bool
3404 has_attribute(Surface self, SparseIntKey a0) -> bool
3405 has_attribute(Surface self, SparseStringKey a0) -> bool
3406 has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3408 return _IMP_core.Surface_has_attribute(self, *args)
3410 def get_derivative(self, a0):
3411 r"""get_derivative(Surface self, FloatKey a0) -> double"""
3412 return _IMP_core.Surface_get_derivative(self, a0)
3415 r"""get_name(Surface self) -> std::string"""
3416 return _IMP_core.Surface_get_name(self)
3418 def clear_caches(self):
3419 r"""clear_caches(Surface self)"""
3420 return _IMP_core.Surface_clear_caches(self)
3422 def set_name(self, a0):
3423 r"""set_name(Surface self, std::string a0)"""
3424 return _IMP_core.Surface_set_name(self, a0)
3427 r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3428 return _IMP_core.Surface_set_check_level(self, a0)
3430 def add_to_derivative(self, a0, a1, a2):
3431 r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3432 return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3434 def set_is_optimized(self, a0, a1):
3435 r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3436 return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3438 def get_is_optimized(self, a0):
3439 r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3440 return _IMP_core.Surface_get_is_optimized(self, a0)
3443 r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3444 return _IMP_core.Surface_get_check_level(self)
3446 def __eq__(self, *args):
3448 __eq__(Surface self, Surface o) -> bool
3449 __eq__(Surface self, Particle d) -> bool
3451 return _IMP_core.Surface___eq__(self, *args)
3453 def __ne__(self, *args):
3455 __ne__(Surface self, Surface o) -> bool
3456 __ne__(Surface self, Particle d) -> bool
3458 return _IMP_core.Surface___ne__(self, *args)
3460 def __le__(self, *args):
3462 __le__(Surface self, Surface o) -> bool
3463 __le__(Surface self, Particle d) -> bool
3465 return _IMP_core.Surface___le__(self, *args)
3467 def __lt__(self, *args):
3469 __lt__(Surface self, Surface o) -> bool
3470 __lt__(Surface self, Particle d) -> bool
3472 return _IMP_core.Surface___lt__(self, *args)
3474 def __ge__(self, *args):
3476 __ge__(Surface self, Surface o) -> bool
3477 __ge__(Surface self, Particle d) -> bool
3479 return _IMP_core.Surface___ge__(self, *args)
3481 def __gt__(self, *args):
3483 __gt__(Surface self, Surface o) -> bool
3484 __gt__(Surface self, Particle d) -> bool
3486 return _IMP_core.Surface___gt__(self, *args)
3489 r"""__hash__(Surface self) -> std::size_t"""
3490 return _IMP_core.Surface___hash__(self)
3493 r"""__str__(Surface self) -> std::string"""
3494 return _IMP_core.Surface___str__(self)
3497 r"""__repr__(Surface self) -> std::string"""
3498 return _IMP_core.Surface___repr__(self)
3500 def _get_as_binary(self):
3501 r"""_get_as_binary(Surface self) -> PyObject *"""
3502 return _IMP_core.Surface__get_as_binary(self)
3504 def _set_from_binary(self, p):
3505 r"""_set_from_binary(Surface self, PyObject * p)"""
3506 return _IMP_core.Surface__set_from_binary(self, p)
3508 def __getstate__(self):
3509 p = self._get_as_binary()
3510 if len(self.__dict__) > 1:
3511 d = self.__dict__.copy()
3516 def __setstate__(self, p):
3517 if not hasattr(self,
'this'):
3519 if isinstance(p, tuple):
3521 self.__dict__.update(d)
3522 return self._set_from_binary(p)
3524 __swig_destroy__ = _IMP_core.delete_Surface
3527 _IMP_core.Surface_swigregister(Surface)
3531 get_height(Surface s, XYZR d) -> double
3532 get_height(Surface s, XYZ d) -> double
3534 return _IMP_core.get_height(*args)
3538 get_depth(Surface s, XYZR d) -> double
3539 get_depth(Surface s, XYZ d) -> double
3541 return _IMP_core.get_depth(*args)
3545 get_distance(XYZ a, XYZ b) -> double
3546 get_distance(XYZR a, XYZR b) -> double
3547 get_distance(Surface s, XYZR d) -> double
3548 get_distance(Surface s, XYZ d) -> double
3550 return _IMP_core.get_distance(*args)
3552 r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3554 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3556 def __init__(self, *args):
3558 __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3559 __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3560 __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3562 _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3564 def get_geometry(self):
3565 r"""get_geometry(SurfaceGeometry self) -> Surface"""
3566 return _IMP_core.SurfaceGeometry_get_geometry(self)
3568 def set_geometry(self, s):
3569 r"""set_geometry(SurfaceGeometry self, Surface s)"""
3570 return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3572 def get_version_info(self):
3573 r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3574 return _IMP_core.SurfaceGeometry_get_version_info(self)
3575 __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3578 r"""__str__(SurfaceGeometry self) -> std::string"""
3579 return _IMP_core.SurfaceGeometry___str__(self)
3582 r"""__repr__(SurfaceGeometry self) -> std::string"""
3583 return _IMP_core.SurfaceGeometry___repr__(self)
3587 return _object_cast_to_SurfaceGeometry(o)
3591 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3594 r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3595 return _IMP_core.create_geometry(*args)
3597 r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3601 def __init__(self, s, g):
3602 r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3603 _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3605 def get_surface(self):
3606 r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3607 return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3609 def get_geometry(self):
3610 r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3611 return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3613 def do_get_inputs(self):
3614 r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3615 return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3617 def do_get_outputs(self):
3618 r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3619 return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3621 def get_version_info(self):
3622 r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3623 return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3624 __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3627 r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3628 return _IMP_core.SurfaceGeometryConstraint___str__(self)
3631 r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3632 return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3636 return _object_cast_to_SurfaceGeometryConstraint(o)
3640 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3643 r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3644 return _IMP_core.get_constrained_surface_geometry(*args)
3646 r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3648 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3650 def __init__(self, s, d):
3651 r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3652 _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3654 def do_get_inputs(self):
3655 r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3656 return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3658 def do_get_outputs(self):
3659 r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3660 return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3662 def get_version_info(self):
3663 r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3664 return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3665 __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3668 r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3669 return _IMP_core.LateralSurfaceConstraint___str__(self)
3672 r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3673 return _IMP_core.LateralSurfaceConstraint___repr__(self)
3677 return _object_cast_to_LateralSurfaceConstraint(o)
3681 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3683 r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3685 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3687 def __init__(self, *args):
3689 __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3690 __init__(AngleTripletScore self) -> AngleTripletScore
3692 _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3694 def do_get_inputs(self, m, pis):
3695 r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3696 return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3698 def get_version_info(self):
3699 r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3700 return _IMP_core.AngleTripletScore_get_version_info(self)
3701 __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3704 r"""__str__(AngleTripletScore self) -> std::string"""
3705 return _IMP_core.AngleTripletScore___str__(self)
3708 r"""__repr__(AngleTripletScore self) -> std::string"""
3709 return _IMP_core.AngleTripletScore___repr__(self)
3713 return _object_cast_to_AngleTripletScore(o)
3716 def _get_as_binary(self):
3717 r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3718 return _IMP_core.AngleTripletScore__get_as_binary(self)
3720 def _set_from_binary(self, p):
3721 r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3722 return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3724 def __getstate__(self):
3725 p = self._get_as_binary()
3726 if len(self.__dict__) > 1:
3727 d = self.__dict__.copy()
3732 def __setstate__(self, p):
3733 if not hasattr(self,
'this'):
3735 if isinstance(p, tuple):
3737 self.__dict__.update(d)
3738 return self._set_from_binary(p)
3742 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3743 class BallMover(MonteCarloMover):
3744 r"""Proxy of C++ IMP::core::BallMover class."""
3746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3748 def __init__(self, *args):
3750 __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3751 __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3752 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3753 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3754 __init__(BallMover self) -> BallMover
3756 _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3758 def set_radius(self, radius):
3759 r"""set_radius(BallMover self, IMP::Float radius)"""
3760 return _IMP_core.BallMover_set_radius(self, radius)
3762 def get_radius(self):
3763 r"""get_radius(BallMover self) -> IMP::Float"""
3764 return _IMP_core.BallMover_get_radius(self)
3766 def get_version_info(self):
3767 r"""get_version_info(BallMover self) -> VersionInfo"""
3768 return _IMP_core.BallMover_get_version_info(self)
3769 __swig_destroy__ = _IMP_core.delete_BallMover
3772 r"""__str__(BallMover self) -> std::string"""
3773 return _IMP_core.BallMover___str__(self)
3776 r"""__repr__(BallMover self) -> std::string"""
3777 return _IMP_core.BallMover___repr__(self)
3781 return _object_cast_to_BallMover(o)
3784 def _get_as_binary(self):
3785 r"""_get_as_binary(BallMover self) -> PyObject *"""
3786 return _IMP_core.BallMover__get_as_binary(self)
3788 def _set_from_binary(self, p):
3789 r"""_set_from_binary(BallMover self, PyObject * p)"""
3790 return _IMP_core.BallMover__set_from_binary(self, p)
3792 def __getstate__(self):
3793 p = self._get_as_binary()
3794 if len(self.__dict__) > 1:
3795 d = self.__dict__.copy()
3800 def __setstate__(self, p):
3801 if not hasattr(self,
'this'):
3803 if isinstance(p, tuple):
3805 self.__dict__.update(d)
3806 return self._set_from_binary(p)
3810 _IMP_core.BallMover_swigregister(BallMover)
3811 class SerialMover(MonteCarloMover):
3812 r"""Proxy of C++ IMP::core::SerialMover class."""
3814 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3816 def __init__(self, *args):
3818 __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3819 __init__(SerialMover self) -> SerialMover
3821 _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3823 def get_movers(self):
3824 r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3825 return _IMP_core.SerialMover_get_movers(self)
3827 def get_version_info(self):
3828 r"""get_version_info(SerialMover self) -> VersionInfo"""
3829 return _IMP_core.SerialMover_get_version_info(self)
3830 __swig_destroy__ = _IMP_core.delete_SerialMover
3833 r"""__str__(SerialMover self) -> std::string"""
3834 return _IMP_core.SerialMover___str__(self)
3837 r"""__repr__(SerialMover self) -> std::string"""
3838 return _IMP_core.SerialMover___repr__(self)
3842 return _object_cast_to_SerialMover(o)
3845 def _get_as_binary(self):
3846 r"""_get_as_binary(SerialMover self) -> PyObject *"""
3847 return _IMP_core.SerialMover__get_as_binary(self)
3849 def _set_from_binary(self, p):
3850 r"""_set_from_binary(SerialMover self, PyObject * p)"""
3851 return _IMP_core.SerialMover__set_from_binary(self, p)
3853 def __getstate__(self):
3854 p = self._get_as_binary()
3855 if len(self.__dict__) > 1:
3856 d = self.__dict__.copy()
3861 def __setstate__(self, p):
3862 if not hasattr(self,
'this'):
3864 if isinstance(p, tuple):
3866 self.__dict__.update(d)
3867 return self._set_from_binary(p)
3871 _IMP_core.SerialMover_swigregister(SerialMover)
3872 class SubsetMover(MonteCarloMover):
3873 r"""Proxy of C++ IMP::core::SubsetMover class."""
3875 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3877 def __init__(self, *args):
3879 __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3880 __init__(SubsetMover self) -> SubsetMover
3882 _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3884 def get_movers(self):
3885 r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3886 return _IMP_core.SubsetMover_get_movers(self)
3888 def get_subset_size(self):
3889 r"""get_subset_size(SubsetMover self) -> unsigned int"""
3890 return _IMP_core.SubsetMover_get_subset_size(self)
3892 def get_version_info(self):
3893 r"""get_version_info(SubsetMover self) -> VersionInfo"""
3894 return _IMP_core.SubsetMover_get_version_info(self)
3895 __swig_destroy__ = _IMP_core.delete_SubsetMover
3898 r"""__str__(SubsetMover self) -> std::string"""
3899 return _IMP_core.SubsetMover___str__(self)
3902 r"""__repr__(SubsetMover self) -> std::string"""
3903 return _IMP_core.SubsetMover___repr__(self)
3907 return _object_cast_to_SubsetMover(o)
3910 def _get_as_binary(self):
3911 r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3912 return _IMP_core.SubsetMover__get_as_binary(self)
3914 def _set_from_binary(self, p):
3915 r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3916 return _IMP_core.SubsetMover__set_from_binary(self, p)
3918 def __getstate__(self):
3919 p = self._get_as_binary()
3920 if len(self.__dict__) > 1:
3921 d = self.__dict__.copy()
3926 def __setstate__(self, p):
3927 if not hasattr(self,
'this'):
3929 if isinstance(p, tuple):
3931 self.__dict__.update(d)
3932 return self._set_from_binary(p)
3936 _IMP_core.SubsetMover_swigregister(SubsetMover)
3937 class DirectionMover(MonteCarloMover):
3938 r"""Proxy of C++ IMP::core::DirectionMover class."""
3940 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3942 def __init__(self, *args):
3944 __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3945 __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3946 __init__(DirectionMover self) -> DirectionMover
3948 _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3950 def set_maximum_rotation(self, mr):
3951 r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3952 return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3954 def set_reflect_probability(self, rp):
3955 r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3956 return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3958 def get_maximum_rotation(self):
3959 r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3960 return _IMP_core.DirectionMover_get_maximum_rotation(self)
3962 def get_reflect_probability(self):
3963 r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3964 return _IMP_core.DirectionMover_get_reflect_probability(self)
3966 def get_direction(self):
3967 r"""get_direction(DirectionMover self) -> Direction"""
3968 return _IMP_core.DirectionMover_get_direction(self)
3970 def get_version_info(self):
3971 r"""get_version_info(DirectionMover self) -> VersionInfo"""
3972 return _IMP_core.DirectionMover_get_version_info(self)
3973 __swig_destroy__ = _IMP_core.delete_DirectionMover
3976 r"""__str__(DirectionMover self) -> std::string"""
3977 return _IMP_core.DirectionMover___str__(self)
3980 r"""__repr__(DirectionMover self) -> std::string"""
3981 return _IMP_core.DirectionMover___repr__(self)
3985 return _object_cast_to_DirectionMover(o)
3988 def _get_as_binary(self):
3989 r"""_get_as_binary(DirectionMover self) -> PyObject *"""
3990 return _IMP_core.DirectionMover__get_as_binary(self)
3992 def _set_from_binary(self, p):
3993 r"""_set_from_binary(DirectionMover self, PyObject * p)"""
3994 return _IMP_core.DirectionMover__set_from_binary(self, p)
3996 def __getstate__(self):
3997 p = self._get_as_binary()
3998 if len(self.__dict__) > 1:
3999 d = self.__dict__.copy()
4004 def __setstate__(self, p):
4005 if not hasattr(self,
'this'):
4007 if isinstance(p, tuple):
4009 self.__dict__.update(d)
4010 return self._set_from_binary(p)
4014 _IMP_core.DirectionMover_swigregister(DirectionMover)
4015 class SurfaceMover(MonteCarloMover):
4016 r"""Proxy of C++ IMP::core::SurfaceMover class."""
4018 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4020 def __init__(self, *args):
4022 __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4023 __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4024 __init__(SurfaceMover self) -> SurfaceMover
4026 _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4028 def set_maximum_translation(self, mt):
4029 r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4030 return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4032 def set_maximum_rotation(self, mr):
4033 r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4034 return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4036 def set_reflect_probability(self, rp):
4037 r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4038 return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4040 def get_maximum_translation(self):
4041 r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4042 return _IMP_core.SurfaceMover_get_maximum_translation(self)
4044 def get_maximum_rotation(self):
4045 r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4046 return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4048 def get_reflect_probability(self):
4049 r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4050 return _IMP_core.SurfaceMover_get_reflect_probability(self)
4052 def get_surface(self):
4053 r"""get_surface(SurfaceMover self) -> Surface"""
4054 return _IMP_core.SurfaceMover_get_surface(self)
4056 def get_version_info(self):
4057 r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4058 return _IMP_core.SurfaceMover_get_version_info(self)
4059 __swig_destroy__ = _IMP_core.delete_SurfaceMover
4062 r"""__str__(SurfaceMover self) -> std::string"""
4063 return _IMP_core.SurfaceMover___str__(self)
4066 r"""__repr__(SurfaceMover self) -> std::string"""
4067 return _IMP_core.SurfaceMover___repr__(self)
4071 return _object_cast_to_SurfaceMover(o)
4074 def _get_as_binary(self):
4075 r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4076 return _IMP_core.SurfaceMover__get_as_binary(self)
4078 def _set_from_binary(self, p):
4079 r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4080 return _IMP_core.SurfaceMover__set_from_binary(self, p)
4082 def __getstate__(self):
4083 p = self._get_as_binary()
4084 if len(self.__dict__) > 1:
4085 d = self.__dict__.copy()
4090 def __setstate__(self, p):
4091 if not hasattr(self,
'this'):
4093 if isinstance(p, tuple):
4095 self.__dict__.update(d)
4096 return self._set_from_binary(p)
4100 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4101 class BoxSweepClosePairsFinder(ClosePairsFinder):
4102 r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4104 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4107 r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4108 _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4110 def get_close_pairs(self, *args):
4112 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4113 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4114 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4115 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4117 return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4119 def do_get_inputs(self, m, pis):
4120 r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4121 return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4123 def get_version_info(self):
4124 r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4125 return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4126 __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4129 r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4130 return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4133 r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4134 return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4138 return _object_cast_to_BoxSweepClosePairsFinder(o)
4142 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4144 r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4146 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4148 def __init__(self, *args):
4149 r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4150 _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4152 def do_get_inputs(self, m, pis):
4153 r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4154 return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4156 def do_get_outputs(self, m, pis):
4157 r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4158 return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4160 def get_version_info(self):
4161 r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4162 return _IMP_core.CentroidOfRefined_get_version_info(self)
4163 __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4166 r"""__str__(CentroidOfRefined self) -> std::string"""
4167 return _IMP_core.CentroidOfRefined___str__(self)
4170 r"""__repr__(CentroidOfRefined self) -> std::string"""
4171 return _IMP_core.CentroidOfRefined___repr__(self)
4175 return _object_cast_to_CentroidOfRefined(o)
4179 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4180 class Centroid(XYZ):
4181 r"""Proxy of C++ IMP::core::Centroid class."""
4183 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4185 def get_constraint(self):
4186 r"""get_constraint(Centroid self) -> Constraint"""
4187 return _IMP_core.Centroid_get_constraint(self)
4189 def __init__(self, *args):
4191 __init__(Centroid self) -> Centroid
4192 __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4193 __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4195 _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4197 def show(self, *args):
4198 r"""show(Centroid self, _ostream out=std::cout)"""
4199 return _IMP_core.Centroid_show(self, *args)
4202 def setup_particle(*args):
4204 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4205 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4206 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4207 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4209 return _IMP_core.Centroid_setup_particle(*args)
4212 def get_is_setup(*args):
4214 get_is_setup(_ParticleAdaptor p) -> bool
4215 get_is_setup(Model m, ParticleIndex pi) -> bool
4217 return _IMP_core.Centroid_get_is_setup(*args)
4219 def add_attribute(self, *args):
4221 add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4222 add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4223 add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4224 add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4225 add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4226 add_attribute(Centroid self, StringKey a0, IMP::String a1)
4227 add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4228 add_attribute(Centroid self, ObjectKey a0, Object a1)
4229 add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4230 add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4231 add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4232 add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4234 return _IMP_core.Centroid_add_attribute(self, *args)
4236 def get_value(self, *args):
4238 get_value(Centroid self, FloatKey a0) -> IMP::Float
4239 get_value(Centroid self, IntKey a0) -> IMP::Int
4240 get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4241 get_value(Centroid self, IntsKey a0) -> IMP::Ints
4242 get_value(Centroid self, StringKey a0) -> IMP::String
4243 get_value(Centroid self, ParticleIndexKey a0) -> Particle
4244 get_value(Centroid self, ObjectKey a0) -> Object
4245 get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4246 get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4247 get_value(Centroid self, SparseStringKey a0) -> IMP::String
4248 get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4250 return _IMP_core.Centroid_get_value(self, *args)
4252 def set_value(self, *args):
4254 set_value(Centroid self, FloatKey a0, IMP::Float a1)
4255 set_value(Centroid self, IntKey a0, IMP::Int a1)
4256 set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4257 set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4258 set_value(Centroid self, StringKey a0, IMP::String a1)
4259 set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4260 set_value(Centroid self, ObjectKey a0, Object a1)
4261 set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4262 set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4263 set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4264 set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4266 return _IMP_core.Centroid_set_value(self, *args)
4268 def remove_attribute(self, *args):
4270 remove_attribute(Centroid self, FloatKey a0)
4271 remove_attribute(Centroid self, IntKey a0)
4272 remove_attribute(Centroid self, FloatsKey a0)
4273 remove_attribute(Centroid self, IntsKey a0)
4274 remove_attribute(Centroid self, StringKey a0)
4275 remove_attribute(Centroid self, ParticleIndexKey a0)
4276 remove_attribute(Centroid self, ObjectKey a0)
4277 remove_attribute(Centroid self, SparseFloatKey a0)
4278 remove_attribute(Centroid self, SparseIntKey a0)
4279 remove_attribute(Centroid self, SparseStringKey a0)
4280 remove_attribute(Centroid self, SparseParticleIndexKey a0)
4282 return _IMP_core.Centroid_remove_attribute(self, *args)
4284 def has_attribute(self, *args):
4286 has_attribute(Centroid self, FloatKey a0) -> bool
4287 has_attribute(Centroid self, IntKey a0) -> bool
4288 has_attribute(Centroid self, FloatsKey a0) -> bool
4289 has_attribute(Centroid self, IntsKey a0) -> bool
4290 has_attribute(Centroid self, StringKey a0) -> bool
4291 has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4292 has_attribute(Centroid self, ObjectKey a0) -> bool
4293 has_attribute(Centroid self, SparseFloatKey a0) -> bool
4294 has_attribute(Centroid self, SparseIntKey a0) -> bool
4295 has_attribute(Centroid self, SparseStringKey a0) -> bool
4296 has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4298 return _IMP_core.Centroid_has_attribute(self, *args)
4300 def get_derivative(self, a0):
4301 r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4302 return _IMP_core.Centroid_get_derivative(self, a0)
4305 r"""get_name(Centroid self) -> std::string"""
4306 return _IMP_core.Centroid_get_name(self)
4308 def clear_caches(self):
4309 r"""clear_caches(Centroid self)"""
4310 return _IMP_core.Centroid_clear_caches(self)
4312 def set_name(self, a0):
4313 r"""set_name(Centroid self, std::string a0)"""
4314 return _IMP_core.Centroid_set_name(self, a0)
4317 r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4318 return _IMP_core.Centroid_set_check_level(self, a0)
4320 def add_to_derivative(self, a0, a1, a2):
4321 r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4322 return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4324 def set_is_optimized(self, a0, a1):
4325 r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4326 return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4328 def get_is_optimized(self, a0):
4329 r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4330 return _IMP_core.Centroid_get_is_optimized(self, a0)
4333 r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4334 return _IMP_core.Centroid_get_check_level(self)
4336 def __eq__(self, *args):
4338 __eq__(Centroid self, Centroid o) -> bool
4339 __eq__(Centroid self, Particle d) -> bool
4341 return _IMP_core.Centroid___eq__(self, *args)
4343 def __ne__(self, *args):
4345 __ne__(Centroid self, Centroid o) -> bool
4346 __ne__(Centroid self, Particle d) -> bool
4348 return _IMP_core.Centroid___ne__(self, *args)
4350 def __le__(self, *args):
4352 __le__(Centroid self, Centroid o) -> bool
4353 __le__(Centroid self, Particle d) -> bool
4355 return _IMP_core.Centroid___le__(self, *args)
4357 def __lt__(self, *args):
4359 __lt__(Centroid self, Centroid o) -> bool
4360 __lt__(Centroid self, Particle d) -> bool
4362 return _IMP_core.Centroid___lt__(self, *args)
4364 def __ge__(self, *args):
4366 __ge__(Centroid self, Centroid o) -> bool
4367 __ge__(Centroid self, Particle d) -> bool
4369 return _IMP_core.Centroid___ge__(self, *args)
4371 def __gt__(self, *args):
4373 __gt__(Centroid self, Centroid o) -> bool
4374 __gt__(Centroid self, Particle d) -> bool
4376 return _IMP_core.Centroid___gt__(self, *args)
4379 r"""__hash__(Centroid self) -> std::size_t"""
4380 return _IMP_core.Centroid___hash__(self)
4383 r"""__str__(Centroid self) -> std::string"""
4384 return _IMP_core.Centroid___str__(self)
4387 r"""__repr__(Centroid self) -> std::string"""
4388 return _IMP_core.Centroid___repr__(self)
4390 def _get_as_binary(self):
4391 r"""_get_as_binary(Centroid self) -> PyObject *"""
4392 return _IMP_core.Centroid__get_as_binary(self)
4394 def _set_from_binary(self, p):
4395 r"""_set_from_binary(Centroid self, PyObject * p)"""
4396 return _IMP_core.Centroid__set_from_binary(self, p)
4398 def __getstate__(self):
4399 p = self._get_as_binary()
4400 if len(self.__dict__) > 1:
4401 d = self.__dict__.copy()
4406 def __setstate__(self, p):
4407 if not hasattr(self,
'this'):
4409 if isinstance(p, tuple):
4411 self.__dict__.update(d)
4412 return self._set_from_binary(p)
4414 __swig_destroy__ = _IMP_core.delete_Centroid
4417 _IMP_core.Centroid_swigregister(Centroid)
4419 r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4421 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4423 def __init__(self, *args):
4425 __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4426 __init__(ChecksScoreState self) -> ChecksScoreState
4428 _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4430 def get_number_of_checked(self):
4431 r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4432 return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4434 def do_before_evaluate(self):
4435 r"""do_before_evaluate(ChecksScoreState self)"""
4436 return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4438 def do_after_evaluate(self, da):
4439 r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4440 return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4442 def do_get_outputs(self):
4443 r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4444 return _IMP_core.ChecksScoreState_do_get_outputs(self)
4446 def do_get_inputs(self):
4447 r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4448 return _IMP_core.ChecksScoreState_do_get_inputs(self)
4450 def get_version_info(self):
4451 r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4452 return _IMP_core.ChecksScoreState_get_version_info(self)
4453 __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4456 r"""__str__(ChecksScoreState self) -> std::string"""
4457 return _IMP_core.ChecksScoreState___str__(self)
4460 r"""__repr__(ChecksScoreState self) -> std::string"""
4461 return _IMP_core.ChecksScoreState___repr__(self)
4465 return _object_cast_to_ChecksScoreState(o)
4468 def _get_as_binary(self):
4469 r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4470 return _IMP_core.ChecksScoreState__get_as_binary(self)
4472 def _set_from_binary(self, p):
4473 r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4474 return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4476 def __getstate__(self):
4477 p = self._get_as_binary()
4478 if len(self.__dict__) > 1:
4479 d = self.__dict__.copy()
4484 def __setstate__(self, p):
4485 if not hasattr(self,
'this'):
4487 if isinstance(p, tuple):
4489 self.__dict__.update(d)
4490 return self._set_from_binary(p)
4494 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4496 r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4498 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4500 def __init__(self, tr):
4501 r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4502 _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4504 def do_get_inputs(self, m, pis):
4505 r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4506 return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4508 def get_version_info(self):
4509 r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4510 return _IMP_core.ChildrenRefiner_get_version_info(self)
4511 __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4514 r"""__str__(ChildrenRefiner self) -> std::string"""
4515 return _IMP_core.ChildrenRefiner___str__(self)
4518 r"""__repr__(ChildrenRefiner self) -> std::string"""
4519 return _IMP_core.ChildrenRefiner___repr__(self)
4523 return _object_cast_to_ChildrenRefiner(o)
4527 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4529 r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4531 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4533 def __init__(self, values, minrange, spacing):
4534 r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4535 _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4537 def get_version_info(self):
4538 r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4539 return _IMP_core.ClosedCubicSpline_get_version_info(self)
4540 __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4542 def do_show(self, out):
4543 r"""do_show(ClosedCubicSpline self, _ostream out)"""
4544 return _IMP_core.ClosedCubicSpline_do_show(self, out)
4547 r"""__str__(ClosedCubicSpline self) -> std::string"""
4548 return _IMP_core.ClosedCubicSpline___str__(self)
4551 r"""__repr__(ClosedCubicSpline self) -> std::string"""
4552 return _IMP_core.ClosedCubicSpline___repr__(self)
4556 return _object_cast_to_ClosedCubicSpline(o)
4560 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4562 r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4564 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4566 def __init__(self, f, r, k=1):
4567 r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4568 _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4570 def get_close_pairs(self, pp):
4571 r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4572 return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4574 def create_current_decomposition(self, m, vt):
4575 r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4576 return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4578 def do_get_inputs(self, m, pis):
4579 r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4580 return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4582 def get_version_info(self):
4583 r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4584 return _IMP_core.KClosePairsPairScore_get_version_info(self)
4585 __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4588 r"""__str__(KClosePairsPairScore self) -> std::string"""
4589 return _IMP_core.KClosePairsPairScore___str__(self)
4592 r"""__repr__(KClosePairsPairScore self) -> std::string"""
4593 return _IMP_core.KClosePairsPairScore___repr__(self)
4597 return _object_cast_to_KClosePairsPairScore(o)
4601 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4603 r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4605 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4607 def __init__(self, f, r, max_distance):
4608 r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4609 _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4611 def get_close_pairs(self, pp):
4612 r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4613 return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4615 def create_current_decomposition(self, m, vt):
4616 r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4617 return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4619 def do_get_inputs(self, m, pis):
4620 r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4621 return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4623 def get_version_info(self):
4624 r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4625 return _IMP_core.ClosePairsPairScore_get_version_info(self)
4626 __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4629 r"""__str__(ClosePairsPairScore self) -> std::string"""
4630 return _IMP_core.ClosePairsPairScore___str__(self)
4633 r"""__repr__(ClosePairsPairScore self) -> std::string"""
4634 return _IMP_core.ClosePairsPairScore___repr__(self)
4638 return _object_cast_to_ClosePairsPairScore(o)
4642 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4644 r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4646 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4648 def __init__(self, *args):
4650 __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4651 __init__(ConjugateGradients self) -> ConjugateGradients
4653 _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4655 def set_gradient_threshold(self, t):
4656 r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4657 return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4659 def set_max_change(self, t):
4660 r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4661 return _IMP_core.ConjugateGradients_set_max_change(self, t)
4663 def do_optimize(self, max_steps):
4664 r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4665 return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4667 def get_version_info(self):
4668 r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4669 return _IMP_core.ConjugateGradients_get_version_info(self)
4670 __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4673 r"""__str__(ConjugateGradients self) -> std::string"""
4674 return _IMP_core.ConjugateGradients___str__(self)
4677 r"""__repr__(ConjugateGradients self) -> std::string"""
4678 return _IMP_core.ConjugateGradients___repr__(self)
4682 return _object_cast_to_ConjugateGradients(o)
4685 def _get_as_binary(self):
4686 r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4687 return _IMP_core.ConjugateGradients__get_as_binary(self)
4689 def _set_from_binary(self, p):
4690 r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4691 return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4693 def __getstate__(self):
4694 p = self._get_as_binary()
4695 if len(self.__dict__) > 1:
4696 d = self.__dict__.copy()
4701 def __setstate__(self, p):
4702 if not hasattr(self,
'this'):
4704 if isinstance(p, tuple):
4706 self.__dict__.update(d)
4707 return self._set_from_binary(p)
4711 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4713 r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4715 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4717 def __init__(self, ps, sc):
4718 r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4719 _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4721 def get_connected_index_pairs(self):
4722 r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4723 return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4725 def get_pair_score(self):
4726 r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4727 return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4729 def do_create_current_decomposition(self):
4730 r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4731 return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4733 def do_get_inputs(self):
4734 r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4735 return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4737 def get_version_info(self):
4738 r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4739 return _IMP_core.ConnectivityRestraint_get_version_info(self)
4740 __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4743 r"""__str__(ConnectivityRestraint self) -> std::string"""
4744 return _IMP_core.ConnectivityRestraint___str__(self)
4747 r"""__repr__(ConnectivityRestraint self) -> std::string"""
4748 return _IMP_core.ConnectivityRestraint___repr__(self)
4752 return _object_cast_to_ConnectivityRestraint(o)
4756 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4758 r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4760 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4762 def __init__(self, *args):
4764 __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4765 __init__(ConstantRestraint self) -> ConstantRestraint
4767 _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4769 def do_get_inputs(self):
4770 r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4771 return _IMP_core.ConstantRestraint_do_get_inputs(self)
4773 def get_version_info(self):
4774 r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4775 return _IMP_core.ConstantRestraint_get_version_info(self)
4776 __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4779 r"""__str__(ConstantRestraint self) -> std::string"""
4780 return _IMP_core.ConstantRestraint___str__(self)
4783 r"""__repr__(ConstantRestraint self) -> std::string"""
4784 return _IMP_core.ConstantRestraint___repr__(self)
4788 return _object_cast_to_ConstantRestraint(o)
4791 def _get_as_binary(self):
4792 r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4793 return _IMP_core.ConstantRestraint__get_as_binary(self)
4795 def _set_from_binary(self, p):
4796 r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4797 return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4799 def __getstate__(self):
4800 p = self._get_as_binary()
4801 if len(self.__dict__) > 1:
4802 d = self.__dict__.copy()
4807 def __setstate__(self, p):
4808 if not hasattr(self,
'this'):
4810 if isinstance(p, tuple):
4812 self.__dict__.update(d)
4813 return self._set_from_binary(p)
4817 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4819 r"""Proxy of C++ IMP::core::Cosine class."""
4821 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4823 def __init__(self, *args):
4825 __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4826 __init__(Cosine self) -> Cosine
4828 _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4830 def get_version_info(self):
4831 r"""get_version_info(Cosine self) -> VersionInfo"""
4832 return _IMP_core.Cosine_get_version_info(self)
4833 __swig_destroy__ = _IMP_core.delete_Cosine
4835 def do_show(self, out):
4836 r"""do_show(Cosine self, _ostream out)"""
4837 return _IMP_core.Cosine_do_show(self, out)
4840 r"""__str__(Cosine self) -> std::string"""
4841 return _IMP_core.Cosine___str__(self)
4844 r"""__repr__(Cosine self) -> std::string"""
4845 return _IMP_core.Cosine___repr__(self)
4849 return _object_cast_to_Cosine(o)
4852 def _get_as_binary(self):
4853 r"""_get_as_binary(Cosine self) -> PyObject *"""
4854 return _IMP_core.Cosine__get_as_binary(self)
4856 def _set_from_binary(self, p):
4857 r"""_set_from_binary(Cosine self, PyObject * p)"""
4858 return _IMP_core.Cosine__set_from_binary(self, p)
4860 def __getstate__(self):
4861 p = self._get_as_binary()
4862 if len(self.__dict__) > 1:
4863 d = self.__dict__.copy()
4868 def __setstate__(self, p):
4869 if not hasattr(self,
'this'):
4871 if isinstance(p, tuple):
4873 self.__dict__.update(d)
4874 return self._set_from_binary(p)
4878 _IMP_core.Cosine_swigregister(Cosine)
4880 r"""Proxy of C++ IMP::core::CoverRefined class."""
4882 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4884 def __init__(self, ref, slack=0):
4885 r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4886 _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4888 def set_slack(self, slack):
4889 r"""set_slack(CoverRefined self, IMP::Float slack)"""
4890 return _IMP_core.CoverRefined_set_slack(self, slack)
4892 def do_get_inputs(self, m, pis):
4893 r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4894 return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4896 def do_get_outputs(self, m, pis):
4897 r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4898 return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4900 def get_version_info(self):
4901 r"""get_version_info(CoverRefined self) -> VersionInfo"""
4902 return _IMP_core.CoverRefined_get_version_info(self)
4903 __swig_destroy__ = _IMP_core.delete_CoverRefined
4906 r"""__str__(CoverRefined self) -> std::string"""
4907 return _IMP_core.CoverRefined___str__(self)
4910 r"""__repr__(CoverRefined self) -> std::string"""
4911 return _IMP_core.CoverRefined___repr__(self)
4915 return _object_cast_to_CoverRefined(o)
4919 _IMP_core.CoverRefined_swigregister(CoverRefined)
4921 r"""Proxy of C++ IMP::core::Cover class."""
4923 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4925 def get_constraint(self):
4926 r"""get_constraint(Cover self) -> Constraint"""
4927 return _IMP_core.Cover_get_constraint(self)
4929 def __init__(self, *args):
4931 __init__(Cover self) -> Cover
4932 __init__(Cover self, Model m, ParticleIndex id) -> Cover
4933 __init__(Cover self, _ParticleAdaptor d) -> Cover
4935 _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4937 def show(self, *args):
4938 r"""show(Cover self, _ostream out=std::cout)"""
4939 return _IMP_core.Cover_show(self, *args)
4942 def setup_particle(*args):
4944 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4945 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4946 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4947 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4949 return _IMP_core.Cover_setup_particle(*args)
4952 def get_is_setup(*args):
4954 get_is_setup(_ParticleAdaptor p) -> bool
4955 get_is_setup(Model m, ParticleIndex pi) -> bool
4957 return _IMP_core.Cover_get_is_setup(*args)
4959 def add_attribute(self, *args):
4961 add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4962 add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4963 add_attribute(Cover self, IntKey a0, IMP::Int a1)
4964 add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4965 add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4966 add_attribute(Cover self, StringKey a0, IMP::String a1)
4967 add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4968 add_attribute(Cover self, ObjectKey a0, Object a1)
4969 add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
4970 add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
4971 add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
4972 add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
4974 return _IMP_core.Cover_add_attribute(self, *args)
4976 def get_value(self, *args):
4978 get_value(Cover self, FloatKey a0) -> IMP::Float
4979 get_value(Cover self, IntKey a0) -> IMP::Int
4980 get_value(Cover self, FloatsKey a0) -> IMP::Floats
4981 get_value(Cover self, IntsKey a0) -> IMP::Ints
4982 get_value(Cover self, StringKey a0) -> IMP::String
4983 get_value(Cover self, ParticleIndexKey a0) -> Particle
4984 get_value(Cover self, ObjectKey a0) -> Object
4985 get_value(Cover self, SparseFloatKey a0) -> IMP::Float
4986 get_value(Cover self, SparseIntKey a0) -> IMP::Int
4987 get_value(Cover self, SparseStringKey a0) -> IMP::String
4988 get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
4990 return _IMP_core.Cover_get_value(self, *args)
4992 def set_value(self, *args):
4994 set_value(Cover self, FloatKey a0, IMP::Float a1)
4995 set_value(Cover self, IntKey a0, IMP::Int a1)
4996 set_value(Cover self, FloatsKey a0, IMP::Floats a1)
4997 set_value(Cover self, IntsKey a0, IMP::Ints a1)
4998 set_value(Cover self, StringKey a0, IMP::String a1)
4999 set_value(Cover self, ParticleIndexKey a0, Particle a1)
5000 set_value(Cover self, ObjectKey a0, Object a1)
5001 set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5002 set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5003 set_value(Cover self, SparseStringKey a0, IMP::String a1)
5004 set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5006 return _IMP_core.Cover_set_value(self, *args)
5008 def remove_attribute(self, *args):
5010 remove_attribute(Cover self, FloatKey a0)
5011 remove_attribute(Cover self, IntKey a0)
5012 remove_attribute(Cover self, FloatsKey a0)
5013 remove_attribute(Cover self, IntsKey a0)
5014 remove_attribute(Cover self, StringKey a0)
5015 remove_attribute(Cover self, ParticleIndexKey a0)
5016 remove_attribute(Cover self, ObjectKey a0)
5017 remove_attribute(Cover self, SparseFloatKey a0)
5018 remove_attribute(Cover self, SparseIntKey a0)
5019 remove_attribute(Cover self, SparseStringKey a0)
5020 remove_attribute(Cover self, SparseParticleIndexKey a0)
5022 return _IMP_core.Cover_remove_attribute(self, *args)
5024 def has_attribute(self, *args):
5026 has_attribute(Cover self, FloatKey a0) -> bool
5027 has_attribute(Cover self, IntKey a0) -> bool
5028 has_attribute(Cover self, FloatsKey a0) -> bool
5029 has_attribute(Cover self, IntsKey a0) -> bool
5030 has_attribute(Cover self, StringKey a0) -> bool
5031 has_attribute(Cover self, ParticleIndexKey a0) -> bool
5032 has_attribute(Cover self, ObjectKey a0) -> bool
5033 has_attribute(Cover self, SparseFloatKey a0) -> bool
5034 has_attribute(Cover self, SparseIntKey a0) -> bool
5035 has_attribute(Cover self, SparseStringKey a0) -> bool
5036 has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5038 return _IMP_core.Cover_has_attribute(self, *args)
5040 def get_derivative(self, a0):
5041 r"""get_derivative(Cover self, FloatKey a0) -> double"""
5042 return _IMP_core.Cover_get_derivative(self, a0)
5045 r"""get_name(Cover self) -> std::string"""
5046 return _IMP_core.Cover_get_name(self)
5048 def clear_caches(self):
5049 r"""clear_caches(Cover self)"""
5050 return _IMP_core.Cover_clear_caches(self)
5052 def set_name(self, a0):
5053 r"""set_name(Cover self, std::string a0)"""
5054 return _IMP_core.Cover_set_name(self, a0)
5057 r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5058 return _IMP_core.Cover_set_check_level(self, a0)
5060 def add_to_derivative(self, a0, a1, a2):
5061 r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5062 return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5064 def set_is_optimized(self, a0, a1):
5065 r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5066 return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5068 def get_is_optimized(self, a0):
5069 r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5070 return _IMP_core.Cover_get_is_optimized(self, a0)
5073 r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5074 return _IMP_core.Cover_get_check_level(self)
5076 def __eq__(self, *args):
5078 __eq__(Cover self, Cover o) -> bool
5079 __eq__(Cover self, Particle d) -> bool
5081 return _IMP_core.Cover___eq__(self, *args)
5083 def __ne__(self, *args):
5085 __ne__(Cover self, Cover o) -> bool
5086 __ne__(Cover self, Particle d) -> bool
5088 return _IMP_core.Cover___ne__(self, *args)
5090 def __le__(self, *args):
5092 __le__(Cover self, Cover o) -> bool
5093 __le__(Cover self, Particle d) -> bool
5095 return _IMP_core.Cover___le__(self, *args)
5097 def __lt__(self, *args):
5099 __lt__(Cover self, Cover o) -> bool
5100 __lt__(Cover self, Particle d) -> bool
5102 return _IMP_core.Cover___lt__(self, *args)
5104 def __ge__(self, *args):
5106 __ge__(Cover self, Cover o) -> bool
5107 __ge__(Cover self, Particle d) -> bool
5109 return _IMP_core.Cover___ge__(self, *args)
5111 def __gt__(self, *args):
5113 __gt__(Cover self, Cover o) -> bool
5114 __gt__(Cover self, Particle d) -> bool
5116 return _IMP_core.Cover___gt__(self, *args)
5119 r"""__hash__(Cover self) -> std::size_t"""
5120 return _IMP_core.Cover___hash__(self)
5123 r"""__str__(Cover self) -> std::string"""
5124 return _IMP_core.Cover___str__(self)
5127 r"""__repr__(Cover self) -> std::string"""
5128 return _IMP_core.Cover___repr__(self)
5130 def _get_as_binary(self):
5131 r"""_get_as_binary(Cover self) -> PyObject *"""
5132 return _IMP_core.Cover__get_as_binary(self)
5134 def _set_from_binary(self, p):
5135 r"""_set_from_binary(Cover self, PyObject * p)"""
5136 return _IMP_core.Cover__set_from_binary(self, p)
5138 def __getstate__(self):
5139 p = self._get_as_binary()
5140 if len(self.__dict__) > 1:
5141 d = self.__dict__.copy()
5146 def __setstate__(self, p):
5147 if not hasattr(self,
'this'):
5149 if isinstance(p, tuple):
5151 self.__dict__.update(d)
5152 return self._set_from_binary(p)
5154 __swig_destroy__ = _IMP_core.delete_Cover
5157 _IMP_core.Cover_swigregister(Cover)
5159 r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5161 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5163 def __init__(self, *args):
5164 r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5165 _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5167 def do_get_inputs(self, m, pis):
5168 r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5169 return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5171 def do_get_outputs(self, m, pis):
5172 r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5173 return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5175 def get_version_info(self):
5176 r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5177 return _IMP_core.DerivativesFromRefined_get_version_info(self)
5178 __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5181 r"""__str__(DerivativesFromRefined self) -> std::string"""
5182 return _IMP_core.DerivativesFromRefined___str__(self)
5185 r"""__repr__(DerivativesFromRefined self) -> std::string"""
5186 return _IMP_core.DerivativesFromRefined___repr__(self)
5190 return _object_cast_to_DerivativesFromRefined(o)
5194 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5196 r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5198 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5200 def __init__(self, *args):
5201 r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5202 _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5204 def do_get_inputs(self, m, pis):
5205 r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5206 return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5208 def do_get_outputs(self, m, pis):
5209 r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5210 return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5212 def get_version_info(self):
5213 r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5214 return _IMP_core.DerivativesToRefined_get_version_info(self)
5215 __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5218 r"""__str__(DerivativesToRefined self) -> std::string"""
5219 return _IMP_core.DerivativesToRefined___str__(self)
5222 r"""__repr__(DerivativesToRefined self) -> std::string"""
5223 return _IMP_core.DerivativesToRefined___repr__(self)
5227 return _object_cast_to_DerivativesToRefined(o)
5231 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5233 r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5235 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5237 def __init__(self, f, sc, diameter):
5238 r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5239 _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5241 def do_get_inputs(self):
5242 r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5243 return _IMP_core.DiameterRestraint_do_get_inputs(self)
5245 def get_version_info(self):
5246 r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5247 return _IMP_core.DiameterRestraint_get_version_info(self)
5248 __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5250 def do_create_decomposition(self):
5251 r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5252 return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5254 def do_create_current_decomposition(self):
5255 r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5256 return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5259 r"""__str__(DiameterRestraint self) -> std::string"""
5260 return _IMP_core.DiameterRestraint___str__(self)
5263 r"""__repr__(DiameterRestraint self) -> std::string"""
5264 return _IMP_core.DiameterRestraint___repr__(self)
5268 return _object_cast_to_DiameterRestraint(o)
5272 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5274 r"""Proxy of C++ IMP::core::Transform class."""
5276 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5278 def __init__(self, *args):
5280 __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5281 __init__(Transform self) -> Transform
5283 _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5285 def do_get_inputs(self, m, pis):
5286 r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5287 return _IMP_core.Transform_do_get_inputs(self, m, pis)
5289 def do_get_outputs(self, m, pis):
5290 r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5291 return _IMP_core.Transform_do_get_outputs(self, m, pis)
5293 def get_version_info(self):
5294 r"""get_version_info(Transform self) -> VersionInfo"""
5295 return _IMP_core.Transform_get_version_info(self)
5296 __swig_destroy__ = _IMP_core.delete_Transform
5299 r"""__str__(Transform self) -> std::string"""
5300 return _IMP_core.Transform___str__(self)
5303 r"""__repr__(Transform self) -> std::string"""
5304 return _IMP_core.Transform___repr__(self)
5308 return _object_cast_to_Transform(o)
5311 def _get_as_binary(self):
5312 r"""_get_as_binary(Transform self) -> PyObject *"""
5313 return _IMP_core.Transform__get_as_binary(self)
5315 def _set_from_binary(self, p):
5316 r"""_set_from_binary(Transform self, PyObject * p)"""
5317 return _IMP_core.Transform__set_from_binary(self, p)
5319 def __getstate__(self):
5320 p = self._get_as_binary()
5321 if len(self.__dict__) > 1:
5322 d = self.__dict__.copy()
5327 def __setstate__(self, p):
5328 if not hasattr(self,
'this'):
5330 if isinstance(p, tuple):
5332 self.__dict__.update(d)
5333 return self._set_from_binary(p)
5337 _IMP_core.Transform_swigregister(Transform)
5339 r"""Proxy of C++ IMP::core::Reference class."""
5341 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5343 def __init__(self, *args):
5345 __init__(Reference self) -> Reference
5346 __init__(Reference self, Model m, ParticleIndex id) -> Reference
5347 __init__(Reference self, _ParticleAdaptor d) -> Reference
5349 _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5351 def show(self, *args):
5352 r"""show(Reference self, _ostream out=std::cout)"""
5353 return _IMP_core.Reference_show(self, *args)
5356 def setup_particle(*args):
5358 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5359 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5361 return _IMP_core.Reference_setup_particle(*args)
5363 def get_reference_particle(self):
5364 r"""get_reference_particle(Reference self) -> Particle"""
5365 return _IMP_core.Reference_get_reference_particle(self)
5368 def get_is_setup(*args):
5370 get_is_setup(_ParticleAdaptor p) -> bool
5371 get_is_setup(Model m, ParticleIndex pi) -> bool
5373 return _IMP_core.Reference_get_is_setup(*args)
5376 def get_reference_key():
5377 r"""get_reference_key() -> ParticleIndexKey"""
5378 return _IMP_core.Reference_get_reference_key()
5380 def add_attribute(self, *args):
5382 add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5383 add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5384 add_attribute(Reference self, IntKey a0, IMP::Int a1)
5385 add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5386 add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5387 add_attribute(Reference self, StringKey a0, IMP::String a1)
5388 add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5389 add_attribute(Reference self, ObjectKey a0, Object a1)
5390 add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5391 add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5392 add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5393 add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5395 return _IMP_core.Reference_add_attribute(self, *args)
5397 def get_value(self, *args):
5399 get_value(Reference self, FloatKey a0) -> IMP::Float
5400 get_value(Reference self, IntKey a0) -> IMP::Int
5401 get_value(Reference self, FloatsKey a0) -> IMP::Floats
5402 get_value(Reference self, IntsKey a0) -> IMP::Ints
5403 get_value(Reference self, StringKey a0) -> IMP::String
5404 get_value(Reference self, ParticleIndexKey a0) -> Particle
5405 get_value(Reference self, ObjectKey a0) -> Object
5406 get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5407 get_value(Reference self, SparseIntKey a0) -> IMP::Int
5408 get_value(Reference self, SparseStringKey a0) -> IMP::String
5409 get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5411 return _IMP_core.Reference_get_value(self, *args)
5413 def set_value(self, *args):
5415 set_value(Reference self, FloatKey a0, IMP::Float a1)
5416 set_value(Reference self, IntKey a0, IMP::Int a1)
5417 set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5418 set_value(Reference self, IntsKey a0, IMP::Ints a1)
5419 set_value(Reference self, StringKey a0, IMP::String a1)
5420 set_value(Reference self, ParticleIndexKey a0, Particle a1)
5421 set_value(Reference self, ObjectKey a0, Object a1)
5422 set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5423 set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5424 set_value(Reference self, SparseStringKey a0, IMP::String a1)
5425 set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5427 return _IMP_core.Reference_set_value(self, *args)
5429 def remove_attribute(self, *args):
5431 remove_attribute(Reference self, FloatKey a0)
5432 remove_attribute(Reference self, IntKey a0)
5433 remove_attribute(Reference self, FloatsKey a0)
5434 remove_attribute(Reference self, IntsKey a0)
5435 remove_attribute(Reference self, StringKey a0)
5436 remove_attribute(Reference self, ParticleIndexKey a0)
5437 remove_attribute(Reference self, ObjectKey a0)
5438 remove_attribute(Reference self, SparseFloatKey a0)
5439 remove_attribute(Reference self, SparseIntKey a0)
5440 remove_attribute(Reference self, SparseStringKey a0)
5441 remove_attribute(Reference self, SparseParticleIndexKey a0)
5443 return _IMP_core.Reference_remove_attribute(self, *args)
5445 def has_attribute(self, *args):
5447 has_attribute(Reference self, FloatKey a0) -> bool
5448 has_attribute(Reference self, IntKey a0) -> bool
5449 has_attribute(Reference self, FloatsKey a0) -> bool
5450 has_attribute(Reference self, IntsKey a0) -> bool
5451 has_attribute(Reference self, StringKey a0) -> bool
5452 has_attribute(Reference self, ParticleIndexKey a0) -> bool
5453 has_attribute(Reference self, ObjectKey a0) -> bool
5454 has_attribute(Reference self, SparseFloatKey a0) -> bool
5455 has_attribute(Reference self, SparseIntKey a0) -> bool
5456 has_attribute(Reference self, SparseStringKey a0) -> bool
5457 has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5459 return _IMP_core.Reference_has_attribute(self, *args)
5461 def get_derivative(self, a0):
5462 r"""get_derivative(Reference self, FloatKey a0) -> double"""
5463 return _IMP_core.Reference_get_derivative(self, a0)
5466 r"""get_name(Reference self) -> std::string"""
5467 return _IMP_core.Reference_get_name(self)
5469 def clear_caches(self):
5470 r"""clear_caches(Reference self)"""
5471 return _IMP_core.Reference_clear_caches(self)
5473 def set_name(self, a0):
5474 r"""set_name(Reference self, std::string a0)"""
5475 return _IMP_core.Reference_set_name(self, a0)
5478 r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5479 return _IMP_core.Reference_set_check_level(self, a0)
5481 def add_to_derivative(self, a0, a1, a2):
5482 r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5483 return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5485 def set_is_optimized(self, a0, a1):
5486 r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5487 return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5489 def get_is_optimized(self, a0):
5490 r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5491 return _IMP_core.Reference_get_is_optimized(self, a0)
5494 r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5495 return _IMP_core.Reference_get_check_level(self)
5497 def __eq__(self, *args):
5499 __eq__(Reference self, Reference o) -> bool
5500 __eq__(Reference self, Particle d) -> bool
5502 return _IMP_core.Reference___eq__(self, *args)
5504 def __ne__(self, *args):
5506 __ne__(Reference self, Reference o) -> bool
5507 __ne__(Reference self, Particle d) -> bool
5509 return _IMP_core.Reference___ne__(self, *args)
5511 def __le__(self, *args):
5513 __le__(Reference self, Reference o) -> bool
5514 __le__(Reference self, Particle d) -> bool
5516 return _IMP_core.Reference___le__(self, *args)
5518 def __lt__(self, *args):
5520 __lt__(Reference self, Reference o) -> bool
5521 __lt__(Reference self, Particle d) -> bool
5523 return _IMP_core.Reference___lt__(self, *args)
5525 def __ge__(self, *args):
5527 __ge__(Reference self, Reference o) -> bool
5528 __ge__(Reference self, Particle d) -> bool
5530 return _IMP_core.Reference___ge__(self, *args)
5532 def __gt__(self, *args):
5534 __gt__(Reference self, Reference o) -> bool
5535 __gt__(Reference self, Particle d) -> bool
5537 return _IMP_core.Reference___gt__(self, *args)
5540 r"""__hash__(Reference self) -> std::size_t"""
5541 return _IMP_core.Reference___hash__(self)
5544 r"""__str__(Reference self) -> std::string"""
5545 return _IMP_core.Reference___str__(self)
5548 r"""__repr__(Reference self) -> std::string"""
5549 return _IMP_core.Reference___repr__(self)
5551 def _get_as_binary(self):
5552 r"""_get_as_binary(Reference self) -> PyObject *"""
5553 return _IMP_core.Reference__get_as_binary(self)
5555 def _set_from_binary(self, p):
5556 r"""_set_from_binary(Reference self, PyObject * p)"""
5557 return _IMP_core.Reference__set_from_binary(self, p)
5559 def __getstate__(self):
5560 p = self._get_as_binary()
5561 if len(self.__dict__) > 1:
5562 d = self.__dict__.copy()
5567 def __setstate__(self, p):
5568 if not hasattr(self,
'this'):
5570 if isinstance(p, tuple):
5572 self.__dict__.update(d)
5573 return self._set_from_binary(p)
5575 __swig_destroy__ = _IMP_core.delete_Reference
5578 _IMP_core.Reference_swigregister(Reference)
5580 r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5584 def __init__(self, t, r):
5585 r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5586 _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5588 def do_get_inputs(self, m, pis):
5589 r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5590 return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5592 def do_get_outputs(self, m, pis):
5593 r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5594 return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5596 def get_version_info(self):
5597 r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5598 return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5599 __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5602 r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5603 return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5606 r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5607 return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5611 return _object_cast_to_TransformationAndReflectionSymmetry(o)
5615 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5617 r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5619 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5621 def __init__(self, *args):
5623 __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5624 __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5626 _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5628 def get_transformation(self):
5629 r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5630 return _IMP_core.TransformationSymmetry_get_transformation(self)
5632 def set_transformation(self, t):
5633 r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5634 return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5636 def do_get_inputs(self, m, pis):
5637 r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5638 return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5640 def do_get_outputs(self, m, pis):
5641 r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5642 return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5644 def get_version_info(self):
5645 r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5646 return _IMP_core.TransformationSymmetry_get_version_info(self)
5647 __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5650 r"""__str__(TransformationSymmetry self) -> std::string"""
5651 return _IMP_core.TransformationSymmetry___str__(self)
5654 r"""__repr__(TransformationSymmetry self) -> std::string"""
5655 return _IMP_core.TransformationSymmetry___repr__(self)
5659 return _object_cast_to_TransformationSymmetry(o)
5663 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5664 class TransformationSymmetryMover(MonteCarloMover):
5665 r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5667 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5669 def __init__(self, m, symm, pivot, max_translation, max_rotation):
5670 r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5671 _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5673 def set_maximum_translation(self, mt):
5674 r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5675 return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5677 def set_maximum_rotation(self, mr):
5678 r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5679 return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5681 def get_maximum_translation(self):
5682 r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5683 return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5685 def get_maximum_rotation(self):
5686 r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5687 return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5689 def get_version_info(self):
5690 r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5691 return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5692 __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5695 r"""__str__(TransformationSymmetryMover self) -> std::string"""
5696 return _IMP_core.TransformationSymmetryMover___str__(self)
5699 r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5700 return _IMP_core.TransformationSymmetryMover___repr__(self)
5704 return _object_cast_to_TransformationSymmetryMover(o)
5708 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5710 r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5712 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5714 def __init__(self, m, score_func, p1, p2, p3, p4):
5715 r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5716 _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5718 def do_get_inputs(self):
5719 r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5720 return _IMP_core.DihedralRestraint_do_get_inputs(self)
5722 def get_version_info(self):
5723 r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5724 return _IMP_core.DihedralRestraint_get_version_info(self)
5725 __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5728 r"""__str__(DihedralRestraint self) -> std::string"""
5729 return _IMP_core.DihedralRestraint___str__(self)
5732 r"""__repr__(DihedralRestraint self) -> std::string"""
5733 return _IMP_core.DihedralRestraint___repr__(self)
5737 return _object_cast_to_DihedralRestraint(o)
5741 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5743 r"""Proxy of C++ IMP::core::DistancePairScore class."""
5745 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5747 def __init__(self, *args):
5749 __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5750 __init__(DistancePairScore self) -> DistancePairScore
5752 _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5754 def do_get_inputs(self, m, pis):
5755 r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5756 return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5758 def get_version_info(self):
5759 r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5760 return _IMP_core.DistancePairScore_get_version_info(self)
5761 __swig_destroy__ = _IMP_core.delete_DistancePairScore
5764 r"""__str__(DistancePairScore self) -> std::string"""
5765 return _IMP_core.DistancePairScore___str__(self)
5768 r"""__repr__(DistancePairScore self) -> std::string"""
5769 return _IMP_core.DistancePairScore___repr__(self)
5773 return _object_cast_to_DistancePairScore(o)
5776 def _get_as_binary(self):
5777 r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5778 return _IMP_core.DistancePairScore__get_as_binary(self)
5780 def _set_from_binary(self, p):
5781 r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5782 return _IMP_core.DistancePairScore__set_from_binary(self, p)
5784 def __getstate__(self):
5785 p = self._get_as_binary()
5786 if len(self.__dict__) > 1:
5787 d = self.__dict__.copy()
5792 def __setstate__(self, p):
5793 if not hasattr(self,
'this'):
5795 if isinstance(p, tuple):
5797 self.__dict__.update(d)
5798 return self._set_from_binary(p)
5802 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5804 r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5806 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5808 def __init__(self, *args):
5810 __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5811 __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5813 _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5815 def do_get_inputs(self, m, pis):
5816 r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5817 return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5819 def get_version_info(self):
5820 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5821 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5822 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5825 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5826 return _IMP_core.HarmonicDistancePairScore___str__(self)
5829 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5830 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5834 return _object_cast_to_HarmonicDistancePairScore(o)
5837 def _get_as_binary(self):
5838 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5839 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5841 def _set_from_binary(self, p):
5842 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5843 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5845 def __getstate__(self):
5846 p = self._get_as_binary()
5847 if len(self.__dict__) > 1:
5848 d = self.__dict__.copy()
5853 def __setstate__(self, p):
5854 if not hasattr(self,
'this'):
5856 if isinstance(p, tuple):
5858 self.__dict__.update(d)
5859 return self._set_from_binary(p)
5863 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5865 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5867 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5869 def __init__(self, *args):
5871 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5872 __init__(DistanceRestraint self) -> DistanceRestraint
5874 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5876 def get_version_info(self):
5877 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5878 return _IMP_core.DistanceRestraint_get_version_info(self)
5879 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5882 r"""__str__(DistanceRestraint self) -> std::string"""
5883 return _IMP_core.DistanceRestraint___str__(self)
5886 r"""__repr__(DistanceRestraint self) -> std::string"""
5887 return _IMP_core.DistanceRestraint___repr__(self)
5891 return _object_cast_to_DistanceRestraint(o)
5894 def _get_as_binary(self):
5895 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5896 return _IMP_core.DistanceRestraint__get_as_binary(self)
5898 def _set_from_binary(self, p):
5899 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5900 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5902 def __getstate__(self):
5903 p = self._get_as_binary()
5904 if len(self.__dict__) > 1:
5905 d = self.__dict__.copy()
5910 def __setstate__(self, p):
5911 if not hasattr(self,
'this'):
5913 if isinstance(p, tuple):
5915 self.__dict__.update(d)
5916 return self._set_from_binary(p)
5920 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5922 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5924 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5926 def __init__(self, f, pt):
5927 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5928 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5930 def do_get_inputs(self, m, pis):
5931 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5932 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5934 def get_version_info(self):
5935 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5936 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5937 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5940 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5941 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5944 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5945 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5949 return _object_cast_to_SphereDistanceToSingletonScore(o)
5953 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
5955 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
5957 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5959 def __init__(self, *args):
5960 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
5961 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
5963 def do_get_inputs(self):
5964 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
5965 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
5967 def get_version_info(self):
5968 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
5969 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
5970 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
5972 def do_create_decomposition(self):
5973 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5974 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
5976 def do_create_current_decomposition(self):
5977 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5978 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
5981 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
5982 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
5983 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)
5984 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
5985 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
5986 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
5988 def remove_pair_filter(self, d):
5989 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
5990 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
5992 def _python_index_pair_filter(self, d, start, stop):
5993 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
5994 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
5996 def remove_pair_filters(self, d):
5997 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
5998 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6000 def set_pair_filters(self, ps):
6001 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6002 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6004 def set_pair_filters_order(self, objs):
6005 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6006 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6008 def add_pair_filter(self, obj):
6009 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6010 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6012 def add_pair_filters(self, objs):
6013 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6014 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6016 def clear_pair_filters(self):
6017 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6018 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6020 def get_number_of_pair_filters(self):
6021 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6022 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6024 def get_has_pair_filters(self):
6025 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6026 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6028 def get_pair_filter(self, i):
6029 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6030 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6032 def get_pair_filters(self):
6033 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6034 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6036 def erase_pair_filter(self, i):
6037 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6038 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6040 def reserve_pair_filters(self, sz):
6041 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6042 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6045 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6046 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6049 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6050 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6054 return _object_cast_to_ExcludedVolumeRestraint(o)
6058 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6060 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6062 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6064 def __init__(self, *args):
6066 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6067 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6069 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6071 def do_get_inputs(self, m, pis):
6072 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6073 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6075 def get_version_info(self):
6076 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6077 return _IMP_core.FixedRefiner_get_version_info(self)
6078 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6081 r"""__str__(FixedRefiner self) -> std::string"""
6082 return _IMP_core.FixedRefiner___str__(self)
6085 r"""__repr__(FixedRefiner self) -> std::string"""
6086 return _IMP_core.FixedRefiner___repr__(self)
6090 return _object_cast_to_FixedRefiner(o)
6094 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6095 class GridClosePairsFinder(ClosePairsFinder):
6096 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6098 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6101 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6102 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6104 def get_close_pairs(self, *args):
6106 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6107 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6108 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6109 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6111 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6113 def do_get_inputs(self, m, pis):
6114 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6115 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6117 def get_version_info(self):
6118 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6119 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6120 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6123 r"""__str__(GridClosePairsFinder self) -> std::string"""
6124 return _IMP_core.GridClosePairsFinder___str__(self)
6127 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6128 return _IMP_core.GridClosePairsFinder___repr__(self)
6132 return _object_cast_to_GridClosePairsFinder(o)
6135 def _get_as_binary(self):
6136 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6137 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6139 def _set_from_binary(self, p):
6140 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6141 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6143 def __getstate__(self):
6144 p = self._get_as_binary()
6145 if len(self.__dict__) > 1:
6146 d = self.__dict__.copy()
6151 def __setstate__(self, p):
6152 if not hasattr(self,
'this'):
6154 if isinstance(p, tuple):
6156 self.__dict__.update(d)
6157 return self._set_from_binary(p)
6161 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6163 r"""Proxy of C++ IMP::core::Harmonic class."""
6165 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6167 def __init__(self, *args):
6169 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6170 __init__(Harmonic self) -> Harmonic
6172 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6174 def get_version_info(self):
6175 r"""get_version_info(Harmonic self) -> VersionInfo"""
6176 return _IMP_core.Harmonic_get_version_info(self)
6177 __swig_destroy__ = _IMP_core.delete_Harmonic
6180 r"""get_mean(Harmonic self) -> IMP::Float"""
6181 return _IMP_core.Harmonic_get_mean(self)
6184 r"""get_k(Harmonic self) -> IMP::Float"""
6185 return _IMP_core.Harmonic_get_k(self)
6187 def set_mean(self, mean):
6188 r"""set_mean(Harmonic self, IMP::Float mean)"""
6189 return _IMP_core.Harmonic_set_mean(self, mean)
6192 r"""set_k(Harmonic self, IMP::Float k)"""
6193 return _IMP_core.Harmonic_set_k(self, k)
6196 def get_k_from_standard_deviation(sd, t=297.15):
6197 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6198 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6201 r"""__str__(Harmonic self) -> std::string"""
6202 return _IMP_core.Harmonic___str__(self)
6205 r"""__repr__(Harmonic self) -> std::string"""
6206 return _IMP_core.Harmonic___repr__(self)
6210 return _object_cast_to_Harmonic(o)
6213 def _get_as_binary(self):
6214 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6215 return _IMP_core.Harmonic__get_as_binary(self)
6217 def _set_from_binary(self, p):
6218 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6219 return _IMP_core.Harmonic__set_from_binary(self, p)
6221 def __getstate__(self):
6222 p = self._get_as_binary()
6223 if len(self.__dict__) > 1:
6224 d = self.__dict__.copy()
6229 def __setstate__(self, p):
6230 if not hasattr(self,
'this'):
6232 if isinstance(p, tuple):
6234 self.__dict__.update(d)
6235 return self._set_from_binary(p)
6239 _IMP_core.Harmonic_swigregister(Harmonic)
6241 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6243 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6245 def __init__(self, well, k):
6246 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6247 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6249 def get_version_info(self):
6250 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6251 return _IMP_core.HarmonicWell_get_version_info(self)
6252 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6255 r"""__str__(HarmonicWell self) -> std::string"""
6256 return _IMP_core.HarmonicWell___str__(self)
6259 r"""__repr__(HarmonicWell self) -> std::string"""
6260 return _IMP_core.HarmonicWell___repr__(self)
6264 return _object_cast_to_HarmonicWell(o)
6268 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6269 class HarmonicLowerBound(Harmonic):
6270 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6272 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6274 def __init__(self, *args):
6276 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6277 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6279 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6280 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6283 r"""__str__(HarmonicLowerBound self) -> std::string"""
6284 return _IMP_core.HarmonicLowerBound___str__(self)
6287 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6288 return _IMP_core.HarmonicLowerBound___repr__(self)
6292 return _object_cast_to_HarmonicLowerBound(o)
6295 def _get_as_binary(self):
6296 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6297 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6299 def _set_from_binary(self, p):
6300 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6301 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6303 def __getstate__(self):
6304 p = self._get_as_binary()
6305 if len(self.__dict__) > 1:
6306 d = self.__dict__.copy()
6311 def __setstate__(self, p):
6312 if not hasattr(self,
'this'):
6314 if isinstance(p, tuple):
6316 self.__dict__.update(d)
6317 return self._set_from_binary(p)
6321 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6322 class HarmonicUpperBound(Harmonic):
6323 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6325 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6327 def __init__(self, *args):
6329 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6330 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6332 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6333 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6336 r"""__str__(HarmonicUpperBound self) -> std::string"""
6337 return _IMP_core.HarmonicUpperBound___str__(self)
6340 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6341 return _IMP_core.HarmonicUpperBound___repr__(self)
6345 return _object_cast_to_HarmonicUpperBound(o)
6348 def _get_as_binary(self):
6349 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6350 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6352 def _set_from_binary(self, p):
6353 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6354 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6356 def __getstate__(self):
6357 p = self._get_as_binary()
6358 if len(self.__dict__) > 1:
6359 d = self.__dict__.copy()
6364 def __setstate__(self, p):
6365 if not hasattr(self,
'this'):
6367 if isinstance(p, tuple):
6369 self.__dict__.update(d)
6370 return self._set_from_binary(p)
6374 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6376 r"""Proxy of C++ IMP::core::WeightedSum class."""
6378 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6380 def __init__(self, funcs, weights):
6381 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6382 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6384 def get_function_number(self):
6385 r"""get_function_number(WeightedSum self) -> unsigned int"""
6386 return _IMP_core.WeightedSum_get_function_number(self)
6388 def set_weights(self, weights):
6389 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6390 return _IMP_core.WeightedSum_set_weights(self, weights)
6392 def get_weights(self):
6393 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6394 return _IMP_core.WeightedSum_get_weights(self)
6396 def get_weight(self, i):
6397 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6398 return _IMP_core.WeightedSum_get_weight(self, i)
6400 def get_function(self, i):
6401 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6402 return _IMP_core.WeightedSum_get_function(self, i)
6404 def get_version_info(self):
6405 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6406 return _IMP_core.WeightedSum_get_version_info(self)
6407 __swig_destroy__ = _IMP_core.delete_WeightedSum
6410 r"""__str__(WeightedSum self) -> std::string"""
6411 return _IMP_core.WeightedSum___str__(self)
6414 r"""__repr__(WeightedSum self) -> std::string"""
6415 return _IMP_core.WeightedSum___repr__(self)
6419 return _object_cast_to_WeightedSum(o)
6423 _IMP_core.WeightedSum_swigregister(WeightedSum)
6425 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6427 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6429 def __init__(self, funcs, weights, denom=1.0):
6430 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6431 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6433 def get_function_number(self):
6434 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6435 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6437 def set_weights(self, weights):
6438 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6439 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6441 def get_weights(self):
6442 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6443 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6445 def get_weight(self, i):
6446 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6447 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6449 def get_function(self, i):
6450 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6451 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6453 def set_denominator(self, denom):
6454 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6455 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6457 def get_denominator(self):
6458 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6459 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6461 def get_version_info(self):
6462 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6463 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6464 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6467 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6468 return _IMP_core.WeightedSumOfExponential___str__(self)
6471 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6472 return _IMP_core.WeightedSumOfExponential___repr__(self)
6476 return _object_cast_to_WeightedSumOfExponential(o)
6480 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6482 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6484 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6486 def __init__(self, m, ps, eps=0.1):
6487 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6488 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6490 def add_type(self, ps):
6491 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6492 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6494 def add_composite(self, *args):
6496 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6497 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6499 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6501 def get_connected_pairs(self):
6502 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6503 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6505 def get_pair_score(self):
6506 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6507 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6509 def do_create_current_decomposition(self):
6510 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6511 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6513 def do_get_inputs(self):
6514 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6515 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6517 def get_version_info(self):
6518 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6519 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6520 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6523 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6524 return _IMP_core.MSConnectivityRestraint___str__(self)
6527 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6528 return _IMP_core.MSConnectivityRestraint___repr__(self)
6532 return _object_cast_to_MSConnectivityRestraint(o)
6536 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6537 class HierarchyTraits(object):
6538 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6540 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6542 def __init__(self, *args):
6544 __init__(HierarchyTraits self) -> HierarchyTraits
6545 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6547 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6549 def get_children_key(self):
6550 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6551 return _IMP_core.HierarchyTraits_get_children_key(self)
6553 def get_parent_key(self):
6554 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6555 return _IMP_core.HierarchyTraits_get_parent_key(self)
6557 def __eq__(self, o):
6558 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6559 return _IMP_core.HierarchyTraits___eq__(self, o)
6561 def show(self, *args):
6562 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6563 return _IMP_core.HierarchyTraits_show(self, *args)
6566 r"""__str__(HierarchyTraits self) -> std::string"""
6567 return _IMP_core.HierarchyTraits___str__(self)
6570 r"""__repr__(HierarchyTraits self) -> std::string"""
6571 return _IMP_core.HierarchyTraits___repr__(self)
6572 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6575 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6577 r"""Proxy of C++ IMP::core::Hierarchy class."""
6579 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6581 def get_decorator_traits(self):
6582 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6583 return _IMP_core.Hierarchy_get_decorator_traits(self)
6586 def get_default_decorator_traits():
6587 r"""get_default_decorator_traits() -> HierarchyTraits"""
6588 return _IMP_core.Hierarchy_get_default_decorator_traits()
6590 def __init__(self, *args):
6592 __init__(Hierarchy self) -> Hierarchy
6593 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6594 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6596 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6598 def show(self, *args):
6599 r"""show(Hierarchy self, _ostream out=std::cout)"""
6600 return _IMP_core.Hierarchy_show(self, *args)
6603 def setup_particle(*args):
6605 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6606 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6607 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6608 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6609 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6610 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6612 return _IMP_core.Hierarchy_setup_particle(*args)
6615 def get_is_setup(*args):
6617 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6618 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6620 return _IMP_core.Hierarchy_get_is_setup(*args)
6623 def get_changed_key():
6624 r"""get_changed_key() -> TriggerKey"""
6625 return _IMP_core.Hierarchy_get_changed_key()
6627 def get_parent(self):
6628 r"""get_parent(Hierarchy self) -> Hierarchy"""
6629 return _IMP_core.Hierarchy_get_parent(self)
6631 def get_number_of_children(self):
6632 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6633 return _IMP_core.Hierarchy_get_number_of_children(self)
6635 def get_child(self, i):
6636 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6637 return _IMP_core.Hierarchy_get_child(self, i)
6639 def get_children_indexes(self):
6640 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6641 return _IMP_core.Hierarchy_get_children_indexes(self)
6643 def get_children(self):
6644 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6645 return _IMP_core.Hierarchy_get_children(self)
6647 def remove_child(self, *args):
6649 remove_child(Hierarchy self, unsigned int i)
6650 remove_child(Hierarchy self, Hierarchy h)
6652 return _IMP_core.Hierarchy_remove_child(self, *args)
6654 def clear_children(self):
6655 r"""clear_children(Hierarchy self)"""
6656 return _IMP_core.Hierarchy_clear_children(self)
6658 def add_child(self, h):
6659 r"""add_child(Hierarchy self, Hierarchy h)"""
6660 return _IMP_core.Hierarchy_add_child(self, h)
6662 def add_child_at(self, h, pos):
6663 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6664 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6666 def get_child_index(self, *args):
6668 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6669 get_child_index(Hierarchy self) -> int
6671 return _IMP_core.Hierarchy_get_child_index(self, *args)
6674 def get_default_traits():
6675 r"""get_default_traits() -> HierarchyTraits"""
6676 return _IMP_core.Hierarchy_get_default_traits()
6678 def get_traits(self):
6679 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6680 return _IMP_core.Hierarchy_get_traits(self)
6682 def add_attribute(self, *args):
6684 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6685 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6686 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6687 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6688 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6689 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6690 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6691 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6692 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6693 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6694 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6695 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6697 return _IMP_core.Hierarchy_add_attribute(self, *args)
6699 def get_value(self, *args):
6701 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6702 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6703 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6704 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6705 get_value(Hierarchy self, StringKey a0) -> IMP::String
6706 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6707 get_value(Hierarchy self, ObjectKey a0) -> Object
6708 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6709 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6710 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6711 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6713 return _IMP_core.Hierarchy_get_value(self, *args)
6715 def set_value(self, *args):
6717 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6718 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6719 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6720 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6721 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6722 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6723 set_value(Hierarchy self, ObjectKey a0, Object a1)
6724 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6725 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6726 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6727 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6729 return _IMP_core.Hierarchy_set_value(self, *args)
6731 def remove_attribute(self, *args):
6733 remove_attribute(Hierarchy self, FloatKey a0)
6734 remove_attribute(Hierarchy self, IntKey a0)
6735 remove_attribute(Hierarchy self, FloatsKey a0)
6736 remove_attribute(Hierarchy self, IntsKey a0)
6737 remove_attribute(Hierarchy self, StringKey a0)
6738 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6739 remove_attribute(Hierarchy self, ObjectKey a0)
6740 remove_attribute(Hierarchy self, SparseFloatKey a0)
6741 remove_attribute(Hierarchy self, SparseIntKey a0)
6742 remove_attribute(Hierarchy self, SparseStringKey a0)
6743 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6745 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6747 def has_attribute(self, *args):
6749 has_attribute(Hierarchy self, FloatKey a0) -> bool
6750 has_attribute(Hierarchy self, IntKey a0) -> bool
6751 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6752 has_attribute(Hierarchy self, IntsKey a0) -> bool
6753 has_attribute(Hierarchy self, StringKey a0) -> bool
6754 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6755 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6756 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6757 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6758 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6759 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6761 return _IMP_core.Hierarchy_has_attribute(self, *args)
6763 def get_derivative(self, a0):
6764 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6765 return _IMP_core.Hierarchy_get_derivative(self, a0)
6768 r"""get_name(Hierarchy self) -> std::string"""
6769 return _IMP_core.Hierarchy_get_name(self)
6771 def clear_caches(self):
6772 r"""clear_caches(Hierarchy self)"""
6773 return _IMP_core.Hierarchy_clear_caches(self)
6775 def set_name(self, a0):
6776 r"""set_name(Hierarchy self, std::string a0)"""
6777 return _IMP_core.Hierarchy_set_name(self, a0)
6780 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6781 return _IMP_core.Hierarchy_set_check_level(self, a0)
6783 def add_to_derivative(self, a0, a1, a2):
6784 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6785 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6787 def set_is_optimized(self, a0, a1):
6788 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6789 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6791 def get_is_optimized(self, a0):
6792 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6793 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6796 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6797 return _IMP_core.Hierarchy_get_check_level(self)
6799 def __eq__(self, *args):
6801 __eq__(Hierarchy self, Hierarchy o) -> bool
6802 __eq__(Hierarchy self, Particle d) -> bool
6804 return _IMP_core.Hierarchy___eq__(self, *args)
6806 def __ne__(self, *args):
6808 __ne__(Hierarchy self, Hierarchy o) -> bool
6809 __ne__(Hierarchy self, Particle d) -> bool
6811 return _IMP_core.Hierarchy___ne__(self, *args)
6813 def __le__(self, *args):
6815 __le__(Hierarchy self, Hierarchy o) -> bool
6816 __le__(Hierarchy self, Particle d) -> bool
6818 return _IMP_core.Hierarchy___le__(self, *args)
6820 def __lt__(self, *args):
6822 __lt__(Hierarchy self, Hierarchy o) -> bool
6823 __lt__(Hierarchy self, Particle d) -> bool
6825 return _IMP_core.Hierarchy___lt__(self, *args)
6827 def __ge__(self, *args):
6829 __ge__(Hierarchy self, Hierarchy o) -> bool
6830 __ge__(Hierarchy self, Particle d) -> bool
6832 return _IMP_core.Hierarchy___ge__(self, *args)
6834 def __gt__(self, *args):
6836 __gt__(Hierarchy self, Hierarchy o) -> bool
6837 __gt__(Hierarchy self, Particle d) -> bool
6839 return _IMP_core.Hierarchy___gt__(self, *args)
6842 r"""__hash__(Hierarchy self) -> std::size_t"""
6843 return _IMP_core.Hierarchy___hash__(self)
6846 r"""__str__(Hierarchy self) -> std::string"""
6847 return _IMP_core.Hierarchy___str__(self)
6850 r"""__repr__(Hierarchy self) -> std::string"""
6851 return _IMP_core.Hierarchy___repr__(self)
6852 __swig_destroy__ = _IMP_core.delete_Hierarchy
6855 _IMP_core.Hierarchy_swigregister(Hierarchy)
6856 class HierarchyVisitor(object):
6857 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6859 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6860 __repr__ = _swig_repr
6863 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6864 if self.__class__ == HierarchyVisitor:
6868 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6870 if self.__class__ != HierarchyVisitor:
6871 _director_objects.register(self)
6876 def __call__(self, p):
6877 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6878 return _IMP_core.HierarchyVisitor___call__(self, p)
6879 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6880 def __disown__(self):
6882 _IMP_core.disown_HierarchyVisitor(self)
6883 return weakref.proxy(self)
6886 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6887 class ModifierVisitor(HierarchyVisitor):
6888 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6890 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6891 __repr__ = _swig_repr
6893 def __init__(self, sm):
6894 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6895 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6896 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6899 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6900 class HierarchyCounter(HierarchyVisitor):
6901 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6903 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6906 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6907 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6909 def get_count(self):
6910 r"""get_count(HierarchyCounter self) -> unsigned int"""
6911 return _IMP_core.HierarchyCounter_get_count(self)
6913 def show(self, *args):
6914 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6915 return _IMP_core.HierarchyCounter_show(self, *args)
6918 r"""__str__(HierarchyCounter self) -> std::string"""
6919 return _IMP_core.HierarchyCounter___str__(self)
6922 r"""__repr__(HierarchyCounter self) -> std::string"""
6923 return _IMP_core.HierarchyCounter___repr__(self)
6925 def _get_as_binary(self):
6926 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6927 return _IMP_core.HierarchyCounter__get_as_binary(self)
6929 def _set_from_binary(self, p):
6930 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6931 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6933 def __getstate__(self):
6934 p = self._get_as_binary()
6935 if len(self.__dict__) > 1:
6936 d = self.__dict__.copy()
6941 def __setstate__(self, p):
6942 if not hasattr(self,
'this'):
6944 if isinstance(p, tuple):
6946 self.__dict__.update(d)
6947 return self._set_from_binary(p)
6949 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6952 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
6955 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6956 return _IMP_core.get_leaves(mhd)
6959 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6960 return _IMP_core.get_internal(mhd)
6963 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6964 return _IMP_core.get_all_descendants(mhd)
6967 r"""get_root(Hierarchy h) -> Hierarchy"""
6968 return _IMP_core.get_root(h)
6971 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
6972 return _IMP_core.visit_breadth_first(d, f)
6975 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
6976 return _IMP_core.visit_depth_first(d, f)
6978 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
6980 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6982 def __init__(self, tr):
6983 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
6984 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
6986 def do_get_inputs(self, m, pis):
6987 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6988 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
6990 def get_version_info(self):
6991 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
6992 return _IMP_core.LeavesRefiner_get_version_info(self)
6993 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
6996 r"""__str__(LeavesRefiner self) -> std::string"""
6997 return _IMP_core.LeavesRefiner___str__(self)
7000 r"""__repr__(LeavesRefiner self) -> std::string"""
7001 return _IMP_core.LeavesRefiner___repr__(self)
7005 return _object_cast_to_LeavesRefiner(o)
7009 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7011 r"""Proxy of C++ IMP::core::Linear class."""
7013 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7015 def __init__(self, *args):
7017 __init__(Linear self, double offset, double slope) -> Linear
7018 __init__(Linear self) -> Linear
7020 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7022 def set_slope(self, f):
7023 r"""set_slope(Linear self, double f)"""
7024 return _IMP_core.Linear_set_slope(self, f)
7026 def set_offset(self, f):
7027 r"""set_offset(Linear self, double f)"""
7028 return _IMP_core.Linear_set_offset(self, f)
7030 def get_version_info(self):
7031 r"""get_version_info(Linear self) -> VersionInfo"""
7032 return _IMP_core.Linear_get_version_info(self)
7033 __swig_destroy__ = _IMP_core.delete_Linear
7036 r"""__str__(Linear self) -> std::string"""
7037 return _IMP_core.Linear___str__(self)
7040 r"""__repr__(Linear self) -> std::string"""
7041 return _IMP_core.Linear___repr__(self)
7045 return _object_cast_to_Linear(o)
7048 def _get_as_binary(self):
7049 r"""_get_as_binary(Linear self) -> PyObject *"""
7050 return _IMP_core.Linear__get_as_binary(self)
7052 def _set_from_binary(self, p):
7053 r"""_set_from_binary(Linear self, PyObject * p)"""
7054 return _IMP_core.Linear__set_from_binary(self, p)
7056 def __getstate__(self):
7057 p = self._get_as_binary()
7058 if len(self.__dict__) > 1:
7059 d = self.__dict__.copy()
7064 def __setstate__(self, p):
7065 if not hasattr(self,
'this'):
7067 if isinstance(p, tuple):
7069 self.__dict__.update(d)
7070 return self._set_from_binary(p)
7074 _IMP_core.Linear_swigregister(Linear)
7075 class LogNormalMover(MonteCarloMover):
7076 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7078 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7080 def __init__(self, *args):
7082 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7083 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7084 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7085 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7086 __init__(LogNormalMover self) -> LogNormalMover
7088 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7090 def set_sigma(self, sigma):
7091 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7092 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7094 def get_sigma(self):
7095 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7096 return _IMP_core.LogNormalMover_get_sigma(self)
7098 def get_version_info(self):
7099 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7100 return _IMP_core.LogNormalMover_get_version_info(self)
7101 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7104 r"""__str__(LogNormalMover self) -> std::string"""
7105 return _IMP_core.LogNormalMover___str__(self)
7108 r"""__repr__(LogNormalMover self) -> std::string"""
7109 return _IMP_core.LogNormalMover___repr__(self)
7113 return _object_cast_to_LogNormalMover(o)
7116 def _get_as_binary(self):
7117 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7118 return _IMP_core.LogNormalMover__get_as_binary(self)
7120 def _set_from_binary(self, p):
7121 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7122 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7124 def __getstate__(self):
7125 p = self._get_as_binary()
7126 if len(self.__dict__) > 1:
7127 d = self.__dict__.copy()
7132 def __setstate__(self, p):
7133 if not hasattr(self,
'this'):
7135 if isinstance(p, tuple):
7137 self.__dict__.update(d)
7138 return self._set_from_binary(p)
7142 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7143 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7146 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7150 def __init__(self, m):
7151 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7152 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7154 def get_version_info(self):
7155 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7156 return _IMP_core.MonteCarlo_get_version_info(self)
7157 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7159 def set_return_best(self, tf):
7160 r"""set_return_best(MonteCarlo self, bool tf)"""
7161 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7163 def set_score_moved(self, mv):
7164 r"""set_score_moved(MonteCarlo self, bool mv)"""
7165 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7167 def set_kt(self, t):
7168 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7169 return _IMP_core.MonteCarlo_set_kt(self, t)
7172 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7173 return _IMP_core.MonteCarlo_get_kt(self)
7175 def get_last_accepted_energy(self):
7176 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7177 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7179 def get_best_accepted_energy(self):
7180 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7181 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7183 def get_number_of_downward_steps(self):
7184 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7185 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7187 def get_number_of_upward_steps(self):
7188 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7189 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7191 def get_number_of_proposed_steps(self):
7192 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7193 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7195 def get_number_of_accepted_steps(self):
7196 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7197 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7199 def reset_statistics(self):
7200 r"""reset_statistics(MonteCarlo self)"""
7201 return _IMP_core.MonteCarlo_reset_statistics(self)
7203 def set_score_threshold(self, s):
7204 r"""set_score_threshold(MonteCarlo self, double s)"""
7205 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7207 def get_score_threshold(self):
7208 r"""get_score_threshold(MonteCarlo self) -> double"""
7209 return _IMP_core.MonteCarlo_get_score_threshold(self)
7211 def set_maximum_difference(self, d):
7212 r"""set_maximum_difference(MonteCarlo self, double d)"""
7213 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7215 def get_maximum_difference(self):
7216 r"""get_maximum_difference(MonteCarlo self) -> double"""
7217 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7218 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)
7219 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7220 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7221 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7223 def remove_mover(self, d):
7224 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7225 return _IMP_core.MonteCarlo_remove_mover(self, d)
7227 def _python_index_mover(self, d, start, stop):
7228 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7229 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7231 def remove_movers(self, d):
7232 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7233 return _IMP_core.MonteCarlo_remove_movers(self, d)
7235 def set_movers(self, ps):
7236 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7237 return _IMP_core.MonteCarlo_set_movers(self, ps)
7239 def set_movers_order(self, objs):
7240 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7241 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7243 def add_mover(self, obj):
7244 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7245 return _IMP_core.MonteCarlo_add_mover(self, obj)
7247 def add_movers(self, objs):
7248 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7249 return _IMP_core.MonteCarlo_add_movers(self, objs)
7251 def clear_movers(self):
7252 r"""clear_movers(MonteCarlo self)"""
7253 return _IMP_core.MonteCarlo_clear_movers(self)
7255 def get_number_of_movers(self):
7256 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7257 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7259 def get_has_movers(self):
7260 r"""get_has_movers(MonteCarlo self) -> bool"""
7261 return _IMP_core.MonteCarlo_get_has_movers(self)
7263 def get_mover(self, i):
7264 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7265 return _IMP_core.MonteCarlo_get_mover(self, i)
7267 def get_movers(self):
7268 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7269 return _IMP_core.MonteCarlo_get_movers(self)
7271 def erase_mover(self, i):
7272 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7273 return _IMP_core.MonteCarlo_erase_mover(self, i)
7275 def reserve_movers(self, sz):
7276 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7277 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7280 r"""__str__(MonteCarlo self) -> std::string"""
7281 return _IMP_core.MonteCarlo___str__(self)
7284 r"""__repr__(MonteCarlo self) -> std::string"""
7285 return _IMP_core.MonteCarlo___repr__(self)
7289 return _object_cast_to_MonteCarlo(o)
7293 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7294 class MonteCarloWithLocalOptimization(MonteCarlo):
7295 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7297 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7299 def __init__(self, opt, steps):
7300 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7301 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7303 def get_number_of_steps(self):
7304 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7305 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7307 def get_local_optimizer(self):
7308 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7309 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7310 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7313 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7314 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7317 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7318 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7322 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7326 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7327 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7328 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7330 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7332 def __init__(self, opt, ns):
7333 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7334 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7335 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7338 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7339 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7342 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7343 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7347 return _object_cast_to_MonteCarloWithBasinHopping(o)
7351 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7353 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7355 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7357 def __init__(self, *args):
7358 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7359 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7361 def get_neighbors(self, pi):
7362 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7363 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7365 def get_version_info(self):
7366 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7367 return _IMP_core.NeighborsTable_get_version_info(self)
7368 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7371 r"""__str__(NeighborsTable self) -> std::string"""
7372 return _IMP_core.NeighborsTable___str__(self)
7375 r"""__repr__(NeighborsTable self) -> std::string"""
7376 return _IMP_core.NeighborsTable___repr__(self)
7380 return _object_cast_to_NeighborsTable(o)
7384 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7385 class NormalMover(MonteCarloMover):
7386 r"""Proxy of C++ IMP::core::NormalMover class."""
7388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7390 def __init__(self, *args):
7392 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7393 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7394 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7395 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7396 __init__(NormalMover self) -> NormalMover
7398 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7400 def set_sigma(self, sigma):
7401 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7402 return _IMP_core.NormalMover_set_sigma(self, sigma)
7404 def get_sigma(self):
7405 r"""get_sigma(NormalMover self) -> IMP::Float"""
7406 return _IMP_core.NormalMover_get_sigma(self)
7408 def get_version_info(self):
7409 r"""get_version_info(NormalMover self) -> VersionInfo"""
7410 return _IMP_core.NormalMover_get_version_info(self)
7411 __swig_destroy__ = _IMP_core.delete_NormalMover
7414 r"""__str__(NormalMover self) -> std::string"""
7415 return _IMP_core.NormalMover___str__(self)
7418 r"""__repr__(NormalMover self) -> std::string"""
7419 return _IMP_core.NormalMover___repr__(self)
7423 return _object_cast_to_NormalMover(o)
7426 def _get_as_binary(self):
7427 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7428 return _IMP_core.NormalMover__get_as_binary(self)
7430 def _set_from_binary(self, p):
7431 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7432 return _IMP_core.NormalMover__set_from_binary(self, p)
7434 def __getstate__(self):
7435 p = self._get_as_binary()
7436 if len(self.__dict__) > 1:
7437 d = self.__dict__.copy()
7442 def __setstate__(self, p):
7443 if not hasattr(self,
'this'):
7445 if isinstance(p, tuple):
7447 self.__dict__.update(d)
7448 return self._set_from_binary(p)
7452 _IMP_core.NormalMover_swigregister(NormalMover)
7453 class OpenCubicSpline(_OpenCubicSplineBase):
7454 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7456 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7458 def __init__(self, values, minrange, spacing, extend=False):
7459 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7460 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7463 r"""__str__(OpenCubicSpline self) -> std::string"""
7464 return _IMP_core.OpenCubicSpline___str__(self)
7467 r"""__repr__(OpenCubicSpline self) -> std::string"""
7468 return _IMP_core.OpenCubicSpline___repr__(self)
7472 return _object_cast_to_OpenCubicSpline(o)
7474 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7477 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7478 class QuadraticClosePairsFinder(ClosePairsFinder):
7479 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7481 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7484 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7485 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7487 def get_are_close_and_filtered(self, *args):
7489 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7490 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7492 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7494 def get_close_pairs(self, *args):
7496 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7497 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7498 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7499 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7501 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7503 def do_get_inputs(self, m, pis):
7504 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7505 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7507 def get_version_info(self):
7508 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7509 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7510 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7513 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7514 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7517 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7518 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7522 return _object_cast_to_QuadraticClosePairsFinder(o)
7526 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7528 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7530 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7532 def __init__(self, r, f):
7533 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7534 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7536 def do_get_inputs(self, m, pis):
7537 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7538 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7540 def get_version_info(self):
7541 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7542 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7543 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7546 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7547 return _IMP_core.RefinedPairsPairScore___str__(self)
7550 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7551 return _IMP_core.RefinedPairsPairScore___repr__(self)
7555 return _object_cast_to_RefinedPairsPairScore(o)
7559 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7560 class RigidBody(XYZ):
7561 r"""Proxy of C++ IMP::core::RigidBody class."""
7563 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7565 def get_rigid_members(self):
7566 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7567 return _IMP_core.RigidBody_get_rigid_members(self)
7570 def get_rotation_keys():
7571 r"""get_rotation_keys() -> IMP::FloatKeys"""
7572 return _IMP_core.RigidBody_get_rotation_keys()
7574 def get_member_particle_indexes(self):
7575 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7576 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7578 def get_body_member_particle_indexes(self):
7579 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7580 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7582 def get_member_indexes(self):
7583 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7584 return _IMP_core.RigidBody_get_member_indexes(self)
7586 def show(self, *args):
7587 r"""show(RigidBody self, _ostream out=std::cout)"""
7588 return _IMP_core.RigidBody_show(self, *args)
7591 def setup_particle(*args):
7593 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7594 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7595 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7596 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7598 return _IMP_core.RigidBody_setup_particle(*args)
7601 def teardown_particle(rb):
7602 r"""teardown_particle(RigidBody rb)"""
7603 return _IMP_core.RigidBody_teardown_particle(rb)
7605 def __init__(self, *args):
7607 __init__(RigidBody self) -> RigidBody
7608 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7609 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7610 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7612 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7613 __swig_destroy__ = _IMP_core.delete_RigidBody
7616 def get_is_setup(*args):
7618 get_is_setup(_ParticleAdaptor p) -> bool
7619 get_is_setup(Model m, ParticleIndex pi) -> bool
7621 return _IMP_core.RigidBody_get_is_setup(*args)
7623 def get_coordinates(self):
7624 r"""get_coordinates(RigidBody self) -> Vector3D"""
7625 return _IMP_core.RigidBody_get_coordinates(self)
7627 def get_rotation(self):
7628 r"""get_rotation(RigidBody self) -> Rotation3D"""
7629 return _IMP_core.RigidBody_get_rotation(self)
7631 def get_reference_frame(self):
7632 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7633 return _IMP_core.RigidBody_get_reference_frame(self)
7635 def set_reference_frame(self, tr):
7636 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7637 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7639 def set_reference_frame_lazy(self, tr):
7640 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7641 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7643 def set_reference_frame_from_members(self, members):
7644 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7645 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7647 def pull_back_members_adjoints(self, da):
7648 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7649 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7651 def pull_back_member_adjoints(self, pi, da):
7652 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7653 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7655 def pull_back_body_member_adjoints(self, pi, da):
7656 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7657 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7659 def add_to_derivatives(self, *args):
7661 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7662 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7664 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7666 def add_to_rotational_derivatives(self, *args):
7668 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7669 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7671 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7673 def add_to_torque(self, torque_local, da):
7674 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7675 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7677 def get_torque(self):
7678 r"""get_torque(RigidBody self) -> Vector3D"""
7679 return _IMP_core.RigidBody_get_torque(self)
7681 def get_coordinates_are_optimized(self):
7682 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7683 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7685 def set_coordinates_are_optimized(self, tf):
7686 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7687 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7689 def normalize_rotation(self):
7690 r"""normalize_rotation(RigidBody self)"""
7691 return _IMP_core.RigidBody_normalize_rotation(self)
7693 def update_members(self):
7694 r"""update_members(RigidBody self)"""
7695 return _IMP_core.RigidBody_update_members(self)
7697 def get_rotational_derivatives(self):
7698 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7699 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7701 def get_number_of_members(self):
7702 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7703 return _IMP_core.RigidBody_get_number_of_members(self)
7705 def get_member(self, i):
7706 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7707 return _IMP_core.RigidBody_get_member(self, i)
7709 def add_member(self, p):
7710 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7711 return _IMP_core.RigidBody_add_member(self, p)
7713 def add_non_rigid_member(self, p):
7714 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7715 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7717 def set_is_rigid_member(self, pi, tf):
7718 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7719 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7721 def remove_member(self, p):
7722 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7723 return _IMP_core.RigidBody_remove_member(self, p)
7725 def add_attribute(self, *args):
7727 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7728 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7729 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7730 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7731 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7732 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7733 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7734 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7735 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7736 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7737 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7738 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7740 return _IMP_core.RigidBody_add_attribute(self, *args)
7742 def get_value(self, *args):
7744 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7745 get_value(RigidBody self, IntKey a0) -> IMP::Int
7746 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7747 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7748 get_value(RigidBody self, StringKey a0) -> IMP::String
7749 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7750 get_value(RigidBody self, ObjectKey a0) -> Object
7751 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7752 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7753 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7754 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7756 return _IMP_core.RigidBody_get_value(self, *args)
7758 def set_value(self, *args):
7760 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7761 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7762 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7763 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7764 set_value(RigidBody self, StringKey a0, IMP::String a1)
7765 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7766 set_value(RigidBody self, ObjectKey a0, Object a1)
7767 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7768 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7769 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7770 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7772 return _IMP_core.RigidBody_set_value(self, *args)
7774 def remove_attribute(self, *args):
7776 remove_attribute(RigidBody self, FloatKey a0)
7777 remove_attribute(RigidBody self, IntKey a0)
7778 remove_attribute(RigidBody self, FloatsKey a0)
7779 remove_attribute(RigidBody self, IntsKey a0)
7780 remove_attribute(RigidBody self, StringKey a0)
7781 remove_attribute(RigidBody self, ParticleIndexKey a0)
7782 remove_attribute(RigidBody self, ObjectKey a0)
7783 remove_attribute(RigidBody self, SparseFloatKey a0)
7784 remove_attribute(RigidBody self, SparseIntKey a0)
7785 remove_attribute(RigidBody self, SparseStringKey a0)
7786 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7788 return _IMP_core.RigidBody_remove_attribute(self, *args)
7790 def has_attribute(self, *args):
7792 has_attribute(RigidBody self, FloatKey a0) -> bool
7793 has_attribute(RigidBody self, IntKey a0) -> bool
7794 has_attribute(RigidBody self, FloatsKey a0) -> bool
7795 has_attribute(RigidBody self, IntsKey a0) -> bool
7796 has_attribute(RigidBody self, StringKey a0) -> bool
7797 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7798 has_attribute(RigidBody self, ObjectKey a0) -> bool
7799 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7800 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7801 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7802 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7804 return _IMP_core.RigidBody_has_attribute(self, *args)
7806 def get_derivative(self, a0):
7807 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7808 return _IMP_core.RigidBody_get_derivative(self, a0)
7811 r"""get_name(RigidBody self) -> std::string"""
7812 return _IMP_core.RigidBody_get_name(self)
7814 def clear_caches(self):
7815 r"""clear_caches(RigidBody self)"""
7816 return _IMP_core.RigidBody_clear_caches(self)
7818 def set_name(self, a0):
7819 r"""set_name(RigidBody self, std::string a0)"""
7820 return _IMP_core.RigidBody_set_name(self, a0)
7823 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7824 return _IMP_core.RigidBody_set_check_level(self, a0)
7826 def add_to_derivative(self, a0, a1, a2):
7827 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7828 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7830 def set_is_optimized(self, a0, a1):
7831 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7832 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7834 def get_is_optimized(self, a0):
7835 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7836 return _IMP_core.RigidBody_get_is_optimized(self, a0)
7839 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7840 return _IMP_core.RigidBody_get_check_level(self)
7842 def __eq__(self, *args):
7844 __eq__(RigidBody self, RigidBody o) -> bool
7845 __eq__(RigidBody self, Particle d) -> bool
7847 return _IMP_core.RigidBody___eq__(self, *args)
7849 def __ne__(self, *args):
7851 __ne__(RigidBody self, RigidBody o) -> bool
7852 __ne__(RigidBody self, Particle d) -> bool
7854 return _IMP_core.RigidBody___ne__(self, *args)
7856 def __le__(self, *args):
7858 __le__(RigidBody self, RigidBody o) -> bool
7859 __le__(RigidBody self, Particle d) -> bool
7861 return _IMP_core.RigidBody___le__(self, *args)
7863 def __lt__(self, *args):
7865 __lt__(RigidBody self, RigidBody o) -> bool
7866 __lt__(RigidBody self, Particle d) -> bool
7868 return _IMP_core.RigidBody___lt__(self, *args)
7870 def __ge__(self, *args):
7872 __ge__(RigidBody self, RigidBody o) -> bool
7873 __ge__(RigidBody self, Particle d) -> bool
7875 return _IMP_core.RigidBody___ge__(self, *args)
7877 def __gt__(self, *args):
7879 __gt__(RigidBody self, RigidBody o) -> bool
7880 __gt__(RigidBody self, Particle d) -> bool
7882 return _IMP_core.RigidBody___gt__(self, *args)
7885 r"""__hash__(RigidBody self) -> std::size_t"""
7886 return _IMP_core.RigidBody___hash__(self)
7889 r"""__str__(RigidBody self) -> std::string"""
7890 return _IMP_core.RigidBody___str__(self)
7893 r"""__repr__(RigidBody self) -> std::string"""
7894 return _IMP_core.RigidBody___repr__(self)
7896 def _get_as_binary(self):
7897 r"""_get_as_binary(RigidBody self) -> PyObject *"""
7898 return _IMP_core.RigidBody__get_as_binary(self)
7900 def _set_from_binary(self, p):
7901 r"""_set_from_binary(RigidBody self, PyObject * p)"""
7902 return _IMP_core.RigidBody__set_from_binary(self, p)
7904 def __getstate__(self):
7905 p = self._get_as_binary()
7906 if len(self.__dict__) > 1:
7907 d = self.__dict__.copy()
7912 def __setstate__(self, p):
7913 if not hasattr(self,
'this'):
7915 if isinstance(p, tuple):
7917 self.__dict__.update(d)
7918 return self._set_from_binary(p)
7922 _IMP_core.RigidBody_swigregister(RigidBody)
7925 r"""add_rigid_body_cache_key(ObjectKey k)"""
7926 return _IMP_core.add_rigid_body_cache_key(k)
7927 class RigidBodyMember(XYZ):
7928 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7930 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7932 def show(self, *args):
7933 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7934 return _IMP_core.RigidBodyMember_show(self, *args)
7936 def get_rigid_body(self):
7937 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
7938 return _IMP_core.RigidBodyMember_get_rigid_body(self)
7940 def get_internal_coordinates(self):
7941 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
7942 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
7944 def set_internal_coordinates(self, v):
7945 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
7946 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
7948 def set_internal_transformation(self, v):
7949 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
7950 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
7952 def get_internal_transformation(self):
7953 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
7954 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
7955 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
7957 def set_coordinates(self, *args):
7959 set_coordinates(RigidBodyMember self, Vector3D center)
7960 set_coordinates(RigidBodyMember self, Transformation3D tr)
7962 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
7964 def __init__(self, *args):
7966 __init__(RigidBodyMember self) -> RigidBodyMember
7967 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
7968 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
7969 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
7971 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
7974 def get_is_setup(*args):
7976 get_is_setup(_ParticleAdaptor p) -> bool
7977 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7979 return _IMP_core.RigidBodyMember_get_is_setup(*args)
7982 def get_internal_coordinate_keys():
7983 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
7984 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
7987 def get_internal_rotation_keys():
7988 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
7989 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
7991 def add_attribute(self, *args):
7993 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
7994 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7995 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
7996 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7997 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7998 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
7999 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8000 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8001 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8002 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8003 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8004 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8006 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8008 def get_value(self, *args):
8010 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8011 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8012 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8013 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8014 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8015 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8016 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8017 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8018 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8019 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8020 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8022 return _IMP_core.RigidBodyMember_get_value(self, *args)
8024 def set_value(self, *args):
8026 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8027 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8028 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8029 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8030 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8031 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8032 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8033 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8034 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8035 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8036 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8038 return _IMP_core.RigidBodyMember_set_value(self, *args)
8040 def remove_attribute(self, *args):
8042 remove_attribute(RigidBodyMember self, FloatKey a0)
8043 remove_attribute(RigidBodyMember self, IntKey a0)
8044 remove_attribute(RigidBodyMember self, FloatsKey a0)
8045 remove_attribute(RigidBodyMember self, IntsKey a0)
8046 remove_attribute(RigidBodyMember self, StringKey a0)
8047 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8048 remove_attribute(RigidBodyMember self, ObjectKey a0)
8049 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8050 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8051 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8052 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8054 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8056 def has_attribute(self, *args):
8058 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8059 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8060 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8061 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8062 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8063 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8064 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8065 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8066 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8067 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8068 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8070 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8072 def get_derivative(self, a0):
8073 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8074 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8077 r"""get_name(RigidBodyMember self) -> std::string"""
8078 return _IMP_core.RigidBodyMember_get_name(self)
8080 def clear_caches(self):
8081 r"""clear_caches(RigidBodyMember self)"""
8082 return _IMP_core.RigidBodyMember_clear_caches(self)
8084 def set_name(self, a0):
8085 r"""set_name(RigidBodyMember self, std::string a0)"""
8086 return _IMP_core.RigidBodyMember_set_name(self, a0)
8089 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8090 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8092 def add_to_derivative(self, a0, a1, a2):
8093 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8094 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8096 def set_is_optimized(self, a0, a1):
8097 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8098 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8100 def get_is_optimized(self, a0):
8101 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8102 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8105 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8106 return _IMP_core.RigidBodyMember_get_check_level(self)
8108 def __eq__(self, *args):
8110 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8111 __eq__(RigidBodyMember self, Particle d) -> bool
8113 return _IMP_core.RigidBodyMember___eq__(self, *args)
8115 def __ne__(self, *args):
8117 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8118 __ne__(RigidBodyMember self, Particle d) -> bool
8120 return _IMP_core.RigidBodyMember___ne__(self, *args)
8122 def __le__(self, *args):
8124 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8125 __le__(RigidBodyMember self, Particle d) -> bool
8127 return _IMP_core.RigidBodyMember___le__(self, *args)
8129 def __lt__(self, *args):
8131 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8132 __lt__(RigidBodyMember self, Particle d) -> bool
8134 return _IMP_core.RigidBodyMember___lt__(self, *args)
8136 def __ge__(self, *args):
8138 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8139 __ge__(RigidBodyMember self, Particle d) -> bool
8141 return _IMP_core.RigidBodyMember___ge__(self, *args)
8143 def __gt__(self, *args):
8145 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8146 __gt__(RigidBodyMember self, Particle d) -> bool
8148 return _IMP_core.RigidBodyMember___gt__(self, *args)
8151 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8152 return _IMP_core.RigidBodyMember___hash__(self)
8155 r"""__str__(RigidBodyMember self) -> std::string"""
8156 return _IMP_core.RigidBodyMember___str__(self)
8159 r"""__repr__(RigidBodyMember self) -> std::string"""
8160 return _IMP_core.RigidBodyMember___repr__(self)
8162 def _get_as_binary(self):
8163 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8164 return _IMP_core.RigidBodyMember__get_as_binary(self)
8166 def _set_from_binary(self, p):
8167 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8168 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8170 def __getstate__(self):
8171 p = self._get_as_binary()
8172 if len(self.__dict__) > 1:
8173 d = self.__dict__.copy()
8178 def __setstate__(self, p):
8179 if not hasattr(self,
'this'):
8181 if isinstance(p, tuple):
8183 self.__dict__.update(d)
8184 return self._set_from_binary(p)
8188 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8189 class RigidMember(RigidBodyMember):
8190 r"""Proxy of C++ IMP::core::RigidMember class."""
8192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8194 def show(self, *args):
8195 r"""show(RigidMember self, _ostream out=std::cout)"""
8196 return _IMP_core.RigidMember_show(self, *args)
8198 def __init__(self, *args):
8200 __init__(RigidMember self) -> RigidMember
8201 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8202 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8203 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8205 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8206 __swig_destroy__ = _IMP_core.delete_RigidMember
8209 def get_is_setup(*args):
8211 get_is_setup(_ParticleAdaptor p) -> bool
8212 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8214 return _IMP_core.RigidMember_get_is_setup(*args)
8216 def add_attribute(self, *args):
8218 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8219 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8220 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8221 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8222 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8223 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8224 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8225 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8226 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8227 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8228 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8229 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8231 return _IMP_core.RigidMember_add_attribute(self, *args)
8233 def get_value(self, *args):
8235 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8236 get_value(RigidMember self, IntKey a0) -> IMP::Int
8237 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8238 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8239 get_value(RigidMember self, StringKey a0) -> IMP::String
8240 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8241 get_value(RigidMember self, ObjectKey a0) -> Object
8242 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8243 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8244 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8245 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8247 return _IMP_core.RigidMember_get_value(self, *args)
8249 def set_value(self, *args):
8251 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8252 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8253 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8254 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8255 set_value(RigidMember self, StringKey a0, IMP::String a1)
8256 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8257 set_value(RigidMember self, ObjectKey a0, Object a1)
8258 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8259 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8260 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8261 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8263 return _IMP_core.RigidMember_set_value(self, *args)
8265 def remove_attribute(self, *args):
8267 remove_attribute(RigidMember self, FloatKey a0)
8268 remove_attribute(RigidMember self, IntKey a0)
8269 remove_attribute(RigidMember self, FloatsKey a0)
8270 remove_attribute(RigidMember self, IntsKey a0)
8271 remove_attribute(RigidMember self, StringKey a0)
8272 remove_attribute(RigidMember self, ParticleIndexKey a0)
8273 remove_attribute(RigidMember self, ObjectKey a0)
8274 remove_attribute(RigidMember self, SparseFloatKey a0)
8275 remove_attribute(RigidMember self, SparseIntKey a0)
8276 remove_attribute(RigidMember self, SparseStringKey a0)
8277 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8279 return _IMP_core.RigidMember_remove_attribute(self, *args)
8281 def has_attribute(self, *args):
8283 has_attribute(RigidMember self, FloatKey a0) -> bool
8284 has_attribute(RigidMember self, IntKey a0) -> bool
8285 has_attribute(RigidMember self, FloatsKey a0) -> bool
8286 has_attribute(RigidMember self, IntsKey a0) -> bool
8287 has_attribute(RigidMember self, StringKey a0) -> bool
8288 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8289 has_attribute(RigidMember self, ObjectKey a0) -> bool
8290 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8291 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8292 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8293 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8295 return _IMP_core.RigidMember_has_attribute(self, *args)
8297 def get_derivative(self, a0):
8298 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8299 return _IMP_core.RigidMember_get_derivative(self, a0)
8302 r"""get_name(RigidMember self) -> std::string"""
8303 return _IMP_core.RigidMember_get_name(self)
8305 def clear_caches(self):
8306 r"""clear_caches(RigidMember self)"""
8307 return _IMP_core.RigidMember_clear_caches(self)
8309 def set_name(self, a0):
8310 r"""set_name(RigidMember self, std::string a0)"""
8311 return _IMP_core.RigidMember_set_name(self, a0)
8314 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8315 return _IMP_core.RigidMember_set_check_level(self, a0)
8317 def add_to_derivative(self, a0, a1, a2):
8318 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8319 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8321 def set_is_optimized(self, a0, a1):
8322 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8323 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8325 def get_is_optimized(self, a0):
8326 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8327 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8330 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8331 return _IMP_core.RigidMember_get_check_level(self)
8333 def __eq__(self, *args):
8335 __eq__(RigidMember self, RigidMember o) -> bool
8336 __eq__(RigidMember self, Particle d) -> bool
8338 return _IMP_core.RigidMember___eq__(self, *args)
8340 def __ne__(self, *args):
8342 __ne__(RigidMember self, RigidMember o) -> bool
8343 __ne__(RigidMember self, Particle d) -> bool
8345 return _IMP_core.RigidMember___ne__(self, *args)
8347 def __le__(self, *args):
8349 __le__(RigidMember self, RigidMember o) -> bool
8350 __le__(RigidMember self, Particle d) -> bool
8352 return _IMP_core.RigidMember___le__(self, *args)
8354 def __lt__(self, *args):
8356 __lt__(RigidMember self, RigidMember o) -> bool
8357 __lt__(RigidMember self, Particle d) -> bool
8359 return _IMP_core.RigidMember___lt__(self, *args)
8361 def __ge__(self, *args):
8363 __ge__(RigidMember self, RigidMember o) -> bool
8364 __ge__(RigidMember self, Particle d) -> bool
8366 return _IMP_core.RigidMember___ge__(self, *args)
8368 def __gt__(self, *args):
8370 __gt__(RigidMember self, RigidMember o) -> bool
8371 __gt__(RigidMember self, Particle d) -> bool
8373 return _IMP_core.RigidMember___gt__(self, *args)
8376 r"""__hash__(RigidMember self) -> std::size_t"""
8377 return _IMP_core.RigidMember___hash__(self)
8380 r"""__str__(RigidMember self) -> std::string"""
8381 return _IMP_core.RigidMember___str__(self)
8384 r"""__repr__(RigidMember self) -> std::string"""
8385 return _IMP_core.RigidMember___repr__(self)
8387 def _get_as_binary(self):
8388 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8389 return _IMP_core.RigidMember__get_as_binary(self)
8391 def _set_from_binary(self, p):
8392 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8393 return _IMP_core.RigidMember__set_from_binary(self, p)
8395 def __getstate__(self):
8396 p = self._get_as_binary()
8397 if len(self.__dict__) > 1:
8398 d = self.__dict__.copy()
8403 def __setstate__(self, p):
8404 if not hasattr(self,
'this'):
8406 if isinstance(p, tuple):
8408 self.__dict__.update(d)
8409 return self._set_from_binary(p)
8413 _IMP_core.RigidMember_swigregister(RigidMember)
8414 class NonRigidMember(RigidBodyMember):
8415 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8417 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8419 def show(self, *args):
8420 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8421 return _IMP_core.NonRigidMember_show(self, *args)
8423 def __init__(self, *args):
8425 __init__(NonRigidMember self) -> NonRigidMember
8426 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8427 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8428 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8430 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8431 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8434 def get_is_setup(*args):
8436 get_is_setup(_ParticleAdaptor p) -> bool
8437 get_is_setup(Model m, ParticleIndex p) -> bool
8439 return _IMP_core.NonRigidMember_get_is_setup(*args)
8441 def add_to_internal_derivatives(self, deriv_parent, da):
8442 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8443 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8445 def add_to_internal_rotational_derivatives(self, *args):
8447 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8448 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8450 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8452 def get_internal_derivatives(self):
8453 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8454 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8456 def get_internal_rotational_derivatives(self):
8457 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8458 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8460 def add_attribute(self, *args):
8462 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8463 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8464 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8465 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8466 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8467 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8468 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8469 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8470 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8471 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8472 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8473 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8475 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8477 def get_value(self, *args):
8479 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8480 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8481 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8482 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8483 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8484 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8485 get_value(NonRigidMember self, ObjectKey a0) -> Object
8486 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8487 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8488 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8489 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8491 return _IMP_core.NonRigidMember_get_value(self, *args)
8493 def set_value(self, *args):
8495 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8496 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8497 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8498 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8499 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8500 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8501 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8502 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8503 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8504 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8505 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8507 return _IMP_core.NonRigidMember_set_value(self, *args)
8509 def remove_attribute(self, *args):
8511 remove_attribute(NonRigidMember self, FloatKey a0)
8512 remove_attribute(NonRigidMember self, IntKey a0)
8513 remove_attribute(NonRigidMember self, FloatsKey a0)
8514 remove_attribute(NonRigidMember self, IntsKey a0)
8515 remove_attribute(NonRigidMember self, StringKey a0)
8516 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8517 remove_attribute(NonRigidMember self, ObjectKey a0)
8518 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8519 remove_attribute(NonRigidMember self, SparseIntKey a0)
8520 remove_attribute(NonRigidMember self, SparseStringKey a0)
8521 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8523 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8525 def has_attribute(self, *args):
8527 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8528 has_attribute(NonRigidMember self, IntKey a0) -> bool
8529 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8530 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8531 has_attribute(NonRigidMember self, StringKey a0) -> bool
8532 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8533 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8534 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8535 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8536 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8537 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8539 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8541 def get_derivative(self, a0):
8542 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8543 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8546 r"""get_name(NonRigidMember self) -> std::string"""
8547 return _IMP_core.NonRigidMember_get_name(self)
8549 def clear_caches(self):
8550 r"""clear_caches(NonRigidMember self)"""
8551 return _IMP_core.NonRigidMember_clear_caches(self)
8553 def set_name(self, a0):
8554 r"""set_name(NonRigidMember self, std::string a0)"""
8555 return _IMP_core.NonRigidMember_set_name(self, a0)
8558 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8559 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8561 def add_to_derivative(self, a0, a1, a2):
8562 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8563 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8565 def set_is_optimized(self, a0, a1):
8566 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8567 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8569 def get_is_optimized(self, a0):
8570 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8571 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8574 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8575 return _IMP_core.NonRigidMember_get_check_level(self)
8577 def __eq__(self, *args):
8579 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8580 __eq__(NonRigidMember self, Particle d) -> bool
8582 return _IMP_core.NonRigidMember___eq__(self, *args)
8584 def __ne__(self, *args):
8586 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8587 __ne__(NonRigidMember self, Particle d) -> bool
8589 return _IMP_core.NonRigidMember___ne__(self, *args)
8591 def __le__(self, *args):
8593 __le__(NonRigidMember self, NonRigidMember o) -> bool
8594 __le__(NonRigidMember self, Particle d) -> bool
8596 return _IMP_core.NonRigidMember___le__(self, *args)
8598 def __lt__(self, *args):
8600 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8601 __lt__(NonRigidMember self, Particle d) -> bool
8603 return _IMP_core.NonRigidMember___lt__(self, *args)
8605 def __ge__(self, *args):
8607 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8608 __ge__(NonRigidMember self, Particle d) -> bool
8610 return _IMP_core.NonRigidMember___ge__(self, *args)
8612 def __gt__(self, *args):
8614 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8615 __gt__(NonRigidMember self, Particle d) -> bool
8617 return _IMP_core.NonRigidMember___gt__(self, *args)
8620 r"""__hash__(NonRigidMember self) -> std::size_t"""
8621 return _IMP_core.NonRigidMember___hash__(self)
8624 r"""__str__(NonRigidMember self) -> std::string"""
8625 return _IMP_core.NonRigidMember___str__(self)
8628 r"""__repr__(NonRigidMember self) -> std::string"""
8629 return _IMP_core.NonRigidMember___repr__(self)
8631 def _get_as_binary(self):
8632 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8633 return _IMP_core.NonRigidMember__get_as_binary(self)
8635 def _set_from_binary(self, p):
8636 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8637 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8639 def __getstate__(self):
8640 p = self._get_as_binary()
8641 if len(self.__dict__) > 1:
8642 d = self.__dict__.copy()
8647 def __setstate__(self, p):
8648 if not hasattr(self,
'this'):
8650 if isinstance(p, tuple):
8652 self.__dict__.update(d)
8653 return self._set_from_binary(p)
8657 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8659 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8661 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8663 def __init__(self, *args):
8664 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8665 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8667 def do_get_inputs(self, m, pis):
8668 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8669 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8671 def get_version_info(self):
8672 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8673 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8674 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8677 r"""__str__(RigidMembersRefiner self) -> std::string"""
8678 return _IMP_core.RigidMembersRefiner___str__(self)
8681 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8682 return _IMP_core.RigidMembersRefiner___repr__(self)
8686 return _object_cast_to_RigidMembersRefiner(o)
8690 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8692 def get_rigid_members_refiner():
8693 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8694 return _IMP_core.get_rigid_members_refiner()
8698 transform(XYZ a, Transformation3D tr)
8699 transform(RigidBody a, Transformation3D tr)
8701 return _IMP_core.transform(*args)
8705 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8706 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8708 return _IMP_core.get_initial_reference_frame(*args)
8711 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8712 return _IMP_core.create_rigid_bodies(m, n, no_members)
8715 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8716 return _IMP_core.show_rigid_body_hierarchy(*args)
8719 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8720 return _IMP_core.get_root_rigid_body(m)
8722 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8724 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8726 def __init__(self, rb, constituents):
8727 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8728 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8730 def get_version_info(self):
8731 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8732 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8733 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8736 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8737 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8740 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8741 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8745 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8749 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8751 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8753 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8755 def __init__(self, *args):
8757 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8758 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8760 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8762 def get_version_info(self):
8763 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8764 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8765 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8768 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8769 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8772 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8773 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8777 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8781 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8783 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8785 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8787 def __init__(self, sc):
8788 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8789 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8791 def get_version_info(self):
8792 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8793 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8794 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8797 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8798 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8801 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8802 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8806 return _object_cast_to_RigidBodyDerivativesGeometry(o)
8810 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8812 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8814 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8816 def __init__(self, *args):
8818 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8819 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8821 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8823 def get_version_info(self):
8824 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8825 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8826 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8829 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8830 return _IMP_core.RigidBodyFrameGeometry___str__(self)
8833 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8834 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8838 return _object_cast_to_RigidBodyFrameGeometry(o)
8842 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8844 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8846 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8848 def __init__(self, sc):
8849 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8850 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8852 def get_version_info(self):
8853 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8854 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8855 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8858 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8859 return _IMP_core.RigidBodyFramesGeometry___str__(self)
8862 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8863 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8867 return _object_cast_to_RigidBodyFramesGeometry(o)
8871 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8873 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8875 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8877 def __init__(self, p):
8878 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8879 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8882 r"""__str__(RigidBodyTorque self) -> std::string"""
8883 return _IMP_core.RigidBodyTorque___str__(self)
8886 r"""__repr__(RigidBodyTorque self) -> std::string"""
8887 return _IMP_core.RigidBodyTorque___repr__(self)
8891 return _object_cast_to_RigidBodyTorque(o)
8893 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8896 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8897 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8898 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8900 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8903 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8904 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8906 def get_close_pairs(self, *args):
8908 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8909 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8910 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8911 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8913 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8915 def do_get_inputs(self, m, pis):
8916 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8917 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8919 def get_version_info(self):
8920 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8921 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8922 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8925 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8926 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8929 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8930 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8934 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8938 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
8940 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
8942 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8944 def __init__(self, *args):
8946 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
8947 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
8948 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
8950 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
8952 def do_add_score_and_derivatives(self, sa, ss):
8953 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
8954 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
8956 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
8957 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)"""
8958 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
8960 def do_get_inputs(self):
8961 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
8962 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
8964 def get_restraints(self):
8965 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
8966 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
8968 def set_restraints(self, d):
8969 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8970 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
8972 def get_number_of_restraints(self):
8973 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
8974 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
8976 def clear_restraints(self):
8977 r"""clear_restraints(RestraintsScoringFunction self)"""
8978 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
8980 def get_restraint(self, i):
8981 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
8982 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
8984 def erase_restraint(self, i):
8985 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
8986 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
8989 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
8990 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
8993 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8994 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
8996 def _python_index_restraint(self, r, start, stop):
8997 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
8998 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
8999 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)
9000 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9001 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9002 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9004 def get_version_info(self):
9005 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9006 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9007 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9010 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9011 return _IMP_core.RestraintsScoringFunction___str__(self)
9014 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9015 return _IMP_core.RestraintsScoringFunction___repr__(self)
9019 return _object_cast_to_RestraintsScoringFunction(o)
9022 def _get_as_binary(self):
9023 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9024 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9026 def _set_from_binary(self, p):
9027 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9028 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9030 def __getstate__(self):
9031 p = self._get_as_binary()
9032 if len(self.__dict__) > 1:
9033 d = self.__dict__.copy()
9038 def __setstate__(self, p):
9039 if not hasattr(self,
'this'):
9041 if isinstance(p, tuple):
9043 self.__dict__.update(d)
9044 return self._set_from_binary(p)
9048 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9049 class RigidClosePairsFinder(ClosePairsFinder):
9050 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9052 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9054 def __init__(self, cpf=None):
9055 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9056 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9058 def do_get_inputs(self, m, pis):
9059 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9060 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9062 def get_close_pairs(self, *args):
9064 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9065 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9066 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9067 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9068 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9070 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9072 def get_version_info(self):
9073 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9074 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9075 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9078 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9079 return _IMP_core.RigidClosePairsFinder___str__(self)
9082 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9083 return _IMP_core.RigidClosePairsFinder___repr__(self)
9087 return _object_cast_to_RigidClosePairsFinder(o)
9090 def _get_as_binary(self):
9091 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9092 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9094 def _set_from_binary(self, p):
9095 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9096 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9098 def __getstate__(self):
9099 p = self._get_as_binary()
9100 if len(self.__dict__) > 1:
9101 d = self.__dict__.copy()
9106 def __setstate__(self, p):
9107 if not hasattr(self,
'this'):
9109 if isinstance(p, tuple):
9111 self.__dict__.update(d)
9112 return self._set_from_binary(p)
9116 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9118 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9120 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9122 def __init__(self, *args):
9124 __init__(SphereDistancePairScore self, UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> SphereDistancePairScore
9125 __init__(SphereDistancePairScore self) -> SphereDistancePairScore
9127 _IMP_core.SphereDistancePairScore_swiginit(self, _IMP_core.new_SphereDistancePairScore(*args))
9129 def do_get_inputs(self, m, pis):
9130 r"""do_get_inputs(SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9131 return _IMP_core.SphereDistancePairScore_do_get_inputs(self, m, pis)
9133 def get_version_info(self):
9134 r"""get_version_info(SphereDistancePairScore self) -> VersionInfo"""
9135 return _IMP_core.SphereDistancePairScore_get_version_info(self)
9136 __swig_destroy__ = _IMP_core.delete_SphereDistancePairScore
9139 r"""__str__(SphereDistancePairScore self) -> std::string"""
9140 return _IMP_core.SphereDistancePairScore___str__(self)
9143 r"""__repr__(SphereDistancePairScore self) -> std::string"""
9144 return _IMP_core.SphereDistancePairScore___repr__(self)
9148 return _object_cast_to_SphereDistancePairScore(o)
9151 def _get_as_binary(self):
9152 r"""_get_as_binary(SphereDistancePairScore self) -> PyObject *"""
9153 return _IMP_core.SphereDistancePairScore__get_as_binary(self)
9155 def _set_from_binary(self, p):
9156 r"""_set_from_binary(SphereDistancePairScore self, PyObject * p)"""
9157 return _IMP_core.SphereDistancePairScore__set_from_binary(self, p)
9159 def __getstate__(self):
9160 p = self._get_as_binary()
9161 if len(self.__dict__) > 1:
9162 d = self.__dict__.copy()
9167 def __setstate__(self, p):
9168 if not hasattr(self,
'this'):
9170 if isinstance(p, tuple):
9172 self.__dict__.update(d)
9173 return self._set_from_binary(p)
9177 _IMP_core.SphereDistancePairScore_swigregister(SphereDistancePairScore)
9178 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9179 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9181 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9183 def __init__(self, *args):
9185 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9186 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9188 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9190 def do_get_inputs(self, m, pis):
9191 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9192 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9194 def get_version_info(self):
9195 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9196 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9197 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9200 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9201 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9204 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9205 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9209 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9212 def _get_as_binary(self):
9213 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9214 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9216 def _set_from_binary(self, p):
9217 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9218 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9220 def __getstate__(self):
9221 p = self._get_as_binary()
9222 if len(self.__dict__) > 1:
9223 d = self.__dict__.copy()
9228 def __setstate__(self, p):
9229 if not hasattr(self,
'this'):
9231 if isinstance(p, tuple):
9233 self.__dict__.update(d)
9234 return self._set_from_binary(p)
9238 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9239 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9240 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9242 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9244 def __init__(self, d0, k):
9245 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9246 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9248 def get_rest_length(self):
9249 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9250 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9252 def get_stiffness(self):
9253 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9254 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9256 def do_get_inputs(self, m, pis):
9257 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9258 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9260 def get_version_info(self):
9261 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9262 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9263 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9266 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9267 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9270 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9271 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9275 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9279 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9281 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9283 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9285 def __init__(self, *args):
9287 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9288 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9290 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9292 def do_get_inputs(self, m, pis):
9293 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9294 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9296 def get_version_info(self):
9297 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9298 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9299 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9302 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9303 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9306 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9307 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9311 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9314 def _get_as_binary(self):
9315 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9316 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9318 def _set_from_binary(self, p):
9319 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9320 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9322 def __getstate__(self):
9323 p = self._get_as_binary()
9324 if len(self.__dict__) > 1:
9325 d = self.__dict__.copy()
9330 def __setstate__(self, p):
9331 if not hasattr(self,
'this'):
9333 if isinstance(p, tuple):
9335 self.__dict__.update(d)
9336 return self._set_from_binary(p)
9340 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9342 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9344 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9346 def __init__(self, *args):
9347 r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9348 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9350 def do_get_inputs(self, m, pis):
9351 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9352 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9354 def get_version_info(self):
9355 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9356 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9357 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9360 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9361 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9364 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9365 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9369 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9373 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9375 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9377 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9379 def __init__(self, *args):
9380 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9381 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9383 def do_get_inputs(self, m, pis):
9384 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9385 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9387 def get_version_info(self):
9388 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9389 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9390 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9393 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9394 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9397 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9398 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9402 return _object_cast_to_WeightedSphereDistancePairScore(o)
9406 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9408 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9410 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9412 def __init__(self, *args):
9414 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9415 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9417 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9419 def do_get_inputs(self, m, pis):
9420 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9421 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9423 def get_version_info(self):
9424 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9425 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9426 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9429 r"""__str__(SoftSpherePairScore self) -> std::string"""
9430 return _IMP_core.SoftSpherePairScore___str__(self)
9433 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9434 return _IMP_core.SoftSpherePairScore___repr__(self)
9438 return _object_cast_to_SoftSpherePairScore(o)
9441 def _get_as_binary(self):
9442 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9443 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9445 def _set_from_binary(self, p):
9446 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9447 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9449 def __getstate__(self):
9450 p = self._get_as_binary()
9451 if len(self.__dict__) > 1:
9452 d = self.__dict__.copy()
9457 def __setstate__(self, p):
9458 if not hasattr(self,
'this'):
9460 if isinstance(p, tuple):
9462 self.__dict__.update(d)
9463 return self._set_from_binary(p)
9467 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9469 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9471 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9473 def __init__(self, *args):
9474 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9475 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9477 def do_get_inputs(self, m, pis):
9478 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9479 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9481 def get_version_info(self):
9482 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9483 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9484 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9487 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9488 return _IMP_core.SurfaceDistancePairScore___str__(self)
9491 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9492 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9496 return _object_cast_to_SurfaceDistancePairScore(o)
9500 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9502 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9504 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9506 def __init__(self, *args):
9507 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9508 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9510 def do_get_inputs(self, m, pis):
9511 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9512 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9514 def get_version_info(self):
9515 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9516 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9517 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9520 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9521 return _IMP_core.SurfaceHeightPairScore___str__(self)
9524 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9525 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9529 return _object_cast_to_SurfaceHeightPairScore(o)
9533 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9535 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9537 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9539 def __init__(self, *args):
9540 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9541 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9543 def do_get_inputs(self, m, pis):
9544 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9545 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9547 def get_version_info(self):
9548 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9549 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9550 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9553 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9554 return _IMP_core.SurfaceDepthPairScore___str__(self)
9557 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9558 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9562 return _object_cast_to_SurfaceDepthPairScore(o)
9566 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9568 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9570 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9572 def __init__(self, *args):
9573 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9574 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9576 def do_get_inputs(self, m, pis):
9577 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9578 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9580 def get_version_info(self):
9581 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9582 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9583 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9586 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9587 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9590 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9591 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9595 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9599 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9601 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9603 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9605 def __init__(self, *args):
9606 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9607 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9609 def do_get_inputs(self, m, pis):
9610 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9611 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9613 def get_version_info(self):
9614 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9615 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9616 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9619 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9620 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9623 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9624 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9628 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9632 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9634 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9636 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9638 def __init__(self, *args):
9639 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9640 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9642 def do_get_inputs(self, m, pis):
9643 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9644 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9646 def get_version_info(self):
9647 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9648 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9649 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9652 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9653 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9656 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9657 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9661 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9665 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9667 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9669 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9671 def __init__(self, *args):
9672 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9673 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9675 def do_get_inputs(self, m, pis):
9676 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9677 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9679 def get_version_info(self):
9680 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9681 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9682 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9685 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9686 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9689 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9690 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9694 return _object_cast_to_SoftSuperSurfacePairScore(o)
9698 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9700 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9702 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9704 def __init__(self, *args):
9705 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9706 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9708 def do_get_inputs(self, m, pis):
9709 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9710 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9712 def get_version_info(self):
9713 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9714 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9715 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9718 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9719 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9722 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9723 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9727 return _object_cast_to_SoftSubSurfacePairScore(o)
9731 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9733 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9735 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9737 def __init__(self, link_num, link_length):
9738 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9739 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9741 def get_version_info(self):
9742 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9743 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9744 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9746 def get_link_number(self):
9747 r"""get_link_number(SurfaceTetheredChain self) -> int"""
9748 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9750 def get_link_length(self):
9751 r"""get_link_length(SurfaceTetheredChain self) -> double"""
9752 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9754 def set_link_number(self, N):
9755 r"""set_link_number(SurfaceTetheredChain self, int N)"""
9756 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9758 def set_link_length(self, b):
9759 r"""set_link_length(SurfaceTetheredChain self, double b)"""
9760 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9762 def get_distance_at_minimum(self):
9763 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9764 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9766 def get_average_distance(self):
9767 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9768 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9771 r"""__str__(SurfaceTetheredChain self) -> std::string"""
9772 return _IMP_core.SurfaceTetheredChain___str__(self)
9775 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9776 return _IMP_core.SurfaceTetheredChain___repr__(self)
9780 return _object_cast_to_SurfaceTetheredChain(o)
9784 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9786 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9788 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9790 def __init__(self, m, ss, rbs):
9791 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9792 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9794 def do_get_inputs(self):
9795 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9796 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9798 def do_get_outputs(self):
9799 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9800 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9802 def get_version_info(self):
9803 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9804 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9805 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9808 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9809 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9812 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9813 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9817 return _object_cast_to_SurfaceSymmetryConstraint(o)
9821 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9823 r"""Proxy of C++ IMP::core::SteepestDescent class."""
9825 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9827 def __init__(self, *args):
9828 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9829 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9831 def do_optimize(self, max_steps):
9832 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9833 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9835 def get_version_info(self):
9836 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9837 return _IMP_core.SteepestDescent_get_version_info(self)
9838 __swig_destroy__ = _IMP_core.delete_SteepestDescent
9840 def set_threshold(self, t):
9841 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9842 return _IMP_core.SteepestDescent_set_threshold(self, t)
9844 def set_step_size(self, t):
9845 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9846 return _IMP_core.SteepestDescent_set_step_size(self, t)
9848 def set_maximum_step_size(self, t):
9849 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9850 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9853 r"""__str__(SteepestDescent self) -> std::string"""
9854 return _IMP_core.SteepestDescent___str__(self)
9857 r"""__repr__(SteepestDescent self) -> std::string"""
9858 return _IMP_core.SteepestDescent___repr__(self)
9862 return _object_cast_to_SteepestDescent(o)
9866 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9868 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9870 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9872 def __init__(self, f, transformation):
9873 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9874 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9876 def set_transformation(self, rot):
9877 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9878 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9880 def do_get_inputs(self, m, pis):
9881 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9882 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9884 def get_version_info(self):
9885 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
9886 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
9887 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
9890 r"""__str__(TransformedDistancePairScore self) -> std::string"""
9891 return _IMP_core.TransformedDistancePairScore___str__(self)
9894 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
9895 return _IMP_core.TransformedDistancePairScore___repr__(self)
9899 return _object_cast_to_TransformedDistancePairScore(o)
9903 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
9905 r"""Proxy of C++ IMP::core::TypedPairScore class."""
9907 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9909 def __init__(self, typekey, allow_invalid_types=True):
9910 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
9911 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
9913 def set_particle_type(self, arg2):
9914 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
9915 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
9917 def set_pair_score(self, ps, atype, btype):
9918 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
9919 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
9921 def do_get_inputs(self, m, pis):
9922 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9923 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
9925 def get_version_info(self):
9926 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
9927 return _IMP_core.TypedPairScore_get_version_info(self)
9928 __swig_destroy__ = _IMP_core.delete_TypedPairScore
9931 r"""__str__(TypedPairScore self) -> std::string"""
9932 return _IMP_core.TypedPairScore___str__(self)
9935 r"""__repr__(TypedPairScore self) -> std::string"""
9936 return _IMP_core.TypedPairScore___repr__(self)
9940 return _object_cast_to_TypedPairScore(o)
9944 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
9945 class RigidBodyDistancePairScore(KClosePairsPairScore):
9946 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
9948 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9950 def __init__(self, ps, r):
9951 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
9952 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
9955 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
9956 return _IMP_core.RigidBodyDistancePairScore___str__(self)
9959 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
9960 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
9964 return _object_cast_to_RigidBodyDistancePairScore(o)
9966 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
9969 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
9971 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
9973 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9975 def __init__(self, f):
9976 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
9977 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
9979 def do_get_inputs(self, m, pis):
9980 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9981 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
9983 def get_version_info(self):
9984 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
9985 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
9986 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
9989 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
9990 return _IMP_core.RigidBodyAnglePairScore___str__(self)
9993 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
9994 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
9998 return _object_cast_to_RigidBodyAnglePairScore(o)
10002 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10004 r"""Proxy of C++ IMP::core::TableRefiner class."""
10006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10008 def __init__(self):
10009 r"""__init__(TableRefiner self) -> TableRefiner"""
10010 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10013 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10014 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10016 def remove_particle(self, p):
10017 r"""remove_particle(TableRefiner self, Particle p)"""
10018 return _IMP_core.TableRefiner_remove_particle(self, p)
10020 def set_particle(self, p, ps):
10021 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10022 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10024 def do_get_inputs(self, m, pis):
10025 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10026 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10028 def get_version_info(self):
10029 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10030 return _IMP_core.TableRefiner_get_version_info(self)
10031 __swig_destroy__ = _IMP_core.delete_TableRefiner
10034 r"""__str__(TableRefiner self) -> std::string"""
10035 return _IMP_core.TableRefiner___str__(self)
10037 def __repr__(self):
10038 r"""__repr__(TableRefiner self) -> std::string"""
10039 return _IMP_core.TableRefiner___repr__(self)
10043 return _object_cast_to_TableRefiner(o)
10047 _IMP_core.TableRefiner_swigregister(TableRefiner)
10048 LOWER = _IMP_core.LOWER
10050 BOTH = _IMP_core.BOTH
10052 UPPER = _IMP_core.UPPER
10055 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10057 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10059 def __init__(self, *args):
10060 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10061 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10063 def set_bounding_box(self, bb):
10064 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10065 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10067 def set_number_of_attempts(self, att):
10068 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10069 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10071 def set_number_of_monte_carlo_steps(self, cg):
10072 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10073 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10075 def set_number_of_conjugate_gradient_steps(self, cg):
10076 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10077 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10079 def set_max_monte_carlo_step_size(self, *args):
10081 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10082 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10084 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10086 def set_is_refining(self, tf):
10087 r"""set_is_refining(MCCGSampler self, bool tf)"""
10088 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10090 def set_local_optimizer(self, opt):
10091 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10092 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10094 def set_save_rejected_configurations(self, tf):
10095 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10096 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10098 def get_rejected_configurations(self):
10099 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10100 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10101 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)
10102 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10103 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10104 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10106 def remove_optimizer_state(self, d):
10107 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10108 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10110 def _python_index_optimizer_state(self, d, start, stop):
10111 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10112 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10114 def remove_optimizer_states(self, d):
10115 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10116 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10118 def set_optimizer_states(self, ps):
10119 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10120 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10122 def set_optimizer_states_order(self, objs):
10123 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10124 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10126 def add_optimizer_state(self, obj):
10127 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10128 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10130 def add_optimizer_states(self, objs):
10131 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10132 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10134 def clear_optimizer_states(self):
10135 r"""clear_optimizer_states(MCCGSampler self)"""
10136 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10138 def get_number_of_optimizer_states(self):
10139 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10140 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10142 def get_has_optimizer_states(self):
10143 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10144 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10146 def get_optimizer_state(self, i):
10147 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10148 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10150 def get_optimizer_states(self):
10151 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10152 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10154 def erase_optimizer_state(self, i):
10155 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10156 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10158 def reserve_optimizer_states(self, sz):
10159 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10160 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10162 def do_sample(self):
10163 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10164 return _IMP_core.MCCGSampler_do_sample(self)
10166 def get_version_info(self):
10167 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10168 return _IMP_core.MCCGSampler_get_version_info(self)
10169 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10172 r"""__str__(MCCGSampler self) -> std::string"""
10173 return _IMP_core.MCCGSampler___str__(self)
10175 def __repr__(self):
10176 r"""__repr__(MCCGSampler self) -> std::string"""
10177 return _IMP_core.MCCGSampler___repr__(self)
10181 return _object_cast_to_MCCGSampler(o)
10185 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10187 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10189 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10191 def __init__(self, *args):
10192 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10193 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10195 def do_get_inputs(self):
10196 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10197 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10199 def get_version_info(self):
10200 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10201 return _IMP_core.MinimumRestraint_get_version_info(self)
10202 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10203 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)
10204 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10205 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10206 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10208 def remove_restraint(self, d):
10209 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10210 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10212 def _python_index_restraint(self, d, start, stop):
10213 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10214 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10216 def remove_restraints(self, d):
10217 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10218 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10220 def set_restraints(self, ps):
10221 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10222 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10224 def set_restraints_order(self, objs):
10225 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10226 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10229 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10230 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10233 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10234 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10236 def clear_restraints(self):
10237 r"""clear_restraints(MinimumRestraint self)"""
10238 return _IMP_core.MinimumRestraint_clear_restraints(self)
10240 def get_number_of_restraints(self):
10241 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10242 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10244 def get_has_restraints(self):
10245 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10246 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10248 def get_restraint(self, i):
10249 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10250 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10252 def get_restraints(self):
10253 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10254 return _IMP_core.MinimumRestraint_get_restraints(self)
10256 def erase_restraint(self, i):
10257 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10258 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10260 def reserve_restraints(self, sz):
10261 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10262 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10265 r"""__str__(MinimumRestraint self) -> std::string"""
10266 return _IMP_core.MinimumRestraint___str__(self)
10268 def __repr__(self):
10269 r"""__repr__(MinimumRestraint self) -> std::string"""
10270 return _IMP_core.MinimumRestraint___repr__(self)
10274 return _object_cast_to_MinimumRestraint(o)
10278 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10279 class Gaussian(RigidBody):
10280 r"""Proxy of C++ IMP::core::Gaussian class."""
10282 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10284 def __init__(self, *args):
10286 __init__(Gaussian self) -> Gaussian
10287 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10288 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10290 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10292 def show(self, *args):
10293 r"""show(Gaussian self, _ostream out=std::cout)"""
10294 return _IMP_core.Gaussian_show(self, *args)
10297 def setup_particle(*args):
10299 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10300 setup_particle(_ParticleAdaptor pa) -> Gaussian
10301 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10302 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10304 return _IMP_core.Gaussian_setup_particle(*args)
10307 def get_local_covariance_key():
10308 r"""get_local_covariance_key() -> ObjectKey"""
10309 return _IMP_core.Gaussian_get_local_covariance_key()
10312 def get_global_covariance_key():
10313 r"""get_global_covariance_key() -> ObjectKey"""
10314 return _IMP_core.Gaussian_get_global_covariance_key()
10317 def get_is_setup(*args):
10319 get_is_setup(_ParticleAdaptor p) -> bool
10320 get_is_setup(Model m, ParticleIndex pi) -> bool
10322 return _IMP_core.Gaussian_get_is_setup(*args)
10324 def get_local_covariance(self):
10325 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10326 return _IMP_core.Gaussian_get_local_covariance(self)
10328 def get_variances(self):
10329 r"""get_variances(Gaussian self) -> Vector3D"""
10330 return _IMP_core.Gaussian_get_variances(self)
10332 def get_global_covariance(self):
10333 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10334 return _IMP_core.Gaussian_get_global_covariance(self)
10336 def get_gaussian(self):
10337 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10338 return _IMP_core.Gaussian_get_gaussian(self)
10340 def set_gaussian(self, g):
10341 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10342 return _IMP_core.Gaussian_set_gaussian(self, g)
10344 def set_local_covariance(self, covar):
10345 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10346 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10348 def set_variances(self, v):
10349 r"""set_variances(Gaussian self, Vector3D v)"""
10350 return _IMP_core.Gaussian_set_variances(self, v)
10352 def set_global_covariance(self, covar):
10353 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10354 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10356 def update_global_covariance(self):
10357 r"""update_global_covariance(Gaussian self)"""
10358 return _IMP_core.Gaussian_update_global_covariance(self)
10360 def add_attribute(self, *args):
10362 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10363 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10364 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10365 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10366 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10367 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10368 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10369 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10370 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10371 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10372 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10373 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10375 return _IMP_core.Gaussian_add_attribute(self, *args)
10377 def get_value(self, *args):
10379 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10380 get_value(Gaussian self, IntKey a0) -> IMP::Int
10381 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10382 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10383 get_value(Gaussian self, StringKey a0) -> IMP::String
10384 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10385 get_value(Gaussian self, ObjectKey a0) -> Object
10386 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10387 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10388 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10389 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10391 return _IMP_core.Gaussian_get_value(self, *args)
10393 def set_value(self, *args):
10395 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10396 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10397 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10398 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10399 set_value(Gaussian self, StringKey a0, IMP::String a1)
10400 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10401 set_value(Gaussian self, ObjectKey a0, Object a1)
10402 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10403 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10404 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10405 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10407 return _IMP_core.Gaussian_set_value(self, *args)
10409 def remove_attribute(self, *args):
10411 remove_attribute(Gaussian self, FloatKey a0)
10412 remove_attribute(Gaussian self, IntKey a0)
10413 remove_attribute(Gaussian self, FloatsKey a0)
10414 remove_attribute(Gaussian self, IntsKey a0)
10415 remove_attribute(Gaussian self, StringKey a0)
10416 remove_attribute(Gaussian self, ParticleIndexKey a0)
10417 remove_attribute(Gaussian self, ObjectKey a0)
10418 remove_attribute(Gaussian self, SparseFloatKey a0)
10419 remove_attribute(Gaussian self, SparseIntKey a0)
10420 remove_attribute(Gaussian self, SparseStringKey a0)
10421 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10423 return _IMP_core.Gaussian_remove_attribute(self, *args)
10425 def has_attribute(self, *args):
10427 has_attribute(Gaussian self, FloatKey a0) -> bool
10428 has_attribute(Gaussian self, IntKey a0) -> bool
10429 has_attribute(Gaussian self, FloatsKey a0) -> bool
10430 has_attribute(Gaussian self, IntsKey a0) -> bool
10431 has_attribute(Gaussian self, StringKey a0) -> bool
10432 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10433 has_attribute(Gaussian self, ObjectKey a0) -> bool
10434 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10435 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10436 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10437 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10439 return _IMP_core.Gaussian_has_attribute(self, *args)
10441 def get_derivative(self, a0):
10442 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10443 return _IMP_core.Gaussian_get_derivative(self, a0)
10445 def get_name(self):
10446 r"""get_name(Gaussian self) -> std::string"""
10447 return _IMP_core.Gaussian_get_name(self)
10449 def clear_caches(self):
10450 r"""clear_caches(Gaussian self)"""
10451 return _IMP_core.Gaussian_clear_caches(self)
10453 def set_name(self, a0):
10454 r"""set_name(Gaussian self, std::string a0)"""
10455 return _IMP_core.Gaussian_set_name(self, a0)
10458 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10459 return _IMP_core.Gaussian_set_check_level(self, a0)
10461 def add_to_derivative(self, a0, a1, a2):
10462 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10463 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10465 def set_is_optimized(self, a0, a1):
10466 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10467 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10469 def get_is_optimized(self, a0):
10470 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10471 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10474 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10475 return _IMP_core.Gaussian_get_check_level(self)
10477 def __eq__(self, *args):
10479 __eq__(Gaussian self, Gaussian o) -> bool
10480 __eq__(Gaussian self, Particle d) -> bool
10482 return _IMP_core.Gaussian___eq__(self, *args)
10484 def __ne__(self, *args):
10486 __ne__(Gaussian self, Gaussian o) -> bool
10487 __ne__(Gaussian self, Particle d) -> bool
10489 return _IMP_core.Gaussian___ne__(self, *args)
10491 def __le__(self, *args):
10493 __le__(Gaussian self, Gaussian o) -> bool
10494 __le__(Gaussian self, Particle d) -> bool
10496 return _IMP_core.Gaussian___le__(self, *args)
10498 def __lt__(self, *args):
10500 __lt__(Gaussian self, Gaussian o) -> bool
10501 __lt__(Gaussian self, Particle d) -> bool
10503 return _IMP_core.Gaussian___lt__(self, *args)
10505 def __ge__(self, *args):
10507 __ge__(Gaussian self, Gaussian o) -> bool
10508 __ge__(Gaussian self, Particle d) -> bool
10510 return _IMP_core.Gaussian___ge__(self, *args)
10512 def __gt__(self, *args):
10514 __gt__(Gaussian self, Gaussian o) -> bool
10515 __gt__(Gaussian self, Particle d) -> bool
10517 return _IMP_core.Gaussian___gt__(self, *args)
10519 def __hash__(self):
10520 r"""__hash__(Gaussian self) -> std::size_t"""
10521 return _IMP_core.Gaussian___hash__(self)
10524 r"""__str__(Gaussian self) -> std::string"""
10525 return _IMP_core.Gaussian___str__(self)
10527 def __repr__(self):
10528 r"""__repr__(Gaussian self) -> std::string"""
10529 return _IMP_core.Gaussian___repr__(self)
10531 def _get_as_binary(self):
10532 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10533 return _IMP_core.Gaussian__get_as_binary(self)
10535 def _set_from_binary(self, p):
10536 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10537 return _IMP_core.Gaussian__set_from_binary(self, p)
10539 def __getstate__(self):
10540 p = self._get_as_binary()
10541 if len(self.__dict__) > 1:
10542 d = self.__dict__.copy()
10547 def __setstate__(self, p):
10548 if not hasattr(self,
'this'):
10550 if isinstance(p, tuple):
10552 self.__dict__.update(d)
10553 return self._set_from_binary(p)
10555 __swig_destroy__ = _IMP_core.delete_Gaussian
10558 _IMP_core.Gaussian_swigregister(Gaussian)
10560 r"""Proxy of C++ IMP::core::PairRestraint class."""
10562 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10564 def __init__(self, *args):
10566 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10567 __init__(PairRestraint self) -> PairRestraint
10569 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10571 def get_version_info(self):
10572 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10573 return _IMP_core.PairRestraint_get_version_info(self)
10574 __swig_destroy__ = _IMP_core.delete_PairRestraint
10577 r"""__str__(PairRestraint self) -> std::string"""
10578 return _IMP_core.PairRestraint___str__(self)
10580 def __repr__(self):
10581 r"""__repr__(PairRestraint self) -> std::string"""
10582 return _IMP_core.PairRestraint___repr__(self)
10586 return _object_cast_to_PairRestraint(o)
10589 def _get_as_binary(self):
10590 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10591 return _IMP_core.PairRestraint__get_as_binary(self)
10593 def _set_from_binary(self, p):
10594 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10595 return _IMP_core.PairRestraint__set_from_binary(self, p)
10597 def __getstate__(self):
10598 p = self._get_as_binary()
10599 if len(self.__dict__) > 1:
10600 d = self.__dict__.copy()
10605 def __setstate__(self, p):
10606 if not hasattr(self,
'this'):
10608 if isinstance(p, tuple):
10610 self.__dict__.update(d)
10611 return self._set_from_binary(p)
10615 _IMP_core.PairRestraint_swigregister(PairRestraint)
10617 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10619 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10621 def __init__(self, *args):
10623 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10624 __init__(SingletonRestraint self) -> SingletonRestraint
10626 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10628 def get_version_info(self):
10629 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10630 return _IMP_core.SingletonRestraint_get_version_info(self)
10631 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10634 r"""__str__(SingletonRestraint self) -> std::string"""
10635 return _IMP_core.SingletonRestraint___str__(self)
10637 def __repr__(self):
10638 r"""__repr__(SingletonRestraint self) -> std::string"""
10639 return _IMP_core.SingletonRestraint___repr__(self)
10643 return _object_cast_to_SingletonRestraint(o)
10646 def _get_as_binary(self):
10647 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10648 return _IMP_core.SingletonRestraint__get_as_binary(self)
10650 def _set_from_binary(self, p):
10651 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10652 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10654 def __getstate__(self):
10655 p = self._get_as_binary()
10656 if len(self.__dict__) > 1:
10657 d = self.__dict__.copy()
10662 def __setstate__(self, p):
10663 if not hasattr(self,
'this'):
10665 if isinstance(p, tuple):
10667 self.__dict__.update(d)
10668 return self._set_from_binary(p)
10672 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10674 r"""Proxy of C++ IMP::core::TripletRestraint class."""
10676 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10678 def __init__(self, *args):
10680 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10681 __init__(TripletRestraint self) -> TripletRestraint
10683 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10685 def get_version_info(self):
10686 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10687 return _IMP_core.TripletRestraint_get_version_info(self)
10688 __swig_destroy__ = _IMP_core.delete_TripletRestraint
10691 r"""__str__(TripletRestraint self) -> std::string"""
10692 return _IMP_core.TripletRestraint___str__(self)
10694 def __repr__(self):
10695 r"""__repr__(TripletRestraint self) -> std::string"""
10696 return _IMP_core.TripletRestraint___repr__(self)
10700 return _object_cast_to_TripletRestraint(o)
10703 def _get_as_binary(self):
10704 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10705 return _IMP_core.TripletRestraint__get_as_binary(self)
10707 def _set_from_binary(self, p):
10708 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10709 return _IMP_core.TripletRestraint__set_from_binary(self, p)
10711 def __getstate__(self):
10712 p = self._get_as_binary()
10713 if len(self.__dict__) > 1:
10714 d = self.__dict__.copy()
10719 def __setstate__(self, p):
10720 if not hasattr(self,
'this'):
10722 if isinstance(p, tuple):
10724 self.__dict__.update(d)
10725 return self._set_from_binary(p)
10729 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10731 r"""Proxy of C++ IMP::core::QuadRestraint class."""
10733 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10735 def __init__(self, *args):
10737 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10738 __init__(QuadRestraint self) -> QuadRestraint
10740 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10742 def get_version_info(self):
10743 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10744 return _IMP_core.QuadRestraint_get_version_info(self)
10745 __swig_destroy__ = _IMP_core.delete_QuadRestraint
10748 r"""__str__(QuadRestraint self) -> std::string"""
10749 return _IMP_core.QuadRestraint___str__(self)
10751 def __repr__(self):
10752 r"""__repr__(QuadRestraint self) -> std::string"""
10753 return _IMP_core.QuadRestraint___repr__(self)
10757 return _object_cast_to_QuadRestraint(o)
10760 def _get_as_binary(self):
10761 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10762 return _IMP_core.QuadRestraint__get_as_binary(self)
10764 def _set_from_binary(self, p):
10765 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10766 return _IMP_core.QuadRestraint__set_from_binary(self, p)
10768 def __getstate__(self):
10769 p = self._get_as_binary()
10770 if len(self.__dict__) > 1:
10771 d = self.__dict__.copy()
10776 def __setstate__(self, p):
10777 if not hasattr(self,
'this'):
10779 if isinstance(p, tuple):
10781 self.__dict__.update(d)
10782 return self._set_from_binary(p)
10786 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10788 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10790 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10792 def __init__(self, *args):
10794 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10795 __init__(SingletonConstraint self) -> SingletonConstraint
10797 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10799 def get_version_info(self):
10800 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10801 return _IMP_core.SingletonConstraint_get_version_info(self)
10802 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10805 r"""__str__(SingletonConstraint self) -> std::string"""
10806 return _IMP_core.SingletonConstraint___str__(self)
10808 def __repr__(self):
10809 r"""__repr__(SingletonConstraint self) -> std::string"""
10810 return _IMP_core.SingletonConstraint___repr__(self)
10814 return _object_cast_to_SingletonConstraint(o)
10817 def _get_as_binary(self):
10818 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10819 return _IMP_core.SingletonConstraint__get_as_binary(self)
10821 def _set_from_binary(self, p):
10822 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10823 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10825 def __getstate__(self):
10826 p = self._get_as_binary()
10827 if len(self.__dict__) > 1:
10828 d = self.__dict__.copy()
10833 def __setstate__(self, p):
10834 if not hasattr(self,
'this'):
10836 if isinstance(p, tuple):
10838 self.__dict__.update(d)
10839 return self._set_from_binary(p)
10843 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10845 r"""Proxy of C++ IMP::core::PairConstraint class."""
10847 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10849 def __init__(self, *args):
10851 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
10852 __init__(PairConstraint self) -> PairConstraint
10854 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
10856 def get_version_info(self):
10857 r"""get_version_info(PairConstraint self) -> VersionInfo"""
10858 return _IMP_core.PairConstraint_get_version_info(self)
10859 __swig_destroy__ = _IMP_core.delete_PairConstraint
10862 r"""__str__(PairConstraint self) -> std::string"""
10863 return _IMP_core.PairConstraint___str__(self)
10865 def __repr__(self):
10866 r"""__repr__(PairConstraint self) -> std::string"""
10867 return _IMP_core.PairConstraint___repr__(self)
10871 return _object_cast_to_PairConstraint(o)
10874 def _get_as_binary(self):
10875 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
10876 return _IMP_core.PairConstraint__get_as_binary(self)
10878 def _set_from_binary(self, p):
10879 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
10880 return _IMP_core.PairConstraint__set_from_binary(self, p)
10882 def __getstate__(self):
10883 p = self._get_as_binary()
10884 if len(self.__dict__) > 1:
10885 d = self.__dict__.copy()
10890 def __setstate__(self, p):
10891 if not hasattr(self,
'this'):
10893 if isinstance(p, tuple):
10895 self.__dict__.update(d)
10896 return self._set_from_binary(p)
10900 _IMP_core.PairConstraint_swigregister(PairConstraint)
10902 r"""Proxy of C++ IMP::core::TripletConstraint class."""
10904 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10906 def __init__(self, *args):
10908 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
10909 __init__(TripletConstraint self) -> TripletConstraint
10911 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
10913 def get_version_info(self):
10914 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
10915 return _IMP_core.TripletConstraint_get_version_info(self)
10916 __swig_destroy__ = _IMP_core.delete_TripletConstraint
10919 r"""__str__(TripletConstraint self) -> std::string"""
10920 return _IMP_core.TripletConstraint___str__(self)
10922 def __repr__(self):
10923 r"""__repr__(TripletConstraint self) -> std::string"""
10924 return _IMP_core.TripletConstraint___repr__(self)
10928 return _object_cast_to_TripletConstraint(o)
10931 def _get_as_binary(self):
10932 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
10933 return _IMP_core.TripletConstraint__get_as_binary(self)
10935 def _set_from_binary(self, p):
10936 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
10937 return _IMP_core.TripletConstraint__set_from_binary(self, p)
10939 def __getstate__(self):
10940 p = self._get_as_binary()
10941 if len(self.__dict__) > 1:
10942 d = self.__dict__.copy()
10947 def __setstate__(self, p):
10948 if not hasattr(self,
'this'):
10950 if isinstance(p, tuple):
10952 self.__dict__.update(d)
10953 return self._set_from_binary(p)
10957 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
10959 r"""Proxy of C++ IMP::core::QuadConstraint class."""
10961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10963 def __init__(self, *args):
10965 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
10966 __init__(QuadConstraint self) -> QuadConstraint
10968 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
10970 def get_version_info(self):
10971 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
10972 return _IMP_core.QuadConstraint_get_version_info(self)
10973 __swig_destroy__ = _IMP_core.delete_QuadConstraint
10976 r"""__str__(QuadConstraint self) -> std::string"""
10977 return _IMP_core.QuadConstraint___str__(self)
10979 def __repr__(self):
10980 r"""__repr__(QuadConstraint self) -> std::string"""
10981 return _IMP_core.QuadConstraint___repr__(self)
10985 return _object_cast_to_QuadConstraint(o)
10988 def _get_as_binary(self):
10989 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
10990 return _IMP_core.QuadConstraint__get_as_binary(self)
10992 def _set_from_binary(self, p):
10993 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
10994 return _IMP_core.QuadConstraint__set_from_binary(self, p)
10996 def __getstate__(self):
10997 p = self._get_as_binary()
10998 if len(self.__dict__) > 1:
10999 d = self.__dict__.copy()
11004 def __setstate__(self, p):
11005 if not hasattr(self,
'this'):
11007 if isinstance(p, tuple):
11009 self.__dict__.update(d)
11010 return self._set_from_binary(p)
11014 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11016 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11018 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11020 def __init__(self, *args):
11022 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11023 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11025 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11027 def do_get_inputs(self, arg2, arg3):
11028 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11029 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11031 def get_value(self, *args):
11033 get_value(ConstantSingletonPredicate self, Particle a) -> int
11034 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11036 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11038 def get_value_index(self, *args):
11040 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11041 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11043 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11045 def get_version_info(self):
11046 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11047 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11048 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11051 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11052 return _IMP_core.ConstantSingletonPredicate___str__(self)
11054 def __repr__(self):
11055 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11056 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11060 return _object_cast_to_ConstantSingletonPredicate(o)
11063 def _get_as_binary(self):
11064 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11065 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11067 def _set_from_binary(self, p):
11068 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11069 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11071 def __getstate__(self):
11072 p = self._get_as_binary()
11073 if len(self.__dict__) > 1:
11074 d = self.__dict__.copy()
11079 def __setstate__(self, p):
11080 if not hasattr(self,
'this'):
11082 if isinstance(p, tuple):
11084 self.__dict__.update(d)
11085 return self._set_from_binary(p)
11089 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11091 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11093 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11095 def __init__(self, *args):
11096 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11097 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11099 def do_get_inputs(self, m, pis):
11100 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11101 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11103 def get_value(self, *args):
11105 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11106 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11108 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11110 def get_value_index(self, *args):
11112 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11113 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11115 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11117 def get_version_info(self):
11118 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11119 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11120 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11123 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11124 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11126 def __repr__(self):
11127 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11128 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11132 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11135 def _get_as_binary(self):
11136 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11137 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11139 def _set_from_binary(self, p):
11140 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11141 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11143 def __getstate__(self):
11144 p = self._get_as_binary()
11145 if len(self.__dict__) > 1:
11146 d = self.__dict__.copy()
11151 def __setstate__(self, p):
11152 if not hasattr(self,
'this'):
11154 if isinstance(p, tuple):
11156 self.__dict__.update(d)
11157 return self._set_from_binary(p)
11161 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11163 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11165 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11167 def __init__(self, *args):
11168 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11169 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11171 def do_get_inputs(self, m, pis):
11172 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11173 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11175 def get_value(self, *args):
11177 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11178 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11179 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11181 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11183 def get_value_index(self, *args):
11185 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11186 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11188 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11190 def get_version_info(self):
11191 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11192 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11193 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11196 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11197 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11199 def __repr__(self):
11200 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11201 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11205 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11209 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11211 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11215 def __init__(self, *args):
11216 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11217 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11219 def do_get_inputs(self, arg2, arg3):
11220 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11221 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11223 def get_value(self, *args):
11225 get_value(AllSameSingletonPredicate self, Particle a) -> int
11226 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11228 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11230 def get_value_index(self, *args):
11232 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11233 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11235 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11237 def get_version_info(self):
11238 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11239 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11240 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11243 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11244 return _IMP_core.AllSameSingletonPredicate___str__(self)
11246 def __repr__(self):
11247 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11248 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11252 return _object_cast_to_AllSameSingletonPredicate(o)
11255 def _get_as_binary(self):
11256 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11257 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11259 def _set_from_binary(self, p):
11260 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11261 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11263 def __getstate__(self):
11264 p = self._get_as_binary()
11265 if len(self.__dict__) > 1:
11266 d = self.__dict__.copy()
11271 def __setstate__(self, p):
11272 if not hasattr(self,
'this'):
11274 if isinstance(p, tuple):
11276 self.__dict__.update(d)
11277 return self._set_from_binary(p)
11281 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11283 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11285 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11287 def __init__(self, *args):
11288 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11289 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11291 def do_get_inputs(self, arg2, arg3):
11292 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11293 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11295 def get_value(self, *args):
11297 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11298 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11300 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11302 def get_value_index(self, *args):
11304 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11305 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11307 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11309 def get_version_info(self):
11310 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11311 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11312 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11315 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11316 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11318 def __repr__(self):
11319 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11320 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11324 return _object_cast_to_CoinFlipSingletonPredicate(o)
11328 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11330 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11332 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11334 def __init__(self, *args):
11336 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11337 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11339 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11341 def do_get_inputs(self, arg2, arg3):
11342 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11343 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11345 def get_value(self, *args):
11347 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11348 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11350 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11352 def get_value_index(self, *args):
11354 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11355 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11357 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11359 def get_version_info(self):
11360 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11361 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11362 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11365 r"""__str__(ConstantPairPredicate self) -> std::string"""
11366 return _IMP_core.ConstantPairPredicate___str__(self)
11368 def __repr__(self):
11369 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11370 return _IMP_core.ConstantPairPredicate___repr__(self)
11374 return _object_cast_to_ConstantPairPredicate(o)
11377 def _get_as_binary(self):
11378 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11379 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11381 def _set_from_binary(self, p):
11382 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11383 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11385 def __getstate__(self):
11386 p = self._get_as_binary()
11387 if len(self.__dict__) > 1:
11388 d = self.__dict__.copy()
11393 def __setstate__(self, p):
11394 if not hasattr(self,
'this'):
11396 if isinstance(p, tuple):
11398 self.__dict__.update(d)
11399 return self._set_from_binary(p)
11403 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11405 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11407 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11409 def __init__(self, *args):
11410 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11411 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11413 def do_get_inputs(self, m, pis):
11414 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11415 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11417 def get_value(self, *args):
11419 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11420 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11422 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11424 def get_value_index(self, *args):
11426 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11427 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11429 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11431 def get_version_info(self):
11432 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11433 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11434 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11437 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11438 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11440 def __repr__(self):
11441 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11442 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11446 return _object_cast_to_UnorderedTypePairPredicate(o)
11449 def _get_as_binary(self):
11450 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11451 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11453 def _set_from_binary(self, p):
11454 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11455 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11457 def __getstate__(self):
11458 p = self._get_as_binary()
11459 if len(self.__dict__) > 1:
11460 d = self.__dict__.copy()
11465 def __setstate__(self, p):
11466 if not hasattr(self,
'this'):
11468 if isinstance(p, tuple):
11470 self.__dict__.update(d)
11471 return self._set_from_binary(p)
11475 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11477 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11479 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11481 def __init__(self, *args):
11482 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11483 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11485 def do_get_inputs(self, m, pis):
11486 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11487 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11489 def get_value(self, *args):
11491 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11492 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11493 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11495 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11497 def get_value_index(self, *args):
11499 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11500 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11502 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11504 def get_version_info(self):
11505 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11506 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11507 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11510 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11511 return _IMP_core.OrderedTypePairPredicate___str__(self)
11513 def __repr__(self):
11514 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11515 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11519 return _object_cast_to_OrderedTypePairPredicate(o)
11523 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11525 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11527 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11529 def __init__(self, *args):
11530 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11531 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11533 def do_get_inputs(self, arg2, arg3):
11534 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11535 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11537 def get_value(self, *args):
11539 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11540 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11542 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11544 def get_value_index(self, *args):
11546 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11547 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11549 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11551 def get_version_info(self):
11552 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11553 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11554 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11557 r"""__str__(AllSamePairPredicate self) -> std::string"""
11558 return _IMP_core.AllSamePairPredicate___str__(self)
11560 def __repr__(self):
11561 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11562 return _IMP_core.AllSamePairPredicate___repr__(self)
11566 return _object_cast_to_AllSamePairPredicate(o)
11569 def _get_as_binary(self):
11570 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11571 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11573 def _set_from_binary(self, p):
11574 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11575 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11577 def __getstate__(self):
11578 p = self._get_as_binary()
11579 if len(self.__dict__) > 1:
11580 d = self.__dict__.copy()
11585 def __setstate__(self, p):
11586 if not hasattr(self,
'this'):
11588 if isinstance(p, tuple):
11590 self.__dict__.update(d)
11591 return self._set_from_binary(p)
11595 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11597 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11601 def __init__(self, *args):
11602 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11603 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11605 def do_get_inputs(self, arg2, arg3):
11606 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11607 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11609 def get_value(self, *args):
11611 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11612 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11614 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11616 def get_value_index(self, *args):
11618 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11619 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11621 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11623 def get_version_info(self):
11624 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11625 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11626 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11629 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11630 return _IMP_core.CoinFlipPairPredicate___str__(self)
11632 def __repr__(self):
11633 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11634 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11638 return _object_cast_to_CoinFlipPairPredicate(o)
11642 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11644 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11646 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11648 def __init__(self, *args):
11650 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11651 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11653 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11655 def do_get_inputs(self, arg2, arg3):
11656 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11657 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11659 def get_value(self, *args):
11661 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11662 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11664 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11666 def get_value_index(self, *args):
11668 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11669 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11671 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11673 def get_version_info(self):
11674 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11675 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11676 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11679 r"""__str__(ConstantTripletPredicate self) -> std::string"""
11680 return _IMP_core.ConstantTripletPredicate___str__(self)
11682 def __repr__(self):
11683 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11684 return _IMP_core.ConstantTripletPredicate___repr__(self)
11688 return _object_cast_to_ConstantTripletPredicate(o)
11691 def _get_as_binary(self):
11692 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11693 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11695 def _set_from_binary(self, p):
11696 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11697 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11699 def __getstate__(self):
11700 p = self._get_as_binary()
11701 if len(self.__dict__) > 1:
11702 d = self.__dict__.copy()
11707 def __setstate__(self, p):
11708 if not hasattr(self,
'this'):
11710 if isinstance(p, tuple):
11712 self.__dict__.update(d)
11713 return self._set_from_binary(p)
11717 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11719 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11721 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11723 def __init__(self, *args):
11724 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11725 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11727 def do_get_inputs(self, m, pis):
11728 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11729 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11731 def get_value(self, *args):
11733 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11734 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11736 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11738 def get_value_index(self, *args):
11740 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11741 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11743 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11745 def get_version_info(self):
11746 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11747 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11748 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11751 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11752 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11754 def __repr__(self):
11755 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11756 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11760 return _object_cast_to_UnorderedTypeTripletPredicate(o)
11763 def _get_as_binary(self):
11764 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11765 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11767 def _set_from_binary(self, p):
11768 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11769 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11771 def __getstate__(self):
11772 p = self._get_as_binary()
11773 if len(self.__dict__) > 1:
11774 d = self.__dict__.copy()
11779 def __setstate__(self, p):
11780 if not hasattr(self,
'this'):
11782 if isinstance(p, tuple):
11784 self.__dict__.update(d)
11785 return self._set_from_binary(p)
11789 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11791 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11793 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11795 def __init__(self, *args):
11796 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11797 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11799 def do_get_inputs(self, m, pis):
11800 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11801 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11803 def get_value(self, *args):
11805 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11806 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11807 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11809 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11811 def get_value_index(self, *args):
11813 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11814 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11816 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11818 def get_version_info(self):
11819 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11820 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11821 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11824 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11825 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11827 def __repr__(self):
11828 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11829 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11833 return _object_cast_to_OrderedTypeTripletPredicate(o)
11837 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11839 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11841 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11843 def __init__(self, *args):
11844 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11845 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11847 def do_get_inputs(self, arg2, arg3):
11848 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11849 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
11851 def get_value(self, *args):
11853 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11854 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11856 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
11858 def get_value_index(self, *args):
11860 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11861 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11863 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
11865 def get_version_info(self):
11866 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
11867 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
11868 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
11871 r"""__str__(AllSameTripletPredicate self) -> std::string"""
11872 return _IMP_core.AllSameTripletPredicate___str__(self)
11874 def __repr__(self):
11875 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
11876 return _IMP_core.AllSameTripletPredicate___repr__(self)
11880 return _object_cast_to_AllSameTripletPredicate(o)
11883 def _get_as_binary(self):
11884 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
11885 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
11887 def _set_from_binary(self, p):
11888 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
11889 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
11891 def __getstate__(self):
11892 p = self._get_as_binary()
11893 if len(self.__dict__) > 1:
11894 d = self.__dict__.copy()
11899 def __setstate__(self, p):
11900 if not hasattr(self,
'this'):
11902 if isinstance(p, tuple):
11904 self.__dict__.update(d)
11905 return self._set_from_binary(p)
11909 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
11911 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
11913 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11915 def __init__(self, *args):
11916 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
11917 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
11919 def do_get_inputs(self, arg2, arg3):
11920 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11921 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
11923 def get_value(self, *args):
11925 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11926 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11928 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
11930 def get_value_index(self, *args):
11932 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11933 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11935 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
11937 def get_version_info(self):
11938 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
11939 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
11940 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
11943 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
11944 return _IMP_core.CoinFlipTripletPredicate___str__(self)
11946 def __repr__(self):
11947 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
11948 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
11952 return _object_cast_to_CoinFlipTripletPredicate(o)
11956 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
11958 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
11960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11962 def __init__(self, *args):
11964 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
11965 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
11967 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
11969 def do_get_inputs(self, arg2, arg3):
11970 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11971 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
11973 def get_value(self, *args):
11975 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
11976 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11978 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
11980 def get_value_index(self, *args):
11982 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11983 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11985 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
11987 def get_version_info(self):
11988 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
11989 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
11990 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
11993 r"""__str__(ConstantQuadPredicate self) -> std::string"""
11994 return _IMP_core.ConstantQuadPredicate___str__(self)
11996 def __repr__(self):
11997 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
11998 return _IMP_core.ConstantQuadPredicate___repr__(self)
12002 return _object_cast_to_ConstantQuadPredicate(o)
12005 def _get_as_binary(self):
12006 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12007 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12009 def _set_from_binary(self, p):
12010 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12011 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12013 def __getstate__(self):
12014 p = self._get_as_binary()
12015 if len(self.__dict__) > 1:
12016 d = self.__dict__.copy()
12021 def __setstate__(self, p):
12022 if not hasattr(self,
'this'):
12024 if isinstance(p, tuple):
12026 self.__dict__.update(d)
12027 return self._set_from_binary(p)
12031 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12033 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12035 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12037 def __init__(self, *args):
12038 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12039 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12041 def do_get_inputs(self, m, pis):
12042 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12043 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12045 def get_value(self, *args):
12047 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12048 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12050 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12052 def get_value_index(self, *args):
12054 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12055 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12057 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12059 def get_version_info(self):
12060 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12061 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12062 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12065 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12066 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12068 def __repr__(self):
12069 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12070 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12074 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12077 def _get_as_binary(self):
12078 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12079 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12081 def _set_from_binary(self, p):
12082 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12083 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12085 def __getstate__(self):
12086 p = self._get_as_binary()
12087 if len(self.__dict__) > 1:
12088 d = self.__dict__.copy()
12093 def __setstate__(self, p):
12094 if not hasattr(self,
'this'):
12096 if isinstance(p, tuple):
12098 self.__dict__.update(d)
12099 return self._set_from_binary(p)
12103 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12105 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12107 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12109 def __init__(self, *args):
12110 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12111 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12113 def do_get_inputs(self, m, pis):
12114 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12115 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12117 def get_value(self, *args):
12119 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12120 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12121 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12123 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12125 def get_value_index(self, *args):
12127 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12128 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12130 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12132 def get_version_info(self):
12133 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12134 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12135 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12138 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12139 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12141 def __repr__(self):
12142 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12143 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12147 return _object_cast_to_OrderedTypeQuadPredicate(o)
12151 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12153 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12155 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12157 def __init__(self, *args):
12158 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12159 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12161 def do_get_inputs(self, arg2, arg3):
12162 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12163 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12165 def get_value(self, *args):
12167 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12168 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12170 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12172 def get_value_index(self, *args):
12174 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12175 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12177 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12179 def get_version_info(self):
12180 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12181 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12182 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12185 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12186 return _IMP_core.AllSameQuadPredicate___str__(self)
12188 def __repr__(self):
12189 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12190 return _IMP_core.AllSameQuadPredicate___repr__(self)
12194 return _object_cast_to_AllSameQuadPredicate(o)
12197 def _get_as_binary(self):
12198 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12199 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12201 def _set_from_binary(self, p):
12202 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12203 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12205 def __getstate__(self):
12206 p = self._get_as_binary()
12207 if len(self.__dict__) > 1:
12208 d = self.__dict__.copy()
12213 def __setstate__(self, p):
12214 if not hasattr(self,
'this'):
12216 if isinstance(p, tuple):
12218 self.__dict__.update(d)
12219 return self._set_from_binary(p)
12223 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12225 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12229 def __init__(self, *args):
12230 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12231 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12233 def do_get_inputs(self, arg2, arg3):
12234 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12235 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12237 def get_value(self, *args):
12239 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12240 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12242 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12244 def get_value_index(self, *args):
12246 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12247 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12249 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12251 def get_version_info(self):
12252 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12253 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12254 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12257 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12258 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12260 def __repr__(self):
12261 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12262 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12266 return _object_cast_to_CoinFlipQuadPredicate(o)
12270 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12272 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12274 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12276 def __init__(self, *args):
12277 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12278 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12280 def do_get_inputs(self, m, pi):
12281 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12282 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12284 def get_value(self, *args):
12286 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12287 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12289 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12291 def get_value_index(self, *args):
12293 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12294 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12296 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12298 def get_version_info(self):
12299 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12300 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12301 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12304 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12305 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12307 def __repr__(self):
12308 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12309 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12313 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12317 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12319 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12321 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12323 def __init__(self, *args):
12324 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12325 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12327 def do_get_inputs(self, m, pi):
12328 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12329 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12331 def get_value(self, *args):
12333 get_value(AttributeSingletonPredicate self, Particle a) -> int
12334 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12336 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12338 def get_value_index(self, *args):
12340 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12341 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12343 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12345 def get_version_info(self):
12346 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12347 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12348 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12351 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12352 return _IMP_core.AttributeSingletonPredicate___str__(self)
12354 def __repr__(self):
12355 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12356 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12360 return _object_cast_to_AttributeSingletonPredicate(o)
12364 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12366 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12368 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12370 def __init__(self, *args):
12371 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12372 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12374 def do_get_inputs(self, m, pi):
12375 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12376 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12378 def get_value(self, *args):
12380 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12381 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12383 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12385 def get_value_index(self, *args):
12387 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12388 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12390 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12392 def get_version_info(self):
12393 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12394 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12395 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12398 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12399 return _IMP_core.IsCollisionPairPredicate___str__(self)
12401 def __repr__(self):
12402 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12403 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12407 return _object_cast_to_IsCollisionPairPredicate(o)
12411 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12412 class AngleRestraint(TripletRestraint):
12413 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12415 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12417 def __init__(self, *args):
12419 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12420 __init__(AngleRestraint self) -> AngleRestraint
12422 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12423 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12426 r"""__str__(AngleRestraint self) -> std::string"""
12427 return _IMP_core.AngleRestraint___str__(self)
12429 def __repr__(self):
12430 r"""__repr__(AngleRestraint self) -> std::string"""
12431 return _IMP_core.AngleRestraint___repr__(self)
12435 return _object_cast_to_AngleRestraint(o)
12438 def _get_as_binary(self):
12439 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12440 return _IMP_core.AngleRestraint__get_as_binary(self)
12442 def _set_from_binary(self, p):
12443 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12444 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12446 def __getstate__(self):
12447 p = self._get_as_binary()
12448 if len(self.__dict__) > 1:
12449 d = self.__dict__.copy()
12454 def __setstate__(self, p):
12455 if not hasattr(self,
'this'):
12457 if isinstance(p, tuple):
12459 self.__dict__.update(d)
12460 return self._set_from_binary(p)
12464 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12465 class RigidBodyMover(MonteCarloMover):
12466 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12468 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12470 def __init__(self, *args):
12472 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12473 __init__(RigidBodyMover self) -> RigidBodyMover
12475 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12477 def set_maximum_translation(self, mt):
12478 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12479 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12481 def set_maximum_rotation(self, mr):
12482 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12483 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12485 def get_maximum_translation(self):
12486 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12487 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12489 def get_maximum_rotation(self):
12490 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12491 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12493 def get_version_info(self):
12494 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12495 return _IMP_core.RigidBodyMover_get_version_info(self)
12496 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12499 r"""__str__(RigidBodyMover self) -> std::string"""
12500 return _IMP_core.RigidBodyMover___str__(self)
12502 def __repr__(self):
12503 r"""__repr__(RigidBodyMover self) -> std::string"""
12504 return _IMP_core.RigidBodyMover___repr__(self)
12508 return _object_cast_to_RigidBodyMover(o)
12511 def _get_as_binary(self):
12512 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12513 return _IMP_core.RigidBodyMover__get_as_binary(self)
12515 def _set_from_binary(self, p):
12516 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12517 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12519 def __getstate__(self):
12520 p = self._get_as_binary()
12521 if len(self.__dict__) > 1:
12522 d = self.__dict__.copy()
12527 def __setstate__(self, p):
12528 if not hasattr(self,
'this'):
12530 if isinstance(p, tuple):
12532 self.__dict__.update(d)
12533 return self._set_from_binary(p)
12537 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12538 class RigidBodyTunneler(MonteCarloMover):
12539 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12541 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12543 def __init__(self, m, pis, ref, k, move_probability=1.):
12544 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12545 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12547 def add_entry_point(self, fl):
12548 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12549 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12551 def reset_stats(self):
12552 r"""reset_stats(RigidBodyTunneler self)"""
12553 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12555 def get_number_of_rejected_moves(self):
12556 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12557 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12559 def get_number_of_proposed_moves(self):
12560 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12561 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12563 def get_number_of_impossible_moves(self):
12564 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12565 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12567 def get_number_of_calls(self):
12568 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12569 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12572 def get_reduced_coordinates(*args):
12574 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12575 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12577 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12580 def set_reduced_coordinates(m, target, ref, coords):
12581 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12582 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12584 def get_version_info(self):
12585 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12586 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12587 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12590 r"""__str__(RigidBodyTunneler self) -> std::string"""
12591 return _IMP_core.RigidBodyTunneler___str__(self)
12593 def __repr__(self):
12594 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12595 return _IMP_core.RigidBodyTunneler___repr__(self)
12599 return _object_cast_to_RigidBodyTunneler(o)
12603 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12605 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12607 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12609 def __init__(self, *args):
12611 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12612 __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
12614 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12616 def set_x0(self, *args):
12618 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12619 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12621 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12624 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12625 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12628 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12629 return _IMP_core.RigidBodyUmbrella_get_x(self)
12631 def set_alpha(self, alpha):
12632 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12633 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12635 def set_k(self, k):
12636 r"""set_k(RigidBodyUmbrella self, double k)"""
12637 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12639 def get_version_info(self):
12640 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12641 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12642 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12645 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12646 return _IMP_core.RigidBodyUmbrella___str__(self)
12648 def __repr__(self):
12649 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12650 return _IMP_core.RigidBodyUmbrella___repr__(self)
12654 return _object_cast_to_RigidBodyUmbrella(o)
12658 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12660 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12662 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12664 def __init__(self, f, sc, volume):
12665 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12666 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12668 def do_get_inputs(self):
12669 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12670 return _IMP_core.VolumeRestraint_do_get_inputs(self)
12672 def get_version_info(self):
12673 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12674 return _IMP_core.VolumeRestraint_get_version_info(self)
12675 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12678 r"""__str__(VolumeRestraint self) -> std::string"""
12679 return _IMP_core.VolumeRestraint___str__(self)
12681 def __repr__(self):
12682 r"""__repr__(VolumeRestraint self) -> std::string"""
12683 return _IMP_core.VolumeRestraint___repr__(self)
12687 return _object_cast_to_VolumeRestraint(o)
12691 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12694 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12695 return _IMP_core.get_centroid(ps)
12698 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12699 return _IMP_core.get_bounding_box(ps)
12701 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12703 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12705 def __init__(self, ps):
12706 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12707 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12709 def show_statistics(self, *args):
12710 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12711 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12714 r"""reset(MoveStatisticsScoreState self)"""
12715 return _IMP_core.MoveStatisticsScoreState_reset(self)
12717 def do_before_evaluate(self):
12718 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12719 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12721 def do_after_evaluate(self, da):
12722 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12723 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12725 def do_get_inputs(self):
12726 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12727 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12729 def do_get_outputs(self):
12730 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12731 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12733 def get_version_info(self):
12734 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12735 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12736 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12739 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12740 return _IMP_core.MoveStatisticsScoreState___str__(self)
12742 def __repr__(self):
12743 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12744 return _IMP_core.MoveStatisticsScoreState___repr__(self)
12748 return _object_cast_to_MoveStatisticsScoreState(o)
12752 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12753 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12756 r"""Proxy of C++ IMP::core::Typed class."""
12758 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12761 def get_type_key():
12762 r"""get_type_key() -> IntKey"""
12763 return _IMP_core.Typed_get_type_key()
12765 def __init__(self, *args):
12767 __init__(Typed self) -> Typed
12768 __init__(Typed self, Model m, ParticleIndex id) -> Typed
12769 __init__(Typed self, _ParticleAdaptor d) -> Typed
12771 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12773 def show(self, *args):
12774 r"""show(Typed self, _ostream out=std::cout)"""
12775 return _IMP_core.Typed_show(self, *args)
12778 def setup_particle(*args):
12780 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12781 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12783 return _IMP_core.Typed_setup_particle(*args)
12786 def get_is_setup(*args):
12788 get_is_setup(_ParticleAdaptor p) -> bool
12789 get_is_setup(Model m, ParticleIndex pi) -> bool
12791 return _IMP_core.Typed_get_is_setup(*args)
12793 def get_type(self):
12794 r"""get_type(Typed self) -> ParticleType"""
12795 return _IMP_core.Typed_get_type(self)
12797 def set_type(self, pt):
12798 r"""set_type(Typed self, ParticleType pt)"""
12799 return _IMP_core.Typed_set_type(self, pt)
12801 def add_attribute(self, *args):
12803 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12804 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12805 add_attribute(Typed self, IntKey a0, IMP::Int a1)
12806 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12807 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12808 add_attribute(Typed self, StringKey a0, IMP::String a1)
12809 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12810 add_attribute(Typed self, ObjectKey a0, Object a1)
12811 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12812 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12813 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12814 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12816 return _IMP_core.Typed_add_attribute(self, *args)
12818 def get_value(self, *args):
12820 get_value(Typed self, FloatKey a0) -> IMP::Float
12821 get_value(Typed self, IntKey a0) -> IMP::Int
12822 get_value(Typed self, FloatsKey a0) -> IMP::Floats
12823 get_value(Typed self, IntsKey a0) -> IMP::Ints
12824 get_value(Typed self, StringKey a0) -> IMP::String
12825 get_value(Typed self, ParticleIndexKey a0) -> Particle
12826 get_value(Typed self, ObjectKey a0) -> Object
12827 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12828 get_value(Typed self, SparseIntKey a0) -> IMP::Int
12829 get_value(Typed self, SparseStringKey a0) -> IMP::String
12830 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12832 return _IMP_core.Typed_get_value(self, *args)
12834 def set_value(self, *args):
12836 set_value(Typed self, FloatKey a0, IMP::Float a1)
12837 set_value(Typed self, IntKey a0, IMP::Int a1)
12838 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12839 set_value(Typed self, IntsKey a0, IMP::Ints a1)
12840 set_value(Typed self, StringKey a0, IMP::String a1)
12841 set_value(Typed self, ParticleIndexKey a0, Particle a1)
12842 set_value(Typed self, ObjectKey a0, Object a1)
12843 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12844 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12845 set_value(Typed self, SparseStringKey a0, IMP::String a1)
12846 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12848 return _IMP_core.Typed_set_value(self, *args)
12850 def remove_attribute(self, *args):
12852 remove_attribute(Typed self, FloatKey a0)
12853 remove_attribute(Typed self, IntKey a0)
12854 remove_attribute(Typed self, FloatsKey a0)
12855 remove_attribute(Typed self, IntsKey a0)
12856 remove_attribute(Typed self, StringKey a0)
12857 remove_attribute(Typed self, ParticleIndexKey a0)
12858 remove_attribute(Typed self, ObjectKey a0)
12859 remove_attribute(Typed self, SparseFloatKey a0)
12860 remove_attribute(Typed self, SparseIntKey a0)
12861 remove_attribute(Typed self, SparseStringKey a0)
12862 remove_attribute(Typed self, SparseParticleIndexKey a0)
12864 return _IMP_core.Typed_remove_attribute(self, *args)
12866 def has_attribute(self, *args):
12868 has_attribute(Typed self, FloatKey a0) -> bool
12869 has_attribute(Typed self, IntKey a0) -> bool
12870 has_attribute(Typed self, FloatsKey a0) -> bool
12871 has_attribute(Typed self, IntsKey a0) -> bool
12872 has_attribute(Typed self, StringKey a0) -> bool
12873 has_attribute(Typed self, ParticleIndexKey a0) -> bool
12874 has_attribute(Typed self, ObjectKey a0) -> bool
12875 has_attribute(Typed self, SparseFloatKey a0) -> bool
12876 has_attribute(Typed self, SparseIntKey a0) -> bool
12877 has_attribute(Typed self, SparseStringKey a0) -> bool
12878 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
12880 return _IMP_core.Typed_has_attribute(self, *args)
12882 def get_derivative(self, a0):
12883 r"""get_derivative(Typed self, FloatKey a0) -> double"""
12884 return _IMP_core.Typed_get_derivative(self, a0)
12886 def get_name(self):
12887 r"""get_name(Typed self) -> std::string"""
12888 return _IMP_core.Typed_get_name(self)
12890 def clear_caches(self):
12891 r"""clear_caches(Typed self)"""
12892 return _IMP_core.Typed_clear_caches(self)
12894 def set_name(self, a0):
12895 r"""set_name(Typed self, std::string a0)"""
12896 return _IMP_core.Typed_set_name(self, a0)
12899 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
12900 return _IMP_core.Typed_set_check_level(self, a0)
12902 def add_to_derivative(self, a0, a1, a2):
12903 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12904 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
12906 def set_is_optimized(self, a0, a1):
12907 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
12908 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
12910 def get_is_optimized(self, a0):
12911 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
12912 return _IMP_core.Typed_get_is_optimized(self, a0)
12915 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
12916 return _IMP_core.Typed_get_check_level(self)
12918 def __eq__(self, *args):
12920 __eq__(Typed self, Typed o) -> bool
12921 __eq__(Typed self, Particle d) -> bool
12923 return _IMP_core.Typed___eq__(self, *args)
12925 def __ne__(self, *args):
12927 __ne__(Typed self, Typed o) -> bool
12928 __ne__(Typed self, Particle d) -> bool
12930 return _IMP_core.Typed___ne__(self, *args)
12932 def __le__(self, *args):
12934 __le__(Typed self, Typed o) -> bool
12935 __le__(Typed self, Particle d) -> bool
12937 return _IMP_core.Typed___le__(self, *args)
12939 def __lt__(self, *args):
12941 __lt__(Typed self, Typed o) -> bool
12942 __lt__(Typed self, Particle d) -> bool
12944 return _IMP_core.Typed___lt__(self, *args)
12946 def __ge__(self, *args):
12948 __ge__(Typed self, Typed o) -> bool
12949 __ge__(Typed self, Particle d) -> bool
12951 return _IMP_core.Typed___ge__(self, *args)
12953 def __gt__(self, *args):
12955 __gt__(Typed self, Typed o) -> bool
12956 __gt__(Typed self, Particle d) -> bool
12958 return _IMP_core.Typed___gt__(self, *args)
12960 def __hash__(self):
12961 r"""__hash__(Typed self) -> std::size_t"""
12962 return _IMP_core.Typed___hash__(self)
12965 r"""__str__(Typed self) -> std::string"""
12966 return _IMP_core.Typed___str__(self)
12968 def __repr__(self):
12969 r"""__repr__(Typed self) -> std::string"""
12970 return _IMP_core.Typed___repr__(self)
12972 def _get_as_binary(self):
12973 r"""_get_as_binary(Typed self) -> PyObject *"""
12974 return _IMP_core.Typed__get_as_binary(self)
12976 def _set_from_binary(self, p):
12977 r"""_set_from_binary(Typed self, PyObject * p)"""
12978 return _IMP_core.Typed__set_from_binary(self, p)
12980 def __getstate__(self):
12981 p = self._get_as_binary()
12982 if len(self.__dict__) > 1:
12983 d = self.__dict__.copy()
12988 def __setstate__(self, p):
12989 if not hasattr(self,
'this'):
12991 if isinstance(p, tuple):
12993 self.__dict__.update(d)
12994 return self._set_from_binary(p)
12996 __swig_destroy__ = _IMP_core.delete_Typed
12999 _IMP_core.Typed_swigregister(Typed)
13001 def __lshift__(*args):
13003 __lshift__(_ostream out, XYZ n) -> _ostream
13004 __lshift__(_ostream out, XYZR n) -> _ostream
13005 __lshift__(_ostream out, Direction n) -> _ostream
13006 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13007 __lshift__(_ostream out, Surface n) -> _ostream
13008 __lshift__(_ostream out, Centroid n) -> _ostream
13009 __lshift__(_ostream out, Cover n) -> _ostream
13010 __lshift__(_ostream out, Reference n) -> _ostream
13011 __lshift__(_ostream out, RigidMember n) -> _ostream
13012 __lshift__(_ostream out, RigidBody n) -> _ostream
13013 __lshift__(_ostream out, Gaussian n) -> _ostream
13014 __lshift__(_ostream out, Typed n) -> _ostream
13016 return _IMP_core.__lshift__(*args)
13018 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13020 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13022 def __init__(self, rs, out):
13023 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13024 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13026 def get_version_info(self):
13027 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13028 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13029 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13032 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13033 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13035 def __repr__(self):
13036 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13037 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13041 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13045 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13048 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13049 return _IMP_core.assign_blame(rs, ps, attribute)
13052 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13053 return _IMP_core.create_blame_geometries(*args)
13055 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13057 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13059 def __init__(self, m, q1, q2):
13060 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13061 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13063 def add_term(self, term):
13064 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13065 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13067 def do_get_inputs(self):
13068 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13069 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13071 def get_version_info(self):
13072 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13073 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13074 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13077 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13078 return _IMP_core.MultipleBinormalRestraint___str__(self)
13080 def __repr__(self):
13081 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13082 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13086 return _object_cast_to_MultipleBinormalRestraint(o)
13090 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13091 class BinormalTerm(object):
13092 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13094 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13096 def __init__(self):
13097 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13098 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13100 def set_correlation(self, correlation):
13101 r"""set_correlation(BinormalTerm self, double correlation)"""
13102 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13104 def set_weight(self, weight):
13105 r"""set_weight(BinormalTerm self, double weight)"""
13106 return _IMP_core.BinormalTerm_set_weight(self, weight)
13108 def set_means(self, means):
13109 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13110 return _IMP_core.BinormalTerm_set_means(self, means)
13112 def set_standard_deviations(self, stdevs):
13113 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13114 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13116 def show(self, *args):
13117 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13118 return _IMP_core.BinormalTerm_show(self, *args)
13121 r"""__str__(BinormalTerm self) -> std::string"""
13122 return _IMP_core.BinormalTerm___str__(self)
13124 def __repr__(self):
13125 r"""__repr__(BinormalTerm self) -> std::string"""
13126 return _IMP_core.BinormalTerm___repr__(self)
13128 def _get_as_binary(self):
13129 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13130 return _IMP_core.BinormalTerm__get_as_binary(self)
13132 def _set_from_binary(self, p):
13133 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13134 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13136 def __getstate__(self):
13137 p = self._get_as_binary()
13138 if len(self.__dict__) > 1:
13139 d = self.__dict__.copy()
13144 def __setstate__(self, p):
13145 if not hasattr(self,
'this'):
13147 if isinstance(p, tuple):
13149 self.__dict__.update(d)
13150 return self._set_from_binary(p)
13152 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13155 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13157 r"""Proxy of C++ IMP::core::Provenance class."""
13159 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13161 def get_previous(self):
13162 r"""get_previous(Provenance self) -> Provenance"""
13163 return _IMP_core.Provenance_get_previous(self)
13165 def set_previous(self, p):
13166 r"""set_previous(Provenance self, Provenance p)"""
13167 return _IMP_core.Provenance_set_previous(self, p)
13169 def __init__(self, *args):
13171 __init__(Provenance self) -> Provenance
13172 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13173 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13175 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13178 def get_is_setup(*args):
13180 get_is_setup(Model m, ParticleIndex pi) -> bool
13181 get_is_setup(_ParticleAdaptor p) -> bool
13183 return _IMP_core.Provenance_get_is_setup(*args)
13185 def show(self, *args):
13186 r"""show(Provenance self, _ostream out=std::cout)"""
13187 return _IMP_core.Provenance_show(self, *args)
13190 def setup_particle(*args):
13192 setup_particle(Model m, ParticleIndex pi) -> Provenance
13193 setup_particle(_ParticleAdaptor pa) -> Provenance
13195 return _IMP_core.Provenance_setup_particle(*args)
13197 def add_attribute(self, *args):
13199 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13200 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13201 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13202 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13203 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13204 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13205 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13206 add_attribute(Provenance self, ObjectKey a0, Object a1)
13207 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13208 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13209 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13210 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13212 return _IMP_core.Provenance_add_attribute(self, *args)
13214 def get_value(self, *args):
13216 get_value(Provenance self, FloatKey a0) -> IMP::Float
13217 get_value(Provenance self, IntKey a0) -> IMP::Int
13218 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13219 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13220 get_value(Provenance self, StringKey a0) -> IMP::String
13221 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13222 get_value(Provenance self, ObjectKey a0) -> Object
13223 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13224 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13225 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13226 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13228 return _IMP_core.Provenance_get_value(self, *args)
13230 def set_value(self, *args):
13232 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13233 set_value(Provenance self, IntKey a0, IMP::Int a1)
13234 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13235 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13236 set_value(Provenance self, StringKey a0, IMP::String a1)
13237 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13238 set_value(Provenance self, ObjectKey a0, Object a1)
13239 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13240 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13241 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13242 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13244 return _IMP_core.Provenance_set_value(self, *args)
13246 def remove_attribute(self, *args):
13248 remove_attribute(Provenance self, FloatKey a0)
13249 remove_attribute(Provenance self, IntKey a0)
13250 remove_attribute(Provenance self, FloatsKey a0)
13251 remove_attribute(Provenance self, IntsKey a0)
13252 remove_attribute(Provenance self, StringKey a0)
13253 remove_attribute(Provenance self, ParticleIndexKey a0)
13254 remove_attribute(Provenance self, ObjectKey a0)
13255 remove_attribute(Provenance self, SparseFloatKey a0)
13256 remove_attribute(Provenance self, SparseIntKey a0)
13257 remove_attribute(Provenance self, SparseStringKey a0)
13258 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13260 return _IMP_core.Provenance_remove_attribute(self, *args)
13262 def has_attribute(self, *args):
13264 has_attribute(Provenance self, FloatKey a0) -> bool
13265 has_attribute(Provenance self, IntKey a0) -> bool
13266 has_attribute(Provenance self, FloatsKey a0) -> bool
13267 has_attribute(Provenance self, IntsKey a0) -> bool
13268 has_attribute(Provenance self, StringKey a0) -> bool
13269 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13270 has_attribute(Provenance self, ObjectKey a0) -> bool
13271 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13272 has_attribute(Provenance self, SparseIntKey a0) -> bool
13273 has_attribute(Provenance self, SparseStringKey a0) -> bool
13274 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13276 return _IMP_core.Provenance_has_attribute(self, *args)
13278 def get_derivative(self, a0):
13279 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13280 return _IMP_core.Provenance_get_derivative(self, a0)
13282 def get_name(self):
13283 r"""get_name(Provenance self) -> std::string"""
13284 return _IMP_core.Provenance_get_name(self)
13286 def clear_caches(self):
13287 r"""clear_caches(Provenance self)"""
13288 return _IMP_core.Provenance_clear_caches(self)
13290 def set_name(self, a0):
13291 r"""set_name(Provenance self, std::string a0)"""
13292 return _IMP_core.Provenance_set_name(self, a0)
13295 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13296 return _IMP_core.Provenance_set_check_level(self, a0)
13298 def add_to_derivative(self, a0, a1, a2):
13299 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13300 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13302 def set_is_optimized(self, a0, a1):
13303 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13304 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13306 def get_is_optimized(self, a0):
13307 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13308 return _IMP_core.Provenance_get_is_optimized(self, a0)
13311 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13312 return _IMP_core.Provenance_get_check_level(self)
13314 def __eq__(self, *args):
13316 __eq__(Provenance self, Provenance o) -> bool
13317 __eq__(Provenance self, Particle d) -> bool
13319 return _IMP_core.Provenance___eq__(self, *args)
13321 def __ne__(self, *args):
13323 __ne__(Provenance self, Provenance o) -> bool
13324 __ne__(Provenance self, Particle d) -> bool
13326 return _IMP_core.Provenance___ne__(self, *args)
13328 def __le__(self, *args):
13330 __le__(Provenance self, Provenance o) -> bool
13331 __le__(Provenance self, Particle d) -> bool
13333 return _IMP_core.Provenance___le__(self, *args)
13335 def __lt__(self, *args):
13337 __lt__(Provenance self, Provenance o) -> bool
13338 __lt__(Provenance self, Particle d) -> bool
13340 return _IMP_core.Provenance___lt__(self, *args)
13342 def __ge__(self, *args):
13344 __ge__(Provenance self, Provenance o) -> bool
13345 __ge__(Provenance self, Particle d) -> bool
13347 return _IMP_core.Provenance___ge__(self, *args)
13349 def __gt__(self, *args):
13351 __gt__(Provenance self, Provenance o) -> bool
13352 __gt__(Provenance self, Particle d) -> bool
13354 return _IMP_core.Provenance___gt__(self, *args)
13356 def __hash__(self):
13357 r"""__hash__(Provenance self) -> std::size_t"""
13358 return _IMP_core.Provenance___hash__(self)
13361 r"""__str__(Provenance self) -> std::string"""
13362 return _IMP_core.Provenance___str__(self)
13364 def __repr__(self):
13365 r"""__repr__(Provenance self) -> std::string"""
13366 return _IMP_core.Provenance___repr__(self)
13368 def _get_as_binary(self):
13369 r"""_get_as_binary(Provenance self) -> PyObject *"""
13370 return _IMP_core.Provenance__get_as_binary(self)
13372 def _set_from_binary(self, p):
13373 r"""_set_from_binary(Provenance self, PyObject * p)"""
13374 return _IMP_core.Provenance__set_from_binary(self, p)
13376 def __getstate__(self):
13377 p = self._get_as_binary()
13378 if len(self.__dict__) > 1:
13379 d = self.__dict__.copy()
13384 def __setstate__(self, p):
13385 if not hasattr(self,
'this'):
13387 if isinstance(p, tuple):
13389 self.__dict__.update(d)
13390 return self._set_from_binary(p)
13392 __swig_destroy__ = _IMP_core.delete_Provenance
13395 _IMP_core.Provenance_swigregister(Provenance)
13396 class StructureProvenance(Provenance):
13397 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13399 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13401 def set_filename(self, filename):
13402 r"""set_filename(StructureProvenance self, std::string filename)"""
13403 return _IMP_core.StructureProvenance_set_filename(self, filename)
13405 def get_filename(self):
13406 r"""get_filename(StructureProvenance self) -> std::string"""
13407 return _IMP_core.StructureProvenance_get_filename(self)
13409 def set_chain_id(self, chain_id):
13410 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13411 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13414 r"""get_chain_id(StructureProvenance self) -> std::string"""
13415 return _IMP_core.StructureProvenance_get_chain_id(self)
13417 def set_residue_offset(self, residue_offset):
13418 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13419 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13421 def get_residue_offset(self):
13422 r"""get_residue_offset(StructureProvenance self) -> int"""
13423 return _IMP_core.StructureProvenance_get_residue_offset(self)
13425 def __init__(self, *args):
13427 __init__(StructureProvenance self) -> StructureProvenance
13428 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13429 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13431 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13434 def get_is_setup(*args):
13436 get_is_setup(Model m, ParticleIndex pi) -> bool
13437 get_is_setup(_ParticleAdaptor p) -> bool
13439 return _IMP_core.StructureProvenance_get_is_setup(*args)
13441 def show(self, *args):
13442 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13443 return _IMP_core.StructureProvenance_show(self, *args)
13446 def setup_particle(*args):
13448 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13449 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13450 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13451 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13452 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13453 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13455 return _IMP_core.StructureProvenance_setup_particle(*args)
13457 def add_attribute(self, *args):
13459 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13460 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13461 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13462 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13463 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13464 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13465 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13466 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13467 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13468 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13469 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13470 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13472 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13474 def get_value(self, *args):
13476 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13477 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13478 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13479 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13480 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13481 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13482 get_value(StructureProvenance self, ObjectKey a0) -> Object
13483 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13484 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13485 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13486 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13488 return _IMP_core.StructureProvenance_get_value(self, *args)
13490 def set_value(self, *args):
13492 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13493 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13494 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13495 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13496 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13497 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13498 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13499 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13500 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13501 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13502 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13504 return _IMP_core.StructureProvenance_set_value(self, *args)
13506 def remove_attribute(self, *args):
13508 remove_attribute(StructureProvenance self, FloatKey a0)
13509 remove_attribute(StructureProvenance self, IntKey a0)
13510 remove_attribute(StructureProvenance self, FloatsKey a0)
13511 remove_attribute(StructureProvenance self, IntsKey a0)
13512 remove_attribute(StructureProvenance self, StringKey a0)
13513 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13514 remove_attribute(StructureProvenance self, ObjectKey a0)
13515 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13516 remove_attribute(StructureProvenance self, SparseIntKey a0)
13517 remove_attribute(StructureProvenance self, SparseStringKey a0)
13518 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13520 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13522 def has_attribute(self, *args):
13524 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13525 has_attribute(StructureProvenance self, IntKey a0) -> bool
13526 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13527 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13528 has_attribute(StructureProvenance self, StringKey a0) -> bool
13529 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13530 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13531 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13532 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13533 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13534 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13536 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13538 def get_derivative(self, a0):
13539 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13540 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13542 def get_name(self):
13543 r"""get_name(StructureProvenance self) -> std::string"""
13544 return _IMP_core.StructureProvenance_get_name(self)
13546 def clear_caches(self):
13547 r"""clear_caches(StructureProvenance self)"""
13548 return _IMP_core.StructureProvenance_clear_caches(self)
13550 def set_name(self, a0):
13551 r"""set_name(StructureProvenance self, std::string a0)"""
13552 return _IMP_core.StructureProvenance_set_name(self, a0)
13555 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13556 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13558 def add_to_derivative(self, a0, a1, a2):
13559 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13560 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13562 def set_is_optimized(self, a0, a1):
13563 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13564 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13566 def get_is_optimized(self, a0):
13567 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13568 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13571 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13572 return _IMP_core.StructureProvenance_get_check_level(self)
13574 def __eq__(self, *args):
13576 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13577 __eq__(StructureProvenance self, Particle d) -> bool
13579 return _IMP_core.StructureProvenance___eq__(self, *args)
13581 def __ne__(self, *args):
13583 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13584 __ne__(StructureProvenance self, Particle d) -> bool
13586 return _IMP_core.StructureProvenance___ne__(self, *args)
13588 def __le__(self, *args):
13590 __le__(StructureProvenance self, StructureProvenance o) -> bool
13591 __le__(StructureProvenance self, Particle d) -> bool
13593 return _IMP_core.StructureProvenance___le__(self, *args)
13595 def __lt__(self, *args):
13597 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13598 __lt__(StructureProvenance self, Particle d) -> bool
13600 return _IMP_core.StructureProvenance___lt__(self, *args)
13602 def __ge__(self, *args):
13604 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13605 __ge__(StructureProvenance self, Particle d) -> bool
13607 return _IMP_core.StructureProvenance___ge__(self, *args)
13609 def __gt__(self, *args):
13611 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13612 __gt__(StructureProvenance self, Particle d) -> bool
13614 return _IMP_core.StructureProvenance___gt__(self, *args)
13616 def __hash__(self):
13617 r"""__hash__(StructureProvenance self) -> std::size_t"""
13618 return _IMP_core.StructureProvenance___hash__(self)
13621 r"""__str__(StructureProvenance self) -> std::string"""
13622 return _IMP_core.StructureProvenance___str__(self)
13624 def __repr__(self):
13625 r"""__repr__(StructureProvenance self) -> std::string"""
13626 return _IMP_core.StructureProvenance___repr__(self)
13628 def _get_as_binary(self):
13629 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13630 return _IMP_core.StructureProvenance__get_as_binary(self)
13632 def _set_from_binary(self, p):
13633 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13634 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13636 def __getstate__(self):
13637 p = self._get_as_binary()
13638 if len(self.__dict__) > 1:
13639 d = self.__dict__.copy()
13644 def __setstate__(self, p):
13645 if not hasattr(self,
'this'):
13647 if isinstance(p, tuple):
13649 self.__dict__.update(d)
13650 return self._set_from_binary(p)
13652 __swig_destroy__ = _IMP_core.delete_StructureProvenance
13655 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13656 class SampleProvenance(Provenance):
13657 r"""Proxy of C++ IMP::core::SampleProvenance class."""
13659 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13661 def set_method(self, method):
13662 r"""set_method(SampleProvenance self, std::string method)"""
13663 return _IMP_core.SampleProvenance_set_method(self, method)
13665 def get_method(self):
13666 r"""get_method(SampleProvenance self) -> std::string"""
13667 return _IMP_core.SampleProvenance_get_method(self)
13669 def set_number_of_frames(self, frames):
13670 r"""set_number_of_frames(SampleProvenance self, int frames)"""
13671 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13674 r"""get_number_of_frames(SampleProvenance self) -> int"""
13675 return _IMP_core.SampleProvenance_get_number_of_frames(self)
13677 def set_number_of_iterations(self, iterations):
13678 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13679 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13681 def get_number_of_iterations(self):
13682 r"""get_number_of_iterations(SampleProvenance self) -> int"""
13683 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13685 def set_number_of_replicas(self, replicas):
13686 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13687 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13689 def get_number_of_replicas(self):
13690 r"""get_number_of_replicas(SampleProvenance self) -> int"""
13691 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13693 def __init__(self, *args):
13695 __init__(SampleProvenance self) -> SampleProvenance
13696 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13697 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13699 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13702 def get_is_setup(*args):
13704 get_is_setup(Model m, ParticleIndex pi) -> bool
13705 get_is_setup(_ParticleAdaptor p) -> bool
13707 return _IMP_core.SampleProvenance_get_is_setup(*args)
13709 def show(self, *args):
13710 r"""show(SampleProvenance self, _ostream out=std::cout)"""
13711 return _IMP_core.SampleProvenance_show(self, *args)
13714 def setup_particle(*args):
13716 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13717 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13718 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13719 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13720 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13721 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13723 return _IMP_core.SampleProvenance_setup_particle(*args)
13725 def add_attribute(self, *args):
13727 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13728 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13729 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13730 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13731 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13732 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13733 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13734 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13735 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13736 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13737 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13738 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13740 return _IMP_core.SampleProvenance_add_attribute(self, *args)
13742 def get_value(self, *args):
13744 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13745 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13746 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13747 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13748 get_value(SampleProvenance self, StringKey a0) -> IMP::String
13749 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13750 get_value(SampleProvenance self, ObjectKey a0) -> Object
13751 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13752 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13753 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13754 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13756 return _IMP_core.SampleProvenance_get_value(self, *args)
13758 def set_value(self, *args):
13760 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13761 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13762 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13763 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13764 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13765 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13766 set_value(SampleProvenance self, ObjectKey a0, Object a1)
13767 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13768 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13769 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13770 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13772 return _IMP_core.SampleProvenance_set_value(self, *args)
13774 def remove_attribute(self, *args):
13776 remove_attribute(SampleProvenance self, FloatKey a0)
13777 remove_attribute(SampleProvenance self, IntKey a0)
13778 remove_attribute(SampleProvenance self, FloatsKey a0)
13779 remove_attribute(SampleProvenance self, IntsKey a0)
13780 remove_attribute(SampleProvenance self, StringKey a0)
13781 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13782 remove_attribute(SampleProvenance self, ObjectKey a0)
13783 remove_attribute(SampleProvenance self, SparseFloatKey a0)
13784 remove_attribute(SampleProvenance self, SparseIntKey a0)
13785 remove_attribute(SampleProvenance self, SparseStringKey a0)
13786 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13788 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13790 def has_attribute(self, *args):
13792 has_attribute(SampleProvenance self, FloatKey a0) -> bool
13793 has_attribute(SampleProvenance self, IntKey a0) -> bool
13794 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13795 has_attribute(SampleProvenance self, IntsKey a0) -> bool
13796 has_attribute(SampleProvenance self, StringKey a0) -> bool
13797 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13798 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13799 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13800 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13801 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13802 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13804 return _IMP_core.SampleProvenance_has_attribute(self, *args)
13806 def get_derivative(self, a0):
13807 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13808 return _IMP_core.SampleProvenance_get_derivative(self, a0)
13810 def get_name(self):
13811 r"""get_name(SampleProvenance self) -> std::string"""
13812 return _IMP_core.SampleProvenance_get_name(self)
13814 def clear_caches(self):
13815 r"""clear_caches(SampleProvenance self)"""
13816 return _IMP_core.SampleProvenance_clear_caches(self)
13818 def set_name(self, a0):
13819 r"""set_name(SampleProvenance self, std::string a0)"""
13820 return _IMP_core.SampleProvenance_set_name(self, a0)
13823 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13824 return _IMP_core.SampleProvenance_set_check_level(self, a0)
13826 def add_to_derivative(self, a0, a1, a2):
13827 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13828 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13830 def set_is_optimized(self, a0, a1):
13831 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13832 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13834 def get_is_optimized(self, a0):
13835 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13836 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13839 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13840 return _IMP_core.SampleProvenance_get_check_level(self)
13842 def __eq__(self, *args):
13844 __eq__(SampleProvenance self, SampleProvenance o) -> bool
13845 __eq__(SampleProvenance self, Particle d) -> bool
13847 return _IMP_core.SampleProvenance___eq__(self, *args)
13849 def __ne__(self, *args):
13851 __ne__(SampleProvenance self, SampleProvenance o) -> bool
13852 __ne__(SampleProvenance self, Particle d) -> bool
13854 return _IMP_core.SampleProvenance___ne__(self, *args)
13856 def __le__(self, *args):
13858 __le__(SampleProvenance self, SampleProvenance o) -> bool
13859 __le__(SampleProvenance self, Particle d) -> bool
13861 return _IMP_core.SampleProvenance___le__(self, *args)
13863 def __lt__(self, *args):
13865 __lt__(SampleProvenance self, SampleProvenance o) -> bool
13866 __lt__(SampleProvenance self, Particle d) -> bool
13868 return _IMP_core.SampleProvenance___lt__(self, *args)
13870 def __ge__(self, *args):
13872 __ge__(SampleProvenance self, SampleProvenance o) -> bool
13873 __ge__(SampleProvenance self, Particle d) -> bool
13875 return _IMP_core.SampleProvenance___ge__(self, *args)
13877 def __gt__(self, *args):
13879 __gt__(SampleProvenance self, SampleProvenance o) -> bool
13880 __gt__(SampleProvenance self, Particle d) -> bool
13882 return _IMP_core.SampleProvenance___gt__(self, *args)
13884 def __hash__(self):
13885 r"""__hash__(SampleProvenance self) -> std::size_t"""
13886 return _IMP_core.SampleProvenance___hash__(self)
13889 r"""__str__(SampleProvenance self) -> std::string"""
13890 return _IMP_core.SampleProvenance___str__(self)
13892 def __repr__(self):
13893 r"""__repr__(SampleProvenance self) -> std::string"""
13894 return _IMP_core.SampleProvenance___repr__(self)
13896 def _get_as_binary(self):
13897 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
13898 return _IMP_core.SampleProvenance__get_as_binary(self)
13900 def _set_from_binary(self, p):
13901 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
13902 return _IMP_core.SampleProvenance__set_from_binary(self, p)
13904 def __getstate__(self):
13905 p = self._get_as_binary()
13906 if len(self.__dict__) > 1:
13907 d = self.__dict__.copy()
13912 def __setstate__(self, p):
13913 if not hasattr(self,
'this'):
13915 if isinstance(p, tuple):
13917 self.__dict__.update(d)
13918 return self._set_from_binary(p)
13920 __swig_destroy__ = _IMP_core.delete_SampleProvenance
13923 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
13924 class CombineProvenance(Provenance):
13925 r"""Proxy of C++ IMP::core::CombineProvenance class."""
13927 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13929 def set_number_of_frames(self, frames):
13930 r"""set_number_of_frames(CombineProvenance self, int frames)"""
13931 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
13934 r"""get_number_of_frames(CombineProvenance self) -> int"""
13935 return _IMP_core.CombineProvenance_get_number_of_frames(self)
13937 def set_number_of_runs(self, runs):
13938 r"""set_number_of_runs(CombineProvenance self, int runs)"""
13939 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
13941 def get_number_of_runs(self):
13942 r"""get_number_of_runs(CombineProvenance self) -> int"""
13943 return _IMP_core.CombineProvenance_get_number_of_runs(self)
13945 def __init__(self, *args):
13947 __init__(CombineProvenance self) -> CombineProvenance
13948 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
13949 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
13951 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
13954 def get_is_setup(*args):
13956 get_is_setup(Model m, ParticleIndex pi) -> bool
13957 get_is_setup(_ParticleAdaptor p) -> bool
13959 return _IMP_core.CombineProvenance_get_is_setup(*args)
13961 def show(self, *args):
13962 r"""show(CombineProvenance self, _ostream out=std::cout)"""
13963 return _IMP_core.CombineProvenance_show(self, *args)
13966 def setup_particle(*args):
13968 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
13969 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
13970 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
13971 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
13973 return _IMP_core.CombineProvenance_setup_particle(*args)
13975 def add_attribute(self, *args):
13977 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
13978 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
13979 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
13980 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13981 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13982 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
13983 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13984 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
13985 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
13986 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
13987 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
13988 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13990 return _IMP_core.CombineProvenance_add_attribute(self, *args)
13992 def get_value(self, *args):
13994 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
13995 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
13996 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
13997 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
13998 get_value(CombineProvenance self, StringKey a0) -> IMP::String
13999 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14000 get_value(CombineProvenance self, ObjectKey a0) -> Object
14001 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14002 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14003 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14004 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14006 return _IMP_core.CombineProvenance_get_value(self, *args)
14008 def set_value(self, *args):
14010 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14011 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14012 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14013 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14014 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14015 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14016 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14017 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14018 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14019 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14020 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14022 return _IMP_core.CombineProvenance_set_value(self, *args)
14024 def remove_attribute(self, *args):
14026 remove_attribute(CombineProvenance self, FloatKey a0)
14027 remove_attribute(CombineProvenance self, IntKey a0)
14028 remove_attribute(CombineProvenance self, FloatsKey a0)
14029 remove_attribute(CombineProvenance self, IntsKey a0)
14030 remove_attribute(CombineProvenance self, StringKey a0)
14031 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14032 remove_attribute(CombineProvenance self, ObjectKey a0)
14033 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14034 remove_attribute(CombineProvenance self, SparseIntKey a0)
14035 remove_attribute(CombineProvenance self, SparseStringKey a0)
14036 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14038 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14040 def has_attribute(self, *args):
14042 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14043 has_attribute(CombineProvenance self, IntKey a0) -> bool
14044 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14045 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14046 has_attribute(CombineProvenance self, StringKey a0) -> bool
14047 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14048 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14049 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14050 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14051 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14052 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14054 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14056 def get_derivative(self, a0):
14057 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14058 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14060 def get_name(self):
14061 r"""get_name(CombineProvenance self) -> std::string"""
14062 return _IMP_core.CombineProvenance_get_name(self)
14064 def clear_caches(self):
14065 r"""clear_caches(CombineProvenance self)"""
14066 return _IMP_core.CombineProvenance_clear_caches(self)
14068 def set_name(self, a0):
14069 r"""set_name(CombineProvenance self, std::string a0)"""
14070 return _IMP_core.CombineProvenance_set_name(self, a0)
14073 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14074 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14076 def add_to_derivative(self, a0, a1, a2):
14077 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14078 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14080 def set_is_optimized(self, a0, a1):
14081 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14082 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14084 def get_is_optimized(self, a0):
14085 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14086 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14089 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14090 return _IMP_core.CombineProvenance_get_check_level(self)
14092 def __eq__(self, *args):
14094 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14095 __eq__(CombineProvenance self, Particle d) -> bool
14097 return _IMP_core.CombineProvenance___eq__(self, *args)
14099 def __ne__(self, *args):
14101 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14102 __ne__(CombineProvenance self, Particle d) -> bool
14104 return _IMP_core.CombineProvenance___ne__(self, *args)
14106 def __le__(self, *args):
14108 __le__(CombineProvenance self, CombineProvenance o) -> bool
14109 __le__(CombineProvenance self, Particle d) -> bool
14111 return _IMP_core.CombineProvenance___le__(self, *args)
14113 def __lt__(self, *args):
14115 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14116 __lt__(CombineProvenance self, Particle d) -> bool
14118 return _IMP_core.CombineProvenance___lt__(self, *args)
14120 def __ge__(self, *args):
14122 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14123 __ge__(CombineProvenance self, Particle d) -> bool
14125 return _IMP_core.CombineProvenance___ge__(self, *args)
14127 def __gt__(self, *args):
14129 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14130 __gt__(CombineProvenance self, Particle d) -> bool
14132 return _IMP_core.CombineProvenance___gt__(self, *args)
14134 def __hash__(self):
14135 r"""__hash__(CombineProvenance self) -> std::size_t"""
14136 return _IMP_core.CombineProvenance___hash__(self)
14139 r"""__str__(CombineProvenance self) -> std::string"""
14140 return _IMP_core.CombineProvenance___str__(self)
14142 def __repr__(self):
14143 r"""__repr__(CombineProvenance self) -> std::string"""
14144 return _IMP_core.CombineProvenance___repr__(self)
14146 def _get_as_binary(self):
14147 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14148 return _IMP_core.CombineProvenance__get_as_binary(self)
14150 def _set_from_binary(self, p):
14151 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14152 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14154 def __getstate__(self):
14155 p = self._get_as_binary()
14156 if len(self.__dict__) > 1:
14157 d = self.__dict__.copy()
14162 def __setstate__(self, p):
14163 if not hasattr(self,
'this'):
14165 if isinstance(p, tuple):
14167 self.__dict__.update(d)
14168 return self._set_from_binary(p)
14170 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14173 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14174 class FilterProvenance(Provenance):
14175 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14177 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14179 def set_method(self, method):
14180 r"""set_method(FilterProvenance self, std::string method)"""
14181 return _IMP_core.FilterProvenance_set_method(self, method)
14183 def get_method(self):
14184 r"""get_method(FilterProvenance self) -> std::string"""
14185 return _IMP_core.FilterProvenance_get_method(self)
14187 def set_number_of_frames(self, frames):
14188 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14189 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14192 r"""get_number_of_frames(FilterProvenance self) -> int"""
14193 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14195 def set_threshold(self, threshold):
14196 r"""set_threshold(FilterProvenance self, double threshold)"""
14197 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14199 def get_threshold(self):
14200 r"""get_threshold(FilterProvenance self) -> double"""
14201 return _IMP_core.FilterProvenance_get_threshold(self)
14203 def __init__(self, *args):
14205 __init__(FilterProvenance self) -> FilterProvenance
14206 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14207 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14209 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14212 def get_is_setup(*args):
14214 get_is_setup(Model m, ParticleIndex pi) -> bool
14215 get_is_setup(_ParticleAdaptor p) -> bool
14217 return _IMP_core.FilterProvenance_get_is_setup(*args)
14219 def show(self, *args):
14220 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14221 return _IMP_core.FilterProvenance_show(self, *args)
14224 def setup_particle(*args):
14226 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14227 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14228 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14229 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14231 return _IMP_core.FilterProvenance_setup_particle(*args)
14233 def add_attribute(self, *args):
14235 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14236 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14237 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14238 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14239 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14240 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14241 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14242 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14243 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14244 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14245 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14246 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14248 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14250 def get_value(self, *args):
14252 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14253 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14254 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14255 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14256 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14257 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14258 get_value(FilterProvenance self, ObjectKey a0) -> Object
14259 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14260 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14261 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14262 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14264 return _IMP_core.FilterProvenance_get_value(self, *args)
14266 def set_value(self, *args):
14268 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14269 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14270 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14271 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14272 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14273 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14274 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14275 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14276 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14277 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14278 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14280 return _IMP_core.FilterProvenance_set_value(self, *args)
14282 def remove_attribute(self, *args):
14284 remove_attribute(FilterProvenance self, FloatKey a0)
14285 remove_attribute(FilterProvenance self, IntKey a0)
14286 remove_attribute(FilterProvenance self, FloatsKey a0)
14287 remove_attribute(FilterProvenance self, IntsKey a0)
14288 remove_attribute(FilterProvenance self, StringKey a0)
14289 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14290 remove_attribute(FilterProvenance self, ObjectKey a0)
14291 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14292 remove_attribute(FilterProvenance self, SparseIntKey a0)
14293 remove_attribute(FilterProvenance self, SparseStringKey a0)
14294 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14296 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14298 def has_attribute(self, *args):
14300 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14301 has_attribute(FilterProvenance self, IntKey a0) -> bool
14302 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14303 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14304 has_attribute(FilterProvenance self, StringKey a0) -> bool
14305 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14306 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14307 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14308 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14309 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14310 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14312 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14314 def get_derivative(self, a0):
14315 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14316 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14318 def get_name(self):
14319 r"""get_name(FilterProvenance self) -> std::string"""
14320 return _IMP_core.FilterProvenance_get_name(self)
14322 def clear_caches(self):
14323 r"""clear_caches(FilterProvenance self)"""
14324 return _IMP_core.FilterProvenance_clear_caches(self)
14326 def set_name(self, a0):
14327 r"""set_name(FilterProvenance self, std::string a0)"""
14328 return _IMP_core.FilterProvenance_set_name(self, a0)
14331 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14332 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14334 def add_to_derivative(self, a0, a1, a2):
14335 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14336 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14338 def set_is_optimized(self, a0, a1):
14339 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14340 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14342 def get_is_optimized(self, a0):
14343 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14344 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14347 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14348 return _IMP_core.FilterProvenance_get_check_level(self)
14350 def __eq__(self, *args):
14352 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14353 __eq__(FilterProvenance self, Particle d) -> bool
14355 return _IMP_core.FilterProvenance___eq__(self, *args)
14357 def __ne__(self, *args):
14359 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14360 __ne__(FilterProvenance self, Particle d) -> bool
14362 return _IMP_core.FilterProvenance___ne__(self, *args)
14364 def __le__(self, *args):
14366 __le__(FilterProvenance self, FilterProvenance o) -> bool
14367 __le__(FilterProvenance self, Particle d) -> bool
14369 return _IMP_core.FilterProvenance___le__(self, *args)
14371 def __lt__(self, *args):
14373 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14374 __lt__(FilterProvenance self, Particle d) -> bool
14376 return _IMP_core.FilterProvenance___lt__(self, *args)
14378 def __ge__(self, *args):
14380 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14381 __ge__(FilterProvenance self, Particle d) -> bool
14383 return _IMP_core.FilterProvenance___ge__(self, *args)
14385 def __gt__(self, *args):
14387 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14388 __gt__(FilterProvenance self, Particle d) -> bool
14390 return _IMP_core.FilterProvenance___gt__(self, *args)
14392 def __hash__(self):
14393 r"""__hash__(FilterProvenance self) -> std::size_t"""
14394 return _IMP_core.FilterProvenance___hash__(self)
14397 r"""__str__(FilterProvenance self) -> std::string"""
14398 return _IMP_core.FilterProvenance___str__(self)
14400 def __repr__(self):
14401 r"""__repr__(FilterProvenance self) -> std::string"""
14402 return _IMP_core.FilterProvenance___repr__(self)
14404 def _get_as_binary(self):
14405 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14406 return _IMP_core.FilterProvenance__get_as_binary(self)
14408 def _set_from_binary(self, p):
14409 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14410 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14412 def __getstate__(self):
14413 p = self._get_as_binary()
14414 if len(self.__dict__) > 1:
14415 d = self.__dict__.copy()
14420 def __setstate__(self, p):
14421 if not hasattr(self,
'this'):
14423 if isinstance(p, tuple):
14425 self.__dict__.update(d)
14426 return self._set_from_binary(p)
14428 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14431 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14432 class ClusterProvenance(Provenance):
14433 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14435 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14437 def set_number_of_members(self, members):
14438 r"""set_number_of_members(ClusterProvenance self, int members)"""
14439 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14441 def get_number_of_members(self):
14442 r"""get_number_of_members(ClusterProvenance self) -> int"""
14443 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14445 def set_precision(self, precision):
14446 r"""set_precision(ClusterProvenance self, double precision)"""
14447 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14449 def get_precision(self):
14450 r"""get_precision(ClusterProvenance self) -> double"""
14451 return _IMP_core.ClusterProvenance_get_precision(self)
14453 def set_density(self, density):
14454 r"""set_density(ClusterProvenance self, std::string density)"""
14455 return _IMP_core.ClusterProvenance_set_density(self, density)
14457 def get_density(self):
14458 r"""get_density(ClusterProvenance self) -> std::string"""
14459 return _IMP_core.ClusterProvenance_get_density(self)
14461 def __init__(self, *args):
14463 __init__(ClusterProvenance self) -> ClusterProvenance
14464 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14465 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14467 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14470 def get_is_setup(*args):
14472 get_is_setup(Model m, ParticleIndex pi) -> bool
14473 get_is_setup(_ParticleAdaptor p) -> bool
14475 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14477 def show(self, *args):
14478 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14479 return _IMP_core.ClusterProvenance_show(self, *args)
14482 def setup_particle(*args):
14484 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14485 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14486 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14487 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14488 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14489 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14490 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14491 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14493 return _IMP_core.ClusterProvenance_setup_particle(*args)
14495 def add_attribute(self, *args):
14497 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14498 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14499 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14500 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14501 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14502 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14503 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14504 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14505 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14506 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14507 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14508 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14510 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14512 def get_value(self, *args):
14514 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14515 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14516 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14517 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14518 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14519 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14520 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14521 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14522 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14523 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14524 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14526 return _IMP_core.ClusterProvenance_get_value(self, *args)
14528 def set_value(self, *args):
14530 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14531 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14532 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14533 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14534 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14535 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14536 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14537 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14538 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14539 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14540 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14542 return _IMP_core.ClusterProvenance_set_value(self, *args)
14544 def remove_attribute(self, *args):
14546 remove_attribute(ClusterProvenance self, FloatKey a0)
14547 remove_attribute(ClusterProvenance self, IntKey a0)
14548 remove_attribute(ClusterProvenance self, FloatsKey a0)
14549 remove_attribute(ClusterProvenance self, IntsKey a0)
14550 remove_attribute(ClusterProvenance self, StringKey a0)
14551 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14552 remove_attribute(ClusterProvenance self, ObjectKey a0)
14553 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14554 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14555 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14556 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14558 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14560 def has_attribute(self, *args):
14562 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14563 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14564 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14565 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14566 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14567 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14568 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14569 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14570 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14571 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14572 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14574 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14576 def get_derivative(self, a0):
14577 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14578 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14580 def get_name(self):
14581 r"""get_name(ClusterProvenance self) -> std::string"""
14582 return _IMP_core.ClusterProvenance_get_name(self)
14584 def clear_caches(self):
14585 r"""clear_caches(ClusterProvenance self)"""
14586 return _IMP_core.ClusterProvenance_clear_caches(self)
14588 def set_name(self, a0):
14589 r"""set_name(ClusterProvenance self, std::string a0)"""
14590 return _IMP_core.ClusterProvenance_set_name(self, a0)
14593 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14594 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14596 def add_to_derivative(self, a0, a1, a2):
14597 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14598 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14600 def set_is_optimized(self, a0, a1):
14601 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14602 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14604 def get_is_optimized(self, a0):
14605 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14606 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14609 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14610 return _IMP_core.ClusterProvenance_get_check_level(self)
14612 def __eq__(self, *args):
14614 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14615 __eq__(ClusterProvenance self, Particle d) -> bool
14617 return _IMP_core.ClusterProvenance___eq__(self, *args)
14619 def __ne__(self, *args):
14621 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14622 __ne__(ClusterProvenance self, Particle d) -> bool
14624 return _IMP_core.ClusterProvenance___ne__(self, *args)
14626 def __le__(self, *args):
14628 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14629 __le__(ClusterProvenance self, Particle d) -> bool
14631 return _IMP_core.ClusterProvenance___le__(self, *args)
14633 def __lt__(self, *args):
14635 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14636 __lt__(ClusterProvenance self, Particle d) -> bool
14638 return _IMP_core.ClusterProvenance___lt__(self, *args)
14640 def __ge__(self, *args):
14642 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14643 __ge__(ClusterProvenance self, Particle d) -> bool
14645 return _IMP_core.ClusterProvenance___ge__(self, *args)
14647 def __gt__(self, *args):
14649 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14650 __gt__(ClusterProvenance self, Particle d) -> bool
14652 return _IMP_core.ClusterProvenance___gt__(self, *args)
14654 def __hash__(self):
14655 r"""__hash__(ClusterProvenance self) -> std::size_t"""
14656 return _IMP_core.ClusterProvenance___hash__(self)
14659 r"""__str__(ClusterProvenance self) -> std::string"""
14660 return _IMP_core.ClusterProvenance___str__(self)
14662 def __repr__(self):
14663 r"""__repr__(ClusterProvenance self) -> std::string"""
14664 return _IMP_core.ClusterProvenance___repr__(self)
14666 def _get_as_binary(self):
14667 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14668 return _IMP_core.ClusterProvenance__get_as_binary(self)
14670 def _set_from_binary(self, p):
14671 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14672 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14674 def __getstate__(self):
14675 p = self._get_as_binary()
14676 if len(self.__dict__) > 1:
14677 d = self.__dict__.copy()
14682 def __setstate__(self, p):
14683 if not hasattr(self,
'this'):
14685 if isinstance(p, tuple):
14687 self.__dict__.update(d)
14688 return self._set_from_binary(p)
14690 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14693 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14694 class ScriptProvenance(Provenance):
14695 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14697 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14699 def set_filename(self, filename):
14700 r"""set_filename(ScriptProvenance self, std::string filename)"""
14701 return _IMP_core.ScriptProvenance_set_filename(self, filename)
14703 def get_filename(self):
14704 r"""get_filename(ScriptProvenance self) -> std::string"""
14705 return _IMP_core.ScriptProvenance_get_filename(self)
14707 def __init__(self, *args):
14709 __init__(ScriptProvenance self) -> ScriptProvenance
14710 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14711 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14713 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14716 def get_is_setup(*args):
14718 get_is_setup(Model m, ParticleIndex pi) -> bool
14719 get_is_setup(_ParticleAdaptor p) -> bool
14721 return _IMP_core.ScriptProvenance_get_is_setup(*args)
14723 def show(self, *args):
14724 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14725 return _IMP_core.ScriptProvenance_show(self, *args)
14728 def setup_particle(*args):
14730 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14731 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14732 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14733 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14735 return _IMP_core.ScriptProvenance_setup_particle(*args)
14737 def add_attribute(self, *args):
14739 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14740 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14741 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14742 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14743 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14744 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14745 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14746 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14747 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14748 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14749 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14750 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14752 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14754 def get_value(self, *args):
14756 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14757 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14758 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14759 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14760 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14761 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14762 get_value(ScriptProvenance self, ObjectKey a0) -> Object
14763 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14764 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14765 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14766 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14768 return _IMP_core.ScriptProvenance_get_value(self, *args)
14770 def set_value(self, *args):
14772 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14773 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14774 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14775 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14776 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14777 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14778 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14779 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14780 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14781 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14782 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14784 return _IMP_core.ScriptProvenance_set_value(self, *args)
14786 def remove_attribute(self, *args):
14788 remove_attribute(ScriptProvenance self, FloatKey a0)
14789 remove_attribute(ScriptProvenance self, IntKey a0)
14790 remove_attribute(ScriptProvenance self, FloatsKey a0)
14791 remove_attribute(ScriptProvenance self, IntsKey a0)
14792 remove_attribute(ScriptProvenance self, StringKey a0)
14793 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14794 remove_attribute(ScriptProvenance self, ObjectKey a0)
14795 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14796 remove_attribute(ScriptProvenance self, SparseIntKey a0)
14797 remove_attribute(ScriptProvenance self, SparseStringKey a0)
14798 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14800 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14802 def has_attribute(self, *args):
14804 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14805 has_attribute(ScriptProvenance self, IntKey a0) -> bool
14806 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14807 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14808 has_attribute(ScriptProvenance self, StringKey a0) -> bool
14809 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14810 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14811 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14812 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14813 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14814 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14816 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14818 def get_derivative(self, a0):
14819 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14820 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14822 def get_name(self):
14823 r"""get_name(ScriptProvenance self) -> std::string"""
14824 return _IMP_core.ScriptProvenance_get_name(self)
14826 def clear_caches(self):
14827 r"""clear_caches(ScriptProvenance self)"""
14828 return _IMP_core.ScriptProvenance_clear_caches(self)
14830 def set_name(self, a0):
14831 r"""set_name(ScriptProvenance self, std::string a0)"""
14832 return _IMP_core.ScriptProvenance_set_name(self, a0)
14835 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14836 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14838 def add_to_derivative(self, a0, a1, a2):
14839 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14840 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14842 def set_is_optimized(self, a0, a1):
14843 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14844 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14846 def get_is_optimized(self, a0):
14847 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
14848 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
14851 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
14852 return _IMP_core.ScriptProvenance_get_check_level(self)
14854 def __eq__(self, *args):
14856 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
14857 __eq__(ScriptProvenance self, Particle d) -> bool
14859 return _IMP_core.ScriptProvenance___eq__(self, *args)
14861 def __ne__(self, *args):
14863 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
14864 __ne__(ScriptProvenance self, Particle d) -> bool
14866 return _IMP_core.ScriptProvenance___ne__(self, *args)
14868 def __le__(self, *args):
14870 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
14871 __le__(ScriptProvenance self, Particle d) -> bool
14873 return _IMP_core.ScriptProvenance___le__(self, *args)
14875 def __lt__(self, *args):
14877 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
14878 __lt__(ScriptProvenance self, Particle d) -> bool
14880 return _IMP_core.ScriptProvenance___lt__(self, *args)
14882 def __ge__(self, *args):
14884 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
14885 __ge__(ScriptProvenance self, Particle d) -> bool
14887 return _IMP_core.ScriptProvenance___ge__(self, *args)
14889 def __gt__(self, *args):
14891 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
14892 __gt__(ScriptProvenance self, Particle d) -> bool
14894 return _IMP_core.ScriptProvenance___gt__(self, *args)
14896 def __hash__(self):
14897 r"""__hash__(ScriptProvenance self) -> std::size_t"""
14898 return _IMP_core.ScriptProvenance___hash__(self)
14901 r"""__str__(ScriptProvenance self) -> std::string"""
14902 return _IMP_core.ScriptProvenance___str__(self)
14904 def __repr__(self):
14905 r"""__repr__(ScriptProvenance self) -> std::string"""
14906 return _IMP_core.ScriptProvenance___repr__(self)
14908 def _get_as_binary(self):
14909 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
14910 return _IMP_core.ScriptProvenance__get_as_binary(self)
14912 def _set_from_binary(self, p):
14913 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
14914 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
14916 def __getstate__(self):
14917 p = self._get_as_binary()
14918 if len(self.__dict__) > 1:
14919 d = self.__dict__.copy()
14924 def __setstate__(self, p):
14925 if not hasattr(self,
'this'):
14927 if isinstance(p, tuple):
14929 self.__dict__.update(d)
14930 return self._set_from_binary(p)
14932 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
14935 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
14936 class SoftwareProvenance(Provenance):
14937 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
14939 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14941 def set_software_name(self, name):
14942 r"""set_software_name(SoftwareProvenance self, std::string name)"""
14943 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
14945 def get_software_name(self):
14946 r"""get_software_name(SoftwareProvenance self) -> std::string"""
14947 return _IMP_core.SoftwareProvenance_get_software_name(self)
14949 def set_version(self, version):
14950 r"""set_version(SoftwareProvenance self, std::string version)"""
14951 return _IMP_core.SoftwareProvenance_set_version(self, version)
14953 def get_version(self):
14954 r"""get_version(SoftwareProvenance self) -> std::string"""
14955 return _IMP_core.SoftwareProvenance_get_version(self)
14957 def set_location(self, location):
14958 r"""set_location(SoftwareProvenance self, std::string location)"""
14959 return _IMP_core.SoftwareProvenance_set_location(self, location)
14961 def get_location(self):
14962 r"""get_location(SoftwareProvenance self) -> std::string"""
14963 return _IMP_core.SoftwareProvenance_get_location(self)
14965 def __init__(self, *args):
14967 __init__(SoftwareProvenance self) -> SoftwareProvenance
14968 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
14969 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
14971 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
14974 def get_is_setup(*args):
14976 get_is_setup(Model m, ParticleIndex pi) -> bool
14977 get_is_setup(_ParticleAdaptor p) -> bool
14979 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
14981 def show(self, *args):
14982 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
14983 return _IMP_core.SoftwareProvenance_show(self, *args)
14986 def setup_particle(*args):
14988 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
14989 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
14990 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
14991 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
14993 return _IMP_core.SoftwareProvenance_setup_particle(*args)
14995 def add_attribute(self, *args):
14997 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
14998 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14999 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15000 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15001 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15002 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15003 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15004 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15005 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15006 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15007 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15008 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15010 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15012 def get_value(self, *args):
15014 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15015 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15016 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15017 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15018 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15019 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15020 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15021 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15022 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15023 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15024 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15026 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15028 def set_value(self, *args):
15030 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15031 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15032 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15033 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15034 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15035 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15036 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15037 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15038 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15039 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15040 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15042 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15044 def remove_attribute(self, *args):
15046 remove_attribute(SoftwareProvenance self, FloatKey a0)
15047 remove_attribute(SoftwareProvenance self, IntKey a0)
15048 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15049 remove_attribute(SoftwareProvenance self, IntsKey a0)
15050 remove_attribute(SoftwareProvenance self, StringKey a0)
15051 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15052 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15053 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15054 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15055 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15056 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15058 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15060 def has_attribute(self, *args):
15062 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15063 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15064 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15065 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15066 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15067 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15068 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15069 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15070 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15071 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15072 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15074 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15076 def get_derivative(self, a0):
15077 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15078 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15080 def get_name(self):
15081 r"""get_name(SoftwareProvenance self) -> std::string"""
15082 return _IMP_core.SoftwareProvenance_get_name(self)
15084 def clear_caches(self):
15085 r"""clear_caches(SoftwareProvenance self)"""
15086 return _IMP_core.SoftwareProvenance_clear_caches(self)
15088 def set_name(self, a0):
15089 r"""set_name(SoftwareProvenance self, std::string a0)"""
15090 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15093 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15094 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15096 def add_to_derivative(self, a0, a1, a2):
15097 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15098 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15100 def set_is_optimized(self, a0, a1):
15101 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15102 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15104 def get_is_optimized(self, a0):
15105 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15106 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15109 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15110 return _IMP_core.SoftwareProvenance_get_check_level(self)
15112 def __eq__(self, *args):
15114 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15115 __eq__(SoftwareProvenance self, Particle d) -> bool
15117 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15119 def __ne__(self, *args):
15121 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15122 __ne__(SoftwareProvenance self, Particle d) -> bool
15124 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15126 def __le__(self, *args):
15128 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15129 __le__(SoftwareProvenance self, Particle d) -> bool
15131 return _IMP_core.SoftwareProvenance___le__(self, *args)
15133 def __lt__(self, *args):
15135 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15136 __lt__(SoftwareProvenance self, Particle d) -> bool
15138 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15140 def __ge__(self, *args):
15142 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15143 __ge__(SoftwareProvenance self, Particle d) -> bool
15145 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15147 def __gt__(self, *args):
15149 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15150 __gt__(SoftwareProvenance self, Particle d) -> bool
15152 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15154 def __hash__(self):
15155 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15156 return _IMP_core.SoftwareProvenance___hash__(self)
15159 r"""__str__(SoftwareProvenance self) -> std::string"""
15160 return _IMP_core.SoftwareProvenance___str__(self)
15162 def __repr__(self):
15163 r"""__repr__(SoftwareProvenance self) -> std::string"""
15164 return _IMP_core.SoftwareProvenance___repr__(self)
15166 def _get_as_binary(self):
15167 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15168 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15170 def _set_from_binary(self, p):
15171 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15172 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15174 def __getstate__(self):
15175 p = self._get_as_binary()
15176 if len(self.__dict__) > 1:
15177 d = self.__dict__.copy()
15182 def __setstate__(self, p):
15183 if not hasattr(self,
'this'):
15185 if isinstance(p, tuple):
15187 self.__dict__.update(d)
15188 return self._set_from_binary(p)
15190 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15193 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15195 r"""Proxy of C++ IMP::core::Provenanced class."""
15197 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15199 def get_provenance(self):
15200 r"""get_provenance(Provenanced self) -> Provenance"""
15201 return _IMP_core.Provenanced_get_provenance(self)
15203 def set_provenance(self, p):
15204 r"""set_provenance(Provenanced self, Provenance p)"""
15205 return _IMP_core.Provenanced_set_provenance(self, p)
15207 def __init__(self, *args):
15209 __init__(Provenanced self) -> Provenanced
15210 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15211 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15213 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15216 def get_is_setup(*args):
15218 get_is_setup(Model m, ParticleIndex pi) -> bool
15219 get_is_setup(_ParticleAdaptor p) -> bool
15221 return _IMP_core.Provenanced_get_is_setup(*args)
15223 def show(self, *args):
15224 r"""show(Provenanced self, _ostream out=std::cout)"""
15225 return _IMP_core.Provenanced_show(self, *args)
15228 def setup_particle(*args):
15230 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15231 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15233 return _IMP_core.Provenanced_setup_particle(*args)
15235 def add_attribute(self, *args):
15237 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15238 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15239 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15240 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15241 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15242 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15243 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15244 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15245 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15246 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15247 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15248 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15250 return _IMP_core.Provenanced_add_attribute(self, *args)
15252 def get_value(self, *args):
15254 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15255 get_value(Provenanced self, IntKey a0) -> IMP::Int
15256 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15257 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15258 get_value(Provenanced self, StringKey a0) -> IMP::String
15259 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15260 get_value(Provenanced self, ObjectKey a0) -> Object
15261 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15262 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15263 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15264 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15266 return _IMP_core.Provenanced_get_value(self, *args)
15268 def set_value(self, *args):
15270 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15271 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15272 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15273 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15274 set_value(Provenanced self, StringKey a0, IMP::String a1)
15275 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15276 set_value(Provenanced self, ObjectKey a0, Object a1)
15277 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15278 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15279 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15280 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15282 return _IMP_core.Provenanced_set_value(self, *args)
15284 def remove_attribute(self, *args):
15286 remove_attribute(Provenanced self, FloatKey a0)
15287 remove_attribute(Provenanced self, IntKey a0)
15288 remove_attribute(Provenanced self, FloatsKey a0)
15289 remove_attribute(Provenanced self, IntsKey a0)
15290 remove_attribute(Provenanced self, StringKey a0)
15291 remove_attribute(Provenanced self, ParticleIndexKey a0)
15292 remove_attribute(Provenanced self, ObjectKey a0)
15293 remove_attribute(Provenanced self, SparseFloatKey a0)
15294 remove_attribute(Provenanced self, SparseIntKey a0)
15295 remove_attribute(Provenanced self, SparseStringKey a0)
15296 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15298 return _IMP_core.Provenanced_remove_attribute(self, *args)
15300 def has_attribute(self, *args):
15302 has_attribute(Provenanced self, FloatKey a0) -> bool
15303 has_attribute(Provenanced self, IntKey a0) -> bool
15304 has_attribute(Provenanced self, FloatsKey a0) -> bool
15305 has_attribute(Provenanced self, IntsKey a0) -> bool
15306 has_attribute(Provenanced self, StringKey a0) -> bool
15307 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15308 has_attribute(Provenanced self, ObjectKey a0) -> bool
15309 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15310 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15311 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15312 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15314 return _IMP_core.Provenanced_has_attribute(self, *args)
15316 def get_derivative(self, a0):
15317 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15318 return _IMP_core.Provenanced_get_derivative(self, a0)
15320 def get_name(self):
15321 r"""get_name(Provenanced self) -> std::string"""
15322 return _IMP_core.Provenanced_get_name(self)
15324 def clear_caches(self):
15325 r"""clear_caches(Provenanced self)"""
15326 return _IMP_core.Provenanced_clear_caches(self)
15328 def set_name(self, a0):
15329 r"""set_name(Provenanced self, std::string a0)"""
15330 return _IMP_core.Provenanced_set_name(self, a0)
15333 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15334 return _IMP_core.Provenanced_set_check_level(self, a0)
15336 def add_to_derivative(self, a0, a1, a2):
15337 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15338 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15340 def set_is_optimized(self, a0, a1):
15341 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15342 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15344 def get_is_optimized(self, a0):
15345 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15346 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15349 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15350 return _IMP_core.Provenanced_get_check_level(self)
15352 def __eq__(self, *args):
15354 __eq__(Provenanced self, Provenanced o) -> bool
15355 __eq__(Provenanced self, Particle d) -> bool
15357 return _IMP_core.Provenanced___eq__(self, *args)
15359 def __ne__(self, *args):
15361 __ne__(Provenanced self, Provenanced o) -> bool
15362 __ne__(Provenanced self, Particle d) -> bool
15364 return _IMP_core.Provenanced___ne__(self, *args)
15366 def __le__(self, *args):
15368 __le__(Provenanced self, Provenanced o) -> bool
15369 __le__(Provenanced self, Particle d) -> bool
15371 return _IMP_core.Provenanced___le__(self, *args)
15373 def __lt__(self, *args):
15375 __lt__(Provenanced self, Provenanced o) -> bool
15376 __lt__(Provenanced self, Particle d) -> bool
15378 return _IMP_core.Provenanced___lt__(self, *args)
15380 def __ge__(self, *args):
15382 __ge__(Provenanced self, Provenanced o) -> bool
15383 __ge__(Provenanced self, Particle d) -> bool
15385 return _IMP_core.Provenanced___ge__(self, *args)
15387 def __gt__(self, *args):
15389 __gt__(Provenanced self, Provenanced o) -> bool
15390 __gt__(Provenanced self, Particle d) -> bool
15392 return _IMP_core.Provenanced___gt__(self, *args)
15394 def __hash__(self):
15395 r"""__hash__(Provenanced self) -> std::size_t"""
15396 return _IMP_core.Provenanced___hash__(self)
15399 r"""__str__(Provenanced self) -> std::string"""
15400 return _IMP_core.Provenanced___str__(self)
15402 def __repr__(self):
15403 r"""__repr__(Provenanced self) -> std::string"""
15404 return _IMP_core.Provenanced___repr__(self)
15406 def _get_as_binary(self):
15407 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15408 return _IMP_core.Provenanced__get_as_binary(self)
15410 def _set_from_binary(self, p):
15411 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15412 return _IMP_core.Provenanced__set_from_binary(self, p)
15414 def __getstate__(self):
15415 p = self._get_as_binary()
15416 if len(self.__dict__) > 1:
15417 d = self.__dict__.copy()
15422 def __setstate__(self, p):
15423 if not hasattr(self,
'this'):
15425 if isinstance(p, tuple):
15427 self.__dict__.update(d)
15428 return self._set_from_binary(p)
15430 __swig_destroy__ = _IMP_core.delete_Provenanced
15433 _IMP_core.Provenanced_swigregister(Provenanced)
15436 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15437 return _IMP_core.add_provenance(m, pi, p)
15440 r"""create_clone(Provenance p) -> Provenance"""
15441 return _IMP_core.create_clone(p)
15445 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15446 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 > > const & b) -> Transformation3D
15447 get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15449 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15452 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15453 return _IMP_core.create_restraint(ps, pp)
15455 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15459 def __init__(self, *args):
15461 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15462 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15464 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15466 def get_version_info(self):
15467 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15468 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15469 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15472 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15473 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15475 def __repr__(self):
15476 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15477 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15481 return _object_cast_to_TruncatedHarmonic(o)
15485 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15487 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15489 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15491 def __init__(self, *args):
15493 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15494 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15496 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15498 def get_version_info(self):
15499 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15500 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15501 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15504 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15505 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15507 def __repr__(self):
15508 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15509 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15513 return _object_cast_to_TruncatedHarmonic(o)
15517 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15519 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15521 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15523 def __init__(self, *args):
15525 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15526 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15528 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15530 def get_version_info(self):
15531 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15532 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15533 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15536 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15537 return _IMP_core.TruncatedHarmonicBound___str__(self)
15539 def __repr__(self):
15540 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15541 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15545 return _object_cast_to_TruncatedHarmonic(o)
15549 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15551 r"""Proxy of C++ IMP::Key< 34897493 > class."""
15553 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15555 def __init__(self, *args):
15557 __init__(ParticleType self) -> ParticleType
15558 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15559 __init__(ParticleType self, unsigned int i) -> ParticleType
15561 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15565 r"""add_key(std::string sc) -> unsigned int"""
15566 return _IMP_core.ParticleType_add_key(sc)
15569 def get_key_exists(sc):
15570 r"""get_key_exists(std::string sc) -> bool"""
15571 return _IMP_core.ParticleType_get_key_exists(sc)
15573 def get_string(self):
15574 r"""get_string(ParticleType self) -> std::string const"""
15575 return _IMP_core.ParticleType_get_string(self)
15577 def __cmp__(self, o):
15578 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15579 return _IMP_core.ParticleType___cmp__(self, o)
15581 def __eq__(self, o):
15582 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15583 return _IMP_core.ParticleType___eq__(self, o)
15585 def __ne__(self, o):
15586 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15587 return _IMP_core.ParticleType___ne__(self, o)
15589 def __lt__(self, o):
15590 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15591 return _IMP_core.ParticleType___lt__(self, o)
15593 def __gt__(self, o):
15594 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15595 return _IMP_core.ParticleType___gt__(self, o)
15597 def __ge__(self, o):
15598 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15599 return _IMP_core.ParticleType___ge__(self, o)
15601 def __le__(self, o):
15602 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15603 return _IMP_core.ParticleType___le__(self, o)
15605 def __hash__(self):
15606 r"""__hash__(ParticleType self) -> std::size_t"""
15607 return _IMP_core.ParticleType___hash__(self)
15609 def show(self, *args):
15610 r"""show(ParticleType self, _ostream out=std::cout)"""
15611 return _IMP_core.ParticleType_show(self, *args)
15614 def add_alias(old_key, new_name):
15615 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15616 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15619 def get_number_of_keys():
15620 r"""get_number_of_keys() -> unsigned int"""
15621 return _IMP_core.ParticleType_get_number_of_keys()
15624 r"""get_index(ParticleType self) -> unsigned int"""
15625 return _IMP_core.ParticleType_get_index(self)
15629 r"""show_all(_ostream out)"""
15630 return _IMP_core.ParticleType_show_all(out)
15633 def get_all_strings():
15634 r"""get_all_strings() -> IMP::Vector< std::string >"""
15635 return _IMP_core.ParticleType_get_all_strings()
15638 def get_number_unique():
15639 r"""get_number_unique() -> unsigned int"""
15640 return _IMP_core.ParticleType_get_number_unique()
15643 r"""__str__(ParticleType self) -> std::string"""
15644 return _IMP_core.ParticleType___str__(self)
15646 def __repr__(self):
15647 r"""__repr__(ParticleType self) -> std::string"""
15648 return _IMP_core.ParticleType___repr__(self)
15649 __swig_destroy__ = _IMP_core.delete_ParticleType
15652 _IMP_core.ParticleType_swigregister(ParticleType)
15654 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15656 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15657 __repr__ = _swig_repr
15659 def __init__(self, f, k):
15660 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15661 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15663 def do_get_inputs(self, m, pis):
15664 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15665 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15667 def get_unary_function(self):
15668 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15669 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15671 def get_version_info(self):
15672 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15673 return _IMP_core.AttributeSingletonScore_get_version_info(self)
15674 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15677 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15680 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15681 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15683 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15685 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15686 __repr__ = _swig_repr
15688 def __init__(self, f, bb):
15689 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15690 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15692 def do_get_inputs(self, m, pis):
15693 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15694 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15696 def get_version_info(self):
15697 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15698 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15699 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15702 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15704 def create_bounding_box_3d_singleton_score(f, bb):
15705 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15706 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15708 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15710 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15711 __repr__ = _swig_repr
15713 def __init__(self, f, sphere):
15714 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15715 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15717 def do_get_inputs(self, m, pis):
15718 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15719 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15721 def get_version_info(self):
15722 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15723 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15724 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15727 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15729 def create_bounding_sphere_3d_singleton_score(f, sphere):
15730 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15731 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15733 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15735 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15736 __repr__ = _swig_repr
15738 def __init__(self, *args):
15740 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15741 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15743 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15745 def do_get_inputs(self, m, pis):
15746 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15747 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15749 def get_version_info(self):
15750 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15751 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15752 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15754 def _get_as_binary(self):
15755 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15756 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15758 def _set_from_binary(self, p):
15759 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15760 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15762 def __getstate__(self):
15763 p = self._get_as_binary()
15764 if len(self.__dict__) > 1:
15765 d = self.__dict__.copy()
15770 def __setstate__(self, p):
15771 if not hasattr(self,
'this'):
15773 if isinstance(p, tuple):
15775 self.__dict__.update(d)
15776 return self._set_from_binary(p)
15780 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15782 def create_distance_to_singleton_score(f, pt):
15783 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
15784 return _IMP_core.create_distance_to_singleton_score(f, pt)
15788 CombineProvenance, FilterProvenance,
15789 ClusterProvenance, ScriptProvenance,
15790 SoftwareProvenance]):
15791 """Yield all provenance decorators of the given types for the particle.
15792 By default, all provenance types are returned. Provenance is returned
15793 in order, most recent first. If the particle has no provenance
15794 information, an empty generator is returned."""
15795 if Provenanced.get_is_setup(p):
15799 if c.get_is_setup(prov):
15801 prov = prov.get_previous()
15804 """Tag the given particle with the current Python script.
15805 This is a noop if the particle is already so tagged."""
15806 main = sys.modules[
'__main__']
15808 if not hasattr(main,
'__file__'):
15812 if prov.get_filename() == f:
15816 provp.set_name(
'script')
15817 prov = ScriptProvenance.setup_particle(provp, f)
15821 """Tag the given particle with the software used to create it.
15822 This is a noop if the particle is already so tagged."""
15824 if prov.get_software_name() == name
and prov.get_version() == version \
15825 and prov.get_location() == location:
15829 provp.set_name(
'software')
15830 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
15834 """Tag the given particle as being created by the current version of IMP."""
15837 location=
"https://integrativemodeling.org")
15841 r"""get_module_version() -> std::string const"""
15842 return _IMP_core.get_module_version()
15845 r"""get_example_path(std::string fname) -> std::string"""
15846 return _IMP_core.get_example_path(fname)
15849 r"""get_data_path(std::string fname) -> std::string"""
15850 return _IMP_core.get_data_path(fname)
15852 from .
import _version_check
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.
double get_height(const Surface &s, const XYZR &d)
Get height of sphere above surface.
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.
def add_script_provenance
Tag the given particle with the current Python script.
GenericBoundingSphere3DSingletonScore< UnaryFunction > BoundingSphere3DSingletonScore
Abstract predicate function.
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
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.
Key< 34897493 > ParticleType
An IMP::Key object for identifying types of particles by strings.
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.
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.
Abstract predicate function.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
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.
Base class for all optimizers.
GenericAttributeSingletonScore< UnaryFunction > AttributeSingletonScore
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
algebra::BoundingBoxD< 3 > get_bounding_box(const XYZRs &ps)
Get the bounding box.
Version and module information for Objects.
const algebra::Vector3D & get_vector_geometry(XYZ d)
GenericHierarchies get_internal(Hierarchy mhd)
Get all the non-leaves of the bit of hierarchy.
Interface to specialized Particle types (e.g. atoms)
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.
Abstract predicate function.
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)
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.
double get_depth(const Surface &s, const XYZR &d)
Get depth of sphere below surface.
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.
GenericAttributeSingletonScore< UF > * create_generic_attribute_singleton_score(UF *uf, FloatKey k)
void transform(RigidBody a, const algebra::Transformation3D &tr)
Transform a rigid body.
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
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.
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.
double get_distance(const Surface &s, const XYZR &d)
Get distance from sphere to surface.
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
Abstract single variable functor class for score functions.
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.
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.