14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_CORE_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
77 r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
78 return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
81 r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
82 return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
86 return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
94 return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
98 return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
101 r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
102 return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
105 r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
106 return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
109 r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
110 return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
114 return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
118 return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
122 return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
126 return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
130 return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
134 return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
139 __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
146 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
153 IMP_DEBUG = _IMP_core.IMP_DEBUG
155 IMP_RELEASE = _IMP_core.IMP_RELEASE
157 IMP_SILENT = _IMP_core.IMP_SILENT
159 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
161 IMP_TERSE = _IMP_core.IMP_TERSE
163 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
165 IMP_MEMORY = _IMP_core.IMP_MEMORY
167 IMP_NONE = _IMP_core.IMP_NONE
169 IMP_USAGE = _IMP_core.IMP_USAGE
171 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_core._ostream_write(self, osa_buf)
236 _IMP_core._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
329 r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
331 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
332 __repr__ = _swig_repr
334 def __init__(self, *args):
335 r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
336 _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
338 def get_version_info(self):
339 r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
340 return _IMP_core._OpenCubicSplineBase_get_version_info(self)
341 __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
344 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
346 _object_types.append(
"MonteCarloMover")
349 def _object_cast_to_MonteCarloMover(o):
350 r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
351 return _IMP_core._object_cast_to_MonteCarloMover(o)
353 MonteCarloMoverResults=list
354 _plural_types.append(
"MonteCarloMoverResults")
355 _value_types.append(
"MonteCarloMoverResult")
358 _object_types.append(
"AngleRestraint")
361 def _object_cast_to_AngleRestraint(o):
362 r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
363 return _IMP_core._object_cast_to_AngleRestraint(o)
365 _object_types.append(
"AngleTripletScore")
368 def _object_cast_to_AngleTripletScore(o):
369 r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
370 return _IMP_core._object_cast_to_AngleTripletScore(o)
372 _object_types.append(
"AttributeSingletonScore")
375 def _object_cast_to_AttributeSingletonScore(o):
376 r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
377 return _IMP_core._object_cast_to_AttributeSingletonScore(o)
379 _object_types.append(
"BallMover")
382 def _object_cast_to_BallMover(o):
383 r"""_object_cast_to_BallMover(Object o) -> BallMover"""
384 return _IMP_core._object_cast_to_BallMover(o)
386 _object_types.append(
"SerialMover")
389 def _object_cast_to_SerialMover(o):
390 r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
391 return _IMP_core._object_cast_to_SerialMover(o)
393 _object_types.append(
"SubsetMover")
396 def _object_cast_to_SubsetMover(o):
397 r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
398 return _IMP_core._object_cast_to_SubsetMover(o)
400 _object_types.append(
"DirectionMover")
403 def _object_cast_to_DirectionMover(o):
404 r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
405 return _IMP_core._object_cast_to_DirectionMover(o)
407 _object_types.append(
"SurfaceMover")
410 def _object_cast_to_SurfaceMover(o):
411 r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
412 return _IMP_core._object_cast_to_SurfaceMover(o)
414 _object_types.append(
"BoundingBox3DSingletonScore")
417 def _object_cast_to_BoundingBox3DSingletonScore(o):
418 r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
419 return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
421 _object_types.append(
"BoundingSphere3DSingletonScore")
424 def _object_cast_to_BoundingSphere3DSingletonScore(o):
425 r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
426 return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
428 _object_types.append(
"BoxSweepClosePairsFinder")
431 def _object_cast_to_BoxSweepClosePairsFinder(o):
432 r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
433 return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
435 _object_types.append(
"NearestNeighborsClosePairsFinder")
438 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
439 r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
440 return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
442 _object_types.append(
"CentroidOfRefined")
445 def _object_cast_to_CentroidOfRefined(o):
446 r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
447 return _IMP_core._object_cast_to_CentroidOfRefined(o)
449 _object_types.append(
"ChecksScoreState")
452 def _object_cast_to_ChecksScoreState(o):
453 r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
454 return _IMP_core._object_cast_to_ChecksScoreState(o)
456 _object_types.append(
"ChildrenRefiner")
459 def _object_cast_to_ChildrenRefiner(o):
460 r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
461 return _IMP_core._object_cast_to_ChildrenRefiner(o)
463 _object_types.append(
"ClosePairsFinder")
466 def _object_cast_to_ClosePairsFinder(o):
467 r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
468 return _IMP_core._object_cast_to_ClosePairsFinder(o)
470 _object_types.append(
"ClosePairsPairScore")
473 def _object_cast_to_ClosePairsPairScore(o):
474 r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
475 return _IMP_core._object_cast_to_ClosePairsPairScore(o)
477 _object_types.append(
"ClosedCubicSpline")
480 def _object_cast_to_ClosedCubicSpline(o):
481 r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
482 return _IMP_core._object_cast_to_ClosedCubicSpline(o)
484 _object_types.append(
"ConjugateGradients")
487 def _object_cast_to_ConjugateGradients(o):
488 r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
489 return _IMP_core._object_cast_to_ConjugateGradients(o)
491 _object_types.append(
"ConnectivityRestraint")
494 def _object_cast_to_ConnectivityRestraint(o):
495 r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
496 return _IMP_core._object_cast_to_ConnectivityRestraint(o)
498 _object_types.append(
"ConstantRestraint")
501 def _object_cast_to_ConstantRestraint(o):
502 r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
503 return _IMP_core._object_cast_to_ConstantRestraint(o)
505 _object_types.append(
"Cosine")
508 def _object_cast_to_Cosine(o):
509 r"""_object_cast_to_Cosine(Object o) -> Cosine"""
510 return _IMP_core._object_cast_to_Cosine(o)
512 _object_types.append(
"CoverRefined")
515 def _object_cast_to_CoverRefined(o):
516 r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
517 return _IMP_core._object_cast_to_CoverRefined(o)
519 _object_types.append(
"DerivativesFromRefined")
522 def _object_cast_to_DerivativesFromRefined(o):
523 r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
524 return _IMP_core._object_cast_to_DerivativesFromRefined(o)
526 _object_types.append(
"DerivativesToRefined")
529 def _object_cast_to_DerivativesToRefined(o):
530 r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
531 return _IMP_core._object_cast_to_DerivativesToRefined(o)
533 _object_types.append(
"WeightedDerivativesToRefined")
536 def _object_cast_to_WeightedDerivativesToRefined(o):
537 r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
538 return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
540 _object_types.append(
"DiameterRestraint")
543 def _object_cast_to_DiameterRestraint(o):
544 r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
545 return _IMP_core._object_cast_to_DiameterRestraint(o)
547 _object_types.append(
"DihedralRestraint")
550 def _object_cast_to_DihedralRestraint(o):
551 r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
552 return _IMP_core._object_cast_to_DihedralRestraint(o)
554 _object_types.append(
"DistanceRestraint")
557 def _object_cast_to_DistanceRestraint(o):
558 r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
559 return _IMP_core._object_cast_to_DistanceRestraint(o)
561 _object_types.append(
"DistanceToSingletonScore")
564 def _object_cast_to_DistanceToSingletonScore(o):
565 r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
566 return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
568 _object_types.append(
"ExcludedVolumeRestraint")
571 def _object_cast_to_ExcludedVolumeRestraint(o):
572 r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
573 return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
575 _object_types.append(
"FixedRefiner")
578 def _object_cast_to_FixedRefiner(o):
579 r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
580 return _IMP_core._object_cast_to_FixedRefiner(o)
582 _object_types.append(
"GridClosePairsFinder")
585 def _object_cast_to_GridClosePairsFinder(o):
586 r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
587 return _IMP_core._object_cast_to_GridClosePairsFinder(o)
589 _object_types.append(
"Harmonic")
592 def _object_cast_to_Harmonic(o):
593 r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
594 return _IMP_core._object_cast_to_Harmonic(o)
596 _object_types.append(
"HarmonicWell")
599 def _object_cast_to_HarmonicWell(o):
600 r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
601 return _IMP_core._object_cast_to_HarmonicWell(o)
603 _object_types.append(
"HarmonicLowerBound")
606 def _object_cast_to_HarmonicLowerBound(o):
607 r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
608 return _IMP_core._object_cast_to_HarmonicLowerBound(o)
610 _object_types.append(
"HarmonicUpperBound")
613 def _object_cast_to_HarmonicUpperBound(o):
614 r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
615 return _IMP_core._object_cast_to_HarmonicUpperBound(o)
617 _object_types.append(
"HarmonicSphereDistancePairScore")
620 def _object_cast_to_HarmonicSphereDistancePairScore(o):
621 r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
622 return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
624 _object_types.append(
"HarmonicUpperBoundSphereDistancePairScore")
627 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
628 r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
629 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
631 _object_types.append(
"HarmonicUpperBoundSphereDiameterPairScore")
634 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
635 r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
636 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
638 _object_types.append(
"HarmonicSurfaceDistancePairScore")
641 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
642 r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
643 return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
645 _object_types.append(
"HarmonicSurfaceHeightPairScore")
648 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
649 r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
650 return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
652 _object_types.append(
"HarmonicSurfaceDepthPairScore")
655 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
656 r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
657 return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
659 _object_types.append(
"WeightedSum")
662 def _object_cast_to_WeightedSum(o):
663 r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
664 return _IMP_core._object_cast_to_WeightedSum(o)
666 _object_types.append(
"WeightedSumOfExponential")
669 def _object_cast_to_WeightedSumOfExponential(o):
670 r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
671 return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
673 _object_types.append(
"KClosePairsPairScore")
676 def _object_cast_to_KClosePairsPairScore(o):
677 r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
678 return _IMP_core._object_cast_to_KClosePairsPairScore(o)
680 _object_types.append(
"LeavesRefiner")
683 def _object_cast_to_LeavesRefiner(o):
684 r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
685 return _IMP_core._object_cast_to_LeavesRefiner(o)
687 _object_types.append(
"Linear")
690 def _object_cast_to_Linear(o):
691 r"""_object_cast_to_Linear(Object o) -> Linear"""
692 return _IMP_core._object_cast_to_Linear(o)
694 _object_types.append(
"LogNormalMover")
697 def _object_cast_to_LogNormalMover(o):
698 r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
699 return _IMP_core._object_cast_to_LogNormalMover(o)
701 _object_types.append(
"MCCGSampler")
704 def _object_cast_to_MCCGSampler(o):
705 r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
706 return _IMP_core._object_cast_to_MCCGSampler(o)
708 _object_types.append(
"MonteCarlo")
711 def _object_cast_to_MonteCarlo(o):
712 r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
713 return _IMP_core._object_cast_to_MonteCarlo(o)
715 _object_types.append(
"MonteCarloWithLocalOptimization")
718 def _object_cast_to_MonteCarloWithLocalOptimization(o):
719 r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
720 return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
722 _object_types.append(
"MonteCarloWithBasinHopping")
725 def _object_cast_to_MonteCarloWithBasinHopping(o):
726 r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
727 return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
729 _object_types.append(
"MSConnectivityRestraint")
732 def _object_cast_to_MSConnectivityRestraint(o):
733 r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
734 return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
736 _object_types.append(
"NeighborsTable")
739 def _object_cast_to_NeighborsTable(o):
740 r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
741 return _IMP_core._object_cast_to_NeighborsTable(o)
743 _object_types.append(
"NormalMover")
746 def _object_cast_to_NormalMover(o):
747 r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
748 return _IMP_core._object_cast_to_NormalMover(o)
750 _object_types.append(
"NormalizedSphereDistancePairScore")
753 def _object_cast_to_NormalizedSphereDistancePairScore(o):
754 r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
755 return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
757 _object_types.append(
"OpenCubicSpline")
760 def _object_cast_to_OpenCubicSpline(o):
761 r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
762 return _IMP_core._object_cast_to_OpenCubicSpline(o)
764 _object_types.append(
"PairConstraint")
767 def _object_cast_to_PairConstraint(o):
768 r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
769 return _IMP_core._object_cast_to_PairConstraint(o)
771 _object_types.append(
"PairRestraint")
774 def _object_cast_to_PairRestraint(o):
775 r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
776 return _IMP_core._object_cast_to_PairRestraint(o)
778 _object_types.append(
"QuadConstraint")
781 def _object_cast_to_QuadConstraint(o):
782 r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
783 return _IMP_core._object_cast_to_QuadConstraint(o)
785 _object_types.append(
"QuadRestraint")
788 def _object_cast_to_QuadRestraint(o):
789 r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
790 return _IMP_core._object_cast_to_QuadRestraint(o)
792 _object_types.append(
"QuadraticClosePairsFinder")
795 def _object_cast_to_QuadraticClosePairsFinder(o):
796 r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
797 return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
799 _object_types.append(
"RefinedPairsPairScore")
802 def _object_cast_to_RefinedPairsPairScore(o):
803 r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
804 return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
806 _object_types.append(
"RestraintsScoringFunction")
809 def _object_cast_to_RestraintsScoringFunction(o):
810 r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
811 return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
813 _object_types.append(
"RigidBodyDistancePairScore")
816 def _object_cast_to_RigidBodyDistancePairScore(o):
817 r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
818 return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
820 _object_types.append(
"RigidBodyAnglePairScore")
823 def _object_cast_to_RigidBodyAnglePairScore(o):
824 r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
825 return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
827 _object_types.append(
"RigidBodyMover")
830 def _object_cast_to_RigidBodyMover(o):
831 r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
832 return _IMP_core._object_cast_to_RigidBodyMover(o)
834 _object_types.append(
"RigidBodyTunneler")
837 def _object_cast_to_RigidBodyTunneler(o):
838 r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
839 return _IMP_core._object_cast_to_RigidBodyTunneler(o)
841 _object_types.append(
"RigidBodyUmbrella")
844 def _object_cast_to_RigidBodyUmbrella(o):
845 r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
846 return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
848 _object_types.append(
"RigidClosePairsFinder")
851 def _object_cast_to_RigidClosePairsFinder(o):
852 r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
853 return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
855 _object_types.append(
"RigidMembersRefiner")
858 def _object_cast_to_RigidMembersRefiner(o):
859 r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
860 return _IMP_core._object_cast_to_RigidMembersRefiner(o)
862 _object_types.append(
"SingletonConstraint")
865 def _object_cast_to_SingletonConstraint(o):
866 r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
867 return _IMP_core._object_cast_to_SingletonConstraint(o)
869 _object_types.append(
"SingletonRestraint")
872 def _object_cast_to_SingletonRestraint(o):
873 r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
874 return _IMP_core._object_cast_to_SingletonRestraint(o)
876 _object_types.append(
"SoftSpherePairScore")
879 def _object_cast_to_SoftSpherePairScore(o):
880 r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
881 return _IMP_core._object_cast_to_SoftSpherePairScore(o)
883 _object_types.append(
"SphereDistancePairScore")
886 def _object_cast_to_SphereDistancePairScore(o):
887 r"""_object_cast_to_SphereDistancePairScore(Object o) -> SphereDistancePairScore"""
888 return _IMP_core._object_cast_to_SphereDistancePairScore(o)
890 _object_types.append(
"SphereDistanceToSingletonScore")
893 def _object_cast_to_SphereDistanceToSingletonScore(o):
894 r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
895 return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
897 _object_types.append(
"SoftSubSurfacePairScore")
900 def _object_cast_to_SoftSubSurfacePairScore(o):
901 r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
902 return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
904 _object_types.append(
"SoftSuperSurfacePairScore")
907 def _object_cast_to_SoftSuperSurfacePairScore(o):
908 r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
909 return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
911 _object_types.append(
"SurfaceDistancePairScore")
914 def _object_cast_to_SurfaceDistancePairScore(o):
915 r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
916 return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
918 _object_types.append(
"SurfaceHeightPairScore")
921 def _object_cast_to_SurfaceHeightPairScore(o):
922 r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
923 return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
925 _object_types.append(
"SurfaceDepthPairScore")
928 def _object_cast_to_SurfaceDepthPairScore(o):
929 r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
930 return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
932 _object_types.append(
"SurfaceTetheredChain")
935 def _object_cast_to_SurfaceTetheredChain(o):
936 r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
937 return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
939 _object_types.append(
"SurfaceSymmetryConstraint")
942 def _object_cast_to_SurfaceSymmetryConstraint(o):
943 r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
944 return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
946 _object_types.append(
"SteepestDescent")
949 def _object_cast_to_SteepestDescent(o):
950 r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
951 return _IMP_core._object_cast_to_SteepestDescent(o)
953 _object_types.append(
"TableRefiner")
956 def _object_cast_to_TableRefiner(o):
957 r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
958 return _IMP_core._object_cast_to_TableRefiner(o)
960 _object_types.append(
"Transform")
963 def _object_cast_to_Transform(o):
964 r"""_object_cast_to_Transform(Object o) -> Transform"""
965 return _IMP_core._object_cast_to_Transform(o)
967 _object_types.append(
"TransformationAndReflectionSymmetry")
970 def _object_cast_to_TransformationAndReflectionSymmetry(o):
971 r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
972 return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
974 _object_types.append(
"TransformationSymmetry")
977 def _object_cast_to_TransformationSymmetry(o):
978 r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
979 return _IMP_core._object_cast_to_TransformationSymmetry(o)
981 _object_types.append(
"TransformationSymmetryMover")
984 def _object_cast_to_TransformationSymmetryMover(o):
985 r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
986 return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
988 _object_types.append(
"TransformedDistancePairScore")
991 def _object_cast_to_TransformedDistancePairScore(o):
992 r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
993 return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
995 _object_types.append(
"TripletConstraint")
998 def _object_cast_to_TripletConstraint(o):
999 r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1000 return _IMP_core._object_cast_to_TripletConstraint(o)
1002 _object_types.append(
"TripletRestraint")
1005 def _object_cast_to_TripletRestraint(o):
1006 r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1007 return _IMP_core._object_cast_to_TripletRestraint(o)
1009 _object_types.append(
"TypedPairScore")
1012 def _object_cast_to_TypedPairScore(o):
1013 r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1014 return _IMP_core._object_cast_to_TypedPairScore(o)
1016 _object_types.append(
"VolumeRestraint")
1019 def _object_cast_to_VolumeRestraint(o):
1020 r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1021 return _IMP_core._object_cast_to_VolumeRestraint(o)
1023 _object_types.append(
"WeightedSphereDistancePairScore")
1026 def _object_cast_to_WeightedSphereDistancePairScore(o):
1027 r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1028 return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1030 _object_types.append(
"MoveStatisticsScoreState")
1033 def _object_cast_to_MoveStatisticsScoreState(o):
1034 r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1035 return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1037 _object_types.append(
"MinimumRestraint")
1040 def _object_cast_to_MinimumRestraint(o):
1041 r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1042 return _IMP_core._object_cast_to_MinimumRestraint(o)
1044 _object_types.append(
"WriteRestraintScoresOptimizerState")
1047 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1048 r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1049 return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1051 _object_types.append(
"LateralSurfaceConstraint")
1054 def _object_cast_to_LateralSurfaceConstraint(o):
1055 r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1056 return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1058 _object_types.append(
"ConstantSingletonPredicate")
1061 def _object_cast_to_ConstantSingletonPredicate(o):
1062 r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1063 return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1065 _object_types.append(
"ConstantPairPredicate")
1068 def _object_cast_to_ConstantPairPredicate(o):
1069 r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1070 return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1072 _object_types.append(
"ConstantTripletPredicate")
1075 def _object_cast_to_ConstantTripletPredicate(o):
1076 r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1077 return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1079 _object_types.append(
"ConstantQuadPredicate")
1082 def _object_cast_to_ConstantQuadPredicate(o):
1083 r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1084 return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1086 _object_types.append(
"CoinFlipSingletonPredicate")
1089 def _object_cast_to_CoinFlipSingletonPredicate(o):
1090 r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1091 return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1093 _object_types.append(
"CoinFlipPairPredicate")
1096 def _object_cast_to_CoinFlipPairPredicate(o):
1097 r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1098 return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1100 _object_types.append(
"CoinFlipTripletPredicate")
1103 def _object_cast_to_CoinFlipTripletPredicate(o):
1104 r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1105 return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1107 _object_types.append(
"CoinFlipQuadPredicate")
1110 def _object_cast_to_CoinFlipQuadPredicate(o):
1111 r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1112 return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1114 _object_types.append(
"UnorderedTypeSingletonPredicate")
1117 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1118 r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1119 return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1121 _object_types.append(
"UnorderedTypePairPredicate")
1124 def _object_cast_to_UnorderedTypePairPredicate(o):
1125 r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1126 return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1128 _object_types.append(
"UnorderedTypeTripletPredicate")
1131 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1132 r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1133 return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1135 _object_types.append(
"UnorderedTypeQuadPredicate")
1138 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1139 r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1140 return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1142 _object_types.append(
"OrderedTypeSingletonPredicate")
1145 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1146 r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1147 return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1149 _object_types.append(
"OrderedTypePairPredicate")
1152 def _object_cast_to_OrderedTypePairPredicate(o):
1153 r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1154 return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1156 _object_types.append(
"OrderedTypeTripletPredicate")
1159 def _object_cast_to_OrderedTypeTripletPredicate(o):
1160 r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1161 return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1163 _object_types.append(
"OrderedTypeQuadPredicate")
1166 def _object_cast_to_OrderedTypeQuadPredicate(o):
1167 r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1168 return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1170 _object_types.append(
"AllSameSingletonPredicate")
1173 def _object_cast_to_AllSameSingletonPredicate(o):
1174 r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1175 return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1177 _object_types.append(
"AllSamePairPredicate")
1180 def _object_cast_to_AllSamePairPredicate(o):
1181 r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1182 return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1184 _object_types.append(
"AllSameTripletPredicate")
1187 def _object_cast_to_AllSameTripletPredicate(o):
1188 r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1189 return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1191 _object_types.append(
"AllSameQuadPredicate")
1194 def _object_cast_to_AllSameQuadPredicate(o):
1195 r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1196 return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1199 return [XYZ(x)
for x
in l]
1200 _plural_types.append(
"XYZs")
1203 _value_types.append(
"XYZ")
1207 return [XYZR(x)
for x
in l]
1208 _plural_types.append(
"XYZRs")
1211 _value_types.append(
"XYZR")
1214 def RigidBodies(l=[]):
1215 return [RigidBody(x)
for x
in l]
1216 _plural_types.append(
"RigidBodies")
1219 _value_types.append(
"RigidBody")
1222 def RigidBodyMembers(l=[]):
1223 return [RigidBodyMember(x)
for x
in l]
1224 _plural_types.append(
"RigidBodyMembers")
1227 _value_types.append(
"RigidBodyMember")
1230 def RigidMembers(l=[]):
1231 return [RigidMember(x)
for x
in l]
1232 _plural_types.append(
"RigidMembers")
1235 _value_types.append(
"RigidMember")
1238 def NonRigidMembers(l=[]):
1239 return [NonRigidMember(x)
for x
in l]
1240 _plural_types.append(
"NonRigidMembers")
1243 _value_types.append(
"NonRigidMember")
1246 def Centroids(l=[]):
1247 return [Centroid(x)
for x
in l]
1248 _plural_types.append(
"Centroids")
1251 _value_types.append(
"Centroid")
1255 return [Cover(x)
for x
in l]
1256 _plural_types.append(
"Covers")
1259 _value_types.append(
"Cover")
1262 def References(l=[]):
1263 return [Reference(x)
for x
in l]
1264 _plural_types.append(
"References")
1267 _value_types.append(
"Reference")
1271 _plural_types.append(
"ParticleTypes")
1272 _value_types.append(
"ParticleType")
1276 return [Typed(x)
for x
in l]
1277 _plural_types.append(
"Typeds")
1280 _value_types.append(
"Typed")
1283 def GenericHierarchies(l=[]):
1284 return [Hierarchy(x)
for x
in l]
1285 _plural_types.append(
"GenericHierarchies")
1288 _value_types.append(
"Hierarchy")
1291 def Gaussians(l=[]):
1292 return [Gaussian(x)
for x
in l]
1293 _plural_types.append(
"Gaussians")
1296 _value_types.append(
"Gaussian")
1299 def Directions(l=[]):
1300 return [Direction(x)
for x
in l]
1301 _plural_types.append(
"Directions")
1304 _value_types.append(
"Direction")
1307 def DirectionAngles(l=[]):
1308 return [DirectionAngle(x)
for x
in l]
1309 _plural_types.append(
"DirectionAngles")
1312 _value_types.append(
"DirectionAngle")
1316 return [Surface(x)
for x
in l]
1317 _plural_types.append(
"Surfaces")
1320 _value_types.append(
"Surface")
1323 def Provenances(l=[]):
1324 return [Provenance(x)
for x
in l]
1325 _plural_types.append(
"Provenances")
1328 _value_types.append(
"Provenance")
1331 def StructureProvenances(l=[]):
1332 return [StructureProvenance(x)
for x
in l]
1333 _plural_types.append(
"StructureProvenances")
1336 _value_types.append(
"StructureProvenance")
1339 def SampleProvenances(l=[]):
1340 return [SampleProvenance(x)
for x
in l]
1341 _plural_types.append(
"SampleProvenances")
1344 _value_types.append(
"SampleProvenance")
1347 def ClusterProvenances(l=[]):
1348 return [ClusterProvenance(x)
for x
in l]
1349 _plural_types.append(
"ClusterProvenances")
1352 _value_types.append(
"ClusterProvenance")
1355 def CombineProvenances(l=[]):
1356 return [CombineProvenance(x)
for x
in l]
1357 _plural_types.append(
"CombineProvenances")
1360 _value_types.append(
"CombineProvenance")
1363 def FilterProvenances(l=[]):
1364 return [FilterProvenance(x)
for x
in l]
1365 _plural_types.append(
"FilterProvenances")
1368 _value_types.append(
"FilterProvenance")
1371 def ScriptProvenances(l=[]):
1372 return [ScriptProvenance(x)
for x
in l]
1373 _plural_types.append(
"ScriptProvenances")
1376 _value_types.append(
"ScriptProvenance")
1379 def SoftwareProvenances(l=[]):
1380 return [SoftwareProvenance(x)
for x
in l]
1381 _plural_types.append(
"SoftwareProvenances")
1384 _value_types.append(
"SoftwareProvenance")
1387 def Provenanceds(l=[]):
1388 return [Provenanced(x)
for x
in l]
1389 _plural_types.append(
"Provenanceds")
1392 _value_types.append(
"Provenanced")
1395 HierarchyCounters=list
1396 _plural_types.append(
"HierarchyCounters")
1397 _value_types.append(
"HierarchyCounter")
1400 HierarchyTraitsList=list
1401 _plural_types.append(
"HierarchyTraitsList")
1402 _value_types.append(
"HierarchyTraits")
1405 _object_types.append(
"TruncatedHarmonicBound")
1408 def _object_cast_to_TruncatedHarmonicBound(o):
1409 r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1410 return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1412 _object_types.append(
"TruncatedHarmonicLowerBound")
1415 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1416 r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1417 return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1419 _object_types.append(
"TruncatedHarmonicUpperBound")
1422 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1423 r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1424 return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1426 _object_types.append(
"HarmonicDistancePairScore")
1429 def _object_cast_to_HarmonicDistancePairScore(o):
1430 r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1431 return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1433 _object_types.append(
"DistancePairScore")
1436 def _object_cast_to_DistancePairScore(o):
1437 r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1438 return _IMP_core._object_cast_to_DistancePairScore(o)
1440 _object_types.append(
"XYZRGeometry")
1443 def _object_cast_to_XYZRGeometry(o):
1444 r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1445 return _IMP_core._object_cast_to_XYZRGeometry(o)
1447 _object_types.append(
"XYZRsGeometry")
1450 def _object_cast_to_XYZRsGeometry(o):
1451 r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1452 return _IMP_core._object_cast_to_XYZRsGeometry(o)
1454 _object_types.append(
"XYZDerivativeGeometry")
1457 def _object_cast_to_XYZDerivativeGeometry(o):
1458 r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1459 return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1461 _object_types.append(
"XYZDerivativesGeometry")
1464 def _object_cast_to_XYZDerivativesGeometry(o):
1465 r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1466 return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1468 _object_types.append(
"RigidBodyDerivativeGeometry")
1471 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1472 r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1473 return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1475 _object_types.append(
"RigidBodyDerivativesGeometry")
1478 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1479 r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1480 return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1482 _object_types.append(
"RigidBodyHierarchyGeometry")
1485 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1486 r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1487 return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1489 _object_types.append(
"RigidBodyFrameGeometry")
1492 def _object_cast_to_RigidBodyFrameGeometry(o):
1493 r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1494 return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1496 _object_types.append(
"RigidBodyFramesGeometry")
1499 def _object_cast_to_RigidBodyFramesGeometry(o):
1500 r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1501 return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1503 _object_types.append(
"RigidBodyTorque")
1506 def _object_cast_to_RigidBodyTorque(o):
1507 r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1508 return _IMP_core._object_cast_to_RigidBodyTorque(o)
1510 _object_types.append(
"EdgePairGeometry")
1513 def _object_cast_to_EdgePairGeometry(o):
1514 r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1515 return _IMP_core._object_cast_to_EdgePairGeometry(o)
1517 _object_types.append(
"EdgePairsGeometry")
1520 def _object_cast_to_EdgePairsGeometry(o):
1521 r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1522 return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1524 _object_types.append(
"SurfaceGeometry")
1527 def _object_cast_to_SurfaceGeometry(o):
1528 r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1529 return _IMP_core._object_cast_to_SurfaceGeometry(o)
1531 _object_types.append(
"SurfaceGeometryConstraint")
1534 def _object_cast_to_SurfaceGeometryConstraint(o):
1535 r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1536 return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1538 _object_types.append(
"AttributeSingletonPredicate")
1541 def _object_cast_to_AttributeSingletonPredicate(o):
1542 r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1543 return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1545 _object_types.append(
"InBoundingBox3DSingletonPredicate")
1548 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1549 r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1550 return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1552 _object_types.append(
"IsCollisionPairPredicate")
1555 def _object_cast_to_IsCollisionPairPredicate(o):
1556 r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1557 return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1559 BinormalTermList=list
1560 _plural_types.append(
"BinormalTermList")
1561 _value_types.append(
"BinormalTerm")
1564 _object_types.append(
"MultipleBinormalRestraint")
1567 def _object_cast_to_MultipleBinormalRestraint(o):
1568 r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1569 return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1570 class ClosePairsFinder(IMP._ParticleInputs,
IMP.Object):
1571 r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1573 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1575 def __init__(self, *args, **kwargs):
1576 raise AttributeError(
"No constructor defined - class is abstract")
1577 __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1579 def get_close_pairs(self, *args):
1581 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1582 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1583 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1584 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1586 return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1588 def set_distance(self, d):
1589 r"""set_distance(ClosePairsFinder self, double d)"""
1590 return _IMP_core.ClosePairsFinder_set_distance(self, d)
1593 r"""get_distance(ClosePairsFinder self) -> double"""
1594 return _IMP_core.ClosePairsFinder_get_distance(self)
1595 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)
1596 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1597 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1598 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1600 def remove_pair_filter(self, d):
1601 r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1602 return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1604 def _python_index_pair_filter(self, d, start, stop):
1605 r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1606 return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1608 def remove_pair_filters(self, d):
1609 r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1610 return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1612 def set_pair_filters(self, ps):
1613 r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1614 return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1616 def set_pair_filters_order(self, objs):
1617 r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618 return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1620 def add_pair_filter(self, obj):
1621 r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1622 return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1624 def add_pair_filters(self, objs):
1625 r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1626 return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1628 def clear_pair_filters(self):
1629 r"""clear_pair_filters(ClosePairsFinder self)"""
1630 return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1632 def get_number_of_pair_filters(self):
1633 r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1634 return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1636 def get_has_pair_filters(self):
1637 r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1638 return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1640 def get_pair_filter(self, i):
1641 r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1642 return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1644 def get_pair_filters(self):
1645 r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1646 return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1648 def erase_pair_filter(self, i):
1649 r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1650 return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1652 def reserve_pair_filters(self, sz):
1653 r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1654 return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1657 r"""__str__(ClosePairsFinder self) -> std::string"""
1658 return _IMP_core.ClosePairsFinder___str__(self)
1661 r"""__repr__(ClosePairsFinder self) -> std::string"""
1662 return _IMP_core.ClosePairsFinder___repr__(self)
1666 return _object_cast_to_ClosePairsFinder(o)
1670 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1671 class MonteCarloMoverResult(IMP._Value):
1672 r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1674 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1676 def __init__(self, *args):
1677 r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1678 _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1681 r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1682 return _IMP_core.MonteCarloMoverResult___hash__(self)
1684 def show(self, *args):
1685 r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1686 return _IMP_core.MonteCarloMoverResult_show(self, *args)
1688 def __cmp__(self, o):
1689 r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1690 return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1692 def __eq__(self, o):
1693 r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694 return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1696 def __ne__(self, o):
1697 r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698 return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1700 def __lt__(self, o):
1701 r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702 return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1704 def __gt__(self, o):
1705 r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706 return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1708 def __ge__(self, o):
1709 r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1710 return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1712 def __le__(self, o):
1713 r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1714 return _IMP_core.MonteCarloMoverResult___le__(self, o)
1716 def get_moved_particles(self):
1717 r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1718 return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1720 def set_moved_particles(self, v):
1721 r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1722 return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1724 def get_proposal_ratio(self):
1725 r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1726 return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1728 def set_proposal_ratio(self, v):
1729 r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1730 return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1733 r"""__str__(MonteCarloMoverResult self) -> std::string"""
1734 return _IMP_core.MonteCarloMoverResult___str__(self)
1737 r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1738 return _IMP_core.MonteCarloMoverResult___repr__(self)
1739 __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1742 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1744 r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1748 def __init__(self, *args):
1750 __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1751 __init__(MonteCarloMover self) -> MonteCarloMover
1753 if self.__class__ == MonteCarloMover:
1757 _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1759 if self.__class__ != MonteCarloMover:
1760 _director_objects.register(self)
1766 r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1767 return _IMP_core.MonteCarloMover_propose(self)
1770 r"""reject(MonteCarloMover self)"""
1771 return _IMP_core.MonteCarloMover_reject(self)
1774 r"""accept(MonteCarloMover self)"""
1775 return _IMP_core.MonteCarloMover_accept(self)
1777 def get_number_of_proposed(self):
1778 r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1779 return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1781 def get_number_of_accepted(self):
1782 r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1783 return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1785 def reset_statistics(self):
1786 r"""reset_statistics(MonteCarloMover self)"""
1787 return _IMP_core.MonteCarloMover_reset_statistics(self)
1789 def do_propose(self):
1790 r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1791 return _IMP_core.MonteCarloMover_do_propose(self)
1793 def do_reject(self):
1794 r"""do_reject(MonteCarloMover self)"""
1795 return _IMP_core.MonteCarloMover_do_reject(self)
1797 def do_accept(self):
1798 r"""do_accept(MonteCarloMover self)"""
1799 return _IMP_core.MonteCarloMover_do_accept(self)
1801 def do_get_outputs(self):
1802 r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1803 return _IMP_core.MonteCarloMover_do_get_outputs(self)
1806 r"""__str__(MonteCarloMover self) -> std::string"""
1807 return _IMP_core.MonteCarloMover___str__(self)
1810 r"""__repr__(MonteCarloMover self) -> std::string"""
1811 return _IMP_core.MonteCarloMover___repr__(self)
1815 return _object_cast_to_MonteCarloMover(o)
1818 def get_type_name(self):
1819 return self.__class__.__name__
1820 def do_show(self, out):
1822 def get_version_info(self):
1823 if"IMP::core" ==
"IMP":
1824 return VersionInfo(self.__module__,
1831 return _object_cast_to_MonteCarloMover(o)
1833 __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1834 def __disown__(self):
1836 _IMP_core.disown_MonteCarloMover(self)
1837 return weakref.proxy(self)
1839 def do_destroy(self):
1840 r"""do_destroy(MonteCarloMover self)"""
1841 return _IMP_core.MonteCarloMover_do_destroy(self)
1843 def handle_set_has_required_score_states(self, arg0):
1844 r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1845 return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1847 def do_get_inputs(self):
1848 r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1849 return _IMP_core.MonteCarloMover_do_get_inputs(self)
1851 def do_get_interactions(self):
1852 r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1853 return _IMP_core.MonteCarloMover_do_get_interactions(self)
1856 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1858 r"""Proxy of C++ IMP::core::XYZ class."""
1860 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1863 def get_coordinate_key(i):
1864 r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1865 return _IMP_core.XYZ_get_coordinate_key(i)
1867 def __init__(self, *args):
1869 __init__(XYZ self) -> XYZ
1870 __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1871 __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1873 _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1875 def show(self, *args):
1876 r"""show(XYZ self, _ostream out=std::cout)"""
1877 return _IMP_core.XYZ_show(self, *args)
1880 def setup_particle(*args):
1882 setup_particle(Model m, ParticleIndex pi) -> XYZ
1883 setup_particle(_ParticleAdaptor pa) -> XYZ
1884 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1885 setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1887 return _IMP_core.XYZ_setup_particle(*args)
1890 r"""get_x(XYZ self) -> IMP::Float"""
1891 return _IMP_core.XYZ_get_x(self)
1894 r"""set_x(XYZ self, IMP::Float t)"""
1895 return _IMP_core.XYZ_set_x(self, t)
1898 r"""get_y(XYZ self) -> IMP::Float"""
1899 return _IMP_core.XYZ_get_y(self)
1902 r"""set_y(XYZ self, IMP::Float t)"""
1903 return _IMP_core.XYZ_set_y(self, t)
1906 r"""get_z(XYZ self) -> IMP::Float"""
1907 return _IMP_core.XYZ_get_z(self)
1910 r"""set_z(XYZ self, IMP::Float t)"""
1911 return _IMP_core.XYZ_set_z(self, t)
1913 def set_coordinate(self, i, v):
1914 r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1915 return _IMP_core.XYZ_set_coordinate(self, i, v)
1917 def set_coordinates(self, v):
1918 r"""set_coordinates(XYZ self, Vector3D v)"""
1919 return _IMP_core.XYZ_set_coordinates(self, v)
1921 def get_coordinate(self, i):
1922 r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1923 return _IMP_core.XYZ_get_coordinate(self, i)
1925 def add_to_derivatives(self, v, d):
1926 r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1927 return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1929 def get_coordinates_are_optimized(self):
1930 r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1931 return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1933 def set_coordinates_are_optimized(self, tf):
1934 r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1935 return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1937 def get_vector_to(self, b):
1938 r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1939 return _IMP_core.XYZ_get_vector_to(self, b)
1941 def get_coordinates(self):
1942 r"""get_coordinates(XYZ self) -> Vector3D"""
1943 return _IMP_core.XYZ_get_coordinates(self)
1945 def get_derivatives(self):
1946 r"""get_derivatives(XYZ self) -> Vector3D"""
1947 return _IMP_core.XYZ_get_derivatives(self)
1950 def get_is_setup(*args):
1952 get_is_setup(_ParticleAdaptor p) -> bool
1953 get_is_setup(Model m, ParticleIndex pi) -> bool
1955 return _IMP_core.XYZ_get_is_setup(*args)
1959 r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1960 return _IMP_core.XYZ_get_xyz_keys()
1962 def add_attribute(self, *args):
1964 add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1965 add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1966 add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1967 add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1968 add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1969 add_attribute(XYZ self, StringKey a0, IMP::String a1)
1970 add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1971 add_attribute(XYZ self, ObjectKey a0, Object a1)
1972 add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1973 add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1974 add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1975 add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1977 return _IMP_core.XYZ_add_attribute(self, *args)
1979 def get_value(self, *args):
1981 get_value(XYZ self, FloatKey a0) -> IMP::Float
1982 get_value(XYZ self, IntKey a0) -> IMP::Int
1983 get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1984 get_value(XYZ self, IntsKey a0) -> IMP::Ints
1985 get_value(XYZ self, StringKey a0) -> IMP::String
1986 get_value(XYZ self, ParticleIndexKey a0) -> Particle
1987 get_value(XYZ self, ObjectKey a0) -> Object
1988 get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1989 get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1990 get_value(XYZ self, SparseStringKey a0) -> IMP::String
1991 get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1993 return _IMP_core.XYZ_get_value(self, *args)
1995 def set_value(self, *args):
1997 set_value(XYZ self, FloatKey a0, IMP::Float a1)
1998 set_value(XYZ self, IntKey a0, IMP::Int a1)
1999 set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
2000 set_value(XYZ self, IntsKey a0, IMP::Ints a1)
2001 set_value(XYZ self, StringKey a0, IMP::String a1)
2002 set_value(XYZ self, ParticleIndexKey a0, Particle a1)
2003 set_value(XYZ self, ObjectKey a0, Object a1)
2004 set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
2005 set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2006 set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2007 set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2009 return _IMP_core.XYZ_set_value(self, *args)
2011 def remove_attribute(self, *args):
2013 remove_attribute(XYZ self, FloatKey a0)
2014 remove_attribute(XYZ self, IntKey a0)
2015 remove_attribute(XYZ self, FloatsKey a0)
2016 remove_attribute(XYZ self, IntsKey a0)
2017 remove_attribute(XYZ self, StringKey a0)
2018 remove_attribute(XYZ self, ParticleIndexKey a0)
2019 remove_attribute(XYZ self, ObjectKey a0)
2020 remove_attribute(XYZ self, SparseFloatKey a0)
2021 remove_attribute(XYZ self, SparseIntKey a0)
2022 remove_attribute(XYZ self, SparseStringKey a0)
2023 remove_attribute(XYZ self, SparseParticleIndexKey a0)
2025 return _IMP_core.XYZ_remove_attribute(self, *args)
2027 def has_attribute(self, *args):
2029 has_attribute(XYZ self, FloatKey a0) -> bool
2030 has_attribute(XYZ self, IntKey a0) -> bool
2031 has_attribute(XYZ self, FloatsKey a0) -> bool
2032 has_attribute(XYZ self, IntsKey a0) -> bool
2033 has_attribute(XYZ self, StringKey a0) -> bool
2034 has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2035 has_attribute(XYZ self, ObjectKey a0) -> bool
2036 has_attribute(XYZ self, SparseFloatKey a0) -> bool
2037 has_attribute(XYZ self, SparseIntKey a0) -> bool
2038 has_attribute(XYZ self, SparseStringKey a0) -> bool
2039 has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2041 return _IMP_core.XYZ_has_attribute(self, *args)
2043 def get_derivative(self, *args):
2045 get_derivative(XYZ self, int i) -> IMP::Float
2046 get_derivative(XYZ self, FloatKey a0) -> double
2048 return _IMP_core.XYZ_get_derivative(self, *args)
2051 r"""get_name(XYZ self) -> std::string"""
2052 return _IMP_core.XYZ_get_name(self)
2054 def clear_caches(self):
2055 r"""clear_caches(XYZ self)"""
2056 return _IMP_core.XYZ_clear_caches(self)
2058 def set_name(self, a0):
2059 r"""set_name(XYZ self, std::string a0)"""
2060 return _IMP_core.XYZ_set_name(self, a0)
2063 r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2064 return _IMP_core.XYZ_set_check_level(self, a0)
2066 def add_to_derivative(self, *args):
2068 add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2069 add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2071 return _IMP_core.XYZ_add_to_derivative(self, *args)
2073 def set_is_optimized(self, a0, a1):
2074 r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2075 return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2077 def get_is_optimized(self, a0):
2078 r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2079 return _IMP_core.XYZ_get_is_optimized(self, a0)
2082 r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2083 return _IMP_core.XYZ_get_check_level(self)
2085 def __eq__(self, *args):
2087 __eq__(XYZ self, XYZ o) -> bool
2088 __eq__(XYZ self, Particle d) -> bool
2090 return _IMP_core.XYZ___eq__(self, *args)
2092 def __ne__(self, *args):
2094 __ne__(XYZ self, XYZ o) -> bool
2095 __ne__(XYZ self, Particle d) -> bool
2097 return _IMP_core.XYZ___ne__(self, *args)
2099 def __le__(self, *args):
2101 __le__(XYZ self, XYZ o) -> bool
2102 __le__(XYZ self, Particle d) -> bool
2104 return _IMP_core.XYZ___le__(self, *args)
2106 def __lt__(self, *args):
2108 __lt__(XYZ self, XYZ o) -> bool
2109 __lt__(XYZ self, Particle d) -> bool
2111 return _IMP_core.XYZ___lt__(self, *args)
2113 def __ge__(self, *args):
2115 __ge__(XYZ self, XYZ o) -> bool
2116 __ge__(XYZ self, Particle d) -> bool
2118 return _IMP_core.XYZ___ge__(self, *args)
2120 def __gt__(self, *args):
2122 __gt__(XYZ self, XYZ o) -> bool
2123 __gt__(XYZ self, Particle d) -> bool
2125 return _IMP_core.XYZ___gt__(self, *args)
2128 r"""__hash__(XYZ self) -> std::size_t"""
2129 return _IMP_core.XYZ___hash__(self)
2132 r"""__str__(XYZ self) -> std::string"""
2133 return _IMP_core.XYZ___str__(self)
2136 r"""__repr__(XYZ self) -> std::string"""
2137 return _IMP_core.XYZ___repr__(self)
2139 def _get_as_binary(self):
2140 r"""_get_as_binary(XYZ self) -> PyObject *"""
2141 return _IMP_core.XYZ__get_as_binary(self)
2143 def _set_from_binary(self, p):
2144 r"""_set_from_binary(XYZ self, PyObject * p)"""
2145 return _IMP_core.XYZ__set_from_binary(self, p)
2147 def __getstate__(self):
2148 p = self._get_as_binary()
2149 if len(self.__dict__) > 1:
2150 d = self.__dict__.copy()
2155 def __setstate__(self, p):
2156 if not hasattr(self,
'this'):
2158 if isinstance(p, tuple):
2160 self.__dict__.update(d)
2161 return self._set_from_binary(p)
2163 __swig_destroy__ = _IMP_core.delete_XYZ
2166 _IMP_core.XYZ_swigregister(XYZ)
2169 r"""set_vector_geometry(XYZ d, Vector3D v)"""
2170 return _IMP_core.set_vector_geometry(d, v)
2173 r"""get_vector_geometry(XYZ d) -> Vector3D"""
2174 return _IMP_core.get_vector_geometry(d)
2177 r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2178 return _IMP_core.get_dihedral(a, b, c, d)
2180 r"""Proxy of C++ IMP::core::XYZR class."""
2182 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2184 def __init__(self, *args):
2186 __init__(XYZR self) -> XYZR
2187 __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2188 __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2190 _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2192 def show(self, *args):
2193 r"""show(XYZR self, _ostream out=std::cout)"""
2194 return _IMP_core.XYZR_show(self, *args)
2197 def setup_particle(*args):
2199 setup_particle(Model m, ParticleIndex pi) -> XYZR
2200 setup_particle(_ParticleAdaptor pa) -> XYZR
2201 setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2202 setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2203 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2204 setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2206 return _IMP_core.XYZR_setup_particle(*args)
2209 def get_is_setup(*args):
2211 get_is_setup(_ParticleAdaptor p) -> bool
2212 get_is_setup(Model m, ParticleIndex pi) -> bool
2214 return _IMP_core.XYZR_get_is_setup(*args)
2216 def get_radius(self):
2217 r"""get_radius(XYZR self) -> double"""
2218 return _IMP_core.XYZR_get_radius(self)
2220 def set_radius(self, r):
2221 r"""set_radius(XYZR self, double r)"""
2222 return _IMP_core.XYZR_set_radius(self, r)
2224 def get_sphere(self):
2225 r"""get_sphere(XYZR self) -> Sphere3D"""
2226 return _IMP_core.XYZR_get_sphere(self)
2228 def set_sphere(self, s):
2229 r"""set_sphere(XYZR self, Sphere3D s)"""
2230 return _IMP_core.XYZR_set_sphere(self, s)
2233 def get_radius_key():
2234 r"""get_radius_key() -> FloatKey"""
2235 return _IMP_core.XYZR_get_radius_key()
2237 def add_to_radius_derivative(self, v, d):
2238 r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2239 return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2241 def add_attribute(self, *args):
2243 add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2244 add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2245 add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2246 add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2247 add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2248 add_attribute(XYZR self, StringKey a0, IMP::String a1)
2249 add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2250 add_attribute(XYZR self, ObjectKey a0, Object a1)
2251 add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2252 add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2253 add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2254 add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2256 return _IMP_core.XYZR_add_attribute(self, *args)
2258 def get_value(self, *args):
2260 get_value(XYZR self, FloatKey a0) -> IMP::Float
2261 get_value(XYZR self, IntKey a0) -> IMP::Int
2262 get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2263 get_value(XYZR self, IntsKey a0) -> IMP::Ints
2264 get_value(XYZR self, StringKey a0) -> IMP::String
2265 get_value(XYZR self, ParticleIndexKey a0) -> Particle
2266 get_value(XYZR self, ObjectKey a0) -> Object
2267 get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2268 get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2269 get_value(XYZR self, SparseStringKey a0) -> IMP::String
2270 get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2272 return _IMP_core.XYZR_get_value(self, *args)
2274 def set_value(self, *args):
2276 set_value(XYZR self, FloatKey a0, IMP::Float a1)
2277 set_value(XYZR self, IntKey a0, IMP::Int a1)
2278 set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2279 set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2280 set_value(XYZR self, StringKey a0, IMP::String a1)
2281 set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2282 set_value(XYZR self, ObjectKey a0, Object a1)
2283 set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2284 set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2285 set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2286 set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2288 return _IMP_core.XYZR_set_value(self, *args)
2290 def remove_attribute(self, *args):
2292 remove_attribute(XYZR self, FloatKey a0)
2293 remove_attribute(XYZR self, IntKey a0)
2294 remove_attribute(XYZR self, FloatsKey a0)
2295 remove_attribute(XYZR self, IntsKey a0)
2296 remove_attribute(XYZR self, StringKey a0)
2297 remove_attribute(XYZR self, ParticleIndexKey a0)
2298 remove_attribute(XYZR self, ObjectKey a0)
2299 remove_attribute(XYZR self, SparseFloatKey a0)
2300 remove_attribute(XYZR self, SparseIntKey a0)
2301 remove_attribute(XYZR self, SparseStringKey a0)
2302 remove_attribute(XYZR self, SparseParticleIndexKey a0)
2304 return _IMP_core.XYZR_remove_attribute(self, *args)
2306 def has_attribute(self, *args):
2308 has_attribute(XYZR self, FloatKey a0) -> bool
2309 has_attribute(XYZR self, IntKey a0) -> bool
2310 has_attribute(XYZR self, FloatsKey a0) -> bool
2311 has_attribute(XYZR self, IntsKey a0) -> bool
2312 has_attribute(XYZR self, StringKey a0) -> bool
2313 has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2314 has_attribute(XYZR self, ObjectKey a0) -> bool
2315 has_attribute(XYZR self, SparseFloatKey a0) -> bool
2316 has_attribute(XYZR self, SparseIntKey a0) -> bool
2317 has_attribute(XYZR self, SparseStringKey a0) -> bool
2318 has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2320 return _IMP_core.XYZR_has_attribute(self, *args)
2322 def get_derivative(self, a0):
2323 r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2324 return _IMP_core.XYZR_get_derivative(self, a0)
2327 r"""get_name(XYZR self) -> std::string"""
2328 return _IMP_core.XYZR_get_name(self)
2330 def clear_caches(self):
2331 r"""clear_caches(XYZR self)"""
2332 return _IMP_core.XYZR_clear_caches(self)
2334 def set_name(self, a0):
2335 r"""set_name(XYZR self, std::string a0)"""
2336 return _IMP_core.XYZR_set_name(self, a0)
2339 r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2340 return _IMP_core.XYZR_set_check_level(self, a0)
2342 def add_to_derivative(self, a0, a1, a2):
2343 r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2344 return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2346 def set_is_optimized(self, a0, a1):
2347 r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2348 return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2350 def get_is_optimized(self, a0):
2351 r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2352 return _IMP_core.XYZR_get_is_optimized(self, a0)
2355 r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2356 return _IMP_core.XYZR_get_check_level(self)
2358 def __eq__(self, *args):
2360 __eq__(XYZR self, XYZR o) -> bool
2361 __eq__(XYZR self, Particle d) -> bool
2363 return _IMP_core.XYZR___eq__(self, *args)
2365 def __ne__(self, *args):
2367 __ne__(XYZR self, XYZR o) -> bool
2368 __ne__(XYZR self, Particle d) -> bool
2370 return _IMP_core.XYZR___ne__(self, *args)
2372 def __le__(self, *args):
2374 __le__(XYZR self, XYZR o) -> bool
2375 __le__(XYZR self, Particle d) -> bool
2377 return _IMP_core.XYZR___le__(self, *args)
2379 def __lt__(self, *args):
2381 __lt__(XYZR self, XYZR o) -> bool
2382 __lt__(XYZR self, Particle d) -> bool
2384 return _IMP_core.XYZR___lt__(self, *args)
2386 def __ge__(self, *args):
2388 __ge__(XYZR self, XYZR o) -> bool
2389 __ge__(XYZR self, Particle d) -> bool
2391 return _IMP_core.XYZR___ge__(self, *args)
2393 def __gt__(self, *args):
2395 __gt__(XYZR self, XYZR o) -> bool
2396 __gt__(XYZR self, Particle d) -> bool
2398 return _IMP_core.XYZR___gt__(self, *args)
2401 r"""__hash__(XYZR self) -> std::size_t"""
2402 return _IMP_core.XYZR___hash__(self)
2405 r"""__str__(XYZR self) -> std::string"""
2406 return _IMP_core.XYZR___str__(self)
2409 r"""__repr__(XYZR self) -> std::string"""
2410 return _IMP_core.XYZR___repr__(self)
2412 def _get_as_binary(self):
2413 r"""_get_as_binary(XYZR self) -> PyObject *"""
2414 return _IMP_core.XYZR__get_as_binary(self)
2416 def _set_from_binary(self, p):
2417 r"""_set_from_binary(XYZR self, PyObject * p)"""
2418 return _IMP_core.XYZR__set_from_binary(self, p)
2420 def __getstate__(self):
2421 p = self._get_as_binary()
2422 if len(self.__dict__) > 1:
2423 d = self.__dict__.copy()
2428 def __setstate__(self, p):
2429 if not hasattr(self,
'this'):
2431 if isinstance(p, tuple):
2433 self.__dict__.update(d)
2434 return self._set_from_binary(p)
2436 __swig_destroy__ = _IMP_core.delete_XYZR
2439 _IMP_core.XYZR_swigregister(XYZR)
2442 r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2443 return _IMP_core.set_enclosing_sphere(b, v, slack)
2446 r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2447 return _IMP_core.set_enclosing_radius(b, v)
2450 r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2451 return _IMP_core.get_enclosing_sphere(v)
2454 r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2455 return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2457 r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2459 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2461 def __init__(self, *args):
2463 __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2464 __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2466 _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2468 def get_version_info(self):
2469 r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2470 return _IMP_core.XYZRGeometry_get_version_info(self)
2471 __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2474 r"""__str__(XYZRGeometry self) -> std::string"""
2475 return _IMP_core.XYZRGeometry___str__(self)
2478 r"""__repr__(XYZRGeometry self) -> std::string"""
2479 return _IMP_core.XYZRGeometry___repr__(self)
2483 return _object_cast_to_XYZRGeometry(o)
2487 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2489 r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2491 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2493 def __init__(self, sc):
2494 r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2495 _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2497 def get_version_info(self):
2498 r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2499 return _IMP_core.XYZRsGeometry_get_version_info(self)
2500 __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2503 r"""__str__(XYZRsGeometry self) -> std::string"""
2504 return _IMP_core.XYZRsGeometry___str__(self)
2507 r"""__repr__(XYZRsGeometry self) -> std::string"""
2508 return _IMP_core.XYZRsGeometry___repr__(self)
2512 return _object_cast_to_XYZRsGeometry(o)
2516 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2518 r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2522 def __init__(self, *args):
2524 __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2525 __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2527 _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2529 def get_version_info(self):
2530 r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2531 return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2532 __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2535 r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2536 return _IMP_core.XYZDerivativeGeometry___str__(self)
2539 r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2540 return _IMP_core.XYZDerivativeGeometry___repr__(self)
2544 return _object_cast_to_XYZDerivativeGeometry(o)
2548 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2550 r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2552 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2554 def __init__(self, sc):
2555 r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2556 _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2558 def get_version_info(self):
2559 r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2560 return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2561 __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2564 r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2565 return _IMP_core.XYZDerivativesGeometry___str__(self)
2568 r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2569 return _IMP_core.XYZDerivativesGeometry___repr__(self)
2573 return _object_cast_to_XYZDerivativesGeometry(o)
2577 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2579 r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2581 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2583 def __init__(self, pp):
2584 r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2585 _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2587 def get_version_info(self):
2588 r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2589 return _IMP_core.EdgePairGeometry_get_version_info(self)
2590 __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2593 r"""__str__(EdgePairGeometry self) -> std::string"""
2594 return _IMP_core.EdgePairGeometry___str__(self)
2597 r"""__repr__(EdgePairGeometry self) -> std::string"""
2598 return _IMP_core.EdgePairGeometry___repr__(self)
2602 return _object_cast_to_EdgePairGeometry(o)
2606 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2608 r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2610 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2612 def __init__(self, sc):
2613 r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2614 _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2616 def get_version_info(self):
2617 r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2618 return _IMP_core.EdgePairsGeometry_get_version_info(self)
2619 __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2622 r"""__str__(EdgePairsGeometry self) -> std::string"""
2623 return _IMP_core.EdgePairsGeometry___str__(self)
2626 r"""__repr__(EdgePairsGeometry self) -> std::string"""
2627 return _IMP_core.EdgePairsGeometry___repr__(self)
2631 return _object_cast_to_EdgePairsGeometry(o)
2635 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2637 r"""Proxy of C++ IMP::core::Direction class."""
2639 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2642 def do_setup_particle(m, pi, v):
2643 r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2644 return _IMP_core.Direction_do_setup_particle(m, pi, v)
2646 def __init__(self, *args):
2648 __init__(Direction self) -> Direction
2649 __init__(Direction self, Model m, ParticleIndex id) -> Direction
2650 __init__(Direction self, _ParticleAdaptor d) -> Direction
2652 _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2654 def show(self, *args):
2655 r"""show(Direction self, _ostream out=std::cout)"""
2656 return _IMP_core.Direction_show(self, *args)
2659 def setup_particle(*args):
2661 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2662 setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2664 return _IMP_core.Direction_setup_particle(*args)
2667 def get_is_setup(*args):
2669 get_is_setup(_ParticleAdaptor p) -> bool
2670 get_is_setup(Model m, ParticleIndex pi) -> bool
2672 return _IMP_core.Direction_get_is_setup(*args)
2675 def get_direction_key(i):
2676 r"""get_direction_key(unsigned int i) -> FloatKey"""
2677 return _IMP_core.Direction_get_direction_key(i)
2679 def get_direction_derivative(self, i):
2680 r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2681 return _IMP_core.Direction_get_direction_derivative(self, i)
2683 def get_direction_derivatives(self):
2684 r"""get_direction_derivatives(Direction self) -> Vector3D"""
2685 return _IMP_core.Direction_get_direction_derivatives(self)
2687 def add_to_direction_derivative(self, i, v, d):
2688 r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2689 return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2691 def add_to_direction_derivatives(self, v, d):
2692 r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2693 return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2695 def get_direction_is_optimized(self):
2696 r"""get_direction_is_optimized(Direction self) -> bool"""
2697 return _IMP_core.Direction_get_direction_is_optimized(self)
2699 def set_direction_is_optimized(self, tf):
2700 r"""set_direction_is_optimized(Direction self, bool tf)"""
2701 return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2703 def get_direction(self):
2704 r"""get_direction(Direction self) -> Vector3D"""
2705 return _IMP_core.Direction_get_direction(self)
2707 def set_direction(self, v):
2708 r"""set_direction(Direction self, Vector3D v)"""
2709 return _IMP_core.Direction_set_direction(self, v)
2712 r"""reflect(Direction self)"""
2713 return _IMP_core.Direction_reflect(self)
2715 def add_attribute(self, *args):
2717 add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2718 add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2719 add_attribute(Direction self, IntKey a0, IMP::Int a1)
2720 add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2721 add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2722 add_attribute(Direction self, StringKey a0, IMP::String a1)
2723 add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2724 add_attribute(Direction self, ObjectKey a0, Object a1)
2725 add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2726 add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2727 add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2728 add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2730 return _IMP_core.Direction_add_attribute(self, *args)
2732 def get_value(self, *args):
2734 get_value(Direction self, FloatKey a0) -> IMP::Float
2735 get_value(Direction self, IntKey a0) -> IMP::Int
2736 get_value(Direction self, FloatsKey a0) -> IMP::Floats
2737 get_value(Direction self, IntsKey a0) -> IMP::Ints
2738 get_value(Direction self, StringKey a0) -> IMP::String
2739 get_value(Direction self, ParticleIndexKey a0) -> Particle
2740 get_value(Direction self, ObjectKey a0) -> Object
2741 get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2742 get_value(Direction self, SparseIntKey a0) -> IMP::Int
2743 get_value(Direction self, SparseStringKey a0) -> IMP::String
2744 get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2746 return _IMP_core.Direction_get_value(self, *args)
2748 def set_value(self, *args):
2750 set_value(Direction self, FloatKey a0, IMP::Float a1)
2751 set_value(Direction self, IntKey a0, IMP::Int a1)
2752 set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2753 set_value(Direction self, IntsKey a0, IMP::Ints a1)
2754 set_value(Direction self, StringKey a0, IMP::String a1)
2755 set_value(Direction self, ParticleIndexKey a0, Particle a1)
2756 set_value(Direction self, ObjectKey a0, Object a1)
2757 set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2758 set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2759 set_value(Direction self, SparseStringKey a0, IMP::String a1)
2760 set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2762 return _IMP_core.Direction_set_value(self, *args)
2764 def remove_attribute(self, *args):
2766 remove_attribute(Direction self, FloatKey a0)
2767 remove_attribute(Direction self, IntKey a0)
2768 remove_attribute(Direction self, FloatsKey a0)
2769 remove_attribute(Direction self, IntsKey a0)
2770 remove_attribute(Direction self, StringKey a0)
2771 remove_attribute(Direction self, ParticleIndexKey a0)
2772 remove_attribute(Direction self, ObjectKey a0)
2773 remove_attribute(Direction self, SparseFloatKey a0)
2774 remove_attribute(Direction self, SparseIntKey a0)
2775 remove_attribute(Direction self, SparseStringKey a0)
2776 remove_attribute(Direction self, SparseParticleIndexKey a0)
2778 return _IMP_core.Direction_remove_attribute(self, *args)
2780 def has_attribute(self, *args):
2782 has_attribute(Direction self, FloatKey a0) -> bool
2783 has_attribute(Direction self, IntKey a0) -> bool
2784 has_attribute(Direction self, FloatsKey a0) -> bool
2785 has_attribute(Direction self, IntsKey a0) -> bool
2786 has_attribute(Direction self, StringKey a0) -> bool
2787 has_attribute(Direction self, ParticleIndexKey a0) -> bool
2788 has_attribute(Direction self, ObjectKey a0) -> bool
2789 has_attribute(Direction self, SparseFloatKey a0) -> bool
2790 has_attribute(Direction self, SparseIntKey a0) -> bool
2791 has_attribute(Direction self, SparseStringKey a0) -> bool
2792 has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2794 return _IMP_core.Direction_has_attribute(self, *args)
2796 def get_derivative(self, a0):
2797 r"""get_derivative(Direction self, FloatKey a0) -> double"""
2798 return _IMP_core.Direction_get_derivative(self, a0)
2801 r"""get_name(Direction self) -> std::string"""
2802 return _IMP_core.Direction_get_name(self)
2804 def clear_caches(self):
2805 r"""clear_caches(Direction self)"""
2806 return _IMP_core.Direction_clear_caches(self)
2808 def set_name(self, a0):
2809 r"""set_name(Direction self, std::string a0)"""
2810 return _IMP_core.Direction_set_name(self, a0)
2813 r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2814 return _IMP_core.Direction_set_check_level(self, a0)
2816 def add_to_derivative(self, a0, a1, a2):
2817 r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2818 return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2820 def set_is_optimized(self, a0, a1):
2821 r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2822 return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2824 def get_is_optimized(self, a0):
2825 r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2826 return _IMP_core.Direction_get_is_optimized(self, a0)
2829 r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2830 return _IMP_core.Direction_get_check_level(self)
2832 def __eq__(self, *args):
2834 __eq__(Direction self, Direction o) -> bool
2835 __eq__(Direction self, Particle d) -> bool
2837 return _IMP_core.Direction___eq__(self, *args)
2839 def __ne__(self, *args):
2841 __ne__(Direction self, Direction o) -> bool
2842 __ne__(Direction self, Particle d) -> bool
2844 return _IMP_core.Direction___ne__(self, *args)
2846 def __le__(self, *args):
2848 __le__(Direction self, Direction o) -> bool
2849 __le__(Direction self, Particle d) -> bool
2851 return _IMP_core.Direction___le__(self, *args)
2853 def __lt__(self, *args):
2855 __lt__(Direction self, Direction o) -> bool
2856 __lt__(Direction self, Particle d) -> bool
2858 return _IMP_core.Direction___lt__(self, *args)
2860 def __ge__(self, *args):
2862 __ge__(Direction self, Direction o) -> bool
2863 __ge__(Direction self, Particle d) -> bool
2865 return _IMP_core.Direction___ge__(self, *args)
2867 def __gt__(self, *args):
2869 __gt__(Direction self, Direction o) -> bool
2870 __gt__(Direction self, Particle d) -> bool
2872 return _IMP_core.Direction___gt__(self, *args)
2875 r"""__hash__(Direction self) -> std::size_t"""
2876 return _IMP_core.Direction___hash__(self)
2879 r"""__str__(Direction self) -> std::string"""
2880 return _IMP_core.Direction___str__(self)
2883 r"""__repr__(Direction self) -> std::string"""
2884 return _IMP_core.Direction___repr__(self)
2886 def _get_as_binary(self):
2887 r"""_get_as_binary(Direction self) -> PyObject *"""
2888 return _IMP_core.Direction__get_as_binary(self)
2890 def _set_from_binary(self, p):
2891 r"""_set_from_binary(Direction self, PyObject * p)"""
2892 return _IMP_core.Direction__set_from_binary(self, p)
2894 def __getstate__(self):
2895 p = self._get_as_binary()
2896 if len(self.__dict__) > 1:
2897 d = self.__dict__.copy()
2902 def __setstate__(self, p):
2903 if not hasattr(self,
'this'):
2905 if isinstance(p, tuple):
2907 self.__dict__.update(d)
2908 return self._set_from_binary(p)
2910 __swig_destroy__ = _IMP_core.delete_Direction
2913 _IMP_core.Direction_swigregister(Direction)
2916 r"""get_angle(Direction a, Direction b) -> double"""
2917 return _IMP_core.get_angle(a, b)
2919 r"""Proxy of C++ IMP::core::DirectionAngle class."""
2921 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2923 def __init__(self, *args):
2925 __init__(DirectionAngle self) -> DirectionAngle
2926 __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2927 __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2929 _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2931 def show(self, *args):
2932 r"""show(DirectionAngle self, _ostream out=std::cout)"""
2933 return _IMP_core.DirectionAngle_show(self, *args)
2936 def setup_particle(*args):
2938 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2939 setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2940 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2941 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2943 return _IMP_core.DirectionAngle_setup_particle(*args)
2946 def get_is_setup(*args):
2948 get_is_setup(_ParticleAdaptor p) -> bool
2949 get_is_setup(Model m, ParticleIndex pi) -> bool
2951 return _IMP_core.DirectionAngle_get_is_setup(*args)
2954 def get_angle_key():
2955 r"""get_angle_key() -> FloatKey"""
2956 return _IMP_core.DirectionAngle_get_angle_key()
2959 def get_particle_key(i):
2960 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2961 return _IMP_core.DirectionAngle_get_particle_key(i)
2963 def get_particle(self, *args):
2965 get_particle(DirectionAngle self, unsigned int i) -> Particle
2966 get_particle(DirectionAngle self) -> Particle
2968 return _IMP_core.DirectionAngle_get_particle(self, *args)
2970 def get_particle_index(self, *args):
2972 get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2973 get_particle_index(DirectionAngle self) -> ParticleIndex
2975 return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2978 r"""get_angle(DirectionAngle self) -> IMP::Float"""
2979 return _IMP_core.DirectionAngle_get_angle(self)
2981 def get_angle_derivative(self):
2982 r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2983 return _IMP_core.DirectionAngle_get_angle_derivative(self)
2985 def add_to_angle_derivative(self, v, d):
2986 r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2987 return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2989 def add_attribute(self, *args):
2991 add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2992 add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2993 add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2994 add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2995 add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2996 add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2997 add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2998 add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2999 add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3000 add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3001 add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3002 add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3004 return _IMP_core.DirectionAngle_add_attribute(self, *args)
3006 def get_value(self, *args):
3008 get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3009 get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3010 get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3011 get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3012 get_value(DirectionAngle self, StringKey a0) -> IMP::String
3013 get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3014 get_value(DirectionAngle self, ObjectKey a0) -> Object
3015 get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3016 get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3017 get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3018 get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3020 return _IMP_core.DirectionAngle_get_value(self, *args)
3022 def set_value(self, *args):
3024 set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3025 set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3026 set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3027 set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3028 set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3029 set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3030 set_value(DirectionAngle self, ObjectKey a0, Object a1)
3031 set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3032 set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3033 set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3034 set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3036 return _IMP_core.DirectionAngle_set_value(self, *args)
3038 def remove_attribute(self, *args):
3040 remove_attribute(DirectionAngle self, FloatKey a0)
3041 remove_attribute(DirectionAngle self, IntKey a0)
3042 remove_attribute(DirectionAngle self, FloatsKey a0)
3043 remove_attribute(DirectionAngle self, IntsKey a0)
3044 remove_attribute(DirectionAngle self, StringKey a0)
3045 remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3046 remove_attribute(DirectionAngle self, ObjectKey a0)
3047 remove_attribute(DirectionAngle self, SparseFloatKey a0)
3048 remove_attribute(DirectionAngle self, SparseIntKey a0)
3049 remove_attribute(DirectionAngle self, SparseStringKey a0)
3050 remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3052 return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3054 def has_attribute(self, *args):
3056 has_attribute(DirectionAngle self, FloatKey a0) -> bool
3057 has_attribute(DirectionAngle self, IntKey a0) -> bool
3058 has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3059 has_attribute(DirectionAngle self, IntsKey a0) -> bool
3060 has_attribute(DirectionAngle self, StringKey a0) -> bool
3061 has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3062 has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3063 has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3064 has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3065 has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3066 has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3068 return _IMP_core.DirectionAngle_has_attribute(self, *args)
3070 def get_derivative(self, a0):
3071 r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3072 return _IMP_core.DirectionAngle_get_derivative(self, a0)
3075 r"""get_name(DirectionAngle self) -> std::string"""
3076 return _IMP_core.DirectionAngle_get_name(self)
3078 def clear_caches(self):
3079 r"""clear_caches(DirectionAngle self)"""
3080 return _IMP_core.DirectionAngle_clear_caches(self)
3082 def set_name(self, a0):
3083 r"""set_name(DirectionAngle self, std::string a0)"""
3084 return _IMP_core.DirectionAngle_set_name(self, a0)
3087 r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3088 return _IMP_core.DirectionAngle_set_check_level(self, a0)
3090 def add_to_derivative(self, a0, a1, a2):
3091 r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3092 return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3094 def set_is_optimized(self, a0, a1):
3095 r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3096 return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3098 def get_is_optimized(self, a0):
3099 r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3100 return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3103 r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3104 return _IMP_core.DirectionAngle_get_check_level(self)
3106 def __eq__(self, *args):
3108 __eq__(DirectionAngle self, DirectionAngle o) -> bool
3109 __eq__(DirectionAngle self, Particle d) -> bool
3111 return _IMP_core.DirectionAngle___eq__(self, *args)
3113 def __ne__(self, *args):
3115 __ne__(DirectionAngle self, DirectionAngle o) -> bool
3116 __ne__(DirectionAngle self, Particle d) -> bool
3118 return _IMP_core.DirectionAngle___ne__(self, *args)
3120 def __le__(self, *args):
3122 __le__(DirectionAngle self, DirectionAngle o) -> bool
3123 __le__(DirectionAngle self, Particle d) -> bool
3125 return _IMP_core.DirectionAngle___le__(self, *args)
3127 def __lt__(self, *args):
3129 __lt__(DirectionAngle self, DirectionAngle o) -> bool
3130 __lt__(DirectionAngle self, Particle d) -> bool
3132 return _IMP_core.DirectionAngle___lt__(self, *args)
3134 def __ge__(self, *args):
3136 __ge__(DirectionAngle self, DirectionAngle o) -> bool
3137 __ge__(DirectionAngle self, Particle d) -> bool
3139 return _IMP_core.DirectionAngle___ge__(self, *args)
3141 def __gt__(self, *args):
3143 __gt__(DirectionAngle self, DirectionAngle o) -> bool
3144 __gt__(DirectionAngle self, Particle d) -> bool
3146 return _IMP_core.DirectionAngle___gt__(self, *args)
3149 r"""__hash__(DirectionAngle self) -> std::size_t"""
3150 return _IMP_core.DirectionAngle___hash__(self)
3153 r"""__str__(DirectionAngle self) -> std::string"""
3154 return _IMP_core.DirectionAngle___str__(self)
3157 r"""__repr__(DirectionAngle self) -> std::string"""
3158 return _IMP_core.DirectionAngle___repr__(self)
3160 def _get_as_binary(self):
3161 r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3162 return _IMP_core.DirectionAngle__get_as_binary(self)
3164 def _set_from_binary(self, p):
3165 r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3166 return _IMP_core.DirectionAngle__set_from_binary(self, p)
3168 def __getstate__(self):
3169 p = self._get_as_binary()
3170 if len(self.__dict__) > 1:
3171 d = self.__dict__.copy()
3176 def __setstate__(self, p):
3177 if not hasattr(self,
'this'):
3179 if isinstance(p, tuple):
3181 self.__dict__.update(d)
3182 return self._set_from_binary(p)
3184 __swig_destroy__ = _IMP_core.delete_DirectionAngle
3187 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3189 r"""Proxy of C++ IMP::core::Surface class."""
3191 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3194 def do_setup_particle(*args):
3196 do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3197 do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3199 return _IMP_core.Surface_do_setup_particle(*args)
3201 def __init__(self, *args):
3203 __init__(Surface self) -> Surface
3204 __init__(Surface self, Model m, ParticleIndex id) -> Surface
3205 __init__(Surface self, _ParticleAdaptor d) -> Surface
3207 _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3209 def show(self, *args):
3210 r"""show(Surface self, _ostream out=std::cout)"""
3211 return _IMP_core.Surface_show(self, *args)
3214 def setup_particle(*args):
3216 setup_particle(Model m, ParticleIndex pi) -> Surface
3217 setup_particle(_ParticleAdaptor pa) -> Surface
3218 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3219 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3220 setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3221 setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3222 setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3223 setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3225 return _IMP_core.Surface_setup_particle(*args)
3227 def get_normal_x(self):
3228 r"""get_normal_x(Surface self) -> IMP::Float"""
3229 return _IMP_core.Surface_get_normal_x(self)
3231 def set_normal_x(self, t):
3232 r"""set_normal_x(Surface self, IMP::Float t)"""
3233 return _IMP_core.Surface_set_normal_x(self, t)
3235 def get_normal_y(self):
3236 r"""get_normal_y(Surface self) -> IMP::Float"""
3237 return _IMP_core.Surface_get_normal_y(self)
3239 def set_normal_y(self, t):
3240 r"""set_normal_y(Surface self, IMP::Float t)"""
3241 return _IMP_core.Surface_set_normal_y(self, t)
3243 def get_normal_z(self):
3244 r"""get_normal_z(Surface self) -> IMP::Float"""
3245 return _IMP_core.Surface_get_normal_z(self)
3247 def set_normal_z(self, t):
3248 r"""set_normal_z(Surface self, IMP::Float t)"""
3249 return _IMP_core.Surface_set_normal_z(self, t)
3252 def get_is_setup(*args):
3254 get_is_setup(_ParticleAdaptor p) -> bool
3255 get_is_setup(Model m, ParticleIndex pi) -> bool
3257 return _IMP_core.Surface_get_is_setup(*args)
3260 def get_normal_key(i):
3261 r"""get_normal_key(unsigned int i) -> FloatKey"""
3262 return _IMP_core.Surface_get_normal_key(i)
3264 def get_normal_derivative(self, i):
3265 r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3266 return _IMP_core.Surface_get_normal_derivative(self, i)
3268 def get_normal_derivatives(self):
3269 r"""get_normal_derivatives(Surface self) -> Vector3D"""
3270 return _IMP_core.Surface_get_normal_derivatives(self)
3272 def add_to_normal_derivative(self, i, v, d):
3273 r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3274 return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3276 def add_to_normal_derivatives(self, v, d):
3277 r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3278 return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3280 def get_normal_is_optimized(self):
3281 r"""get_normal_is_optimized(Surface self) -> bool"""
3282 return _IMP_core.Surface_get_normal_is_optimized(self)
3284 def set_normal_is_optimized(self, tf):
3285 r"""set_normal_is_optimized(Surface self, bool tf)"""
3286 return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3288 def get_normal(self):
3289 r"""get_normal(Surface self) -> Vector3D"""
3290 return _IMP_core.Surface_get_normal(self)
3292 def set_normal(self, normal):
3293 r"""set_normal(Surface self, Vector3D normal)"""
3294 return _IMP_core.Surface_set_normal(self, normal)
3297 r"""reflect(Surface self)"""
3298 return _IMP_core.Surface_reflect(self)
3301 r"""get_height(Surface self, Vector3D v) -> double"""
3302 return _IMP_core.Surface_get_height(self, v)
3305 r"""get_depth(Surface self, Vector3D v) -> double"""
3306 return _IMP_core.Surface_get_depth(self, v)
3308 def get_distance_to(self, v):
3309 r"""get_distance_to(Surface self, Vector3D v) -> double"""
3310 return _IMP_core.Surface_get_distance_to(self, v)
3312 def get_distance_to_center(self, v):
3313 r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3314 return _IMP_core.Surface_get_distance_to_center(self, v)
3316 def set_reference_frame(self, rf):
3317 r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3318 return _IMP_core.Surface_set_reference_frame(self, rf)
3320 def get_reference_frame(self):
3321 r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3322 return _IMP_core.Surface_get_reference_frame(self)
3324 def get_plane(self):
3325 r"""get_plane(Surface self) -> Plane3D"""
3326 return _IMP_core.Surface_get_plane(self)
3328 def add_attribute(self, *args):
3330 add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3331 add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3332 add_attribute(Surface self, IntKey a0, IMP::Int a1)
3333 add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3334 add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3335 add_attribute(Surface self, StringKey a0, IMP::String a1)
3336 add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3337 add_attribute(Surface self, ObjectKey a0, Object a1)
3338 add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3339 add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3340 add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3341 add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3343 return _IMP_core.Surface_add_attribute(self, *args)
3345 def get_value(self, *args):
3347 get_value(Surface self, FloatKey a0) -> IMP::Float
3348 get_value(Surface self, IntKey a0) -> IMP::Int
3349 get_value(Surface self, FloatsKey a0) -> IMP::Floats
3350 get_value(Surface self, IntsKey a0) -> IMP::Ints
3351 get_value(Surface self, StringKey a0) -> IMP::String
3352 get_value(Surface self, ParticleIndexKey a0) -> Particle
3353 get_value(Surface self, ObjectKey a0) -> Object
3354 get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3355 get_value(Surface self, SparseIntKey a0) -> IMP::Int
3356 get_value(Surface self, SparseStringKey a0) -> IMP::String
3357 get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3359 return _IMP_core.Surface_get_value(self, *args)
3361 def set_value(self, *args):
3363 set_value(Surface self, FloatKey a0, IMP::Float a1)
3364 set_value(Surface self, IntKey a0, IMP::Int a1)
3365 set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3366 set_value(Surface self, IntsKey a0, IMP::Ints a1)
3367 set_value(Surface self, StringKey a0, IMP::String a1)
3368 set_value(Surface self, ParticleIndexKey a0, Particle a1)
3369 set_value(Surface self, ObjectKey a0, Object a1)
3370 set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3371 set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3372 set_value(Surface self, SparseStringKey a0, IMP::String a1)
3373 set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3375 return _IMP_core.Surface_set_value(self, *args)
3377 def remove_attribute(self, *args):
3379 remove_attribute(Surface self, FloatKey a0)
3380 remove_attribute(Surface self, IntKey a0)
3381 remove_attribute(Surface self, FloatsKey a0)
3382 remove_attribute(Surface self, IntsKey a0)
3383 remove_attribute(Surface self, StringKey a0)
3384 remove_attribute(Surface self, ParticleIndexKey a0)
3385 remove_attribute(Surface self, ObjectKey a0)
3386 remove_attribute(Surface self, SparseFloatKey a0)
3387 remove_attribute(Surface self, SparseIntKey a0)
3388 remove_attribute(Surface self, SparseStringKey a0)
3389 remove_attribute(Surface self, SparseParticleIndexKey a0)
3391 return _IMP_core.Surface_remove_attribute(self, *args)
3393 def has_attribute(self, *args):
3395 has_attribute(Surface self, FloatKey a0) -> bool
3396 has_attribute(Surface self, IntKey a0) -> bool
3397 has_attribute(Surface self, FloatsKey a0) -> bool
3398 has_attribute(Surface self, IntsKey a0) -> bool
3399 has_attribute(Surface self, StringKey a0) -> bool
3400 has_attribute(Surface self, ParticleIndexKey a0) -> bool
3401 has_attribute(Surface self, ObjectKey a0) -> bool
3402 has_attribute(Surface self, SparseFloatKey a0) -> bool
3403 has_attribute(Surface self, SparseIntKey a0) -> bool
3404 has_attribute(Surface self, SparseStringKey a0) -> bool
3405 has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3407 return _IMP_core.Surface_has_attribute(self, *args)
3409 def get_derivative(self, a0):
3410 r"""get_derivative(Surface self, FloatKey a0) -> double"""
3411 return _IMP_core.Surface_get_derivative(self, a0)
3414 r"""get_name(Surface self) -> std::string"""
3415 return _IMP_core.Surface_get_name(self)
3417 def clear_caches(self):
3418 r"""clear_caches(Surface self)"""
3419 return _IMP_core.Surface_clear_caches(self)
3421 def set_name(self, a0):
3422 r"""set_name(Surface self, std::string a0)"""
3423 return _IMP_core.Surface_set_name(self, a0)
3426 r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3427 return _IMP_core.Surface_set_check_level(self, a0)
3429 def add_to_derivative(self, a0, a1, a2):
3430 r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3431 return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3433 def set_is_optimized(self, a0, a1):
3434 r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3435 return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3437 def get_is_optimized(self, a0):
3438 r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3439 return _IMP_core.Surface_get_is_optimized(self, a0)
3442 r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3443 return _IMP_core.Surface_get_check_level(self)
3445 def __eq__(self, *args):
3447 __eq__(Surface self, Surface o) -> bool
3448 __eq__(Surface self, Particle d) -> bool
3450 return _IMP_core.Surface___eq__(self, *args)
3452 def __ne__(self, *args):
3454 __ne__(Surface self, Surface o) -> bool
3455 __ne__(Surface self, Particle d) -> bool
3457 return _IMP_core.Surface___ne__(self, *args)
3459 def __le__(self, *args):
3461 __le__(Surface self, Surface o) -> bool
3462 __le__(Surface self, Particle d) -> bool
3464 return _IMP_core.Surface___le__(self, *args)
3466 def __lt__(self, *args):
3468 __lt__(Surface self, Surface o) -> bool
3469 __lt__(Surface self, Particle d) -> bool
3471 return _IMP_core.Surface___lt__(self, *args)
3473 def __ge__(self, *args):
3475 __ge__(Surface self, Surface o) -> bool
3476 __ge__(Surface self, Particle d) -> bool
3478 return _IMP_core.Surface___ge__(self, *args)
3480 def __gt__(self, *args):
3482 __gt__(Surface self, Surface o) -> bool
3483 __gt__(Surface self, Particle d) -> bool
3485 return _IMP_core.Surface___gt__(self, *args)
3488 r"""__hash__(Surface self) -> std::size_t"""
3489 return _IMP_core.Surface___hash__(self)
3492 r"""__str__(Surface self) -> std::string"""
3493 return _IMP_core.Surface___str__(self)
3496 r"""__repr__(Surface self) -> std::string"""
3497 return _IMP_core.Surface___repr__(self)
3499 def _get_as_binary(self):
3500 r"""_get_as_binary(Surface self) -> PyObject *"""
3501 return _IMP_core.Surface__get_as_binary(self)
3503 def _set_from_binary(self, p):
3504 r"""_set_from_binary(Surface self, PyObject * p)"""
3505 return _IMP_core.Surface__set_from_binary(self, p)
3507 def __getstate__(self):
3508 p = self._get_as_binary()
3509 if len(self.__dict__) > 1:
3510 d = self.__dict__.copy()
3515 def __setstate__(self, p):
3516 if not hasattr(self,
'this'):
3518 if isinstance(p, tuple):
3520 self.__dict__.update(d)
3521 return self._set_from_binary(p)
3523 __swig_destroy__ = _IMP_core.delete_Surface
3526 _IMP_core.Surface_swigregister(Surface)
3530 get_height(Surface s, XYZR d) -> double
3531 get_height(Surface s, XYZ d) -> double
3533 return _IMP_core.get_height(*args)
3537 get_depth(Surface s, XYZR d) -> double
3538 get_depth(Surface s, XYZ d) -> double
3540 return _IMP_core.get_depth(*args)
3544 get_distance(XYZ a, XYZ b) -> double
3545 get_distance(XYZR a, XYZR b) -> double
3546 get_distance(Surface s, XYZR d) -> double
3547 get_distance(Surface s, XYZ d) -> double
3549 return _IMP_core.get_distance(*args)
3551 r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3553 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3555 def __init__(self, *args):
3557 __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3558 __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3559 __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3561 _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3563 def get_geometry(self):
3564 r"""get_geometry(SurfaceGeometry self) -> Surface"""
3565 return _IMP_core.SurfaceGeometry_get_geometry(self)
3567 def set_geometry(self, s):
3568 r"""set_geometry(SurfaceGeometry self, Surface s)"""
3569 return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3571 def get_version_info(self):
3572 r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3573 return _IMP_core.SurfaceGeometry_get_version_info(self)
3574 __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3577 r"""__str__(SurfaceGeometry self) -> std::string"""
3578 return _IMP_core.SurfaceGeometry___str__(self)
3581 r"""__repr__(SurfaceGeometry self) -> std::string"""
3582 return _IMP_core.SurfaceGeometry___repr__(self)
3586 return _object_cast_to_SurfaceGeometry(o)
3590 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3593 r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3594 return _IMP_core.create_geometry(*args)
3596 r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3598 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3600 def __init__(self, s, g):
3601 r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3602 _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3604 def get_surface(self):
3605 r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3606 return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3608 def get_geometry(self):
3609 r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3610 return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3612 def do_get_inputs(self):
3613 r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3614 return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3616 def do_get_outputs(self):
3617 r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3618 return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3620 def get_version_info(self):
3621 r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3622 return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3623 __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3626 r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3627 return _IMP_core.SurfaceGeometryConstraint___str__(self)
3630 r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3631 return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3635 return _object_cast_to_SurfaceGeometryConstraint(o)
3639 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3642 r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3643 return _IMP_core.get_constrained_surface_geometry(*args)
3645 r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3647 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3649 def __init__(self, s, d):
3650 r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3651 _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3653 def do_get_inputs(self):
3654 r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3655 return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3657 def do_get_outputs(self):
3658 r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3659 return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3661 def get_version_info(self):
3662 r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3663 return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3664 __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3667 r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3668 return _IMP_core.LateralSurfaceConstraint___str__(self)
3671 r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3672 return _IMP_core.LateralSurfaceConstraint___repr__(self)
3676 return _object_cast_to_LateralSurfaceConstraint(o)
3680 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3682 r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3684 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3686 def __init__(self, *args):
3688 __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3689 __init__(AngleTripletScore self) -> AngleTripletScore
3691 _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3693 def do_get_inputs(self, m, pis):
3694 r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3695 return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3697 def get_version_info(self):
3698 r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3699 return _IMP_core.AngleTripletScore_get_version_info(self)
3700 __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3703 r"""__str__(AngleTripletScore self) -> std::string"""
3704 return _IMP_core.AngleTripletScore___str__(self)
3707 r"""__repr__(AngleTripletScore self) -> std::string"""
3708 return _IMP_core.AngleTripletScore___repr__(self)
3712 return _object_cast_to_AngleTripletScore(o)
3715 def _get_as_binary(self):
3716 r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3717 return _IMP_core.AngleTripletScore__get_as_binary(self)
3719 def _set_from_binary(self, p):
3720 r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3721 return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3723 def __getstate__(self):
3724 p = self._get_as_binary()
3725 if len(self.__dict__) > 1:
3726 d = self.__dict__.copy()
3731 def __setstate__(self, p):
3732 if not hasattr(self,
'this'):
3734 if isinstance(p, tuple):
3736 self.__dict__.update(d)
3737 return self._set_from_binary(p)
3741 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3742 class BallMover(MonteCarloMover):
3743 r"""Proxy of C++ IMP::core::BallMover class."""
3745 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3747 def __init__(self, *args):
3749 __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3750 __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3751 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3752 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3753 __init__(BallMover self) -> BallMover
3755 _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3757 def set_radius(self, radius):
3758 r"""set_radius(BallMover self, IMP::Float radius)"""
3759 return _IMP_core.BallMover_set_radius(self, radius)
3761 def get_radius(self):
3762 r"""get_radius(BallMover self) -> IMP::Float"""
3763 return _IMP_core.BallMover_get_radius(self)
3765 def get_version_info(self):
3766 r"""get_version_info(BallMover self) -> VersionInfo"""
3767 return _IMP_core.BallMover_get_version_info(self)
3768 __swig_destroy__ = _IMP_core.delete_BallMover
3771 r"""__str__(BallMover self) -> std::string"""
3772 return _IMP_core.BallMover___str__(self)
3775 r"""__repr__(BallMover self) -> std::string"""
3776 return _IMP_core.BallMover___repr__(self)
3780 return _object_cast_to_BallMover(o)
3783 def _get_as_binary(self):
3784 r"""_get_as_binary(BallMover self) -> PyObject *"""
3785 return _IMP_core.BallMover__get_as_binary(self)
3787 def _set_from_binary(self, p):
3788 r"""_set_from_binary(BallMover self, PyObject * p)"""
3789 return _IMP_core.BallMover__set_from_binary(self, p)
3791 def __getstate__(self):
3792 p = self._get_as_binary()
3793 if len(self.__dict__) > 1:
3794 d = self.__dict__.copy()
3799 def __setstate__(self, p):
3800 if not hasattr(self,
'this'):
3802 if isinstance(p, tuple):
3804 self.__dict__.update(d)
3805 return self._set_from_binary(p)
3809 _IMP_core.BallMover_swigregister(BallMover)
3810 class SerialMover(MonteCarloMover):
3811 r"""Proxy of C++ IMP::core::SerialMover class."""
3813 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3815 def __init__(self, *args):
3817 __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3818 __init__(SerialMover self) -> SerialMover
3820 _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3822 def get_movers(self):
3823 r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3824 return _IMP_core.SerialMover_get_movers(self)
3826 def get_version_info(self):
3827 r"""get_version_info(SerialMover self) -> VersionInfo"""
3828 return _IMP_core.SerialMover_get_version_info(self)
3829 __swig_destroy__ = _IMP_core.delete_SerialMover
3832 r"""__str__(SerialMover self) -> std::string"""
3833 return _IMP_core.SerialMover___str__(self)
3836 r"""__repr__(SerialMover self) -> std::string"""
3837 return _IMP_core.SerialMover___repr__(self)
3841 return _object_cast_to_SerialMover(o)
3844 def _get_as_binary(self):
3845 r"""_get_as_binary(SerialMover self) -> PyObject *"""
3846 return _IMP_core.SerialMover__get_as_binary(self)
3848 def _set_from_binary(self, p):
3849 r"""_set_from_binary(SerialMover self, PyObject * p)"""
3850 return _IMP_core.SerialMover__set_from_binary(self, p)
3852 def __getstate__(self):
3853 p = self._get_as_binary()
3854 if len(self.__dict__) > 1:
3855 d = self.__dict__.copy()
3860 def __setstate__(self, p):
3861 if not hasattr(self,
'this'):
3863 if isinstance(p, tuple):
3865 self.__dict__.update(d)
3866 return self._set_from_binary(p)
3870 _IMP_core.SerialMover_swigregister(SerialMover)
3871 class SubsetMover(MonteCarloMover):
3872 r"""Proxy of C++ IMP::core::SubsetMover class."""
3874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3876 def __init__(self, *args):
3878 __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3879 __init__(SubsetMover self) -> SubsetMover
3881 _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3883 def get_movers(self):
3884 r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3885 return _IMP_core.SubsetMover_get_movers(self)
3887 def get_subset_size(self):
3888 r"""get_subset_size(SubsetMover self) -> unsigned int"""
3889 return _IMP_core.SubsetMover_get_subset_size(self)
3891 def get_version_info(self):
3892 r"""get_version_info(SubsetMover self) -> VersionInfo"""
3893 return _IMP_core.SubsetMover_get_version_info(self)
3894 __swig_destroy__ = _IMP_core.delete_SubsetMover
3897 r"""__str__(SubsetMover self) -> std::string"""
3898 return _IMP_core.SubsetMover___str__(self)
3901 r"""__repr__(SubsetMover self) -> std::string"""
3902 return _IMP_core.SubsetMover___repr__(self)
3906 return _object_cast_to_SubsetMover(o)
3909 def _get_as_binary(self):
3910 r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3911 return _IMP_core.SubsetMover__get_as_binary(self)
3913 def _set_from_binary(self, p):
3914 r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3915 return _IMP_core.SubsetMover__set_from_binary(self, p)
3917 def __getstate__(self):
3918 p = self._get_as_binary()
3919 if len(self.__dict__) > 1:
3920 d = self.__dict__.copy()
3925 def __setstate__(self, p):
3926 if not hasattr(self,
'this'):
3928 if isinstance(p, tuple):
3930 self.__dict__.update(d)
3931 return self._set_from_binary(p)
3935 _IMP_core.SubsetMover_swigregister(SubsetMover)
3936 class DirectionMover(MonteCarloMover):
3937 r"""Proxy of C++ IMP::core::DirectionMover class."""
3939 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3941 def __init__(self, *args):
3943 __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3944 __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3945 __init__(DirectionMover self) -> DirectionMover
3947 _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3949 def set_maximum_rotation(self, mr):
3950 r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3951 return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3953 def set_reflect_probability(self, rp):
3954 r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3955 return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3957 def get_maximum_rotation(self):
3958 r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3959 return _IMP_core.DirectionMover_get_maximum_rotation(self)
3961 def get_reflect_probability(self):
3962 r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3963 return _IMP_core.DirectionMover_get_reflect_probability(self)
3965 def get_direction(self):
3966 r"""get_direction(DirectionMover self) -> Direction"""
3967 return _IMP_core.DirectionMover_get_direction(self)
3969 def get_version_info(self):
3970 r"""get_version_info(DirectionMover self) -> VersionInfo"""
3971 return _IMP_core.DirectionMover_get_version_info(self)
3972 __swig_destroy__ = _IMP_core.delete_DirectionMover
3975 r"""__str__(DirectionMover self) -> std::string"""
3976 return _IMP_core.DirectionMover___str__(self)
3979 r"""__repr__(DirectionMover self) -> std::string"""
3980 return _IMP_core.DirectionMover___repr__(self)
3984 return _object_cast_to_DirectionMover(o)
3987 def _get_as_binary(self):
3988 r"""_get_as_binary(DirectionMover self) -> PyObject *"""
3989 return _IMP_core.DirectionMover__get_as_binary(self)
3991 def _set_from_binary(self, p):
3992 r"""_set_from_binary(DirectionMover self, PyObject * p)"""
3993 return _IMP_core.DirectionMover__set_from_binary(self, p)
3995 def __getstate__(self):
3996 p = self._get_as_binary()
3997 if len(self.__dict__) > 1:
3998 d = self.__dict__.copy()
4003 def __setstate__(self, p):
4004 if not hasattr(self,
'this'):
4006 if isinstance(p, tuple):
4008 self.__dict__.update(d)
4009 return self._set_from_binary(p)
4013 _IMP_core.DirectionMover_swigregister(DirectionMover)
4014 class SurfaceMover(MonteCarloMover):
4015 r"""Proxy of C++ IMP::core::SurfaceMover class."""
4017 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4019 def __init__(self, *args):
4021 __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4022 __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4023 __init__(SurfaceMover self) -> SurfaceMover
4025 _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4027 def set_maximum_translation(self, mt):
4028 r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4029 return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4031 def set_maximum_rotation(self, mr):
4032 r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4033 return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4035 def set_reflect_probability(self, rp):
4036 r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4037 return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4039 def get_maximum_translation(self):
4040 r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4041 return _IMP_core.SurfaceMover_get_maximum_translation(self)
4043 def get_maximum_rotation(self):
4044 r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4045 return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4047 def get_reflect_probability(self):
4048 r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4049 return _IMP_core.SurfaceMover_get_reflect_probability(self)
4051 def get_surface(self):
4052 r"""get_surface(SurfaceMover self) -> Surface"""
4053 return _IMP_core.SurfaceMover_get_surface(self)
4055 def get_version_info(self):
4056 r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4057 return _IMP_core.SurfaceMover_get_version_info(self)
4058 __swig_destroy__ = _IMP_core.delete_SurfaceMover
4061 r"""__str__(SurfaceMover self) -> std::string"""
4062 return _IMP_core.SurfaceMover___str__(self)
4065 r"""__repr__(SurfaceMover self) -> std::string"""
4066 return _IMP_core.SurfaceMover___repr__(self)
4070 return _object_cast_to_SurfaceMover(o)
4073 def _get_as_binary(self):
4074 r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4075 return _IMP_core.SurfaceMover__get_as_binary(self)
4077 def _set_from_binary(self, p):
4078 r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4079 return _IMP_core.SurfaceMover__set_from_binary(self, p)
4081 def __getstate__(self):
4082 p = self._get_as_binary()
4083 if len(self.__dict__) > 1:
4084 d = self.__dict__.copy()
4089 def __setstate__(self, p):
4090 if not hasattr(self,
'this'):
4092 if isinstance(p, tuple):
4094 self.__dict__.update(d)
4095 return self._set_from_binary(p)
4099 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4100 class BoxSweepClosePairsFinder(ClosePairsFinder):
4101 r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4103 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4106 r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4107 _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4109 def get_close_pairs(self, *args):
4111 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4112 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4113 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4114 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4116 return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4118 def do_get_inputs(self, m, pis):
4119 r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4120 return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4122 def get_version_info(self):
4123 r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4124 return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4125 __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4128 r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4129 return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4132 r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4133 return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4137 return _object_cast_to_BoxSweepClosePairsFinder(o)
4141 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4143 r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4145 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4147 def __init__(self, *args):
4148 r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4149 _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4151 def do_get_inputs(self, m, pis):
4152 r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4153 return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4155 def do_get_outputs(self, m, pis):
4156 r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4157 return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4159 def get_version_info(self):
4160 r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4161 return _IMP_core.CentroidOfRefined_get_version_info(self)
4162 __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4165 r"""__str__(CentroidOfRefined self) -> std::string"""
4166 return _IMP_core.CentroidOfRefined___str__(self)
4169 r"""__repr__(CentroidOfRefined self) -> std::string"""
4170 return _IMP_core.CentroidOfRefined___repr__(self)
4174 return _object_cast_to_CentroidOfRefined(o)
4178 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4179 class Centroid(XYZ):
4180 r"""Proxy of C++ IMP::core::Centroid class."""
4182 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4184 def get_constraint(self):
4185 r"""get_constraint(Centroid self) -> Constraint"""
4186 return _IMP_core.Centroid_get_constraint(self)
4188 def __init__(self, *args):
4190 __init__(Centroid self) -> Centroid
4191 __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4192 __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4194 _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4196 def show(self, *args):
4197 r"""show(Centroid self, _ostream out=std::cout)"""
4198 return _IMP_core.Centroid_show(self, *args)
4201 def setup_particle(*args):
4203 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4204 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4205 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4206 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4208 return _IMP_core.Centroid_setup_particle(*args)
4211 def get_is_setup(*args):
4213 get_is_setup(_ParticleAdaptor p) -> bool
4214 get_is_setup(Model m, ParticleIndex pi) -> bool
4216 return _IMP_core.Centroid_get_is_setup(*args)
4218 def add_attribute(self, *args):
4220 add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4221 add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4222 add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4223 add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4224 add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4225 add_attribute(Centroid self, StringKey a0, IMP::String a1)
4226 add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4227 add_attribute(Centroid self, ObjectKey a0, Object a1)
4228 add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4229 add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4230 add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4231 add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4233 return _IMP_core.Centroid_add_attribute(self, *args)
4235 def get_value(self, *args):
4237 get_value(Centroid self, FloatKey a0) -> IMP::Float
4238 get_value(Centroid self, IntKey a0) -> IMP::Int
4239 get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4240 get_value(Centroid self, IntsKey a0) -> IMP::Ints
4241 get_value(Centroid self, StringKey a0) -> IMP::String
4242 get_value(Centroid self, ParticleIndexKey a0) -> Particle
4243 get_value(Centroid self, ObjectKey a0) -> Object
4244 get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4245 get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4246 get_value(Centroid self, SparseStringKey a0) -> IMP::String
4247 get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4249 return _IMP_core.Centroid_get_value(self, *args)
4251 def set_value(self, *args):
4253 set_value(Centroid self, FloatKey a0, IMP::Float a1)
4254 set_value(Centroid self, IntKey a0, IMP::Int a1)
4255 set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4256 set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4257 set_value(Centroid self, StringKey a0, IMP::String a1)
4258 set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4259 set_value(Centroid self, ObjectKey a0, Object a1)
4260 set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4261 set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4262 set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4263 set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4265 return _IMP_core.Centroid_set_value(self, *args)
4267 def remove_attribute(self, *args):
4269 remove_attribute(Centroid self, FloatKey a0)
4270 remove_attribute(Centroid self, IntKey a0)
4271 remove_attribute(Centroid self, FloatsKey a0)
4272 remove_attribute(Centroid self, IntsKey a0)
4273 remove_attribute(Centroid self, StringKey a0)
4274 remove_attribute(Centroid self, ParticleIndexKey a0)
4275 remove_attribute(Centroid self, ObjectKey a0)
4276 remove_attribute(Centroid self, SparseFloatKey a0)
4277 remove_attribute(Centroid self, SparseIntKey a0)
4278 remove_attribute(Centroid self, SparseStringKey a0)
4279 remove_attribute(Centroid self, SparseParticleIndexKey a0)
4281 return _IMP_core.Centroid_remove_attribute(self, *args)
4283 def has_attribute(self, *args):
4285 has_attribute(Centroid self, FloatKey a0) -> bool
4286 has_attribute(Centroid self, IntKey a0) -> bool
4287 has_attribute(Centroid self, FloatsKey a0) -> bool
4288 has_attribute(Centroid self, IntsKey a0) -> bool
4289 has_attribute(Centroid self, StringKey a0) -> bool
4290 has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4291 has_attribute(Centroid self, ObjectKey a0) -> bool
4292 has_attribute(Centroid self, SparseFloatKey a0) -> bool
4293 has_attribute(Centroid self, SparseIntKey a0) -> bool
4294 has_attribute(Centroid self, SparseStringKey a0) -> bool
4295 has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4297 return _IMP_core.Centroid_has_attribute(self, *args)
4299 def get_derivative(self, a0):
4300 r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4301 return _IMP_core.Centroid_get_derivative(self, a0)
4304 r"""get_name(Centroid self) -> std::string"""
4305 return _IMP_core.Centroid_get_name(self)
4307 def clear_caches(self):
4308 r"""clear_caches(Centroid self)"""
4309 return _IMP_core.Centroid_clear_caches(self)
4311 def set_name(self, a0):
4312 r"""set_name(Centroid self, std::string a0)"""
4313 return _IMP_core.Centroid_set_name(self, a0)
4316 r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4317 return _IMP_core.Centroid_set_check_level(self, a0)
4319 def add_to_derivative(self, a0, a1, a2):
4320 r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4321 return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4323 def set_is_optimized(self, a0, a1):
4324 r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4325 return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4327 def get_is_optimized(self, a0):
4328 r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4329 return _IMP_core.Centroid_get_is_optimized(self, a0)
4332 r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4333 return _IMP_core.Centroid_get_check_level(self)
4335 def __eq__(self, *args):
4337 __eq__(Centroid self, Centroid o) -> bool
4338 __eq__(Centroid self, Particle d) -> bool
4340 return _IMP_core.Centroid___eq__(self, *args)
4342 def __ne__(self, *args):
4344 __ne__(Centroid self, Centroid o) -> bool
4345 __ne__(Centroid self, Particle d) -> bool
4347 return _IMP_core.Centroid___ne__(self, *args)
4349 def __le__(self, *args):
4351 __le__(Centroid self, Centroid o) -> bool
4352 __le__(Centroid self, Particle d) -> bool
4354 return _IMP_core.Centroid___le__(self, *args)
4356 def __lt__(self, *args):
4358 __lt__(Centroid self, Centroid o) -> bool
4359 __lt__(Centroid self, Particle d) -> bool
4361 return _IMP_core.Centroid___lt__(self, *args)
4363 def __ge__(self, *args):
4365 __ge__(Centroid self, Centroid o) -> bool
4366 __ge__(Centroid self, Particle d) -> bool
4368 return _IMP_core.Centroid___ge__(self, *args)
4370 def __gt__(self, *args):
4372 __gt__(Centroid self, Centroid o) -> bool
4373 __gt__(Centroid self, Particle d) -> bool
4375 return _IMP_core.Centroid___gt__(self, *args)
4378 r"""__hash__(Centroid self) -> std::size_t"""
4379 return _IMP_core.Centroid___hash__(self)
4382 r"""__str__(Centroid self) -> std::string"""
4383 return _IMP_core.Centroid___str__(self)
4386 r"""__repr__(Centroid self) -> std::string"""
4387 return _IMP_core.Centroid___repr__(self)
4389 def _get_as_binary(self):
4390 r"""_get_as_binary(Centroid self) -> PyObject *"""
4391 return _IMP_core.Centroid__get_as_binary(self)
4393 def _set_from_binary(self, p):
4394 r"""_set_from_binary(Centroid self, PyObject * p)"""
4395 return _IMP_core.Centroid__set_from_binary(self, p)
4397 def __getstate__(self):
4398 p = self._get_as_binary()
4399 if len(self.__dict__) > 1:
4400 d = self.__dict__.copy()
4405 def __setstate__(self, p):
4406 if not hasattr(self,
'this'):
4408 if isinstance(p, tuple):
4410 self.__dict__.update(d)
4411 return self._set_from_binary(p)
4413 __swig_destroy__ = _IMP_core.delete_Centroid
4416 _IMP_core.Centroid_swigregister(Centroid)
4418 r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4420 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4422 def __init__(self, *args):
4424 __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4425 __init__(ChecksScoreState self) -> ChecksScoreState
4427 _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4429 def get_number_of_checked(self):
4430 r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4431 return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4433 def do_before_evaluate(self):
4434 r"""do_before_evaluate(ChecksScoreState self)"""
4435 return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4437 def do_after_evaluate(self, da):
4438 r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4439 return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4441 def do_get_outputs(self):
4442 r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4443 return _IMP_core.ChecksScoreState_do_get_outputs(self)
4445 def do_get_inputs(self):
4446 r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4447 return _IMP_core.ChecksScoreState_do_get_inputs(self)
4449 def get_version_info(self):
4450 r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4451 return _IMP_core.ChecksScoreState_get_version_info(self)
4452 __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4455 r"""__str__(ChecksScoreState self) -> std::string"""
4456 return _IMP_core.ChecksScoreState___str__(self)
4459 r"""__repr__(ChecksScoreState self) -> std::string"""
4460 return _IMP_core.ChecksScoreState___repr__(self)
4464 return _object_cast_to_ChecksScoreState(o)
4467 def _get_as_binary(self):
4468 r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4469 return _IMP_core.ChecksScoreState__get_as_binary(self)
4471 def _set_from_binary(self, p):
4472 r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4473 return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4475 def __getstate__(self):
4476 p = self._get_as_binary()
4477 if len(self.__dict__) > 1:
4478 d = self.__dict__.copy()
4483 def __setstate__(self, p):
4484 if not hasattr(self,
'this'):
4486 if isinstance(p, tuple):
4488 self.__dict__.update(d)
4489 return self._set_from_binary(p)
4493 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4495 r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4499 def __init__(self, tr):
4500 r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4501 _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4503 def do_get_inputs(self, m, pis):
4504 r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4505 return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4507 def get_version_info(self):
4508 r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4509 return _IMP_core.ChildrenRefiner_get_version_info(self)
4510 __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4513 r"""__str__(ChildrenRefiner self) -> std::string"""
4514 return _IMP_core.ChildrenRefiner___str__(self)
4517 r"""__repr__(ChildrenRefiner self) -> std::string"""
4518 return _IMP_core.ChildrenRefiner___repr__(self)
4522 return _object_cast_to_ChildrenRefiner(o)
4526 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4528 r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4530 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4532 def __init__(self, values, minrange, spacing):
4533 r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4534 _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4536 def get_version_info(self):
4537 r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4538 return _IMP_core.ClosedCubicSpline_get_version_info(self)
4539 __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4541 def do_show(self, out):
4542 r"""do_show(ClosedCubicSpline self, _ostream out)"""
4543 return _IMP_core.ClosedCubicSpline_do_show(self, out)
4546 r"""__str__(ClosedCubicSpline self) -> std::string"""
4547 return _IMP_core.ClosedCubicSpline___str__(self)
4550 r"""__repr__(ClosedCubicSpline self) -> std::string"""
4551 return _IMP_core.ClosedCubicSpline___repr__(self)
4555 return _object_cast_to_ClosedCubicSpline(o)
4559 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4561 r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4563 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4565 def __init__(self, f, r, k=1):
4566 r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4567 _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4569 def get_close_pairs(self, pp):
4570 r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4571 return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4573 def create_current_decomposition(self, m, vt):
4574 r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4575 return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4577 def do_get_inputs(self, m, pis):
4578 r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4579 return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4581 def get_version_info(self):
4582 r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4583 return _IMP_core.KClosePairsPairScore_get_version_info(self)
4584 __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4587 r"""__str__(KClosePairsPairScore self) -> std::string"""
4588 return _IMP_core.KClosePairsPairScore___str__(self)
4591 r"""__repr__(KClosePairsPairScore self) -> std::string"""
4592 return _IMP_core.KClosePairsPairScore___repr__(self)
4596 return _object_cast_to_KClosePairsPairScore(o)
4600 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4602 r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4604 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4606 def __init__(self, f, r, max_distance):
4607 r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4608 _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4610 def get_close_pairs(self, pp):
4611 r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4612 return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4614 def create_current_decomposition(self, m, vt):
4615 r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4616 return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4618 def do_get_inputs(self, m, pis):
4619 r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4620 return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4622 def get_version_info(self):
4623 r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4624 return _IMP_core.ClosePairsPairScore_get_version_info(self)
4625 __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4628 r"""__str__(ClosePairsPairScore self) -> std::string"""
4629 return _IMP_core.ClosePairsPairScore___str__(self)
4632 r"""__repr__(ClosePairsPairScore self) -> std::string"""
4633 return _IMP_core.ClosePairsPairScore___repr__(self)
4637 return _object_cast_to_ClosePairsPairScore(o)
4641 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4643 r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4645 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4647 def __init__(self, *args):
4649 __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4650 __init__(ConjugateGradients self) -> ConjugateGradients
4652 _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4654 def set_gradient_threshold(self, t):
4655 r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4656 return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4658 def set_max_change(self, t):
4659 r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4660 return _IMP_core.ConjugateGradients_set_max_change(self, t)
4662 def do_optimize(self, max_steps):
4663 r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4664 return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4666 def get_version_info(self):
4667 r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4668 return _IMP_core.ConjugateGradients_get_version_info(self)
4669 __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4672 r"""__str__(ConjugateGradients self) -> std::string"""
4673 return _IMP_core.ConjugateGradients___str__(self)
4676 r"""__repr__(ConjugateGradients self) -> std::string"""
4677 return _IMP_core.ConjugateGradients___repr__(self)
4681 return _object_cast_to_ConjugateGradients(o)
4684 def _get_as_binary(self):
4685 r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4686 return _IMP_core.ConjugateGradients__get_as_binary(self)
4688 def _set_from_binary(self, p):
4689 r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4690 return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4692 def __getstate__(self):
4693 p = self._get_as_binary()
4694 if len(self.__dict__) > 1:
4695 d = self.__dict__.copy()
4700 def __setstate__(self, p):
4701 if not hasattr(self,
'this'):
4703 if isinstance(p, tuple):
4705 self.__dict__.update(d)
4706 return self._set_from_binary(p)
4710 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4712 r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4714 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4716 def __init__(self, ps, sc):
4717 r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4718 _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4720 def get_connected_index_pairs(self):
4721 r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4722 return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4724 def get_pair_score(self):
4725 r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4726 return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4728 def do_create_current_decomposition(self):
4729 r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4730 return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4732 def do_get_inputs(self):
4733 r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4734 return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4736 def get_version_info(self):
4737 r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4738 return _IMP_core.ConnectivityRestraint_get_version_info(self)
4739 __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4742 r"""__str__(ConnectivityRestraint self) -> std::string"""
4743 return _IMP_core.ConnectivityRestraint___str__(self)
4746 r"""__repr__(ConnectivityRestraint self) -> std::string"""
4747 return _IMP_core.ConnectivityRestraint___repr__(self)
4751 return _object_cast_to_ConnectivityRestraint(o)
4755 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4757 r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4759 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4761 def __init__(self, *args):
4763 __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4764 __init__(ConstantRestraint self) -> ConstantRestraint
4766 _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4768 def do_get_inputs(self):
4769 r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4770 return _IMP_core.ConstantRestraint_do_get_inputs(self)
4772 def get_version_info(self):
4773 r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4774 return _IMP_core.ConstantRestraint_get_version_info(self)
4775 __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4778 r"""__str__(ConstantRestraint self) -> std::string"""
4779 return _IMP_core.ConstantRestraint___str__(self)
4782 r"""__repr__(ConstantRestraint self) -> std::string"""
4783 return _IMP_core.ConstantRestraint___repr__(self)
4787 return _object_cast_to_ConstantRestraint(o)
4790 def _get_as_binary(self):
4791 r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4792 return _IMP_core.ConstantRestraint__get_as_binary(self)
4794 def _set_from_binary(self, p):
4795 r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4796 return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4798 def __getstate__(self):
4799 p = self._get_as_binary()
4800 if len(self.__dict__) > 1:
4801 d = self.__dict__.copy()
4806 def __setstate__(self, p):
4807 if not hasattr(self,
'this'):
4809 if isinstance(p, tuple):
4811 self.__dict__.update(d)
4812 return self._set_from_binary(p)
4816 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4818 r"""Proxy of C++ IMP::core::Cosine class."""
4820 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4822 def __init__(self, *args):
4824 __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4825 __init__(Cosine self) -> Cosine
4827 _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4829 def get_version_info(self):
4830 r"""get_version_info(Cosine self) -> VersionInfo"""
4831 return _IMP_core.Cosine_get_version_info(self)
4832 __swig_destroy__ = _IMP_core.delete_Cosine
4834 def do_show(self, out):
4835 r"""do_show(Cosine self, _ostream out)"""
4836 return _IMP_core.Cosine_do_show(self, out)
4839 r"""__str__(Cosine self) -> std::string"""
4840 return _IMP_core.Cosine___str__(self)
4843 r"""__repr__(Cosine self) -> std::string"""
4844 return _IMP_core.Cosine___repr__(self)
4848 return _object_cast_to_Cosine(o)
4851 def _get_as_binary(self):
4852 r"""_get_as_binary(Cosine self) -> PyObject *"""
4853 return _IMP_core.Cosine__get_as_binary(self)
4855 def _set_from_binary(self, p):
4856 r"""_set_from_binary(Cosine self, PyObject * p)"""
4857 return _IMP_core.Cosine__set_from_binary(self, p)
4859 def __getstate__(self):
4860 p = self._get_as_binary()
4861 if len(self.__dict__) > 1:
4862 d = self.__dict__.copy()
4867 def __setstate__(self, p):
4868 if not hasattr(self,
'this'):
4870 if isinstance(p, tuple):
4872 self.__dict__.update(d)
4873 return self._set_from_binary(p)
4877 _IMP_core.Cosine_swigregister(Cosine)
4879 r"""Proxy of C++ IMP::core::CoverRefined class."""
4881 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4883 def __init__(self, ref, slack=0):
4884 r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4885 _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4887 def set_slack(self, slack):
4888 r"""set_slack(CoverRefined self, IMP::Float slack)"""
4889 return _IMP_core.CoverRefined_set_slack(self, slack)
4891 def do_get_inputs(self, m, pis):
4892 r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4893 return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4895 def do_get_outputs(self, m, pis):
4896 r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4897 return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4899 def get_version_info(self):
4900 r"""get_version_info(CoverRefined self) -> VersionInfo"""
4901 return _IMP_core.CoverRefined_get_version_info(self)
4902 __swig_destroy__ = _IMP_core.delete_CoverRefined
4905 r"""__str__(CoverRefined self) -> std::string"""
4906 return _IMP_core.CoverRefined___str__(self)
4909 r"""__repr__(CoverRefined self) -> std::string"""
4910 return _IMP_core.CoverRefined___repr__(self)
4914 return _object_cast_to_CoverRefined(o)
4918 _IMP_core.CoverRefined_swigregister(CoverRefined)
4920 r"""Proxy of C++ IMP::core::Cover class."""
4922 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4924 def get_constraint(self):
4925 r"""get_constraint(Cover self) -> Constraint"""
4926 return _IMP_core.Cover_get_constraint(self)
4928 def __init__(self, *args):
4930 __init__(Cover self) -> Cover
4931 __init__(Cover self, Model m, ParticleIndex id) -> Cover
4932 __init__(Cover self, _ParticleAdaptor d) -> Cover
4934 _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4936 def show(self, *args):
4937 r"""show(Cover self, _ostream out=std::cout)"""
4938 return _IMP_core.Cover_show(self, *args)
4941 def setup_particle(*args):
4943 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4944 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4945 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4946 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4948 return _IMP_core.Cover_setup_particle(*args)
4951 def get_is_setup(*args):
4953 get_is_setup(_ParticleAdaptor p) -> bool
4954 get_is_setup(Model m, ParticleIndex pi) -> bool
4956 return _IMP_core.Cover_get_is_setup(*args)
4958 def add_attribute(self, *args):
4960 add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4961 add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4962 add_attribute(Cover self, IntKey a0, IMP::Int a1)
4963 add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4964 add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4965 add_attribute(Cover self, StringKey a0, IMP::String a1)
4966 add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4967 add_attribute(Cover self, ObjectKey a0, Object a1)
4968 add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
4969 add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
4970 add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
4971 add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
4973 return _IMP_core.Cover_add_attribute(self, *args)
4975 def get_value(self, *args):
4977 get_value(Cover self, FloatKey a0) -> IMP::Float
4978 get_value(Cover self, IntKey a0) -> IMP::Int
4979 get_value(Cover self, FloatsKey a0) -> IMP::Floats
4980 get_value(Cover self, IntsKey a0) -> IMP::Ints
4981 get_value(Cover self, StringKey a0) -> IMP::String
4982 get_value(Cover self, ParticleIndexKey a0) -> Particle
4983 get_value(Cover self, ObjectKey a0) -> Object
4984 get_value(Cover self, SparseFloatKey a0) -> IMP::Float
4985 get_value(Cover self, SparseIntKey a0) -> IMP::Int
4986 get_value(Cover self, SparseStringKey a0) -> IMP::String
4987 get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
4989 return _IMP_core.Cover_get_value(self, *args)
4991 def set_value(self, *args):
4993 set_value(Cover self, FloatKey a0, IMP::Float a1)
4994 set_value(Cover self, IntKey a0, IMP::Int a1)
4995 set_value(Cover self, FloatsKey a0, IMP::Floats a1)
4996 set_value(Cover self, IntsKey a0, IMP::Ints a1)
4997 set_value(Cover self, StringKey a0, IMP::String a1)
4998 set_value(Cover self, ParticleIndexKey a0, Particle a1)
4999 set_value(Cover self, ObjectKey a0, Object a1)
5000 set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5001 set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5002 set_value(Cover self, SparseStringKey a0, IMP::String a1)
5003 set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5005 return _IMP_core.Cover_set_value(self, *args)
5007 def remove_attribute(self, *args):
5009 remove_attribute(Cover self, FloatKey a0)
5010 remove_attribute(Cover self, IntKey a0)
5011 remove_attribute(Cover self, FloatsKey a0)
5012 remove_attribute(Cover self, IntsKey a0)
5013 remove_attribute(Cover self, StringKey a0)
5014 remove_attribute(Cover self, ParticleIndexKey a0)
5015 remove_attribute(Cover self, ObjectKey a0)
5016 remove_attribute(Cover self, SparseFloatKey a0)
5017 remove_attribute(Cover self, SparseIntKey a0)
5018 remove_attribute(Cover self, SparseStringKey a0)
5019 remove_attribute(Cover self, SparseParticleIndexKey a0)
5021 return _IMP_core.Cover_remove_attribute(self, *args)
5023 def has_attribute(self, *args):
5025 has_attribute(Cover self, FloatKey a0) -> bool
5026 has_attribute(Cover self, IntKey a0) -> bool
5027 has_attribute(Cover self, FloatsKey a0) -> bool
5028 has_attribute(Cover self, IntsKey a0) -> bool
5029 has_attribute(Cover self, StringKey a0) -> bool
5030 has_attribute(Cover self, ParticleIndexKey a0) -> bool
5031 has_attribute(Cover self, ObjectKey a0) -> bool
5032 has_attribute(Cover self, SparseFloatKey a0) -> bool
5033 has_attribute(Cover self, SparseIntKey a0) -> bool
5034 has_attribute(Cover self, SparseStringKey a0) -> bool
5035 has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5037 return _IMP_core.Cover_has_attribute(self, *args)
5039 def get_derivative(self, a0):
5040 r"""get_derivative(Cover self, FloatKey a0) -> double"""
5041 return _IMP_core.Cover_get_derivative(self, a0)
5044 r"""get_name(Cover self) -> std::string"""
5045 return _IMP_core.Cover_get_name(self)
5047 def clear_caches(self):
5048 r"""clear_caches(Cover self)"""
5049 return _IMP_core.Cover_clear_caches(self)
5051 def set_name(self, a0):
5052 r"""set_name(Cover self, std::string a0)"""
5053 return _IMP_core.Cover_set_name(self, a0)
5056 r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5057 return _IMP_core.Cover_set_check_level(self, a0)
5059 def add_to_derivative(self, a0, a1, a2):
5060 r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5061 return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5063 def set_is_optimized(self, a0, a1):
5064 r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5065 return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5067 def get_is_optimized(self, a0):
5068 r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5069 return _IMP_core.Cover_get_is_optimized(self, a0)
5072 r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5073 return _IMP_core.Cover_get_check_level(self)
5075 def __eq__(self, *args):
5077 __eq__(Cover self, Cover o) -> bool
5078 __eq__(Cover self, Particle d) -> bool
5080 return _IMP_core.Cover___eq__(self, *args)
5082 def __ne__(self, *args):
5084 __ne__(Cover self, Cover o) -> bool
5085 __ne__(Cover self, Particle d) -> bool
5087 return _IMP_core.Cover___ne__(self, *args)
5089 def __le__(self, *args):
5091 __le__(Cover self, Cover o) -> bool
5092 __le__(Cover self, Particle d) -> bool
5094 return _IMP_core.Cover___le__(self, *args)
5096 def __lt__(self, *args):
5098 __lt__(Cover self, Cover o) -> bool
5099 __lt__(Cover self, Particle d) -> bool
5101 return _IMP_core.Cover___lt__(self, *args)
5103 def __ge__(self, *args):
5105 __ge__(Cover self, Cover o) -> bool
5106 __ge__(Cover self, Particle d) -> bool
5108 return _IMP_core.Cover___ge__(self, *args)
5110 def __gt__(self, *args):
5112 __gt__(Cover self, Cover o) -> bool
5113 __gt__(Cover self, Particle d) -> bool
5115 return _IMP_core.Cover___gt__(self, *args)
5118 r"""__hash__(Cover self) -> std::size_t"""
5119 return _IMP_core.Cover___hash__(self)
5122 r"""__str__(Cover self) -> std::string"""
5123 return _IMP_core.Cover___str__(self)
5126 r"""__repr__(Cover self) -> std::string"""
5127 return _IMP_core.Cover___repr__(self)
5129 def _get_as_binary(self):
5130 r"""_get_as_binary(Cover self) -> PyObject *"""
5131 return _IMP_core.Cover__get_as_binary(self)
5133 def _set_from_binary(self, p):
5134 r"""_set_from_binary(Cover self, PyObject * p)"""
5135 return _IMP_core.Cover__set_from_binary(self, p)
5137 def __getstate__(self):
5138 p = self._get_as_binary()
5139 if len(self.__dict__) > 1:
5140 d = self.__dict__.copy()
5145 def __setstate__(self, p):
5146 if not hasattr(self,
'this'):
5148 if isinstance(p, tuple):
5150 self.__dict__.update(d)
5151 return self._set_from_binary(p)
5153 __swig_destroy__ = _IMP_core.delete_Cover
5156 _IMP_core.Cover_swigregister(Cover)
5158 r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5160 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5162 def __init__(self, *args):
5163 r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5164 _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5166 def do_get_inputs(self, m, pis):
5167 r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5168 return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5170 def do_get_outputs(self, m, pis):
5171 r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5172 return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5174 def get_version_info(self):
5175 r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5176 return _IMP_core.DerivativesFromRefined_get_version_info(self)
5177 __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5180 r"""__str__(DerivativesFromRefined self) -> std::string"""
5181 return _IMP_core.DerivativesFromRefined___str__(self)
5184 r"""__repr__(DerivativesFromRefined self) -> std::string"""
5185 return _IMP_core.DerivativesFromRefined___repr__(self)
5189 return _object_cast_to_DerivativesFromRefined(o)
5193 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5195 r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5197 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5199 def __init__(self, *args):
5200 r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5201 _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5203 def do_get_inputs(self, m, pis):
5204 r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5205 return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5207 def do_get_outputs(self, m, pis):
5208 r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5209 return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5211 def get_version_info(self):
5212 r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5213 return _IMP_core.DerivativesToRefined_get_version_info(self)
5214 __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5217 r"""__str__(DerivativesToRefined self) -> std::string"""
5218 return _IMP_core.DerivativesToRefined___str__(self)
5221 r"""__repr__(DerivativesToRefined self) -> std::string"""
5222 return _IMP_core.DerivativesToRefined___repr__(self)
5226 return _object_cast_to_DerivativesToRefined(o)
5230 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5232 r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5234 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5236 def __init__(self, f, sc, diameter):
5237 r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5238 _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5240 def do_get_inputs(self):
5241 r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5242 return _IMP_core.DiameterRestraint_do_get_inputs(self)
5244 def get_version_info(self):
5245 r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5246 return _IMP_core.DiameterRestraint_get_version_info(self)
5247 __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5249 def do_create_decomposition(self):
5250 r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5251 return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5253 def do_create_current_decomposition(self):
5254 r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5255 return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5258 r"""__str__(DiameterRestraint self) -> std::string"""
5259 return _IMP_core.DiameterRestraint___str__(self)
5262 r"""__repr__(DiameterRestraint self) -> std::string"""
5263 return _IMP_core.DiameterRestraint___repr__(self)
5267 return _object_cast_to_DiameterRestraint(o)
5271 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5273 r"""Proxy of C++ IMP::core::Transform class."""
5275 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5277 def __init__(self, *args):
5279 __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5280 __init__(Transform self) -> Transform
5282 _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5284 def do_get_inputs(self, m, pis):
5285 r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5286 return _IMP_core.Transform_do_get_inputs(self, m, pis)
5288 def do_get_outputs(self, m, pis):
5289 r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5290 return _IMP_core.Transform_do_get_outputs(self, m, pis)
5292 def get_version_info(self):
5293 r"""get_version_info(Transform self) -> VersionInfo"""
5294 return _IMP_core.Transform_get_version_info(self)
5295 __swig_destroy__ = _IMP_core.delete_Transform
5298 r"""__str__(Transform self) -> std::string"""
5299 return _IMP_core.Transform___str__(self)
5302 r"""__repr__(Transform self) -> std::string"""
5303 return _IMP_core.Transform___repr__(self)
5307 return _object_cast_to_Transform(o)
5310 def _get_as_binary(self):
5311 r"""_get_as_binary(Transform self) -> PyObject *"""
5312 return _IMP_core.Transform__get_as_binary(self)
5314 def _set_from_binary(self, p):
5315 r"""_set_from_binary(Transform self, PyObject * p)"""
5316 return _IMP_core.Transform__set_from_binary(self, p)
5318 def __getstate__(self):
5319 p = self._get_as_binary()
5320 if len(self.__dict__) > 1:
5321 d = self.__dict__.copy()
5326 def __setstate__(self, p):
5327 if not hasattr(self,
'this'):
5329 if isinstance(p, tuple):
5331 self.__dict__.update(d)
5332 return self._set_from_binary(p)
5336 _IMP_core.Transform_swigregister(Transform)
5338 r"""Proxy of C++ IMP::core::Reference class."""
5340 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5342 def __init__(self, *args):
5344 __init__(Reference self) -> Reference
5345 __init__(Reference self, Model m, ParticleIndex id) -> Reference
5346 __init__(Reference self, _ParticleAdaptor d) -> Reference
5348 _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5350 def show(self, *args):
5351 r"""show(Reference self, _ostream out=std::cout)"""
5352 return _IMP_core.Reference_show(self, *args)
5355 def setup_particle(*args):
5357 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5358 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5360 return _IMP_core.Reference_setup_particle(*args)
5362 def get_reference_particle(self):
5363 r"""get_reference_particle(Reference self) -> Particle"""
5364 return _IMP_core.Reference_get_reference_particle(self)
5367 def get_is_setup(*args):
5369 get_is_setup(_ParticleAdaptor p) -> bool
5370 get_is_setup(Model m, ParticleIndex pi) -> bool
5372 return _IMP_core.Reference_get_is_setup(*args)
5375 def get_reference_key():
5376 r"""get_reference_key() -> ParticleIndexKey"""
5377 return _IMP_core.Reference_get_reference_key()
5379 def add_attribute(self, *args):
5381 add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5382 add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5383 add_attribute(Reference self, IntKey a0, IMP::Int a1)
5384 add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5385 add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5386 add_attribute(Reference self, StringKey a0, IMP::String a1)
5387 add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5388 add_attribute(Reference self, ObjectKey a0, Object a1)
5389 add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5390 add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5391 add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5392 add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5394 return _IMP_core.Reference_add_attribute(self, *args)
5396 def get_value(self, *args):
5398 get_value(Reference self, FloatKey a0) -> IMP::Float
5399 get_value(Reference self, IntKey a0) -> IMP::Int
5400 get_value(Reference self, FloatsKey a0) -> IMP::Floats
5401 get_value(Reference self, IntsKey a0) -> IMP::Ints
5402 get_value(Reference self, StringKey a0) -> IMP::String
5403 get_value(Reference self, ParticleIndexKey a0) -> Particle
5404 get_value(Reference self, ObjectKey a0) -> Object
5405 get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5406 get_value(Reference self, SparseIntKey a0) -> IMP::Int
5407 get_value(Reference self, SparseStringKey a0) -> IMP::String
5408 get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5410 return _IMP_core.Reference_get_value(self, *args)
5412 def set_value(self, *args):
5414 set_value(Reference self, FloatKey a0, IMP::Float a1)
5415 set_value(Reference self, IntKey a0, IMP::Int a1)
5416 set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5417 set_value(Reference self, IntsKey a0, IMP::Ints a1)
5418 set_value(Reference self, StringKey a0, IMP::String a1)
5419 set_value(Reference self, ParticleIndexKey a0, Particle a1)
5420 set_value(Reference self, ObjectKey a0, Object a1)
5421 set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5422 set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5423 set_value(Reference self, SparseStringKey a0, IMP::String a1)
5424 set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5426 return _IMP_core.Reference_set_value(self, *args)
5428 def remove_attribute(self, *args):
5430 remove_attribute(Reference self, FloatKey a0)
5431 remove_attribute(Reference self, IntKey a0)
5432 remove_attribute(Reference self, FloatsKey a0)
5433 remove_attribute(Reference self, IntsKey a0)
5434 remove_attribute(Reference self, StringKey a0)
5435 remove_attribute(Reference self, ParticleIndexKey a0)
5436 remove_attribute(Reference self, ObjectKey a0)
5437 remove_attribute(Reference self, SparseFloatKey a0)
5438 remove_attribute(Reference self, SparseIntKey a0)
5439 remove_attribute(Reference self, SparseStringKey a0)
5440 remove_attribute(Reference self, SparseParticleIndexKey a0)
5442 return _IMP_core.Reference_remove_attribute(self, *args)
5444 def has_attribute(self, *args):
5446 has_attribute(Reference self, FloatKey a0) -> bool
5447 has_attribute(Reference self, IntKey a0) -> bool
5448 has_attribute(Reference self, FloatsKey a0) -> bool
5449 has_attribute(Reference self, IntsKey a0) -> bool
5450 has_attribute(Reference self, StringKey a0) -> bool
5451 has_attribute(Reference self, ParticleIndexKey a0) -> bool
5452 has_attribute(Reference self, ObjectKey a0) -> bool
5453 has_attribute(Reference self, SparseFloatKey a0) -> bool
5454 has_attribute(Reference self, SparseIntKey a0) -> bool
5455 has_attribute(Reference self, SparseStringKey a0) -> bool
5456 has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5458 return _IMP_core.Reference_has_attribute(self, *args)
5460 def get_derivative(self, a0):
5461 r"""get_derivative(Reference self, FloatKey a0) -> double"""
5462 return _IMP_core.Reference_get_derivative(self, a0)
5465 r"""get_name(Reference self) -> std::string"""
5466 return _IMP_core.Reference_get_name(self)
5468 def clear_caches(self):
5469 r"""clear_caches(Reference self)"""
5470 return _IMP_core.Reference_clear_caches(self)
5472 def set_name(self, a0):
5473 r"""set_name(Reference self, std::string a0)"""
5474 return _IMP_core.Reference_set_name(self, a0)
5477 r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5478 return _IMP_core.Reference_set_check_level(self, a0)
5480 def add_to_derivative(self, a0, a1, a2):
5481 r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5482 return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5484 def set_is_optimized(self, a0, a1):
5485 r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5486 return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5488 def get_is_optimized(self, a0):
5489 r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5490 return _IMP_core.Reference_get_is_optimized(self, a0)
5493 r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5494 return _IMP_core.Reference_get_check_level(self)
5496 def __eq__(self, *args):
5498 __eq__(Reference self, Reference o) -> bool
5499 __eq__(Reference self, Particle d) -> bool
5501 return _IMP_core.Reference___eq__(self, *args)
5503 def __ne__(self, *args):
5505 __ne__(Reference self, Reference o) -> bool
5506 __ne__(Reference self, Particle d) -> bool
5508 return _IMP_core.Reference___ne__(self, *args)
5510 def __le__(self, *args):
5512 __le__(Reference self, Reference o) -> bool
5513 __le__(Reference self, Particle d) -> bool
5515 return _IMP_core.Reference___le__(self, *args)
5517 def __lt__(self, *args):
5519 __lt__(Reference self, Reference o) -> bool
5520 __lt__(Reference self, Particle d) -> bool
5522 return _IMP_core.Reference___lt__(self, *args)
5524 def __ge__(self, *args):
5526 __ge__(Reference self, Reference o) -> bool
5527 __ge__(Reference self, Particle d) -> bool
5529 return _IMP_core.Reference___ge__(self, *args)
5531 def __gt__(self, *args):
5533 __gt__(Reference self, Reference o) -> bool
5534 __gt__(Reference self, Particle d) -> bool
5536 return _IMP_core.Reference___gt__(self, *args)
5539 r"""__hash__(Reference self) -> std::size_t"""
5540 return _IMP_core.Reference___hash__(self)
5543 r"""__str__(Reference self) -> std::string"""
5544 return _IMP_core.Reference___str__(self)
5547 r"""__repr__(Reference self) -> std::string"""
5548 return _IMP_core.Reference___repr__(self)
5550 def _get_as_binary(self):
5551 r"""_get_as_binary(Reference self) -> PyObject *"""
5552 return _IMP_core.Reference__get_as_binary(self)
5554 def _set_from_binary(self, p):
5555 r"""_set_from_binary(Reference self, PyObject * p)"""
5556 return _IMP_core.Reference__set_from_binary(self, p)
5558 def __getstate__(self):
5559 p = self._get_as_binary()
5560 if len(self.__dict__) > 1:
5561 d = self.__dict__.copy()
5566 def __setstate__(self, p):
5567 if not hasattr(self,
'this'):
5569 if isinstance(p, tuple):
5571 self.__dict__.update(d)
5572 return self._set_from_binary(p)
5574 __swig_destroy__ = _IMP_core.delete_Reference
5577 _IMP_core.Reference_swigregister(Reference)
5579 r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5581 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5583 def __init__(self, t, r):
5584 r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5585 _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5587 def do_get_inputs(self, m, pis):
5588 r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5589 return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5591 def do_get_outputs(self, m, pis):
5592 r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5593 return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5595 def get_version_info(self):
5596 r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5597 return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5598 __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5601 r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5602 return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5605 r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5606 return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5610 return _object_cast_to_TransformationAndReflectionSymmetry(o)
5614 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5616 r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5618 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5620 def __init__(self, *args):
5622 __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5623 __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5625 _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5627 def get_transformation(self):
5628 r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5629 return _IMP_core.TransformationSymmetry_get_transformation(self)
5631 def set_transformation(self, t):
5632 r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5633 return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5635 def do_get_inputs(self, m, pis):
5636 r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5637 return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5639 def do_get_outputs(self, m, pis):
5640 r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5641 return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5643 def get_version_info(self):
5644 r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5645 return _IMP_core.TransformationSymmetry_get_version_info(self)
5646 __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5649 r"""__str__(TransformationSymmetry self) -> std::string"""
5650 return _IMP_core.TransformationSymmetry___str__(self)
5653 r"""__repr__(TransformationSymmetry self) -> std::string"""
5654 return _IMP_core.TransformationSymmetry___repr__(self)
5658 return _object_cast_to_TransformationSymmetry(o)
5662 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5663 class TransformationSymmetryMover(MonteCarloMover):
5664 r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5666 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5668 def __init__(self, m, symm, pivot, max_translation, max_rotation):
5669 r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5670 _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5672 def set_maximum_translation(self, mt):
5673 r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5674 return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5676 def set_maximum_rotation(self, mr):
5677 r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5678 return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5680 def get_maximum_translation(self):
5681 r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5682 return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5684 def get_maximum_rotation(self):
5685 r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5686 return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5688 def get_version_info(self):
5689 r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5690 return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5691 __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5694 r"""__str__(TransformationSymmetryMover self) -> std::string"""
5695 return _IMP_core.TransformationSymmetryMover___str__(self)
5698 r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5699 return _IMP_core.TransformationSymmetryMover___repr__(self)
5703 return _object_cast_to_TransformationSymmetryMover(o)
5707 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5709 r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5711 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5713 def __init__(self, m, score_func, p1, p2, p3, p4):
5714 r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5715 _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5717 def do_get_inputs(self):
5718 r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5719 return _IMP_core.DihedralRestraint_do_get_inputs(self)
5721 def get_version_info(self):
5722 r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5723 return _IMP_core.DihedralRestraint_get_version_info(self)
5724 __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5727 r"""__str__(DihedralRestraint self) -> std::string"""
5728 return _IMP_core.DihedralRestraint___str__(self)
5731 r"""__repr__(DihedralRestraint self) -> std::string"""
5732 return _IMP_core.DihedralRestraint___repr__(self)
5736 return _object_cast_to_DihedralRestraint(o)
5740 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5742 r"""Proxy of C++ IMP::core::DistancePairScore class."""
5744 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5746 def __init__(self, *args):
5748 __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5749 __init__(DistancePairScore self) -> DistancePairScore
5751 _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5753 def do_get_inputs(self, m, pis):
5754 r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5755 return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5757 def get_version_info(self):
5758 r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5759 return _IMP_core.DistancePairScore_get_version_info(self)
5760 __swig_destroy__ = _IMP_core.delete_DistancePairScore
5763 r"""__str__(DistancePairScore self) -> std::string"""
5764 return _IMP_core.DistancePairScore___str__(self)
5767 r"""__repr__(DistancePairScore self) -> std::string"""
5768 return _IMP_core.DistancePairScore___repr__(self)
5772 return _object_cast_to_DistancePairScore(o)
5775 def _get_as_binary(self):
5776 r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5777 return _IMP_core.DistancePairScore__get_as_binary(self)
5779 def _set_from_binary(self, p):
5780 r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5781 return _IMP_core.DistancePairScore__set_from_binary(self, p)
5783 def __getstate__(self):
5784 p = self._get_as_binary()
5785 if len(self.__dict__) > 1:
5786 d = self.__dict__.copy()
5791 def __setstate__(self, p):
5792 if not hasattr(self,
'this'):
5794 if isinstance(p, tuple):
5796 self.__dict__.update(d)
5797 return self._set_from_binary(p)
5801 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5803 r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5807 def __init__(self, *args):
5809 __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5810 __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5812 _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5814 def do_get_inputs(self, m, pis):
5815 r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5816 return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5818 def get_version_info(self):
5819 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5820 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5821 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5824 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5825 return _IMP_core.HarmonicDistancePairScore___str__(self)
5828 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5829 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5833 return _object_cast_to_HarmonicDistancePairScore(o)
5836 def _get_as_binary(self):
5837 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5838 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5840 def _set_from_binary(self, p):
5841 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5842 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5844 def __getstate__(self):
5845 p = self._get_as_binary()
5846 if len(self.__dict__) > 1:
5847 d = self.__dict__.copy()
5852 def __setstate__(self, p):
5853 if not hasattr(self,
'this'):
5855 if isinstance(p, tuple):
5857 self.__dict__.update(d)
5858 return self._set_from_binary(p)
5862 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5864 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5866 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5868 def __init__(self, *args):
5870 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5871 __init__(DistanceRestraint self) -> DistanceRestraint
5873 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5875 def get_version_info(self):
5876 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5877 return _IMP_core.DistanceRestraint_get_version_info(self)
5878 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5881 r"""__str__(DistanceRestraint self) -> std::string"""
5882 return _IMP_core.DistanceRestraint___str__(self)
5885 r"""__repr__(DistanceRestraint self) -> std::string"""
5886 return _IMP_core.DistanceRestraint___repr__(self)
5890 return _object_cast_to_DistanceRestraint(o)
5893 def _get_as_binary(self):
5894 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5895 return _IMP_core.DistanceRestraint__get_as_binary(self)
5897 def _set_from_binary(self, p):
5898 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5899 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5901 def __getstate__(self):
5902 p = self._get_as_binary()
5903 if len(self.__dict__) > 1:
5904 d = self.__dict__.copy()
5909 def __setstate__(self, p):
5910 if not hasattr(self,
'this'):
5912 if isinstance(p, tuple):
5914 self.__dict__.update(d)
5915 return self._set_from_binary(p)
5919 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5921 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5923 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5925 def __init__(self, f, pt):
5926 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5927 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5929 def do_get_inputs(self, m, pis):
5930 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5931 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5933 def get_version_info(self):
5934 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5935 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5936 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5939 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5940 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5943 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5944 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5948 return _object_cast_to_SphereDistanceToSingletonScore(o)
5952 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
5954 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
5956 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5958 def __init__(self, *args):
5959 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
5960 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
5962 def do_get_inputs(self):
5963 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
5964 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
5966 def get_version_info(self):
5967 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
5968 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
5969 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
5971 def do_create_decomposition(self):
5972 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5973 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
5975 def do_create_current_decomposition(self):
5976 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5977 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
5980 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
5981 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
5982 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)
5983 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
5984 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
5985 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
5987 def remove_pair_filter(self, d):
5988 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
5989 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
5991 def _python_index_pair_filter(self, d, start, stop):
5992 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
5993 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
5995 def remove_pair_filters(self, d):
5996 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
5997 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
5999 def set_pair_filters(self, ps):
6000 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6001 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6003 def set_pair_filters_order(self, objs):
6004 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6005 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6007 def add_pair_filter(self, obj):
6008 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6009 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6011 def add_pair_filters(self, objs):
6012 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6013 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6015 def clear_pair_filters(self):
6016 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6017 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6019 def get_number_of_pair_filters(self):
6020 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6021 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6023 def get_has_pair_filters(self):
6024 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6025 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6027 def get_pair_filter(self, i):
6028 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6029 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6031 def get_pair_filters(self):
6032 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6033 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6035 def erase_pair_filter(self, i):
6036 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6037 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6039 def reserve_pair_filters(self, sz):
6040 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6041 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6044 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6045 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6048 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6049 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6053 return _object_cast_to_ExcludedVolumeRestraint(o)
6057 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6059 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6061 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6063 def __init__(self, *args):
6065 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6066 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6068 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6070 def do_get_inputs(self, m, pis):
6071 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6072 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6074 def get_version_info(self):
6075 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6076 return _IMP_core.FixedRefiner_get_version_info(self)
6077 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6080 r"""__str__(FixedRefiner self) -> std::string"""
6081 return _IMP_core.FixedRefiner___str__(self)
6084 r"""__repr__(FixedRefiner self) -> std::string"""
6085 return _IMP_core.FixedRefiner___repr__(self)
6089 return _object_cast_to_FixedRefiner(o)
6093 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6094 class GridClosePairsFinder(ClosePairsFinder):
6095 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6097 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6100 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6101 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6103 def get_close_pairs(self, *args):
6105 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6106 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6107 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6108 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6110 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6112 def do_get_inputs(self, m, pis):
6113 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6114 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6116 def get_version_info(self):
6117 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6118 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6119 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6122 r"""__str__(GridClosePairsFinder self) -> std::string"""
6123 return _IMP_core.GridClosePairsFinder___str__(self)
6126 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6127 return _IMP_core.GridClosePairsFinder___repr__(self)
6131 return _object_cast_to_GridClosePairsFinder(o)
6134 def _get_as_binary(self):
6135 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6136 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6138 def _set_from_binary(self, p):
6139 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6140 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6142 def __getstate__(self):
6143 p = self._get_as_binary()
6144 if len(self.__dict__) > 1:
6145 d = self.__dict__.copy()
6150 def __setstate__(self, p):
6151 if not hasattr(self,
'this'):
6153 if isinstance(p, tuple):
6155 self.__dict__.update(d)
6156 return self._set_from_binary(p)
6160 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6162 r"""Proxy of C++ IMP::core::Harmonic class."""
6164 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6166 def __init__(self, *args):
6168 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6169 __init__(Harmonic self) -> Harmonic
6171 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6173 def get_version_info(self):
6174 r"""get_version_info(Harmonic self) -> VersionInfo"""
6175 return _IMP_core.Harmonic_get_version_info(self)
6176 __swig_destroy__ = _IMP_core.delete_Harmonic
6179 r"""get_mean(Harmonic self) -> IMP::Float"""
6180 return _IMP_core.Harmonic_get_mean(self)
6183 r"""get_k(Harmonic self) -> IMP::Float"""
6184 return _IMP_core.Harmonic_get_k(self)
6186 def set_mean(self, mean):
6187 r"""set_mean(Harmonic self, IMP::Float mean)"""
6188 return _IMP_core.Harmonic_set_mean(self, mean)
6191 r"""set_k(Harmonic self, IMP::Float k)"""
6192 return _IMP_core.Harmonic_set_k(self, k)
6195 def get_k_from_standard_deviation(sd, t=297.15):
6196 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6197 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6200 r"""__str__(Harmonic self) -> std::string"""
6201 return _IMP_core.Harmonic___str__(self)
6204 r"""__repr__(Harmonic self) -> std::string"""
6205 return _IMP_core.Harmonic___repr__(self)
6209 return _object_cast_to_Harmonic(o)
6212 def _get_as_binary(self):
6213 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6214 return _IMP_core.Harmonic__get_as_binary(self)
6216 def _set_from_binary(self, p):
6217 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6218 return _IMP_core.Harmonic__set_from_binary(self, p)
6220 def __getstate__(self):
6221 p = self._get_as_binary()
6222 if len(self.__dict__) > 1:
6223 d = self.__dict__.copy()
6228 def __setstate__(self, p):
6229 if not hasattr(self,
'this'):
6231 if isinstance(p, tuple):
6233 self.__dict__.update(d)
6234 return self._set_from_binary(p)
6238 _IMP_core.Harmonic_swigregister(Harmonic)
6240 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6242 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6244 def __init__(self, well, k):
6245 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6246 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6248 def get_version_info(self):
6249 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6250 return _IMP_core.HarmonicWell_get_version_info(self)
6251 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6254 r"""__str__(HarmonicWell self) -> std::string"""
6255 return _IMP_core.HarmonicWell___str__(self)
6258 r"""__repr__(HarmonicWell self) -> std::string"""
6259 return _IMP_core.HarmonicWell___repr__(self)
6263 return _object_cast_to_HarmonicWell(o)
6267 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6268 class HarmonicLowerBound(Harmonic):
6269 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6271 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6273 def __init__(self, *args):
6275 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6276 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6278 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6279 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6282 r"""__str__(HarmonicLowerBound self) -> std::string"""
6283 return _IMP_core.HarmonicLowerBound___str__(self)
6286 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6287 return _IMP_core.HarmonicLowerBound___repr__(self)
6291 return _object_cast_to_HarmonicLowerBound(o)
6294 def _get_as_binary(self):
6295 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6296 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6298 def _set_from_binary(self, p):
6299 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6300 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6302 def __getstate__(self):
6303 p = self._get_as_binary()
6304 if len(self.__dict__) > 1:
6305 d = self.__dict__.copy()
6310 def __setstate__(self, p):
6311 if not hasattr(self,
'this'):
6313 if isinstance(p, tuple):
6315 self.__dict__.update(d)
6316 return self._set_from_binary(p)
6320 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6321 class HarmonicUpperBound(Harmonic):
6322 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6324 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6326 def __init__(self, *args):
6328 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6329 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6331 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6332 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6335 r"""__str__(HarmonicUpperBound self) -> std::string"""
6336 return _IMP_core.HarmonicUpperBound___str__(self)
6339 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6340 return _IMP_core.HarmonicUpperBound___repr__(self)
6344 return _object_cast_to_HarmonicUpperBound(o)
6347 def _get_as_binary(self):
6348 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6349 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6351 def _set_from_binary(self, p):
6352 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6353 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6355 def __getstate__(self):
6356 p = self._get_as_binary()
6357 if len(self.__dict__) > 1:
6358 d = self.__dict__.copy()
6363 def __setstate__(self, p):
6364 if not hasattr(self,
'this'):
6366 if isinstance(p, tuple):
6368 self.__dict__.update(d)
6369 return self._set_from_binary(p)
6373 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6375 r"""Proxy of C++ IMP::core::WeightedSum class."""
6377 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6379 def __init__(self, funcs, weights):
6380 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6381 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6383 def get_function_number(self):
6384 r"""get_function_number(WeightedSum self) -> unsigned int"""
6385 return _IMP_core.WeightedSum_get_function_number(self)
6387 def set_weights(self, weights):
6388 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6389 return _IMP_core.WeightedSum_set_weights(self, weights)
6391 def get_weights(self):
6392 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6393 return _IMP_core.WeightedSum_get_weights(self)
6395 def get_weight(self, i):
6396 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6397 return _IMP_core.WeightedSum_get_weight(self, i)
6399 def get_function(self, i):
6400 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6401 return _IMP_core.WeightedSum_get_function(self, i)
6403 def get_version_info(self):
6404 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6405 return _IMP_core.WeightedSum_get_version_info(self)
6406 __swig_destroy__ = _IMP_core.delete_WeightedSum
6409 r"""__str__(WeightedSum self) -> std::string"""
6410 return _IMP_core.WeightedSum___str__(self)
6413 r"""__repr__(WeightedSum self) -> std::string"""
6414 return _IMP_core.WeightedSum___repr__(self)
6418 return _object_cast_to_WeightedSum(o)
6422 _IMP_core.WeightedSum_swigregister(WeightedSum)
6424 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6426 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6428 def __init__(self, funcs, weights, denom=1.0):
6429 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6430 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6432 def get_function_number(self):
6433 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6434 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6436 def set_weights(self, weights):
6437 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6438 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6440 def get_weights(self):
6441 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6442 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6444 def get_weight(self, i):
6445 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6446 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6448 def get_function(self, i):
6449 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6450 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6452 def set_denominator(self, denom):
6453 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6454 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6456 def get_denominator(self):
6457 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6458 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6460 def get_version_info(self):
6461 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6462 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6463 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6466 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6467 return _IMP_core.WeightedSumOfExponential___str__(self)
6470 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6471 return _IMP_core.WeightedSumOfExponential___repr__(self)
6475 return _object_cast_to_WeightedSumOfExponential(o)
6479 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6481 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6483 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6485 def __init__(self, m, ps, eps=0.1):
6486 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6487 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6489 def add_type(self, ps):
6490 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6491 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6493 def add_composite(self, *args):
6495 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6496 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6498 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6500 def get_connected_pairs(self):
6501 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6502 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6504 def get_pair_score(self):
6505 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6506 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6508 def do_create_current_decomposition(self):
6509 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6510 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6512 def do_get_inputs(self):
6513 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6514 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6516 def get_version_info(self):
6517 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6518 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6519 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6522 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6523 return _IMP_core.MSConnectivityRestraint___str__(self)
6526 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6527 return _IMP_core.MSConnectivityRestraint___repr__(self)
6531 return _object_cast_to_MSConnectivityRestraint(o)
6535 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6536 class HierarchyTraits(object):
6537 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6539 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6541 def __init__(self, *args):
6543 __init__(HierarchyTraits self) -> HierarchyTraits
6544 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6546 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6548 def get_children_key(self):
6549 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6550 return _IMP_core.HierarchyTraits_get_children_key(self)
6552 def get_parent_key(self):
6553 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6554 return _IMP_core.HierarchyTraits_get_parent_key(self)
6556 def __eq__(self, o):
6557 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6558 return _IMP_core.HierarchyTraits___eq__(self, o)
6560 def show(self, *args):
6561 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6562 return _IMP_core.HierarchyTraits_show(self, *args)
6565 r"""__str__(HierarchyTraits self) -> std::string"""
6566 return _IMP_core.HierarchyTraits___str__(self)
6569 r"""__repr__(HierarchyTraits self) -> std::string"""
6570 return _IMP_core.HierarchyTraits___repr__(self)
6571 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6574 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6576 r"""Proxy of C++ IMP::core::Hierarchy class."""
6578 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6580 def get_decorator_traits(self):
6581 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6582 return _IMP_core.Hierarchy_get_decorator_traits(self)
6585 def get_default_decorator_traits():
6586 r"""get_default_decorator_traits() -> HierarchyTraits"""
6587 return _IMP_core.Hierarchy_get_default_decorator_traits()
6589 def __init__(self, *args):
6591 __init__(Hierarchy self) -> Hierarchy
6592 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6593 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6595 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6597 def show(self, *args):
6598 r"""show(Hierarchy self, _ostream out=std::cout)"""
6599 return _IMP_core.Hierarchy_show(self, *args)
6602 def setup_particle(*args):
6604 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6605 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6606 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6607 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6608 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6609 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6611 return _IMP_core.Hierarchy_setup_particle(*args)
6614 def get_is_setup(*args):
6616 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6617 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6619 return _IMP_core.Hierarchy_get_is_setup(*args)
6622 def get_changed_key():
6623 r"""get_changed_key() -> TriggerKey"""
6624 return _IMP_core.Hierarchy_get_changed_key()
6626 def get_parent(self):
6627 r"""get_parent(Hierarchy self) -> Hierarchy"""
6628 return _IMP_core.Hierarchy_get_parent(self)
6630 def get_number_of_children(self):
6631 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6632 return _IMP_core.Hierarchy_get_number_of_children(self)
6634 def get_child(self, i):
6635 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6636 return _IMP_core.Hierarchy_get_child(self, i)
6638 def get_children_indexes(self):
6639 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6640 return _IMP_core.Hierarchy_get_children_indexes(self)
6642 def get_children(self):
6643 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6644 return _IMP_core.Hierarchy_get_children(self)
6646 def remove_child(self, *args):
6648 remove_child(Hierarchy self, unsigned int i)
6649 remove_child(Hierarchy self, Hierarchy h)
6651 return _IMP_core.Hierarchy_remove_child(self, *args)
6653 def clear_children(self):
6654 r"""clear_children(Hierarchy self)"""
6655 return _IMP_core.Hierarchy_clear_children(self)
6657 def add_child(self, h):
6658 r"""add_child(Hierarchy self, Hierarchy h)"""
6659 return _IMP_core.Hierarchy_add_child(self, h)
6661 def add_child_at(self, h, pos):
6662 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6663 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6665 def get_child_index(self, *args):
6667 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6668 get_child_index(Hierarchy self) -> int
6670 return _IMP_core.Hierarchy_get_child_index(self, *args)
6673 def get_default_traits():
6674 r"""get_default_traits() -> HierarchyTraits"""
6675 return _IMP_core.Hierarchy_get_default_traits()
6677 def get_traits(self):
6678 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6679 return _IMP_core.Hierarchy_get_traits(self)
6681 def add_attribute(self, *args):
6683 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6684 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6685 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6686 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6687 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6688 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6689 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6690 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6691 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6692 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6693 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6694 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6696 return _IMP_core.Hierarchy_add_attribute(self, *args)
6698 def get_value(self, *args):
6700 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6701 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6702 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6703 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6704 get_value(Hierarchy self, StringKey a0) -> IMP::String
6705 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6706 get_value(Hierarchy self, ObjectKey a0) -> Object
6707 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6708 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6709 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6710 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6712 return _IMP_core.Hierarchy_get_value(self, *args)
6714 def set_value(self, *args):
6716 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6717 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6718 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6719 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6720 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6721 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6722 set_value(Hierarchy self, ObjectKey a0, Object a1)
6723 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6724 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6725 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6726 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6728 return _IMP_core.Hierarchy_set_value(self, *args)
6730 def remove_attribute(self, *args):
6732 remove_attribute(Hierarchy self, FloatKey a0)
6733 remove_attribute(Hierarchy self, IntKey a0)
6734 remove_attribute(Hierarchy self, FloatsKey a0)
6735 remove_attribute(Hierarchy self, IntsKey a0)
6736 remove_attribute(Hierarchy self, StringKey a0)
6737 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6738 remove_attribute(Hierarchy self, ObjectKey a0)
6739 remove_attribute(Hierarchy self, SparseFloatKey a0)
6740 remove_attribute(Hierarchy self, SparseIntKey a0)
6741 remove_attribute(Hierarchy self, SparseStringKey a0)
6742 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6744 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6746 def has_attribute(self, *args):
6748 has_attribute(Hierarchy self, FloatKey a0) -> bool
6749 has_attribute(Hierarchy self, IntKey a0) -> bool
6750 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6751 has_attribute(Hierarchy self, IntsKey a0) -> bool
6752 has_attribute(Hierarchy self, StringKey a0) -> bool
6753 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6754 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6755 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6756 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6757 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6758 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6760 return _IMP_core.Hierarchy_has_attribute(self, *args)
6762 def get_derivative(self, a0):
6763 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6764 return _IMP_core.Hierarchy_get_derivative(self, a0)
6767 r"""get_name(Hierarchy self) -> std::string"""
6768 return _IMP_core.Hierarchy_get_name(self)
6770 def clear_caches(self):
6771 r"""clear_caches(Hierarchy self)"""
6772 return _IMP_core.Hierarchy_clear_caches(self)
6774 def set_name(self, a0):
6775 r"""set_name(Hierarchy self, std::string a0)"""
6776 return _IMP_core.Hierarchy_set_name(self, a0)
6779 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6780 return _IMP_core.Hierarchy_set_check_level(self, a0)
6782 def add_to_derivative(self, a0, a1, a2):
6783 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6784 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6786 def set_is_optimized(self, a0, a1):
6787 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6788 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6790 def get_is_optimized(self, a0):
6791 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6792 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6795 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6796 return _IMP_core.Hierarchy_get_check_level(self)
6798 def __eq__(self, *args):
6800 __eq__(Hierarchy self, Hierarchy o) -> bool
6801 __eq__(Hierarchy self, Particle d) -> bool
6803 return _IMP_core.Hierarchy___eq__(self, *args)
6805 def __ne__(self, *args):
6807 __ne__(Hierarchy self, Hierarchy o) -> bool
6808 __ne__(Hierarchy self, Particle d) -> bool
6810 return _IMP_core.Hierarchy___ne__(self, *args)
6812 def __le__(self, *args):
6814 __le__(Hierarchy self, Hierarchy o) -> bool
6815 __le__(Hierarchy self, Particle d) -> bool
6817 return _IMP_core.Hierarchy___le__(self, *args)
6819 def __lt__(self, *args):
6821 __lt__(Hierarchy self, Hierarchy o) -> bool
6822 __lt__(Hierarchy self, Particle d) -> bool
6824 return _IMP_core.Hierarchy___lt__(self, *args)
6826 def __ge__(self, *args):
6828 __ge__(Hierarchy self, Hierarchy o) -> bool
6829 __ge__(Hierarchy self, Particle d) -> bool
6831 return _IMP_core.Hierarchy___ge__(self, *args)
6833 def __gt__(self, *args):
6835 __gt__(Hierarchy self, Hierarchy o) -> bool
6836 __gt__(Hierarchy self, Particle d) -> bool
6838 return _IMP_core.Hierarchy___gt__(self, *args)
6841 r"""__hash__(Hierarchy self) -> std::size_t"""
6842 return _IMP_core.Hierarchy___hash__(self)
6845 r"""__str__(Hierarchy self) -> std::string"""
6846 return _IMP_core.Hierarchy___str__(self)
6849 r"""__repr__(Hierarchy self) -> std::string"""
6850 return _IMP_core.Hierarchy___repr__(self)
6851 __swig_destroy__ = _IMP_core.delete_Hierarchy
6854 _IMP_core.Hierarchy_swigregister(Hierarchy)
6855 class HierarchyVisitor(object):
6856 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6858 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6859 __repr__ = _swig_repr
6862 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6863 if self.__class__ == HierarchyVisitor:
6867 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6869 if self.__class__ != HierarchyVisitor:
6870 _director_objects.register(self)
6875 def __call__(self, p):
6876 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6877 return _IMP_core.HierarchyVisitor___call__(self, p)
6878 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6879 def __disown__(self):
6881 _IMP_core.disown_HierarchyVisitor(self)
6882 return weakref.proxy(self)
6885 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6886 class ModifierVisitor(HierarchyVisitor):
6887 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6889 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6890 __repr__ = _swig_repr
6892 def __init__(self, sm):
6893 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6894 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6895 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6898 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6899 class HierarchyCounter(HierarchyVisitor):
6900 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6902 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6905 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6906 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6908 def get_count(self):
6909 r"""get_count(HierarchyCounter self) -> unsigned int"""
6910 return _IMP_core.HierarchyCounter_get_count(self)
6912 def show(self, *args):
6913 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6914 return _IMP_core.HierarchyCounter_show(self, *args)
6917 r"""__str__(HierarchyCounter self) -> std::string"""
6918 return _IMP_core.HierarchyCounter___str__(self)
6921 r"""__repr__(HierarchyCounter self) -> std::string"""
6922 return _IMP_core.HierarchyCounter___repr__(self)
6924 def _get_as_binary(self):
6925 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6926 return _IMP_core.HierarchyCounter__get_as_binary(self)
6928 def _set_from_binary(self, p):
6929 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6930 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6932 def __getstate__(self):
6933 p = self._get_as_binary()
6934 if len(self.__dict__) > 1:
6935 d = self.__dict__.copy()
6940 def __setstate__(self, p):
6941 if not hasattr(self,
'this'):
6943 if isinstance(p, tuple):
6945 self.__dict__.update(d)
6946 return self._set_from_binary(p)
6948 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6951 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
6954 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6955 return _IMP_core.get_leaves(mhd)
6958 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6959 return _IMP_core.get_internal(mhd)
6962 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6963 return _IMP_core.get_all_descendants(mhd)
6966 r"""get_root(Hierarchy h) -> Hierarchy"""
6967 return _IMP_core.get_root(h)
6970 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
6971 return _IMP_core.visit_breadth_first(d, f)
6974 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
6975 return _IMP_core.visit_depth_first(d, f)
6977 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
6979 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6981 def __init__(self, tr):
6982 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
6983 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
6985 def do_get_inputs(self, m, pis):
6986 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6987 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
6989 def get_version_info(self):
6990 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
6991 return _IMP_core.LeavesRefiner_get_version_info(self)
6992 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
6995 r"""__str__(LeavesRefiner self) -> std::string"""
6996 return _IMP_core.LeavesRefiner___str__(self)
6999 r"""__repr__(LeavesRefiner self) -> std::string"""
7000 return _IMP_core.LeavesRefiner___repr__(self)
7004 return _object_cast_to_LeavesRefiner(o)
7008 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7010 r"""Proxy of C++ IMP::core::Linear class."""
7012 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7014 def __init__(self, *args):
7016 __init__(Linear self, double offset, double slope) -> Linear
7017 __init__(Linear self) -> Linear
7019 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7021 def set_slope(self, f):
7022 r"""set_slope(Linear self, double f)"""
7023 return _IMP_core.Linear_set_slope(self, f)
7025 def set_offset(self, f):
7026 r"""set_offset(Linear self, double f)"""
7027 return _IMP_core.Linear_set_offset(self, f)
7029 def get_version_info(self):
7030 r"""get_version_info(Linear self) -> VersionInfo"""
7031 return _IMP_core.Linear_get_version_info(self)
7032 __swig_destroy__ = _IMP_core.delete_Linear
7035 r"""__str__(Linear self) -> std::string"""
7036 return _IMP_core.Linear___str__(self)
7039 r"""__repr__(Linear self) -> std::string"""
7040 return _IMP_core.Linear___repr__(self)
7044 return _object_cast_to_Linear(o)
7047 def _get_as_binary(self):
7048 r"""_get_as_binary(Linear self) -> PyObject *"""
7049 return _IMP_core.Linear__get_as_binary(self)
7051 def _set_from_binary(self, p):
7052 r"""_set_from_binary(Linear self, PyObject * p)"""
7053 return _IMP_core.Linear__set_from_binary(self, p)
7055 def __getstate__(self):
7056 p = self._get_as_binary()
7057 if len(self.__dict__) > 1:
7058 d = self.__dict__.copy()
7063 def __setstate__(self, p):
7064 if not hasattr(self,
'this'):
7066 if isinstance(p, tuple):
7068 self.__dict__.update(d)
7069 return self._set_from_binary(p)
7073 _IMP_core.Linear_swigregister(Linear)
7074 class LogNormalMover(MonteCarloMover):
7075 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7077 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7079 def __init__(self, *args):
7081 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7082 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7083 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7084 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7085 __init__(LogNormalMover self) -> LogNormalMover
7087 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7089 def set_sigma(self, sigma):
7090 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7091 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7093 def get_sigma(self):
7094 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7095 return _IMP_core.LogNormalMover_get_sigma(self)
7097 def get_version_info(self):
7098 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7099 return _IMP_core.LogNormalMover_get_version_info(self)
7100 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7103 r"""__str__(LogNormalMover self) -> std::string"""
7104 return _IMP_core.LogNormalMover___str__(self)
7107 r"""__repr__(LogNormalMover self) -> std::string"""
7108 return _IMP_core.LogNormalMover___repr__(self)
7112 return _object_cast_to_LogNormalMover(o)
7115 def _get_as_binary(self):
7116 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7117 return _IMP_core.LogNormalMover__get_as_binary(self)
7119 def _set_from_binary(self, p):
7120 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7121 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7123 def __getstate__(self):
7124 p = self._get_as_binary()
7125 if len(self.__dict__) > 1:
7126 d = self.__dict__.copy()
7131 def __setstate__(self, p):
7132 if not hasattr(self,
'this'):
7134 if isinstance(p, tuple):
7136 self.__dict__.update(d)
7137 return self._set_from_binary(p)
7141 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7142 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7145 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7147 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7149 def __init__(self, m):
7150 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7151 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7153 def get_version_info(self):
7154 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7155 return _IMP_core.MonteCarlo_get_version_info(self)
7156 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7158 def set_return_best(self, tf):
7159 r"""set_return_best(MonteCarlo self, bool tf)"""
7160 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7162 def set_score_moved(self, mv):
7163 r"""set_score_moved(MonteCarlo self, bool mv)"""
7164 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7166 def set_kt(self, t):
7167 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7168 return _IMP_core.MonteCarlo_set_kt(self, t)
7171 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7172 return _IMP_core.MonteCarlo_get_kt(self)
7174 def get_last_accepted_energy(self):
7175 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7176 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7178 def get_best_accepted_energy(self):
7179 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7180 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7182 def get_number_of_downward_steps(self):
7183 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7184 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7186 def get_number_of_upward_steps(self):
7187 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7188 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7190 def get_number_of_proposed_steps(self):
7191 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7192 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7194 def get_number_of_accepted_steps(self):
7195 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7196 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7198 def reset_statistics(self):
7199 r"""reset_statistics(MonteCarlo self)"""
7200 return _IMP_core.MonteCarlo_reset_statistics(self)
7202 def set_score_threshold(self, s):
7203 r"""set_score_threshold(MonteCarlo self, double s)"""
7204 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7206 def get_score_threshold(self):
7207 r"""get_score_threshold(MonteCarlo self) -> double"""
7208 return _IMP_core.MonteCarlo_get_score_threshold(self)
7210 def set_maximum_difference(self, d):
7211 r"""set_maximum_difference(MonteCarlo self, double d)"""
7212 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7214 def get_maximum_difference(self):
7215 r"""get_maximum_difference(MonteCarlo self) -> double"""
7216 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7217 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)
7218 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7219 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7220 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7222 def remove_mover(self, d):
7223 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7224 return _IMP_core.MonteCarlo_remove_mover(self, d)
7226 def _python_index_mover(self, d, start, stop):
7227 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7228 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7230 def remove_movers(self, d):
7231 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7232 return _IMP_core.MonteCarlo_remove_movers(self, d)
7234 def set_movers(self, ps):
7235 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7236 return _IMP_core.MonteCarlo_set_movers(self, ps)
7238 def set_movers_order(self, objs):
7239 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7240 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7242 def add_mover(self, obj):
7243 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7244 return _IMP_core.MonteCarlo_add_mover(self, obj)
7246 def add_movers(self, objs):
7247 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7248 return _IMP_core.MonteCarlo_add_movers(self, objs)
7250 def clear_movers(self):
7251 r"""clear_movers(MonteCarlo self)"""
7252 return _IMP_core.MonteCarlo_clear_movers(self)
7254 def get_number_of_movers(self):
7255 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7256 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7258 def get_has_movers(self):
7259 r"""get_has_movers(MonteCarlo self) -> bool"""
7260 return _IMP_core.MonteCarlo_get_has_movers(self)
7262 def get_mover(self, i):
7263 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7264 return _IMP_core.MonteCarlo_get_mover(self, i)
7266 def get_movers(self):
7267 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7268 return _IMP_core.MonteCarlo_get_movers(self)
7270 def erase_mover(self, i):
7271 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7272 return _IMP_core.MonteCarlo_erase_mover(self, i)
7274 def reserve_movers(self, sz):
7275 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7276 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7279 r"""__str__(MonteCarlo self) -> std::string"""
7280 return _IMP_core.MonteCarlo___str__(self)
7283 r"""__repr__(MonteCarlo self) -> std::string"""
7284 return _IMP_core.MonteCarlo___repr__(self)
7288 return _object_cast_to_MonteCarlo(o)
7292 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7293 class MonteCarloWithLocalOptimization(MonteCarlo):
7294 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7296 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7298 def __init__(self, opt, steps):
7299 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7300 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7302 def get_number_of_steps(self):
7303 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7304 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7306 def get_local_optimizer(self):
7307 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7308 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7309 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7312 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7313 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7316 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7317 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7321 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7325 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7326 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7327 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7329 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7331 def __init__(self, opt, ns):
7332 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7333 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7334 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7337 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7338 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7341 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7342 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7346 return _object_cast_to_MonteCarloWithBasinHopping(o)
7350 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7352 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7354 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7356 def __init__(self, *args):
7357 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7358 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7360 def get_neighbors(self, pi):
7361 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7362 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7364 def get_version_info(self):
7365 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7366 return _IMP_core.NeighborsTable_get_version_info(self)
7367 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7370 r"""__str__(NeighborsTable self) -> std::string"""
7371 return _IMP_core.NeighborsTable___str__(self)
7374 r"""__repr__(NeighborsTable self) -> std::string"""
7375 return _IMP_core.NeighborsTable___repr__(self)
7379 return _object_cast_to_NeighborsTable(o)
7383 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7384 class NormalMover(MonteCarloMover):
7385 r"""Proxy of C++ IMP::core::NormalMover class."""
7387 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7389 def __init__(self, *args):
7391 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7392 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7393 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7394 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7395 __init__(NormalMover self) -> NormalMover
7397 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7399 def set_sigma(self, sigma):
7400 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7401 return _IMP_core.NormalMover_set_sigma(self, sigma)
7403 def get_sigma(self):
7404 r"""get_sigma(NormalMover self) -> IMP::Float"""
7405 return _IMP_core.NormalMover_get_sigma(self)
7407 def get_version_info(self):
7408 r"""get_version_info(NormalMover self) -> VersionInfo"""
7409 return _IMP_core.NormalMover_get_version_info(self)
7410 __swig_destroy__ = _IMP_core.delete_NormalMover
7413 r"""__str__(NormalMover self) -> std::string"""
7414 return _IMP_core.NormalMover___str__(self)
7417 r"""__repr__(NormalMover self) -> std::string"""
7418 return _IMP_core.NormalMover___repr__(self)
7422 return _object_cast_to_NormalMover(o)
7425 def _get_as_binary(self):
7426 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7427 return _IMP_core.NormalMover__get_as_binary(self)
7429 def _set_from_binary(self, p):
7430 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7431 return _IMP_core.NormalMover__set_from_binary(self, p)
7433 def __getstate__(self):
7434 p = self._get_as_binary()
7435 if len(self.__dict__) > 1:
7436 d = self.__dict__.copy()
7441 def __setstate__(self, p):
7442 if not hasattr(self,
'this'):
7444 if isinstance(p, tuple):
7446 self.__dict__.update(d)
7447 return self._set_from_binary(p)
7451 _IMP_core.NormalMover_swigregister(NormalMover)
7452 class OpenCubicSpline(_OpenCubicSplineBase):
7453 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7455 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7457 def __init__(self, values, minrange, spacing, extend=False):
7458 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7459 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7462 r"""__str__(OpenCubicSpline self) -> std::string"""
7463 return _IMP_core.OpenCubicSpline___str__(self)
7466 r"""__repr__(OpenCubicSpline self) -> std::string"""
7467 return _IMP_core.OpenCubicSpline___repr__(self)
7471 return _object_cast_to_OpenCubicSpline(o)
7473 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7476 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7477 class QuadraticClosePairsFinder(ClosePairsFinder):
7478 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7480 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7483 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7484 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7486 def get_are_close_and_filtered(self, *args):
7488 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7489 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7491 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7493 def get_close_pairs(self, *args):
7495 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7496 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7497 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7498 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7500 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7502 def do_get_inputs(self, m, pis):
7503 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7504 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7506 def get_version_info(self):
7507 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7508 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7509 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7512 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7513 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7516 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7517 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7521 return _object_cast_to_QuadraticClosePairsFinder(o)
7525 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7527 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7529 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7531 def __init__(self, r, f):
7532 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7533 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7535 def do_get_inputs(self, m, pis):
7536 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7537 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7539 def get_version_info(self):
7540 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7541 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7542 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7545 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7546 return _IMP_core.RefinedPairsPairScore___str__(self)
7549 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7550 return _IMP_core.RefinedPairsPairScore___repr__(self)
7554 return _object_cast_to_RefinedPairsPairScore(o)
7558 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7559 class RigidBody(XYZ):
7560 r"""Proxy of C++ IMP::core::RigidBody class."""
7562 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7564 def get_rigid_members(self):
7565 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7566 return _IMP_core.RigidBody_get_rigid_members(self)
7569 def get_rotation_keys():
7570 r"""get_rotation_keys() -> IMP::FloatKeys"""
7571 return _IMP_core.RigidBody_get_rotation_keys()
7573 def get_member_particle_indexes(self):
7574 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7575 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7577 def get_body_member_particle_indexes(self):
7578 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7579 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7581 def get_member_indexes(self):
7582 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7583 return _IMP_core.RigidBody_get_member_indexes(self)
7585 def show(self, *args):
7586 r"""show(RigidBody self, _ostream out=std::cout)"""
7587 return _IMP_core.RigidBody_show(self, *args)
7590 def setup_particle(*args):
7592 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7593 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7594 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7595 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7597 return _IMP_core.RigidBody_setup_particle(*args)
7600 def teardown_particle(rb):
7601 r"""teardown_particle(RigidBody rb)"""
7602 return _IMP_core.RigidBody_teardown_particle(rb)
7604 def __init__(self, *args):
7606 __init__(RigidBody self) -> RigidBody
7607 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7608 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7609 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7611 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7612 __swig_destroy__ = _IMP_core.delete_RigidBody
7615 def get_is_setup(*args):
7617 get_is_setup(_ParticleAdaptor p) -> bool
7618 get_is_setup(Model m, ParticleIndex pi) -> bool
7620 return _IMP_core.RigidBody_get_is_setup(*args)
7622 def get_coordinates(self):
7623 r"""get_coordinates(RigidBody self) -> Vector3D"""
7624 return _IMP_core.RigidBody_get_coordinates(self)
7626 def get_rotation(self):
7627 r"""get_rotation(RigidBody self) -> Rotation3D"""
7628 return _IMP_core.RigidBody_get_rotation(self)
7630 def get_reference_frame(self):
7631 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7632 return _IMP_core.RigidBody_get_reference_frame(self)
7634 def set_reference_frame(self, tr):
7635 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7636 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7638 def set_reference_frame_lazy(self, tr):
7639 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7640 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7642 def set_reference_frame_from_members(self, members):
7643 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7644 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7646 def pull_back_members_adjoints(self, da):
7647 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7648 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7650 def pull_back_member_adjoints(self, pi, da):
7651 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7652 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7654 def pull_back_body_member_adjoints(self, pi, da):
7655 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7656 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7658 def add_to_derivatives(self, *args):
7660 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7661 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7663 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7665 def add_to_rotational_derivatives(self, *args):
7667 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7668 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7670 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7672 def add_to_torque(self, torque_local, da):
7673 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7674 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7676 def get_torque(self):
7677 r"""get_torque(RigidBody self) -> Vector3D"""
7678 return _IMP_core.RigidBody_get_torque(self)
7680 def get_coordinates_are_optimized(self):
7681 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7682 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7684 def set_coordinates_are_optimized(self, tf):
7685 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7686 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7688 def normalize_rotation(self):
7689 r"""normalize_rotation(RigidBody self)"""
7690 return _IMP_core.RigidBody_normalize_rotation(self)
7692 def update_members(self):
7693 r"""update_members(RigidBody self)"""
7694 return _IMP_core.RigidBody_update_members(self)
7696 def get_rotational_derivatives(self):
7697 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7698 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7700 def get_number_of_members(self):
7701 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7702 return _IMP_core.RigidBody_get_number_of_members(self)
7704 def get_member(self, i):
7705 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7706 return _IMP_core.RigidBody_get_member(self, i)
7708 def add_member(self, p):
7709 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7710 return _IMP_core.RigidBody_add_member(self, p)
7712 def add_non_rigid_member(self, p):
7713 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7714 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7716 def set_is_rigid_member(self, pi, tf):
7717 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7718 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7720 def remove_member(self, p):
7721 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7722 return _IMP_core.RigidBody_remove_member(self, p)
7724 def add_attribute(self, *args):
7726 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7727 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7728 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7729 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7730 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7731 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7732 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7733 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7734 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7735 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7736 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7737 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7739 return _IMP_core.RigidBody_add_attribute(self, *args)
7741 def get_value(self, *args):
7743 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7744 get_value(RigidBody self, IntKey a0) -> IMP::Int
7745 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7746 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7747 get_value(RigidBody self, StringKey a0) -> IMP::String
7748 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7749 get_value(RigidBody self, ObjectKey a0) -> Object
7750 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7751 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7752 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7753 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7755 return _IMP_core.RigidBody_get_value(self, *args)
7757 def set_value(self, *args):
7759 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7760 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7761 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7762 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7763 set_value(RigidBody self, StringKey a0, IMP::String a1)
7764 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7765 set_value(RigidBody self, ObjectKey a0, Object a1)
7766 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7767 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7768 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7769 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7771 return _IMP_core.RigidBody_set_value(self, *args)
7773 def remove_attribute(self, *args):
7775 remove_attribute(RigidBody self, FloatKey a0)
7776 remove_attribute(RigidBody self, IntKey a0)
7777 remove_attribute(RigidBody self, FloatsKey a0)
7778 remove_attribute(RigidBody self, IntsKey a0)
7779 remove_attribute(RigidBody self, StringKey a0)
7780 remove_attribute(RigidBody self, ParticleIndexKey a0)
7781 remove_attribute(RigidBody self, ObjectKey a0)
7782 remove_attribute(RigidBody self, SparseFloatKey a0)
7783 remove_attribute(RigidBody self, SparseIntKey a0)
7784 remove_attribute(RigidBody self, SparseStringKey a0)
7785 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7787 return _IMP_core.RigidBody_remove_attribute(self, *args)
7789 def has_attribute(self, *args):
7791 has_attribute(RigidBody self, FloatKey a0) -> bool
7792 has_attribute(RigidBody self, IntKey a0) -> bool
7793 has_attribute(RigidBody self, FloatsKey a0) -> bool
7794 has_attribute(RigidBody self, IntsKey a0) -> bool
7795 has_attribute(RigidBody self, StringKey a0) -> bool
7796 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7797 has_attribute(RigidBody self, ObjectKey a0) -> bool
7798 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7799 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7800 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7801 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7803 return _IMP_core.RigidBody_has_attribute(self, *args)
7805 def get_derivative(self, a0):
7806 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7807 return _IMP_core.RigidBody_get_derivative(self, a0)
7810 r"""get_name(RigidBody self) -> std::string"""
7811 return _IMP_core.RigidBody_get_name(self)
7813 def clear_caches(self):
7814 r"""clear_caches(RigidBody self)"""
7815 return _IMP_core.RigidBody_clear_caches(self)
7817 def set_name(self, a0):
7818 r"""set_name(RigidBody self, std::string a0)"""
7819 return _IMP_core.RigidBody_set_name(self, a0)
7822 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7823 return _IMP_core.RigidBody_set_check_level(self, a0)
7825 def add_to_derivative(self, a0, a1, a2):
7826 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7827 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7829 def set_is_optimized(self, a0, a1):
7830 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7831 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7833 def get_is_optimized(self, a0):
7834 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7835 return _IMP_core.RigidBody_get_is_optimized(self, a0)
7838 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7839 return _IMP_core.RigidBody_get_check_level(self)
7841 def __eq__(self, *args):
7843 __eq__(RigidBody self, RigidBody o) -> bool
7844 __eq__(RigidBody self, Particle d) -> bool
7846 return _IMP_core.RigidBody___eq__(self, *args)
7848 def __ne__(self, *args):
7850 __ne__(RigidBody self, RigidBody o) -> bool
7851 __ne__(RigidBody self, Particle d) -> bool
7853 return _IMP_core.RigidBody___ne__(self, *args)
7855 def __le__(self, *args):
7857 __le__(RigidBody self, RigidBody o) -> bool
7858 __le__(RigidBody self, Particle d) -> bool
7860 return _IMP_core.RigidBody___le__(self, *args)
7862 def __lt__(self, *args):
7864 __lt__(RigidBody self, RigidBody o) -> bool
7865 __lt__(RigidBody self, Particle d) -> bool
7867 return _IMP_core.RigidBody___lt__(self, *args)
7869 def __ge__(self, *args):
7871 __ge__(RigidBody self, RigidBody o) -> bool
7872 __ge__(RigidBody self, Particle d) -> bool
7874 return _IMP_core.RigidBody___ge__(self, *args)
7876 def __gt__(self, *args):
7878 __gt__(RigidBody self, RigidBody o) -> bool
7879 __gt__(RigidBody self, Particle d) -> bool
7881 return _IMP_core.RigidBody___gt__(self, *args)
7884 r"""__hash__(RigidBody self) -> std::size_t"""
7885 return _IMP_core.RigidBody___hash__(self)
7888 r"""__str__(RigidBody self) -> std::string"""
7889 return _IMP_core.RigidBody___str__(self)
7892 r"""__repr__(RigidBody self) -> std::string"""
7893 return _IMP_core.RigidBody___repr__(self)
7895 def _get_as_binary(self):
7896 r"""_get_as_binary(RigidBody self) -> PyObject *"""
7897 return _IMP_core.RigidBody__get_as_binary(self)
7899 def _set_from_binary(self, p):
7900 r"""_set_from_binary(RigidBody self, PyObject * p)"""
7901 return _IMP_core.RigidBody__set_from_binary(self, p)
7903 def __getstate__(self):
7904 p = self._get_as_binary()
7905 if len(self.__dict__) > 1:
7906 d = self.__dict__.copy()
7911 def __setstate__(self, p):
7912 if not hasattr(self,
'this'):
7914 if isinstance(p, tuple):
7916 self.__dict__.update(d)
7917 return self._set_from_binary(p)
7921 _IMP_core.RigidBody_swigregister(RigidBody)
7924 r"""add_rigid_body_cache_key(ObjectKey k)"""
7925 return _IMP_core.add_rigid_body_cache_key(k)
7926 class RigidBodyMember(XYZ):
7927 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7931 def show(self, *args):
7932 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7933 return _IMP_core.RigidBodyMember_show(self, *args)
7935 def get_rigid_body(self):
7936 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
7937 return _IMP_core.RigidBodyMember_get_rigid_body(self)
7939 def get_internal_coordinates(self):
7940 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
7941 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
7943 def set_internal_coordinates(self, v):
7944 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
7945 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
7947 def set_internal_transformation(self, v):
7948 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
7949 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
7951 def get_internal_transformation(self):
7952 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
7953 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
7954 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
7956 def set_coordinates(self, *args):
7958 set_coordinates(RigidBodyMember self, Vector3D center)
7959 set_coordinates(RigidBodyMember self, Transformation3D tr)
7961 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
7963 def __init__(self, *args):
7965 __init__(RigidBodyMember self) -> RigidBodyMember
7966 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
7967 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
7968 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
7970 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
7973 def get_is_setup(*args):
7975 get_is_setup(_ParticleAdaptor p) -> bool
7976 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7978 return _IMP_core.RigidBodyMember_get_is_setup(*args)
7981 def get_internal_coordinate_keys():
7982 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
7983 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
7986 def get_internal_rotation_keys():
7987 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
7988 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
7990 def add_attribute(self, *args):
7992 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
7993 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7994 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
7995 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7996 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7997 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
7998 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
7999 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8000 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8001 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8002 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8003 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8005 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8007 def get_value(self, *args):
8009 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8010 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8011 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8012 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8013 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8014 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8015 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8016 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8017 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8018 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8019 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8021 return _IMP_core.RigidBodyMember_get_value(self, *args)
8023 def set_value(self, *args):
8025 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8026 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8027 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8028 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8029 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8030 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8031 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8032 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8033 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8034 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8035 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8037 return _IMP_core.RigidBodyMember_set_value(self, *args)
8039 def remove_attribute(self, *args):
8041 remove_attribute(RigidBodyMember self, FloatKey a0)
8042 remove_attribute(RigidBodyMember self, IntKey a0)
8043 remove_attribute(RigidBodyMember self, FloatsKey a0)
8044 remove_attribute(RigidBodyMember self, IntsKey a0)
8045 remove_attribute(RigidBodyMember self, StringKey a0)
8046 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8047 remove_attribute(RigidBodyMember self, ObjectKey a0)
8048 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8049 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8050 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8051 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8053 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8055 def has_attribute(self, *args):
8057 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8058 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8059 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8060 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8061 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8062 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8063 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8064 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8065 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8066 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8067 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8069 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8071 def get_derivative(self, a0):
8072 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8073 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8076 r"""get_name(RigidBodyMember self) -> std::string"""
8077 return _IMP_core.RigidBodyMember_get_name(self)
8079 def clear_caches(self):
8080 r"""clear_caches(RigidBodyMember self)"""
8081 return _IMP_core.RigidBodyMember_clear_caches(self)
8083 def set_name(self, a0):
8084 r"""set_name(RigidBodyMember self, std::string a0)"""
8085 return _IMP_core.RigidBodyMember_set_name(self, a0)
8088 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8089 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8091 def add_to_derivative(self, a0, a1, a2):
8092 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8093 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8095 def set_is_optimized(self, a0, a1):
8096 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8097 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8099 def get_is_optimized(self, a0):
8100 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8101 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8104 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8105 return _IMP_core.RigidBodyMember_get_check_level(self)
8107 def __eq__(self, *args):
8109 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8110 __eq__(RigidBodyMember self, Particle d) -> bool
8112 return _IMP_core.RigidBodyMember___eq__(self, *args)
8114 def __ne__(self, *args):
8116 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8117 __ne__(RigidBodyMember self, Particle d) -> bool
8119 return _IMP_core.RigidBodyMember___ne__(self, *args)
8121 def __le__(self, *args):
8123 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8124 __le__(RigidBodyMember self, Particle d) -> bool
8126 return _IMP_core.RigidBodyMember___le__(self, *args)
8128 def __lt__(self, *args):
8130 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8131 __lt__(RigidBodyMember self, Particle d) -> bool
8133 return _IMP_core.RigidBodyMember___lt__(self, *args)
8135 def __ge__(self, *args):
8137 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8138 __ge__(RigidBodyMember self, Particle d) -> bool
8140 return _IMP_core.RigidBodyMember___ge__(self, *args)
8142 def __gt__(self, *args):
8144 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8145 __gt__(RigidBodyMember self, Particle d) -> bool
8147 return _IMP_core.RigidBodyMember___gt__(self, *args)
8150 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8151 return _IMP_core.RigidBodyMember___hash__(self)
8154 r"""__str__(RigidBodyMember self) -> std::string"""
8155 return _IMP_core.RigidBodyMember___str__(self)
8158 r"""__repr__(RigidBodyMember self) -> std::string"""
8159 return _IMP_core.RigidBodyMember___repr__(self)
8161 def _get_as_binary(self):
8162 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8163 return _IMP_core.RigidBodyMember__get_as_binary(self)
8165 def _set_from_binary(self, p):
8166 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8167 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8169 def __getstate__(self):
8170 p = self._get_as_binary()
8171 if len(self.__dict__) > 1:
8172 d = self.__dict__.copy()
8177 def __setstate__(self, p):
8178 if not hasattr(self,
'this'):
8180 if isinstance(p, tuple):
8182 self.__dict__.update(d)
8183 return self._set_from_binary(p)
8187 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8188 class RigidMember(RigidBodyMember):
8189 r"""Proxy of C++ IMP::core::RigidMember class."""
8191 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8193 def show(self, *args):
8194 r"""show(RigidMember self, _ostream out=std::cout)"""
8195 return _IMP_core.RigidMember_show(self, *args)
8197 def __init__(self, *args):
8199 __init__(RigidMember self) -> RigidMember
8200 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8201 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8202 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8204 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8205 __swig_destroy__ = _IMP_core.delete_RigidMember
8208 def get_is_setup(*args):
8210 get_is_setup(_ParticleAdaptor p) -> bool
8211 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8213 return _IMP_core.RigidMember_get_is_setup(*args)
8215 def add_attribute(self, *args):
8217 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8218 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8219 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8220 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8221 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8222 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8223 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8224 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8225 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8226 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8227 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8228 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8230 return _IMP_core.RigidMember_add_attribute(self, *args)
8232 def get_value(self, *args):
8234 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8235 get_value(RigidMember self, IntKey a0) -> IMP::Int
8236 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8237 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8238 get_value(RigidMember self, StringKey a0) -> IMP::String
8239 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8240 get_value(RigidMember self, ObjectKey a0) -> Object
8241 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8242 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8243 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8244 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8246 return _IMP_core.RigidMember_get_value(self, *args)
8248 def set_value(self, *args):
8250 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8251 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8252 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8253 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8254 set_value(RigidMember self, StringKey a0, IMP::String a1)
8255 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8256 set_value(RigidMember self, ObjectKey a0, Object a1)
8257 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8258 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8259 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8260 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8262 return _IMP_core.RigidMember_set_value(self, *args)
8264 def remove_attribute(self, *args):
8266 remove_attribute(RigidMember self, FloatKey a0)
8267 remove_attribute(RigidMember self, IntKey a0)
8268 remove_attribute(RigidMember self, FloatsKey a0)
8269 remove_attribute(RigidMember self, IntsKey a0)
8270 remove_attribute(RigidMember self, StringKey a0)
8271 remove_attribute(RigidMember self, ParticleIndexKey a0)
8272 remove_attribute(RigidMember self, ObjectKey a0)
8273 remove_attribute(RigidMember self, SparseFloatKey a0)
8274 remove_attribute(RigidMember self, SparseIntKey a0)
8275 remove_attribute(RigidMember self, SparseStringKey a0)
8276 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8278 return _IMP_core.RigidMember_remove_attribute(self, *args)
8280 def has_attribute(self, *args):
8282 has_attribute(RigidMember self, FloatKey a0) -> bool
8283 has_attribute(RigidMember self, IntKey a0) -> bool
8284 has_attribute(RigidMember self, FloatsKey a0) -> bool
8285 has_attribute(RigidMember self, IntsKey a0) -> bool
8286 has_attribute(RigidMember self, StringKey a0) -> bool
8287 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8288 has_attribute(RigidMember self, ObjectKey a0) -> bool
8289 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8290 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8291 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8292 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8294 return _IMP_core.RigidMember_has_attribute(self, *args)
8296 def get_derivative(self, a0):
8297 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8298 return _IMP_core.RigidMember_get_derivative(self, a0)
8301 r"""get_name(RigidMember self) -> std::string"""
8302 return _IMP_core.RigidMember_get_name(self)
8304 def clear_caches(self):
8305 r"""clear_caches(RigidMember self)"""
8306 return _IMP_core.RigidMember_clear_caches(self)
8308 def set_name(self, a0):
8309 r"""set_name(RigidMember self, std::string a0)"""
8310 return _IMP_core.RigidMember_set_name(self, a0)
8313 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8314 return _IMP_core.RigidMember_set_check_level(self, a0)
8316 def add_to_derivative(self, a0, a1, a2):
8317 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8318 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8320 def set_is_optimized(self, a0, a1):
8321 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8322 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8324 def get_is_optimized(self, a0):
8325 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8326 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8329 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8330 return _IMP_core.RigidMember_get_check_level(self)
8332 def __eq__(self, *args):
8334 __eq__(RigidMember self, RigidMember o) -> bool
8335 __eq__(RigidMember self, Particle d) -> bool
8337 return _IMP_core.RigidMember___eq__(self, *args)
8339 def __ne__(self, *args):
8341 __ne__(RigidMember self, RigidMember o) -> bool
8342 __ne__(RigidMember self, Particle d) -> bool
8344 return _IMP_core.RigidMember___ne__(self, *args)
8346 def __le__(self, *args):
8348 __le__(RigidMember self, RigidMember o) -> bool
8349 __le__(RigidMember self, Particle d) -> bool
8351 return _IMP_core.RigidMember___le__(self, *args)
8353 def __lt__(self, *args):
8355 __lt__(RigidMember self, RigidMember o) -> bool
8356 __lt__(RigidMember self, Particle d) -> bool
8358 return _IMP_core.RigidMember___lt__(self, *args)
8360 def __ge__(self, *args):
8362 __ge__(RigidMember self, RigidMember o) -> bool
8363 __ge__(RigidMember self, Particle d) -> bool
8365 return _IMP_core.RigidMember___ge__(self, *args)
8367 def __gt__(self, *args):
8369 __gt__(RigidMember self, RigidMember o) -> bool
8370 __gt__(RigidMember self, Particle d) -> bool
8372 return _IMP_core.RigidMember___gt__(self, *args)
8375 r"""__hash__(RigidMember self) -> std::size_t"""
8376 return _IMP_core.RigidMember___hash__(self)
8379 r"""__str__(RigidMember self) -> std::string"""
8380 return _IMP_core.RigidMember___str__(self)
8383 r"""__repr__(RigidMember self) -> std::string"""
8384 return _IMP_core.RigidMember___repr__(self)
8386 def _get_as_binary(self):
8387 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8388 return _IMP_core.RigidMember__get_as_binary(self)
8390 def _set_from_binary(self, p):
8391 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8392 return _IMP_core.RigidMember__set_from_binary(self, p)
8394 def __getstate__(self):
8395 p = self._get_as_binary()
8396 if len(self.__dict__) > 1:
8397 d = self.__dict__.copy()
8402 def __setstate__(self, p):
8403 if not hasattr(self,
'this'):
8405 if isinstance(p, tuple):
8407 self.__dict__.update(d)
8408 return self._set_from_binary(p)
8412 _IMP_core.RigidMember_swigregister(RigidMember)
8413 class NonRigidMember(RigidBodyMember):
8414 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8416 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8418 def show(self, *args):
8419 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8420 return _IMP_core.NonRigidMember_show(self, *args)
8422 def __init__(self, *args):
8424 __init__(NonRigidMember self) -> NonRigidMember
8425 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8426 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8427 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8429 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8430 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8433 def get_is_setup(*args):
8435 get_is_setup(_ParticleAdaptor p) -> bool
8436 get_is_setup(Model m, ParticleIndex p) -> bool
8438 return _IMP_core.NonRigidMember_get_is_setup(*args)
8440 def add_to_internal_derivatives(self, deriv_parent, da):
8441 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8442 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8444 def add_to_internal_rotational_derivatives(self, *args):
8446 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8447 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8449 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8451 def get_internal_derivatives(self):
8452 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8453 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8455 def get_internal_rotational_derivatives(self):
8456 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8457 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8459 def add_attribute(self, *args):
8461 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8462 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8463 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8464 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8465 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8466 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8467 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8468 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8469 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8470 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8471 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8472 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8474 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8476 def get_value(self, *args):
8478 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8479 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8480 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8481 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8482 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8483 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8484 get_value(NonRigidMember self, ObjectKey a0) -> Object
8485 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8486 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8487 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8488 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8490 return _IMP_core.NonRigidMember_get_value(self, *args)
8492 def set_value(self, *args):
8494 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8495 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8496 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8497 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8498 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8499 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8500 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8501 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8502 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8503 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8504 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8506 return _IMP_core.NonRigidMember_set_value(self, *args)
8508 def remove_attribute(self, *args):
8510 remove_attribute(NonRigidMember self, FloatKey a0)
8511 remove_attribute(NonRigidMember self, IntKey a0)
8512 remove_attribute(NonRigidMember self, FloatsKey a0)
8513 remove_attribute(NonRigidMember self, IntsKey a0)
8514 remove_attribute(NonRigidMember self, StringKey a0)
8515 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8516 remove_attribute(NonRigidMember self, ObjectKey a0)
8517 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8518 remove_attribute(NonRigidMember self, SparseIntKey a0)
8519 remove_attribute(NonRigidMember self, SparseStringKey a0)
8520 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8522 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8524 def has_attribute(self, *args):
8526 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8527 has_attribute(NonRigidMember self, IntKey a0) -> bool
8528 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8529 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8530 has_attribute(NonRigidMember self, StringKey a0) -> bool
8531 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8532 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8533 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8534 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8535 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8536 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8538 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8540 def get_derivative(self, a0):
8541 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8542 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8545 r"""get_name(NonRigidMember self) -> std::string"""
8546 return _IMP_core.NonRigidMember_get_name(self)
8548 def clear_caches(self):
8549 r"""clear_caches(NonRigidMember self)"""
8550 return _IMP_core.NonRigidMember_clear_caches(self)
8552 def set_name(self, a0):
8553 r"""set_name(NonRigidMember self, std::string a0)"""
8554 return _IMP_core.NonRigidMember_set_name(self, a0)
8557 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8558 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8560 def add_to_derivative(self, a0, a1, a2):
8561 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8562 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8564 def set_is_optimized(self, a0, a1):
8565 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8566 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8568 def get_is_optimized(self, a0):
8569 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8570 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8573 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8574 return _IMP_core.NonRigidMember_get_check_level(self)
8576 def __eq__(self, *args):
8578 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8579 __eq__(NonRigidMember self, Particle d) -> bool
8581 return _IMP_core.NonRigidMember___eq__(self, *args)
8583 def __ne__(self, *args):
8585 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8586 __ne__(NonRigidMember self, Particle d) -> bool
8588 return _IMP_core.NonRigidMember___ne__(self, *args)
8590 def __le__(self, *args):
8592 __le__(NonRigidMember self, NonRigidMember o) -> bool
8593 __le__(NonRigidMember self, Particle d) -> bool
8595 return _IMP_core.NonRigidMember___le__(self, *args)
8597 def __lt__(self, *args):
8599 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8600 __lt__(NonRigidMember self, Particle d) -> bool
8602 return _IMP_core.NonRigidMember___lt__(self, *args)
8604 def __ge__(self, *args):
8606 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8607 __ge__(NonRigidMember self, Particle d) -> bool
8609 return _IMP_core.NonRigidMember___ge__(self, *args)
8611 def __gt__(self, *args):
8613 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8614 __gt__(NonRigidMember self, Particle d) -> bool
8616 return _IMP_core.NonRigidMember___gt__(self, *args)
8619 r"""__hash__(NonRigidMember self) -> std::size_t"""
8620 return _IMP_core.NonRigidMember___hash__(self)
8623 r"""__str__(NonRigidMember self) -> std::string"""
8624 return _IMP_core.NonRigidMember___str__(self)
8627 r"""__repr__(NonRigidMember self) -> std::string"""
8628 return _IMP_core.NonRigidMember___repr__(self)
8630 def _get_as_binary(self):
8631 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8632 return _IMP_core.NonRigidMember__get_as_binary(self)
8634 def _set_from_binary(self, p):
8635 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8636 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8638 def __getstate__(self):
8639 p = self._get_as_binary()
8640 if len(self.__dict__) > 1:
8641 d = self.__dict__.copy()
8646 def __setstate__(self, p):
8647 if not hasattr(self,
'this'):
8649 if isinstance(p, tuple):
8651 self.__dict__.update(d)
8652 return self._set_from_binary(p)
8656 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8658 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8660 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8662 def __init__(self, *args):
8663 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8664 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8666 def do_get_inputs(self, m, pis):
8667 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8668 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8670 def get_version_info(self):
8671 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8672 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8673 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8676 r"""__str__(RigidMembersRefiner self) -> std::string"""
8677 return _IMP_core.RigidMembersRefiner___str__(self)
8680 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8681 return _IMP_core.RigidMembersRefiner___repr__(self)
8685 return _object_cast_to_RigidMembersRefiner(o)
8689 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8691 def get_rigid_members_refiner():
8692 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8693 return _IMP_core.get_rigid_members_refiner()
8697 transform(XYZ a, Transformation3D tr)
8698 transform(RigidBody a, Transformation3D tr)
8700 return _IMP_core.transform(*args)
8704 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8705 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8707 return _IMP_core.get_initial_reference_frame(*args)
8710 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8711 return _IMP_core.create_rigid_bodies(m, n, no_members)
8714 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8715 return _IMP_core.show_rigid_body_hierarchy(*args)
8718 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8719 return _IMP_core.get_root_rigid_body(m)
8721 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8723 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8725 def __init__(self, rb, constituents):
8726 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8727 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8729 def get_version_info(self):
8730 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8731 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8732 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8735 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8736 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8739 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8740 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8744 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8748 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8750 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8752 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8754 def __init__(self, *args):
8756 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8757 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8759 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8761 def get_version_info(self):
8762 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8763 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8764 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8767 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8768 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8771 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8772 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8776 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8780 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8782 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8784 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8786 def __init__(self, sc):
8787 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8788 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8790 def get_version_info(self):
8791 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8792 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8793 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8796 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8797 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8800 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8801 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8805 return _object_cast_to_RigidBodyDerivativesGeometry(o)
8809 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8811 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8813 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8815 def __init__(self, *args):
8817 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8818 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8820 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8822 def get_version_info(self):
8823 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8824 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8825 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8828 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8829 return _IMP_core.RigidBodyFrameGeometry___str__(self)
8832 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8833 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8837 return _object_cast_to_RigidBodyFrameGeometry(o)
8841 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8843 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8845 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8847 def __init__(self, sc):
8848 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8849 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8851 def get_version_info(self):
8852 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8853 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8854 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8857 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8858 return _IMP_core.RigidBodyFramesGeometry___str__(self)
8861 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8862 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8866 return _object_cast_to_RigidBodyFramesGeometry(o)
8870 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8872 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8876 def __init__(self, p):
8877 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8878 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8881 r"""__str__(RigidBodyTorque self) -> std::string"""
8882 return _IMP_core.RigidBodyTorque___str__(self)
8885 r"""__repr__(RigidBodyTorque self) -> std::string"""
8886 return _IMP_core.RigidBodyTorque___repr__(self)
8890 return _object_cast_to_RigidBodyTorque(o)
8892 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8895 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8896 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8897 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8899 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8902 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8903 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8905 def get_close_pairs(self, *args):
8907 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8908 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8909 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8910 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8912 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8914 def do_get_inputs(self, m, pis):
8915 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8916 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8918 def get_version_info(self):
8919 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8920 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8921 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8924 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8925 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8928 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8929 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8933 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8937 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
8939 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
8941 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8943 def __init__(self, *args):
8945 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
8946 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
8947 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
8949 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
8951 def do_add_score_and_derivatives(self, sa, ss):
8952 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
8953 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
8955 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
8956 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)"""
8957 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
8959 def do_get_inputs(self):
8960 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
8961 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
8963 def get_restraints(self):
8964 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
8965 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
8967 def set_restraints(self, d):
8968 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8969 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
8971 def get_number_of_restraints(self):
8972 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
8973 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
8975 def clear_restraints(self):
8976 r"""clear_restraints(RestraintsScoringFunction self)"""
8977 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
8979 def get_restraint(self, i):
8980 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
8981 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
8983 def erase_restraint(self, i):
8984 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
8985 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
8988 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
8989 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
8992 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8993 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
8995 def _python_index_restraint(self, r, start, stop):
8996 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
8997 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
8998 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)
8999 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9000 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9001 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9003 def get_version_info(self):
9004 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9005 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9006 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9009 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9010 return _IMP_core.RestraintsScoringFunction___str__(self)
9013 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9014 return _IMP_core.RestraintsScoringFunction___repr__(self)
9018 return _object_cast_to_RestraintsScoringFunction(o)
9021 def _get_as_binary(self):
9022 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9023 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9025 def _set_from_binary(self, p):
9026 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9027 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9029 def __getstate__(self):
9030 p = self._get_as_binary()
9031 if len(self.__dict__) > 1:
9032 d = self.__dict__.copy()
9037 def __setstate__(self, p):
9038 if not hasattr(self,
'this'):
9040 if isinstance(p, tuple):
9042 self.__dict__.update(d)
9043 return self._set_from_binary(p)
9047 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9048 class RigidClosePairsFinder(ClosePairsFinder):
9049 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9051 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9053 def __init__(self, cpf=None):
9054 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9055 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9057 def do_get_inputs(self, m, pis):
9058 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9059 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9061 def get_close_pairs(self, *args):
9063 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9064 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9065 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9066 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9067 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9069 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9071 def get_version_info(self):
9072 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9073 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9074 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9077 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9078 return _IMP_core.RigidClosePairsFinder___str__(self)
9081 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9082 return _IMP_core.RigidClosePairsFinder___repr__(self)
9086 return _object_cast_to_RigidClosePairsFinder(o)
9089 def _get_as_binary(self):
9090 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9091 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9093 def _set_from_binary(self, p):
9094 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9095 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9097 def __getstate__(self):
9098 p = self._get_as_binary()
9099 if len(self.__dict__) > 1:
9100 d = self.__dict__.copy()
9105 def __setstate__(self, p):
9106 if not hasattr(self,
'this'):
9108 if isinstance(p, tuple):
9110 self.__dict__.update(d)
9111 return self._set_from_binary(p)
9115 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9117 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9119 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9121 def __init__(self, *args):
9123 __init__(SphereDistancePairScore self, UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> SphereDistancePairScore
9124 __init__(SphereDistancePairScore self) -> SphereDistancePairScore
9126 _IMP_core.SphereDistancePairScore_swiginit(self, _IMP_core.new_SphereDistancePairScore(*args))
9128 def do_get_inputs(self, m, pis):
9129 r"""do_get_inputs(SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9130 return _IMP_core.SphereDistancePairScore_do_get_inputs(self, m, pis)
9132 def get_version_info(self):
9133 r"""get_version_info(SphereDistancePairScore self) -> VersionInfo"""
9134 return _IMP_core.SphereDistancePairScore_get_version_info(self)
9135 __swig_destroy__ = _IMP_core.delete_SphereDistancePairScore
9138 r"""__str__(SphereDistancePairScore self) -> std::string"""
9139 return _IMP_core.SphereDistancePairScore___str__(self)
9142 r"""__repr__(SphereDistancePairScore self) -> std::string"""
9143 return _IMP_core.SphereDistancePairScore___repr__(self)
9147 return _object_cast_to_SphereDistancePairScore(o)
9150 def _get_as_binary(self):
9151 r"""_get_as_binary(SphereDistancePairScore self) -> PyObject *"""
9152 return _IMP_core.SphereDistancePairScore__get_as_binary(self)
9154 def _set_from_binary(self, p):
9155 r"""_set_from_binary(SphereDistancePairScore self, PyObject * p)"""
9156 return _IMP_core.SphereDistancePairScore__set_from_binary(self, p)
9158 def __getstate__(self):
9159 p = self._get_as_binary()
9160 if len(self.__dict__) > 1:
9161 d = self.__dict__.copy()
9166 def __setstate__(self, p):
9167 if not hasattr(self,
'this'):
9169 if isinstance(p, tuple):
9171 self.__dict__.update(d)
9172 return self._set_from_binary(p)
9176 _IMP_core.SphereDistancePairScore_swigregister(SphereDistancePairScore)
9177 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9178 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9180 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9182 def __init__(self, *args):
9184 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9185 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9187 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9189 def do_get_inputs(self, m, pis):
9190 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9191 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9193 def get_version_info(self):
9194 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9195 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9196 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9199 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9200 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9203 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9204 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9208 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9211 def _get_as_binary(self):
9212 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9213 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9215 def _set_from_binary(self, p):
9216 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9217 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9219 def __getstate__(self):
9220 p = self._get_as_binary()
9221 if len(self.__dict__) > 1:
9222 d = self.__dict__.copy()
9227 def __setstate__(self, p):
9228 if not hasattr(self,
'this'):
9230 if isinstance(p, tuple):
9232 self.__dict__.update(d)
9233 return self._set_from_binary(p)
9237 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9238 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9239 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9241 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9243 def __init__(self, d0, k):
9244 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9245 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9247 def get_rest_length(self):
9248 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9249 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9251 def get_stiffness(self):
9252 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9253 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9255 def do_get_inputs(self, m, pis):
9256 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9257 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9259 def get_version_info(self):
9260 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9261 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9262 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9265 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9266 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9269 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9270 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9274 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9278 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9280 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9282 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9284 def __init__(self, *args):
9286 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9287 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9289 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9291 def do_get_inputs(self, m, pis):
9292 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9293 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9295 def get_version_info(self):
9296 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9297 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9298 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9301 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9302 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9305 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9306 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9310 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9313 def _get_as_binary(self):
9314 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9315 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9317 def _set_from_binary(self, p):
9318 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9319 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9321 def __getstate__(self):
9322 p = self._get_as_binary()
9323 if len(self.__dict__) > 1:
9324 d = self.__dict__.copy()
9329 def __setstate__(self, p):
9330 if not hasattr(self,
'this'):
9332 if isinstance(p, tuple):
9334 self.__dict__.update(d)
9335 return self._set_from_binary(p)
9339 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9341 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9343 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9345 def __init__(self, *args):
9346 r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9347 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9349 def do_get_inputs(self, m, pis):
9350 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9351 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9353 def get_version_info(self):
9354 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9355 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9356 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9359 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9360 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9363 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9364 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9368 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9372 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9374 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9376 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9378 def __init__(self, *args):
9379 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9380 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9382 def do_get_inputs(self, m, pis):
9383 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9384 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9386 def get_version_info(self):
9387 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9388 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9389 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9392 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9393 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9396 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9397 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9401 return _object_cast_to_WeightedSphereDistancePairScore(o)
9405 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9407 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9409 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9411 def __init__(self, *args):
9413 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9414 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9416 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9418 def do_get_inputs(self, m, pis):
9419 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9420 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9422 def get_version_info(self):
9423 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9424 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9425 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9428 r"""__str__(SoftSpherePairScore self) -> std::string"""
9429 return _IMP_core.SoftSpherePairScore___str__(self)
9432 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9433 return _IMP_core.SoftSpherePairScore___repr__(self)
9437 return _object_cast_to_SoftSpherePairScore(o)
9440 def _get_as_binary(self):
9441 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9442 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9444 def _set_from_binary(self, p):
9445 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9446 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9448 def __getstate__(self):
9449 p = self._get_as_binary()
9450 if len(self.__dict__) > 1:
9451 d = self.__dict__.copy()
9456 def __setstate__(self, p):
9457 if not hasattr(self,
'this'):
9459 if isinstance(p, tuple):
9461 self.__dict__.update(d)
9462 return self._set_from_binary(p)
9466 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9468 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9470 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9472 def __init__(self, *args):
9473 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9474 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9476 def do_get_inputs(self, m, pis):
9477 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9478 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9480 def get_version_info(self):
9481 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9482 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9483 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9486 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9487 return _IMP_core.SurfaceDistancePairScore___str__(self)
9490 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9491 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9495 return _object_cast_to_SurfaceDistancePairScore(o)
9499 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9501 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9503 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9505 def __init__(self, *args):
9506 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9507 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9509 def do_get_inputs(self, m, pis):
9510 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9511 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9513 def get_version_info(self):
9514 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9515 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9516 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9519 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9520 return _IMP_core.SurfaceHeightPairScore___str__(self)
9523 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9524 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9528 return _object_cast_to_SurfaceHeightPairScore(o)
9532 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9534 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9536 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9538 def __init__(self, *args):
9539 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9540 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9542 def do_get_inputs(self, m, pis):
9543 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9544 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9546 def get_version_info(self):
9547 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9548 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9549 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9552 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9553 return _IMP_core.SurfaceDepthPairScore___str__(self)
9556 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9557 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9561 return _object_cast_to_SurfaceDepthPairScore(o)
9565 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9567 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9569 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9571 def __init__(self, *args):
9572 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9573 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9575 def do_get_inputs(self, m, pis):
9576 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9577 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9579 def get_version_info(self):
9580 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9581 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9582 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9585 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9586 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9589 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9590 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9594 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9598 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9600 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9602 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9604 def __init__(self, *args):
9605 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9606 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9608 def do_get_inputs(self, m, pis):
9609 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9610 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9612 def get_version_info(self):
9613 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9614 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9615 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9618 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9619 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9622 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9623 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9627 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9631 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9633 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9635 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9637 def __init__(self, *args):
9638 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9639 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9641 def do_get_inputs(self, m, pis):
9642 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9643 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9645 def get_version_info(self):
9646 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9647 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9648 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9651 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9652 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9655 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9656 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9660 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9664 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9666 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9668 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9670 def __init__(self, *args):
9671 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9672 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9674 def do_get_inputs(self, m, pis):
9675 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9676 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9678 def get_version_info(self):
9679 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9680 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9681 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9684 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9685 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9688 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9689 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9693 return _object_cast_to_SoftSuperSurfacePairScore(o)
9697 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9699 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9701 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9703 def __init__(self, *args):
9704 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9705 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9707 def do_get_inputs(self, m, pis):
9708 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9709 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9711 def get_version_info(self):
9712 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9713 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9714 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9717 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9718 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9721 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9722 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9726 return _object_cast_to_SoftSubSurfacePairScore(o)
9730 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9732 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9736 def __init__(self, link_num, link_length):
9737 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9738 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9740 def get_version_info(self):
9741 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9742 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9743 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9745 def get_link_number(self):
9746 r"""get_link_number(SurfaceTetheredChain self) -> int"""
9747 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9749 def get_link_length(self):
9750 r"""get_link_length(SurfaceTetheredChain self) -> double"""
9751 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9753 def set_link_number(self, N):
9754 r"""set_link_number(SurfaceTetheredChain self, int N)"""
9755 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9757 def set_link_length(self, b):
9758 r"""set_link_length(SurfaceTetheredChain self, double b)"""
9759 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9761 def get_distance_at_minimum(self):
9762 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9763 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9765 def get_average_distance(self):
9766 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9767 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9770 r"""__str__(SurfaceTetheredChain self) -> std::string"""
9771 return _IMP_core.SurfaceTetheredChain___str__(self)
9774 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9775 return _IMP_core.SurfaceTetheredChain___repr__(self)
9779 return _object_cast_to_SurfaceTetheredChain(o)
9783 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9785 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9787 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9789 def __init__(self, m, ss, rbs):
9790 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9791 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9793 def do_get_inputs(self):
9794 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9795 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9797 def do_get_outputs(self):
9798 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9799 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9801 def get_version_info(self):
9802 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9803 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9804 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9807 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9808 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9811 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9812 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9816 return _object_cast_to_SurfaceSymmetryConstraint(o)
9820 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9822 r"""Proxy of C++ IMP::core::SteepestDescent class."""
9824 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9826 def __init__(self, *args):
9827 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9828 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9830 def do_optimize(self, max_steps):
9831 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9832 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9834 def get_version_info(self):
9835 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9836 return _IMP_core.SteepestDescent_get_version_info(self)
9837 __swig_destroy__ = _IMP_core.delete_SteepestDescent
9839 def set_threshold(self, t):
9840 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9841 return _IMP_core.SteepestDescent_set_threshold(self, t)
9843 def set_step_size(self, t):
9844 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9845 return _IMP_core.SteepestDescent_set_step_size(self, t)
9847 def set_maximum_step_size(self, t):
9848 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9849 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9852 r"""__str__(SteepestDescent self) -> std::string"""
9853 return _IMP_core.SteepestDescent___str__(self)
9856 r"""__repr__(SteepestDescent self) -> std::string"""
9857 return _IMP_core.SteepestDescent___repr__(self)
9861 return _object_cast_to_SteepestDescent(o)
9865 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9867 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9869 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9871 def __init__(self, f, transformation):
9872 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9873 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9875 def set_transformation(self, rot):
9876 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9877 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9879 def do_get_inputs(self, m, pis):
9880 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9881 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9883 def get_version_info(self):
9884 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
9885 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
9886 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
9889 r"""__str__(TransformedDistancePairScore self) -> std::string"""
9890 return _IMP_core.TransformedDistancePairScore___str__(self)
9893 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
9894 return _IMP_core.TransformedDistancePairScore___repr__(self)
9898 return _object_cast_to_TransformedDistancePairScore(o)
9902 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
9904 r"""Proxy of C++ IMP::core::TypedPairScore class."""
9906 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9908 def __init__(self, typekey, allow_invalid_types=True):
9909 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
9910 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
9912 def set_particle_type(self, arg2):
9913 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
9914 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
9916 def set_pair_score(self, ps, atype, btype):
9917 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
9918 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
9920 def do_get_inputs(self, m, pis):
9921 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9922 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
9924 def get_version_info(self):
9925 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
9926 return _IMP_core.TypedPairScore_get_version_info(self)
9927 __swig_destroy__ = _IMP_core.delete_TypedPairScore
9930 r"""__str__(TypedPairScore self) -> std::string"""
9931 return _IMP_core.TypedPairScore___str__(self)
9934 r"""__repr__(TypedPairScore self) -> std::string"""
9935 return _IMP_core.TypedPairScore___repr__(self)
9939 return _object_cast_to_TypedPairScore(o)
9943 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
9944 class RigidBodyDistancePairScore(KClosePairsPairScore):
9945 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
9947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9949 def __init__(self, ps, r):
9950 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
9951 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
9954 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
9955 return _IMP_core.RigidBodyDistancePairScore___str__(self)
9958 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
9959 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
9963 return _object_cast_to_RigidBodyDistancePairScore(o)
9965 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
9968 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
9970 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
9972 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9974 def __init__(self, f):
9975 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
9976 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
9978 def do_get_inputs(self, m, pis):
9979 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9980 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
9982 def get_version_info(self):
9983 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
9984 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
9985 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
9988 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
9989 return _IMP_core.RigidBodyAnglePairScore___str__(self)
9992 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
9993 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
9997 return _object_cast_to_RigidBodyAnglePairScore(o)
10001 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10003 r"""Proxy of C++ IMP::core::TableRefiner class."""
10005 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10007 def __init__(self):
10008 r"""__init__(TableRefiner self) -> TableRefiner"""
10009 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10012 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10013 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10015 def remove_particle(self, p):
10016 r"""remove_particle(TableRefiner self, Particle p)"""
10017 return _IMP_core.TableRefiner_remove_particle(self, p)
10019 def set_particle(self, p, ps):
10020 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10021 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10023 def do_get_inputs(self, m, pis):
10024 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10025 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10027 def get_version_info(self):
10028 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10029 return _IMP_core.TableRefiner_get_version_info(self)
10030 __swig_destroy__ = _IMP_core.delete_TableRefiner
10033 r"""__str__(TableRefiner self) -> std::string"""
10034 return _IMP_core.TableRefiner___str__(self)
10036 def __repr__(self):
10037 r"""__repr__(TableRefiner self) -> std::string"""
10038 return _IMP_core.TableRefiner___repr__(self)
10042 return _object_cast_to_TableRefiner(o)
10046 _IMP_core.TableRefiner_swigregister(TableRefiner)
10047 LOWER = _IMP_core.LOWER
10049 BOTH = _IMP_core.BOTH
10051 UPPER = _IMP_core.UPPER
10054 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10058 def __init__(self, *args):
10059 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10060 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10062 def set_bounding_box(self, bb):
10063 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10064 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10066 def set_number_of_attempts(self, att):
10067 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10068 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10070 def set_number_of_monte_carlo_steps(self, cg):
10071 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10072 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10074 def set_number_of_conjugate_gradient_steps(self, cg):
10075 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10076 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10078 def set_max_monte_carlo_step_size(self, *args):
10080 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10081 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10083 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10085 def set_is_refining(self, tf):
10086 r"""set_is_refining(MCCGSampler self, bool tf)"""
10087 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10089 def set_local_optimizer(self, opt):
10090 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10091 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10093 def set_save_rejected_configurations(self, tf):
10094 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10095 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10097 def get_rejected_configurations(self):
10098 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10099 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10100 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)
10101 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10102 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10103 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10105 def remove_optimizer_state(self, d):
10106 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10107 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10109 def _python_index_optimizer_state(self, d, start, stop):
10110 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10111 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10113 def remove_optimizer_states(self, d):
10114 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10115 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10117 def set_optimizer_states(self, ps):
10118 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10119 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10121 def set_optimizer_states_order(self, objs):
10122 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10123 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10125 def add_optimizer_state(self, obj):
10126 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10127 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10129 def add_optimizer_states(self, objs):
10130 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10131 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10133 def clear_optimizer_states(self):
10134 r"""clear_optimizer_states(MCCGSampler self)"""
10135 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10137 def get_number_of_optimizer_states(self):
10138 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10139 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10141 def get_has_optimizer_states(self):
10142 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10143 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10145 def get_optimizer_state(self, i):
10146 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10147 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10149 def get_optimizer_states(self):
10150 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10151 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10153 def erase_optimizer_state(self, i):
10154 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10155 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10157 def reserve_optimizer_states(self, sz):
10158 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10159 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10161 def do_sample(self):
10162 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10163 return _IMP_core.MCCGSampler_do_sample(self)
10165 def get_version_info(self):
10166 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10167 return _IMP_core.MCCGSampler_get_version_info(self)
10168 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10171 r"""__str__(MCCGSampler self) -> std::string"""
10172 return _IMP_core.MCCGSampler___str__(self)
10174 def __repr__(self):
10175 r"""__repr__(MCCGSampler self) -> std::string"""
10176 return _IMP_core.MCCGSampler___repr__(self)
10180 return _object_cast_to_MCCGSampler(o)
10184 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10186 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10188 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10190 def __init__(self, *args):
10191 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10192 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10194 def do_get_inputs(self):
10195 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10196 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10198 def get_version_info(self):
10199 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10200 return _IMP_core.MinimumRestraint_get_version_info(self)
10201 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10202 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)
10203 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10204 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10205 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10207 def remove_restraint(self, d):
10208 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10209 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10211 def _python_index_restraint(self, d, start, stop):
10212 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10213 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10215 def remove_restraints(self, d):
10216 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10217 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10219 def set_restraints(self, ps):
10220 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10221 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10223 def set_restraints_order(self, objs):
10224 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10225 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10228 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10229 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10232 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10233 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10235 def clear_restraints(self):
10236 r"""clear_restraints(MinimumRestraint self)"""
10237 return _IMP_core.MinimumRestraint_clear_restraints(self)
10239 def get_number_of_restraints(self):
10240 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10241 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10243 def get_has_restraints(self):
10244 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10245 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10247 def get_restraint(self, i):
10248 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10249 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10251 def get_restraints(self):
10252 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10253 return _IMP_core.MinimumRestraint_get_restraints(self)
10255 def erase_restraint(self, i):
10256 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10257 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10259 def reserve_restraints(self, sz):
10260 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10261 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10264 r"""__str__(MinimumRestraint self) -> std::string"""
10265 return _IMP_core.MinimumRestraint___str__(self)
10267 def __repr__(self):
10268 r"""__repr__(MinimumRestraint self) -> std::string"""
10269 return _IMP_core.MinimumRestraint___repr__(self)
10273 return _object_cast_to_MinimumRestraint(o)
10277 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10278 class Gaussian(RigidBody):
10279 r"""Proxy of C++ IMP::core::Gaussian class."""
10281 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10283 def __init__(self, *args):
10285 __init__(Gaussian self) -> Gaussian
10286 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10287 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10289 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10291 def show(self, *args):
10292 r"""show(Gaussian self, _ostream out=std::cout)"""
10293 return _IMP_core.Gaussian_show(self, *args)
10296 def setup_particle(*args):
10298 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10299 setup_particle(_ParticleAdaptor pa) -> Gaussian
10300 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10301 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10303 return _IMP_core.Gaussian_setup_particle(*args)
10306 def get_local_covariance_key():
10307 r"""get_local_covariance_key() -> ObjectKey"""
10308 return _IMP_core.Gaussian_get_local_covariance_key()
10311 def get_global_covariance_key():
10312 r"""get_global_covariance_key() -> ObjectKey"""
10313 return _IMP_core.Gaussian_get_global_covariance_key()
10316 def get_is_setup(*args):
10318 get_is_setup(_ParticleAdaptor p) -> bool
10319 get_is_setup(Model m, ParticleIndex pi) -> bool
10321 return _IMP_core.Gaussian_get_is_setup(*args)
10323 def get_local_covariance(self):
10324 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10325 return _IMP_core.Gaussian_get_local_covariance(self)
10327 def get_variances(self):
10328 r"""get_variances(Gaussian self) -> Vector3D"""
10329 return _IMP_core.Gaussian_get_variances(self)
10331 def get_global_covariance(self):
10332 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10333 return _IMP_core.Gaussian_get_global_covariance(self)
10335 def get_gaussian(self):
10336 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10337 return _IMP_core.Gaussian_get_gaussian(self)
10339 def set_gaussian(self, g):
10340 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10341 return _IMP_core.Gaussian_set_gaussian(self, g)
10343 def set_local_covariance(self, covar):
10344 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10345 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10347 def set_variances(self, v):
10348 r"""set_variances(Gaussian self, Vector3D v)"""
10349 return _IMP_core.Gaussian_set_variances(self, v)
10351 def set_global_covariance(self, covar):
10352 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10353 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10355 def update_global_covariance(self):
10356 r"""update_global_covariance(Gaussian self)"""
10357 return _IMP_core.Gaussian_update_global_covariance(self)
10359 def add_attribute(self, *args):
10361 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10362 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10363 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10364 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10365 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10366 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10367 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10368 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10369 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10370 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10371 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10372 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10374 return _IMP_core.Gaussian_add_attribute(self, *args)
10376 def get_value(self, *args):
10378 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10379 get_value(Gaussian self, IntKey a0) -> IMP::Int
10380 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10381 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10382 get_value(Gaussian self, StringKey a0) -> IMP::String
10383 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10384 get_value(Gaussian self, ObjectKey a0) -> Object
10385 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10386 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10387 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10388 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10390 return _IMP_core.Gaussian_get_value(self, *args)
10392 def set_value(self, *args):
10394 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10395 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10396 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10397 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10398 set_value(Gaussian self, StringKey a0, IMP::String a1)
10399 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10400 set_value(Gaussian self, ObjectKey a0, Object a1)
10401 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10402 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10403 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10404 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10406 return _IMP_core.Gaussian_set_value(self, *args)
10408 def remove_attribute(self, *args):
10410 remove_attribute(Gaussian self, FloatKey a0)
10411 remove_attribute(Gaussian self, IntKey a0)
10412 remove_attribute(Gaussian self, FloatsKey a0)
10413 remove_attribute(Gaussian self, IntsKey a0)
10414 remove_attribute(Gaussian self, StringKey a0)
10415 remove_attribute(Gaussian self, ParticleIndexKey a0)
10416 remove_attribute(Gaussian self, ObjectKey a0)
10417 remove_attribute(Gaussian self, SparseFloatKey a0)
10418 remove_attribute(Gaussian self, SparseIntKey a0)
10419 remove_attribute(Gaussian self, SparseStringKey a0)
10420 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10422 return _IMP_core.Gaussian_remove_attribute(self, *args)
10424 def has_attribute(self, *args):
10426 has_attribute(Gaussian self, FloatKey a0) -> bool
10427 has_attribute(Gaussian self, IntKey a0) -> bool
10428 has_attribute(Gaussian self, FloatsKey a0) -> bool
10429 has_attribute(Gaussian self, IntsKey a0) -> bool
10430 has_attribute(Gaussian self, StringKey a0) -> bool
10431 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10432 has_attribute(Gaussian self, ObjectKey a0) -> bool
10433 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10434 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10435 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10436 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10438 return _IMP_core.Gaussian_has_attribute(self, *args)
10440 def get_derivative(self, a0):
10441 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10442 return _IMP_core.Gaussian_get_derivative(self, a0)
10444 def get_name(self):
10445 r"""get_name(Gaussian self) -> std::string"""
10446 return _IMP_core.Gaussian_get_name(self)
10448 def clear_caches(self):
10449 r"""clear_caches(Gaussian self)"""
10450 return _IMP_core.Gaussian_clear_caches(self)
10452 def set_name(self, a0):
10453 r"""set_name(Gaussian self, std::string a0)"""
10454 return _IMP_core.Gaussian_set_name(self, a0)
10457 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10458 return _IMP_core.Gaussian_set_check_level(self, a0)
10460 def add_to_derivative(self, a0, a1, a2):
10461 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10462 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10464 def set_is_optimized(self, a0, a1):
10465 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10466 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10468 def get_is_optimized(self, a0):
10469 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10470 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10473 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10474 return _IMP_core.Gaussian_get_check_level(self)
10476 def __eq__(self, *args):
10478 __eq__(Gaussian self, Gaussian o) -> bool
10479 __eq__(Gaussian self, Particle d) -> bool
10481 return _IMP_core.Gaussian___eq__(self, *args)
10483 def __ne__(self, *args):
10485 __ne__(Gaussian self, Gaussian o) -> bool
10486 __ne__(Gaussian self, Particle d) -> bool
10488 return _IMP_core.Gaussian___ne__(self, *args)
10490 def __le__(self, *args):
10492 __le__(Gaussian self, Gaussian o) -> bool
10493 __le__(Gaussian self, Particle d) -> bool
10495 return _IMP_core.Gaussian___le__(self, *args)
10497 def __lt__(self, *args):
10499 __lt__(Gaussian self, Gaussian o) -> bool
10500 __lt__(Gaussian self, Particle d) -> bool
10502 return _IMP_core.Gaussian___lt__(self, *args)
10504 def __ge__(self, *args):
10506 __ge__(Gaussian self, Gaussian o) -> bool
10507 __ge__(Gaussian self, Particle d) -> bool
10509 return _IMP_core.Gaussian___ge__(self, *args)
10511 def __gt__(self, *args):
10513 __gt__(Gaussian self, Gaussian o) -> bool
10514 __gt__(Gaussian self, Particle d) -> bool
10516 return _IMP_core.Gaussian___gt__(self, *args)
10518 def __hash__(self):
10519 r"""__hash__(Gaussian self) -> std::size_t"""
10520 return _IMP_core.Gaussian___hash__(self)
10523 r"""__str__(Gaussian self) -> std::string"""
10524 return _IMP_core.Gaussian___str__(self)
10526 def __repr__(self):
10527 r"""__repr__(Gaussian self) -> std::string"""
10528 return _IMP_core.Gaussian___repr__(self)
10530 def _get_as_binary(self):
10531 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10532 return _IMP_core.Gaussian__get_as_binary(self)
10534 def _set_from_binary(self, p):
10535 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10536 return _IMP_core.Gaussian__set_from_binary(self, p)
10538 def __getstate__(self):
10539 p = self._get_as_binary()
10540 if len(self.__dict__) > 1:
10541 d = self.__dict__.copy()
10546 def __setstate__(self, p):
10547 if not hasattr(self,
'this'):
10549 if isinstance(p, tuple):
10551 self.__dict__.update(d)
10552 return self._set_from_binary(p)
10554 __swig_destroy__ = _IMP_core.delete_Gaussian
10557 _IMP_core.Gaussian_swigregister(Gaussian)
10559 r"""Proxy of C++ IMP::core::PairRestraint class."""
10561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10563 def __init__(self, *args):
10565 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10566 __init__(PairRestraint self) -> PairRestraint
10568 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10570 def get_version_info(self):
10571 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10572 return _IMP_core.PairRestraint_get_version_info(self)
10573 __swig_destroy__ = _IMP_core.delete_PairRestraint
10576 r"""__str__(PairRestraint self) -> std::string"""
10577 return _IMP_core.PairRestraint___str__(self)
10579 def __repr__(self):
10580 r"""__repr__(PairRestraint self) -> std::string"""
10581 return _IMP_core.PairRestraint___repr__(self)
10585 return _object_cast_to_PairRestraint(o)
10588 def _get_as_binary(self):
10589 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10590 return _IMP_core.PairRestraint__get_as_binary(self)
10592 def _set_from_binary(self, p):
10593 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10594 return _IMP_core.PairRestraint__set_from_binary(self, p)
10596 def __getstate__(self):
10597 p = self._get_as_binary()
10598 if len(self.__dict__) > 1:
10599 d = self.__dict__.copy()
10604 def __setstate__(self, p):
10605 if not hasattr(self,
'this'):
10607 if isinstance(p, tuple):
10609 self.__dict__.update(d)
10610 return self._set_from_binary(p)
10614 _IMP_core.PairRestraint_swigregister(PairRestraint)
10616 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10618 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10620 def __init__(self, *args):
10622 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10623 __init__(SingletonRestraint self) -> SingletonRestraint
10625 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10627 def get_version_info(self):
10628 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10629 return _IMP_core.SingletonRestraint_get_version_info(self)
10630 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10633 r"""__str__(SingletonRestraint self) -> std::string"""
10634 return _IMP_core.SingletonRestraint___str__(self)
10636 def __repr__(self):
10637 r"""__repr__(SingletonRestraint self) -> std::string"""
10638 return _IMP_core.SingletonRestraint___repr__(self)
10642 return _object_cast_to_SingletonRestraint(o)
10645 def _get_as_binary(self):
10646 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10647 return _IMP_core.SingletonRestraint__get_as_binary(self)
10649 def _set_from_binary(self, p):
10650 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10651 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10653 def __getstate__(self):
10654 p = self._get_as_binary()
10655 if len(self.__dict__) > 1:
10656 d = self.__dict__.copy()
10661 def __setstate__(self, p):
10662 if not hasattr(self,
'this'):
10664 if isinstance(p, tuple):
10666 self.__dict__.update(d)
10667 return self._set_from_binary(p)
10671 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10673 r"""Proxy of C++ IMP::core::TripletRestraint class."""
10675 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10677 def __init__(self, *args):
10679 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10680 __init__(TripletRestraint self) -> TripletRestraint
10682 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10684 def get_version_info(self):
10685 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10686 return _IMP_core.TripletRestraint_get_version_info(self)
10687 __swig_destroy__ = _IMP_core.delete_TripletRestraint
10690 r"""__str__(TripletRestraint self) -> std::string"""
10691 return _IMP_core.TripletRestraint___str__(self)
10693 def __repr__(self):
10694 r"""__repr__(TripletRestraint self) -> std::string"""
10695 return _IMP_core.TripletRestraint___repr__(self)
10699 return _object_cast_to_TripletRestraint(o)
10702 def _get_as_binary(self):
10703 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10704 return _IMP_core.TripletRestraint__get_as_binary(self)
10706 def _set_from_binary(self, p):
10707 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10708 return _IMP_core.TripletRestraint__set_from_binary(self, p)
10710 def __getstate__(self):
10711 p = self._get_as_binary()
10712 if len(self.__dict__) > 1:
10713 d = self.__dict__.copy()
10718 def __setstate__(self, p):
10719 if not hasattr(self,
'this'):
10721 if isinstance(p, tuple):
10723 self.__dict__.update(d)
10724 return self._set_from_binary(p)
10728 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10730 r"""Proxy of C++ IMP::core::QuadRestraint class."""
10732 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10734 def __init__(self, *args):
10736 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10737 __init__(QuadRestraint self) -> QuadRestraint
10739 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10741 def get_version_info(self):
10742 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10743 return _IMP_core.QuadRestraint_get_version_info(self)
10744 __swig_destroy__ = _IMP_core.delete_QuadRestraint
10747 r"""__str__(QuadRestraint self) -> std::string"""
10748 return _IMP_core.QuadRestraint___str__(self)
10750 def __repr__(self):
10751 r"""__repr__(QuadRestraint self) -> std::string"""
10752 return _IMP_core.QuadRestraint___repr__(self)
10756 return _object_cast_to_QuadRestraint(o)
10759 def _get_as_binary(self):
10760 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10761 return _IMP_core.QuadRestraint__get_as_binary(self)
10763 def _set_from_binary(self, p):
10764 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10765 return _IMP_core.QuadRestraint__set_from_binary(self, p)
10767 def __getstate__(self):
10768 p = self._get_as_binary()
10769 if len(self.__dict__) > 1:
10770 d = self.__dict__.copy()
10775 def __setstate__(self, p):
10776 if not hasattr(self,
'this'):
10778 if isinstance(p, tuple):
10780 self.__dict__.update(d)
10781 return self._set_from_binary(p)
10785 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10787 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10789 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10791 def __init__(self, *args):
10793 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10794 __init__(SingletonConstraint self) -> SingletonConstraint
10796 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10798 def get_version_info(self):
10799 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10800 return _IMP_core.SingletonConstraint_get_version_info(self)
10801 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10804 r"""__str__(SingletonConstraint self) -> std::string"""
10805 return _IMP_core.SingletonConstraint___str__(self)
10807 def __repr__(self):
10808 r"""__repr__(SingletonConstraint self) -> std::string"""
10809 return _IMP_core.SingletonConstraint___repr__(self)
10813 return _object_cast_to_SingletonConstraint(o)
10816 def _get_as_binary(self):
10817 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10818 return _IMP_core.SingletonConstraint__get_as_binary(self)
10820 def _set_from_binary(self, p):
10821 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10822 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10824 def __getstate__(self):
10825 p = self._get_as_binary()
10826 if len(self.__dict__) > 1:
10827 d = self.__dict__.copy()
10832 def __setstate__(self, p):
10833 if not hasattr(self,
'this'):
10835 if isinstance(p, tuple):
10837 self.__dict__.update(d)
10838 return self._set_from_binary(p)
10842 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10844 r"""Proxy of C++ IMP::core::PairConstraint class."""
10846 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10848 def __init__(self, *args):
10850 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
10851 __init__(PairConstraint self) -> PairConstraint
10853 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
10855 def get_version_info(self):
10856 r"""get_version_info(PairConstraint self) -> VersionInfo"""
10857 return _IMP_core.PairConstraint_get_version_info(self)
10858 __swig_destroy__ = _IMP_core.delete_PairConstraint
10861 r"""__str__(PairConstraint self) -> std::string"""
10862 return _IMP_core.PairConstraint___str__(self)
10864 def __repr__(self):
10865 r"""__repr__(PairConstraint self) -> std::string"""
10866 return _IMP_core.PairConstraint___repr__(self)
10870 return _object_cast_to_PairConstraint(o)
10873 def _get_as_binary(self):
10874 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
10875 return _IMP_core.PairConstraint__get_as_binary(self)
10877 def _set_from_binary(self, p):
10878 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
10879 return _IMP_core.PairConstraint__set_from_binary(self, p)
10881 def __getstate__(self):
10882 p = self._get_as_binary()
10883 if len(self.__dict__) > 1:
10884 d = self.__dict__.copy()
10889 def __setstate__(self, p):
10890 if not hasattr(self,
'this'):
10892 if isinstance(p, tuple):
10894 self.__dict__.update(d)
10895 return self._set_from_binary(p)
10899 _IMP_core.PairConstraint_swigregister(PairConstraint)
10901 r"""Proxy of C++ IMP::core::TripletConstraint class."""
10903 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10905 def __init__(self, *args):
10907 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
10908 __init__(TripletConstraint self) -> TripletConstraint
10910 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
10912 def get_version_info(self):
10913 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
10914 return _IMP_core.TripletConstraint_get_version_info(self)
10915 __swig_destroy__ = _IMP_core.delete_TripletConstraint
10918 r"""__str__(TripletConstraint self) -> std::string"""
10919 return _IMP_core.TripletConstraint___str__(self)
10921 def __repr__(self):
10922 r"""__repr__(TripletConstraint self) -> std::string"""
10923 return _IMP_core.TripletConstraint___repr__(self)
10927 return _object_cast_to_TripletConstraint(o)
10930 def _get_as_binary(self):
10931 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
10932 return _IMP_core.TripletConstraint__get_as_binary(self)
10934 def _set_from_binary(self, p):
10935 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
10936 return _IMP_core.TripletConstraint__set_from_binary(self, p)
10938 def __getstate__(self):
10939 p = self._get_as_binary()
10940 if len(self.__dict__) > 1:
10941 d = self.__dict__.copy()
10946 def __setstate__(self, p):
10947 if not hasattr(self,
'this'):
10949 if isinstance(p, tuple):
10951 self.__dict__.update(d)
10952 return self._set_from_binary(p)
10956 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
10958 r"""Proxy of C++ IMP::core::QuadConstraint class."""
10960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10962 def __init__(self, *args):
10964 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
10965 __init__(QuadConstraint self) -> QuadConstraint
10967 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
10969 def get_version_info(self):
10970 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
10971 return _IMP_core.QuadConstraint_get_version_info(self)
10972 __swig_destroy__ = _IMP_core.delete_QuadConstraint
10975 r"""__str__(QuadConstraint self) -> std::string"""
10976 return _IMP_core.QuadConstraint___str__(self)
10978 def __repr__(self):
10979 r"""__repr__(QuadConstraint self) -> std::string"""
10980 return _IMP_core.QuadConstraint___repr__(self)
10984 return _object_cast_to_QuadConstraint(o)
10987 def _get_as_binary(self):
10988 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
10989 return _IMP_core.QuadConstraint__get_as_binary(self)
10991 def _set_from_binary(self, p):
10992 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
10993 return _IMP_core.QuadConstraint__set_from_binary(self, p)
10995 def __getstate__(self):
10996 p = self._get_as_binary()
10997 if len(self.__dict__) > 1:
10998 d = self.__dict__.copy()
11003 def __setstate__(self, p):
11004 if not hasattr(self,
'this'):
11006 if isinstance(p, tuple):
11008 self.__dict__.update(d)
11009 return self._set_from_binary(p)
11013 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11015 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11017 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11019 def __init__(self, *args):
11021 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11022 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11024 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11026 def do_get_inputs(self, arg2, arg3):
11027 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11028 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11030 def get_value(self, *args):
11032 get_value(ConstantSingletonPredicate self, Particle a) -> int
11033 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11035 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11037 def get_value_index(self, *args):
11039 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11040 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11042 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11044 def get_version_info(self):
11045 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11046 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11047 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11050 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11051 return _IMP_core.ConstantSingletonPredicate___str__(self)
11053 def __repr__(self):
11054 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11055 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11059 return _object_cast_to_ConstantSingletonPredicate(o)
11062 def _get_as_binary(self):
11063 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11064 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11066 def _set_from_binary(self, p):
11067 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11068 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11070 def __getstate__(self):
11071 p = self._get_as_binary()
11072 if len(self.__dict__) > 1:
11073 d = self.__dict__.copy()
11078 def __setstate__(self, p):
11079 if not hasattr(self,
'this'):
11081 if isinstance(p, tuple):
11083 self.__dict__.update(d)
11084 return self._set_from_binary(p)
11088 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11090 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11092 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11094 def __init__(self, *args):
11095 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11096 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11098 def do_get_inputs(self, m, pis):
11099 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11100 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11102 def get_value(self, *args):
11104 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11105 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11107 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11109 def get_value_index(self, *args):
11111 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11112 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11114 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11116 def get_version_info(self):
11117 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11118 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11119 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11122 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11123 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11125 def __repr__(self):
11126 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11127 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11131 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11134 def _get_as_binary(self):
11135 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11136 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11138 def _set_from_binary(self, p):
11139 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11140 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11142 def __getstate__(self):
11143 p = self._get_as_binary()
11144 if len(self.__dict__) > 1:
11145 d = self.__dict__.copy()
11150 def __setstate__(self, p):
11151 if not hasattr(self,
'this'):
11153 if isinstance(p, tuple):
11155 self.__dict__.update(d)
11156 return self._set_from_binary(p)
11160 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11162 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11164 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11166 def __init__(self, *args):
11167 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11168 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11170 def do_get_inputs(self, m, pis):
11171 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11172 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11174 def get_value(self, *args):
11176 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11177 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11178 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11180 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11182 def get_value_index(self, *args):
11184 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11185 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11187 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11189 def get_version_info(self):
11190 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11191 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11192 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11195 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11196 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11198 def __repr__(self):
11199 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11200 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11204 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11208 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11210 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11212 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11214 def __init__(self, *args):
11215 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11216 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11218 def do_get_inputs(self, arg2, arg3):
11219 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11220 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11222 def get_value(self, *args):
11224 get_value(AllSameSingletonPredicate self, Particle a) -> int
11225 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11227 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11229 def get_value_index(self, *args):
11231 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11232 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11234 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11236 def get_version_info(self):
11237 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11238 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11239 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11242 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11243 return _IMP_core.AllSameSingletonPredicate___str__(self)
11245 def __repr__(self):
11246 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11247 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11251 return _object_cast_to_AllSameSingletonPredicate(o)
11254 def _get_as_binary(self):
11255 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11256 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11258 def _set_from_binary(self, p):
11259 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11260 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11262 def __getstate__(self):
11263 p = self._get_as_binary()
11264 if len(self.__dict__) > 1:
11265 d = self.__dict__.copy()
11270 def __setstate__(self, p):
11271 if not hasattr(self,
'this'):
11273 if isinstance(p, tuple):
11275 self.__dict__.update(d)
11276 return self._set_from_binary(p)
11280 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11282 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11284 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11286 def __init__(self, *args):
11287 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11288 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11290 def do_get_inputs(self, arg2, arg3):
11291 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11292 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11294 def get_value(self, *args):
11296 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11297 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11299 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11301 def get_value_index(self, *args):
11303 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11304 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11306 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11308 def get_version_info(self):
11309 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11310 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11311 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11314 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11315 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11317 def __repr__(self):
11318 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11319 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11323 return _object_cast_to_CoinFlipSingletonPredicate(o)
11327 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11329 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11331 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11333 def __init__(self, *args):
11335 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11336 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11338 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11340 def do_get_inputs(self, arg2, arg3):
11341 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11342 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11344 def get_value(self, *args):
11346 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11347 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11349 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11351 def get_value_index(self, *args):
11353 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11354 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11356 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11358 def get_version_info(self):
11359 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11360 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11361 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11364 r"""__str__(ConstantPairPredicate self) -> std::string"""
11365 return _IMP_core.ConstantPairPredicate___str__(self)
11367 def __repr__(self):
11368 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11369 return _IMP_core.ConstantPairPredicate___repr__(self)
11373 return _object_cast_to_ConstantPairPredicate(o)
11376 def _get_as_binary(self):
11377 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11378 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11380 def _set_from_binary(self, p):
11381 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11382 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11384 def __getstate__(self):
11385 p = self._get_as_binary()
11386 if len(self.__dict__) > 1:
11387 d = self.__dict__.copy()
11392 def __setstate__(self, p):
11393 if not hasattr(self,
'this'):
11395 if isinstance(p, tuple):
11397 self.__dict__.update(d)
11398 return self._set_from_binary(p)
11402 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11404 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11406 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11408 def __init__(self, *args):
11409 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11410 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11412 def do_get_inputs(self, m, pis):
11413 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11414 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11416 def get_value(self, *args):
11418 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11419 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11421 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11423 def get_value_index(self, *args):
11425 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11426 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11428 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11430 def get_version_info(self):
11431 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11432 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11433 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11436 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11437 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11439 def __repr__(self):
11440 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11441 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11445 return _object_cast_to_UnorderedTypePairPredicate(o)
11448 def _get_as_binary(self):
11449 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11450 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11452 def _set_from_binary(self, p):
11453 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11454 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11456 def __getstate__(self):
11457 p = self._get_as_binary()
11458 if len(self.__dict__) > 1:
11459 d = self.__dict__.copy()
11464 def __setstate__(self, p):
11465 if not hasattr(self,
'this'):
11467 if isinstance(p, tuple):
11469 self.__dict__.update(d)
11470 return self._set_from_binary(p)
11474 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11476 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11478 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11480 def __init__(self, *args):
11481 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11482 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11484 def do_get_inputs(self, m, pis):
11485 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11486 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11488 def get_value(self, *args):
11490 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11491 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11492 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11494 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11496 def get_value_index(self, *args):
11498 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11499 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11501 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11503 def get_version_info(self):
11504 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11505 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11506 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11509 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11510 return _IMP_core.OrderedTypePairPredicate___str__(self)
11512 def __repr__(self):
11513 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11514 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11518 return _object_cast_to_OrderedTypePairPredicate(o)
11522 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11524 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11526 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11528 def __init__(self, *args):
11529 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11530 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11532 def do_get_inputs(self, arg2, arg3):
11533 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11534 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11536 def get_value(self, *args):
11538 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11539 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11541 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11543 def get_value_index(self, *args):
11545 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11546 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11548 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11550 def get_version_info(self):
11551 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11552 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11553 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11556 r"""__str__(AllSamePairPredicate self) -> std::string"""
11557 return _IMP_core.AllSamePairPredicate___str__(self)
11559 def __repr__(self):
11560 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11561 return _IMP_core.AllSamePairPredicate___repr__(self)
11565 return _object_cast_to_AllSamePairPredicate(o)
11568 def _get_as_binary(self):
11569 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11570 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11572 def _set_from_binary(self, p):
11573 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11574 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11576 def __getstate__(self):
11577 p = self._get_as_binary()
11578 if len(self.__dict__) > 1:
11579 d = self.__dict__.copy()
11584 def __setstate__(self, p):
11585 if not hasattr(self,
'this'):
11587 if isinstance(p, tuple):
11589 self.__dict__.update(d)
11590 return self._set_from_binary(p)
11594 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11596 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11598 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11600 def __init__(self, *args):
11601 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11602 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11604 def do_get_inputs(self, arg2, arg3):
11605 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11606 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11608 def get_value(self, *args):
11610 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11611 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11613 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11615 def get_value_index(self, *args):
11617 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11618 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11620 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11622 def get_version_info(self):
11623 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11624 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11625 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11628 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11629 return _IMP_core.CoinFlipPairPredicate___str__(self)
11631 def __repr__(self):
11632 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11633 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11637 return _object_cast_to_CoinFlipPairPredicate(o)
11641 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11643 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11645 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11647 def __init__(self, *args):
11649 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11650 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11652 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11654 def do_get_inputs(self, arg2, arg3):
11655 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11656 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11658 def get_value(self, *args):
11660 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11661 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11663 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11665 def get_value_index(self, *args):
11667 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11668 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11670 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11672 def get_version_info(self):
11673 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11674 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11675 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11678 r"""__str__(ConstantTripletPredicate self) -> std::string"""
11679 return _IMP_core.ConstantTripletPredicate___str__(self)
11681 def __repr__(self):
11682 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11683 return _IMP_core.ConstantTripletPredicate___repr__(self)
11687 return _object_cast_to_ConstantTripletPredicate(o)
11690 def _get_as_binary(self):
11691 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11692 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11694 def _set_from_binary(self, p):
11695 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11696 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11698 def __getstate__(self):
11699 p = self._get_as_binary()
11700 if len(self.__dict__) > 1:
11701 d = self.__dict__.copy()
11706 def __setstate__(self, p):
11707 if not hasattr(self,
'this'):
11709 if isinstance(p, tuple):
11711 self.__dict__.update(d)
11712 return self._set_from_binary(p)
11716 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11718 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11722 def __init__(self, *args):
11723 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11724 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11726 def do_get_inputs(self, m, pis):
11727 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11728 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11730 def get_value(self, *args):
11732 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11733 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11735 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11737 def get_value_index(self, *args):
11739 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11740 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11742 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11744 def get_version_info(self):
11745 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11746 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11747 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11750 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11751 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11753 def __repr__(self):
11754 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11755 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11759 return _object_cast_to_UnorderedTypeTripletPredicate(o)
11762 def _get_as_binary(self):
11763 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11764 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11766 def _set_from_binary(self, p):
11767 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11768 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11770 def __getstate__(self):
11771 p = self._get_as_binary()
11772 if len(self.__dict__) > 1:
11773 d = self.__dict__.copy()
11778 def __setstate__(self, p):
11779 if not hasattr(self,
'this'):
11781 if isinstance(p, tuple):
11783 self.__dict__.update(d)
11784 return self._set_from_binary(p)
11788 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11790 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11792 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11794 def __init__(self, *args):
11795 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11796 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11798 def do_get_inputs(self, m, pis):
11799 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11800 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11802 def get_value(self, *args):
11804 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11805 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11806 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11808 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11810 def get_value_index(self, *args):
11812 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11813 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11815 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11817 def get_version_info(self):
11818 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11819 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11820 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11823 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11824 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11826 def __repr__(self):
11827 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11828 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11832 return _object_cast_to_OrderedTypeTripletPredicate(o)
11836 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11838 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11840 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11842 def __init__(self, *args):
11843 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11844 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11846 def do_get_inputs(self, arg2, arg3):
11847 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11848 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
11850 def get_value(self, *args):
11852 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11853 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11855 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
11857 def get_value_index(self, *args):
11859 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11860 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11862 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
11864 def get_version_info(self):
11865 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
11866 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
11867 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
11870 r"""__str__(AllSameTripletPredicate self) -> std::string"""
11871 return _IMP_core.AllSameTripletPredicate___str__(self)
11873 def __repr__(self):
11874 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
11875 return _IMP_core.AllSameTripletPredicate___repr__(self)
11879 return _object_cast_to_AllSameTripletPredicate(o)
11882 def _get_as_binary(self):
11883 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
11884 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
11886 def _set_from_binary(self, p):
11887 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
11888 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
11890 def __getstate__(self):
11891 p = self._get_as_binary()
11892 if len(self.__dict__) > 1:
11893 d = self.__dict__.copy()
11898 def __setstate__(self, p):
11899 if not hasattr(self,
'this'):
11901 if isinstance(p, tuple):
11903 self.__dict__.update(d)
11904 return self._set_from_binary(p)
11908 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
11910 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
11912 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11914 def __init__(self, *args):
11915 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
11916 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
11918 def do_get_inputs(self, arg2, arg3):
11919 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11920 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
11922 def get_value(self, *args):
11924 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11925 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11927 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
11929 def get_value_index(self, *args):
11931 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11932 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11934 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
11936 def get_version_info(self):
11937 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
11938 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
11939 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
11942 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
11943 return _IMP_core.CoinFlipTripletPredicate___str__(self)
11945 def __repr__(self):
11946 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
11947 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
11951 return _object_cast_to_CoinFlipTripletPredicate(o)
11955 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
11957 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
11959 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11961 def __init__(self, *args):
11963 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
11964 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
11966 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
11968 def do_get_inputs(self, arg2, arg3):
11969 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11970 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
11972 def get_value(self, *args):
11974 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
11975 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11977 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
11979 def get_value_index(self, *args):
11981 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11982 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11984 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
11986 def get_version_info(self):
11987 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
11988 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
11989 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
11992 r"""__str__(ConstantQuadPredicate self) -> std::string"""
11993 return _IMP_core.ConstantQuadPredicate___str__(self)
11995 def __repr__(self):
11996 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
11997 return _IMP_core.ConstantQuadPredicate___repr__(self)
12001 return _object_cast_to_ConstantQuadPredicate(o)
12004 def _get_as_binary(self):
12005 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12006 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12008 def _set_from_binary(self, p):
12009 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12010 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12012 def __getstate__(self):
12013 p = self._get_as_binary()
12014 if len(self.__dict__) > 1:
12015 d = self.__dict__.copy()
12020 def __setstate__(self, p):
12021 if not hasattr(self,
'this'):
12023 if isinstance(p, tuple):
12025 self.__dict__.update(d)
12026 return self._set_from_binary(p)
12030 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12032 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12034 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12036 def __init__(self, *args):
12037 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12038 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12040 def do_get_inputs(self, m, pis):
12041 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12042 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12044 def get_value(self, *args):
12046 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12047 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12049 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12051 def get_value_index(self, *args):
12053 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12054 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12056 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12058 def get_version_info(self):
12059 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12060 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12061 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12064 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12065 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12067 def __repr__(self):
12068 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12069 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12073 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12076 def _get_as_binary(self):
12077 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12078 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12080 def _set_from_binary(self, p):
12081 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12082 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12084 def __getstate__(self):
12085 p = self._get_as_binary()
12086 if len(self.__dict__) > 1:
12087 d = self.__dict__.copy()
12092 def __setstate__(self, p):
12093 if not hasattr(self,
'this'):
12095 if isinstance(p, tuple):
12097 self.__dict__.update(d)
12098 return self._set_from_binary(p)
12102 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12104 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12106 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12108 def __init__(self, *args):
12109 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12110 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12112 def do_get_inputs(self, m, pis):
12113 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12114 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12116 def get_value(self, *args):
12118 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12119 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12120 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12122 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12124 def get_value_index(self, *args):
12126 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12127 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12129 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12131 def get_version_info(self):
12132 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12133 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12134 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12137 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12138 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12140 def __repr__(self):
12141 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12142 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12146 return _object_cast_to_OrderedTypeQuadPredicate(o)
12150 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12152 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12154 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12156 def __init__(self, *args):
12157 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12158 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12160 def do_get_inputs(self, arg2, arg3):
12161 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12162 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12164 def get_value(self, *args):
12166 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12167 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12169 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12171 def get_value_index(self, *args):
12173 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12174 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12176 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12178 def get_version_info(self):
12179 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12180 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12181 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12184 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12185 return _IMP_core.AllSameQuadPredicate___str__(self)
12187 def __repr__(self):
12188 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12189 return _IMP_core.AllSameQuadPredicate___repr__(self)
12193 return _object_cast_to_AllSameQuadPredicate(o)
12196 def _get_as_binary(self):
12197 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12198 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12200 def _set_from_binary(self, p):
12201 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12202 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12204 def __getstate__(self):
12205 p = self._get_as_binary()
12206 if len(self.__dict__) > 1:
12207 d = self.__dict__.copy()
12212 def __setstate__(self, p):
12213 if not hasattr(self,
'this'):
12215 if isinstance(p, tuple):
12217 self.__dict__.update(d)
12218 return self._set_from_binary(p)
12222 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12224 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12228 def __init__(self, *args):
12229 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12230 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12232 def do_get_inputs(self, arg2, arg3):
12233 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12234 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12236 def get_value(self, *args):
12238 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12239 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12241 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12243 def get_value_index(self, *args):
12245 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12246 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12248 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12250 def get_version_info(self):
12251 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12252 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12253 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12256 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12257 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12259 def __repr__(self):
12260 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12261 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12265 return _object_cast_to_CoinFlipQuadPredicate(o)
12269 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12271 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12273 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12275 def __init__(self, *args):
12276 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12277 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12279 def do_get_inputs(self, m, pi):
12280 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12281 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12283 def get_value(self, *args):
12285 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12286 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12288 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12290 def get_value_index(self, *args):
12292 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12293 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12295 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12297 def get_version_info(self):
12298 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12299 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12300 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12303 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12304 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12306 def __repr__(self):
12307 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12308 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12312 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12316 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12318 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12320 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12322 def __init__(self, *args):
12323 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12324 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12326 def do_get_inputs(self, m, pi):
12327 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12328 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12330 def get_value(self, *args):
12332 get_value(AttributeSingletonPredicate self, Particle a) -> int
12333 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12335 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12337 def get_value_index(self, *args):
12339 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12340 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12342 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12344 def get_version_info(self):
12345 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12346 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12347 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12350 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12351 return _IMP_core.AttributeSingletonPredicate___str__(self)
12353 def __repr__(self):
12354 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12355 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12359 return _object_cast_to_AttributeSingletonPredicate(o)
12363 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12365 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12367 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12369 def __init__(self, *args):
12370 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12371 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12373 def do_get_inputs(self, m, pi):
12374 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12375 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12377 def get_value(self, *args):
12379 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12380 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12382 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12384 def get_value_index(self, *args):
12386 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12387 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12389 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12391 def get_version_info(self):
12392 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12393 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12394 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12397 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12398 return _IMP_core.IsCollisionPairPredicate___str__(self)
12400 def __repr__(self):
12401 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12402 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12406 return _object_cast_to_IsCollisionPairPredicate(o)
12410 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12411 class AngleRestraint(TripletRestraint):
12412 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12414 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12416 def __init__(self, *args):
12418 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12419 __init__(AngleRestraint self) -> AngleRestraint
12421 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12422 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12425 r"""__str__(AngleRestraint self) -> std::string"""
12426 return _IMP_core.AngleRestraint___str__(self)
12428 def __repr__(self):
12429 r"""__repr__(AngleRestraint self) -> std::string"""
12430 return _IMP_core.AngleRestraint___repr__(self)
12434 return _object_cast_to_AngleRestraint(o)
12437 def _get_as_binary(self):
12438 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12439 return _IMP_core.AngleRestraint__get_as_binary(self)
12441 def _set_from_binary(self, p):
12442 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12443 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12445 def __getstate__(self):
12446 p = self._get_as_binary()
12447 if len(self.__dict__) > 1:
12448 d = self.__dict__.copy()
12453 def __setstate__(self, p):
12454 if not hasattr(self,
'this'):
12456 if isinstance(p, tuple):
12458 self.__dict__.update(d)
12459 return self._set_from_binary(p)
12463 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12464 class RigidBodyMover(MonteCarloMover):
12465 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12467 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12469 def __init__(self, *args):
12471 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12472 __init__(RigidBodyMover self) -> RigidBodyMover
12474 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12476 def set_maximum_translation(self, mt):
12477 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12478 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12480 def set_maximum_rotation(self, mr):
12481 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12482 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12484 def get_maximum_translation(self):
12485 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12486 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12488 def get_maximum_rotation(self):
12489 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12490 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12492 def get_version_info(self):
12493 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12494 return _IMP_core.RigidBodyMover_get_version_info(self)
12495 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12498 r"""__str__(RigidBodyMover self) -> std::string"""
12499 return _IMP_core.RigidBodyMover___str__(self)
12501 def __repr__(self):
12502 r"""__repr__(RigidBodyMover self) -> std::string"""
12503 return _IMP_core.RigidBodyMover___repr__(self)
12507 return _object_cast_to_RigidBodyMover(o)
12510 def _get_as_binary(self):
12511 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12512 return _IMP_core.RigidBodyMover__get_as_binary(self)
12514 def _set_from_binary(self, p):
12515 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12516 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12518 def __getstate__(self):
12519 p = self._get_as_binary()
12520 if len(self.__dict__) > 1:
12521 d = self.__dict__.copy()
12526 def __setstate__(self, p):
12527 if not hasattr(self,
'this'):
12529 if isinstance(p, tuple):
12531 self.__dict__.update(d)
12532 return self._set_from_binary(p)
12536 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12537 class RigidBodyTunneler(MonteCarloMover):
12538 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12540 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12542 def __init__(self, m, pis, ref, k, move_probability=1.):
12543 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12544 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12546 def add_entry_point(self, fl):
12547 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12548 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12550 def reset_stats(self):
12551 r"""reset_stats(RigidBodyTunneler self)"""
12552 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12554 def get_number_of_rejected_moves(self):
12555 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12556 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12558 def get_number_of_proposed_moves(self):
12559 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12560 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12562 def get_number_of_impossible_moves(self):
12563 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12564 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12566 def get_number_of_calls(self):
12567 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12568 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12571 def get_reduced_coordinates(*args):
12573 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12574 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12576 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12579 def set_reduced_coordinates(m, target, ref, coords):
12580 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12581 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12583 def get_version_info(self):
12584 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12585 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12586 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12589 r"""__str__(RigidBodyTunneler self) -> std::string"""
12590 return _IMP_core.RigidBodyTunneler___str__(self)
12592 def __repr__(self):
12593 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12594 return _IMP_core.RigidBodyTunneler___repr__(self)
12598 return _object_cast_to_RigidBodyTunneler(o)
12602 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12604 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12606 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12608 def __init__(self, *args):
12610 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12611 __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
12613 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12615 def set_x0(self, *args):
12617 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12618 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12620 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12623 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12624 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12627 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12628 return _IMP_core.RigidBodyUmbrella_get_x(self)
12630 def set_alpha(self, alpha):
12631 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12632 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12634 def set_k(self, k):
12635 r"""set_k(RigidBodyUmbrella self, double k)"""
12636 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12638 def get_version_info(self):
12639 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12640 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12641 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12644 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12645 return _IMP_core.RigidBodyUmbrella___str__(self)
12647 def __repr__(self):
12648 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12649 return _IMP_core.RigidBodyUmbrella___repr__(self)
12653 return _object_cast_to_RigidBodyUmbrella(o)
12657 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12659 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12661 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12663 def __init__(self, f, sc, volume):
12664 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12665 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12667 def do_get_inputs(self):
12668 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12669 return _IMP_core.VolumeRestraint_do_get_inputs(self)
12671 def get_version_info(self):
12672 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12673 return _IMP_core.VolumeRestraint_get_version_info(self)
12674 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12677 r"""__str__(VolumeRestraint self) -> std::string"""
12678 return _IMP_core.VolumeRestraint___str__(self)
12680 def __repr__(self):
12681 r"""__repr__(VolumeRestraint self) -> std::string"""
12682 return _IMP_core.VolumeRestraint___repr__(self)
12686 return _object_cast_to_VolumeRestraint(o)
12690 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12693 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12694 return _IMP_core.get_centroid(ps)
12697 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12698 return _IMP_core.get_bounding_box(ps)
12700 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12702 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12704 def __init__(self, ps):
12705 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12706 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12708 def show_statistics(self, *args):
12709 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12710 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12713 r"""reset(MoveStatisticsScoreState self)"""
12714 return _IMP_core.MoveStatisticsScoreState_reset(self)
12716 def do_before_evaluate(self):
12717 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12718 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12720 def do_after_evaluate(self, da):
12721 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12722 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12724 def do_get_inputs(self):
12725 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12726 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12728 def do_get_outputs(self):
12729 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12730 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12732 def get_version_info(self):
12733 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12734 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12735 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12738 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12739 return _IMP_core.MoveStatisticsScoreState___str__(self)
12741 def __repr__(self):
12742 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12743 return _IMP_core.MoveStatisticsScoreState___repr__(self)
12747 return _object_cast_to_MoveStatisticsScoreState(o)
12751 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12752 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12755 r"""Proxy of C++ IMP::core::Typed class."""
12757 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12760 def get_type_key():
12761 r"""get_type_key() -> IntKey"""
12762 return _IMP_core.Typed_get_type_key()
12764 def __init__(self, *args):
12766 __init__(Typed self) -> Typed
12767 __init__(Typed self, Model m, ParticleIndex id) -> Typed
12768 __init__(Typed self, _ParticleAdaptor d) -> Typed
12770 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12772 def show(self, *args):
12773 r"""show(Typed self, _ostream out=std::cout)"""
12774 return _IMP_core.Typed_show(self, *args)
12777 def setup_particle(*args):
12779 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12780 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12782 return _IMP_core.Typed_setup_particle(*args)
12785 def get_is_setup(*args):
12787 get_is_setup(_ParticleAdaptor p) -> bool
12788 get_is_setup(Model m, ParticleIndex pi) -> bool
12790 return _IMP_core.Typed_get_is_setup(*args)
12792 def get_type(self):
12793 r"""get_type(Typed self) -> ParticleType"""
12794 return _IMP_core.Typed_get_type(self)
12796 def set_type(self, pt):
12797 r"""set_type(Typed self, ParticleType pt)"""
12798 return _IMP_core.Typed_set_type(self, pt)
12800 def add_attribute(self, *args):
12802 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12803 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12804 add_attribute(Typed self, IntKey a0, IMP::Int a1)
12805 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12806 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12807 add_attribute(Typed self, StringKey a0, IMP::String a1)
12808 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12809 add_attribute(Typed self, ObjectKey a0, Object a1)
12810 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12811 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12812 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12813 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12815 return _IMP_core.Typed_add_attribute(self, *args)
12817 def get_value(self, *args):
12819 get_value(Typed self, FloatKey a0) -> IMP::Float
12820 get_value(Typed self, IntKey a0) -> IMP::Int
12821 get_value(Typed self, FloatsKey a0) -> IMP::Floats
12822 get_value(Typed self, IntsKey a0) -> IMP::Ints
12823 get_value(Typed self, StringKey a0) -> IMP::String
12824 get_value(Typed self, ParticleIndexKey a0) -> Particle
12825 get_value(Typed self, ObjectKey a0) -> Object
12826 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12827 get_value(Typed self, SparseIntKey a0) -> IMP::Int
12828 get_value(Typed self, SparseStringKey a0) -> IMP::String
12829 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12831 return _IMP_core.Typed_get_value(self, *args)
12833 def set_value(self, *args):
12835 set_value(Typed self, FloatKey a0, IMP::Float a1)
12836 set_value(Typed self, IntKey a0, IMP::Int a1)
12837 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12838 set_value(Typed self, IntsKey a0, IMP::Ints a1)
12839 set_value(Typed self, StringKey a0, IMP::String a1)
12840 set_value(Typed self, ParticleIndexKey a0, Particle a1)
12841 set_value(Typed self, ObjectKey a0, Object a1)
12842 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12843 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12844 set_value(Typed self, SparseStringKey a0, IMP::String a1)
12845 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12847 return _IMP_core.Typed_set_value(self, *args)
12849 def remove_attribute(self, *args):
12851 remove_attribute(Typed self, FloatKey a0)
12852 remove_attribute(Typed self, IntKey a0)
12853 remove_attribute(Typed self, FloatsKey a0)
12854 remove_attribute(Typed self, IntsKey a0)
12855 remove_attribute(Typed self, StringKey a0)
12856 remove_attribute(Typed self, ParticleIndexKey a0)
12857 remove_attribute(Typed self, ObjectKey a0)
12858 remove_attribute(Typed self, SparseFloatKey a0)
12859 remove_attribute(Typed self, SparseIntKey a0)
12860 remove_attribute(Typed self, SparseStringKey a0)
12861 remove_attribute(Typed self, SparseParticleIndexKey a0)
12863 return _IMP_core.Typed_remove_attribute(self, *args)
12865 def has_attribute(self, *args):
12867 has_attribute(Typed self, FloatKey a0) -> bool
12868 has_attribute(Typed self, IntKey a0) -> bool
12869 has_attribute(Typed self, FloatsKey a0) -> bool
12870 has_attribute(Typed self, IntsKey a0) -> bool
12871 has_attribute(Typed self, StringKey a0) -> bool
12872 has_attribute(Typed self, ParticleIndexKey a0) -> bool
12873 has_attribute(Typed self, ObjectKey a0) -> bool
12874 has_attribute(Typed self, SparseFloatKey a0) -> bool
12875 has_attribute(Typed self, SparseIntKey a0) -> bool
12876 has_attribute(Typed self, SparseStringKey a0) -> bool
12877 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
12879 return _IMP_core.Typed_has_attribute(self, *args)
12881 def get_derivative(self, a0):
12882 r"""get_derivative(Typed self, FloatKey a0) -> double"""
12883 return _IMP_core.Typed_get_derivative(self, a0)
12885 def get_name(self):
12886 r"""get_name(Typed self) -> std::string"""
12887 return _IMP_core.Typed_get_name(self)
12889 def clear_caches(self):
12890 r"""clear_caches(Typed self)"""
12891 return _IMP_core.Typed_clear_caches(self)
12893 def set_name(self, a0):
12894 r"""set_name(Typed self, std::string a0)"""
12895 return _IMP_core.Typed_set_name(self, a0)
12898 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
12899 return _IMP_core.Typed_set_check_level(self, a0)
12901 def add_to_derivative(self, a0, a1, a2):
12902 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12903 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
12905 def set_is_optimized(self, a0, a1):
12906 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
12907 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
12909 def get_is_optimized(self, a0):
12910 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
12911 return _IMP_core.Typed_get_is_optimized(self, a0)
12914 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
12915 return _IMP_core.Typed_get_check_level(self)
12917 def __eq__(self, *args):
12919 __eq__(Typed self, Typed o) -> bool
12920 __eq__(Typed self, Particle d) -> bool
12922 return _IMP_core.Typed___eq__(self, *args)
12924 def __ne__(self, *args):
12926 __ne__(Typed self, Typed o) -> bool
12927 __ne__(Typed self, Particle d) -> bool
12929 return _IMP_core.Typed___ne__(self, *args)
12931 def __le__(self, *args):
12933 __le__(Typed self, Typed o) -> bool
12934 __le__(Typed self, Particle d) -> bool
12936 return _IMP_core.Typed___le__(self, *args)
12938 def __lt__(self, *args):
12940 __lt__(Typed self, Typed o) -> bool
12941 __lt__(Typed self, Particle d) -> bool
12943 return _IMP_core.Typed___lt__(self, *args)
12945 def __ge__(self, *args):
12947 __ge__(Typed self, Typed o) -> bool
12948 __ge__(Typed self, Particle d) -> bool
12950 return _IMP_core.Typed___ge__(self, *args)
12952 def __gt__(self, *args):
12954 __gt__(Typed self, Typed o) -> bool
12955 __gt__(Typed self, Particle d) -> bool
12957 return _IMP_core.Typed___gt__(self, *args)
12959 def __hash__(self):
12960 r"""__hash__(Typed self) -> std::size_t"""
12961 return _IMP_core.Typed___hash__(self)
12964 r"""__str__(Typed self) -> std::string"""
12965 return _IMP_core.Typed___str__(self)
12967 def __repr__(self):
12968 r"""__repr__(Typed self) -> std::string"""
12969 return _IMP_core.Typed___repr__(self)
12971 def _get_as_binary(self):
12972 r"""_get_as_binary(Typed self) -> PyObject *"""
12973 return _IMP_core.Typed__get_as_binary(self)
12975 def _set_from_binary(self, p):
12976 r"""_set_from_binary(Typed self, PyObject * p)"""
12977 return _IMP_core.Typed__set_from_binary(self, p)
12979 def __getstate__(self):
12980 p = self._get_as_binary()
12981 if len(self.__dict__) > 1:
12982 d = self.__dict__.copy()
12987 def __setstate__(self, p):
12988 if not hasattr(self,
'this'):
12990 if isinstance(p, tuple):
12992 self.__dict__.update(d)
12993 return self._set_from_binary(p)
12995 __swig_destroy__ = _IMP_core.delete_Typed
12998 _IMP_core.Typed_swigregister(Typed)
13000 def __lshift__(*args):
13002 __lshift__(_ostream out, XYZ n) -> _ostream
13003 __lshift__(_ostream out, XYZR n) -> _ostream
13004 __lshift__(_ostream out, Direction n) -> _ostream
13005 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13006 __lshift__(_ostream out, Surface n) -> _ostream
13007 __lshift__(_ostream out, Centroid n) -> _ostream
13008 __lshift__(_ostream out, Cover n) -> _ostream
13009 __lshift__(_ostream out, Reference n) -> _ostream
13010 __lshift__(_ostream out, RigidMember n) -> _ostream
13011 __lshift__(_ostream out, RigidBody n) -> _ostream
13012 __lshift__(_ostream out, Gaussian n) -> _ostream
13013 __lshift__(_ostream out, Typed n) -> _ostream
13015 return _IMP_core.__lshift__(*args)
13017 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13019 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13021 def __init__(self, rs, out):
13022 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13023 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13025 def get_version_info(self):
13026 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13027 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13028 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13031 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13032 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13034 def __repr__(self):
13035 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13036 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13040 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13044 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13047 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13048 return _IMP_core.assign_blame(rs, ps, attribute)
13051 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13052 return _IMP_core.create_blame_geometries(*args)
13054 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13058 def __init__(self, m, q1, q2):
13059 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13060 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13062 def add_term(self, term):
13063 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13064 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13066 def do_get_inputs(self):
13067 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13068 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13070 def get_version_info(self):
13071 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13072 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13073 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13076 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13077 return _IMP_core.MultipleBinormalRestraint___str__(self)
13079 def __repr__(self):
13080 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13081 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13085 return _object_cast_to_MultipleBinormalRestraint(o)
13089 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13090 class BinormalTerm(object):
13091 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13093 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13095 def __init__(self):
13096 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13097 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13099 def set_correlation(self, correlation):
13100 r"""set_correlation(BinormalTerm self, double correlation)"""
13101 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13103 def set_weight(self, weight):
13104 r"""set_weight(BinormalTerm self, double weight)"""
13105 return _IMP_core.BinormalTerm_set_weight(self, weight)
13107 def set_means(self, means):
13108 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13109 return _IMP_core.BinormalTerm_set_means(self, means)
13111 def set_standard_deviations(self, stdevs):
13112 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13113 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13115 def show(self, *args):
13116 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13117 return _IMP_core.BinormalTerm_show(self, *args)
13120 r"""__str__(BinormalTerm self) -> std::string"""
13121 return _IMP_core.BinormalTerm___str__(self)
13123 def __repr__(self):
13124 r"""__repr__(BinormalTerm self) -> std::string"""
13125 return _IMP_core.BinormalTerm___repr__(self)
13127 def _get_as_binary(self):
13128 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13129 return _IMP_core.BinormalTerm__get_as_binary(self)
13131 def _set_from_binary(self, p):
13132 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13133 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13135 def __getstate__(self):
13136 p = self._get_as_binary()
13137 if len(self.__dict__) > 1:
13138 d = self.__dict__.copy()
13143 def __setstate__(self, p):
13144 if not hasattr(self,
'this'):
13146 if isinstance(p, tuple):
13148 self.__dict__.update(d)
13149 return self._set_from_binary(p)
13151 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13154 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13156 r"""Proxy of C++ IMP::core::Provenance class."""
13158 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13160 def get_previous(self):
13161 r"""get_previous(Provenance self) -> Provenance"""
13162 return _IMP_core.Provenance_get_previous(self)
13164 def set_previous(self, p):
13165 r"""set_previous(Provenance self, Provenance p)"""
13166 return _IMP_core.Provenance_set_previous(self, p)
13168 def __init__(self, *args):
13170 __init__(Provenance self) -> Provenance
13171 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13172 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13174 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13177 def get_is_setup(*args):
13179 get_is_setup(Model m, ParticleIndex pi) -> bool
13180 get_is_setup(_ParticleAdaptor p) -> bool
13182 return _IMP_core.Provenance_get_is_setup(*args)
13184 def show(self, *args):
13185 r"""show(Provenance self, _ostream out=std::cout)"""
13186 return _IMP_core.Provenance_show(self, *args)
13189 def setup_particle(*args):
13191 setup_particle(Model m, ParticleIndex pi) -> Provenance
13192 setup_particle(_ParticleAdaptor pa) -> Provenance
13194 return _IMP_core.Provenance_setup_particle(*args)
13196 def add_attribute(self, *args):
13198 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13199 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13200 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13201 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13202 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13203 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13204 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13205 add_attribute(Provenance self, ObjectKey a0, Object a1)
13206 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13207 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13208 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13209 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13211 return _IMP_core.Provenance_add_attribute(self, *args)
13213 def get_value(self, *args):
13215 get_value(Provenance self, FloatKey a0) -> IMP::Float
13216 get_value(Provenance self, IntKey a0) -> IMP::Int
13217 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13218 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13219 get_value(Provenance self, StringKey a0) -> IMP::String
13220 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13221 get_value(Provenance self, ObjectKey a0) -> Object
13222 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13223 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13224 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13225 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13227 return _IMP_core.Provenance_get_value(self, *args)
13229 def set_value(self, *args):
13231 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13232 set_value(Provenance self, IntKey a0, IMP::Int a1)
13233 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13234 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13235 set_value(Provenance self, StringKey a0, IMP::String a1)
13236 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13237 set_value(Provenance self, ObjectKey a0, Object a1)
13238 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13239 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13240 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13241 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13243 return _IMP_core.Provenance_set_value(self, *args)
13245 def remove_attribute(self, *args):
13247 remove_attribute(Provenance self, FloatKey a0)
13248 remove_attribute(Provenance self, IntKey a0)
13249 remove_attribute(Provenance self, FloatsKey a0)
13250 remove_attribute(Provenance self, IntsKey a0)
13251 remove_attribute(Provenance self, StringKey a0)
13252 remove_attribute(Provenance self, ParticleIndexKey a0)
13253 remove_attribute(Provenance self, ObjectKey a0)
13254 remove_attribute(Provenance self, SparseFloatKey a0)
13255 remove_attribute(Provenance self, SparseIntKey a0)
13256 remove_attribute(Provenance self, SparseStringKey a0)
13257 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13259 return _IMP_core.Provenance_remove_attribute(self, *args)
13261 def has_attribute(self, *args):
13263 has_attribute(Provenance self, FloatKey a0) -> bool
13264 has_attribute(Provenance self, IntKey a0) -> bool
13265 has_attribute(Provenance self, FloatsKey a0) -> bool
13266 has_attribute(Provenance self, IntsKey a0) -> bool
13267 has_attribute(Provenance self, StringKey a0) -> bool
13268 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13269 has_attribute(Provenance self, ObjectKey a0) -> bool
13270 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13271 has_attribute(Provenance self, SparseIntKey a0) -> bool
13272 has_attribute(Provenance self, SparseStringKey a0) -> bool
13273 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13275 return _IMP_core.Provenance_has_attribute(self, *args)
13277 def get_derivative(self, a0):
13278 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13279 return _IMP_core.Provenance_get_derivative(self, a0)
13281 def get_name(self):
13282 r"""get_name(Provenance self) -> std::string"""
13283 return _IMP_core.Provenance_get_name(self)
13285 def clear_caches(self):
13286 r"""clear_caches(Provenance self)"""
13287 return _IMP_core.Provenance_clear_caches(self)
13289 def set_name(self, a0):
13290 r"""set_name(Provenance self, std::string a0)"""
13291 return _IMP_core.Provenance_set_name(self, a0)
13294 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13295 return _IMP_core.Provenance_set_check_level(self, a0)
13297 def add_to_derivative(self, a0, a1, a2):
13298 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13299 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13301 def set_is_optimized(self, a0, a1):
13302 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13303 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13305 def get_is_optimized(self, a0):
13306 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13307 return _IMP_core.Provenance_get_is_optimized(self, a0)
13310 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13311 return _IMP_core.Provenance_get_check_level(self)
13313 def __eq__(self, *args):
13315 __eq__(Provenance self, Provenance o) -> bool
13316 __eq__(Provenance self, Particle d) -> bool
13318 return _IMP_core.Provenance___eq__(self, *args)
13320 def __ne__(self, *args):
13322 __ne__(Provenance self, Provenance o) -> bool
13323 __ne__(Provenance self, Particle d) -> bool
13325 return _IMP_core.Provenance___ne__(self, *args)
13327 def __le__(self, *args):
13329 __le__(Provenance self, Provenance o) -> bool
13330 __le__(Provenance self, Particle d) -> bool
13332 return _IMP_core.Provenance___le__(self, *args)
13334 def __lt__(self, *args):
13336 __lt__(Provenance self, Provenance o) -> bool
13337 __lt__(Provenance self, Particle d) -> bool
13339 return _IMP_core.Provenance___lt__(self, *args)
13341 def __ge__(self, *args):
13343 __ge__(Provenance self, Provenance o) -> bool
13344 __ge__(Provenance self, Particle d) -> bool
13346 return _IMP_core.Provenance___ge__(self, *args)
13348 def __gt__(self, *args):
13350 __gt__(Provenance self, Provenance o) -> bool
13351 __gt__(Provenance self, Particle d) -> bool
13353 return _IMP_core.Provenance___gt__(self, *args)
13355 def __hash__(self):
13356 r"""__hash__(Provenance self) -> std::size_t"""
13357 return _IMP_core.Provenance___hash__(self)
13360 r"""__str__(Provenance self) -> std::string"""
13361 return _IMP_core.Provenance___str__(self)
13363 def __repr__(self):
13364 r"""__repr__(Provenance self) -> std::string"""
13365 return _IMP_core.Provenance___repr__(self)
13367 def _get_as_binary(self):
13368 r"""_get_as_binary(Provenance self) -> PyObject *"""
13369 return _IMP_core.Provenance__get_as_binary(self)
13371 def _set_from_binary(self, p):
13372 r"""_set_from_binary(Provenance self, PyObject * p)"""
13373 return _IMP_core.Provenance__set_from_binary(self, p)
13375 def __getstate__(self):
13376 p = self._get_as_binary()
13377 if len(self.__dict__) > 1:
13378 d = self.__dict__.copy()
13383 def __setstate__(self, p):
13384 if not hasattr(self,
'this'):
13386 if isinstance(p, tuple):
13388 self.__dict__.update(d)
13389 return self._set_from_binary(p)
13391 __swig_destroy__ = _IMP_core.delete_Provenance
13394 _IMP_core.Provenance_swigregister(Provenance)
13395 class StructureProvenance(Provenance):
13396 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13398 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13400 def set_filename(self, filename):
13401 r"""set_filename(StructureProvenance self, std::string filename)"""
13402 return _IMP_core.StructureProvenance_set_filename(self, filename)
13404 def get_filename(self):
13405 r"""get_filename(StructureProvenance self) -> std::string"""
13406 return _IMP_core.StructureProvenance_get_filename(self)
13408 def set_chain_id(self, chain_id):
13409 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13410 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13413 r"""get_chain_id(StructureProvenance self) -> std::string"""
13414 return _IMP_core.StructureProvenance_get_chain_id(self)
13416 def set_residue_offset(self, residue_offset):
13417 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13418 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13420 def get_residue_offset(self):
13421 r"""get_residue_offset(StructureProvenance self) -> int"""
13422 return _IMP_core.StructureProvenance_get_residue_offset(self)
13424 def __init__(self, *args):
13426 __init__(StructureProvenance self) -> StructureProvenance
13427 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13428 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13430 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13433 def get_is_setup(*args):
13435 get_is_setup(Model m, ParticleIndex pi) -> bool
13436 get_is_setup(_ParticleAdaptor p) -> bool
13438 return _IMP_core.StructureProvenance_get_is_setup(*args)
13440 def show(self, *args):
13441 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13442 return _IMP_core.StructureProvenance_show(self, *args)
13445 def setup_particle(*args):
13447 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13448 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13449 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13450 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13451 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13452 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13454 return _IMP_core.StructureProvenance_setup_particle(*args)
13456 def add_attribute(self, *args):
13458 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13459 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13460 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13461 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13462 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13463 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13464 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13465 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13466 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13467 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13468 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13469 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13471 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13473 def get_value(self, *args):
13475 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13476 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13477 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13478 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13479 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13480 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13481 get_value(StructureProvenance self, ObjectKey a0) -> Object
13482 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13483 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13484 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13485 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13487 return _IMP_core.StructureProvenance_get_value(self, *args)
13489 def set_value(self, *args):
13491 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13492 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13493 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13494 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13495 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13496 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13497 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13498 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13499 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13500 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13501 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13503 return _IMP_core.StructureProvenance_set_value(self, *args)
13505 def remove_attribute(self, *args):
13507 remove_attribute(StructureProvenance self, FloatKey a0)
13508 remove_attribute(StructureProvenance self, IntKey a0)
13509 remove_attribute(StructureProvenance self, FloatsKey a0)
13510 remove_attribute(StructureProvenance self, IntsKey a0)
13511 remove_attribute(StructureProvenance self, StringKey a0)
13512 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13513 remove_attribute(StructureProvenance self, ObjectKey a0)
13514 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13515 remove_attribute(StructureProvenance self, SparseIntKey a0)
13516 remove_attribute(StructureProvenance self, SparseStringKey a0)
13517 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13519 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13521 def has_attribute(self, *args):
13523 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13524 has_attribute(StructureProvenance self, IntKey a0) -> bool
13525 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13526 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13527 has_attribute(StructureProvenance self, StringKey a0) -> bool
13528 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13529 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13530 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13531 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13532 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13533 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13535 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13537 def get_derivative(self, a0):
13538 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13539 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13541 def get_name(self):
13542 r"""get_name(StructureProvenance self) -> std::string"""
13543 return _IMP_core.StructureProvenance_get_name(self)
13545 def clear_caches(self):
13546 r"""clear_caches(StructureProvenance self)"""
13547 return _IMP_core.StructureProvenance_clear_caches(self)
13549 def set_name(self, a0):
13550 r"""set_name(StructureProvenance self, std::string a0)"""
13551 return _IMP_core.StructureProvenance_set_name(self, a0)
13554 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13555 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13557 def add_to_derivative(self, a0, a1, a2):
13558 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13559 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13561 def set_is_optimized(self, a0, a1):
13562 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13563 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13565 def get_is_optimized(self, a0):
13566 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13567 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13570 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13571 return _IMP_core.StructureProvenance_get_check_level(self)
13573 def __eq__(self, *args):
13575 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13576 __eq__(StructureProvenance self, Particle d) -> bool
13578 return _IMP_core.StructureProvenance___eq__(self, *args)
13580 def __ne__(self, *args):
13582 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13583 __ne__(StructureProvenance self, Particle d) -> bool
13585 return _IMP_core.StructureProvenance___ne__(self, *args)
13587 def __le__(self, *args):
13589 __le__(StructureProvenance self, StructureProvenance o) -> bool
13590 __le__(StructureProvenance self, Particle d) -> bool
13592 return _IMP_core.StructureProvenance___le__(self, *args)
13594 def __lt__(self, *args):
13596 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13597 __lt__(StructureProvenance self, Particle d) -> bool
13599 return _IMP_core.StructureProvenance___lt__(self, *args)
13601 def __ge__(self, *args):
13603 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13604 __ge__(StructureProvenance self, Particle d) -> bool
13606 return _IMP_core.StructureProvenance___ge__(self, *args)
13608 def __gt__(self, *args):
13610 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13611 __gt__(StructureProvenance self, Particle d) -> bool
13613 return _IMP_core.StructureProvenance___gt__(self, *args)
13615 def __hash__(self):
13616 r"""__hash__(StructureProvenance self) -> std::size_t"""
13617 return _IMP_core.StructureProvenance___hash__(self)
13620 r"""__str__(StructureProvenance self) -> std::string"""
13621 return _IMP_core.StructureProvenance___str__(self)
13623 def __repr__(self):
13624 r"""__repr__(StructureProvenance self) -> std::string"""
13625 return _IMP_core.StructureProvenance___repr__(self)
13627 def _get_as_binary(self):
13628 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13629 return _IMP_core.StructureProvenance__get_as_binary(self)
13631 def _set_from_binary(self, p):
13632 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13633 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13635 def __getstate__(self):
13636 p = self._get_as_binary()
13637 if len(self.__dict__) > 1:
13638 d = self.__dict__.copy()
13643 def __setstate__(self, p):
13644 if not hasattr(self,
'this'):
13646 if isinstance(p, tuple):
13648 self.__dict__.update(d)
13649 return self._set_from_binary(p)
13651 __swig_destroy__ = _IMP_core.delete_StructureProvenance
13654 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13655 class SampleProvenance(Provenance):
13656 r"""Proxy of C++ IMP::core::SampleProvenance class."""
13658 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13660 def set_method(self, method):
13661 r"""set_method(SampleProvenance self, std::string method)"""
13662 return _IMP_core.SampleProvenance_set_method(self, method)
13664 def get_method(self):
13665 r"""get_method(SampleProvenance self) -> std::string"""
13666 return _IMP_core.SampleProvenance_get_method(self)
13668 def set_number_of_frames(self, frames):
13669 r"""set_number_of_frames(SampleProvenance self, int frames)"""
13670 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13673 r"""get_number_of_frames(SampleProvenance self) -> int"""
13674 return _IMP_core.SampleProvenance_get_number_of_frames(self)
13676 def set_number_of_iterations(self, iterations):
13677 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13678 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13680 def get_number_of_iterations(self):
13681 r"""get_number_of_iterations(SampleProvenance self) -> int"""
13682 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13684 def set_number_of_replicas(self, replicas):
13685 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13686 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13688 def get_number_of_replicas(self):
13689 r"""get_number_of_replicas(SampleProvenance self) -> int"""
13690 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13692 def __init__(self, *args):
13694 __init__(SampleProvenance self) -> SampleProvenance
13695 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13696 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13698 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13701 def get_is_setup(*args):
13703 get_is_setup(Model m, ParticleIndex pi) -> bool
13704 get_is_setup(_ParticleAdaptor p) -> bool
13706 return _IMP_core.SampleProvenance_get_is_setup(*args)
13708 def show(self, *args):
13709 r"""show(SampleProvenance self, _ostream out=std::cout)"""
13710 return _IMP_core.SampleProvenance_show(self, *args)
13713 def setup_particle(*args):
13715 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13716 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13717 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13718 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13719 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13720 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13722 return _IMP_core.SampleProvenance_setup_particle(*args)
13724 def add_attribute(self, *args):
13726 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13727 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13728 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13729 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13730 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13731 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13732 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13733 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13734 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13735 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13736 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13737 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13739 return _IMP_core.SampleProvenance_add_attribute(self, *args)
13741 def get_value(self, *args):
13743 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13744 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13745 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13746 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13747 get_value(SampleProvenance self, StringKey a0) -> IMP::String
13748 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13749 get_value(SampleProvenance self, ObjectKey a0) -> Object
13750 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13751 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13752 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13753 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13755 return _IMP_core.SampleProvenance_get_value(self, *args)
13757 def set_value(self, *args):
13759 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13760 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13761 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13762 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13763 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13764 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13765 set_value(SampleProvenance self, ObjectKey a0, Object a1)
13766 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13767 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13768 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13769 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13771 return _IMP_core.SampleProvenance_set_value(self, *args)
13773 def remove_attribute(self, *args):
13775 remove_attribute(SampleProvenance self, FloatKey a0)
13776 remove_attribute(SampleProvenance self, IntKey a0)
13777 remove_attribute(SampleProvenance self, FloatsKey a0)
13778 remove_attribute(SampleProvenance self, IntsKey a0)
13779 remove_attribute(SampleProvenance self, StringKey a0)
13780 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13781 remove_attribute(SampleProvenance self, ObjectKey a0)
13782 remove_attribute(SampleProvenance self, SparseFloatKey a0)
13783 remove_attribute(SampleProvenance self, SparseIntKey a0)
13784 remove_attribute(SampleProvenance self, SparseStringKey a0)
13785 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13787 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13789 def has_attribute(self, *args):
13791 has_attribute(SampleProvenance self, FloatKey a0) -> bool
13792 has_attribute(SampleProvenance self, IntKey a0) -> bool
13793 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13794 has_attribute(SampleProvenance self, IntsKey a0) -> bool
13795 has_attribute(SampleProvenance self, StringKey a0) -> bool
13796 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13797 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13798 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13799 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13800 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13801 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13803 return _IMP_core.SampleProvenance_has_attribute(self, *args)
13805 def get_derivative(self, a0):
13806 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13807 return _IMP_core.SampleProvenance_get_derivative(self, a0)
13809 def get_name(self):
13810 r"""get_name(SampleProvenance self) -> std::string"""
13811 return _IMP_core.SampleProvenance_get_name(self)
13813 def clear_caches(self):
13814 r"""clear_caches(SampleProvenance self)"""
13815 return _IMP_core.SampleProvenance_clear_caches(self)
13817 def set_name(self, a0):
13818 r"""set_name(SampleProvenance self, std::string a0)"""
13819 return _IMP_core.SampleProvenance_set_name(self, a0)
13822 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13823 return _IMP_core.SampleProvenance_set_check_level(self, a0)
13825 def add_to_derivative(self, a0, a1, a2):
13826 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13827 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13829 def set_is_optimized(self, a0, a1):
13830 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13831 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13833 def get_is_optimized(self, a0):
13834 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13835 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13838 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13839 return _IMP_core.SampleProvenance_get_check_level(self)
13841 def __eq__(self, *args):
13843 __eq__(SampleProvenance self, SampleProvenance o) -> bool
13844 __eq__(SampleProvenance self, Particle d) -> bool
13846 return _IMP_core.SampleProvenance___eq__(self, *args)
13848 def __ne__(self, *args):
13850 __ne__(SampleProvenance self, SampleProvenance o) -> bool
13851 __ne__(SampleProvenance self, Particle d) -> bool
13853 return _IMP_core.SampleProvenance___ne__(self, *args)
13855 def __le__(self, *args):
13857 __le__(SampleProvenance self, SampleProvenance o) -> bool
13858 __le__(SampleProvenance self, Particle d) -> bool
13860 return _IMP_core.SampleProvenance___le__(self, *args)
13862 def __lt__(self, *args):
13864 __lt__(SampleProvenance self, SampleProvenance o) -> bool
13865 __lt__(SampleProvenance self, Particle d) -> bool
13867 return _IMP_core.SampleProvenance___lt__(self, *args)
13869 def __ge__(self, *args):
13871 __ge__(SampleProvenance self, SampleProvenance o) -> bool
13872 __ge__(SampleProvenance self, Particle d) -> bool
13874 return _IMP_core.SampleProvenance___ge__(self, *args)
13876 def __gt__(self, *args):
13878 __gt__(SampleProvenance self, SampleProvenance o) -> bool
13879 __gt__(SampleProvenance self, Particle d) -> bool
13881 return _IMP_core.SampleProvenance___gt__(self, *args)
13883 def __hash__(self):
13884 r"""__hash__(SampleProvenance self) -> std::size_t"""
13885 return _IMP_core.SampleProvenance___hash__(self)
13888 r"""__str__(SampleProvenance self) -> std::string"""
13889 return _IMP_core.SampleProvenance___str__(self)
13891 def __repr__(self):
13892 r"""__repr__(SampleProvenance self) -> std::string"""
13893 return _IMP_core.SampleProvenance___repr__(self)
13895 def _get_as_binary(self):
13896 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
13897 return _IMP_core.SampleProvenance__get_as_binary(self)
13899 def _set_from_binary(self, p):
13900 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
13901 return _IMP_core.SampleProvenance__set_from_binary(self, p)
13903 def __getstate__(self):
13904 p = self._get_as_binary()
13905 if len(self.__dict__) > 1:
13906 d = self.__dict__.copy()
13911 def __setstate__(self, p):
13912 if not hasattr(self,
'this'):
13914 if isinstance(p, tuple):
13916 self.__dict__.update(d)
13917 return self._set_from_binary(p)
13919 __swig_destroy__ = _IMP_core.delete_SampleProvenance
13922 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
13923 class CombineProvenance(Provenance):
13924 r"""Proxy of C++ IMP::core::CombineProvenance class."""
13926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13928 def set_number_of_frames(self, frames):
13929 r"""set_number_of_frames(CombineProvenance self, int frames)"""
13930 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
13933 r"""get_number_of_frames(CombineProvenance self) -> int"""
13934 return _IMP_core.CombineProvenance_get_number_of_frames(self)
13936 def set_number_of_runs(self, runs):
13937 r"""set_number_of_runs(CombineProvenance self, int runs)"""
13938 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
13940 def get_number_of_runs(self):
13941 r"""get_number_of_runs(CombineProvenance self) -> int"""
13942 return _IMP_core.CombineProvenance_get_number_of_runs(self)
13944 def __init__(self, *args):
13946 __init__(CombineProvenance self) -> CombineProvenance
13947 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
13948 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
13950 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
13953 def get_is_setup(*args):
13955 get_is_setup(Model m, ParticleIndex pi) -> bool
13956 get_is_setup(_ParticleAdaptor p) -> bool
13958 return _IMP_core.CombineProvenance_get_is_setup(*args)
13960 def show(self, *args):
13961 r"""show(CombineProvenance self, _ostream out=std::cout)"""
13962 return _IMP_core.CombineProvenance_show(self, *args)
13965 def setup_particle(*args):
13967 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
13968 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
13969 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
13970 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
13972 return _IMP_core.CombineProvenance_setup_particle(*args)
13974 def add_attribute(self, *args):
13976 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
13977 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
13978 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
13979 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13980 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13981 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
13982 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13983 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
13984 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
13985 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
13986 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
13987 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13989 return _IMP_core.CombineProvenance_add_attribute(self, *args)
13991 def get_value(self, *args):
13993 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
13994 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
13995 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
13996 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
13997 get_value(CombineProvenance self, StringKey a0) -> IMP::String
13998 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
13999 get_value(CombineProvenance self, ObjectKey a0) -> Object
14000 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14001 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14002 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14003 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14005 return _IMP_core.CombineProvenance_get_value(self, *args)
14007 def set_value(self, *args):
14009 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14010 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14011 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14012 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14013 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14014 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14015 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14016 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14017 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14018 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14019 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14021 return _IMP_core.CombineProvenance_set_value(self, *args)
14023 def remove_attribute(self, *args):
14025 remove_attribute(CombineProvenance self, FloatKey a0)
14026 remove_attribute(CombineProvenance self, IntKey a0)
14027 remove_attribute(CombineProvenance self, FloatsKey a0)
14028 remove_attribute(CombineProvenance self, IntsKey a0)
14029 remove_attribute(CombineProvenance self, StringKey a0)
14030 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14031 remove_attribute(CombineProvenance self, ObjectKey a0)
14032 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14033 remove_attribute(CombineProvenance self, SparseIntKey a0)
14034 remove_attribute(CombineProvenance self, SparseStringKey a0)
14035 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14037 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14039 def has_attribute(self, *args):
14041 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14042 has_attribute(CombineProvenance self, IntKey a0) -> bool
14043 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14044 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14045 has_attribute(CombineProvenance self, StringKey a0) -> bool
14046 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14047 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14048 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14049 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14050 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14051 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14053 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14055 def get_derivative(self, a0):
14056 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14057 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14059 def get_name(self):
14060 r"""get_name(CombineProvenance self) -> std::string"""
14061 return _IMP_core.CombineProvenance_get_name(self)
14063 def clear_caches(self):
14064 r"""clear_caches(CombineProvenance self)"""
14065 return _IMP_core.CombineProvenance_clear_caches(self)
14067 def set_name(self, a0):
14068 r"""set_name(CombineProvenance self, std::string a0)"""
14069 return _IMP_core.CombineProvenance_set_name(self, a0)
14072 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14073 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14075 def add_to_derivative(self, a0, a1, a2):
14076 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14077 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14079 def set_is_optimized(self, a0, a1):
14080 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14081 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14083 def get_is_optimized(self, a0):
14084 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14085 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14088 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14089 return _IMP_core.CombineProvenance_get_check_level(self)
14091 def __eq__(self, *args):
14093 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14094 __eq__(CombineProvenance self, Particle d) -> bool
14096 return _IMP_core.CombineProvenance___eq__(self, *args)
14098 def __ne__(self, *args):
14100 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14101 __ne__(CombineProvenance self, Particle d) -> bool
14103 return _IMP_core.CombineProvenance___ne__(self, *args)
14105 def __le__(self, *args):
14107 __le__(CombineProvenance self, CombineProvenance o) -> bool
14108 __le__(CombineProvenance self, Particle d) -> bool
14110 return _IMP_core.CombineProvenance___le__(self, *args)
14112 def __lt__(self, *args):
14114 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14115 __lt__(CombineProvenance self, Particle d) -> bool
14117 return _IMP_core.CombineProvenance___lt__(self, *args)
14119 def __ge__(self, *args):
14121 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14122 __ge__(CombineProvenance self, Particle d) -> bool
14124 return _IMP_core.CombineProvenance___ge__(self, *args)
14126 def __gt__(self, *args):
14128 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14129 __gt__(CombineProvenance self, Particle d) -> bool
14131 return _IMP_core.CombineProvenance___gt__(self, *args)
14133 def __hash__(self):
14134 r"""__hash__(CombineProvenance self) -> std::size_t"""
14135 return _IMP_core.CombineProvenance___hash__(self)
14138 r"""__str__(CombineProvenance self) -> std::string"""
14139 return _IMP_core.CombineProvenance___str__(self)
14141 def __repr__(self):
14142 r"""__repr__(CombineProvenance self) -> std::string"""
14143 return _IMP_core.CombineProvenance___repr__(self)
14145 def _get_as_binary(self):
14146 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14147 return _IMP_core.CombineProvenance__get_as_binary(self)
14149 def _set_from_binary(self, p):
14150 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14151 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14153 def __getstate__(self):
14154 p = self._get_as_binary()
14155 if len(self.__dict__) > 1:
14156 d = self.__dict__.copy()
14161 def __setstate__(self, p):
14162 if not hasattr(self,
'this'):
14164 if isinstance(p, tuple):
14166 self.__dict__.update(d)
14167 return self._set_from_binary(p)
14169 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14172 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14173 class FilterProvenance(Provenance):
14174 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14176 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14178 def set_method(self, method):
14179 r"""set_method(FilterProvenance self, std::string method)"""
14180 return _IMP_core.FilterProvenance_set_method(self, method)
14182 def get_method(self):
14183 r"""get_method(FilterProvenance self) -> std::string"""
14184 return _IMP_core.FilterProvenance_get_method(self)
14186 def set_number_of_frames(self, frames):
14187 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14188 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14191 r"""get_number_of_frames(FilterProvenance self) -> int"""
14192 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14194 def set_threshold(self, threshold):
14195 r"""set_threshold(FilterProvenance self, double threshold)"""
14196 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14198 def get_threshold(self):
14199 r"""get_threshold(FilterProvenance self) -> double"""
14200 return _IMP_core.FilterProvenance_get_threshold(self)
14202 def __init__(self, *args):
14204 __init__(FilterProvenance self) -> FilterProvenance
14205 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14206 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14208 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14211 def get_is_setup(*args):
14213 get_is_setup(Model m, ParticleIndex pi) -> bool
14214 get_is_setup(_ParticleAdaptor p) -> bool
14216 return _IMP_core.FilterProvenance_get_is_setup(*args)
14218 def show(self, *args):
14219 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14220 return _IMP_core.FilterProvenance_show(self, *args)
14223 def setup_particle(*args):
14225 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14226 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14227 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14228 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14230 return _IMP_core.FilterProvenance_setup_particle(*args)
14232 def add_attribute(self, *args):
14234 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14235 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14236 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14237 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14238 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14239 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14240 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14241 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14242 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14243 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14244 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14245 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14247 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14249 def get_value(self, *args):
14251 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14252 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14253 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14254 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14255 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14256 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14257 get_value(FilterProvenance self, ObjectKey a0) -> Object
14258 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14259 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14260 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14261 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14263 return _IMP_core.FilterProvenance_get_value(self, *args)
14265 def set_value(self, *args):
14267 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14268 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14269 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14270 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14271 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14272 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14273 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14274 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14275 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14276 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14277 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14279 return _IMP_core.FilterProvenance_set_value(self, *args)
14281 def remove_attribute(self, *args):
14283 remove_attribute(FilterProvenance self, FloatKey a0)
14284 remove_attribute(FilterProvenance self, IntKey a0)
14285 remove_attribute(FilterProvenance self, FloatsKey a0)
14286 remove_attribute(FilterProvenance self, IntsKey a0)
14287 remove_attribute(FilterProvenance self, StringKey a0)
14288 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14289 remove_attribute(FilterProvenance self, ObjectKey a0)
14290 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14291 remove_attribute(FilterProvenance self, SparseIntKey a0)
14292 remove_attribute(FilterProvenance self, SparseStringKey a0)
14293 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14295 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14297 def has_attribute(self, *args):
14299 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14300 has_attribute(FilterProvenance self, IntKey a0) -> bool
14301 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14302 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14303 has_attribute(FilterProvenance self, StringKey a0) -> bool
14304 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14305 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14306 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14307 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14308 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14309 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14311 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14313 def get_derivative(self, a0):
14314 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14315 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14317 def get_name(self):
14318 r"""get_name(FilterProvenance self) -> std::string"""
14319 return _IMP_core.FilterProvenance_get_name(self)
14321 def clear_caches(self):
14322 r"""clear_caches(FilterProvenance self)"""
14323 return _IMP_core.FilterProvenance_clear_caches(self)
14325 def set_name(self, a0):
14326 r"""set_name(FilterProvenance self, std::string a0)"""
14327 return _IMP_core.FilterProvenance_set_name(self, a0)
14330 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14331 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14333 def add_to_derivative(self, a0, a1, a2):
14334 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14335 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14337 def set_is_optimized(self, a0, a1):
14338 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14339 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14341 def get_is_optimized(self, a0):
14342 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14343 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14346 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14347 return _IMP_core.FilterProvenance_get_check_level(self)
14349 def __eq__(self, *args):
14351 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14352 __eq__(FilterProvenance self, Particle d) -> bool
14354 return _IMP_core.FilterProvenance___eq__(self, *args)
14356 def __ne__(self, *args):
14358 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14359 __ne__(FilterProvenance self, Particle d) -> bool
14361 return _IMP_core.FilterProvenance___ne__(self, *args)
14363 def __le__(self, *args):
14365 __le__(FilterProvenance self, FilterProvenance o) -> bool
14366 __le__(FilterProvenance self, Particle d) -> bool
14368 return _IMP_core.FilterProvenance___le__(self, *args)
14370 def __lt__(self, *args):
14372 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14373 __lt__(FilterProvenance self, Particle d) -> bool
14375 return _IMP_core.FilterProvenance___lt__(self, *args)
14377 def __ge__(self, *args):
14379 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14380 __ge__(FilterProvenance self, Particle d) -> bool
14382 return _IMP_core.FilterProvenance___ge__(self, *args)
14384 def __gt__(self, *args):
14386 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14387 __gt__(FilterProvenance self, Particle d) -> bool
14389 return _IMP_core.FilterProvenance___gt__(self, *args)
14391 def __hash__(self):
14392 r"""__hash__(FilterProvenance self) -> std::size_t"""
14393 return _IMP_core.FilterProvenance___hash__(self)
14396 r"""__str__(FilterProvenance self) -> std::string"""
14397 return _IMP_core.FilterProvenance___str__(self)
14399 def __repr__(self):
14400 r"""__repr__(FilterProvenance self) -> std::string"""
14401 return _IMP_core.FilterProvenance___repr__(self)
14403 def _get_as_binary(self):
14404 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14405 return _IMP_core.FilterProvenance__get_as_binary(self)
14407 def _set_from_binary(self, p):
14408 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14409 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14411 def __getstate__(self):
14412 p = self._get_as_binary()
14413 if len(self.__dict__) > 1:
14414 d = self.__dict__.copy()
14419 def __setstate__(self, p):
14420 if not hasattr(self,
'this'):
14422 if isinstance(p, tuple):
14424 self.__dict__.update(d)
14425 return self._set_from_binary(p)
14427 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14430 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14431 class ClusterProvenance(Provenance):
14432 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14434 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14436 def set_number_of_members(self, members):
14437 r"""set_number_of_members(ClusterProvenance self, int members)"""
14438 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14440 def get_number_of_members(self):
14441 r"""get_number_of_members(ClusterProvenance self) -> int"""
14442 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14444 def set_precision(self, precision):
14445 r"""set_precision(ClusterProvenance self, double precision)"""
14446 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14448 def get_precision(self):
14449 r"""get_precision(ClusterProvenance self) -> double"""
14450 return _IMP_core.ClusterProvenance_get_precision(self)
14452 def set_density(self, density):
14453 r"""set_density(ClusterProvenance self, std::string density)"""
14454 return _IMP_core.ClusterProvenance_set_density(self, density)
14456 def get_density(self):
14457 r"""get_density(ClusterProvenance self) -> std::string"""
14458 return _IMP_core.ClusterProvenance_get_density(self)
14460 def __init__(self, *args):
14462 __init__(ClusterProvenance self) -> ClusterProvenance
14463 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14464 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14466 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14469 def get_is_setup(*args):
14471 get_is_setup(Model m, ParticleIndex pi) -> bool
14472 get_is_setup(_ParticleAdaptor p) -> bool
14474 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14476 def show(self, *args):
14477 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14478 return _IMP_core.ClusterProvenance_show(self, *args)
14481 def setup_particle(*args):
14483 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14484 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14485 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14486 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14487 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14488 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14489 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14490 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14492 return _IMP_core.ClusterProvenance_setup_particle(*args)
14494 def add_attribute(self, *args):
14496 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14497 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14498 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14499 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14500 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14501 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14502 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14503 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14504 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14505 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14506 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14507 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14509 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14511 def get_value(self, *args):
14513 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14514 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14515 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14516 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14517 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14518 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14519 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14520 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14521 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14522 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14523 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14525 return _IMP_core.ClusterProvenance_get_value(self, *args)
14527 def set_value(self, *args):
14529 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14530 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14531 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14532 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14533 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14534 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14535 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14536 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14537 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14538 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14539 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14541 return _IMP_core.ClusterProvenance_set_value(self, *args)
14543 def remove_attribute(self, *args):
14545 remove_attribute(ClusterProvenance self, FloatKey a0)
14546 remove_attribute(ClusterProvenance self, IntKey a0)
14547 remove_attribute(ClusterProvenance self, FloatsKey a0)
14548 remove_attribute(ClusterProvenance self, IntsKey a0)
14549 remove_attribute(ClusterProvenance self, StringKey a0)
14550 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14551 remove_attribute(ClusterProvenance self, ObjectKey a0)
14552 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14553 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14554 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14555 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14557 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14559 def has_attribute(self, *args):
14561 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14562 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14563 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14564 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14565 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14566 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14567 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14568 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14569 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14570 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14571 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14573 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14575 def get_derivative(self, a0):
14576 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14577 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14579 def get_name(self):
14580 r"""get_name(ClusterProvenance self) -> std::string"""
14581 return _IMP_core.ClusterProvenance_get_name(self)
14583 def clear_caches(self):
14584 r"""clear_caches(ClusterProvenance self)"""
14585 return _IMP_core.ClusterProvenance_clear_caches(self)
14587 def set_name(self, a0):
14588 r"""set_name(ClusterProvenance self, std::string a0)"""
14589 return _IMP_core.ClusterProvenance_set_name(self, a0)
14592 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14593 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14595 def add_to_derivative(self, a0, a1, a2):
14596 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14597 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14599 def set_is_optimized(self, a0, a1):
14600 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14601 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14603 def get_is_optimized(self, a0):
14604 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14605 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14608 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14609 return _IMP_core.ClusterProvenance_get_check_level(self)
14611 def __eq__(self, *args):
14613 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14614 __eq__(ClusterProvenance self, Particle d) -> bool
14616 return _IMP_core.ClusterProvenance___eq__(self, *args)
14618 def __ne__(self, *args):
14620 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14621 __ne__(ClusterProvenance self, Particle d) -> bool
14623 return _IMP_core.ClusterProvenance___ne__(self, *args)
14625 def __le__(self, *args):
14627 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14628 __le__(ClusterProvenance self, Particle d) -> bool
14630 return _IMP_core.ClusterProvenance___le__(self, *args)
14632 def __lt__(self, *args):
14634 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14635 __lt__(ClusterProvenance self, Particle d) -> bool
14637 return _IMP_core.ClusterProvenance___lt__(self, *args)
14639 def __ge__(self, *args):
14641 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14642 __ge__(ClusterProvenance self, Particle d) -> bool
14644 return _IMP_core.ClusterProvenance___ge__(self, *args)
14646 def __gt__(self, *args):
14648 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14649 __gt__(ClusterProvenance self, Particle d) -> bool
14651 return _IMP_core.ClusterProvenance___gt__(self, *args)
14653 def __hash__(self):
14654 r"""__hash__(ClusterProvenance self) -> std::size_t"""
14655 return _IMP_core.ClusterProvenance___hash__(self)
14658 r"""__str__(ClusterProvenance self) -> std::string"""
14659 return _IMP_core.ClusterProvenance___str__(self)
14661 def __repr__(self):
14662 r"""__repr__(ClusterProvenance self) -> std::string"""
14663 return _IMP_core.ClusterProvenance___repr__(self)
14665 def _get_as_binary(self):
14666 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14667 return _IMP_core.ClusterProvenance__get_as_binary(self)
14669 def _set_from_binary(self, p):
14670 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14671 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14673 def __getstate__(self):
14674 p = self._get_as_binary()
14675 if len(self.__dict__) > 1:
14676 d = self.__dict__.copy()
14681 def __setstate__(self, p):
14682 if not hasattr(self,
'this'):
14684 if isinstance(p, tuple):
14686 self.__dict__.update(d)
14687 return self._set_from_binary(p)
14689 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14692 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14693 class ScriptProvenance(Provenance):
14694 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14696 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14698 def set_filename(self, filename):
14699 r"""set_filename(ScriptProvenance self, std::string filename)"""
14700 return _IMP_core.ScriptProvenance_set_filename(self, filename)
14702 def get_filename(self):
14703 r"""get_filename(ScriptProvenance self) -> std::string"""
14704 return _IMP_core.ScriptProvenance_get_filename(self)
14706 def __init__(self, *args):
14708 __init__(ScriptProvenance self) -> ScriptProvenance
14709 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14710 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14712 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14715 def get_is_setup(*args):
14717 get_is_setup(Model m, ParticleIndex pi) -> bool
14718 get_is_setup(_ParticleAdaptor p) -> bool
14720 return _IMP_core.ScriptProvenance_get_is_setup(*args)
14722 def show(self, *args):
14723 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14724 return _IMP_core.ScriptProvenance_show(self, *args)
14727 def setup_particle(*args):
14729 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14730 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14731 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14732 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14734 return _IMP_core.ScriptProvenance_setup_particle(*args)
14736 def add_attribute(self, *args):
14738 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14739 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14740 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14741 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14742 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14743 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14744 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14745 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14746 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14747 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14748 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14749 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14751 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14753 def get_value(self, *args):
14755 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14756 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14757 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14758 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14759 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14760 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14761 get_value(ScriptProvenance self, ObjectKey a0) -> Object
14762 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14763 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14764 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14765 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14767 return _IMP_core.ScriptProvenance_get_value(self, *args)
14769 def set_value(self, *args):
14771 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14772 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14773 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14774 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14775 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14776 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14777 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14778 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14779 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14780 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14781 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14783 return _IMP_core.ScriptProvenance_set_value(self, *args)
14785 def remove_attribute(self, *args):
14787 remove_attribute(ScriptProvenance self, FloatKey a0)
14788 remove_attribute(ScriptProvenance self, IntKey a0)
14789 remove_attribute(ScriptProvenance self, FloatsKey a0)
14790 remove_attribute(ScriptProvenance self, IntsKey a0)
14791 remove_attribute(ScriptProvenance self, StringKey a0)
14792 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14793 remove_attribute(ScriptProvenance self, ObjectKey a0)
14794 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14795 remove_attribute(ScriptProvenance self, SparseIntKey a0)
14796 remove_attribute(ScriptProvenance self, SparseStringKey a0)
14797 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14799 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14801 def has_attribute(self, *args):
14803 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14804 has_attribute(ScriptProvenance self, IntKey a0) -> bool
14805 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14806 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14807 has_attribute(ScriptProvenance self, StringKey a0) -> bool
14808 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14809 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14810 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14811 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14812 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14813 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14815 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14817 def get_derivative(self, a0):
14818 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14819 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14821 def get_name(self):
14822 r"""get_name(ScriptProvenance self) -> std::string"""
14823 return _IMP_core.ScriptProvenance_get_name(self)
14825 def clear_caches(self):
14826 r"""clear_caches(ScriptProvenance self)"""
14827 return _IMP_core.ScriptProvenance_clear_caches(self)
14829 def set_name(self, a0):
14830 r"""set_name(ScriptProvenance self, std::string a0)"""
14831 return _IMP_core.ScriptProvenance_set_name(self, a0)
14834 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14835 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14837 def add_to_derivative(self, a0, a1, a2):
14838 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14839 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14841 def set_is_optimized(self, a0, a1):
14842 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14843 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14845 def get_is_optimized(self, a0):
14846 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
14847 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
14850 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
14851 return _IMP_core.ScriptProvenance_get_check_level(self)
14853 def __eq__(self, *args):
14855 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
14856 __eq__(ScriptProvenance self, Particle d) -> bool
14858 return _IMP_core.ScriptProvenance___eq__(self, *args)
14860 def __ne__(self, *args):
14862 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
14863 __ne__(ScriptProvenance self, Particle d) -> bool
14865 return _IMP_core.ScriptProvenance___ne__(self, *args)
14867 def __le__(self, *args):
14869 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
14870 __le__(ScriptProvenance self, Particle d) -> bool
14872 return _IMP_core.ScriptProvenance___le__(self, *args)
14874 def __lt__(self, *args):
14876 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
14877 __lt__(ScriptProvenance self, Particle d) -> bool
14879 return _IMP_core.ScriptProvenance___lt__(self, *args)
14881 def __ge__(self, *args):
14883 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
14884 __ge__(ScriptProvenance self, Particle d) -> bool
14886 return _IMP_core.ScriptProvenance___ge__(self, *args)
14888 def __gt__(self, *args):
14890 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
14891 __gt__(ScriptProvenance self, Particle d) -> bool
14893 return _IMP_core.ScriptProvenance___gt__(self, *args)
14895 def __hash__(self):
14896 r"""__hash__(ScriptProvenance self) -> std::size_t"""
14897 return _IMP_core.ScriptProvenance___hash__(self)
14900 r"""__str__(ScriptProvenance self) -> std::string"""
14901 return _IMP_core.ScriptProvenance___str__(self)
14903 def __repr__(self):
14904 r"""__repr__(ScriptProvenance self) -> std::string"""
14905 return _IMP_core.ScriptProvenance___repr__(self)
14907 def _get_as_binary(self):
14908 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
14909 return _IMP_core.ScriptProvenance__get_as_binary(self)
14911 def _set_from_binary(self, p):
14912 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
14913 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
14915 def __getstate__(self):
14916 p = self._get_as_binary()
14917 if len(self.__dict__) > 1:
14918 d = self.__dict__.copy()
14923 def __setstate__(self, p):
14924 if not hasattr(self,
'this'):
14926 if isinstance(p, tuple):
14928 self.__dict__.update(d)
14929 return self._set_from_binary(p)
14931 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
14934 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
14935 class SoftwareProvenance(Provenance):
14936 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
14938 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14940 def set_software_name(self, name):
14941 r"""set_software_name(SoftwareProvenance self, std::string name)"""
14942 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
14944 def get_software_name(self):
14945 r"""get_software_name(SoftwareProvenance self) -> std::string"""
14946 return _IMP_core.SoftwareProvenance_get_software_name(self)
14948 def set_version(self, version):
14949 r"""set_version(SoftwareProvenance self, std::string version)"""
14950 return _IMP_core.SoftwareProvenance_set_version(self, version)
14952 def get_version(self):
14953 r"""get_version(SoftwareProvenance self) -> std::string"""
14954 return _IMP_core.SoftwareProvenance_get_version(self)
14956 def set_location(self, location):
14957 r"""set_location(SoftwareProvenance self, std::string location)"""
14958 return _IMP_core.SoftwareProvenance_set_location(self, location)
14960 def get_location(self):
14961 r"""get_location(SoftwareProvenance self) -> std::string"""
14962 return _IMP_core.SoftwareProvenance_get_location(self)
14964 def __init__(self, *args):
14966 __init__(SoftwareProvenance self) -> SoftwareProvenance
14967 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
14968 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
14970 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
14973 def get_is_setup(*args):
14975 get_is_setup(Model m, ParticleIndex pi) -> bool
14976 get_is_setup(_ParticleAdaptor p) -> bool
14978 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
14980 def show(self, *args):
14981 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
14982 return _IMP_core.SoftwareProvenance_show(self, *args)
14985 def setup_particle(*args):
14987 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
14988 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
14989 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
14990 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
14992 return _IMP_core.SoftwareProvenance_setup_particle(*args)
14994 def add_attribute(self, *args):
14996 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
14997 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14998 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
14999 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15000 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15001 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15002 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15003 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15004 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15005 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15006 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15007 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15009 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15011 def get_value(self, *args):
15013 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15014 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15015 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15016 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15017 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15018 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15019 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15020 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15021 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15022 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15023 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15025 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15027 def set_value(self, *args):
15029 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15030 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15031 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15032 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15033 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15034 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15035 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15036 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15037 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15038 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15039 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15041 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15043 def remove_attribute(self, *args):
15045 remove_attribute(SoftwareProvenance self, FloatKey a0)
15046 remove_attribute(SoftwareProvenance self, IntKey a0)
15047 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15048 remove_attribute(SoftwareProvenance self, IntsKey a0)
15049 remove_attribute(SoftwareProvenance self, StringKey a0)
15050 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15051 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15052 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15053 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15054 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15055 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15057 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15059 def has_attribute(self, *args):
15061 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15062 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15063 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15064 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15065 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15066 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15067 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15068 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15069 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15070 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15071 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15073 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15075 def get_derivative(self, a0):
15076 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15077 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15079 def get_name(self):
15080 r"""get_name(SoftwareProvenance self) -> std::string"""
15081 return _IMP_core.SoftwareProvenance_get_name(self)
15083 def clear_caches(self):
15084 r"""clear_caches(SoftwareProvenance self)"""
15085 return _IMP_core.SoftwareProvenance_clear_caches(self)
15087 def set_name(self, a0):
15088 r"""set_name(SoftwareProvenance self, std::string a0)"""
15089 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15092 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15093 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15095 def add_to_derivative(self, a0, a1, a2):
15096 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15097 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15099 def set_is_optimized(self, a0, a1):
15100 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15101 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15103 def get_is_optimized(self, a0):
15104 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15105 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15108 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15109 return _IMP_core.SoftwareProvenance_get_check_level(self)
15111 def __eq__(self, *args):
15113 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15114 __eq__(SoftwareProvenance self, Particle d) -> bool
15116 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15118 def __ne__(self, *args):
15120 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15121 __ne__(SoftwareProvenance self, Particle d) -> bool
15123 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15125 def __le__(self, *args):
15127 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15128 __le__(SoftwareProvenance self, Particle d) -> bool
15130 return _IMP_core.SoftwareProvenance___le__(self, *args)
15132 def __lt__(self, *args):
15134 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15135 __lt__(SoftwareProvenance self, Particle d) -> bool
15137 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15139 def __ge__(self, *args):
15141 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15142 __ge__(SoftwareProvenance self, Particle d) -> bool
15144 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15146 def __gt__(self, *args):
15148 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15149 __gt__(SoftwareProvenance self, Particle d) -> bool
15151 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15153 def __hash__(self):
15154 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15155 return _IMP_core.SoftwareProvenance___hash__(self)
15158 r"""__str__(SoftwareProvenance self) -> std::string"""
15159 return _IMP_core.SoftwareProvenance___str__(self)
15161 def __repr__(self):
15162 r"""__repr__(SoftwareProvenance self) -> std::string"""
15163 return _IMP_core.SoftwareProvenance___repr__(self)
15165 def _get_as_binary(self):
15166 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15167 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15169 def _set_from_binary(self, p):
15170 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15171 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15173 def __getstate__(self):
15174 p = self._get_as_binary()
15175 if len(self.__dict__) > 1:
15176 d = self.__dict__.copy()
15181 def __setstate__(self, p):
15182 if not hasattr(self,
'this'):
15184 if isinstance(p, tuple):
15186 self.__dict__.update(d)
15187 return self._set_from_binary(p)
15189 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15192 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15194 r"""Proxy of C++ IMP::core::Provenanced class."""
15196 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15198 def get_provenance(self):
15199 r"""get_provenance(Provenanced self) -> Provenance"""
15200 return _IMP_core.Provenanced_get_provenance(self)
15202 def set_provenance(self, p):
15203 r"""set_provenance(Provenanced self, Provenance p)"""
15204 return _IMP_core.Provenanced_set_provenance(self, p)
15206 def __init__(self, *args):
15208 __init__(Provenanced self) -> Provenanced
15209 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15210 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15212 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15215 def get_is_setup(*args):
15217 get_is_setup(Model m, ParticleIndex pi) -> bool
15218 get_is_setup(_ParticleAdaptor p) -> bool
15220 return _IMP_core.Provenanced_get_is_setup(*args)
15222 def show(self, *args):
15223 r"""show(Provenanced self, _ostream out=std::cout)"""
15224 return _IMP_core.Provenanced_show(self, *args)
15227 def setup_particle(*args):
15229 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15230 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15232 return _IMP_core.Provenanced_setup_particle(*args)
15234 def add_attribute(self, *args):
15236 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15237 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15238 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15239 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15240 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15241 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15242 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15243 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15244 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15245 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15246 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15247 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15249 return _IMP_core.Provenanced_add_attribute(self, *args)
15251 def get_value(self, *args):
15253 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15254 get_value(Provenanced self, IntKey a0) -> IMP::Int
15255 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15256 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15257 get_value(Provenanced self, StringKey a0) -> IMP::String
15258 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15259 get_value(Provenanced self, ObjectKey a0) -> Object
15260 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15261 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15262 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15263 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15265 return _IMP_core.Provenanced_get_value(self, *args)
15267 def set_value(self, *args):
15269 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15270 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15271 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15272 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15273 set_value(Provenanced self, StringKey a0, IMP::String a1)
15274 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15275 set_value(Provenanced self, ObjectKey a0, Object a1)
15276 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15277 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15278 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15279 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15281 return _IMP_core.Provenanced_set_value(self, *args)
15283 def remove_attribute(self, *args):
15285 remove_attribute(Provenanced self, FloatKey a0)
15286 remove_attribute(Provenanced self, IntKey a0)
15287 remove_attribute(Provenanced self, FloatsKey a0)
15288 remove_attribute(Provenanced self, IntsKey a0)
15289 remove_attribute(Provenanced self, StringKey a0)
15290 remove_attribute(Provenanced self, ParticleIndexKey a0)
15291 remove_attribute(Provenanced self, ObjectKey a0)
15292 remove_attribute(Provenanced self, SparseFloatKey a0)
15293 remove_attribute(Provenanced self, SparseIntKey a0)
15294 remove_attribute(Provenanced self, SparseStringKey a0)
15295 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15297 return _IMP_core.Provenanced_remove_attribute(self, *args)
15299 def has_attribute(self, *args):
15301 has_attribute(Provenanced self, FloatKey a0) -> bool
15302 has_attribute(Provenanced self, IntKey a0) -> bool
15303 has_attribute(Provenanced self, FloatsKey a0) -> bool
15304 has_attribute(Provenanced self, IntsKey a0) -> bool
15305 has_attribute(Provenanced self, StringKey a0) -> bool
15306 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15307 has_attribute(Provenanced self, ObjectKey a0) -> bool
15308 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15309 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15310 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15311 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15313 return _IMP_core.Provenanced_has_attribute(self, *args)
15315 def get_derivative(self, a0):
15316 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15317 return _IMP_core.Provenanced_get_derivative(self, a0)
15319 def get_name(self):
15320 r"""get_name(Provenanced self) -> std::string"""
15321 return _IMP_core.Provenanced_get_name(self)
15323 def clear_caches(self):
15324 r"""clear_caches(Provenanced self)"""
15325 return _IMP_core.Provenanced_clear_caches(self)
15327 def set_name(self, a0):
15328 r"""set_name(Provenanced self, std::string a0)"""
15329 return _IMP_core.Provenanced_set_name(self, a0)
15332 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15333 return _IMP_core.Provenanced_set_check_level(self, a0)
15335 def add_to_derivative(self, a0, a1, a2):
15336 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15337 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15339 def set_is_optimized(self, a0, a1):
15340 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15341 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15343 def get_is_optimized(self, a0):
15344 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15345 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15348 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15349 return _IMP_core.Provenanced_get_check_level(self)
15351 def __eq__(self, *args):
15353 __eq__(Provenanced self, Provenanced o) -> bool
15354 __eq__(Provenanced self, Particle d) -> bool
15356 return _IMP_core.Provenanced___eq__(self, *args)
15358 def __ne__(self, *args):
15360 __ne__(Provenanced self, Provenanced o) -> bool
15361 __ne__(Provenanced self, Particle d) -> bool
15363 return _IMP_core.Provenanced___ne__(self, *args)
15365 def __le__(self, *args):
15367 __le__(Provenanced self, Provenanced o) -> bool
15368 __le__(Provenanced self, Particle d) -> bool
15370 return _IMP_core.Provenanced___le__(self, *args)
15372 def __lt__(self, *args):
15374 __lt__(Provenanced self, Provenanced o) -> bool
15375 __lt__(Provenanced self, Particle d) -> bool
15377 return _IMP_core.Provenanced___lt__(self, *args)
15379 def __ge__(self, *args):
15381 __ge__(Provenanced self, Provenanced o) -> bool
15382 __ge__(Provenanced self, Particle d) -> bool
15384 return _IMP_core.Provenanced___ge__(self, *args)
15386 def __gt__(self, *args):
15388 __gt__(Provenanced self, Provenanced o) -> bool
15389 __gt__(Provenanced self, Particle d) -> bool
15391 return _IMP_core.Provenanced___gt__(self, *args)
15393 def __hash__(self):
15394 r"""__hash__(Provenanced self) -> std::size_t"""
15395 return _IMP_core.Provenanced___hash__(self)
15398 r"""__str__(Provenanced self) -> std::string"""
15399 return _IMP_core.Provenanced___str__(self)
15401 def __repr__(self):
15402 r"""__repr__(Provenanced self) -> std::string"""
15403 return _IMP_core.Provenanced___repr__(self)
15405 def _get_as_binary(self):
15406 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15407 return _IMP_core.Provenanced__get_as_binary(self)
15409 def _set_from_binary(self, p):
15410 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15411 return _IMP_core.Provenanced__set_from_binary(self, p)
15413 def __getstate__(self):
15414 p = self._get_as_binary()
15415 if len(self.__dict__) > 1:
15416 d = self.__dict__.copy()
15421 def __setstate__(self, p):
15422 if not hasattr(self,
'this'):
15424 if isinstance(p, tuple):
15426 self.__dict__.update(d)
15427 return self._set_from_binary(p)
15429 __swig_destroy__ = _IMP_core.delete_Provenanced
15432 _IMP_core.Provenanced_swigregister(Provenanced)
15435 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15436 return _IMP_core.add_provenance(m, pi, p)
15439 r"""create_clone(Provenance p) -> Provenance"""
15440 return _IMP_core.create_clone(p)
15444 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15445 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & b) -> Transformation3D
15446 get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15448 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15451 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15452 return _IMP_core.create_restraint(ps, pp)
15454 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15456 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15458 def __init__(self, *args):
15460 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15461 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15463 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15465 def get_version_info(self):
15466 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15467 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15468 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15471 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15472 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15474 def __repr__(self):
15475 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15476 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15480 return _object_cast_to_TruncatedHarmonic(o)
15484 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15486 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15488 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15490 def __init__(self, *args):
15492 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15493 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15495 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15497 def get_version_info(self):
15498 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15499 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15500 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15503 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15504 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15506 def __repr__(self):
15507 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15508 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15512 return _object_cast_to_TruncatedHarmonic(o)
15516 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15518 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15522 def __init__(self, *args):
15524 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15525 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15527 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15529 def get_version_info(self):
15530 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15531 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15532 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15535 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15536 return _IMP_core.TruncatedHarmonicBound___str__(self)
15538 def __repr__(self):
15539 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15540 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15544 return _object_cast_to_TruncatedHarmonic(o)
15548 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15550 r"""Proxy of C++ IMP::Key< 34897493 > class."""
15552 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15554 def __init__(self, *args):
15556 __init__(ParticleType self) -> ParticleType
15557 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15558 __init__(ParticleType self, unsigned int i) -> ParticleType
15560 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15564 r"""add_key(std::string sc) -> unsigned int"""
15565 return _IMP_core.ParticleType_add_key(sc)
15568 def get_key_exists(sc):
15569 r"""get_key_exists(std::string sc) -> bool"""
15570 return _IMP_core.ParticleType_get_key_exists(sc)
15572 def get_string(self):
15573 r"""get_string(ParticleType self) -> std::string const"""
15574 return _IMP_core.ParticleType_get_string(self)
15576 def __cmp__(self, o):
15577 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15578 return _IMP_core.ParticleType___cmp__(self, o)
15580 def __eq__(self, o):
15581 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15582 return _IMP_core.ParticleType___eq__(self, o)
15584 def __ne__(self, o):
15585 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15586 return _IMP_core.ParticleType___ne__(self, o)
15588 def __lt__(self, o):
15589 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15590 return _IMP_core.ParticleType___lt__(self, o)
15592 def __gt__(self, o):
15593 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15594 return _IMP_core.ParticleType___gt__(self, o)
15596 def __ge__(self, o):
15597 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15598 return _IMP_core.ParticleType___ge__(self, o)
15600 def __le__(self, o):
15601 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15602 return _IMP_core.ParticleType___le__(self, o)
15604 def __hash__(self):
15605 r"""__hash__(ParticleType self) -> std::size_t"""
15606 return _IMP_core.ParticleType___hash__(self)
15608 def show(self, *args):
15609 r"""show(ParticleType self, _ostream out=std::cout)"""
15610 return _IMP_core.ParticleType_show(self, *args)
15613 def add_alias(old_key, new_name):
15614 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15615 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15618 def get_number_of_keys():
15619 r"""get_number_of_keys() -> unsigned int"""
15620 return _IMP_core.ParticleType_get_number_of_keys()
15623 r"""get_index(ParticleType self) -> unsigned int"""
15624 return _IMP_core.ParticleType_get_index(self)
15628 r"""show_all(_ostream out)"""
15629 return _IMP_core.ParticleType_show_all(out)
15632 def get_all_strings():
15633 r"""get_all_strings() -> IMP::Vector< std::string >"""
15634 return _IMP_core.ParticleType_get_all_strings()
15637 def get_number_unique():
15638 r"""get_number_unique() -> unsigned int"""
15639 return _IMP_core.ParticleType_get_number_unique()
15642 r"""__str__(ParticleType self) -> std::string"""
15643 return _IMP_core.ParticleType___str__(self)
15645 def __repr__(self):
15646 r"""__repr__(ParticleType self) -> std::string"""
15647 return _IMP_core.ParticleType___repr__(self)
15648 __swig_destroy__ = _IMP_core.delete_ParticleType
15651 _IMP_core.ParticleType_swigregister(ParticleType)
15653 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15655 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15656 __repr__ = _swig_repr
15658 def __init__(self, f, k):
15659 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15660 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15662 def do_get_inputs(self, m, pis):
15663 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15664 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15666 def get_unary_function(self):
15667 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15668 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15670 def get_version_info(self):
15671 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15672 return _IMP_core.AttributeSingletonScore_get_version_info(self)
15673 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15676 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15679 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15680 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15682 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15684 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15685 __repr__ = _swig_repr
15687 def __init__(self, f, bb):
15688 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15689 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15691 def do_get_inputs(self, m, pis):
15692 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15693 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15695 def get_version_info(self):
15696 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15697 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15698 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15701 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15703 def create_bounding_box_3d_singleton_score(f, bb):
15704 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15705 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15707 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15709 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15710 __repr__ = _swig_repr
15712 def __init__(self, f, sphere):
15713 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15714 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15716 def do_get_inputs(self, m, pis):
15717 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15718 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15720 def get_version_info(self):
15721 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15722 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15723 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15726 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15728 def create_bounding_sphere_3d_singleton_score(f, sphere):
15729 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15730 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15732 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15735 __repr__ = _swig_repr
15737 def __init__(self, *args):
15739 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15740 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15742 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15744 def do_get_inputs(self, m, pis):
15745 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15746 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15748 def get_version_info(self):
15749 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15750 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15751 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15753 def _get_as_binary(self):
15754 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15755 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15757 def _set_from_binary(self, p):
15758 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15759 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15761 def __getstate__(self):
15762 p = self._get_as_binary()
15763 if len(self.__dict__) > 1:
15764 d = self.__dict__.copy()
15769 def __setstate__(self, p):
15770 if not hasattr(self,
'this'):
15772 if isinstance(p, tuple):
15774 self.__dict__.update(d)
15775 return self._set_from_binary(p)
15779 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15781 def create_distance_to_singleton_score(f, pt):
15782 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
15783 return _IMP_core.create_distance_to_singleton_score(f, pt)
15787 CombineProvenance, FilterProvenance,
15788 ClusterProvenance, ScriptProvenance,
15789 SoftwareProvenance]):
15790 """Yield all provenance decorators of the given types for the particle.
15791 By default, all provenance types are returned. Provenance is returned
15792 in order, most recent first. If the particle has no provenance
15793 information, an empty generator is returned."""
15794 if Provenanced.get_is_setup(p):
15798 if c.get_is_setup(prov):
15800 prov = prov.get_previous()
15803 """Tag the given particle with the current Python script.
15804 This is a noop if the particle is already so tagged."""
15805 main = sys.modules[
'__main__']
15807 if not hasattr(main,
'__file__'):
15811 if prov.get_filename() == f:
15815 provp.set_name(
'script')
15816 prov = ScriptProvenance.setup_particle(provp, f)
15820 """Tag the given particle with the software used to create it.
15821 This is a noop if the particle is already so tagged."""
15823 if prov.get_software_name() == name
and prov.get_version() == version \
15824 and prov.get_location() == location:
15828 provp.set_name(
'software')
15829 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
15833 """Tag the given particle as being created by the current version of IMP."""
15836 location=
"https://integrativemodeling.org")
15840 r"""get_module_version() -> std::string const"""
15841 return _IMP_core.get_module_version()
15844 r"""get_example_path(std::string fname) -> std::string"""
15845 return _IMP_core.get_example_path(fname)
15848 r"""get_data_path(std::string fname) -> std::string"""
15849 return _IMP_core.get_data_path(fname)
15851 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.