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 evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3698 r"""evaluate_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3699 return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3701 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3702 r"""evaluate_indexes_scores(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3703 return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3705 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3706 r"""evaluate_indexes_delta(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3707 return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3709 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3710 r"""evaluate_if_good_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3711 return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3713 def get_version_info(self):
3714 r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3715 return _IMP_core.AngleTripletScore_get_version_info(self)
3716 __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3719 r"""__str__(AngleTripletScore self) -> std::string"""
3720 return _IMP_core.AngleTripletScore___str__(self)
3723 r"""__repr__(AngleTripletScore self) -> std::string"""
3724 return _IMP_core.AngleTripletScore___repr__(self)
3728 return _object_cast_to_AngleTripletScore(o)
3731 def _get_as_binary(self):
3732 r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3733 return _IMP_core.AngleTripletScore__get_as_binary(self)
3735 def _set_from_binary(self, p):
3736 r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3737 return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3739 def __getstate__(self):
3740 p = self._get_as_binary()
3741 if len(self.__dict__) > 1:
3742 d = self.__dict__.copy()
3747 def __setstate__(self, p):
3748 if not hasattr(self,
'this'):
3750 if isinstance(p, tuple):
3752 self.__dict__.update(d)
3753 return self._set_from_binary(p)
3757 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3758 class BallMover(MonteCarloMover):
3759 r"""Proxy of C++ IMP::core::BallMover class."""
3761 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3763 def __init__(self, *args):
3765 __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3766 __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3767 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3768 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3769 __init__(BallMover self) -> BallMover
3771 _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3773 def set_radius(self, radius):
3774 r"""set_radius(BallMover self, IMP::Float radius)"""
3775 return _IMP_core.BallMover_set_radius(self, radius)
3777 def get_radius(self):
3778 r"""get_radius(BallMover self) -> IMP::Float"""
3779 return _IMP_core.BallMover_get_radius(self)
3781 def get_version_info(self):
3782 r"""get_version_info(BallMover self) -> VersionInfo"""
3783 return _IMP_core.BallMover_get_version_info(self)
3784 __swig_destroy__ = _IMP_core.delete_BallMover
3787 r"""__str__(BallMover self) -> std::string"""
3788 return _IMP_core.BallMover___str__(self)
3791 r"""__repr__(BallMover self) -> std::string"""
3792 return _IMP_core.BallMover___repr__(self)
3796 return _object_cast_to_BallMover(o)
3799 def _get_as_binary(self):
3800 r"""_get_as_binary(BallMover self) -> PyObject *"""
3801 return _IMP_core.BallMover__get_as_binary(self)
3803 def _set_from_binary(self, p):
3804 r"""_set_from_binary(BallMover self, PyObject * p)"""
3805 return _IMP_core.BallMover__set_from_binary(self, p)
3807 def __getstate__(self):
3808 p = self._get_as_binary()
3809 if len(self.__dict__) > 1:
3810 d = self.__dict__.copy()
3815 def __setstate__(self, p):
3816 if not hasattr(self,
'this'):
3818 if isinstance(p, tuple):
3820 self.__dict__.update(d)
3821 return self._set_from_binary(p)
3825 _IMP_core.BallMover_swigregister(BallMover)
3826 class SerialMover(MonteCarloMover):
3827 r"""Proxy of C++ IMP::core::SerialMover class."""
3829 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3831 def __init__(self, *args):
3833 __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3834 __init__(SerialMover self) -> SerialMover
3836 _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3838 def get_movers(self):
3839 r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3840 return _IMP_core.SerialMover_get_movers(self)
3842 def get_version_info(self):
3843 r"""get_version_info(SerialMover self) -> VersionInfo"""
3844 return _IMP_core.SerialMover_get_version_info(self)
3845 __swig_destroy__ = _IMP_core.delete_SerialMover
3848 r"""__str__(SerialMover self) -> std::string"""
3849 return _IMP_core.SerialMover___str__(self)
3852 r"""__repr__(SerialMover self) -> std::string"""
3853 return _IMP_core.SerialMover___repr__(self)
3857 return _object_cast_to_SerialMover(o)
3860 def _get_as_binary(self):
3861 r"""_get_as_binary(SerialMover self) -> PyObject *"""
3862 return _IMP_core.SerialMover__get_as_binary(self)
3864 def _set_from_binary(self, p):
3865 r"""_set_from_binary(SerialMover self, PyObject * p)"""
3866 return _IMP_core.SerialMover__set_from_binary(self, p)
3868 def __getstate__(self):
3869 p = self._get_as_binary()
3870 if len(self.__dict__) > 1:
3871 d = self.__dict__.copy()
3876 def __setstate__(self, p):
3877 if not hasattr(self,
'this'):
3879 if isinstance(p, tuple):
3881 self.__dict__.update(d)
3882 return self._set_from_binary(p)
3886 _IMP_core.SerialMover_swigregister(SerialMover)
3887 class SubsetMover(MonteCarloMover):
3888 r"""Proxy of C++ IMP::core::SubsetMover class."""
3890 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3892 def __init__(self, *args):
3894 __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3895 __init__(SubsetMover self) -> SubsetMover
3897 _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3899 def get_movers(self):
3900 r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3901 return _IMP_core.SubsetMover_get_movers(self)
3903 def get_subset_size(self):
3904 r"""get_subset_size(SubsetMover self) -> unsigned int"""
3905 return _IMP_core.SubsetMover_get_subset_size(self)
3907 def get_version_info(self):
3908 r"""get_version_info(SubsetMover self) -> VersionInfo"""
3909 return _IMP_core.SubsetMover_get_version_info(self)
3910 __swig_destroy__ = _IMP_core.delete_SubsetMover
3913 r"""__str__(SubsetMover self) -> std::string"""
3914 return _IMP_core.SubsetMover___str__(self)
3917 r"""__repr__(SubsetMover self) -> std::string"""
3918 return _IMP_core.SubsetMover___repr__(self)
3922 return _object_cast_to_SubsetMover(o)
3925 def _get_as_binary(self):
3926 r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3927 return _IMP_core.SubsetMover__get_as_binary(self)
3929 def _set_from_binary(self, p):
3930 r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3931 return _IMP_core.SubsetMover__set_from_binary(self, p)
3933 def __getstate__(self):
3934 p = self._get_as_binary()
3935 if len(self.__dict__) > 1:
3936 d = self.__dict__.copy()
3941 def __setstate__(self, p):
3942 if not hasattr(self,
'this'):
3944 if isinstance(p, tuple):
3946 self.__dict__.update(d)
3947 return self._set_from_binary(p)
3951 _IMP_core.SubsetMover_swigregister(SubsetMover)
3952 class DirectionMover(MonteCarloMover):
3953 r"""Proxy of C++ IMP::core::DirectionMover class."""
3955 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3957 def __init__(self, *args):
3959 __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3960 __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3961 __init__(DirectionMover self) -> DirectionMover
3963 _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3965 def set_maximum_rotation(self, mr):
3966 r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3967 return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3969 def set_reflect_probability(self, rp):
3970 r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3971 return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3973 def get_maximum_rotation(self):
3974 r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3975 return _IMP_core.DirectionMover_get_maximum_rotation(self)
3977 def get_reflect_probability(self):
3978 r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3979 return _IMP_core.DirectionMover_get_reflect_probability(self)
3981 def get_direction(self):
3982 r"""get_direction(DirectionMover self) -> Direction"""
3983 return _IMP_core.DirectionMover_get_direction(self)
3985 def get_version_info(self):
3986 r"""get_version_info(DirectionMover self) -> VersionInfo"""
3987 return _IMP_core.DirectionMover_get_version_info(self)
3988 __swig_destroy__ = _IMP_core.delete_DirectionMover
3991 r"""__str__(DirectionMover self) -> std::string"""
3992 return _IMP_core.DirectionMover___str__(self)
3995 r"""__repr__(DirectionMover self) -> std::string"""
3996 return _IMP_core.DirectionMover___repr__(self)
4000 return _object_cast_to_DirectionMover(o)
4003 def _get_as_binary(self):
4004 r"""_get_as_binary(DirectionMover self) -> PyObject *"""
4005 return _IMP_core.DirectionMover__get_as_binary(self)
4007 def _set_from_binary(self, p):
4008 r"""_set_from_binary(DirectionMover self, PyObject * p)"""
4009 return _IMP_core.DirectionMover__set_from_binary(self, p)
4011 def __getstate__(self):
4012 p = self._get_as_binary()
4013 if len(self.__dict__) > 1:
4014 d = self.__dict__.copy()
4019 def __setstate__(self, p):
4020 if not hasattr(self,
'this'):
4022 if isinstance(p, tuple):
4024 self.__dict__.update(d)
4025 return self._set_from_binary(p)
4029 _IMP_core.DirectionMover_swigregister(DirectionMover)
4030 class SurfaceMover(MonteCarloMover):
4031 r"""Proxy of C++ IMP::core::SurfaceMover class."""
4033 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4035 def __init__(self, *args):
4037 __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4038 __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4039 __init__(SurfaceMover self) -> SurfaceMover
4041 _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4043 def set_maximum_translation(self, mt):
4044 r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4045 return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4047 def set_maximum_rotation(self, mr):
4048 r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4049 return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4051 def set_reflect_probability(self, rp):
4052 r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4053 return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4055 def get_maximum_translation(self):
4056 r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4057 return _IMP_core.SurfaceMover_get_maximum_translation(self)
4059 def get_maximum_rotation(self):
4060 r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4061 return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4063 def get_reflect_probability(self):
4064 r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4065 return _IMP_core.SurfaceMover_get_reflect_probability(self)
4067 def get_surface(self):
4068 r"""get_surface(SurfaceMover self) -> Surface"""
4069 return _IMP_core.SurfaceMover_get_surface(self)
4071 def get_version_info(self):
4072 r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4073 return _IMP_core.SurfaceMover_get_version_info(self)
4074 __swig_destroy__ = _IMP_core.delete_SurfaceMover
4077 r"""__str__(SurfaceMover self) -> std::string"""
4078 return _IMP_core.SurfaceMover___str__(self)
4081 r"""__repr__(SurfaceMover self) -> std::string"""
4082 return _IMP_core.SurfaceMover___repr__(self)
4086 return _object_cast_to_SurfaceMover(o)
4089 def _get_as_binary(self):
4090 r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4091 return _IMP_core.SurfaceMover__get_as_binary(self)
4093 def _set_from_binary(self, p):
4094 r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4095 return _IMP_core.SurfaceMover__set_from_binary(self, p)
4097 def __getstate__(self):
4098 p = self._get_as_binary()
4099 if len(self.__dict__) > 1:
4100 d = self.__dict__.copy()
4105 def __setstate__(self, p):
4106 if not hasattr(self,
'this'):
4108 if isinstance(p, tuple):
4110 self.__dict__.update(d)
4111 return self._set_from_binary(p)
4115 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4116 class BoxSweepClosePairsFinder(ClosePairsFinder):
4117 r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4119 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4122 r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4123 _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4125 def get_close_pairs(self, *args):
4127 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4128 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4129 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4130 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4132 return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4134 def do_get_inputs(self, m, pis):
4135 r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4136 return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4138 def get_version_info(self):
4139 r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4140 return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4141 __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4144 r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4145 return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4148 r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4149 return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4153 return _object_cast_to_BoxSweepClosePairsFinder(o)
4157 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4159 r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4161 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4163 def __init__(self, *args):
4164 r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4165 _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4167 def do_get_inputs(self, m, pis):
4168 r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4169 return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4171 def do_get_outputs(self, m, pis):
4172 r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4173 return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4175 def get_version_info(self):
4176 r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4177 return _IMP_core.CentroidOfRefined_get_version_info(self)
4178 __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4181 r"""__str__(CentroidOfRefined self) -> std::string"""
4182 return _IMP_core.CentroidOfRefined___str__(self)
4185 r"""__repr__(CentroidOfRefined self) -> std::string"""
4186 return _IMP_core.CentroidOfRefined___repr__(self)
4190 return _object_cast_to_CentroidOfRefined(o)
4194 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4195 class Centroid(XYZ):
4196 r"""Proxy of C++ IMP::core::Centroid class."""
4198 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4200 def get_constraint(self):
4201 r"""get_constraint(Centroid self) -> Constraint"""
4202 return _IMP_core.Centroid_get_constraint(self)
4204 def __init__(self, *args):
4206 __init__(Centroid self) -> Centroid
4207 __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4208 __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4210 _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4212 def show(self, *args):
4213 r"""show(Centroid self, _ostream out=std::cout)"""
4214 return _IMP_core.Centroid_show(self, *args)
4217 def setup_particle(*args):
4219 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4220 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4221 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4222 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4224 return _IMP_core.Centroid_setup_particle(*args)
4227 def get_is_setup(*args):
4229 get_is_setup(_ParticleAdaptor p) -> bool
4230 get_is_setup(Model m, ParticleIndex pi) -> bool
4232 return _IMP_core.Centroid_get_is_setup(*args)
4234 def add_attribute(self, *args):
4236 add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4237 add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4238 add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4239 add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4240 add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4241 add_attribute(Centroid self, StringKey a0, IMP::String a1)
4242 add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4243 add_attribute(Centroid self, ObjectKey a0, Object a1)
4244 add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4245 add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4246 add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4247 add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4249 return _IMP_core.Centroid_add_attribute(self, *args)
4251 def get_value(self, *args):
4253 get_value(Centroid self, FloatKey a0) -> IMP::Float
4254 get_value(Centroid self, IntKey a0) -> IMP::Int
4255 get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4256 get_value(Centroid self, IntsKey a0) -> IMP::Ints
4257 get_value(Centroid self, StringKey a0) -> IMP::String
4258 get_value(Centroid self, ParticleIndexKey a0) -> Particle
4259 get_value(Centroid self, ObjectKey a0) -> Object
4260 get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4261 get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4262 get_value(Centroid self, SparseStringKey a0) -> IMP::String
4263 get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4265 return _IMP_core.Centroid_get_value(self, *args)
4267 def set_value(self, *args):
4269 set_value(Centroid self, FloatKey a0, IMP::Float a1)
4270 set_value(Centroid self, IntKey a0, IMP::Int a1)
4271 set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4272 set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4273 set_value(Centroid self, StringKey a0, IMP::String a1)
4274 set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4275 set_value(Centroid self, ObjectKey a0, Object a1)
4276 set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4277 set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4278 set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4279 set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4281 return _IMP_core.Centroid_set_value(self, *args)
4283 def remove_attribute(self, *args):
4285 remove_attribute(Centroid self, FloatKey a0)
4286 remove_attribute(Centroid self, IntKey a0)
4287 remove_attribute(Centroid self, FloatsKey a0)
4288 remove_attribute(Centroid self, IntsKey a0)
4289 remove_attribute(Centroid self, StringKey a0)
4290 remove_attribute(Centroid self, ParticleIndexKey a0)
4291 remove_attribute(Centroid self, ObjectKey a0)
4292 remove_attribute(Centroid self, SparseFloatKey a0)
4293 remove_attribute(Centroid self, SparseIntKey a0)
4294 remove_attribute(Centroid self, SparseStringKey a0)
4295 remove_attribute(Centroid self, SparseParticleIndexKey a0)
4297 return _IMP_core.Centroid_remove_attribute(self, *args)
4299 def has_attribute(self, *args):
4301 has_attribute(Centroid self, FloatKey a0) -> bool
4302 has_attribute(Centroid self, IntKey a0) -> bool
4303 has_attribute(Centroid self, FloatsKey a0) -> bool
4304 has_attribute(Centroid self, IntsKey a0) -> bool
4305 has_attribute(Centroid self, StringKey a0) -> bool
4306 has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4307 has_attribute(Centroid self, ObjectKey a0) -> bool
4308 has_attribute(Centroid self, SparseFloatKey a0) -> bool
4309 has_attribute(Centroid self, SparseIntKey a0) -> bool
4310 has_attribute(Centroid self, SparseStringKey a0) -> bool
4311 has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4313 return _IMP_core.Centroid_has_attribute(self, *args)
4315 def get_derivative(self, a0):
4316 r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4317 return _IMP_core.Centroid_get_derivative(self, a0)
4320 r"""get_name(Centroid self) -> std::string"""
4321 return _IMP_core.Centroid_get_name(self)
4323 def clear_caches(self):
4324 r"""clear_caches(Centroid self)"""
4325 return _IMP_core.Centroid_clear_caches(self)
4327 def set_name(self, a0):
4328 r"""set_name(Centroid self, std::string a0)"""
4329 return _IMP_core.Centroid_set_name(self, a0)
4332 r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4333 return _IMP_core.Centroid_set_check_level(self, a0)
4335 def add_to_derivative(self, a0, a1, a2):
4336 r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4337 return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4339 def set_is_optimized(self, a0, a1):
4340 r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4341 return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4343 def get_is_optimized(self, a0):
4344 r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4345 return _IMP_core.Centroid_get_is_optimized(self, a0)
4348 r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4349 return _IMP_core.Centroid_get_check_level(self)
4351 def __eq__(self, *args):
4353 __eq__(Centroid self, Centroid o) -> bool
4354 __eq__(Centroid self, Particle d) -> bool
4356 return _IMP_core.Centroid___eq__(self, *args)
4358 def __ne__(self, *args):
4360 __ne__(Centroid self, Centroid o) -> bool
4361 __ne__(Centroid self, Particle d) -> bool
4363 return _IMP_core.Centroid___ne__(self, *args)
4365 def __le__(self, *args):
4367 __le__(Centroid self, Centroid o) -> bool
4368 __le__(Centroid self, Particle d) -> bool
4370 return _IMP_core.Centroid___le__(self, *args)
4372 def __lt__(self, *args):
4374 __lt__(Centroid self, Centroid o) -> bool
4375 __lt__(Centroid self, Particle d) -> bool
4377 return _IMP_core.Centroid___lt__(self, *args)
4379 def __ge__(self, *args):
4381 __ge__(Centroid self, Centroid o) -> bool
4382 __ge__(Centroid self, Particle d) -> bool
4384 return _IMP_core.Centroid___ge__(self, *args)
4386 def __gt__(self, *args):
4388 __gt__(Centroid self, Centroid o) -> bool
4389 __gt__(Centroid self, Particle d) -> bool
4391 return _IMP_core.Centroid___gt__(self, *args)
4394 r"""__hash__(Centroid self) -> std::size_t"""
4395 return _IMP_core.Centroid___hash__(self)
4398 r"""__str__(Centroid self) -> std::string"""
4399 return _IMP_core.Centroid___str__(self)
4402 r"""__repr__(Centroid self) -> std::string"""
4403 return _IMP_core.Centroid___repr__(self)
4405 def _get_as_binary(self):
4406 r"""_get_as_binary(Centroid self) -> PyObject *"""
4407 return _IMP_core.Centroid__get_as_binary(self)
4409 def _set_from_binary(self, p):
4410 r"""_set_from_binary(Centroid self, PyObject * p)"""
4411 return _IMP_core.Centroid__set_from_binary(self, p)
4413 def __getstate__(self):
4414 p = self._get_as_binary()
4415 if len(self.__dict__) > 1:
4416 d = self.__dict__.copy()
4421 def __setstate__(self, p):
4422 if not hasattr(self,
'this'):
4424 if isinstance(p, tuple):
4426 self.__dict__.update(d)
4427 return self._set_from_binary(p)
4429 __swig_destroy__ = _IMP_core.delete_Centroid
4432 _IMP_core.Centroid_swigregister(Centroid)
4434 r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4436 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4438 def __init__(self, *args):
4440 __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4441 __init__(ChecksScoreState self) -> ChecksScoreState
4443 _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4445 def get_number_of_checked(self):
4446 r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4447 return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4449 def do_before_evaluate(self):
4450 r"""do_before_evaluate(ChecksScoreState self)"""
4451 return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4453 def do_after_evaluate(self, da):
4454 r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4455 return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4457 def do_get_outputs(self):
4458 r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4459 return _IMP_core.ChecksScoreState_do_get_outputs(self)
4461 def do_get_inputs(self):
4462 r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4463 return _IMP_core.ChecksScoreState_do_get_inputs(self)
4465 def get_version_info(self):
4466 r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4467 return _IMP_core.ChecksScoreState_get_version_info(self)
4468 __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4471 r"""__str__(ChecksScoreState self) -> std::string"""
4472 return _IMP_core.ChecksScoreState___str__(self)
4475 r"""__repr__(ChecksScoreState self) -> std::string"""
4476 return _IMP_core.ChecksScoreState___repr__(self)
4480 return _object_cast_to_ChecksScoreState(o)
4483 def _get_as_binary(self):
4484 r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4485 return _IMP_core.ChecksScoreState__get_as_binary(self)
4487 def _set_from_binary(self, p):
4488 r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4489 return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4491 def __getstate__(self):
4492 p = self._get_as_binary()
4493 if len(self.__dict__) > 1:
4494 d = self.__dict__.copy()
4499 def __setstate__(self, p):
4500 if not hasattr(self,
'this'):
4502 if isinstance(p, tuple):
4504 self.__dict__.update(d)
4505 return self._set_from_binary(p)
4509 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4511 r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4513 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4515 def __init__(self, tr):
4516 r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4517 _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4519 def do_get_inputs(self, m, pis):
4520 r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4521 return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4523 def get_version_info(self):
4524 r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4525 return _IMP_core.ChildrenRefiner_get_version_info(self)
4526 __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4529 r"""__str__(ChildrenRefiner self) -> std::string"""
4530 return _IMP_core.ChildrenRefiner___str__(self)
4533 r"""__repr__(ChildrenRefiner self) -> std::string"""
4534 return _IMP_core.ChildrenRefiner___repr__(self)
4538 return _object_cast_to_ChildrenRefiner(o)
4542 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4544 r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4546 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4548 def __init__(self, values, minrange, spacing):
4549 r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4550 _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4552 def get_version_info(self):
4553 r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4554 return _IMP_core.ClosedCubicSpline_get_version_info(self)
4555 __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4557 def do_show(self, out):
4558 r"""do_show(ClosedCubicSpline self, _ostream out)"""
4559 return _IMP_core.ClosedCubicSpline_do_show(self, out)
4562 r"""__str__(ClosedCubicSpline self) -> std::string"""
4563 return _IMP_core.ClosedCubicSpline___str__(self)
4566 r"""__repr__(ClosedCubicSpline self) -> std::string"""
4567 return _IMP_core.ClosedCubicSpline___repr__(self)
4571 return _object_cast_to_ClosedCubicSpline(o)
4575 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4577 r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4579 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4581 def __init__(self, f, r, k=1):
4582 r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4583 _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4585 def get_close_pairs(self, pp):
4586 r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4587 return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4589 def create_current_decomposition(self, m, vt):
4590 r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4591 return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4593 def do_get_inputs(self, m, pis):
4594 r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4595 return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4597 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4598 r"""evaluate_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4599 return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4601 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4602 r"""evaluate_indexes_scores(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4603 return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4605 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4606 r"""evaluate_indexes_delta(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4607 return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4609 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4610 r"""evaluate_if_good_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4611 return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4613 def get_version_info(self):
4614 r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4615 return _IMP_core.KClosePairsPairScore_get_version_info(self)
4616 __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4619 r"""__str__(KClosePairsPairScore self) -> std::string"""
4620 return _IMP_core.KClosePairsPairScore___str__(self)
4623 r"""__repr__(KClosePairsPairScore self) -> std::string"""
4624 return _IMP_core.KClosePairsPairScore___repr__(self)
4628 return _object_cast_to_KClosePairsPairScore(o)
4632 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4634 r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4636 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4638 def __init__(self, f, r, max_distance):
4639 r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4640 _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4642 def get_close_pairs(self, pp):
4643 r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4644 return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4646 def create_current_decomposition(self, m, vt):
4647 r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4648 return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4650 def do_get_inputs(self, m, pis):
4651 r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4652 return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4654 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4655 r"""evaluate_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4656 return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4658 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4659 r"""evaluate_indexes_scores(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4660 return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4662 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4663 r"""evaluate_indexes_delta(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4664 return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4666 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4667 r"""evaluate_if_good_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4668 return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4670 def get_version_info(self):
4671 r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4672 return _IMP_core.ClosePairsPairScore_get_version_info(self)
4673 __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4676 r"""__str__(ClosePairsPairScore self) -> std::string"""
4677 return _IMP_core.ClosePairsPairScore___str__(self)
4680 r"""__repr__(ClosePairsPairScore self) -> std::string"""
4681 return _IMP_core.ClosePairsPairScore___repr__(self)
4685 return _object_cast_to_ClosePairsPairScore(o)
4689 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4691 r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4693 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4695 def __init__(self, *args):
4697 __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4698 __init__(ConjugateGradients self) -> ConjugateGradients
4700 _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4702 def set_gradient_threshold(self, t):
4703 r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4704 return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4706 def set_max_change(self, t):
4707 r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4708 return _IMP_core.ConjugateGradients_set_max_change(self, t)
4710 def do_optimize(self, max_steps):
4711 r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4712 return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4714 def get_version_info(self):
4715 r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4716 return _IMP_core.ConjugateGradients_get_version_info(self)
4717 __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4720 r"""__str__(ConjugateGradients self) -> std::string"""
4721 return _IMP_core.ConjugateGradients___str__(self)
4724 r"""__repr__(ConjugateGradients self) -> std::string"""
4725 return _IMP_core.ConjugateGradients___repr__(self)
4729 return _object_cast_to_ConjugateGradients(o)
4732 def _get_as_binary(self):
4733 r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4734 return _IMP_core.ConjugateGradients__get_as_binary(self)
4736 def _set_from_binary(self, p):
4737 r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4738 return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4740 def __getstate__(self):
4741 p = self._get_as_binary()
4742 if len(self.__dict__) > 1:
4743 d = self.__dict__.copy()
4748 def __setstate__(self, p):
4749 if not hasattr(self,
'this'):
4751 if isinstance(p, tuple):
4753 self.__dict__.update(d)
4754 return self._set_from_binary(p)
4758 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4760 r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4762 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4764 def __init__(self, ps, sc):
4765 r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4766 _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4768 def get_connected_index_pairs(self):
4769 r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4770 return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4772 def get_pair_score(self):
4773 r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4774 return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4776 def do_create_current_decomposition(self):
4777 r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4778 return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4780 def do_get_inputs(self):
4781 r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4782 return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4784 def get_version_info(self):
4785 r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4786 return _IMP_core.ConnectivityRestraint_get_version_info(self)
4787 __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4790 r"""__str__(ConnectivityRestraint self) -> std::string"""
4791 return _IMP_core.ConnectivityRestraint___str__(self)
4794 r"""__repr__(ConnectivityRestraint self) -> std::string"""
4795 return _IMP_core.ConnectivityRestraint___repr__(self)
4799 return _object_cast_to_ConnectivityRestraint(o)
4803 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4805 r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4807 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4809 def __init__(self, *args):
4811 __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4812 __init__(ConstantRestraint self) -> ConstantRestraint
4814 _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4816 def do_get_inputs(self):
4817 r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4818 return _IMP_core.ConstantRestraint_do_get_inputs(self)
4820 def get_version_info(self):
4821 r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4822 return _IMP_core.ConstantRestraint_get_version_info(self)
4823 __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4826 r"""__str__(ConstantRestraint self) -> std::string"""
4827 return _IMP_core.ConstantRestraint___str__(self)
4830 r"""__repr__(ConstantRestraint self) -> std::string"""
4831 return _IMP_core.ConstantRestraint___repr__(self)
4835 return _object_cast_to_ConstantRestraint(o)
4838 def _get_as_binary(self):
4839 r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4840 return _IMP_core.ConstantRestraint__get_as_binary(self)
4842 def _set_from_binary(self, p):
4843 r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4844 return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4846 def __getstate__(self):
4847 p = self._get_as_binary()
4848 if len(self.__dict__) > 1:
4849 d = self.__dict__.copy()
4854 def __setstate__(self, p):
4855 if not hasattr(self,
'this'):
4857 if isinstance(p, tuple):
4859 self.__dict__.update(d)
4860 return self._set_from_binary(p)
4864 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4866 r"""Proxy of C++ IMP::core::Cosine class."""
4868 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4870 def __init__(self, *args):
4872 __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4873 __init__(Cosine self) -> Cosine
4875 _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4877 def get_version_info(self):
4878 r"""get_version_info(Cosine self) -> VersionInfo"""
4879 return _IMP_core.Cosine_get_version_info(self)
4880 __swig_destroy__ = _IMP_core.delete_Cosine
4882 def do_show(self, out):
4883 r"""do_show(Cosine self, _ostream out)"""
4884 return _IMP_core.Cosine_do_show(self, out)
4887 r"""__str__(Cosine self) -> std::string"""
4888 return _IMP_core.Cosine___str__(self)
4891 r"""__repr__(Cosine self) -> std::string"""
4892 return _IMP_core.Cosine___repr__(self)
4896 return _object_cast_to_Cosine(o)
4899 def _get_as_binary(self):
4900 r"""_get_as_binary(Cosine self) -> PyObject *"""
4901 return _IMP_core.Cosine__get_as_binary(self)
4903 def _set_from_binary(self, p):
4904 r"""_set_from_binary(Cosine self, PyObject * p)"""
4905 return _IMP_core.Cosine__set_from_binary(self, p)
4907 def __getstate__(self):
4908 p = self._get_as_binary()
4909 if len(self.__dict__) > 1:
4910 d = self.__dict__.copy()
4915 def __setstate__(self, p):
4916 if not hasattr(self,
'this'):
4918 if isinstance(p, tuple):
4920 self.__dict__.update(d)
4921 return self._set_from_binary(p)
4925 _IMP_core.Cosine_swigregister(Cosine)
4927 r"""Proxy of C++ IMP::core::CoverRefined class."""
4929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4931 def __init__(self, ref, slack=0):
4932 r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4933 _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4935 def set_slack(self, slack):
4936 r"""set_slack(CoverRefined self, IMP::Float slack)"""
4937 return _IMP_core.CoverRefined_set_slack(self, slack)
4939 def do_get_inputs(self, m, pis):
4940 r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4941 return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4943 def do_get_outputs(self, m, pis):
4944 r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4945 return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4947 def get_version_info(self):
4948 r"""get_version_info(CoverRefined self) -> VersionInfo"""
4949 return _IMP_core.CoverRefined_get_version_info(self)
4950 __swig_destroy__ = _IMP_core.delete_CoverRefined
4953 r"""__str__(CoverRefined self) -> std::string"""
4954 return _IMP_core.CoverRefined___str__(self)
4957 r"""__repr__(CoverRefined self) -> std::string"""
4958 return _IMP_core.CoverRefined___repr__(self)
4962 return _object_cast_to_CoverRefined(o)
4966 _IMP_core.CoverRefined_swigregister(CoverRefined)
4968 r"""Proxy of C++ IMP::core::Cover class."""
4970 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4972 def get_constraint(self):
4973 r"""get_constraint(Cover self) -> Constraint"""
4974 return _IMP_core.Cover_get_constraint(self)
4976 def __init__(self, *args):
4978 __init__(Cover self) -> Cover
4979 __init__(Cover self, Model m, ParticleIndex id) -> Cover
4980 __init__(Cover self, _ParticleAdaptor d) -> Cover
4982 _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4984 def show(self, *args):
4985 r"""show(Cover self, _ostream out=std::cout)"""
4986 return _IMP_core.Cover_show(self, *args)
4989 def setup_particle(*args):
4991 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4992 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4993 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4994 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4996 return _IMP_core.Cover_setup_particle(*args)
4999 def get_is_setup(*args):
5001 get_is_setup(_ParticleAdaptor p) -> bool
5002 get_is_setup(Model m, ParticleIndex pi) -> bool
5004 return _IMP_core.Cover_get_is_setup(*args)
5006 def add_attribute(self, *args):
5008 add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
5009 add_attribute(Cover self, FloatKey a0, IMP::Float a1)
5010 add_attribute(Cover self, IntKey a0, IMP::Int a1)
5011 add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
5012 add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
5013 add_attribute(Cover self, StringKey a0, IMP::String a1)
5014 add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
5015 add_attribute(Cover self, ObjectKey a0, Object a1)
5016 add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5017 add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5018 add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5019 add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5021 return _IMP_core.Cover_add_attribute(self, *args)
5023 def get_value(self, *args):
5025 get_value(Cover self, FloatKey a0) -> IMP::Float
5026 get_value(Cover self, IntKey a0) -> IMP::Int
5027 get_value(Cover self, FloatsKey a0) -> IMP::Floats
5028 get_value(Cover self, IntsKey a0) -> IMP::Ints
5029 get_value(Cover self, StringKey a0) -> IMP::String
5030 get_value(Cover self, ParticleIndexKey a0) -> Particle
5031 get_value(Cover self, ObjectKey a0) -> Object
5032 get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5033 get_value(Cover self, SparseIntKey a0) -> IMP::Int
5034 get_value(Cover self, SparseStringKey a0) -> IMP::String
5035 get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5037 return _IMP_core.Cover_get_value(self, *args)
5039 def set_value(self, *args):
5041 set_value(Cover self, FloatKey a0, IMP::Float a1)
5042 set_value(Cover self, IntKey a0, IMP::Int a1)
5043 set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5044 set_value(Cover self, IntsKey a0, IMP::Ints a1)
5045 set_value(Cover self, StringKey a0, IMP::String a1)
5046 set_value(Cover self, ParticleIndexKey a0, Particle a1)
5047 set_value(Cover self, ObjectKey a0, Object a1)
5048 set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5049 set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5050 set_value(Cover self, SparseStringKey a0, IMP::String a1)
5051 set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5053 return _IMP_core.Cover_set_value(self, *args)
5055 def remove_attribute(self, *args):
5057 remove_attribute(Cover self, FloatKey a0)
5058 remove_attribute(Cover self, IntKey a0)
5059 remove_attribute(Cover self, FloatsKey a0)
5060 remove_attribute(Cover self, IntsKey a0)
5061 remove_attribute(Cover self, StringKey a0)
5062 remove_attribute(Cover self, ParticleIndexKey a0)
5063 remove_attribute(Cover self, ObjectKey a0)
5064 remove_attribute(Cover self, SparseFloatKey a0)
5065 remove_attribute(Cover self, SparseIntKey a0)
5066 remove_attribute(Cover self, SparseStringKey a0)
5067 remove_attribute(Cover self, SparseParticleIndexKey a0)
5069 return _IMP_core.Cover_remove_attribute(self, *args)
5071 def has_attribute(self, *args):
5073 has_attribute(Cover self, FloatKey a0) -> bool
5074 has_attribute(Cover self, IntKey a0) -> bool
5075 has_attribute(Cover self, FloatsKey a0) -> bool
5076 has_attribute(Cover self, IntsKey a0) -> bool
5077 has_attribute(Cover self, StringKey a0) -> bool
5078 has_attribute(Cover self, ParticleIndexKey a0) -> bool
5079 has_attribute(Cover self, ObjectKey a0) -> bool
5080 has_attribute(Cover self, SparseFloatKey a0) -> bool
5081 has_attribute(Cover self, SparseIntKey a0) -> bool
5082 has_attribute(Cover self, SparseStringKey a0) -> bool
5083 has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5085 return _IMP_core.Cover_has_attribute(self, *args)
5087 def get_derivative(self, a0):
5088 r"""get_derivative(Cover self, FloatKey a0) -> double"""
5089 return _IMP_core.Cover_get_derivative(self, a0)
5092 r"""get_name(Cover self) -> std::string"""
5093 return _IMP_core.Cover_get_name(self)
5095 def clear_caches(self):
5096 r"""clear_caches(Cover self)"""
5097 return _IMP_core.Cover_clear_caches(self)
5099 def set_name(self, a0):
5100 r"""set_name(Cover self, std::string a0)"""
5101 return _IMP_core.Cover_set_name(self, a0)
5104 r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5105 return _IMP_core.Cover_set_check_level(self, a0)
5107 def add_to_derivative(self, a0, a1, a2):
5108 r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5109 return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5111 def set_is_optimized(self, a0, a1):
5112 r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5113 return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5115 def get_is_optimized(self, a0):
5116 r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5117 return _IMP_core.Cover_get_is_optimized(self, a0)
5120 r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5121 return _IMP_core.Cover_get_check_level(self)
5123 def __eq__(self, *args):
5125 __eq__(Cover self, Cover o) -> bool
5126 __eq__(Cover self, Particle d) -> bool
5128 return _IMP_core.Cover___eq__(self, *args)
5130 def __ne__(self, *args):
5132 __ne__(Cover self, Cover o) -> bool
5133 __ne__(Cover self, Particle d) -> bool
5135 return _IMP_core.Cover___ne__(self, *args)
5137 def __le__(self, *args):
5139 __le__(Cover self, Cover o) -> bool
5140 __le__(Cover self, Particle d) -> bool
5142 return _IMP_core.Cover___le__(self, *args)
5144 def __lt__(self, *args):
5146 __lt__(Cover self, Cover o) -> bool
5147 __lt__(Cover self, Particle d) -> bool
5149 return _IMP_core.Cover___lt__(self, *args)
5151 def __ge__(self, *args):
5153 __ge__(Cover self, Cover o) -> bool
5154 __ge__(Cover self, Particle d) -> bool
5156 return _IMP_core.Cover___ge__(self, *args)
5158 def __gt__(self, *args):
5160 __gt__(Cover self, Cover o) -> bool
5161 __gt__(Cover self, Particle d) -> bool
5163 return _IMP_core.Cover___gt__(self, *args)
5166 r"""__hash__(Cover self) -> std::size_t"""
5167 return _IMP_core.Cover___hash__(self)
5170 r"""__str__(Cover self) -> std::string"""
5171 return _IMP_core.Cover___str__(self)
5174 r"""__repr__(Cover self) -> std::string"""
5175 return _IMP_core.Cover___repr__(self)
5177 def _get_as_binary(self):
5178 r"""_get_as_binary(Cover self) -> PyObject *"""
5179 return _IMP_core.Cover__get_as_binary(self)
5181 def _set_from_binary(self, p):
5182 r"""_set_from_binary(Cover self, PyObject * p)"""
5183 return _IMP_core.Cover__set_from_binary(self, p)
5185 def __getstate__(self):
5186 p = self._get_as_binary()
5187 if len(self.__dict__) > 1:
5188 d = self.__dict__.copy()
5193 def __setstate__(self, p):
5194 if not hasattr(self,
'this'):
5196 if isinstance(p, tuple):
5198 self.__dict__.update(d)
5199 return self._set_from_binary(p)
5201 __swig_destroy__ = _IMP_core.delete_Cover
5204 _IMP_core.Cover_swigregister(Cover)
5206 r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5208 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5210 def __init__(self, *args):
5211 r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5212 _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5214 def do_get_inputs(self, m, pis):
5215 r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5216 return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5218 def do_get_outputs(self, m, pis):
5219 r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5220 return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5222 def get_version_info(self):
5223 r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5224 return _IMP_core.DerivativesFromRefined_get_version_info(self)
5225 __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5228 r"""__str__(DerivativesFromRefined self) -> std::string"""
5229 return _IMP_core.DerivativesFromRefined___str__(self)
5232 r"""__repr__(DerivativesFromRefined self) -> std::string"""
5233 return _IMP_core.DerivativesFromRefined___repr__(self)
5237 return _object_cast_to_DerivativesFromRefined(o)
5241 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5243 r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5245 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5247 def __init__(self, *args):
5248 r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5249 _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5251 def do_get_inputs(self, m, pis):
5252 r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5253 return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5255 def do_get_outputs(self, m, pis):
5256 r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5257 return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5259 def get_version_info(self):
5260 r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5261 return _IMP_core.DerivativesToRefined_get_version_info(self)
5262 __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5265 r"""__str__(DerivativesToRefined self) -> std::string"""
5266 return _IMP_core.DerivativesToRefined___str__(self)
5269 r"""__repr__(DerivativesToRefined self) -> std::string"""
5270 return _IMP_core.DerivativesToRefined___repr__(self)
5274 return _object_cast_to_DerivativesToRefined(o)
5278 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5280 r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5282 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5284 def __init__(self, f, sc, diameter):
5285 r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5286 _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5288 def do_get_inputs(self):
5289 r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5290 return _IMP_core.DiameterRestraint_do_get_inputs(self)
5292 def get_version_info(self):
5293 r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5294 return _IMP_core.DiameterRestraint_get_version_info(self)
5295 __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5297 def do_create_decomposition(self):
5298 r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5299 return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5301 def do_create_current_decomposition(self):
5302 r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5303 return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5306 r"""__str__(DiameterRestraint self) -> std::string"""
5307 return _IMP_core.DiameterRestraint___str__(self)
5310 r"""__repr__(DiameterRestraint self) -> std::string"""
5311 return _IMP_core.DiameterRestraint___repr__(self)
5315 return _object_cast_to_DiameterRestraint(o)
5319 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5321 r"""Proxy of C++ IMP::core::Transform class."""
5323 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5325 def __init__(self, *args):
5327 __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5328 __init__(Transform self) -> Transform
5330 _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5332 def do_get_inputs(self, m, pis):
5333 r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5334 return _IMP_core.Transform_do_get_inputs(self, m, pis)
5336 def do_get_outputs(self, m, pis):
5337 r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5338 return _IMP_core.Transform_do_get_outputs(self, m, pis)
5340 def get_version_info(self):
5341 r"""get_version_info(Transform self) -> VersionInfo"""
5342 return _IMP_core.Transform_get_version_info(self)
5343 __swig_destroy__ = _IMP_core.delete_Transform
5346 r"""__str__(Transform self) -> std::string"""
5347 return _IMP_core.Transform___str__(self)
5350 r"""__repr__(Transform self) -> std::string"""
5351 return _IMP_core.Transform___repr__(self)
5355 return _object_cast_to_Transform(o)
5358 def _get_as_binary(self):
5359 r"""_get_as_binary(Transform self) -> PyObject *"""
5360 return _IMP_core.Transform__get_as_binary(self)
5362 def _set_from_binary(self, p):
5363 r"""_set_from_binary(Transform self, PyObject * p)"""
5364 return _IMP_core.Transform__set_from_binary(self, p)
5366 def __getstate__(self):
5367 p = self._get_as_binary()
5368 if len(self.__dict__) > 1:
5369 d = self.__dict__.copy()
5374 def __setstate__(self, p):
5375 if not hasattr(self,
'this'):
5377 if isinstance(p, tuple):
5379 self.__dict__.update(d)
5380 return self._set_from_binary(p)
5384 _IMP_core.Transform_swigregister(Transform)
5386 r"""Proxy of C++ IMP::core::Reference class."""
5388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5390 def __init__(self, *args):
5392 __init__(Reference self) -> Reference
5393 __init__(Reference self, Model m, ParticleIndex id) -> Reference
5394 __init__(Reference self, _ParticleAdaptor d) -> Reference
5396 _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5398 def show(self, *args):
5399 r"""show(Reference self, _ostream out=std::cout)"""
5400 return _IMP_core.Reference_show(self, *args)
5403 def setup_particle(*args):
5405 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5406 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5408 return _IMP_core.Reference_setup_particle(*args)
5410 def get_reference_particle(self):
5411 r"""get_reference_particle(Reference self) -> Particle"""
5412 return _IMP_core.Reference_get_reference_particle(self)
5415 def get_is_setup(*args):
5417 get_is_setup(_ParticleAdaptor p) -> bool
5418 get_is_setup(Model m, ParticleIndex pi) -> bool
5420 return _IMP_core.Reference_get_is_setup(*args)
5423 def get_reference_key():
5424 r"""get_reference_key() -> ParticleIndexKey"""
5425 return _IMP_core.Reference_get_reference_key()
5427 def add_attribute(self, *args):
5429 add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5430 add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5431 add_attribute(Reference self, IntKey a0, IMP::Int a1)
5432 add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5433 add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5434 add_attribute(Reference self, StringKey a0, IMP::String a1)
5435 add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5436 add_attribute(Reference self, ObjectKey a0, Object a1)
5437 add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5438 add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5439 add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5440 add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5442 return _IMP_core.Reference_add_attribute(self, *args)
5444 def get_value(self, *args):
5446 get_value(Reference self, FloatKey a0) -> IMP::Float
5447 get_value(Reference self, IntKey a0) -> IMP::Int
5448 get_value(Reference self, FloatsKey a0) -> IMP::Floats
5449 get_value(Reference self, IntsKey a0) -> IMP::Ints
5450 get_value(Reference self, StringKey a0) -> IMP::String
5451 get_value(Reference self, ParticleIndexKey a0) -> Particle
5452 get_value(Reference self, ObjectKey a0) -> Object
5453 get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5454 get_value(Reference self, SparseIntKey a0) -> IMP::Int
5455 get_value(Reference self, SparseStringKey a0) -> IMP::String
5456 get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5458 return _IMP_core.Reference_get_value(self, *args)
5460 def set_value(self, *args):
5462 set_value(Reference self, FloatKey a0, IMP::Float a1)
5463 set_value(Reference self, IntKey a0, IMP::Int a1)
5464 set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5465 set_value(Reference self, IntsKey a0, IMP::Ints a1)
5466 set_value(Reference self, StringKey a0, IMP::String a1)
5467 set_value(Reference self, ParticleIndexKey a0, Particle a1)
5468 set_value(Reference self, ObjectKey a0, Object a1)
5469 set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5470 set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5471 set_value(Reference self, SparseStringKey a0, IMP::String a1)
5472 set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5474 return _IMP_core.Reference_set_value(self, *args)
5476 def remove_attribute(self, *args):
5478 remove_attribute(Reference self, FloatKey a0)
5479 remove_attribute(Reference self, IntKey a0)
5480 remove_attribute(Reference self, FloatsKey a0)
5481 remove_attribute(Reference self, IntsKey a0)
5482 remove_attribute(Reference self, StringKey a0)
5483 remove_attribute(Reference self, ParticleIndexKey a0)
5484 remove_attribute(Reference self, ObjectKey a0)
5485 remove_attribute(Reference self, SparseFloatKey a0)
5486 remove_attribute(Reference self, SparseIntKey a0)
5487 remove_attribute(Reference self, SparseStringKey a0)
5488 remove_attribute(Reference self, SparseParticleIndexKey a0)
5490 return _IMP_core.Reference_remove_attribute(self, *args)
5492 def has_attribute(self, *args):
5494 has_attribute(Reference self, FloatKey a0) -> bool
5495 has_attribute(Reference self, IntKey a0) -> bool
5496 has_attribute(Reference self, FloatsKey a0) -> bool
5497 has_attribute(Reference self, IntsKey a0) -> bool
5498 has_attribute(Reference self, StringKey a0) -> bool
5499 has_attribute(Reference self, ParticleIndexKey a0) -> bool
5500 has_attribute(Reference self, ObjectKey a0) -> bool
5501 has_attribute(Reference self, SparseFloatKey a0) -> bool
5502 has_attribute(Reference self, SparseIntKey a0) -> bool
5503 has_attribute(Reference self, SparseStringKey a0) -> bool
5504 has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5506 return _IMP_core.Reference_has_attribute(self, *args)
5508 def get_derivative(self, a0):
5509 r"""get_derivative(Reference self, FloatKey a0) -> double"""
5510 return _IMP_core.Reference_get_derivative(self, a0)
5513 r"""get_name(Reference self) -> std::string"""
5514 return _IMP_core.Reference_get_name(self)
5516 def clear_caches(self):
5517 r"""clear_caches(Reference self)"""
5518 return _IMP_core.Reference_clear_caches(self)
5520 def set_name(self, a0):
5521 r"""set_name(Reference self, std::string a0)"""
5522 return _IMP_core.Reference_set_name(self, a0)
5525 r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5526 return _IMP_core.Reference_set_check_level(self, a0)
5528 def add_to_derivative(self, a0, a1, a2):
5529 r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5530 return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5532 def set_is_optimized(self, a0, a1):
5533 r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5534 return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5536 def get_is_optimized(self, a0):
5537 r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5538 return _IMP_core.Reference_get_is_optimized(self, a0)
5541 r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5542 return _IMP_core.Reference_get_check_level(self)
5544 def __eq__(self, *args):
5546 __eq__(Reference self, Reference o) -> bool
5547 __eq__(Reference self, Particle d) -> bool
5549 return _IMP_core.Reference___eq__(self, *args)
5551 def __ne__(self, *args):
5553 __ne__(Reference self, Reference o) -> bool
5554 __ne__(Reference self, Particle d) -> bool
5556 return _IMP_core.Reference___ne__(self, *args)
5558 def __le__(self, *args):
5560 __le__(Reference self, Reference o) -> bool
5561 __le__(Reference self, Particle d) -> bool
5563 return _IMP_core.Reference___le__(self, *args)
5565 def __lt__(self, *args):
5567 __lt__(Reference self, Reference o) -> bool
5568 __lt__(Reference self, Particle d) -> bool
5570 return _IMP_core.Reference___lt__(self, *args)
5572 def __ge__(self, *args):
5574 __ge__(Reference self, Reference o) -> bool
5575 __ge__(Reference self, Particle d) -> bool
5577 return _IMP_core.Reference___ge__(self, *args)
5579 def __gt__(self, *args):
5581 __gt__(Reference self, Reference o) -> bool
5582 __gt__(Reference self, Particle d) -> bool
5584 return _IMP_core.Reference___gt__(self, *args)
5587 r"""__hash__(Reference self) -> std::size_t"""
5588 return _IMP_core.Reference___hash__(self)
5591 r"""__str__(Reference self) -> std::string"""
5592 return _IMP_core.Reference___str__(self)
5595 r"""__repr__(Reference self) -> std::string"""
5596 return _IMP_core.Reference___repr__(self)
5598 def _get_as_binary(self):
5599 r"""_get_as_binary(Reference self) -> PyObject *"""
5600 return _IMP_core.Reference__get_as_binary(self)
5602 def _set_from_binary(self, p):
5603 r"""_set_from_binary(Reference self, PyObject * p)"""
5604 return _IMP_core.Reference__set_from_binary(self, p)
5606 def __getstate__(self):
5607 p = self._get_as_binary()
5608 if len(self.__dict__) > 1:
5609 d = self.__dict__.copy()
5614 def __setstate__(self, p):
5615 if not hasattr(self,
'this'):
5617 if isinstance(p, tuple):
5619 self.__dict__.update(d)
5620 return self._set_from_binary(p)
5622 __swig_destroy__ = _IMP_core.delete_Reference
5625 _IMP_core.Reference_swigregister(Reference)
5627 r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5629 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5631 def __init__(self, t, r):
5632 r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5633 _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5635 def do_get_inputs(self, m, pis):
5636 r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5637 return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5639 def do_get_outputs(self, m, pis):
5640 r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5641 return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5643 def get_version_info(self):
5644 r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5645 return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5646 __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5649 r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5650 return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5653 r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5654 return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5658 return _object_cast_to_TransformationAndReflectionSymmetry(o)
5662 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5664 r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5666 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5668 def __init__(self, *args):
5670 __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5671 __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5673 _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5675 def get_transformation(self):
5676 r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5677 return _IMP_core.TransformationSymmetry_get_transformation(self)
5679 def set_transformation(self, t):
5680 r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5681 return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5683 def do_get_inputs(self, m, pis):
5684 r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5685 return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5687 def do_get_outputs(self, m, pis):
5688 r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5689 return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5691 def get_version_info(self):
5692 r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5693 return _IMP_core.TransformationSymmetry_get_version_info(self)
5694 __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5697 r"""__str__(TransformationSymmetry self) -> std::string"""
5698 return _IMP_core.TransformationSymmetry___str__(self)
5701 r"""__repr__(TransformationSymmetry self) -> std::string"""
5702 return _IMP_core.TransformationSymmetry___repr__(self)
5706 return _object_cast_to_TransformationSymmetry(o)
5710 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5711 class TransformationSymmetryMover(MonteCarloMover):
5712 r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5714 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5716 def __init__(self, m, symm, pivot, max_translation, max_rotation):
5717 r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5718 _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5720 def set_maximum_translation(self, mt):
5721 r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5722 return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5724 def set_maximum_rotation(self, mr):
5725 r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5726 return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5728 def get_maximum_translation(self):
5729 r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5730 return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5732 def get_maximum_rotation(self):
5733 r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5734 return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5736 def get_version_info(self):
5737 r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5738 return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5739 __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5742 r"""__str__(TransformationSymmetryMover self) -> std::string"""
5743 return _IMP_core.TransformationSymmetryMover___str__(self)
5746 r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5747 return _IMP_core.TransformationSymmetryMover___repr__(self)
5751 return _object_cast_to_TransformationSymmetryMover(o)
5755 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5757 r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5759 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5761 def __init__(self, m, score_func, p1, p2, p3, p4):
5762 r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5763 _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5765 def do_get_inputs(self):
5766 r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5767 return _IMP_core.DihedralRestraint_do_get_inputs(self)
5769 def get_version_info(self):
5770 r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5771 return _IMP_core.DihedralRestraint_get_version_info(self)
5772 __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5775 r"""__str__(DihedralRestraint self) -> std::string"""
5776 return _IMP_core.DihedralRestraint___str__(self)
5779 r"""__repr__(DihedralRestraint self) -> std::string"""
5780 return _IMP_core.DihedralRestraint___repr__(self)
5784 return _object_cast_to_DihedralRestraint(o)
5788 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5790 r"""Proxy of C++ IMP::core::DistancePairScore class."""
5792 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5794 def __init__(self, *args):
5796 __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5797 __init__(DistancePairScore self) -> DistancePairScore
5799 _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5801 def do_get_inputs(self, m, pis):
5802 r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5803 return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5805 def get_version_info(self):
5806 r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5807 return _IMP_core.DistancePairScore_get_version_info(self)
5808 __swig_destroy__ = _IMP_core.delete_DistancePairScore
5811 r"""__str__(DistancePairScore self) -> std::string"""
5812 return _IMP_core.DistancePairScore___str__(self)
5815 r"""__repr__(DistancePairScore self) -> std::string"""
5816 return _IMP_core.DistancePairScore___repr__(self)
5820 return _object_cast_to_DistancePairScore(o)
5823 def _get_as_binary(self):
5824 r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5825 return _IMP_core.DistancePairScore__get_as_binary(self)
5827 def _set_from_binary(self, p):
5828 r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5829 return _IMP_core.DistancePairScore__set_from_binary(self, p)
5831 def __getstate__(self):
5832 p = self._get_as_binary()
5833 if len(self.__dict__) > 1:
5834 d = self.__dict__.copy()
5839 def __setstate__(self, p):
5840 if not hasattr(self,
'this'):
5842 if isinstance(p, tuple):
5844 self.__dict__.update(d)
5845 return self._set_from_binary(p)
5849 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5851 r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5855 def __init__(self, *args):
5857 __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5858 __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5860 _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5862 def do_get_inputs(self, m, pis):
5863 r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5864 return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5866 def get_version_info(self):
5867 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5868 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5869 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5872 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5873 return _IMP_core.HarmonicDistancePairScore___str__(self)
5876 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5877 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5881 return _object_cast_to_HarmonicDistancePairScore(o)
5884 def _get_as_binary(self):
5885 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5886 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5888 def _set_from_binary(self, p):
5889 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5890 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5892 def __getstate__(self):
5893 p = self._get_as_binary()
5894 if len(self.__dict__) > 1:
5895 d = self.__dict__.copy()
5900 def __setstate__(self, p):
5901 if not hasattr(self,
'this'):
5903 if isinstance(p, tuple):
5905 self.__dict__.update(d)
5906 return self._set_from_binary(p)
5910 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5912 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5914 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5916 def __init__(self, *args):
5918 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5919 __init__(DistanceRestraint self) -> DistanceRestraint
5921 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5923 def get_version_info(self):
5924 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5925 return _IMP_core.DistanceRestraint_get_version_info(self)
5926 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5929 r"""__str__(DistanceRestraint self) -> std::string"""
5930 return _IMP_core.DistanceRestraint___str__(self)
5933 r"""__repr__(DistanceRestraint self) -> std::string"""
5934 return _IMP_core.DistanceRestraint___repr__(self)
5938 return _object_cast_to_DistanceRestraint(o)
5941 def _get_as_binary(self):
5942 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5943 return _IMP_core.DistanceRestraint__get_as_binary(self)
5945 def _set_from_binary(self, p):
5946 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5947 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5949 def __getstate__(self):
5950 p = self._get_as_binary()
5951 if len(self.__dict__) > 1:
5952 d = self.__dict__.copy()
5957 def __setstate__(self, p):
5958 if not hasattr(self,
'this'):
5960 if isinstance(p, tuple):
5962 self.__dict__.update(d)
5963 return self._set_from_binary(p)
5967 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5969 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5971 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5973 def __init__(self, f, pt):
5974 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5975 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5977 def do_get_inputs(self, m, pis):
5978 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5979 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5981 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5982 r"""evaluate_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5983 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5985 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5986 r"""evaluate_indexes_scores(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5987 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5989 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5990 r"""evaluate_indexes_delta(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5991 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5993 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
5994 r"""evaluate_if_good_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5995 return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
5997 def get_version_info(self):
5998 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5999 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6000 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6003 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6004 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6007 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6008 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6012 return _object_cast_to_SphereDistanceToSingletonScore(o)
6016 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6018 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6020 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6022 def __init__(self, *args):
6023 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6024 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6026 def do_get_inputs(self):
6027 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6028 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6030 def get_version_info(self):
6031 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6032 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6033 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6035 def do_create_decomposition(self):
6036 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6037 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6039 def do_create_current_decomposition(self):
6040 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6041 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6044 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6045 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6046 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)
6047 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6048 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6049 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
6051 def remove_pair_filter(self, d):
6052 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6053 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6055 def _python_index_pair_filter(self, d, start, stop):
6056 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6057 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6059 def remove_pair_filters(self, d):
6060 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6061 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6063 def set_pair_filters(self, ps):
6064 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6065 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6067 def set_pair_filters_order(self, objs):
6068 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6069 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6071 def add_pair_filter(self, obj):
6072 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6073 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6075 def add_pair_filters(self, objs):
6076 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6077 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6079 def clear_pair_filters(self):
6080 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6081 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6083 def get_number_of_pair_filters(self):
6084 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6085 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6087 def get_has_pair_filters(self):
6088 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6089 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6091 def get_pair_filter(self, i):
6092 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6093 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6095 def get_pair_filters(self):
6096 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6097 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6099 def erase_pair_filter(self, i):
6100 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6101 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6103 def reserve_pair_filters(self, sz):
6104 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6105 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6108 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6109 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6112 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6113 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6117 return _object_cast_to_ExcludedVolumeRestraint(o)
6121 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6123 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6125 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6127 def __init__(self, *args):
6129 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6130 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6132 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6134 def do_get_inputs(self, m, pis):
6135 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6136 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6138 def get_version_info(self):
6139 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6140 return _IMP_core.FixedRefiner_get_version_info(self)
6141 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6144 r"""__str__(FixedRefiner self) -> std::string"""
6145 return _IMP_core.FixedRefiner___str__(self)
6148 r"""__repr__(FixedRefiner self) -> std::string"""
6149 return _IMP_core.FixedRefiner___repr__(self)
6153 return _object_cast_to_FixedRefiner(o)
6157 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6158 class GridClosePairsFinder(ClosePairsFinder):
6159 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6161 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6164 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6165 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6167 def get_close_pairs(self, *args):
6169 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6170 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6171 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6172 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6174 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6176 def do_get_inputs(self, m, pis):
6177 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6178 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6180 def get_version_info(self):
6181 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6182 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6183 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6186 r"""__str__(GridClosePairsFinder self) -> std::string"""
6187 return _IMP_core.GridClosePairsFinder___str__(self)
6190 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6191 return _IMP_core.GridClosePairsFinder___repr__(self)
6195 return _object_cast_to_GridClosePairsFinder(o)
6198 def _get_as_binary(self):
6199 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6200 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6202 def _set_from_binary(self, p):
6203 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6204 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6206 def __getstate__(self):
6207 p = self._get_as_binary()
6208 if len(self.__dict__) > 1:
6209 d = self.__dict__.copy()
6214 def __setstate__(self, p):
6215 if not hasattr(self,
'this'):
6217 if isinstance(p, tuple):
6219 self.__dict__.update(d)
6220 return self._set_from_binary(p)
6224 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6226 r"""Proxy of C++ IMP::core::Harmonic class."""
6228 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6230 def __init__(self, *args):
6232 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6233 __init__(Harmonic self) -> Harmonic
6235 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6237 def get_version_info(self):
6238 r"""get_version_info(Harmonic self) -> VersionInfo"""
6239 return _IMP_core.Harmonic_get_version_info(self)
6240 __swig_destroy__ = _IMP_core.delete_Harmonic
6243 r"""get_mean(Harmonic self) -> IMP::Float"""
6244 return _IMP_core.Harmonic_get_mean(self)
6247 r"""get_k(Harmonic self) -> IMP::Float"""
6248 return _IMP_core.Harmonic_get_k(self)
6250 def set_mean(self, mean):
6251 r"""set_mean(Harmonic self, IMP::Float mean)"""
6252 return _IMP_core.Harmonic_set_mean(self, mean)
6255 r"""set_k(Harmonic self, IMP::Float k)"""
6256 return _IMP_core.Harmonic_set_k(self, k)
6259 def get_k_from_standard_deviation(sd, t=297.15):
6260 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6261 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6264 r"""__str__(Harmonic self) -> std::string"""
6265 return _IMP_core.Harmonic___str__(self)
6268 r"""__repr__(Harmonic self) -> std::string"""
6269 return _IMP_core.Harmonic___repr__(self)
6273 return _object_cast_to_Harmonic(o)
6276 def _get_as_binary(self):
6277 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6278 return _IMP_core.Harmonic__get_as_binary(self)
6280 def _set_from_binary(self, p):
6281 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6282 return _IMP_core.Harmonic__set_from_binary(self, p)
6284 def __getstate__(self):
6285 p = self._get_as_binary()
6286 if len(self.__dict__) > 1:
6287 d = self.__dict__.copy()
6292 def __setstate__(self, p):
6293 if not hasattr(self,
'this'):
6295 if isinstance(p, tuple):
6297 self.__dict__.update(d)
6298 return self._set_from_binary(p)
6302 _IMP_core.Harmonic_swigregister(Harmonic)
6304 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6306 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6308 def __init__(self, well, k):
6309 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6310 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6312 def get_version_info(self):
6313 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6314 return _IMP_core.HarmonicWell_get_version_info(self)
6315 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6318 r"""__str__(HarmonicWell self) -> std::string"""
6319 return _IMP_core.HarmonicWell___str__(self)
6322 r"""__repr__(HarmonicWell self) -> std::string"""
6323 return _IMP_core.HarmonicWell___repr__(self)
6327 return _object_cast_to_HarmonicWell(o)
6331 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6332 class HarmonicLowerBound(Harmonic):
6333 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6335 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6337 def __init__(self, *args):
6339 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6340 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6342 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6343 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6346 r"""__str__(HarmonicLowerBound self) -> std::string"""
6347 return _IMP_core.HarmonicLowerBound___str__(self)
6350 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6351 return _IMP_core.HarmonicLowerBound___repr__(self)
6355 return _object_cast_to_HarmonicLowerBound(o)
6358 def _get_as_binary(self):
6359 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6360 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6362 def _set_from_binary(self, p):
6363 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6364 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6366 def __getstate__(self):
6367 p = self._get_as_binary()
6368 if len(self.__dict__) > 1:
6369 d = self.__dict__.copy()
6374 def __setstate__(self, p):
6375 if not hasattr(self,
'this'):
6377 if isinstance(p, tuple):
6379 self.__dict__.update(d)
6380 return self._set_from_binary(p)
6384 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6385 class HarmonicUpperBound(Harmonic):
6386 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6390 def __init__(self, *args):
6392 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6393 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6395 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6396 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6399 r"""__str__(HarmonicUpperBound self) -> std::string"""
6400 return _IMP_core.HarmonicUpperBound___str__(self)
6403 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6404 return _IMP_core.HarmonicUpperBound___repr__(self)
6408 return _object_cast_to_HarmonicUpperBound(o)
6411 def _get_as_binary(self):
6412 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6413 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6415 def _set_from_binary(self, p):
6416 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6417 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6419 def __getstate__(self):
6420 p = self._get_as_binary()
6421 if len(self.__dict__) > 1:
6422 d = self.__dict__.copy()
6427 def __setstate__(self, p):
6428 if not hasattr(self,
'this'):
6430 if isinstance(p, tuple):
6432 self.__dict__.update(d)
6433 return self._set_from_binary(p)
6437 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6439 r"""Proxy of C++ IMP::core::WeightedSum class."""
6441 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6443 def __init__(self, funcs, weights):
6444 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6445 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6447 def get_function_number(self):
6448 r"""get_function_number(WeightedSum self) -> unsigned int"""
6449 return _IMP_core.WeightedSum_get_function_number(self)
6451 def set_weights(self, weights):
6452 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6453 return _IMP_core.WeightedSum_set_weights(self, weights)
6455 def get_weights(self):
6456 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6457 return _IMP_core.WeightedSum_get_weights(self)
6459 def get_weight(self, i):
6460 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6461 return _IMP_core.WeightedSum_get_weight(self, i)
6463 def get_function(self, i):
6464 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6465 return _IMP_core.WeightedSum_get_function(self, i)
6467 def get_version_info(self):
6468 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6469 return _IMP_core.WeightedSum_get_version_info(self)
6470 __swig_destroy__ = _IMP_core.delete_WeightedSum
6473 r"""__str__(WeightedSum self) -> std::string"""
6474 return _IMP_core.WeightedSum___str__(self)
6477 r"""__repr__(WeightedSum self) -> std::string"""
6478 return _IMP_core.WeightedSum___repr__(self)
6482 return _object_cast_to_WeightedSum(o)
6486 _IMP_core.WeightedSum_swigregister(WeightedSum)
6488 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6490 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6492 def __init__(self, funcs, weights, denom=1.0):
6493 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6494 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6496 def get_function_number(self):
6497 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6498 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6500 def set_weights(self, weights):
6501 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6502 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6504 def get_weights(self):
6505 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6506 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6508 def get_weight(self, i):
6509 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6510 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6512 def get_function(self, i):
6513 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6514 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6516 def set_denominator(self, denom):
6517 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6518 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6520 def get_denominator(self):
6521 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6522 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6524 def get_version_info(self):
6525 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6526 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6527 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6530 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6531 return _IMP_core.WeightedSumOfExponential___str__(self)
6534 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6535 return _IMP_core.WeightedSumOfExponential___repr__(self)
6539 return _object_cast_to_WeightedSumOfExponential(o)
6543 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6545 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6547 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6549 def __init__(self, m, ps, eps=0.1):
6550 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6551 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6553 def add_type(self, ps):
6554 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6555 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6557 def add_composite(self, *args):
6559 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6560 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6562 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6564 def get_connected_pairs(self):
6565 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6566 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6568 def get_pair_score(self):
6569 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6570 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6572 def do_create_current_decomposition(self):
6573 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6574 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6576 def do_get_inputs(self):
6577 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6578 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6580 def get_version_info(self):
6581 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6582 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6583 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6586 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6587 return _IMP_core.MSConnectivityRestraint___str__(self)
6590 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6591 return _IMP_core.MSConnectivityRestraint___repr__(self)
6595 return _object_cast_to_MSConnectivityRestraint(o)
6599 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6600 class HierarchyTraits(object):
6601 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6603 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6605 def __init__(self, *args):
6607 __init__(HierarchyTraits self) -> HierarchyTraits
6608 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6610 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6612 def get_children_key(self):
6613 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6614 return _IMP_core.HierarchyTraits_get_children_key(self)
6616 def get_parent_key(self):
6617 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6618 return _IMP_core.HierarchyTraits_get_parent_key(self)
6620 def __eq__(self, o):
6621 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6622 return _IMP_core.HierarchyTraits___eq__(self, o)
6624 def show(self, *args):
6625 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6626 return _IMP_core.HierarchyTraits_show(self, *args)
6629 r"""__str__(HierarchyTraits self) -> std::string"""
6630 return _IMP_core.HierarchyTraits___str__(self)
6633 r"""__repr__(HierarchyTraits self) -> std::string"""
6634 return _IMP_core.HierarchyTraits___repr__(self)
6635 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6638 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6640 r"""Proxy of C++ IMP::core::Hierarchy class."""
6642 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6644 def get_decorator_traits(self):
6645 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6646 return _IMP_core.Hierarchy_get_decorator_traits(self)
6649 def get_default_decorator_traits():
6650 r"""get_default_decorator_traits() -> HierarchyTraits"""
6651 return _IMP_core.Hierarchy_get_default_decorator_traits()
6653 def __init__(self, *args):
6655 __init__(Hierarchy self) -> Hierarchy
6656 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6657 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6659 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6661 def show(self, *args):
6662 r"""show(Hierarchy self, _ostream out=std::cout)"""
6663 return _IMP_core.Hierarchy_show(self, *args)
6666 def setup_particle(*args):
6668 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6669 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6670 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6671 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6672 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6673 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6675 return _IMP_core.Hierarchy_setup_particle(*args)
6678 def get_is_setup(*args):
6680 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6681 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6683 return _IMP_core.Hierarchy_get_is_setup(*args)
6686 def get_changed_key():
6687 r"""get_changed_key() -> TriggerKey"""
6688 return _IMP_core.Hierarchy_get_changed_key()
6690 def get_parent(self):
6691 r"""get_parent(Hierarchy self) -> Hierarchy"""
6692 return _IMP_core.Hierarchy_get_parent(self)
6694 def get_number_of_children(self):
6695 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6696 return _IMP_core.Hierarchy_get_number_of_children(self)
6698 def get_child(self, i):
6699 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6700 return _IMP_core.Hierarchy_get_child(self, i)
6702 def get_children_indexes(self):
6703 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6704 return _IMP_core.Hierarchy_get_children_indexes(self)
6706 def get_children(self):
6707 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6708 return _IMP_core.Hierarchy_get_children(self)
6710 def remove_child(self, *args):
6712 remove_child(Hierarchy self, unsigned int i)
6713 remove_child(Hierarchy self, Hierarchy h)
6715 return _IMP_core.Hierarchy_remove_child(self, *args)
6717 def clear_children(self):
6718 r"""clear_children(Hierarchy self)"""
6719 return _IMP_core.Hierarchy_clear_children(self)
6721 def add_child(self, h):
6722 r"""add_child(Hierarchy self, Hierarchy h)"""
6723 return _IMP_core.Hierarchy_add_child(self, h)
6725 def add_child_at(self, h, pos):
6726 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6727 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6729 def get_child_index(self, *args):
6731 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6732 get_child_index(Hierarchy self) -> int
6734 return _IMP_core.Hierarchy_get_child_index(self, *args)
6737 def get_default_traits():
6738 r"""get_default_traits() -> HierarchyTraits"""
6739 return _IMP_core.Hierarchy_get_default_traits()
6741 def get_traits(self):
6742 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6743 return _IMP_core.Hierarchy_get_traits(self)
6745 def add_attribute(self, *args):
6747 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6748 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6749 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6750 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6751 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6752 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6753 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6754 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6755 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6756 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6757 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6758 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6760 return _IMP_core.Hierarchy_add_attribute(self, *args)
6762 def get_value(self, *args):
6764 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6765 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6766 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6767 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6768 get_value(Hierarchy self, StringKey a0) -> IMP::String
6769 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6770 get_value(Hierarchy self, ObjectKey a0) -> Object
6771 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6772 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6773 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6774 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6776 return _IMP_core.Hierarchy_get_value(self, *args)
6778 def set_value(self, *args):
6780 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6781 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6782 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6783 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6784 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6785 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6786 set_value(Hierarchy self, ObjectKey a0, Object a1)
6787 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6788 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6789 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6790 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6792 return _IMP_core.Hierarchy_set_value(self, *args)
6794 def remove_attribute(self, *args):
6796 remove_attribute(Hierarchy self, FloatKey a0)
6797 remove_attribute(Hierarchy self, IntKey a0)
6798 remove_attribute(Hierarchy self, FloatsKey a0)
6799 remove_attribute(Hierarchy self, IntsKey a0)
6800 remove_attribute(Hierarchy self, StringKey a0)
6801 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6802 remove_attribute(Hierarchy self, ObjectKey a0)
6803 remove_attribute(Hierarchy self, SparseFloatKey a0)
6804 remove_attribute(Hierarchy self, SparseIntKey a0)
6805 remove_attribute(Hierarchy self, SparseStringKey a0)
6806 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6808 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6810 def has_attribute(self, *args):
6812 has_attribute(Hierarchy self, FloatKey a0) -> bool
6813 has_attribute(Hierarchy self, IntKey a0) -> bool
6814 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6815 has_attribute(Hierarchy self, IntsKey a0) -> bool
6816 has_attribute(Hierarchy self, StringKey a0) -> bool
6817 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6818 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6819 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6820 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6821 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6822 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6824 return _IMP_core.Hierarchy_has_attribute(self, *args)
6826 def get_derivative(self, a0):
6827 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6828 return _IMP_core.Hierarchy_get_derivative(self, a0)
6831 r"""get_name(Hierarchy self) -> std::string"""
6832 return _IMP_core.Hierarchy_get_name(self)
6834 def clear_caches(self):
6835 r"""clear_caches(Hierarchy self)"""
6836 return _IMP_core.Hierarchy_clear_caches(self)
6838 def set_name(self, a0):
6839 r"""set_name(Hierarchy self, std::string a0)"""
6840 return _IMP_core.Hierarchy_set_name(self, a0)
6843 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6844 return _IMP_core.Hierarchy_set_check_level(self, a0)
6846 def add_to_derivative(self, a0, a1, a2):
6847 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6848 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6850 def set_is_optimized(self, a0, a1):
6851 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6852 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6854 def get_is_optimized(self, a0):
6855 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6856 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6859 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6860 return _IMP_core.Hierarchy_get_check_level(self)
6862 def __eq__(self, *args):
6864 __eq__(Hierarchy self, Hierarchy o) -> bool
6865 __eq__(Hierarchy self, Particle d) -> bool
6867 return _IMP_core.Hierarchy___eq__(self, *args)
6869 def __ne__(self, *args):
6871 __ne__(Hierarchy self, Hierarchy o) -> bool
6872 __ne__(Hierarchy self, Particle d) -> bool
6874 return _IMP_core.Hierarchy___ne__(self, *args)
6876 def __le__(self, *args):
6878 __le__(Hierarchy self, Hierarchy o) -> bool
6879 __le__(Hierarchy self, Particle d) -> bool
6881 return _IMP_core.Hierarchy___le__(self, *args)
6883 def __lt__(self, *args):
6885 __lt__(Hierarchy self, Hierarchy o) -> bool
6886 __lt__(Hierarchy self, Particle d) -> bool
6888 return _IMP_core.Hierarchy___lt__(self, *args)
6890 def __ge__(self, *args):
6892 __ge__(Hierarchy self, Hierarchy o) -> bool
6893 __ge__(Hierarchy self, Particle d) -> bool
6895 return _IMP_core.Hierarchy___ge__(self, *args)
6897 def __gt__(self, *args):
6899 __gt__(Hierarchy self, Hierarchy o) -> bool
6900 __gt__(Hierarchy self, Particle d) -> bool
6902 return _IMP_core.Hierarchy___gt__(self, *args)
6905 r"""__hash__(Hierarchy self) -> std::size_t"""
6906 return _IMP_core.Hierarchy___hash__(self)
6909 r"""__str__(Hierarchy self) -> std::string"""
6910 return _IMP_core.Hierarchy___str__(self)
6913 r"""__repr__(Hierarchy self) -> std::string"""
6914 return _IMP_core.Hierarchy___repr__(self)
6915 __swig_destroy__ = _IMP_core.delete_Hierarchy
6918 _IMP_core.Hierarchy_swigregister(Hierarchy)
6919 class HierarchyVisitor(object):
6920 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6922 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6923 __repr__ = _swig_repr
6926 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6927 if self.__class__ == HierarchyVisitor:
6931 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6933 if self.__class__ != HierarchyVisitor:
6934 _director_objects.register(self)
6939 def __call__(self, p):
6940 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6941 return _IMP_core.HierarchyVisitor___call__(self, p)
6942 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6943 def __disown__(self):
6945 _IMP_core.disown_HierarchyVisitor(self)
6946 return weakref.proxy(self)
6949 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6950 class ModifierVisitor(HierarchyVisitor):
6951 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6953 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6954 __repr__ = _swig_repr
6956 def __init__(self, sm):
6957 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6958 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6959 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6962 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6963 class HierarchyCounter(HierarchyVisitor):
6964 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6966 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6969 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6970 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6972 def get_count(self):
6973 r"""get_count(HierarchyCounter self) -> unsigned int"""
6974 return _IMP_core.HierarchyCounter_get_count(self)
6976 def show(self, *args):
6977 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6978 return _IMP_core.HierarchyCounter_show(self, *args)
6981 r"""__str__(HierarchyCounter self) -> std::string"""
6982 return _IMP_core.HierarchyCounter___str__(self)
6985 r"""__repr__(HierarchyCounter self) -> std::string"""
6986 return _IMP_core.HierarchyCounter___repr__(self)
6988 def _get_as_binary(self):
6989 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6990 return _IMP_core.HierarchyCounter__get_as_binary(self)
6992 def _set_from_binary(self, p):
6993 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6994 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6996 def __getstate__(self):
6997 p = self._get_as_binary()
6998 if len(self.__dict__) > 1:
6999 d = self.__dict__.copy()
7004 def __setstate__(self, p):
7005 if not hasattr(self,
'this'):
7007 if isinstance(p, tuple):
7009 self.__dict__.update(d)
7010 return self._set_from_binary(p)
7012 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7015 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7018 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7019 return _IMP_core.get_leaves(mhd)
7022 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7023 return _IMP_core.get_internal(mhd)
7026 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7027 return _IMP_core.get_all_descendants(mhd)
7030 r"""get_root(Hierarchy h) -> Hierarchy"""
7031 return _IMP_core.get_root(h)
7034 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7035 return _IMP_core.visit_breadth_first(d, f)
7038 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7039 return _IMP_core.visit_depth_first(d, f)
7041 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7043 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7045 def __init__(self, tr):
7046 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7047 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7049 def do_get_inputs(self, m, pis):
7050 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7051 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7053 def get_version_info(self):
7054 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7055 return _IMP_core.LeavesRefiner_get_version_info(self)
7056 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7059 r"""__str__(LeavesRefiner self) -> std::string"""
7060 return _IMP_core.LeavesRefiner___str__(self)
7063 r"""__repr__(LeavesRefiner self) -> std::string"""
7064 return _IMP_core.LeavesRefiner___repr__(self)
7068 return _object_cast_to_LeavesRefiner(o)
7072 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7074 r"""Proxy of C++ IMP::core::Linear class."""
7076 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7078 def __init__(self, *args):
7080 __init__(Linear self, double offset, double slope) -> Linear
7081 __init__(Linear self) -> Linear
7083 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7085 def set_slope(self, f):
7086 r"""set_slope(Linear self, double f)"""
7087 return _IMP_core.Linear_set_slope(self, f)
7089 def set_offset(self, f):
7090 r"""set_offset(Linear self, double f)"""
7091 return _IMP_core.Linear_set_offset(self, f)
7093 def get_version_info(self):
7094 r"""get_version_info(Linear self) -> VersionInfo"""
7095 return _IMP_core.Linear_get_version_info(self)
7096 __swig_destroy__ = _IMP_core.delete_Linear
7099 r"""__str__(Linear self) -> std::string"""
7100 return _IMP_core.Linear___str__(self)
7103 r"""__repr__(Linear self) -> std::string"""
7104 return _IMP_core.Linear___repr__(self)
7108 return _object_cast_to_Linear(o)
7111 def _get_as_binary(self):
7112 r"""_get_as_binary(Linear self) -> PyObject *"""
7113 return _IMP_core.Linear__get_as_binary(self)
7115 def _set_from_binary(self, p):
7116 r"""_set_from_binary(Linear self, PyObject * p)"""
7117 return _IMP_core.Linear__set_from_binary(self, p)
7119 def __getstate__(self):
7120 p = self._get_as_binary()
7121 if len(self.__dict__) > 1:
7122 d = self.__dict__.copy()
7127 def __setstate__(self, p):
7128 if not hasattr(self,
'this'):
7130 if isinstance(p, tuple):
7132 self.__dict__.update(d)
7133 return self._set_from_binary(p)
7137 _IMP_core.Linear_swigregister(Linear)
7138 class LogNormalMover(MonteCarloMover):
7139 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7141 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7143 def __init__(self, *args):
7145 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7146 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7147 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7148 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7149 __init__(LogNormalMover self) -> LogNormalMover
7151 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7153 def set_sigma(self, sigma):
7154 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7155 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7157 def get_sigma(self):
7158 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7159 return _IMP_core.LogNormalMover_get_sigma(self)
7161 def get_version_info(self):
7162 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7163 return _IMP_core.LogNormalMover_get_version_info(self)
7164 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7167 r"""__str__(LogNormalMover self) -> std::string"""
7168 return _IMP_core.LogNormalMover___str__(self)
7171 r"""__repr__(LogNormalMover self) -> std::string"""
7172 return _IMP_core.LogNormalMover___repr__(self)
7176 return _object_cast_to_LogNormalMover(o)
7179 def _get_as_binary(self):
7180 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7181 return _IMP_core.LogNormalMover__get_as_binary(self)
7183 def _set_from_binary(self, p):
7184 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7185 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7187 def __getstate__(self):
7188 p = self._get_as_binary()
7189 if len(self.__dict__) > 1:
7190 d = self.__dict__.copy()
7195 def __setstate__(self, p):
7196 if not hasattr(self,
'this'):
7198 if isinstance(p, tuple):
7200 self.__dict__.update(d)
7201 return self._set_from_binary(p)
7205 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7206 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7209 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7211 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7213 def __init__(self, m):
7214 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7215 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7217 def get_version_info(self):
7218 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7219 return _IMP_core.MonteCarlo_get_version_info(self)
7220 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7222 def set_return_best(self, tf):
7223 r"""set_return_best(MonteCarlo self, bool tf)"""
7224 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7226 def set_score_moved(self, mv):
7227 r"""set_score_moved(MonteCarlo self, bool mv)"""
7228 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7230 def set_kt(self, t):
7231 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7232 return _IMP_core.MonteCarlo_set_kt(self, t)
7235 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7236 return _IMP_core.MonteCarlo_get_kt(self)
7238 def get_last_accepted_energy(self):
7239 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7240 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7242 def get_best_accepted_energy(self):
7243 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7244 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7246 def get_number_of_downward_steps(self):
7247 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7248 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7250 def get_number_of_upward_steps(self):
7251 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7252 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7254 def get_number_of_proposed_steps(self):
7255 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7256 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7258 def get_number_of_accepted_steps(self):
7259 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7260 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7262 def reset_statistics(self):
7263 r"""reset_statistics(MonteCarlo self)"""
7264 return _IMP_core.MonteCarlo_reset_statistics(self)
7266 def set_score_threshold(self, s):
7267 r"""set_score_threshold(MonteCarlo self, double s)"""
7268 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7270 def get_score_threshold(self):
7271 r"""get_score_threshold(MonteCarlo self) -> double"""
7272 return _IMP_core.MonteCarlo_get_score_threshold(self)
7274 def set_maximum_difference(self, d):
7275 r"""set_maximum_difference(MonteCarlo self, double d)"""
7276 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7278 def get_maximum_difference(self):
7279 r"""get_maximum_difference(MonteCarlo self) -> double"""
7280 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7281 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)
7282 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7283 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7284 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7286 def remove_mover(self, d):
7287 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7288 return _IMP_core.MonteCarlo_remove_mover(self, d)
7290 def _python_index_mover(self, d, start, stop):
7291 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7292 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7294 def remove_movers(self, d):
7295 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7296 return _IMP_core.MonteCarlo_remove_movers(self, d)
7298 def set_movers(self, ps):
7299 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7300 return _IMP_core.MonteCarlo_set_movers(self, ps)
7302 def set_movers_order(self, objs):
7303 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7304 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7306 def add_mover(self, obj):
7307 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7308 return _IMP_core.MonteCarlo_add_mover(self, obj)
7310 def add_movers(self, objs):
7311 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7312 return _IMP_core.MonteCarlo_add_movers(self, objs)
7314 def clear_movers(self):
7315 r"""clear_movers(MonteCarlo self)"""
7316 return _IMP_core.MonteCarlo_clear_movers(self)
7318 def get_number_of_movers(self):
7319 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7320 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7322 def get_has_movers(self):
7323 r"""get_has_movers(MonteCarlo self) -> bool"""
7324 return _IMP_core.MonteCarlo_get_has_movers(self)
7326 def get_mover(self, i):
7327 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7328 return _IMP_core.MonteCarlo_get_mover(self, i)
7330 def get_movers(self):
7331 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7332 return _IMP_core.MonteCarlo_get_movers(self)
7334 def erase_mover(self, i):
7335 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7336 return _IMP_core.MonteCarlo_erase_mover(self, i)
7338 def reserve_movers(self, sz):
7339 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7340 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7343 r"""__str__(MonteCarlo self) -> std::string"""
7344 return _IMP_core.MonteCarlo___str__(self)
7347 r"""__repr__(MonteCarlo self) -> std::string"""
7348 return _IMP_core.MonteCarlo___repr__(self)
7352 return _object_cast_to_MonteCarlo(o)
7356 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7357 class MonteCarloWithLocalOptimization(MonteCarlo):
7358 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7360 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7362 def __init__(self, opt, steps):
7363 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7364 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7366 def get_number_of_steps(self):
7367 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7368 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7370 def get_local_optimizer(self):
7371 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7372 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7373 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7376 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7377 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7380 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7381 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7385 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7389 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7390 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7391 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7393 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7395 def __init__(self, opt, ns):
7396 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7397 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7398 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7401 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7402 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7405 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7406 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7410 return _object_cast_to_MonteCarloWithBasinHopping(o)
7414 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7416 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7418 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7420 def __init__(self, *args):
7421 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7422 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7424 def get_neighbors(self, pi):
7425 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7426 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7428 def get_version_info(self):
7429 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7430 return _IMP_core.NeighborsTable_get_version_info(self)
7431 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7434 r"""__str__(NeighborsTable self) -> std::string"""
7435 return _IMP_core.NeighborsTable___str__(self)
7438 r"""__repr__(NeighborsTable self) -> std::string"""
7439 return _IMP_core.NeighborsTable___repr__(self)
7443 return _object_cast_to_NeighborsTable(o)
7447 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7448 class NormalMover(MonteCarloMover):
7449 r"""Proxy of C++ IMP::core::NormalMover class."""
7451 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7453 def __init__(self, *args):
7455 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7456 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7457 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7458 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7459 __init__(NormalMover self) -> NormalMover
7461 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7463 def set_sigma(self, sigma):
7464 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7465 return _IMP_core.NormalMover_set_sigma(self, sigma)
7467 def get_sigma(self):
7468 r"""get_sigma(NormalMover self) -> IMP::Float"""
7469 return _IMP_core.NormalMover_get_sigma(self)
7471 def get_version_info(self):
7472 r"""get_version_info(NormalMover self) -> VersionInfo"""
7473 return _IMP_core.NormalMover_get_version_info(self)
7474 __swig_destroy__ = _IMP_core.delete_NormalMover
7477 r"""__str__(NormalMover self) -> std::string"""
7478 return _IMP_core.NormalMover___str__(self)
7481 r"""__repr__(NormalMover self) -> std::string"""
7482 return _IMP_core.NormalMover___repr__(self)
7486 return _object_cast_to_NormalMover(o)
7489 def _get_as_binary(self):
7490 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7491 return _IMP_core.NormalMover__get_as_binary(self)
7493 def _set_from_binary(self, p):
7494 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7495 return _IMP_core.NormalMover__set_from_binary(self, p)
7497 def __getstate__(self):
7498 p = self._get_as_binary()
7499 if len(self.__dict__) > 1:
7500 d = self.__dict__.copy()
7505 def __setstate__(self, p):
7506 if not hasattr(self,
'this'):
7508 if isinstance(p, tuple):
7510 self.__dict__.update(d)
7511 return self._set_from_binary(p)
7515 _IMP_core.NormalMover_swigregister(NormalMover)
7516 class OpenCubicSpline(_OpenCubicSplineBase):
7517 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7519 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7521 def __init__(self, values, minrange, spacing, extend=False):
7522 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7523 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7526 r"""__str__(OpenCubicSpline self) -> std::string"""
7527 return _IMP_core.OpenCubicSpline___str__(self)
7530 r"""__repr__(OpenCubicSpline self) -> std::string"""
7531 return _IMP_core.OpenCubicSpline___repr__(self)
7535 return _object_cast_to_OpenCubicSpline(o)
7537 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7540 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7541 class QuadraticClosePairsFinder(ClosePairsFinder):
7542 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7544 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7547 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7548 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7550 def get_are_close_and_filtered(self, *args):
7552 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7553 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7555 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7557 def get_close_pairs(self, *args):
7559 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7560 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7561 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7562 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7564 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7566 def do_get_inputs(self, m, pis):
7567 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7568 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7570 def get_version_info(self):
7571 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7572 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7573 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7576 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7577 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7580 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7581 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7585 return _object_cast_to_QuadraticClosePairsFinder(o)
7589 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7591 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7593 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7595 def __init__(self, r, f):
7596 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7597 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7599 def do_get_inputs(self, m, pis):
7600 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7601 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7603 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7604 r"""evaluate_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7605 return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7607 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7608 r"""evaluate_indexes_scores(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7609 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7611 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7612 r"""evaluate_indexes_delta(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7613 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7615 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7616 r"""evaluate_if_good_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7617 return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7619 def get_version_info(self):
7620 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7621 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7622 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7625 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7626 return _IMP_core.RefinedPairsPairScore___str__(self)
7629 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7630 return _IMP_core.RefinedPairsPairScore___repr__(self)
7634 return _object_cast_to_RefinedPairsPairScore(o)
7638 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7639 class RigidBody(XYZ):
7640 r"""Proxy of C++ IMP::core::RigidBody class."""
7642 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7644 def get_rigid_members(self):
7645 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7646 return _IMP_core.RigidBody_get_rigid_members(self)
7649 def get_rotation_keys():
7650 r"""get_rotation_keys() -> IMP::FloatKeys"""
7651 return _IMP_core.RigidBody_get_rotation_keys()
7653 def get_member_particle_indexes(self):
7654 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7655 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7657 def get_body_member_particle_indexes(self):
7658 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7659 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7661 def get_member_indexes(self):
7662 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7663 return _IMP_core.RigidBody_get_member_indexes(self)
7665 def show(self, *args):
7666 r"""show(RigidBody self, _ostream out=std::cout)"""
7667 return _IMP_core.RigidBody_show(self, *args)
7670 def setup_particle(*args):
7672 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7673 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7674 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7675 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7677 return _IMP_core.RigidBody_setup_particle(*args)
7680 def teardown_particle(rb):
7681 r"""teardown_particle(RigidBody rb)"""
7682 return _IMP_core.RigidBody_teardown_particle(rb)
7684 def __init__(self, *args):
7686 __init__(RigidBody self) -> RigidBody
7687 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7688 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7689 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7691 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7692 __swig_destroy__ = _IMP_core.delete_RigidBody
7695 def get_is_setup(*args):
7697 get_is_setup(_ParticleAdaptor p) -> bool
7698 get_is_setup(Model m, ParticleIndex pi) -> bool
7700 return _IMP_core.RigidBody_get_is_setup(*args)
7702 def get_coordinates(self):
7703 r"""get_coordinates(RigidBody self) -> Vector3D"""
7704 return _IMP_core.RigidBody_get_coordinates(self)
7706 def get_rotation(self):
7707 r"""get_rotation(RigidBody self) -> Rotation3D"""
7708 return _IMP_core.RigidBody_get_rotation(self)
7710 def get_reference_frame(self):
7711 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7712 return _IMP_core.RigidBody_get_reference_frame(self)
7714 def set_reference_frame(self, tr):
7715 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7716 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7718 def set_reference_frame_lazy(self, tr):
7719 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7720 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7722 def set_reference_frame_from_members(self, members):
7723 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7724 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7726 def pull_back_members_adjoints(self, da):
7727 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7728 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7730 def pull_back_member_adjoints(self, pi, da):
7731 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7732 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7734 def pull_back_body_member_adjoints(self, pi, da):
7735 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7736 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7738 def add_to_derivatives(self, *args):
7740 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7741 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7743 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7745 def add_to_rotational_derivatives(self, *args):
7747 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7748 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7750 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7752 def add_to_torque(self, torque_local, da):
7753 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7754 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7756 def get_torque(self):
7757 r"""get_torque(RigidBody self) -> Vector3D"""
7758 return _IMP_core.RigidBody_get_torque(self)
7760 def get_coordinates_are_optimized(self):
7761 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7762 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7764 def set_coordinates_are_optimized(self, tf):
7765 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7766 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7768 def normalize_rotation(self):
7769 r"""normalize_rotation(RigidBody self)"""
7770 return _IMP_core.RigidBody_normalize_rotation(self)
7772 def update_members(self):
7773 r"""update_members(RigidBody self)"""
7774 return _IMP_core.RigidBody_update_members(self)
7776 def get_rotational_derivatives(self):
7777 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7778 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7780 def get_number_of_members(self):
7781 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7782 return _IMP_core.RigidBody_get_number_of_members(self)
7784 def get_member(self, i):
7785 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7786 return _IMP_core.RigidBody_get_member(self, i)
7788 def add_member(self, p):
7789 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7790 return _IMP_core.RigidBody_add_member(self, p)
7792 def add_non_rigid_member(self, p):
7793 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7794 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7796 def set_is_rigid_member(self, pi, tf):
7797 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7798 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7800 def remove_member(self, p):
7801 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7802 return _IMP_core.RigidBody_remove_member(self, p)
7804 def add_attribute(self, *args):
7806 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7807 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7808 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7809 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7810 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7811 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7812 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7813 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7814 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7815 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7816 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7817 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7819 return _IMP_core.RigidBody_add_attribute(self, *args)
7821 def get_value(self, *args):
7823 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7824 get_value(RigidBody self, IntKey a0) -> IMP::Int
7825 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7826 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7827 get_value(RigidBody self, StringKey a0) -> IMP::String
7828 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7829 get_value(RigidBody self, ObjectKey a0) -> Object
7830 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7831 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7832 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7833 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7835 return _IMP_core.RigidBody_get_value(self, *args)
7837 def set_value(self, *args):
7839 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7840 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7841 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7842 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7843 set_value(RigidBody self, StringKey a0, IMP::String a1)
7844 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7845 set_value(RigidBody self, ObjectKey a0, Object a1)
7846 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7847 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7848 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7849 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7851 return _IMP_core.RigidBody_set_value(self, *args)
7853 def remove_attribute(self, *args):
7855 remove_attribute(RigidBody self, FloatKey a0)
7856 remove_attribute(RigidBody self, IntKey a0)
7857 remove_attribute(RigidBody self, FloatsKey a0)
7858 remove_attribute(RigidBody self, IntsKey a0)
7859 remove_attribute(RigidBody self, StringKey a0)
7860 remove_attribute(RigidBody self, ParticleIndexKey a0)
7861 remove_attribute(RigidBody self, ObjectKey a0)
7862 remove_attribute(RigidBody self, SparseFloatKey a0)
7863 remove_attribute(RigidBody self, SparseIntKey a0)
7864 remove_attribute(RigidBody self, SparseStringKey a0)
7865 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7867 return _IMP_core.RigidBody_remove_attribute(self, *args)
7869 def has_attribute(self, *args):
7871 has_attribute(RigidBody self, FloatKey a0) -> bool
7872 has_attribute(RigidBody self, IntKey a0) -> bool
7873 has_attribute(RigidBody self, FloatsKey a0) -> bool
7874 has_attribute(RigidBody self, IntsKey a0) -> bool
7875 has_attribute(RigidBody self, StringKey a0) -> bool
7876 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7877 has_attribute(RigidBody self, ObjectKey a0) -> bool
7878 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7879 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7880 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7881 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7883 return _IMP_core.RigidBody_has_attribute(self, *args)
7885 def get_derivative(self, a0):
7886 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7887 return _IMP_core.RigidBody_get_derivative(self, a0)
7890 r"""get_name(RigidBody self) -> std::string"""
7891 return _IMP_core.RigidBody_get_name(self)
7893 def clear_caches(self):
7894 r"""clear_caches(RigidBody self)"""
7895 return _IMP_core.RigidBody_clear_caches(self)
7897 def set_name(self, a0):
7898 r"""set_name(RigidBody self, std::string a0)"""
7899 return _IMP_core.RigidBody_set_name(self, a0)
7902 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7903 return _IMP_core.RigidBody_set_check_level(self, a0)
7905 def add_to_derivative(self, a0, a1, a2):
7906 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7907 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7909 def set_is_optimized(self, a0, a1):
7910 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7911 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7913 def get_is_optimized(self, a0):
7914 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7915 return _IMP_core.RigidBody_get_is_optimized(self, a0)
7918 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7919 return _IMP_core.RigidBody_get_check_level(self)
7921 def __eq__(self, *args):
7923 __eq__(RigidBody self, RigidBody o) -> bool
7924 __eq__(RigidBody self, Particle d) -> bool
7926 return _IMP_core.RigidBody___eq__(self, *args)
7928 def __ne__(self, *args):
7930 __ne__(RigidBody self, RigidBody o) -> bool
7931 __ne__(RigidBody self, Particle d) -> bool
7933 return _IMP_core.RigidBody___ne__(self, *args)
7935 def __le__(self, *args):
7937 __le__(RigidBody self, RigidBody o) -> bool
7938 __le__(RigidBody self, Particle d) -> bool
7940 return _IMP_core.RigidBody___le__(self, *args)
7942 def __lt__(self, *args):
7944 __lt__(RigidBody self, RigidBody o) -> bool
7945 __lt__(RigidBody self, Particle d) -> bool
7947 return _IMP_core.RigidBody___lt__(self, *args)
7949 def __ge__(self, *args):
7951 __ge__(RigidBody self, RigidBody o) -> bool
7952 __ge__(RigidBody self, Particle d) -> bool
7954 return _IMP_core.RigidBody___ge__(self, *args)
7956 def __gt__(self, *args):
7958 __gt__(RigidBody self, RigidBody o) -> bool
7959 __gt__(RigidBody self, Particle d) -> bool
7961 return _IMP_core.RigidBody___gt__(self, *args)
7964 r"""__hash__(RigidBody self) -> std::size_t"""
7965 return _IMP_core.RigidBody___hash__(self)
7968 r"""__str__(RigidBody self) -> std::string"""
7969 return _IMP_core.RigidBody___str__(self)
7972 r"""__repr__(RigidBody self) -> std::string"""
7973 return _IMP_core.RigidBody___repr__(self)
7975 def _get_as_binary(self):
7976 r"""_get_as_binary(RigidBody self) -> PyObject *"""
7977 return _IMP_core.RigidBody__get_as_binary(self)
7979 def _set_from_binary(self, p):
7980 r"""_set_from_binary(RigidBody self, PyObject * p)"""
7981 return _IMP_core.RigidBody__set_from_binary(self, p)
7983 def __getstate__(self):
7984 p = self._get_as_binary()
7985 if len(self.__dict__) > 1:
7986 d = self.__dict__.copy()
7991 def __setstate__(self, p):
7992 if not hasattr(self,
'this'):
7994 if isinstance(p, tuple):
7996 self.__dict__.update(d)
7997 return self._set_from_binary(p)
8001 _IMP_core.RigidBody_swigregister(RigidBody)
8004 r"""add_rigid_body_cache_key(ObjectKey k)"""
8005 return _IMP_core.add_rigid_body_cache_key(k)
8006 class RigidBodyMember(XYZ):
8007 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8009 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8011 def show(self, *args):
8012 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8013 return _IMP_core.RigidBodyMember_show(self, *args)
8015 def get_rigid_body(self):
8016 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8017 return _IMP_core.RigidBodyMember_get_rigid_body(self)
8019 def get_internal_coordinates(self):
8020 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8021 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8023 def set_internal_coordinates(self, v):
8024 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8025 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8027 def set_internal_transformation(self, v):
8028 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8029 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8031 def get_internal_transformation(self):
8032 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8033 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8034 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8036 def set_coordinates(self, *args):
8038 set_coordinates(RigidBodyMember self, Vector3D center)
8039 set_coordinates(RigidBodyMember self, Transformation3D tr)
8041 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8043 def __init__(self, *args):
8045 __init__(RigidBodyMember self) -> RigidBodyMember
8046 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8047 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8048 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8050 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8053 def get_is_setup(*args):
8055 get_is_setup(_ParticleAdaptor p) -> bool
8056 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8058 return _IMP_core.RigidBodyMember_get_is_setup(*args)
8061 def get_internal_coordinate_keys():
8062 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8063 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8066 def get_internal_rotation_keys():
8067 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8068 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8070 def add_attribute(self, *args):
8072 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8073 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8074 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8075 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8076 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8077 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8078 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8079 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8080 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8081 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8082 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8083 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8085 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8087 def get_value(self, *args):
8089 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8090 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8091 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8092 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8093 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8094 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8095 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8096 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8097 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8098 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8099 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8101 return _IMP_core.RigidBodyMember_get_value(self, *args)
8103 def set_value(self, *args):
8105 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8106 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8107 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8108 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8109 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8110 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8111 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8112 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8113 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8114 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8115 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8117 return _IMP_core.RigidBodyMember_set_value(self, *args)
8119 def remove_attribute(self, *args):
8121 remove_attribute(RigidBodyMember self, FloatKey a0)
8122 remove_attribute(RigidBodyMember self, IntKey a0)
8123 remove_attribute(RigidBodyMember self, FloatsKey a0)
8124 remove_attribute(RigidBodyMember self, IntsKey a0)
8125 remove_attribute(RigidBodyMember self, StringKey a0)
8126 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8127 remove_attribute(RigidBodyMember self, ObjectKey a0)
8128 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8129 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8130 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8131 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8133 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8135 def has_attribute(self, *args):
8137 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8138 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8139 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8140 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8141 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8142 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8143 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8144 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8145 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8146 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8147 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8149 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8151 def get_derivative(self, a0):
8152 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8153 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8156 r"""get_name(RigidBodyMember self) -> std::string"""
8157 return _IMP_core.RigidBodyMember_get_name(self)
8159 def clear_caches(self):
8160 r"""clear_caches(RigidBodyMember self)"""
8161 return _IMP_core.RigidBodyMember_clear_caches(self)
8163 def set_name(self, a0):
8164 r"""set_name(RigidBodyMember self, std::string a0)"""
8165 return _IMP_core.RigidBodyMember_set_name(self, a0)
8168 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8169 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8171 def add_to_derivative(self, a0, a1, a2):
8172 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8173 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8175 def set_is_optimized(self, a0, a1):
8176 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8177 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8179 def get_is_optimized(self, a0):
8180 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8181 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8184 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8185 return _IMP_core.RigidBodyMember_get_check_level(self)
8187 def __eq__(self, *args):
8189 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8190 __eq__(RigidBodyMember self, Particle d) -> bool
8192 return _IMP_core.RigidBodyMember___eq__(self, *args)
8194 def __ne__(self, *args):
8196 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8197 __ne__(RigidBodyMember self, Particle d) -> bool
8199 return _IMP_core.RigidBodyMember___ne__(self, *args)
8201 def __le__(self, *args):
8203 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8204 __le__(RigidBodyMember self, Particle d) -> bool
8206 return _IMP_core.RigidBodyMember___le__(self, *args)
8208 def __lt__(self, *args):
8210 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8211 __lt__(RigidBodyMember self, Particle d) -> bool
8213 return _IMP_core.RigidBodyMember___lt__(self, *args)
8215 def __ge__(self, *args):
8217 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8218 __ge__(RigidBodyMember self, Particle d) -> bool
8220 return _IMP_core.RigidBodyMember___ge__(self, *args)
8222 def __gt__(self, *args):
8224 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8225 __gt__(RigidBodyMember self, Particle d) -> bool
8227 return _IMP_core.RigidBodyMember___gt__(self, *args)
8230 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8231 return _IMP_core.RigidBodyMember___hash__(self)
8234 r"""__str__(RigidBodyMember self) -> std::string"""
8235 return _IMP_core.RigidBodyMember___str__(self)
8238 r"""__repr__(RigidBodyMember self) -> std::string"""
8239 return _IMP_core.RigidBodyMember___repr__(self)
8241 def _get_as_binary(self):
8242 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8243 return _IMP_core.RigidBodyMember__get_as_binary(self)
8245 def _set_from_binary(self, p):
8246 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8247 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8249 def __getstate__(self):
8250 p = self._get_as_binary()
8251 if len(self.__dict__) > 1:
8252 d = self.__dict__.copy()
8257 def __setstate__(self, p):
8258 if not hasattr(self,
'this'):
8260 if isinstance(p, tuple):
8262 self.__dict__.update(d)
8263 return self._set_from_binary(p)
8267 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8268 class RigidMember(RigidBodyMember):
8269 r"""Proxy of C++ IMP::core::RigidMember class."""
8271 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8273 def show(self, *args):
8274 r"""show(RigidMember self, _ostream out=std::cout)"""
8275 return _IMP_core.RigidMember_show(self, *args)
8277 def __init__(self, *args):
8279 __init__(RigidMember self) -> RigidMember
8280 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8281 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8282 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8284 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8285 __swig_destroy__ = _IMP_core.delete_RigidMember
8288 def get_is_setup(*args):
8290 get_is_setup(_ParticleAdaptor p) -> bool
8291 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8293 return _IMP_core.RigidMember_get_is_setup(*args)
8295 def add_attribute(self, *args):
8297 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8298 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8299 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8300 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8301 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8302 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8303 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8304 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8305 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8306 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8307 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8308 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8310 return _IMP_core.RigidMember_add_attribute(self, *args)
8312 def get_value(self, *args):
8314 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8315 get_value(RigidMember self, IntKey a0) -> IMP::Int
8316 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8317 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8318 get_value(RigidMember self, StringKey a0) -> IMP::String
8319 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8320 get_value(RigidMember self, ObjectKey a0) -> Object
8321 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8322 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8323 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8324 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8326 return _IMP_core.RigidMember_get_value(self, *args)
8328 def set_value(self, *args):
8330 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8331 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8332 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8333 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8334 set_value(RigidMember self, StringKey a0, IMP::String a1)
8335 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8336 set_value(RigidMember self, ObjectKey a0, Object a1)
8337 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8338 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8339 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8340 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8342 return _IMP_core.RigidMember_set_value(self, *args)
8344 def remove_attribute(self, *args):
8346 remove_attribute(RigidMember self, FloatKey a0)
8347 remove_attribute(RigidMember self, IntKey a0)
8348 remove_attribute(RigidMember self, FloatsKey a0)
8349 remove_attribute(RigidMember self, IntsKey a0)
8350 remove_attribute(RigidMember self, StringKey a0)
8351 remove_attribute(RigidMember self, ParticleIndexKey a0)
8352 remove_attribute(RigidMember self, ObjectKey a0)
8353 remove_attribute(RigidMember self, SparseFloatKey a0)
8354 remove_attribute(RigidMember self, SparseIntKey a0)
8355 remove_attribute(RigidMember self, SparseStringKey a0)
8356 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8358 return _IMP_core.RigidMember_remove_attribute(self, *args)
8360 def has_attribute(self, *args):
8362 has_attribute(RigidMember self, FloatKey a0) -> bool
8363 has_attribute(RigidMember self, IntKey a0) -> bool
8364 has_attribute(RigidMember self, FloatsKey a0) -> bool
8365 has_attribute(RigidMember self, IntsKey a0) -> bool
8366 has_attribute(RigidMember self, StringKey a0) -> bool
8367 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8368 has_attribute(RigidMember self, ObjectKey a0) -> bool
8369 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8370 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8371 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8372 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8374 return _IMP_core.RigidMember_has_attribute(self, *args)
8376 def get_derivative(self, a0):
8377 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8378 return _IMP_core.RigidMember_get_derivative(self, a0)
8381 r"""get_name(RigidMember self) -> std::string"""
8382 return _IMP_core.RigidMember_get_name(self)
8384 def clear_caches(self):
8385 r"""clear_caches(RigidMember self)"""
8386 return _IMP_core.RigidMember_clear_caches(self)
8388 def set_name(self, a0):
8389 r"""set_name(RigidMember self, std::string a0)"""
8390 return _IMP_core.RigidMember_set_name(self, a0)
8393 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8394 return _IMP_core.RigidMember_set_check_level(self, a0)
8396 def add_to_derivative(self, a0, a1, a2):
8397 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8398 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8400 def set_is_optimized(self, a0, a1):
8401 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8402 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8404 def get_is_optimized(self, a0):
8405 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8406 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8409 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8410 return _IMP_core.RigidMember_get_check_level(self)
8412 def __eq__(self, *args):
8414 __eq__(RigidMember self, RigidMember o) -> bool
8415 __eq__(RigidMember self, Particle d) -> bool
8417 return _IMP_core.RigidMember___eq__(self, *args)
8419 def __ne__(self, *args):
8421 __ne__(RigidMember self, RigidMember o) -> bool
8422 __ne__(RigidMember self, Particle d) -> bool
8424 return _IMP_core.RigidMember___ne__(self, *args)
8426 def __le__(self, *args):
8428 __le__(RigidMember self, RigidMember o) -> bool
8429 __le__(RigidMember self, Particle d) -> bool
8431 return _IMP_core.RigidMember___le__(self, *args)
8433 def __lt__(self, *args):
8435 __lt__(RigidMember self, RigidMember o) -> bool
8436 __lt__(RigidMember self, Particle d) -> bool
8438 return _IMP_core.RigidMember___lt__(self, *args)
8440 def __ge__(self, *args):
8442 __ge__(RigidMember self, RigidMember o) -> bool
8443 __ge__(RigidMember self, Particle d) -> bool
8445 return _IMP_core.RigidMember___ge__(self, *args)
8447 def __gt__(self, *args):
8449 __gt__(RigidMember self, RigidMember o) -> bool
8450 __gt__(RigidMember self, Particle d) -> bool
8452 return _IMP_core.RigidMember___gt__(self, *args)
8455 r"""__hash__(RigidMember self) -> std::size_t"""
8456 return _IMP_core.RigidMember___hash__(self)
8459 r"""__str__(RigidMember self) -> std::string"""
8460 return _IMP_core.RigidMember___str__(self)
8463 r"""__repr__(RigidMember self) -> std::string"""
8464 return _IMP_core.RigidMember___repr__(self)
8466 def _get_as_binary(self):
8467 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8468 return _IMP_core.RigidMember__get_as_binary(self)
8470 def _set_from_binary(self, p):
8471 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8472 return _IMP_core.RigidMember__set_from_binary(self, p)
8474 def __getstate__(self):
8475 p = self._get_as_binary()
8476 if len(self.__dict__) > 1:
8477 d = self.__dict__.copy()
8482 def __setstate__(self, p):
8483 if not hasattr(self,
'this'):
8485 if isinstance(p, tuple):
8487 self.__dict__.update(d)
8488 return self._set_from_binary(p)
8492 _IMP_core.RigidMember_swigregister(RigidMember)
8493 class NonRigidMember(RigidBodyMember):
8494 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8496 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8498 def show(self, *args):
8499 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8500 return _IMP_core.NonRigidMember_show(self, *args)
8502 def __init__(self, *args):
8504 __init__(NonRigidMember self) -> NonRigidMember
8505 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8506 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8507 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8509 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8510 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8513 def get_is_setup(*args):
8515 get_is_setup(_ParticleAdaptor p) -> bool
8516 get_is_setup(Model m, ParticleIndex p) -> bool
8518 return _IMP_core.NonRigidMember_get_is_setup(*args)
8520 def add_to_internal_derivatives(self, deriv_parent, da):
8521 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8522 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8524 def add_to_internal_rotational_derivatives(self, *args):
8526 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8527 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8529 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8531 def get_internal_derivatives(self):
8532 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8533 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8535 def get_internal_rotational_derivatives(self):
8536 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8537 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8539 def add_attribute(self, *args):
8541 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8542 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8543 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8544 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8545 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8546 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8547 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8548 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8549 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8550 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8551 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8552 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8554 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8556 def get_value(self, *args):
8558 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8559 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8560 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8561 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8562 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8563 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8564 get_value(NonRigidMember self, ObjectKey a0) -> Object
8565 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8566 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8567 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8568 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8570 return _IMP_core.NonRigidMember_get_value(self, *args)
8572 def set_value(self, *args):
8574 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8575 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8576 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8577 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8578 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8579 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8580 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8581 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8582 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8583 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8584 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8586 return _IMP_core.NonRigidMember_set_value(self, *args)
8588 def remove_attribute(self, *args):
8590 remove_attribute(NonRigidMember self, FloatKey a0)
8591 remove_attribute(NonRigidMember self, IntKey a0)
8592 remove_attribute(NonRigidMember self, FloatsKey a0)
8593 remove_attribute(NonRigidMember self, IntsKey a0)
8594 remove_attribute(NonRigidMember self, StringKey a0)
8595 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8596 remove_attribute(NonRigidMember self, ObjectKey a0)
8597 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8598 remove_attribute(NonRigidMember self, SparseIntKey a0)
8599 remove_attribute(NonRigidMember self, SparseStringKey a0)
8600 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8602 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8604 def has_attribute(self, *args):
8606 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8607 has_attribute(NonRigidMember self, IntKey a0) -> bool
8608 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8609 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8610 has_attribute(NonRigidMember self, StringKey a0) -> bool
8611 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8612 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8613 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8614 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8615 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8616 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8618 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8620 def get_derivative(self, a0):
8621 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8622 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8625 r"""get_name(NonRigidMember self) -> std::string"""
8626 return _IMP_core.NonRigidMember_get_name(self)
8628 def clear_caches(self):
8629 r"""clear_caches(NonRigidMember self)"""
8630 return _IMP_core.NonRigidMember_clear_caches(self)
8632 def set_name(self, a0):
8633 r"""set_name(NonRigidMember self, std::string a0)"""
8634 return _IMP_core.NonRigidMember_set_name(self, a0)
8637 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8638 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8640 def add_to_derivative(self, a0, a1, a2):
8641 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8642 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8644 def set_is_optimized(self, a0, a1):
8645 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8646 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8648 def get_is_optimized(self, a0):
8649 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8650 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8653 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8654 return _IMP_core.NonRigidMember_get_check_level(self)
8656 def __eq__(self, *args):
8658 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8659 __eq__(NonRigidMember self, Particle d) -> bool
8661 return _IMP_core.NonRigidMember___eq__(self, *args)
8663 def __ne__(self, *args):
8665 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8666 __ne__(NonRigidMember self, Particle d) -> bool
8668 return _IMP_core.NonRigidMember___ne__(self, *args)
8670 def __le__(self, *args):
8672 __le__(NonRigidMember self, NonRigidMember o) -> bool
8673 __le__(NonRigidMember self, Particle d) -> bool
8675 return _IMP_core.NonRigidMember___le__(self, *args)
8677 def __lt__(self, *args):
8679 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8680 __lt__(NonRigidMember self, Particle d) -> bool
8682 return _IMP_core.NonRigidMember___lt__(self, *args)
8684 def __ge__(self, *args):
8686 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8687 __ge__(NonRigidMember self, Particle d) -> bool
8689 return _IMP_core.NonRigidMember___ge__(self, *args)
8691 def __gt__(self, *args):
8693 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8694 __gt__(NonRigidMember self, Particle d) -> bool
8696 return _IMP_core.NonRigidMember___gt__(self, *args)
8699 r"""__hash__(NonRigidMember self) -> std::size_t"""
8700 return _IMP_core.NonRigidMember___hash__(self)
8703 r"""__str__(NonRigidMember self) -> std::string"""
8704 return _IMP_core.NonRigidMember___str__(self)
8707 r"""__repr__(NonRigidMember self) -> std::string"""
8708 return _IMP_core.NonRigidMember___repr__(self)
8710 def _get_as_binary(self):
8711 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8712 return _IMP_core.NonRigidMember__get_as_binary(self)
8714 def _set_from_binary(self, p):
8715 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8716 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8718 def __getstate__(self):
8719 p = self._get_as_binary()
8720 if len(self.__dict__) > 1:
8721 d = self.__dict__.copy()
8726 def __setstate__(self, p):
8727 if not hasattr(self,
'this'):
8729 if isinstance(p, tuple):
8731 self.__dict__.update(d)
8732 return self._set_from_binary(p)
8736 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8738 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8740 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8742 def __init__(self, *args):
8743 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8744 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8746 def do_get_inputs(self, m, pis):
8747 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8748 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8750 def get_version_info(self):
8751 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8752 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8753 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8756 r"""__str__(RigidMembersRefiner self) -> std::string"""
8757 return _IMP_core.RigidMembersRefiner___str__(self)
8760 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8761 return _IMP_core.RigidMembersRefiner___repr__(self)
8765 return _object_cast_to_RigidMembersRefiner(o)
8769 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8771 def get_rigid_members_refiner():
8772 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8773 return _IMP_core.get_rigid_members_refiner()
8777 transform(XYZ a, Transformation3D tr)
8778 transform(RigidBody a, Transformation3D tr)
8780 return _IMP_core.transform(*args)
8784 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8785 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8787 return _IMP_core.get_initial_reference_frame(*args)
8790 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8791 return _IMP_core.create_rigid_bodies(m, n, no_members)
8794 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8795 return _IMP_core.show_rigid_body_hierarchy(*args)
8798 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8799 return _IMP_core.get_root_rigid_body(m)
8801 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8803 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8805 def __init__(self, rb, constituents):
8806 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8807 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8809 def get_version_info(self):
8810 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8811 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8812 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8815 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8816 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8819 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8820 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8824 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8828 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8830 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8832 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8834 def __init__(self, *args):
8836 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8837 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8839 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8841 def get_version_info(self):
8842 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8843 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8844 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8847 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8848 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8851 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8852 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8856 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8860 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8862 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8864 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8866 def __init__(self, sc):
8867 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8868 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8870 def get_version_info(self):
8871 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8872 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8873 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8876 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8877 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8880 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8881 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8885 return _object_cast_to_RigidBodyDerivativesGeometry(o)
8889 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8891 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8893 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8895 def __init__(self, *args):
8897 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8898 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8900 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8902 def get_version_info(self):
8903 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8904 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8905 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8908 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8909 return _IMP_core.RigidBodyFrameGeometry___str__(self)
8912 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8913 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8917 return _object_cast_to_RigidBodyFrameGeometry(o)
8921 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8923 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8925 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8927 def __init__(self, sc):
8928 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8929 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8931 def get_version_info(self):
8932 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8933 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8934 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8937 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8938 return _IMP_core.RigidBodyFramesGeometry___str__(self)
8941 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8942 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8946 return _object_cast_to_RigidBodyFramesGeometry(o)
8950 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8952 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8954 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8956 def __init__(self, p):
8957 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8958 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8961 r"""__str__(RigidBodyTorque self) -> std::string"""
8962 return _IMP_core.RigidBodyTorque___str__(self)
8965 r"""__repr__(RigidBodyTorque self) -> std::string"""
8966 return _IMP_core.RigidBodyTorque___repr__(self)
8970 return _object_cast_to_RigidBodyTorque(o)
8972 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8975 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8976 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8977 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8979 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8982 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8983 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8985 def get_close_pairs(self, *args):
8987 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8988 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8989 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8990 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8992 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8994 def do_get_inputs(self, m, pis):
8995 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8996 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8998 def get_version_info(self):
8999 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9000 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9001 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9004 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9005 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9008 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9009 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9013 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9017 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9019 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9021 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9023 def __init__(self, *args):
9025 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9026 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9027 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9029 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9031 def do_add_score_and_derivatives(self, sa, ss):
9032 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9033 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9035 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9036 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)"""
9037 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9039 def do_get_inputs(self):
9040 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9041 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9043 def get_restraints(self):
9044 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9045 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9047 def set_restraints(self, d):
9048 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9049 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9051 def get_number_of_restraints(self):
9052 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9053 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9055 def clear_restraints(self):
9056 r"""clear_restraints(RestraintsScoringFunction self)"""
9057 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9059 def get_restraint(self, i):
9060 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9061 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9063 def erase_restraint(self, i):
9064 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9065 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9068 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9069 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9072 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9073 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9075 def _python_index_restraint(self, r, start, stop):
9076 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9077 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9078 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)
9079 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9080 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9081 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9083 def get_version_info(self):
9084 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9085 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9086 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9089 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9090 return _IMP_core.RestraintsScoringFunction___str__(self)
9093 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9094 return _IMP_core.RestraintsScoringFunction___repr__(self)
9098 return _object_cast_to_RestraintsScoringFunction(o)
9101 def _get_as_binary(self):
9102 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9103 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9105 def _set_from_binary(self, p):
9106 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9107 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9109 def __getstate__(self):
9110 p = self._get_as_binary()
9111 if len(self.__dict__) > 1:
9112 d = self.__dict__.copy()
9117 def __setstate__(self, p):
9118 if not hasattr(self,
'this'):
9120 if isinstance(p, tuple):
9122 self.__dict__.update(d)
9123 return self._set_from_binary(p)
9127 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9128 class RigidClosePairsFinder(ClosePairsFinder):
9129 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9131 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9133 def __init__(self, cpf=None):
9134 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9135 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9137 def do_get_inputs(self, m, pis):
9138 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9139 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9141 def get_close_pairs(self, *args):
9143 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9144 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9145 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9146 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9147 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9149 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9151 def get_version_info(self):
9152 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9153 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9154 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9157 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9158 return _IMP_core.RigidClosePairsFinder___str__(self)
9161 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9162 return _IMP_core.RigidClosePairsFinder___repr__(self)
9166 return _object_cast_to_RigidClosePairsFinder(o)
9169 def _get_as_binary(self):
9170 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9171 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9173 def _set_from_binary(self, p):
9174 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9175 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9177 def __getstate__(self):
9178 p = self._get_as_binary()
9179 if len(self.__dict__) > 1:
9180 d = self.__dict__.copy()
9185 def __setstate__(self, p):
9186 if not hasattr(self,
'this'):
9188 if isinstance(p, tuple):
9190 self.__dict__.update(d)
9191 return self._set_from_binary(p)
9195 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9197 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9199 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9200 __repr__ = _swig_repr
9202 def __init__(self, *args):
9204 SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9205 __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9207 _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9209 def do_get_inputs(self, m, pis):
9210 r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9211 return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9213 def get_version_info(self):
9214 r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9215 return _IMP_core._SphereDistancePairScore_get_version_info(self)
9216 __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9220 return _object_cast_to__SphereDistancePairScore(o)
9223 def _get_as_binary(self):
9224 r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9225 return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9227 def _set_from_binary(self, p):
9228 r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9229 return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9231 def __getstate__(self):
9232 p = self._get_as_binary()
9233 if len(self.__dict__) > 1:
9234 d = self.__dict__.copy()
9239 def __setstate__(self, p):
9240 if not hasattr(self,
'this'):
9242 if isinstance(p, tuple):
9244 self.__dict__.update(d)
9245 return self._set_from_binary(p)
9249 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9250 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9251 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9253 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9255 def __init__(self, *args):
9257 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9258 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9260 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9262 def do_get_inputs(self, m, pis):
9263 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9264 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9266 def get_version_info(self):
9267 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9268 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9269 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9272 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9273 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9276 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9277 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9281 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9284 def _get_as_binary(self):
9285 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9286 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9288 def _set_from_binary(self, p):
9289 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9290 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9292 def __getstate__(self):
9293 p = self._get_as_binary()
9294 if len(self.__dict__) > 1:
9295 d = self.__dict__.copy()
9300 def __setstate__(self, p):
9301 if not hasattr(self,
'this'):
9303 if isinstance(p, tuple):
9305 self.__dict__.update(d)
9306 return self._set_from_binary(p)
9310 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9311 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9312 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9314 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9316 def __init__(self, d0, k):
9317 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9318 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9320 def get_rest_length(self):
9321 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9322 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9324 def get_stiffness(self):
9325 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9326 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9328 def do_get_inputs(self, m, pis):
9329 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9330 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9332 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9333 r"""evaluate_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9334 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9336 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9337 r"""evaluate_indexes_scores(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9338 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9340 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9341 r"""evaluate_indexes_delta(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9342 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9344 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9345 r"""evaluate_if_good_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9346 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9348 def get_version_info(self):
9349 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9350 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9351 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9354 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9355 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9358 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9359 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9363 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9367 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9369 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9371 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9373 def __init__(self, *args):
9375 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9376 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9378 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9380 def do_get_inputs(self, m, pis):
9381 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9382 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9384 def get_version_info(self):
9385 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9386 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9387 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9390 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9391 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9394 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9395 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9399 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9402 def _get_as_binary(self):
9403 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9404 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9406 def _set_from_binary(self, p):
9407 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9408 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9410 def __getstate__(self):
9411 p = self._get_as_binary()
9412 if len(self.__dict__) > 1:
9413 d = self.__dict__.copy()
9418 def __setstate__(self, p):
9419 if not hasattr(self,
'this'):
9421 if isinstance(p, tuple):
9423 self.__dict__.update(d)
9424 return self._set_from_binary(p)
9428 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9430 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9432 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9434 def __init__(self, *args):
9435 r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9436 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9438 def do_get_inputs(self, m, pis):
9439 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9440 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9442 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9443 r"""evaluate_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9444 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9446 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9447 r"""evaluate_indexes_scores(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9448 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9450 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9451 r"""evaluate_indexes_delta(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9452 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9454 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9455 r"""evaluate_if_good_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9456 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9458 def get_version_info(self):
9459 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9460 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9461 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9464 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9465 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9468 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9469 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9473 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9477 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9479 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9481 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9483 def __init__(self, *args):
9484 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9485 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9487 def do_get_inputs(self, m, pis):
9488 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9489 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9491 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9492 r"""evaluate_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9493 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9495 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9496 r"""evaluate_indexes_scores(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9497 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9499 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9500 r"""evaluate_indexes_delta(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9501 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9503 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9504 r"""evaluate_if_good_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9505 return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9507 def get_version_info(self):
9508 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9509 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9510 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9513 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9514 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9517 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9518 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9522 return _object_cast_to_WeightedSphereDistancePairScore(o)
9526 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9528 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9530 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9532 def __init__(self, *args):
9534 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9535 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9537 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9539 def do_get_inputs(self, m, pis):
9540 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9541 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9543 def get_version_info(self):
9544 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9545 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9546 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9549 r"""__str__(SoftSpherePairScore self) -> std::string"""
9550 return _IMP_core.SoftSpherePairScore___str__(self)
9553 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9554 return _IMP_core.SoftSpherePairScore___repr__(self)
9558 return _object_cast_to_SoftSpherePairScore(o)
9561 def _get_as_binary(self):
9562 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9563 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9565 def _set_from_binary(self, p):
9566 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9567 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9569 def __getstate__(self):
9570 p = self._get_as_binary()
9571 if len(self.__dict__) > 1:
9572 d = self.__dict__.copy()
9577 def __setstate__(self, p):
9578 if not hasattr(self,
'this'):
9580 if isinstance(p, tuple):
9582 self.__dict__.update(d)
9583 return self._set_from_binary(p)
9587 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9589 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9591 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9593 def __init__(self, *args):
9594 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9595 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9597 def do_get_inputs(self, m, pis):
9598 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9599 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9601 def get_version_info(self):
9602 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9603 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9604 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9607 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9608 return _IMP_core.SurfaceDistancePairScore___str__(self)
9611 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9612 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9616 return _object_cast_to_SurfaceDistancePairScore(o)
9620 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9622 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9624 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9626 def __init__(self, *args):
9627 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9628 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9630 def do_get_inputs(self, m, pis):
9631 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9632 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9634 def get_version_info(self):
9635 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9636 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9637 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9640 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9641 return _IMP_core.SurfaceHeightPairScore___str__(self)
9644 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9645 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9649 return _object_cast_to_SurfaceHeightPairScore(o)
9653 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9655 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9657 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9659 def __init__(self, *args):
9660 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9661 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9663 def do_get_inputs(self, m, pis):
9664 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9665 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9667 def get_version_info(self):
9668 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9669 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9670 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9673 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9674 return _IMP_core.SurfaceDepthPairScore___str__(self)
9677 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9678 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9682 return _object_cast_to_SurfaceDepthPairScore(o)
9686 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9688 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9690 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9692 def __init__(self, *args):
9693 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9694 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9696 def do_get_inputs(self, m, pis):
9697 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9698 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9700 def get_version_info(self):
9701 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9702 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9703 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9706 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9707 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9710 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9711 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9715 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9719 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9721 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9723 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9725 def __init__(self, *args):
9726 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9727 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9729 def do_get_inputs(self, m, pis):
9730 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9731 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9733 def get_version_info(self):
9734 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9735 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9736 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9739 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9740 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9743 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9744 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9748 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9752 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9754 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9756 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9758 def __init__(self, *args):
9759 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9760 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9762 def do_get_inputs(self, m, pis):
9763 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9764 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9766 def get_version_info(self):
9767 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9768 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9769 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9772 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9773 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9776 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9777 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9781 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9785 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9787 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9789 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9791 def __init__(self, *args):
9792 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9793 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9795 def do_get_inputs(self, m, pis):
9796 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9797 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9799 def get_version_info(self):
9800 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9801 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9802 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9805 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9806 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9809 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9810 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9814 return _object_cast_to_SoftSuperSurfacePairScore(o)
9818 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9820 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9822 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9824 def __init__(self, *args):
9825 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9826 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9828 def do_get_inputs(self, m, pis):
9829 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9830 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9832 def get_version_info(self):
9833 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9834 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9835 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9838 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9839 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9842 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9843 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9847 return _object_cast_to_SoftSubSurfacePairScore(o)
9851 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9853 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9855 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9857 def __init__(self, link_num, link_length):
9858 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9859 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9861 def get_version_info(self):
9862 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9863 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9864 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9866 def get_link_number(self):
9867 r"""get_link_number(SurfaceTetheredChain self) -> int"""
9868 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9870 def get_link_length(self):
9871 r"""get_link_length(SurfaceTetheredChain self) -> double"""
9872 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9874 def set_link_number(self, N):
9875 r"""set_link_number(SurfaceTetheredChain self, int N)"""
9876 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9878 def set_link_length(self, b):
9879 r"""set_link_length(SurfaceTetheredChain self, double b)"""
9880 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9882 def get_distance_at_minimum(self):
9883 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9884 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9886 def get_average_distance(self):
9887 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9888 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9891 r"""__str__(SurfaceTetheredChain self) -> std::string"""
9892 return _IMP_core.SurfaceTetheredChain___str__(self)
9895 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9896 return _IMP_core.SurfaceTetheredChain___repr__(self)
9900 return _object_cast_to_SurfaceTetheredChain(o)
9904 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9906 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9908 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9910 def __init__(self, m, ss, rbs):
9911 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9912 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9914 def do_get_inputs(self):
9915 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9916 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9918 def do_get_outputs(self):
9919 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9920 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9922 def get_version_info(self):
9923 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9924 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9925 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9928 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9929 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9932 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9933 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9937 return _object_cast_to_SurfaceSymmetryConstraint(o)
9941 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9943 r"""Proxy of C++ IMP::core::SteepestDescent class."""
9945 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9947 def __init__(self, *args):
9948 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9949 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9951 def do_optimize(self, max_steps):
9952 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9953 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9955 def get_version_info(self):
9956 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9957 return _IMP_core.SteepestDescent_get_version_info(self)
9958 __swig_destroy__ = _IMP_core.delete_SteepestDescent
9960 def set_threshold(self, t):
9961 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9962 return _IMP_core.SteepestDescent_set_threshold(self, t)
9964 def set_step_size(self, t):
9965 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9966 return _IMP_core.SteepestDescent_set_step_size(self, t)
9968 def set_maximum_step_size(self, t):
9969 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9970 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9973 r"""__str__(SteepestDescent self) -> std::string"""
9974 return _IMP_core.SteepestDescent___str__(self)
9977 r"""__repr__(SteepestDescent self) -> std::string"""
9978 return _IMP_core.SteepestDescent___repr__(self)
9982 return _object_cast_to_SteepestDescent(o)
9986 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9988 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9990 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9992 def __init__(self, f, transformation):
9993 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9994 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9996 def set_transformation(self, rot):
9997 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9998 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
10000 def do_get_inputs(self, m, pis):
10001 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10002 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10004 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10005 r"""evaluate_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10006 return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10008 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10009 r"""evaluate_indexes_scores(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10010 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10012 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10013 r"""evaluate_indexes_delta(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10014 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10016 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10017 r"""evaluate_if_good_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10018 return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10020 def get_version_info(self):
10021 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10022 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10023 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10026 r"""__str__(TransformedDistancePairScore self) -> std::string"""
10027 return _IMP_core.TransformedDistancePairScore___str__(self)
10029 def __repr__(self):
10030 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10031 return _IMP_core.TransformedDistancePairScore___repr__(self)
10035 return _object_cast_to_TransformedDistancePairScore(o)
10039 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10041 r"""Proxy of C++ IMP::core::TypedPairScore class."""
10043 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10045 def __init__(self, typekey, allow_invalid_types=True):
10046 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10047 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10049 def set_particle_type(self, arg2):
10050 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10051 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10053 def set_pair_score(self, ps, atype, btype):
10054 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10055 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10057 def do_get_inputs(self, m, pis):
10058 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10059 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10061 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10062 r"""evaluate_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10063 return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10065 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10066 r"""evaluate_indexes_scores(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10067 return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10069 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10070 r"""evaluate_indexes_delta(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10071 return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10073 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10074 r"""evaluate_if_good_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10075 return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10077 def get_version_info(self):
10078 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10079 return _IMP_core.TypedPairScore_get_version_info(self)
10080 __swig_destroy__ = _IMP_core.delete_TypedPairScore
10083 r"""__str__(TypedPairScore self) -> std::string"""
10084 return _IMP_core.TypedPairScore___str__(self)
10086 def __repr__(self):
10087 r"""__repr__(TypedPairScore self) -> std::string"""
10088 return _IMP_core.TypedPairScore___repr__(self)
10092 return _object_cast_to_TypedPairScore(o)
10096 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10097 class RigidBodyDistancePairScore(KClosePairsPairScore):
10098 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10100 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10102 def __init__(self, ps, r):
10103 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10104 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10107 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10108 return _IMP_core.RigidBodyDistancePairScore___str__(self)
10110 def __repr__(self):
10111 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10112 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10116 return _object_cast_to_RigidBodyDistancePairScore(o)
10118 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10121 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10123 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10125 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10127 def __init__(self, f):
10128 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10129 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10131 def do_get_inputs(self, m, pis):
10132 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10133 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10135 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10136 r"""evaluate_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10137 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10139 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10140 r"""evaluate_indexes_scores(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10141 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10143 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10144 r"""evaluate_indexes_delta(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10145 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10147 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10148 r"""evaluate_if_good_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10149 return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10151 def get_version_info(self):
10152 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10153 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10154 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10157 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10158 return _IMP_core.RigidBodyAnglePairScore___str__(self)
10160 def __repr__(self):
10161 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10162 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10166 return _object_cast_to_RigidBodyAnglePairScore(o)
10170 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10172 r"""Proxy of C++ IMP::core::TableRefiner class."""
10174 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10176 def __init__(self):
10177 r"""__init__(TableRefiner self) -> TableRefiner"""
10178 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10181 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10182 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10184 def remove_particle(self, p):
10185 r"""remove_particle(TableRefiner self, Particle p)"""
10186 return _IMP_core.TableRefiner_remove_particle(self, p)
10188 def set_particle(self, p, ps):
10189 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10190 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10192 def do_get_inputs(self, m, pis):
10193 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10194 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10196 def get_version_info(self):
10197 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10198 return _IMP_core.TableRefiner_get_version_info(self)
10199 __swig_destroy__ = _IMP_core.delete_TableRefiner
10202 r"""__str__(TableRefiner self) -> std::string"""
10203 return _IMP_core.TableRefiner___str__(self)
10205 def __repr__(self):
10206 r"""__repr__(TableRefiner self) -> std::string"""
10207 return _IMP_core.TableRefiner___repr__(self)
10211 return _object_cast_to_TableRefiner(o)
10215 _IMP_core.TableRefiner_swigregister(TableRefiner)
10216 LOWER = _IMP_core.LOWER
10218 BOTH = _IMP_core.BOTH
10220 UPPER = _IMP_core.UPPER
10223 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10227 def __init__(self, *args):
10228 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10229 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10231 def set_bounding_box(self, bb):
10232 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10233 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10235 def set_number_of_attempts(self, att):
10236 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10237 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10239 def set_number_of_monte_carlo_steps(self, cg):
10240 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10241 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10243 def set_number_of_conjugate_gradient_steps(self, cg):
10244 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10245 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10247 def set_max_monte_carlo_step_size(self, *args):
10249 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10250 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10252 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10254 def set_is_refining(self, tf):
10255 r"""set_is_refining(MCCGSampler self, bool tf)"""
10256 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10258 def set_local_optimizer(self, opt):
10259 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10260 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10262 def set_save_rejected_configurations(self, tf):
10263 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10264 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10266 def get_rejected_configurations(self):
10267 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10268 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10269 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)
10270 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10271 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10272 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10274 def remove_optimizer_state(self, d):
10275 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10276 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10278 def _python_index_optimizer_state(self, d, start, stop):
10279 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10280 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10282 def remove_optimizer_states(self, d):
10283 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10284 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10286 def set_optimizer_states(self, ps):
10287 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10288 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10290 def set_optimizer_states_order(self, objs):
10291 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10292 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10294 def add_optimizer_state(self, obj):
10295 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10296 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10298 def add_optimizer_states(self, objs):
10299 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10300 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10302 def clear_optimizer_states(self):
10303 r"""clear_optimizer_states(MCCGSampler self)"""
10304 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10306 def get_number_of_optimizer_states(self):
10307 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10308 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10310 def get_has_optimizer_states(self):
10311 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10312 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10314 def get_optimizer_state(self, i):
10315 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10316 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10318 def get_optimizer_states(self):
10319 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10320 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10322 def erase_optimizer_state(self, i):
10323 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10324 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10326 def reserve_optimizer_states(self, sz):
10327 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10328 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10330 def do_sample(self):
10331 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10332 return _IMP_core.MCCGSampler_do_sample(self)
10334 def get_version_info(self):
10335 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10336 return _IMP_core.MCCGSampler_get_version_info(self)
10337 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10340 r"""__str__(MCCGSampler self) -> std::string"""
10341 return _IMP_core.MCCGSampler___str__(self)
10343 def __repr__(self):
10344 r"""__repr__(MCCGSampler self) -> std::string"""
10345 return _IMP_core.MCCGSampler___repr__(self)
10349 return _object_cast_to_MCCGSampler(o)
10353 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10355 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10357 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10359 def __init__(self, *args):
10360 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10361 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10363 def do_get_inputs(self):
10364 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10365 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10367 def get_version_info(self):
10368 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10369 return _IMP_core.MinimumRestraint_get_version_info(self)
10370 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10371 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)
10372 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10373 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10374 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10376 def remove_restraint(self, d):
10377 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10378 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10380 def _python_index_restraint(self, d, start, stop):
10381 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10382 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10384 def remove_restraints(self, d):
10385 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10386 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10388 def set_restraints(self, ps):
10389 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10390 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10392 def set_restraints_order(self, objs):
10393 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10394 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10397 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10398 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10401 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10402 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10404 def clear_restraints(self):
10405 r"""clear_restraints(MinimumRestraint self)"""
10406 return _IMP_core.MinimumRestraint_clear_restraints(self)
10408 def get_number_of_restraints(self):
10409 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10410 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10412 def get_has_restraints(self):
10413 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10414 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10416 def get_restraint(self, i):
10417 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10418 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10420 def get_restraints(self):
10421 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10422 return _IMP_core.MinimumRestraint_get_restraints(self)
10424 def erase_restraint(self, i):
10425 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10426 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10428 def reserve_restraints(self, sz):
10429 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10430 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10433 r"""__str__(MinimumRestraint self) -> std::string"""
10434 return _IMP_core.MinimumRestraint___str__(self)
10436 def __repr__(self):
10437 r"""__repr__(MinimumRestraint self) -> std::string"""
10438 return _IMP_core.MinimumRestraint___repr__(self)
10442 return _object_cast_to_MinimumRestraint(o)
10446 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10447 class Gaussian(RigidBody):
10448 r"""Proxy of C++ IMP::core::Gaussian class."""
10450 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10452 def __init__(self, *args):
10454 __init__(Gaussian self) -> Gaussian
10455 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10456 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10458 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10460 def show(self, *args):
10461 r"""show(Gaussian self, _ostream out=std::cout)"""
10462 return _IMP_core.Gaussian_show(self, *args)
10465 def setup_particle(*args):
10467 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10468 setup_particle(_ParticleAdaptor pa) -> Gaussian
10469 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10470 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10472 return _IMP_core.Gaussian_setup_particle(*args)
10475 def get_local_covariance_key():
10476 r"""get_local_covariance_key() -> ObjectKey"""
10477 return _IMP_core.Gaussian_get_local_covariance_key()
10480 def get_global_covariance_key():
10481 r"""get_global_covariance_key() -> ObjectKey"""
10482 return _IMP_core.Gaussian_get_global_covariance_key()
10485 def get_is_setup(*args):
10487 get_is_setup(_ParticleAdaptor p) -> bool
10488 get_is_setup(Model m, ParticleIndex pi) -> bool
10490 return _IMP_core.Gaussian_get_is_setup(*args)
10492 def get_local_covariance(self):
10493 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10494 return _IMP_core.Gaussian_get_local_covariance(self)
10496 def get_variances(self):
10497 r"""get_variances(Gaussian self) -> Vector3D"""
10498 return _IMP_core.Gaussian_get_variances(self)
10500 def get_global_covariance(self):
10501 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10502 return _IMP_core.Gaussian_get_global_covariance(self)
10504 def get_gaussian(self):
10505 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10506 return _IMP_core.Gaussian_get_gaussian(self)
10508 def set_gaussian(self, g):
10509 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10510 return _IMP_core.Gaussian_set_gaussian(self, g)
10512 def set_local_covariance(self, covar):
10513 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10514 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10516 def set_variances(self, v):
10517 r"""set_variances(Gaussian self, Vector3D v)"""
10518 return _IMP_core.Gaussian_set_variances(self, v)
10520 def set_global_covariance(self, covar):
10521 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10522 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10524 def update_global_covariance(self):
10525 r"""update_global_covariance(Gaussian self)"""
10526 return _IMP_core.Gaussian_update_global_covariance(self)
10528 def add_attribute(self, *args):
10530 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10531 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10532 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10533 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10534 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10535 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10536 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10537 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10538 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10539 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10540 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10541 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10543 return _IMP_core.Gaussian_add_attribute(self, *args)
10545 def get_value(self, *args):
10547 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10548 get_value(Gaussian self, IntKey a0) -> IMP::Int
10549 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10550 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10551 get_value(Gaussian self, StringKey a0) -> IMP::String
10552 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10553 get_value(Gaussian self, ObjectKey a0) -> Object
10554 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10555 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10556 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10557 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10559 return _IMP_core.Gaussian_get_value(self, *args)
10561 def set_value(self, *args):
10563 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10564 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10565 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10566 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10567 set_value(Gaussian self, StringKey a0, IMP::String a1)
10568 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10569 set_value(Gaussian self, ObjectKey a0, Object a1)
10570 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10571 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10572 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10573 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10575 return _IMP_core.Gaussian_set_value(self, *args)
10577 def remove_attribute(self, *args):
10579 remove_attribute(Gaussian self, FloatKey a0)
10580 remove_attribute(Gaussian self, IntKey a0)
10581 remove_attribute(Gaussian self, FloatsKey a0)
10582 remove_attribute(Gaussian self, IntsKey a0)
10583 remove_attribute(Gaussian self, StringKey a0)
10584 remove_attribute(Gaussian self, ParticleIndexKey a0)
10585 remove_attribute(Gaussian self, ObjectKey a0)
10586 remove_attribute(Gaussian self, SparseFloatKey a0)
10587 remove_attribute(Gaussian self, SparseIntKey a0)
10588 remove_attribute(Gaussian self, SparseStringKey a0)
10589 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10591 return _IMP_core.Gaussian_remove_attribute(self, *args)
10593 def has_attribute(self, *args):
10595 has_attribute(Gaussian self, FloatKey a0) -> bool
10596 has_attribute(Gaussian self, IntKey a0) -> bool
10597 has_attribute(Gaussian self, FloatsKey a0) -> bool
10598 has_attribute(Gaussian self, IntsKey a0) -> bool
10599 has_attribute(Gaussian self, StringKey a0) -> bool
10600 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10601 has_attribute(Gaussian self, ObjectKey a0) -> bool
10602 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10603 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10604 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10605 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10607 return _IMP_core.Gaussian_has_attribute(self, *args)
10609 def get_derivative(self, a0):
10610 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10611 return _IMP_core.Gaussian_get_derivative(self, a0)
10613 def get_name(self):
10614 r"""get_name(Gaussian self) -> std::string"""
10615 return _IMP_core.Gaussian_get_name(self)
10617 def clear_caches(self):
10618 r"""clear_caches(Gaussian self)"""
10619 return _IMP_core.Gaussian_clear_caches(self)
10621 def set_name(self, a0):
10622 r"""set_name(Gaussian self, std::string a0)"""
10623 return _IMP_core.Gaussian_set_name(self, a0)
10626 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10627 return _IMP_core.Gaussian_set_check_level(self, a0)
10629 def add_to_derivative(self, a0, a1, a2):
10630 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10631 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10633 def set_is_optimized(self, a0, a1):
10634 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10635 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10637 def get_is_optimized(self, a0):
10638 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10639 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10642 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10643 return _IMP_core.Gaussian_get_check_level(self)
10645 def __eq__(self, *args):
10647 __eq__(Gaussian self, Gaussian o) -> bool
10648 __eq__(Gaussian self, Particle d) -> bool
10650 return _IMP_core.Gaussian___eq__(self, *args)
10652 def __ne__(self, *args):
10654 __ne__(Gaussian self, Gaussian o) -> bool
10655 __ne__(Gaussian self, Particle d) -> bool
10657 return _IMP_core.Gaussian___ne__(self, *args)
10659 def __le__(self, *args):
10661 __le__(Gaussian self, Gaussian o) -> bool
10662 __le__(Gaussian self, Particle d) -> bool
10664 return _IMP_core.Gaussian___le__(self, *args)
10666 def __lt__(self, *args):
10668 __lt__(Gaussian self, Gaussian o) -> bool
10669 __lt__(Gaussian self, Particle d) -> bool
10671 return _IMP_core.Gaussian___lt__(self, *args)
10673 def __ge__(self, *args):
10675 __ge__(Gaussian self, Gaussian o) -> bool
10676 __ge__(Gaussian self, Particle d) -> bool
10678 return _IMP_core.Gaussian___ge__(self, *args)
10680 def __gt__(self, *args):
10682 __gt__(Gaussian self, Gaussian o) -> bool
10683 __gt__(Gaussian self, Particle d) -> bool
10685 return _IMP_core.Gaussian___gt__(self, *args)
10687 def __hash__(self):
10688 r"""__hash__(Gaussian self) -> std::size_t"""
10689 return _IMP_core.Gaussian___hash__(self)
10692 r"""__str__(Gaussian self) -> std::string"""
10693 return _IMP_core.Gaussian___str__(self)
10695 def __repr__(self):
10696 r"""__repr__(Gaussian self) -> std::string"""
10697 return _IMP_core.Gaussian___repr__(self)
10699 def _get_as_binary(self):
10700 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10701 return _IMP_core.Gaussian__get_as_binary(self)
10703 def _set_from_binary(self, p):
10704 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10705 return _IMP_core.Gaussian__set_from_binary(self, p)
10707 def __getstate__(self):
10708 p = self._get_as_binary()
10709 if len(self.__dict__) > 1:
10710 d = self.__dict__.copy()
10715 def __setstate__(self, p):
10716 if not hasattr(self,
'this'):
10718 if isinstance(p, tuple):
10720 self.__dict__.update(d)
10721 return self._set_from_binary(p)
10723 __swig_destroy__ = _IMP_core.delete_Gaussian
10726 _IMP_core.Gaussian_swigregister(Gaussian)
10728 r"""Proxy of C++ IMP::core::PairRestraint class."""
10730 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10732 def __init__(self, *args):
10734 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10735 __init__(PairRestraint self) -> PairRestraint
10737 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10739 def get_version_info(self):
10740 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10741 return _IMP_core.PairRestraint_get_version_info(self)
10742 __swig_destroy__ = _IMP_core.delete_PairRestraint
10745 r"""__str__(PairRestraint self) -> std::string"""
10746 return _IMP_core.PairRestraint___str__(self)
10748 def __repr__(self):
10749 r"""__repr__(PairRestraint self) -> std::string"""
10750 return _IMP_core.PairRestraint___repr__(self)
10754 return _object_cast_to_PairRestraint(o)
10757 def _get_as_binary(self):
10758 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10759 return _IMP_core.PairRestraint__get_as_binary(self)
10761 def _set_from_binary(self, p):
10762 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10763 return _IMP_core.PairRestraint__set_from_binary(self, p)
10765 def __getstate__(self):
10766 p = self._get_as_binary()
10767 if len(self.__dict__) > 1:
10768 d = self.__dict__.copy()
10773 def __setstate__(self, p):
10774 if not hasattr(self,
'this'):
10776 if isinstance(p, tuple):
10778 self.__dict__.update(d)
10779 return self._set_from_binary(p)
10783 _IMP_core.PairRestraint_swigregister(PairRestraint)
10785 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10787 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10789 def __init__(self, *args):
10791 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10792 __init__(SingletonRestraint self) -> SingletonRestraint
10794 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10796 def get_version_info(self):
10797 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10798 return _IMP_core.SingletonRestraint_get_version_info(self)
10799 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10802 r"""__str__(SingletonRestraint self) -> std::string"""
10803 return _IMP_core.SingletonRestraint___str__(self)
10805 def __repr__(self):
10806 r"""__repr__(SingletonRestraint self) -> std::string"""
10807 return _IMP_core.SingletonRestraint___repr__(self)
10811 return _object_cast_to_SingletonRestraint(o)
10814 def _get_as_binary(self):
10815 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10816 return _IMP_core.SingletonRestraint__get_as_binary(self)
10818 def _set_from_binary(self, p):
10819 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10820 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10822 def __getstate__(self):
10823 p = self._get_as_binary()
10824 if len(self.__dict__) > 1:
10825 d = self.__dict__.copy()
10830 def __setstate__(self, p):
10831 if not hasattr(self,
'this'):
10833 if isinstance(p, tuple):
10835 self.__dict__.update(d)
10836 return self._set_from_binary(p)
10840 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10842 r"""Proxy of C++ IMP::core::TripletRestraint class."""
10844 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10846 def __init__(self, *args):
10848 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10849 __init__(TripletRestraint self) -> TripletRestraint
10851 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10853 def get_version_info(self):
10854 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10855 return _IMP_core.TripletRestraint_get_version_info(self)
10856 __swig_destroy__ = _IMP_core.delete_TripletRestraint
10859 r"""__str__(TripletRestraint self) -> std::string"""
10860 return _IMP_core.TripletRestraint___str__(self)
10862 def __repr__(self):
10863 r"""__repr__(TripletRestraint self) -> std::string"""
10864 return _IMP_core.TripletRestraint___repr__(self)
10868 return _object_cast_to_TripletRestraint(o)
10871 def _get_as_binary(self):
10872 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10873 return _IMP_core.TripletRestraint__get_as_binary(self)
10875 def _set_from_binary(self, p):
10876 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10877 return _IMP_core.TripletRestraint__set_from_binary(self, p)
10879 def __getstate__(self):
10880 p = self._get_as_binary()
10881 if len(self.__dict__) > 1:
10882 d = self.__dict__.copy()
10887 def __setstate__(self, p):
10888 if not hasattr(self,
'this'):
10890 if isinstance(p, tuple):
10892 self.__dict__.update(d)
10893 return self._set_from_binary(p)
10897 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10899 r"""Proxy of C++ IMP::core::QuadRestraint class."""
10901 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10903 def __init__(self, *args):
10905 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10906 __init__(QuadRestraint self) -> QuadRestraint
10908 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10910 def get_version_info(self):
10911 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10912 return _IMP_core.QuadRestraint_get_version_info(self)
10913 __swig_destroy__ = _IMP_core.delete_QuadRestraint
10916 r"""__str__(QuadRestraint self) -> std::string"""
10917 return _IMP_core.QuadRestraint___str__(self)
10919 def __repr__(self):
10920 r"""__repr__(QuadRestraint self) -> std::string"""
10921 return _IMP_core.QuadRestraint___repr__(self)
10925 return _object_cast_to_QuadRestraint(o)
10928 def _get_as_binary(self):
10929 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10930 return _IMP_core.QuadRestraint__get_as_binary(self)
10932 def _set_from_binary(self, p):
10933 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10934 return _IMP_core.QuadRestraint__set_from_binary(self, p)
10936 def __getstate__(self):
10937 p = self._get_as_binary()
10938 if len(self.__dict__) > 1:
10939 d = self.__dict__.copy()
10944 def __setstate__(self, p):
10945 if not hasattr(self,
'this'):
10947 if isinstance(p, tuple):
10949 self.__dict__.update(d)
10950 return self._set_from_binary(p)
10954 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10956 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10958 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10960 def __init__(self, *args):
10962 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10963 __init__(SingletonConstraint self) -> SingletonConstraint
10965 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10967 def get_version_info(self):
10968 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10969 return _IMP_core.SingletonConstraint_get_version_info(self)
10970 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10973 r"""__str__(SingletonConstraint self) -> std::string"""
10974 return _IMP_core.SingletonConstraint___str__(self)
10976 def __repr__(self):
10977 r"""__repr__(SingletonConstraint self) -> std::string"""
10978 return _IMP_core.SingletonConstraint___repr__(self)
10982 return _object_cast_to_SingletonConstraint(o)
10985 def _get_as_binary(self):
10986 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10987 return _IMP_core.SingletonConstraint__get_as_binary(self)
10989 def _set_from_binary(self, p):
10990 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10991 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10993 def __getstate__(self):
10994 p = self._get_as_binary()
10995 if len(self.__dict__) > 1:
10996 d = self.__dict__.copy()
11001 def __setstate__(self, p):
11002 if not hasattr(self,
'this'):
11004 if isinstance(p, tuple):
11006 self.__dict__.update(d)
11007 return self._set_from_binary(p)
11011 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11013 r"""Proxy of C++ IMP::core::PairConstraint class."""
11015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11017 def __init__(self, *args):
11019 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11020 __init__(PairConstraint self) -> PairConstraint
11022 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11024 def get_version_info(self):
11025 r"""get_version_info(PairConstraint self) -> VersionInfo"""
11026 return _IMP_core.PairConstraint_get_version_info(self)
11027 __swig_destroy__ = _IMP_core.delete_PairConstraint
11030 r"""__str__(PairConstraint self) -> std::string"""
11031 return _IMP_core.PairConstraint___str__(self)
11033 def __repr__(self):
11034 r"""__repr__(PairConstraint self) -> std::string"""
11035 return _IMP_core.PairConstraint___repr__(self)
11039 return _object_cast_to_PairConstraint(o)
11042 def _get_as_binary(self):
11043 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11044 return _IMP_core.PairConstraint__get_as_binary(self)
11046 def _set_from_binary(self, p):
11047 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11048 return _IMP_core.PairConstraint__set_from_binary(self, p)
11050 def __getstate__(self):
11051 p = self._get_as_binary()
11052 if len(self.__dict__) > 1:
11053 d = self.__dict__.copy()
11058 def __setstate__(self, p):
11059 if not hasattr(self,
'this'):
11061 if isinstance(p, tuple):
11063 self.__dict__.update(d)
11064 return self._set_from_binary(p)
11068 _IMP_core.PairConstraint_swigregister(PairConstraint)
11070 r"""Proxy of C++ IMP::core::TripletConstraint class."""
11072 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11074 def __init__(self, *args):
11076 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11077 __init__(TripletConstraint self) -> TripletConstraint
11079 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11081 def get_version_info(self):
11082 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11083 return _IMP_core.TripletConstraint_get_version_info(self)
11084 __swig_destroy__ = _IMP_core.delete_TripletConstraint
11087 r"""__str__(TripletConstraint self) -> std::string"""
11088 return _IMP_core.TripletConstraint___str__(self)
11090 def __repr__(self):
11091 r"""__repr__(TripletConstraint self) -> std::string"""
11092 return _IMP_core.TripletConstraint___repr__(self)
11096 return _object_cast_to_TripletConstraint(o)
11099 def _get_as_binary(self):
11100 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11101 return _IMP_core.TripletConstraint__get_as_binary(self)
11103 def _set_from_binary(self, p):
11104 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11105 return _IMP_core.TripletConstraint__set_from_binary(self, p)
11107 def __getstate__(self):
11108 p = self._get_as_binary()
11109 if len(self.__dict__) > 1:
11110 d = self.__dict__.copy()
11115 def __setstate__(self, p):
11116 if not hasattr(self,
'this'):
11118 if isinstance(p, tuple):
11120 self.__dict__.update(d)
11121 return self._set_from_binary(p)
11125 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11127 r"""Proxy of C++ IMP::core::QuadConstraint class."""
11129 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11131 def __init__(self, *args):
11133 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11134 __init__(QuadConstraint self) -> QuadConstraint
11136 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11138 def get_version_info(self):
11139 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11140 return _IMP_core.QuadConstraint_get_version_info(self)
11141 __swig_destroy__ = _IMP_core.delete_QuadConstraint
11144 r"""__str__(QuadConstraint self) -> std::string"""
11145 return _IMP_core.QuadConstraint___str__(self)
11147 def __repr__(self):
11148 r"""__repr__(QuadConstraint self) -> std::string"""
11149 return _IMP_core.QuadConstraint___repr__(self)
11153 return _object_cast_to_QuadConstraint(o)
11156 def _get_as_binary(self):
11157 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11158 return _IMP_core.QuadConstraint__get_as_binary(self)
11160 def _set_from_binary(self, p):
11161 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11162 return _IMP_core.QuadConstraint__set_from_binary(self, p)
11164 def __getstate__(self):
11165 p = self._get_as_binary()
11166 if len(self.__dict__) > 1:
11167 d = self.__dict__.copy()
11172 def __setstate__(self, p):
11173 if not hasattr(self,
'this'):
11175 if isinstance(p, tuple):
11177 self.__dict__.update(d)
11178 return self._set_from_binary(p)
11182 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11184 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11186 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11188 def __init__(self, *args):
11190 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11191 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11193 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11195 def do_get_inputs(self, arg2, arg3):
11196 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11197 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11199 def get_value(self, *args):
11201 get_value(ConstantSingletonPredicate self, Particle a) -> int
11202 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11204 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11206 def get_value_index(self, *args):
11208 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11209 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11211 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11213 def get_version_info(self):
11214 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11215 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11216 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11219 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11220 return _IMP_core.ConstantSingletonPredicate___str__(self)
11222 def __repr__(self):
11223 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11224 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11228 return _object_cast_to_ConstantSingletonPredicate(o)
11231 def _get_as_binary(self):
11232 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11233 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11235 def _set_from_binary(self, p):
11236 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11237 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11239 def __getstate__(self):
11240 p = self._get_as_binary()
11241 if len(self.__dict__) > 1:
11242 d = self.__dict__.copy()
11247 def __setstate__(self, p):
11248 if not hasattr(self,
'this'):
11250 if isinstance(p, tuple):
11252 self.__dict__.update(d)
11253 return self._set_from_binary(p)
11257 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11259 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11261 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11263 def __init__(self, *args):
11264 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11265 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11267 def do_get_inputs(self, m, pis):
11268 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11269 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11271 def get_value(self, *args):
11273 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11274 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11276 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11278 def get_value_index(self, *args):
11280 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11281 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11283 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11285 def get_version_info(self):
11286 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11287 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11288 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11291 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11292 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11294 def __repr__(self):
11295 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11296 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11300 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11303 def _get_as_binary(self):
11304 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11305 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11307 def _set_from_binary(self, p):
11308 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11309 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11311 def __getstate__(self):
11312 p = self._get_as_binary()
11313 if len(self.__dict__) > 1:
11314 d = self.__dict__.copy()
11319 def __setstate__(self, p):
11320 if not hasattr(self,
'this'):
11322 if isinstance(p, tuple):
11324 self.__dict__.update(d)
11325 return self._set_from_binary(p)
11329 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11331 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11333 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11335 def __init__(self, *args):
11336 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11337 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11339 def do_get_inputs(self, m, pis):
11340 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11341 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11343 def get_value(self, *args):
11345 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11346 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11347 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11349 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11351 def get_value_index(self, *args):
11353 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11354 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11356 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11358 def get_version_info(self):
11359 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11360 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11361 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11364 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11365 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11367 def __repr__(self):
11368 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11369 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11373 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11377 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11379 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11381 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11383 def __init__(self, *args):
11384 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11385 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11387 def do_get_inputs(self, arg2, arg3):
11388 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11389 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11391 def get_value(self, *args):
11393 get_value(AllSameSingletonPredicate self, Particle a) -> int
11394 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11396 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11398 def get_value_index(self, *args):
11400 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11401 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11403 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11405 def get_version_info(self):
11406 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11407 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11408 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11411 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11412 return _IMP_core.AllSameSingletonPredicate___str__(self)
11414 def __repr__(self):
11415 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11416 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11420 return _object_cast_to_AllSameSingletonPredicate(o)
11423 def _get_as_binary(self):
11424 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11425 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11427 def _set_from_binary(self, p):
11428 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11429 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11431 def __getstate__(self):
11432 p = self._get_as_binary()
11433 if len(self.__dict__) > 1:
11434 d = self.__dict__.copy()
11439 def __setstate__(self, p):
11440 if not hasattr(self,
'this'):
11442 if isinstance(p, tuple):
11444 self.__dict__.update(d)
11445 return self._set_from_binary(p)
11449 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11451 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11453 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11455 def __init__(self, *args):
11456 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11457 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11459 def do_get_inputs(self, arg2, arg3):
11460 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11461 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11463 def get_value(self, *args):
11465 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11466 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11468 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11470 def get_value_index(self, *args):
11472 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11473 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11475 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11477 def get_version_info(self):
11478 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11479 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11480 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11483 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11484 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11486 def __repr__(self):
11487 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11488 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11492 return _object_cast_to_CoinFlipSingletonPredicate(o)
11496 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11498 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11500 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11502 def __init__(self, *args):
11504 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11505 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11507 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11509 def do_get_inputs(self, arg2, arg3):
11510 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11511 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11513 def get_value(self, *args):
11515 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11516 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11518 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11520 def get_value_index(self, *args):
11522 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11523 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11525 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11527 def get_version_info(self):
11528 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11529 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11530 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11533 r"""__str__(ConstantPairPredicate self) -> std::string"""
11534 return _IMP_core.ConstantPairPredicate___str__(self)
11536 def __repr__(self):
11537 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11538 return _IMP_core.ConstantPairPredicate___repr__(self)
11542 return _object_cast_to_ConstantPairPredicate(o)
11545 def _get_as_binary(self):
11546 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11547 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11549 def _set_from_binary(self, p):
11550 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11551 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11553 def __getstate__(self):
11554 p = self._get_as_binary()
11555 if len(self.__dict__) > 1:
11556 d = self.__dict__.copy()
11561 def __setstate__(self, p):
11562 if not hasattr(self,
'this'):
11564 if isinstance(p, tuple):
11566 self.__dict__.update(d)
11567 return self._set_from_binary(p)
11571 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11573 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11575 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11577 def __init__(self, *args):
11578 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11579 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11581 def do_get_inputs(self, m, pis):
11582 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11583 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11585 def get_value(self, *args):
11587 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11588 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11590 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11592 def get_value_index(self, *args):
11594 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11595 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11597 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11599 def get_version_info(self):
11600 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11601 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11602 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11605 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11606 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11608 def __repr__(self):
11609 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11610 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11614 return _object_cast_to_UnorderedTypePairPredicate(o)
11617 def _get_as_binary(self):
11618 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11619 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11621 def _set_from_binary(self, p):
11622 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11623 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11625 def __getstate__(self):
11626 p = self._get_as_binary()
11627 if len(self.__dict__) > 1:
11628 d = self.__dict__.copy()
11633 def __setstate__(self, p):
11634 if not hasattr(self,
'this'):
11636 if isinstance(p, tuple):
11638 self.__dict__.update(d)
11639 return self._set_from_binary(p)
11643 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11645 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11647 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11649 def __init__(self, *args):
11650 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11651 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11653 def do_get_inputs(self, m, pis):
11654 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11655 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11657 def get_value(self, *args):
11659 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11660 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11661 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11663 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11665 def get_value_index(self, *args):
11667 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11668 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11670 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11672 def get_version_info(self):
11673 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11674 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11675 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11678 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11679 return _IMP_core.OrderedTypePairPredicate___str__(self)
11681 def __repr__(self):
11682 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11683 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11687 return _object_cast_to_OrderedTypePairPredicate(o)
11691 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11693 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11695 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11697 def __init__(self, *args):
11698 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11699 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11701 def do_get_inputs(self, arg2, arg3):
11702 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11703 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11705 def get_value(self, *args):
11707 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11708 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11710 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11712 def get_value_index(self, *args):
11714 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11715 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11717 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11719 def get_version_info(self):
11720 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11721 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11722 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11725 r"""__str__(AllSamePairPredicate self) -> std::string"""
11726 return _IMP_core.AllSamePairPredicate___str__(self)
11728 def __repr__(self):
11729 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11730 return _IMP_core.AllSamePairPredicate___repr__(self)
11734 return _object_cast_to_AllSamePairPredicate(o)
11737 def _get_as_binary(self):
11738 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11739 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11741 def _set_from_binary(self, p):
11742 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11743 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11745 def __getstate__(self):
11746 p = self._get_as_binary()
11747 if len(self.__dict__) > 1:
11748 d = self.__dict__.copy()
11753 def __setstate__(self, p):
11754 if not hasattr(self,
'this'):
11756 if isinstance(p, tuple):
11758 self.__dict__.update(d)
11759 return self._set_from_binary(p)
11763 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11765 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11767 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11769 def __init__(self, *args):
11770 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11771 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11773 def do_get_inputs(self, arg2, arg3):
11774 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11775 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11777 def get_value(self, *args):
11779 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11780 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11782 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11784 def get_value_index(self, *args):
11786 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11787 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11789 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11791 def get_version_info(self):
11792 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11793 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11794 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11797 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11798 return _IMP_core.CoinFlipPairPredicate___str__(self)
11800 def __repr__(self):
11801 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11802 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11806 return _object_cast_to_CoinFlipPairPredicate(o)
11810 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11812 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11814 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11816 def __init__(self, *args):
11818 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11819 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11821 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11823 def do_get_inputs(self, arg2, arg3):
11824 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11825 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11827 def get_value(self, *args):
11829 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11830 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11832 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11834 def get_value_index(self, *args):
11836 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11837 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11839 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11841 def get_version_info(self):
11842 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11843 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11844 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11847 r"""__str__(ConstantTripletPredicate self) -> std::string"""
11848 return _IMP_core.ConstantTripletPredicate___str__(self)
11850 def __repr__(self):
11851 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11852 return _IMP_core.ConstantTripletPredicate___repr__(self)
11856 return _object_cast_to_ConstantTripletPredicate(o)
11859 def _get_as_binary(self):
11860 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11861 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11863 def _set_from_binary(self, p):
11864 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11865 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11867 def __getstate__(self):
11868 p = self._get_as_binary()
11869 if len(self.__dict__) > 1:
11870 d = self.__dict__.copy()
11875 def __setstate__(self, p):
11876 if not hasattr(self,
'this'):
11878 if isinstance(p, tuple):
11880 self.__dict__.update(d)
11881 return self._set_from_binary(p)
11885 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11887 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11889 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11891 def __init__(self, *args):
11892 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11893 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11895 def do_get_inputs(self, m, pis):
11896 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11897 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11899 def get_value(self, *args):
11901 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11902 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11904 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11906 def get_value_index(self, *args):
11908 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11909 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11911 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11913 def get_version_info(self):
11914 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11915 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11916 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11919 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11920 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11922 def __repr__(self):
11923 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11924 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11928 return _object_cast_to_UnorderedTypeTripletPredicate(o)
11931 def _get_as_binary(self):
11932 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11933 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11935 def _set_from_binary(self, p):
11936 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11937 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11939 def __getstate__(self):
11940 p = self._get_as_binary()
11941 if len(self.__dict__) > 1:
11942 d = self.__dict__.copy()
11947 def __setstate__(self, p):
11948 if not hasattr(self,
'this'):
11950 if isinstance(p, tuple):
11952 self.__dict__.update(d)
11953 return self._set_from_binary(p)
11957 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11959 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11963 def __init__(self, *args):
11964 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11965 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11967 def do_get_inputs(self, m, pis):
11968 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11969 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11971 def get_value(self, *args):
11973 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11974 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11975 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11977 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11979 def get_value_index(self, *args):
11981 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11982 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11984 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11986 def get_version_info(self):
11987 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11988 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11989 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11992 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11993 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11995 def __repr__(self):
11996 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11997 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
12001 return _object_cast_to_OrderedTypeTripletPredicate(o)
12005 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12007 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12009 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12011 def __init__(self, *args):
12012 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12013 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12015 def do_get_inputs(self, arg2, arg3):
12016 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12017 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12019 def get_value(self, *args):
12021 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12022 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12024 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12026 def get_value_index(self, *args):
12028 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12029 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12031 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12033 def get_version_info(self):
12034 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12035 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12036 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12039 r"""__str__(AllSameTripletPredicate self) -> std::string"""
12040 return _IMP_core.AllSameTripletPredicate___str__(self)
12042 def __repr__(self):
12043 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12044 return _IMP_core.AllSameTripletPredicate___repr__(self)
12048 return _object_cast_to_AllSameTripletPredicate(o)
12051 def _get_as_binary(self):
12052 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12053 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12055 def _set_from_binary(self, p):
12056 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12057 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12059 def __getstate__(self):
12060 p = self._get_as_binary()
12061 if len(self.__dict__) > 1:
12062 d = self.__dict__.copy()
12067 def __setstate__(self, p):
12068 if not hasattr(self,
'this'):
12070 if isinstance(p, tuple):
12072 self.__dict__.update(d)
12073 return self._set_from_binary(p)
12077 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12079 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12081 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12083 def __init__(self, *args):
12084 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12085 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12087 def do_get_inputs(self, arg2, arg3):
12088 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12089 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12091 def get_value(self, *args):
12093 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12094 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12096 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12098 def get_value_index(self, *args):
12100 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12101 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12103 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12105 def get_version_info(self):
12106 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12107 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12108 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12111 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12112 return _IMP_core.CoinFlipTripletPredicate___str__(self)
12114 def __repr__(self):
12115 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12116 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12120 return _object_cast_to_CoinFlipTripletPredicate(o)
12124 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12126 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12128 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12130 def __init__(self, *args):
12132 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12133 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12135 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12137 def do_get_inputs(self, arg2, arg3):
12138 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12139 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12141 def get_value(self, *args):
12143 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12144 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12146 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12148 def get_value_index(self, *args):
12150 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12151 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12153 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12155 def get_version_info(self):
12156 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12157 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12158 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12161 r"""__str__(ConstantQuadPredicate self) -> std::string"""
12162 return _IMP_core.ConstantQuadPredicate___str__(self)
12164 def __repr__(self):
12165 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12166 return _IMP_core.ConstantQuadPredicate___repr__(self)
12170 return _object_cast_to_ConstantQuadPredicate(o)
12173 def _get_as_binary(self):
12174 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12175 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12177 def _set_from_binary(self, p):
12178 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12179 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12181 def __getstate__(self):
12182 p = self._get_as_binary()
12183 if len(self.__dict__) > 1:
12184 d = self.__dict__.copy()
12189 def __setstate__(self, p):
12190 if not hasattr(self,
'this'):
12192 if isinstance(p, tuple):
12194 self.__dict__.update(d)
12195 return self._set_from_binary(p)
12199 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12201 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12203 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12205 def __init__(self, *args):
12206 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12207 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12209 def do_get_inputs(self, m, pis):
12210 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12211 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12213 def get_value(self, *args):
12215 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12216 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12218 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12220 def get_value_index(self, *args):
12222 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12223 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12225 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12227 def get_version_info(self):
12228 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12229 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12230 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12233 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12234 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12236 def __repr__(self):
12237 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12238 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12242 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12245 def _get_as_binary(self):
12246 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12247 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12249 def _set_from_binary(self, p):
12250 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12251 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12253 def __getstate__(self):
12254 p = self._get_as_binary()
12255 if len(self.__dict__) > 1:
12256 d = self.__dict__.copy()
12261 def __setstate__(self, p):
12262 if not hasattr(self,
'this'):
12264 if isinstance(p, tuple):
12266 self.__dict__.update(d)
12267 return self._set_from_binary(p)
12271 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12273 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12275 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12277 def __init__(self, *args):
12278 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12279 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12281 def do_get_inputs(self, m, pis):
12282 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12283 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12285 def get_value(self, *args):
12287 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12288 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12289 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12291 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12293 def get_value_index(self, *args):
12295 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12296 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12298 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12300 def get_version_info(self):
12301 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12302 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12303 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12306 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12307 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12309 def __repr__(self):
12310 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12311 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12315 return _object_cast_to_OrderedTypeQuadPredicate(o)
12319 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12321 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12323 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12325 def __init__(self, *args):
12326 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12327 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12329 def do_get_inputs(self, arg2, arg3):
12330 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12331 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12333 def get_value(self, *args):
12335 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12336 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12338 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12340 def get_value_index(self, *args):
12342 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12343 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12345 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12347 def get_version_info(self):
12348 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12349 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12350 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12353 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12354 return _IMP_core.AllSameQuadPredicate___str__(self)
12356 def __repr__(self):
12357 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12358 return _IMP_core.AllSameQuadPredicate___repr__(self)
12362 return _object_cast_to_AllSameQuadPredicate(o)
12365 def _get_as_binary(self):
12366 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12367 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12369 def _set_from_binary(self, p):
12370 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12371 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12373 def __getstate__(self):
12374 p = self._get_as_binary()
12375 if len(self.__dict__) > 1:
12376 d = self.__dict__.copy()
12381 def __setstate__(self, p):
12382 if not hasattr(self,
'this'):
12384 if isinstance(p, tuple):
12386 self.__dict__.update(d)
12387 return self._set_from_binary(p)
12391 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12393 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12395 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12397 def __init__(self, *args):
12398 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12399 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12401 def do_get_inputs(self, arg2, arg3):
12402 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12403 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12405 def get_value(self, *args):
12407 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12408 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12410 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12412 def get_value_index(self, *args):
12414 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12415 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12417 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12419 def get_version_info(self):
12420 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12421 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12422 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12425 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12426 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12428 def __repr__(self):
12429 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12430 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12434 return _object_cast_to_CoinFlipQuadPredicate(o)
12438 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12440 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12442 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12444 def __init__(self, *args):
12445 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12446 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12448 def do_get_inputs(self, m, pi):
12449 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12450 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12452 def get_value(self, *args):
12454 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12455 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12457 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12459 def get_value_index(self, *args):
12461 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12462 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12464 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12466 def get_version_info(self):
12467 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12468 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12469 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12472 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12473 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12475 def __repr__(self):
12476 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12477 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12481 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12485 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12487 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12489 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12491 def __init__(self, *args):
12492 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12493 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12495 def do_get_inputs(self, m, pi):
12496 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12497 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12499 def get_value(self, *args):
12501 get_value(AttributeSingletonPredicate self, Particle a) -> int
12502 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12504 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12506 def get_value_index(self, *args):
12508 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12509 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12511 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12513 def get_version_info(self):
12514 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12515 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12516 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12519 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12520 return _IMP_core.AttributeSingletonPredicate___str__(self)
12522 def __repr__(self):
12523 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12524 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12528 return _object_cast_to_AttributeSingletonPredicate(o)
12532 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12534 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12536 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12538 def __init__(self, *args):
12539 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12540 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12542 def do_get_inputs(self, m, pi):
12543 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12544 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12546 def get_value(self, *args):
12548 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12549 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12551 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12553 def get_value_index(self, *args):
12555 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12556 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12558 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12560 def get_version_info(self):
12561 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12562 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12563 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12566 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12567 return _IMP_core.IsCollisionPairPredicate___str__(self)
12569 def __repr__(self):
12570 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12571 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12575 return _object_cast_to_IsCollisionPairPredicate(o)
12579 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12580 class AngleRestraint(TripletRestraint):
12581 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12583 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12585 def __init__(self, *args):
12587 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12588 __init__(AngleRestraint self) -> AngleRestraint
12590 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12591 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12594 r"""__str__(AngleRestraint self) -> std::string"""
12595 return _IMP_core.AngleRestraint___str__(self)
12597 def __repr__(self):
12598 r"""__repr__(AngleRestraint self) -> std::string"""
12599 return _IMP_core.AngleRestraint___repr__(self)
12603 return _object_cast_to_AngleRestraint(o)
12606 def _get_as_binary(self):
12607 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12608 return _IMP_core.AngleRestraint__get_as_binary(self)
12610 def _set_from_binary(self, p):
12611 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12612 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12614 def __getstate__(self):
12615 p = self._get_as_binary()
12616 if len(self.__dict__) > 1:
12617 d = self.__dict__.copy()
12622 def __setstate__(self, p):
12623 if not hasattr(self,
'this'):
12625 if isinstance(p, tuple):
12627 self.__dict__.update(d)
12628 return self._set_from_binary(p)
12632 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12633 class RigidBodyMover(MonteCarloMover):
12634 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12636 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12638 def __init__(self, *args):
12640 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12641 __init__(RigidBodyMover self) -> RigidBodyMover
12643 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12645 def set_maximum_translation(self, mt):
12646 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12647 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12649 def set_maximum_rotation(self, mr):
12650 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12651 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12653 def get_maximum_translation(self):
12654 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12655 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12657 def get_maximum_rotation(self):
12658 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12659 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12661 def get_version_info(self):
12662 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12663 return _IMP_core.RigidBodyMover_get_version_info(self)
12664 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12667 r"""__str__(RigidBodyMover self) -> std::string"""
12668 return _IMP_core.RigidBodyMover___str__(self)
12670 def __repr__(self):
12671 r"""__repr__(RigidBodyMover self) -> std::string"""
12672 return _IMP_core.RigidBodyMover___repr__(self)
12676 return _object_cast_to_RigidBodyMover(o)
12679 def _get_as_binary(self):
12680 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12681 return _IMP_core.RigidBodyMover__get_as_binary(self)
12683 def _set_from_binary(self, p):
12684 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12685 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12687 def __getstate__(self):
12688 p = self._get_as_binary()
12689 if len(self.__dict__) > 1:
12690 d = self.__dict__.copy()
12695 def __setstate__(self, p):
12696 if not hasattr(self,
'this'):
12698 if isinstance(p, tuple):
12700 self.__dict__.update(d)
12701 return self._set_from_binary(p)
12705 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12706 class RigidBodyTunneler(MonteCarloMover):
12707 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12709 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12711 def __init__(self, m, pis, ref, k, move_probability=1.):
12712 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12713 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12715 def add_entry_point(self, fl):
12716 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12717 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12719 def reset_stats(self):
12720 r"""reset_stats(RigidBodyTunneler self)"""
12721 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12723 def get_number_of_rejected_moves(self):
12724 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12725 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12727 def get_number_of_proposed_moves(self):
12728 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12729 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12731 def get_number_of_impossible_moves(self):
12732 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12733 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12735 def get_number_of_calls(self):
12736 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12737 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12740 def get_reduced_coordinates(*args):
12742 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12743 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12745 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12748 def set_reduced_coordinates(m, target, ref, coords):
12749 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12750 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12752 def get_version_info(self):
12753 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12754 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12755 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12758 r"""__str__(RigidBodyTunneler self) -> std::string"""
12759 return _IMP_core.RigidBodyTunneler___str__(self)
12761 def __repr__(self):
12762 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12763 return _IMP_core.RigidBodyTunneler___repr__(self)
12767 return _object_cast_to_RigidBodyTunneler(o)
12771 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12773 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12775 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12777 def __init__(self, *args):
12779 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12780 __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
12782 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12784 def set_x0(self, *args):
12786 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12787 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12789 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12792 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12793 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12796 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12797 return _IMP_core.RigidBodyUmbrella_get_x(self)
12799 def set_alpha(self, alpha):
12800 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12801 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12803 def set_k(self, k):
12804 r"""set_k(RigidBodyUmbrella self, double k)"""
12805 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12807 def get_version_info(self):
12808 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12809 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12810 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12813 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12814 return _IMP_core.RigidBodyUmbrella___str__(self)
12816 def __repr__(self):
12817 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12818 return _IMP_core.RigidBodyUmbrella___repr__(self)
12822 return _object_cast_to_RigidBodyUmbrella(o)
12826 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12828 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12830 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12832 def __init__(self, f, sc, volume):
12833 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12834 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12836 def do_get_inputs(self):
12837 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12838 return _IMP_core.VolumeRestraint_do_get_inputs(self)
12840 def get_version_info(self):
12841 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12842 return _IMP_core.VolumeRestraint_get_version_info(self)
12843 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12846 r"""__str__(VolumeRestraint self) -> std::string"""
12847 return _IMP_core.VolumeRestraint___str__(self)
12849 def __repr__(self):
12850 r"""__repr__(VolumeRestraint self) -> std::string"""
12851 return _IMP_core.VolumeRestraint___repr__(self)
12855 return _object_cast_to_VolumeRestraint(o)
12859 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12862 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12863 return _IMP_core.get_centroid(ps)
12866 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12867 return _IMP_core.get_bounding_box(ps)
12869 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12871 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12873 def __init__(self, ps):
12874 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12875 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12877 def show_statistics(self, *args):
12878 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12879 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12882 r"""reset(MoveStatisticsScoreState self)"""
12883 return _IMP_core.MoveStatisticsScoreState_reset(self)
12885 def do_before_evaluate(self):
12886 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12887 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12889 def do_after_evaluate(self, da):
12890 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12891 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12893 def do_get_inputs(self):
12894 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12895 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12897 def do_get_outputs(self):
12898 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12899 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12901 def get_version_info(self):
12902 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12903 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12904 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12907 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12908 return _IMP_core.MoveStatisticsScoreState___str__(self)
12910 def __repr__(self):
12911 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12912 return _IMP_core.MoveStatisticsScoreState___repr__(self)
12916 return _object_cast_to_MoveStatisticsScoreState(o)
12920 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12921 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12924 r"""Proxy of C++ IMP::core::Typed class."""
12926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12929 def get_type_key():
12930 r"""get_type_key() -> IntKey"""
12931 return _IMP_core.Typed_get_type_key()
12933 def __init__(self, *args):
12935 __init__(Typed self) -> Typed
12936 __init__(Typed self, Model m, ParticleIndex id) -> Typed
12937 __init__(Typed self, _ParticleAdaptor d) -> Typed
12939 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12941 def show(self, *args):
12942 r"""show(Typed self, _ostream out=std::cout)"""
12943 return _IMP_core.Typed_show(self, *args)
12946 def setup_particle(*args):
12948 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12949 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12951 return _IMP_core.Typed_setup_particle(*args)
12954 def get_is_setup(*args):
12956 get_is_setup(_ParticleAdaptor p) -> bool
12957 get_is_setup(Model m, ParticleIndex pi) -> bool
12959 return _IMP_core.Typed_get_is_setup(*args)
12961 def get_type(self):
12962 r"""get_type(Typed self) -> ParticleType"""
12963 return _IMP_core.Typed_get_type(self)
12965 def set_type(self, pt):
12966 r"""set_type(Typed self, ParticleType pt)"""
12967 return _IMP_core.Typed_set_type(self, pt)
12969 def add_attribute(self, *args):
12971 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12972 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12973 add_attribute(Typed self, IntKey a0, IMP::Int a1)
12974 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12975 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12976 add_attribute(Typed self, StringKey a0, IMP::String a1)
12977 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12978 add_attribute(Typed self, ObjectKey a0, Object a1)
12979 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12980 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12981 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12982 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12984 return _IMP_core.Typed_add_attribute(self, *args)
12986 def get_value(self, *args):
12988 get_value(Typed self, FloatKey a0) -> IMP::Float
12989 get_value(Typed self, IntKey a0) -> IMP::Int
12990 get_value(Typed self, FloatsKey a0) -> IMP::Floats
12991 get_value(Typed self, IntsKey a0) -> IMP::Ints
12992 get_value(Typed self, StringKey a0) -> IMP::String
12993 get_value(Typed self, ParticleIndexKey a0) -> Particle
12994 get_value(Typed self, ObjectKey a0) -> Object
12995 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12996 get_value(Typed self, SparseIntKey a0) -> IMP::Int
12997 get_value(Typed self, SparseStringKey a0) -> IMP::String
12998 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
13000 return _IMP_core.Typed_get_value(self, *args)
13002 def set_value(self, *args):
13004 set_value(Typed self, FloatKey a0, IMP::Float a1)
13005 set_value(Typed self, IntKey a0, IMP::Int a1)
13006 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13007 set_value(Typed self, IntsKey a0, IMP::Ints a1)
13008 set_value(Typed self, StringKey a0, IMP::String a1)
13009 set_value(Typed self, ParticleIndexKey a0, Particle a1)
13010 set_value(Typed self, ObjectKey a0, Object a1)
13011 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13012 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13013 set_value(Typed self, SparseStringKey a0, IMP::String a1)
13014 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13016 return _IMP_core.Typed_set_value(self, *args)
13018 def remove_attribute(self, *args):
13020 remove_attribute(Typed self, FloatKey a0)
13021 remove_attribute(Typed self, IntKey a0)
13022 remove_attribute(Typed self, FloatsKey a0)
13023 remove_attribute(Typed self, IntsKey a0)
13024 remove_attribute(Typed self, StringKey a0)
13025 remove_attribute(Typed self, ParticleIndexKey a0)
13026 remove_attribute(Typed self, ObjectKey a0)
13027 remove_attribute(Typed self, SparseFloatKey a0)
13028 remove_attribute(Typed self, SparseIntKey a0)
13029 remove_attribute(Typed self, SparseStringKey a0)
13030 remove_attribute(Typed self, SparseParticleIndexKey a0)
13032 return _IMP_core.Typed_remove_attribute(self, *args)
13034 def has_attribute(self, *args):
13036 has_attribute(Typed self, FloatKey a0) -> bool
13037 has_attribute(Typed self, IntKey a0) -> bool
13038 has_attribute(Typed self, FloatsKey a0) -> bool
13039 has_attribute(Typed self, IntsKey a0) -> bool
13040 has_attribute(Typed self, StringKey a0) -> bool
13041 has_attribute(Typed self, ParticleIndexKey a0) -> bool
13042 has_attribute(Typed self, ObjectKey a0) -> bool
13043 has_attribute(Typed self, SparseFloatKey a0) -> bool
13044 has_attribute(Typed self, SparseIntKey a0) -> bool
13045 has_attribute(Typed self, SparseStringKey a0) -> bool
13046 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13048 return _IMP_core.Typed_has_attribute(self, *args)
13050 def get_derivative(self, a0):
13051 r"""get_derivative(Typed self, FloatKey a0) -> double"""
13052 return _IMP_core.Typed_get_derivative(self, a0)
13054 def get_name(self):
13055 r"""get_name(Typed self) -> std::string"""
13056 return _IMP_core.Typed_get_name(self)
13058 def clear_caches(self):
13059 r"""clear_caches(Typed self)"""
13060 return _IMP_core.Typed_clear_caches(self)
13062 def set_name(self, a0):
13063 r"""set_name(Typed self, std::string a0)"""
13064 return _IMP_core.Typed_set_name(self, a0)
13067 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13068 return _IMP_core.Typed_set_check_level(self, a0)
13070 def add_to_derivative(self, a0, a1, a2):
13071 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13072 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13074 def set_is_optimized(self, a0, a1):
13075 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13076 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13078 def get_is_optimized(self, a0):
13079 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13080 return _IMP_core.Typed_get_is_optimized(self, a0)
13083 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13084 return _IMP_core.Typed_get_check_level(self)
13086 def __eq__(self, *args):
13088 __eq__(Typed self, Typed o) -> bool
13089 __eq__(Typed self, Particle d) -> bool
13091 return _IMP_core.Typed___eq__(self, *args)
13093 def __ne__(self, *args):
13095 __ne__(Typed self, Typed o) -> bool
13096 __ne__(Typed self, Particle d) -> bool
13098 return _IMP_core.Typed___ne__(self, *args)
13100 def __le__(self, *args):
13102 __le__(Typed self, Typed o) -> bool
13103 __le__(Typed self, Particle d) -> bool
13105 return _IMP_core.Typed___le__(self, *args)
13107 def __lt__(self, *args):
13109 __lt__(Typed self, Typed o) -> bool
13110 __lt__(Typed self, Particle d) -> bool
13112 return _IMP_core.Typed___lt__(self, *args)
13114 def __ge__(self, *args):
13116 __ge__(Typed self, Typed o) -> bool
13117 __ge__(Typed self, Particle d) -> bool
13119 return _IMP_core.Typed___ge__(self, *args)
13121 def __gt__(self, *args):
13123 __gt__(Typed self, Typed o) -> bool
13124 __gt__(Typed self, Particle d) -> bool
13126 return _IMP_core.Typed___gt__(self, *args)
13128 def __hash__(self):
13129 r"""__hash__(Typed self) -> std::size_t"""
13130 return _IMP_core.Typed___hash__(self)
13133 r"""__str__(Typed self) -> std::string"""
13134 return _IMP_core.Typed___str__(self)
13136 def __repr__(self):
13137 r"""__repr__(Typed self) -> std::string"""
13138 return _IMP_core.Typed___repr__(self)
13140 def _get_as_binary(self):
13141 r"""_get_as_binary(Typed self) -> PyObject *"""
13142 return _IMP_core.Typed__get_as_binary(self)
13144 def _set_from_binary(self, p):
13145 r"""_set_from_binary(Typed self, PyObject * p)"""
13146 return _IMP_core.Typed__set_from_binary(self, p)
13148 def __getstate__(self):
13149 p = self._get_as_binary()
13150 if len(self.__dict__) > 1:
13151 d = self.__dict__.copy()
13156 def __setstate__(self, p):
13157 if not hasattr(self,
'this'):
13159 if isinstance(p, tuple):
13161 self.__dict__.update(d)
13162 return self._set_from_binary(p)
13164 __swig_destroy__ = _IMP_core.delete_Typed
13167 _IMP_core.Typed_swigregister(Typed)
13169 def __lshift__(*args):
13171 __lshift__(_ostream out, XYZ n) -> _ostream
13172 __lshift__(_ostream out, XYZR n) -> _ostream
13173 __lshift__(_ostream out, Direction n) -> _ostream
13174 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13175 __lshift__(_ostream out, Surface n) -> _ostream
13176 __lshift__(_ostream out, Centroid n) -> _ostream
13177 __lshift__(_ostream out, Cover n) -> _ostream
13178 __lshift__(_ostream out, Reference n) -> _ostream
13179 __lshift__(_ostream out, RigidMember n) -> _ostream
13180 __lshift__(_ostream out, RigidBody n) -> _ostream
13181 __lshift__(_ostream out, Gaussian n) -> _ostream
13182 __lshift__(_ostream out, Typed n) -> _ostream
13184 return _IMP_core.__lshift__(*args)
13186 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13188 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13190 def __init__(self, rs, out):
13191 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13192 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13194 def get_version_info(self):
13195 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13196 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13197 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13200 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13201 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13203 def __repr__(self):
13204 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13205 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13209 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13213 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13216 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13217 return _IMP_core.assign_blame(rs, ps, attribute)
13220 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13221 return _IMP_core.create_blame_geometries(*args)
13223 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13227 def __init__(self, m, q1, q2):
13228 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13229 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13231 def add_term(self, term):
13232 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13233 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13235 def do_get_inputs(self):
13236 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13237 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13239 def get_version_info(self):
13240 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13241 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13242 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13245 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13246 return _IMP_core.MultipleBinormalRestraint___str__(self)
13248 def __repr__(self):
13249 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13250 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13254 return _object_cast_to_MultipleBinormalRestraint(o)
13258 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13259 class BinormalTerm(object):
13260 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13262 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13264 def __init__(self):
13265 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13266 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13268 def set_correlation(self, correlation):
13269 r"""set_correlation(BinormalTerm self, double correlation)"""
13270 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13272 def set_weight(self, weight):
13273 r"""set_weight(BinormalTerm self, double weight)"""
13274 return _IMP_core.BinormalTerm_set_weight(self, weight)
13276 def set_means(self, means):
13277 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13278 return _IMP_core.BinormalTerm_set_means(self, means)
13280 def set_standard_deviations(self, stdevs):
13281 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13282 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13284 def show(self, *args):
13285 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13286 return _IMP_core.BinormalTerm_show(self, *args)
13289 r"""__str__(BinormalTerm self) -> std::string"""
13290 return _IMP_core.BinormalTerm___str__(self)
13292 def __repr__(self):
13293 r"""__repr__(BinormalTerm self) -> std::string"""
13294 return _IMP_core.BinormalTerm___repr__(self)
13296 def _get_as_binary(self):
13297 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13298 return _IMP_core.BinormalTerm__get_as_binary(self)
13300 def _set_from_binary(self, p):
13301 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13302 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13304 def __getstate__(self):
13305 p = self._get_as_binary()
13306 if len(self.__dict__) > 1:
13307 d = self.__dict__.copy()
13312 def __setstate__(self, p):
13313 if not hasattr(self,
'this'):
13315 if isinstance(p, tuple):
13317 self.__dict__.update(d)
13318 return self._set_from_binary(p)
13320 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13323 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13325 r"""Proxy of C++ IMP::core::Provenance class."""
13327 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13329 def get_previous(self):
13330 r"""get_previous(Provenance self) -> Provenance"""
13331 return _IMP_core.Provenance_get_previous(self)
13333 def set_previous(self, p):
13334 r"""set_previous(Provenance self, Provenance p)"""
13335 return _IMP_core.Provenance_set_previous(self, p)
13337 def __init__(self, *args):
13339 __init__(Provenance self) -> Provenance
13340 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13341 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13343 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13346 def get_is_setup(*args):
13348 get_is_setup(Model m, ParticleIndex pi) -> bool
13349 get_is_setup(_ParticleAdaptor p) -> bool
13351 return _IMP_core.Provenance_get_is_setup(*args)
13353 def show(self, *args):
13354 r"""show(Provenance self, _ostream out=std::cout)"""
13355 return _IMP_core.Provenance_show(self, *args)
13358 def setup_particle(*args):
13360 setup_particle(Model m, ParticleIndex pi) -> Provenance
13361 setup_particle(_ParticleAdaptor pa) -> Provenance
13363 return _IMP_core.Provenance_setup_particle(*args)
13365 def add_attribute(self, *args):
13367 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13368 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13369 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13370 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13371 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13372 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13373 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13374 add_attribute(Provenance self, ObjectKey a0, Object a1)
13375 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13376 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13377 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13378 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13380 return _IMP_core.Provenance_add_attribute(self, *args)
13382 def get_value(self, *args):
13384 get_value(Provenance self, FloatKey a0) -> IMP::Float
13385 get_value(Provenance self, IntKey a0) -> IMP::Int
13386 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13387 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13388 get_value(Provenance self, StringKey a0) -> IMP::String
13389 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13390 get_value(Provenance self, ObjectKey a0) -> Object
13391 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13392 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13393 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13394 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13396 return _IMP_core.Provenance_get_value(self, *args)
13398 def set_value(self, *args):
13400 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13401 set_value(Provenance self, IntKey a0, IMP::Int a1)
13402 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13403 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13404 set_value(Provenance self, StringKey a0, IMP::String a1)
13405 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13406 set_value(Provenance self, ObjectKey a0, Object a1)
13407 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13408 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13409 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13410 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13412 return _IMP_core.Provenance_set_value(self, *args)
13414 def remove_attribute(self, *args):
13416 remove_attribute(Provenance self, FloatKey a0)
13417 remove_attribute(Provenance self, IntKey a0)
13418 remove_attribute(Provenance self, FloatsKey a0)
13419 remove_attribute(Provenance self, IntsKey a0)
13420 remove_attribute(Provenance self, StringKey a0)
13421 remove_attribute(Provenance self, ParticleIndexKey a0)
13422 remove_attribute(Provenance self, ObjectKey a0)
13423 remove_attribute(Provenance self, SparseFloatKey a0)
13424 remove_attribute(Provenance self, SparseIntKey a0)
13425 remove_attribute(Provenance self, SparseStringKey a0)
13426 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13428 return _IMP_core.Provenance_remove_attribute(self, *args)
13430 def has_attribute(self, *args):
13432 has_attribute(Provenance self, FloatKey a0) -> bool
13433 has_attribute(Provenance self, IntKey a0) -> bool
13434 has_attribute(Provenance self, FloatsKey a0) -> bool
13435 has_attribute(Provenance self, IntsKey a0) -> bool
13436 has_attribute(Provenance self, StringKey a0) -> bool
13437 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13438 has_attribute(Provenance self, ObjectKey a0) -> bool
13439 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13440 has_attribute(Provenance self, SparseIntKey a0) -> bool
13441 has_attribute(Provenance self, SparseStringKey a0) -> bool
13442 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13444 return _IMP_core.Provenance_has_attribute(self, *args)
13446 def get_derivative(self, a0):
13447 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13448 return _IMP_core.Provenance_get_derivative(self, a0)
13450 def get_name(self):
13451 r"""get_name(Provenance self) -> std::string"""
13452 return _IMP_core.Provenance_get_name(self)
13454 def clear_caches(self):
13455 r"""clear_caches(Provenance self)"""
13456 return _IMP_core.Provenance_clear_caches(self)
13458 def set_name(self, a0):
13459 r"""set_name(Provenance self, std::string a0)"""
13460 return _IMP_core.Provenance_set_name(self, a0)
13463 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13464 return _IMP_core.Provenance_set_check_level(self, a0)
13466 def add_to_derivative(self, a0, a1, a2):
13467 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13468 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13470 def set_is_optimized(self, a0, a1):
13471 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13472 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13474 def get_is_optimized(self, a0):
13475 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13476 return _IMP_core.Provenance_get_is_optimized(self, a0)
13479 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13480 return _IMP_core.Provenance_get_check_level(self)
13482 def __eq__(self, *args):
13484 __eq__(Provenance self, Provenance o) -> bool
13485 __eq__(Provenance self, Particle d) -> bool
13487 return _IMP_core.Provenance___eq__(self, *args)
13489 def __ne__(self, *args):
13491 __ne__(Provenance self, Provenance o) -> bool
13492 __ne__(Provenance self, Particle d) -> bool
13494 return _IMP_core.Provenance___ne__(self, *args)
13496 def __le__(self, *args):
13498 __le__(Provenance self, Provenance o) -> bool
13499 __le__(Provenance self, Particle d) -> bool
13501 return _IMP_core.Provenance___le__(self, *args)
13503 def __lt__(self, *args):
13505 __lt__(Provenance self, Provenance o) -> bool
13506 __lt__(Provenance self, Particle d) -> bool
13508 return _IMP_core.Provenance___lt__(self, *args)
13510 def __ge__(self, *args):
13512 __ge__(Provenance self, Provenance o) -> bool
13513 __ge__(Provenance self, Particle d) -> bool
13515 return _IMP_core.Provenance___ge__(self, *args)
13517 def __gt__(self, *args):
13519 __gt__(Provenance self, Provenance o) -> bool
13520 __gt__(Provenance self, Particle d) -> bool
13522 return _IMP_core.Provenance___gt__(self, *args)
13524 def __hash__(self):
13525 r"""__hash__(Provenance self) -> std::size_t"""
13526 return _IMP_core.Provenance___hash__(self)
13529 r"""__str__(Provenance self) -> std::string"""
13530 return _IMP_core.Provenance___str__(self)
13532 def __repr__(self):
13533 r"""__repr__(Provenance self) -> std::string"""
13534 return _IMP_core.Provenance___repr__(self)
13536 def _get_as_binary(self):
13537 r"""_get_as_binary(Provenance self) -> PyObject *"""
13538 return _IMP_core.Provenance__get_as_binary(self)
13540 def _set_from_binary(self, p):
13541 r"""_set_from_binary(Provenance self, PyObject * p)"""
13542 return _IMP_core.Provenance__set_from_binary(self, p)
13544 def __getstate__(self):
13545 p = self._get_as_binary()
13546 if len(self.__dict__) > 1:
13547 d = self.__dict__.copy()
13552 def __setstate__(self, p):
13553 if not hasattr(self,
'this'):
13555 if isinstance(p, tuple):
13557 self.__dict__.update(d)
13558 return self._set_from_binary(p)
13560 __swig_destroy__ = _IMP_core.delete_Provenance
13563 _IMP_core.Provenance_swigregister(Provenance)
13564 class StructureProvenance(Provenance):
13565 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13567 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13569 def set_filename(self, filename):
13570 r"""set_filename(StructureProvenance self, std::string filename)"""
13571 return _IMP_core.StructureProvenance_set_filename(self, filename)
13573 def get_filename(self):
13574 r"""get_filename(StructureProvenance self) -> std::string"""
13575 return _IMP_core.StructureProvenance_get_filename(self)
13577 def set_chain_id(self, chain_id):
13578 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13579 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13582 r"""get_chain_id(StructureProvenance self) -> std::string"""
13583 return _IMP_core.StructureProvenance_get_chain_id(self)
13585 def set_residue_offset(self, residue_offset):
13586 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13587 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13589 def get_residue_offset(self):
13590 r"""get_residue_offset(StructureProvenance self) -> int"""
13591 return _IMP_core.StructureProvenance_get_residue_offset(self)
13593 def __init__(self, *args):
13595 __init__(StructureProvenance self) -> StructureProvenance
13596 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13597 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13599 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13602 def get_is_setup(*args):
13604 get_is_setup(Model m, ParticleIndex pi) -> bool
13605 get_is_setup(_ParticleAdaptor p) -> bool
13607 return _IMP_core.StructureProvenance_get_is_setup(*args)
13609 def show(self, *args):
13610 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13611 return _IMP_core.StructureProvenance_show(self, *args)
13614 def setup_particle(*args):
13616 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13617 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13618 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13619 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13620 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13621 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13623 return _IMP_core.StructureProvenance_setup_particle(*args)
13625 def add_attribute(self, *args):
13627 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13628 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13629 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13630 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13631 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13632 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13633 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13634 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13635 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13636 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13637 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13638 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13640 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13642 def get_value(self, *args):
13644 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13645 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13646 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13647 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13648 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13649 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13650 get_value(StructureProvenance self, ObjectKey a0) -> Object
13651 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13652 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13653 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13654 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13656 return _IMP_core.StructureProvenance_get_value(self, *args)
13658 def set_value(self, *args):
13660 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13661 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13662 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13663 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13664 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13665 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13666 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13667 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13668 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13669 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13670 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13672 return _IMP_core.StructureProvenance_set_value(self, *args)
13674 def remove_attribute(self, *args):
13676 remove_attribute(StructureProvenance self, FloatKey a0)
13677 remove_attribute(StructureProvenance self, IntKey a0)
13678 remove_attribute(StructureProvenance self, FloatsKey a0)
13679 remove_attribute(StructureProvenance self, IntsKey a0)
13680 remove_attribute(StructureProvenance self, StringKey a0)
13681 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13682 remove_attribute(StructureProvenance self, ObjectKey a0)
13683 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13684 remove_attribute(StructureProvenance self, SparseIntKey a0)
13685 remove_attribute(StructureProvenance self, SparseStringKey a0)
13686 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13688 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13690 def has_attribute(self, *args):
13692 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13693 has_attribute(StructureProvenance self, IntKey a0) -> bool
13694 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13695 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13696 has_attribute(StructureProvenance self, StringKey a0) -> bool
13697 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13698 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13699 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13700 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13701 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13702 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13704 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13706 def get_derivative(self, a0):
13707 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13708 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13710 def get_name(self):
13711 r"""get_name(StructureProvenance self) -> std::string"""
13712 return _IMP_core.StructureProvenance_get_name(self)
13714 def clear_caches(self):
13715 r"""clear_caches(StructureProvenance self)"""
13716 return _IMP_core.StructureProvenance_clear_caches(self)
13718 def set_name(self, a0):
13719 r"""set_name(StructureProvenance self, std::string a0)"""
13720 return _IMP_core.StructureProvenance_set_name(self, a0)
13723 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13724 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13726 def add_to_derivative(self, a0, a1, a2):
13727 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13728 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13730 def set_is_optimized(self, a0, a1):
13731 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13732 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13734 def get_is_optimized(self, a0):
13735 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13736 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13739 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13740 return _IMP_core.StructureProvenance_get_check_level(self)
13742 def __eq__(self, *args):
13744 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13745 __eq__(StructureProvenance self, Particle d) -> bool
13747 return _IMP_core.StructureProvenance___eq__(self, *args)
13749 def __ne__(self, *args):
13751 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13752 __ne__(StructureProvenance self, Particle d) -> bool
13754 return _IMP_core.StructureProvenance___ne__(self, *args)
13756 def __le__(self, *args):
13758 __le__(StructureProvenance self, StructureProvenance o) -> bool
13759 __le__(StructureProvenance self, Particle d) -> bool
13761 return _IMP_core.StructureProvenance___le__(self, *args)
13763 def __lt__(self, *args):
13765 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13766 __lt__(StructureProvenance self, Particle d) -> bool
13768 return _IMP_core.StructureProvenance___lt__(self, *args)
13770 def __ge__(self, *args):
13772 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13773 __ge__(StructureProvenance self, Particle d) -> bool
13775 return _IMP_core.StructureProvenance___ge__(self, *args)
13777 def __gt__(self, *args):
13779 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13780 __gt__(StructureProvenance self, Particle d) -> bool
13782 return _IMP_core.StructureProvenance___gt__(self, *args)
13784 def __hash__(self):
13785 r"""__hash__(StructureProvenance self) -> std::size_t"""
13786 return _IMP_core.StructureProvenance___hash__(self)
13789 r"""__str__(StructureProvenance self) -> std::string"""
13790 return _IMP_core.StructureProvenance___str__(self)
13792 def __repr__(self):
13793 r"""__repr__(StructureProvenance self) -> std::string"""
13794 return _IMP_core.StructureProvenance___repr__(self)
13796 def _get_as_binary(self):
13797 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13798 return _IMP_core.StructureProvenance__get_as_binary(self)
13800 def _set_from_binary(self, p):
13801 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13802 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13804 def __getstate__(self):
13805 p = self._get_as_binary()
13806 if len(self.__dict__) > 1:
13807 d = self.__dict__.copy()
13812 def __setstate__(self, p):
13813 if not hasattr(self,
'this'):
13815 if isinstance(p, tuple):
13817 self.__dict__.update(d)
13818 return self._set_from_binary(p)
13820 __swig_destroy__ = _IMP_core.delete_StructureProvenance
13823 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13824 class SampleProvenance(Provenance):
13825 r"""Proxy of C++ IMP::core::SampleProvenance class."""
13827 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13829 def set_method(self, method):
13830 r"""set_method(SampleProvenance self, std::string method)"""
13831 return _IMP_core.SampleProvenance_set_method(self, method)
13833 def get_method(self):
13834 r"""get_method(SampleProvenance self) -> std::string"""
13835 return _IMP_core.SampleProvenance_get_method(self)
13837 def set_number_of_frames(self, frames):
13838 r"""set_number_of_frames(SampleProvenance self, int frames)"""
13839 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13842 r"""get_number_of_frames(SampleProvenance self) -> int"""
13843 return _IMP_core.SampleProvenance_get_number_of_frames(self)
13845 def set_number_of_iterations(self, iterations):
13846 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13847 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13849 def get_number_of_iterations(self):
13850 r"""get_number_of_iterations(SampleProvenance self) -> int"""
13851 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13853 def set_number_of_replicas(self, replicas):
13854 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13855 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13857 def get_number_of_replicas(self):
13858 r"""get_number_of_replicas(SampleProvenance self) -> int"""
13859 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13861 def __init__(self, *args):
13863 __init__(SampleProvenance self) -> SampleProvenance
13864 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13865 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13867 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13870 def get_is_setup(*args):
13872 get_is_setup(Model m, ParticleIndex pi) -> bool
13873 get_is_setup(_ParticleAdaptor p) -> bool
13875 return _IMP_core.SampleProvenance_get_is_setup(*args)
13877 def show(self, *args):
13878 r"""show(SampleProvenance self, _ostream out=std::cout)"""
13879 return _IMP_core.SampleProvenance_show(self, *args)
13882 def setup_particle(*args):
13884 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13885 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13886 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13887 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13888 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13889 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13891 return _IMP_core.SampleProvenance_setup_particle(*args)
13893 def add_attribute(self, *args):
13895 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13896 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13897 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13898 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13899 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13900 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13901 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13902 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13903 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13904 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13905 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13906 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13908 return _IMP_core.SampleProvenance_add_attribute(self, *args)
13910 def get_value(self, *args):
13912 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13913 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13914 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13915 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13916 get_value(SampleProvenance self, StringKey a0) -> IMP::String
13917 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13918 get_value(SampleProvenance self, ObjectKey a0) -> Object
13919 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13920 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13921 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13922 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13924 return _IMP_core.SampleProvenance_get_value(self, *args)
13926 def set_value(self, *args):
13928 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13929 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13930 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13931 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13932 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13933 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13934 set_value(SampleProvenance self, ObjectKey a0, Object a1)
13935 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13936 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13937 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13938 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13940 return _IMP_core.SampleProvenance_set_value(self, *args)
13942 def remove_attribute(self, *args):
13944 remove_attribute(SampleProvenance self, FloatKey a0)
13945 remove_attribute(SampleProvenance self, IntKey a0)
13946 remove_attribute(SampleProvenance self, FloatsKey a0)
13947 remove_attribute(SampleProvenance self, IntsKey a0)
13948 remove_attribute(SampleProvenance self, StringKey a0)
13949 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13950 remove_attribute(SampleProvenance self, ObjectKey a0)
13951 remove_attribute(SampleProvenance self, SparseFloatKey a0)
13952 remove_attribute(SampleProvenance self, SparseIntKey a0)
13953 remove_attribute(SampleProvenance self, SparseStringKey a0)
13954 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13956 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13958 def has_attribute(self, *args):
13960 has_attribute(SampleProvenance self, FloatKey a0) -> bool
13961 has_attribute(SampleProvenance self, IntKey a0) -> bool
13962 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13963 has_attribute(SampleProvenance self, IntsKey a0) -> bool
13964 has_attribute(SampleProvenance self, StringKey a0) -> bool
13965 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13966 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13967 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13968 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13969 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13970 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13972 return _IMP_core.SampleProvenance_has_attribute(self, *args)
13974 def get_derivative(self, a0):
13975 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13976 return _IMP_core.SampleProvenance_get_derivative(self, a0)
13978 def get_name(self):
13979 r"""get_name(SampleProvenance self) -> std::string"""
13980 return _IMP_core.SampleProvenance_get_name(self)
13982 def clear_caches(self):
13983 r"""clear_caches(SampleProvenance self)"""
13984 return _IMP_core.SampleProvenance_clear_caches(self)
13986 def set_name(self, a0):
13987 r"""set_name(SampleProvenance self, std::string a0)"""
13988 return _IMP_core.SampleProvenance_set_name(self, a0)
13991 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13992 return _IMP_core.SampleProvenance_set_check_level(self, a0)
13994 def add_to_derivative(self, a0, a1, a2):
13995 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13996 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13998 def set_is_optimized(self, a0, a1):
13999 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14000 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14002 def get_is_optimized(self, a0):
14003 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14004 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14007 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14008 return _IMP_core.SampleProvenance_get_check_level(self)
14010 def __eq__(self, *args):
14012 __eq__(SampleProvenance self, SampleProvenance o) -> bool
14013 __eq__(SampleProvenance self, Particle d) -> bool
14015 return _IMP_core.SampleProvenance___eq__(self, *args)
14017 def __ne__(self, *args):
14019 __ne__(SampleProvenance self, SampleProvenance o) -> bool
14020 __ne__(SampleProvenance self, Particle d) -> bool
14022 return _IMP_core.SampleProvenance___ne__(self, *args)
14024 def __le__(self, *args):
14026 __le__(SampleProvenance self, SampleProvenance o) -> bool
14027 __le__(SampleProvenance self, Particle d) -> bool
14029 return _IMP_core.SampleProvenance___le__(self, *args)
14031 def __lt__(self, *args):
14033 __lt__(SampleProvenance self, SampleProvenance o) -> bool
14034 __lt__(SampleProvenance self, Particle d) -> bool
14036 return _IMP_core.SampleProvenance___lt__(self, *args)
14038 def __ge__(self, *args):
14040 __ge__(SampleProvenance self, SampleProvenance o) -> bool
14041 __ge__(SampleProvenance self, Particle d) -> bool
14043 return _IMP_core.SampleProvenance___ge__(self, *args)
14045 def __gt__(self, *args):
14047 __gt__(SampleProvenance self, SampleProvenance o) -> bool
14048 __gt__(SampleProvenance self, Particle d) -> bool
14050 return _IMP_core.SampleProvenance___gt__(self, *args)
14052 def __hash__(self):
14053 r"""__hash__(SampleProvenance self) -> std::size_t"""
14054 return _IMP_core.SampleProvenance___hash__(self)
14057 r"""__str__(SampleProvenance self) -> std::string"""
14058 return _IMP_core.SampleProvenance___str__(self)
14060 def __repr__(self):
14061 r"""__repr__(SampleProvenance self) -> std::string"""
14062 return _IMP_core.SampleProvenance___repr__(self)
14064 def _get_as_binary(self):
14065 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14066 return _IMP_core.SampleProvenance__get_as_binary(self)
14068 def _set_from_binary(self, p):
14069 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14070 return _IMP_core.SampleProvenance__set_from_binary(self, p)
14072 def __getstate__(self):
14073 p = self._get_as_binary()
14074 if len(self.__dict__) > 1:
14075 d = self.__dict__.copy()
14080 def __setstate__(self, p):
14081 if not hasattr(self,
'this'):
14083 if isinstance(p, tuple):
14085 self.__dict__.update(d)
14086 return self._set_from_binary(p)
14088 __swig_destroy__ = _IMP_core.delete_SampleProvenance
14091 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14092 class CombineProvenance(Provenance):
14093 r"""Proxy of C++ IMP::core::CombineProvenance class."""
14095 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14097 def set_number_of_frames(self, frames):
14098 r"""set_number_of_frames(CombineProvenance self, int frames)"""
14099 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14102 r"""get_number_of_frames(CombineProvenance self) -> int"""
14103 return _IMP_core.CombineProvenance_get_number_of_frames(self)
14105 def set_number_of_runs(self, runs):
14106 r"""set_number_of_runs(CombineProvenance self, int runs)"""
14107 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14109 def get_number_of_runs(self):
14110 r"""get_number_of_runs(CombineProvenance self) -> int"""
14111 return _IMP_core.CombineProvenance_get_number_of_runs(self)
14113 def __init__(self, *args):
14115 __init__(CombineProvenance self) -> CombineProvenance
14116 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14117 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14119 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14122 def get_is_setup(*args):
14124 get_is_setup(Model m, ParticleIndex pi) -> bool
14125 get_is_setup(_ParticleAdaptor p) -> bool
14127 return _IMP_core.CombineProvenance_get_is_setup(*args)
14129 def show(self, *args):
14130 r"""show(CombineProvenance self, _ostream out=std::cout)"""
14131 return _IMP_core.CombineProvenance_show(self, *args)
14134 def setup_particle(*args):
14136 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14137 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14138 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14139 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14141 return _IMP_core.CombineProvenance_setup_particle(*args)
14143 def add_attribute(self, *args):
14145 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14146 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14147 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14148 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14149 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14150 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14151 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14152 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14153 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14154 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14155 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14156 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14158 return _IMP_core.CombineProvenance_add_attribute(self, *args)
14160 def get_value(self, *args):
14162 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14163 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14164 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14165 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14166 get_value(CombineProvenance self, StringKey a0) -> IMP::String
14167 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14168 get_value(CombineProvenance self, ObjectKey a0) -> Object
14169 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14170 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14171 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14172 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14174 return _IMP_core.CombineProvenance_get_value(self, *args)
14176 def set_value(self, *args):
14178 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14179 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14180 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14181 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14182 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14183 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14184 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14185 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14186 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14187 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14188 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14190 return _IMP_core.CombineProvenance_set_value(self, *args)
14192 def remove_attribute(self, *args):
14194 remove_attribute(CombineProvenance self, FloatKey a0)
14195 remove_attribute(CombineProvenance self, IntKey a0)
14196 remove_attribute(CombineProvenance self, FloatsKey a0)
14197 remove_attribute(CombineProvenance self, IntsKey a0)
14198 remove_attribute(CombineProvenance self, StringKey a0)
14199 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14200 remove_attribute(CombineProvenance self, ObjectKey a0)
14201 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14202 remove_attribute(CombineProvenance self, SparseIntKey a0)
14203 remove_attribute(CombineProvenance self, SparseStringKey a0)
14204 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14206 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14208 def has_attribute(self, *args):
14210 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14211 has_attribute(CombineProvenance self, IntKey a0) -> bool
14212 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14213 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14214 has_attribute(CombineProvenance self, StringKey a0) -> bool
14215 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14216 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14217 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14218 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14219 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14220 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14222 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14224 def get_derivative(self, a0):
14225 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14226 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14228 def get_name(self):
14229 r"""get_name(CombineProvenance self) -> std::string"""
14230 return _IMP_core.CombineProvenance_get_name(self)
14232 def clear_caches(self):
14233 r"""clear_caches(CombineProvenance self)"""
14234 return _IMP_core.CombineProvenance_clear_caches(self)
14236 def set_name(self, a0):
14237 r"""set_name(CombineProvenance self, std::string a0)"""
14238 return _IMP_core.CombineProvenance_set_name(self, a0)
14241 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14242 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14244 def add_to_derivative(self, a0, a1, a2):
14245 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14246 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14248 def set_is_optimized(self, a0, a1):
14249 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14250 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14252 def get_is_optimized(self, a0):
14253 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14254 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14257 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14258 return _IMP_core.CombineProvenance_get_check_level(self)
14260 def __eq__(self, *args):
14262 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14263 __eq__(CombineProvenance self, Particle d) -> bool
14265 return _IMP_core.CombineProvenance___eq__(self, *args)
14267 def __ne__(self, *args):
14269 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14270 __ne__(CombineProvenance self, Particle d) -> bool
14272 return _IMP_core.CombineProvenance___ne__(self, *args)
14274 def __le__(self, *args):
14276 __le__(CombineProvenance self, CombineProvenance o) -> bool
14277 __le__(CombineProvenance self, Particle d) -> bool
14279 return _IMP_core.CombineProvenance___le__(self, *args)
14281 def __lt__(self, *args):
14283 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14284 __lt__(CombineProvenance self, Particle d) -> bool
14286 return _IMP_core.CombineProvenance___lt__(self, *args)
14288 def __ge__(self, *args):
14290 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14291 __ge__(CombineProvenance self, Particle d) -> bool
14293 return _IMP_core.CombineProvenance___ge__(self, *args)
14295 def __gt__(self, *args):
14297 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14298 __gt__(CombineProvenance self, Particle d) -> bool
14300 return _IMP_core.CombineProvenance___gt__(self, *args)
14302 def __hash__(self):
14303 r"""__hash__(CombineProvenance self) -> std::size_t"""
14304 return _IMP_core.CombineProvenance___hash__(self)
14307 r"""__str__(CombineProvenance self) -> std::string"""
14308 return _IMP_core.CombineProvenance___str__(self)
14310 def __repr__(self):
14311 r"""__repr__(CombineProvenance self) -> std::string"""
14312 return _IMP_core.CombineProvenance___repr__(self)
14314 def _get_as_binary(self):
14315 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14316 return _IMP_core.CombineProvenance__get_as_binary(self)
14318 def _set_from_binary(self, p):
14319 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14320 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14322 def __getstate__(self):
14323 p = self._get_as_binary()
14324 if len(self.__dict__) > 1:
14325 d = self.__dict__.copy()
14330 def __setstate__(self, p):
14331 if not hasattr(self,
'this'):
14333 if isinstance(p, tuple):
14335 self.__dict__.update(d)
14336 return self._set_from_binary(p)
14338 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14341 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14342 class FilterProvenance(Provenance):
14343 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14345 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14347 def set_method(self, method):
14348 r"""set_method(FilterProvenance self, std::string method)"""
14349 return _IMP_core.FilterProvenance_set_method(self, method)
14351 def get_method(self):
14352 r"""get_method(FilterProvenance self) -> std::string"""
14353 return _IMP_core.FilterProvenance_get_method(self)
14355 def set_number_of_frames(self, frames):
14356 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14357 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14360 r"""get_number_of_frames(FilterProvenance self) -> int"""
14361 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14363 def set_threshold(self, threshold):
14364 r"""set_threshold(FilterProvenance self, double threshold)"""
14365 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14367 def get_threshold(self):
14368 r"""get_threshold(FilterProvenance self) -> double"""
14369 return _IMP_core.FilterProvenance_get_threshold(self)
14371 def __init__(self, *args):
14373 __init__(FilterProvenance self) -> FilterProvenance
14374 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14375 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14377 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14380 def get_is_setup(*args):
14382 get_is_setup(Model m, ParticleIndex pi) -> bool
14383 get_is_setup(_ParticleAdaptor p) -> bool
14385 return _IMP_core.FilterProvenance_get_is_setup(*args)
14387 def show(self, *args):
14388 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14389 return _IMP_core.FilterProvenance_show(self, *args)
14392 def setup_particle(*args):
14394 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14395 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14396 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14397 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14399 return _IMP_core.FilterProvenance_setup_particle(*args)
14401 def add_attribute(self, *args):
14403 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14404 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14405 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14406 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14407 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14408 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14409 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14410 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14411 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14412 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14413 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14414 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14416 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14418 def get_value(self, *args):
14420 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14421 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14422 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14423 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14424 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14425 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14426 get_value(FilterProvenance self, ObjectKey a0) -> Object
14427 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14428 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14429 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14430 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14432 return _IMP_core.FilterProvenance_get_value(self, *args)
14434 def set_value(self, *args):
14436 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14437 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14438 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14439 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14440 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14441 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14442 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14443 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14444 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14445 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14446 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14448 return _IMP_core.FilterProvenance_set_value(self, *args)
14450 def remove_attribute(self, *args):
14452 remove_attribute(FilterProvenance self, FloatKey a0)
14453 remove_attribute(FilterProvenance self, IntKey a0)
14454 remove_attribute(FilterProvenance self, FloatsKey a0)
14455 remove_attribute(FilterProvenance self, IntsKey a0)
14456 remove_attribute(FilterProvenance self, StringKey a0)
14457 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14458 remove_attribute(FilterProvenance self, ObjectKey a0)
14459 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14460 remove_attribute(FilterProvenance self, SparseIntKey a0)
14461 remove_attribute(FilterProvenance self, SparseStringKey a0)
14462 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14464 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14466 def has_attribute(self, *args):
14468 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14469 has_attribute(FilterProvenance self, IntKey a0) -> bool
14470 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14471 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14472 has_attribute(FilterProvenance self, StringKey a0) -> bool
14473 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14474 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14475 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14476 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14477 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14478 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14480 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14482 def get_derivative(self, a0):
14483 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14484 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14486 def get_name(self):
14487 r"""get_name(FilterProvenance self) -> std::string"""
14488 return _IMP_core.FilterProvenance_get_name(self)
14490 def clear_caches(self):
14491 r"""clear_caches(FilterProvenance self)"""
14492 return _IMP_core.FilterProvenance_clear_caches(self)
14494 def set_name(self, a0):
14495 r"""set_name(FilterProvenance self, std::string a0)"""
14496 return _IMP_core.FilterProvenance_set_name(self, a0)
14499 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14500 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14502 def add_to_derivative(self, a0, a1, a2):
14503 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14504 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14506 def set_is_optimized(self, a0, a1):
14507 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14508 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14510 def get_is_optimized(self, a0):
14511 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14512 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14515 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14516 return _IMP_core.FilterProvenance_get_check_level(self)
14518 def __eq__(self, *args):
14520 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14521 __eq__(FilterProvenance self, Particle d) -> bool
14523 return _IMP_core.FilterProvenance___eq__(self, *args)
14525 def __ne__(self, *args):
14527 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14528 __ne__(FilterProvenance self, Particle d) -> bool
14530 return _IMP_core.FilterProvenance___ne__(self, *args)
14532 def __le__(self, *args):
14534 __le__(FilterProvenance self, FilterProvenance o) -> bool
14535 __le__(FilterProvenance self, Particle d) -> bool
14537 return _IMP_core.FilterProvenance___le__(self, *args)
14539 def __lt__(self, *args):
14541 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14542 __lt__(FilterProvenance self, Particle d) -> bool
14544 return _IMP_core.FilterProvenance___lt__(self, *args)
14546 def __ge__(self, *args):
14548 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14549 __ge__(FilterProvenance self, Particle d) -> bool
14551 return _IMP_core.FilterProvenance___ge__(self, *args)
14553 def __gt__(self, *args):
14555 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14556 __gt__(FilterProvenance self, Particle d) -> bool
14558 return _IMP_core.FilterProvenance___gt__(self, *args)
14560 def __hash__(self):
14561 r"""__hash__(FilterProvenance self) -> std::size_t"""
14562 return _IMP_core.FilterProvenance___hash__(self)
14565 r"""__str__(FilterProvenance self) -> std::string"""
14566 return _IMP_core.FilterProvenance___str__(self)
14568 def __repr__(self):
14569 r"""__repr__(FilterProvenance self) -> std::string"""
14570 return _IMP_core.FilterProvenance___repr__(self)
14572 def _get_as_binary(self):
14573 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14574 return _IMP_core.FilterProvenance__get_as_binary(self)
14576 def _set_from_binary(self, p):
14577 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14578 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14580 def __getstate__(self):
14581 p = self._get_as_binary()
14582 if len(self.__dict__) > 1:
14583 d = self.__dict__.copy()
14588 def __setstate__(self, p):
14589 if not hasattr(self,
'this'):
14591 if isinstance(p, tuple):
14593 self.__dict__.update(d)
14594 return self._set_from_binary(p)
14596 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14599 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14600 class ClusterProvenance(Provenance):
14601 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14603 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14605 def set_number_of_members(self, members):
14606 r"""set_number_of_members(ClusterProvenance self, int members)"""
14607 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14609 def get_number_of_members(self):
14610 r"""get_number_of_members(ClusterProvenance self) -> int"""
14611 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14613 def set_precision(self, precision):
14614 r"""set_precision(ClusterProvenance self, double precision)"""
14615 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14617 def get_precision(self):
14618 r"""get_precision(ClusterProvenance self) -> double"""
14619 return _IMP_core.ClusterProvenance_get_precision(self)
14621 def set_density(self, density):
14622 r"""set_density(ClusterProvenance self, std::string density)"""
14623 return _IMP_core.ClusterProvenance_set_density(self, density)
14625 def get_density(self):
14626 r"""get_density(ClusterProvenance self) -> std::string"""
14627 return _IMP_core.ClusterProvenance_get_density(self)
14629 def __init__(self, *args):
14631 __init__(ClusterProvenance self) -> ClusterProvenance
14632 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14633 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14635 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14638 def get_is_setup(*args):
14640 get_is_setup(Model m, ParticleIndex pi) -> bool
14641 get_is_setup(_ParticleAdaptor p) -> bool
14643 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14645 def show(self, *args):
14646 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14647 return _IMP_core.ClusterProvenance_show(self, *args)
14650 def setup_particle(*args):
14652 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14653 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14654 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14655 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14656 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14657 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14658 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14659 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14661 return _IMP_core.ClusterProvenance_setup_particle(*args)
14663 def add_attribute(self, *args):
14665 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14666 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14667 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14668 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14669 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14670 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14671 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14672 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14673 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14674 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14675 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14676 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14678 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14680 def get_value(self, *args):
14682 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14683 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14684 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14685 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14686 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14687 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14688 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14689 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14690 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14691 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14692 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14694 return _IMP_core.ClusterProvenance_get_value(self, *args)
14696 def set_value(self, *args):
14698 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14699 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14700 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14701 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14702 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14703 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14704 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14705 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14706 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14707 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14708 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14710 return _IMP_core.ClusterProvenance_set_value(self, *args)
14712 def remove_attribute(self, *args):
14714 remove_attribute(ClusterProvenance self, FloatKey a0)
14715 remove_attribute(ClusterProvenance self, IntKey a0)
14716 remove_attribute(ClusterProvenance self, FloatsKey a0)
14717 remove_attribute(ClusterProvenance self, IntsKey a0)
14718 remove_attribute(ClusterProvenance self, StringKey a0)
14719 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14720 remove_attribute(ClusterProvenance self, ObjectKey a0)
14721 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14722 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14723 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14724 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14726 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14728 def has_attribute(self, *args):
14730 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14731 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14732 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14733 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14734 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14735 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14736 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14737 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14738 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14739 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14740 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14742 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14744 def get_derivative(self, a0):
14745 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14746 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14748 def get_name(self):
14749 r"""get_name(ClusterProvenance self) -> std::string"""
14750 return _IMP_core.ClusterProvenance_get_name(self)
14752 def clear_caches(self):
14753 r"""clear_caches(ClusterProvenance self)"""
14754 return _IMP_core.ClusterProvenance_clear_caches(self)
14756 def set_name(self, a0):
14757 r"""set_name(ClusterProvenance self, std::string a0)"""
14758 return _IMP_core.ClusterProvenance_set_name(self, a0)
14761 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14762 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14764 def add_to_derivative(self, a0, a1, a2):
14765 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14766 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14768 def set_is_optimized(self, a0, a1):
14769 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14770 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14772 def get_is_optimized(self, a0):
14773 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14774 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14777 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14778 return _IMP_core.ClusterProvenance_get_check_level(self)
14780 def __eq__(self, *args):
14782 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14783 __eq__(ClusterProvenance self, Particle d) -> bool
14785 return _IMP_core.ClusterProvenance___eq__(self, *args)
14787 def __ne__(self, *args):
14789 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14790 __ne__(ClusterProvenance self, Particle d) -> bool
14792 return _IMP_core.ClusterProvenance___ne__(self, *args)
14794 def __le__(self, *args):
14796 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14797 __le__(ClusterProvenance self, Particle d) -> bool
14799 return _IMP_core.ClusterProvenance___le__(self, *args)
14801 def __lt__(self, *args):
14803 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14804 __lt__(ClusterProvenance self, Particle d) -> bool
14806 return _IMP_core.ClusterProvenance___lt__(self, *args)
14808 def __ge__(self, *args):
14810 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14811 __ge__(ClusterProvenance self, Particle d) -> bool
14813 return _IMP_core.ClusterProvenance___ge__(self, *args)
14815 def __gt__(self, *args):
14817 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14818 __gt__(ClusterProvenance self, Particle d) -> bool
14820 return _IMP_core.ClusterProvenance___gt__(self, *args)
14822 def __hash__(self):
14823 r"""__hash__(ClusterProvenance self) -> std::size_t"""
14824 return _IMP_core.ClusterProvenance___hash__(self)
14827 r"""__str__(ClusterProvenance self) -> std::string"""
14828 return _IMP_core.ClusterProvenance___str__(self)
14830 def __repr__(self):
14831 r"""__repr__(ClusterProvenance self) -> std::string"""
14832 return _IMP_core.ClusterProvenance___repr__(self)
14834 def _get_as_binary(self):
14835 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14836 return _IMP_core.ClusterProvenance__get_as_binary(self)
14838 def _set_from_binary(self, p):
14839 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14840 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14842 def __getstate__(self):
14843 p = self._get_as_binary()
14844 if len(self.__dict__) > 1:
14845 d = self.__dict__.copy()
14850 def __setstate__(self, p):
14851 if not hasattr(self,
'this'):
14853 if isinstance(p, tuple):
14855 self.__dict__.update(d)
14856 return self._set_from_binary(p)
14858 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14861 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14862 class ScriptProvenance(Provenance):
14863 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14865 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14867 def set_filename(self, filename):
14868 r"""set_filename(ScriptProvenance self, std::string filename)"""
14869 return _IMP_core.ScriptProvenance_set_filename(self, filename)
14871 def get_filename(self):
14872 r"""get_filename(ScriptProvenance self) -> std::string"""
14873 return _IMP_core.ScriptProvenance_get_filename(self)
14875 def __init__(self, *args):
14877 __init__(ScriptProvenance self) -> ScriptProvenance
14878 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14879 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14881 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14884 def get_is_setup(*args):
14886 get_is_setup(Model m, ParticleIndex pi) -> bool
14887 get_is_setup(_ParticleAdaptor p) -> bool
14889 return _IMP_core.ScriptProvenance_get_is_setup(*args)
14891 def show(self, *args):
14892 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14893 return _IMP_core.ScriptProvenance_show(self, *args)
14896 def setup_particle(*args):
14898 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14899 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14900 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14901 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14903 return _IMP_core.ScriptProvenance_setup_particle(*args)
14905 def add_attribute(self, *args):
14907 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14908 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14909 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14910 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14911 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14912 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14913 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14914 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14915 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14916 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14917 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14918 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14920 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14922 def get_value(self, *args):
14924 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14925 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14926 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14927 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14928 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14929 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14930 get_value(ScriptProvenance self, ObjectKey a0) -> Object
14931 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14932 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14933 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14934 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14936 return _IMP_core.ScriptProvenance_get_value(self, *args)
14938 def set_value(self, *args):
14940 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14941 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14942 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14943 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14944 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14945 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14946 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14947 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14948 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14949 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14950 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14952 return _IMP_core.ScriptProvenance_set_value(self, *args)
14954 def remove_attribute(self, *args):
14956 remove_attribute(ScriptProvenance self, FloatKey a0)
14957 remove_attribute(ScriptProvenance self, IntKey a0)
14958 remove_attribute(ScriptProvenance self, FloatsKey a0)
14959 remove_attribute(ScriptProvenance self, IntsKey a0)
14960 remove_attribute(ScriptProvenance self, StringKey a0)
14961 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14962 remove_attribute(ScriptProvenance self, ObjectKey a0)
14963 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14964 remove_attribute(ScriptProvenance self, SparseIntKey a0)
14965 remove_attribute(ScriptProvenance self, SparseStringKey a0)
14966 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14968 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14970 def has_attribute(self, *args):
14972 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14973 has_attribute(ScriptProvenance self, IntKey a0) -> bool
14974 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14975 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14976 has_attribute(ScriptProvenance self, StringKey a0) -> bool
14977 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14978 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14979 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14980 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14981 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14982 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14984 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14986 def get_derivative(self, a0):
14987 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14988 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14990 def get_name(self):
14991 r"""get_name(ScriptProvenance self) -> std::string"""
14992 return _IMP_core.ScriptProvenance_get_name(self)
14994 def clear_caches(self):
14995 r"""clear_caches(ScriptProvenance self)"""
14996 return _IMP_core.ScriptProvenance_clear_caches(self)
14998 def set_name(self, a0):
14999 r"""set_name(ScriptProvenance self, std::string a0)"""
15000 return _IMP_core.ScriptProvenance_set_name(self, a0)
15003 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15004 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15006 def add_to_derivative(self, a0, a1, a2):
15007 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15008 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15010 def set_is_optimized(self, a0, a1):
15011 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15012 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15014 def get_is_optimized(self, a0):
15015 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15016 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15019 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15020 return _IMP_core.ScriptProvenance_get_check_level(self)
15022 def __eq__(self, *args):
15024 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15025 __eq__(ScriptProvenance self, Particle d) -> bool
15027 return _IMP_core.ScriptProvenance___eq__(self, *args)
15029 def __ne__(self, *args):
15031 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15032 __ne__(ScriptProvenance self, Particle d) -> bool
15034 return _IMP_core.ScriptProvenance___ne__(self, *args)
15036 def __le__(self, *args):
15038 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15039 __le__(ScriptProvenance self, Particle d) -> bool
15041 return _IMP_core.ScriptProvenance___le__(self, *args)
15043 def __lt__(self, *args):
15045 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15046 __lt__(ScriptProvenance self, Particle d) -> bool
15048 return _IMP_core.ScriptProvenance___lt__(self, *args)
15050 def __ge__(self, *args):
15052 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15053 __ge__(ScriptProvenance self, Particle d) -> bool
15055 return _IMP_core.ScriptProvenance___ge__(self, *args)
15057 def __gt__(self, *args):
15059 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15060 __gt__(ScriptProvenance self, Particle d) -> bool
15062 return _IMP_core.ScriptProvenance___gt__(self, *args)
15064 def __hash__(self):
15065 r"""__hash__(ScriptProvenance self) -> std::size_t"""
15066 return _IMP_core.ScriptProvenance___hash__(self)
15069 r"""__str__(ScriptProvenance self) -> std::string"""
15070 return _IMP_core.ScriptProvenance___str__(self)
15072 def __repr__(self):
15073 r"""__repr__(ScriptProvenance self) -> std::string"""
15074 return _IMP_core.ScriptProvenance___repr__(self)
15076 def _get_as_binary(self):
15077 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15078 return _IMP_core.ScriptProvenance__get_as_binary(self)
15080 def _set_from_binary(self, p):
15081 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15082 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15084 def __getstate__(self):
15085 p = self._get_as_binary()
15086 if len(self.__dict__) > 1:
15087 d = self.__dict__.copy()
15092 def __setstate__(self, p):
15093 if not hasattr(self,
'this'):
15095 if isinstance(p, tuple):
15097 self.__dict__.update(d)
15098 return self._set_from_binary(p)
15100 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15103 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15104 class SoftwareProvenance(Provenance):
15105 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15107 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15109 def set_software_name(self, name):
15110 r"""set_software_name(SoftwareProvenance self, std::string name)"""
15111 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15113 def get_software_name(self):
15114 r"""get_software_name(SoftwareProvenance self) -> std::string"""
15115 return _IMP_core.SoftwareProvenance_get_software_name(self)
15117 def set_version(self, version):
15118 r"""set_version(SoftwareProvenance self, std::string version)"""
15119 return _IMP_core.SoftwareProvenance_set_version(self, version)
15121 def get_version(self):
15122 r"""get_version(SoftwareProvenance self) -> std::string"""
15123 return _IMP_core.SoftwareProvenance_get_version(self)
15125 def set_location(self, location):
15126 r"""set_location(SoftwareProvenance self, std::string location)"""
15127 return _IMP_core.SoftwareProvenance_set_location(self, location)
15129 def get_location(self):
15130 r"""get_location(SoftwareProvenance self) -> std::string"""
15131 return _IMP_core.SoftwareProvenance_get_location(self)
15133 def __init__(self, *args):
15135 __init__(SoftwareProvenance self) -> SoftwareProvenance
15136 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15137 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15139 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15142 def get_is_setup(*args):
15144 get_is_setup(Model m, ParticleIndex pi) -> bool
15145 get_is_setup(_ParticleAdaptor p) -> bool
15147 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15149 def show(self, *args):
15150 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15151 return _IMP_core.SoftwareProvenance_show(self, *args)
15154 def setup_particle(*args):
15156 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15157 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15158 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15159 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15161 return _IMP_core.SoftwareProvenance_setup_particle(*args)
15163 def add_attribute(self, *args):
15165 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15166 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15167 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15168 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15169 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15170 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15171 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15172 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15173 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15174 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15175 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15176 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15178 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15180 def get_value(self, *args):
15182 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15183 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15184 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15185 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15186 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15187 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15188 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15189 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15190 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15191 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15192 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15194 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15196 def set_value(self, *args):
15198 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15199 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15200 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15201 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15202 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15203 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15204 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15205 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15206 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15207 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15208 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15210 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15212 def remove_attribute(self, *args):
15214 remove_attribute(SoftwareProvenance self, FloatKey a0)
15215 remove_attribute(SoftwareProvenance self, IntKey a0)
15216 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15217 remove_attribute(SoftwareProvenance self, IntsKey a0)
15218 remove_attribute(SoftwareProvenance self, StringKey a0)
15219 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15220 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15221 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15222 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15223 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15224 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15226 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15228 def has_attribute(self, *args):
15230 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15231 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15232 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15233 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15234 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15235 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15236 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15237 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15238 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15239 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15240 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15242 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15244 def get_derivative(self, a0):
15245 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15246 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15248 def get_name(self):
15249 r"""get_name(SoftwareProvenance self) -> std::string"""
15250 return _IMP_core.SoftwareProvenance_get_name(self)
15252 def clear_caches(self):
15253 r"""clear_caches(SoftwareProvenance self)"""
15254 return _IMP_core.SoftwareProvenance_clear_caches(self)
15256 def set_name(self, a0):
15257 r"""set_name(SoftwareProvenance self, std::string a0)"""
15258 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15261 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15262 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15264 def add_to_derivative(self, a0, a1, a2):
15265 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15266 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15268 def set_is_optimized(self, a0, a1):
15269 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15270 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15272 def get_is_optimized(self, a0):
15273 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15274 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15277 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15278 return _IMP_core.SoftwareProvenance_get_check_level(self)
15280 def __eq__(self, *args):
15282 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15283 __eq__(SoftwareProvenance self, Particle d) -> bool
15285 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15287 def __ne__(self, *args):
15289 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15290 __ne__(SoftwareProvenance self, Particle d) -> bool
15292 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15294 def __le__(self, *args):
15296 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15297 __le__(SoftwareProvenance self, Particle d) -> bool
15299 return _IMP_core.SoftwareProvenance___le__(self, *args)
15301 def __lt__(self, *args):
15303 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15304 __lt__(SoftwareProvenance self, Particle d) -> bool
15306 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15308 def __ge__(self, *args):
15310 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15311 __ge__(SoftwareProvenance self, Particle d) -> bool
15313 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15315 def __gt__(self, *args):
15317 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15318 __gt__(SoftwareProvenance self, Particle d) -> bool
15320 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15322 def __hash__(self):
15323 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15324 return _IMP_core.SoftwareProvenance___hash__(self)
15327 r"""__str__(SoftwareProvenance self) -> std::string"""
15328 return _IMP_core.SoftwareProvenance___str__(self)
15330 def __repr__(self):
15331 r"""__repr__(SoftwareProvenance self) -> std::string"""
15332 return _IMP_core.SoftwareProvenance___repr__(self)
15334 def _get_as_binary(self):
15335 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15336 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15338 def _set_from_binary(self, p):
15339 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15340 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15342 def __getstate__(self):
15343 p = self._get_as_binary()
15344 if len(self.__dict__) > 1:
15345 d = self.__dict__.copy()
15350 def __setstate__(self, p):
15351 if not hasattr(self,
'this'):
15353 if isinstance(p, tuple):
15355 self.__dict__.update(d)
15356 return self._set_from_binary(p)
15358 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15361 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15363 r"""Proxy of C++ IMP::core::Provenanced class."""
15365 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15367 def get_provenance(self):
15368 r"""get_provenance(Provenanced self) -> Provenance"""
15369 return _IMP_core.Provenanced_get_provenance(self)
15371 def set_provenance(self, p):
15372 r"""set_provenance(Provenanced self, Provenance p)"""
15373 return _IMP_core.Provenanced_set_provenance(self, p)
15375 def __init__(self, *args):
15377 __init__(Provenanced self) -> Provenanced
15378 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15379 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15381 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15384 def get_is_setup(*args):
15386 get_is_setup(Model m, ParticleIndex pi) -> bool
15387 get_is_setup(_ParticleAdaptor p) -> bool
15389 return _IMP_core.Provenanced_get_is_setup(*args)
15391 def show(self, *args):
15392 r"""show(Provenanced self, _ostream out=std::cout)"""
15393 return _IMP_core.Provenanced_show(self, *args)
15396 def setup_particle(*args):
15398 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15399 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15401 return _IMP_core.Provenanced_setup_particle(*args)
15403 def add_attribute(self, *args):
15405 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15406 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15407 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15408 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15409 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15410 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15411 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15412 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15413 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15414 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15415 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15416 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15418 return _IMP_core.Provenanced_add_attribute(self, *args)
15420 def get_value(self, *args):
15422 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15423 get_value(Provenanced self, IntKey a0) -> IMP::Int
15424 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15425 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15426 get_value(Provenanced self, StringKey a0) -> IMP::String
15427 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15428 get_value(Provenanced self, ObjectKey a0) -> Object
15429 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15430 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15431 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15432 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15434 return _IMP_core.Provenanced_get_value(self, *args)
15436 def set_value(self, *args):
15438 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15439 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15440 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15441 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15442 set_value(Provenanced self, StringKey a0, IMP::String a1)
15443 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15444 set_value(Provenanced self, ObjectKey a0, Object a1)
15445 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15446 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15447 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15448 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15450 return _IMP_core.Provenanced_set_value(self, *args)
15452 def remove_attribute(self, *args):
15454 remove_attribute(Provenanced self, FloatKey a0)
15455 remove_attribute(Provenanced self, IntKey a0)
15456 remove_attribute(Provenanced self, FloatsKey a0)
15457 remove_attribute(Provenanced self, IntsKey a0)
15458 remove_attribute(Provenanced self, StringKey a0)
15459 remove_attribute(Provenanced self, ParticleIndexKey a0)
15460 remove_attribute(Provenanced self, ObjectKey a0)
15461 remove_attribute(Provenanced self, SparseFloatKey a0)
15462 remove_attribute(Provenanced self, SparseIntKey a0)
15463 remove_attribute(Provenanced self, SparseStringKey a0)
15464 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15466 return _IMP_core.Provenanced_remove_attribute(self, *args)
15468 def has_attribute(self, *args):
15470 has_attribute(Provenanced self, FloatKey a0) -> bool
15471 has_attribute(Provenanced self, IntKey a0) -> bool
15472 has_attribute(Provenanced self, FloatsKey a0) -> bool
15473 has_attribute(Provenanced self, IntsKey a0) -> bool
15474 has_attribute(Provenanced self, StringKey a0) -> bool
15475 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15476 has_attribute(Provenanced self, ObjectKey a0) -> bool
15477 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15478 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15479 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15480 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15482 return _IMP_core.Provenanced_has_attribute(self, *args)
15484 def get_derivative(self, a0):
15485 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15486 return _IMP_core.Provenanced_get_derivative(self, a0)
15488 def get_name(self):
15489 r"""get_name(Provenanced self) -> std::string"""
15490 return _IMP_core.Provenanced_get_name(self)
15492 def clear_caches(self):
15493 r"""clear_caches(Provenanced self)"""
15494 return _IMP_core.Provenanced_clear_caches(self)
15496 def set_name(self, a0):
15497 r"""set_name(Provenanced self, std::string a0)"""
15498 return _IMP_core.Provenanced_set_name(self, a0)
15501 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15502 return _IMP_core.Provenanced_set_check_level(self, a0)
15504 def add_to_derivative(self, a0, a1, a2):
15505 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15506 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15508 def set_is_optimized(self, a0, a1):
15509 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15510 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15512 def get_is_optimized(self, a0):
15513 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15514 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15517 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15518 return _IMP_core.Provenanced_get_check_level(self)
15520 def __eq__(self, *args):
15522 __eq__(Provenanced self, Provenanced o) -> bool
15523 __eq__(Provenanced self, Particle d) -> bool
15525 return _IMP_core.Provenanced___eq__(self, *args)
15527 def __ne__(self, *args):
15529 __ne__(Provenanced self, Provenanced o) -> bool
15530 __ne__(Provenanced self, Particle d) -> bool
15532 return _IMP_core.Provenanced___ne__(self, *args)
15534 def __le__(self, *args):
15536 __le__(Provenanced self, Provenanced o) -> bool
15537 __le__(Provenanced self, Particle d) -> bool
15539 return _IMP_core.Provenanced___le__(self, *args)
15541 def __lt__(self, *args):
15543 __lt__(Provenanced self, Provenanced o) -> bool
15544 __lt__(Provenanced self, Particle d) -> bool
15546 return _IMP_core.Provenanced___lt__(self, *args)
15548 def __ge__(self, *args):
15550 __ge__(Provenanced self, Provenanced o) -> bool
15551 __ge__(Provenanced self, Particle d) -> bool
15553 return _IMP_core.Provenanced___ge__(self, *args)
15555 def __gt__(self, *args):
15557 __gt__(Provenanced self, Provenanced o) -> bool
15558 __gt__(Provenanced self, Particle d) -> bool
15560 return _IMP_core.Provenanced___gt__(self, *args)
15562 def __hash__(self):
15563 r"""__hash__(Provenanced self) -> std::size_t"""
15564 return _IMP_core.Provenanced___hash__(self)
15567 r"""__str__(Provenanced self) -> std::string"""
15568 return _IMP_core.Provenanced___str__(self)
15570 def __repr__(self):
15571 r"""__repr__(Provenanced self) -> std::string"""
15572 return _IMP_core.Provenanced___repr__(self)
15574 def _get_as_binary(self):
15575 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15576 return _IMP_core.Provenanced__get_as_binary(self)
15578 def _set_from_binary(self, p):
15579 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15580 return _IMP_core.Provenanced__set_from_binary(self, p)
15582 def __getstate__(self):
15583 p = self._get_as_binary()
15584 if len(self.__dict__) > 1:
15585 d = self.__dict__.copy()
15590 def __setstate__(self, p):
15591 if not hasattr(self,
'this'):
15593 if isinstance(p, tuple):
15595 self.__dict__.update(d)
15596 return self._set_from_binary(p)
15598 __swig_destroy__ = _IMP_core.delete_Provenanced
15601 _IMP_core.Provenanced_swigregister(Provenanced)
15604 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15605 return _IMP_core.add_provenance(m, pi, p)
15608 r"""create_clone(Provenance p) -> Provenance"""
15609 return _IMP_core.create_clone(p)
15613 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15614 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
15615 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
15617 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15620 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15621 return _IMP_core.create_restraint(ps, pp)
15623 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15625 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15627 def __init__(self, *args):
15629 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15630 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15632 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15634 def get_version_info(self):
15635 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15636 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15637 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15640 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15641 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15643 def __repr__(self):
15644 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15645 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15649 return _object_cast_to_TruncatedHarmonic(o)
15653 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15655 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15657 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15659 def __init__(self, *args):
15661 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15662 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15664 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15666 def get_version_info(self):
15667 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15668 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15669 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15672 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15673 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15675 def __repr__(self):
15676 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15677 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15681 return _object_cast_to_TruncatedHarmonic(o)
15685 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15687 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15689 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15691 def __init__(self, *args):
15693 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15694 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15696 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15698 def get_version_info(self):
15699 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15700 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15701 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15704 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15705 return _IMP_core.TruncatedHarmonicBound___str__(self)
15707 def __repr__(self):
15708 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15709 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15713 return _object_cast_to_TruncatedHarmonic(o)
15717 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15719 r"""Proxy of C++ IMP::Key< 34897493 > class."""
15721 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15723 def __init__(self, *args):
15725 __init__(ParticleType self) -> ParticleType
15726 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15727 __init__(ParticleType self, unsigned int i) -> ParticleType
15729 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15733 r"""add_key(std::string sc) -> unsigned int"""
15734 return _IMP_core.ParticleType_add_key(sc)
15737 def get_key_exists(sc):
15738 r"""get_key_exists(std::string sc) -> bool"""
15739 return _IMP_core.ParticleType_get_key_exists(sc)
15741 def get_string(self):
15742 r"""get_string(ParticleType self) -> std::string const"""
15743 return _IMP_core.ParticleType_get_string(self)
15745 def __cmp__(self, o):
15746 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15747 return _IMP_core.ParticleType___cmp__(self, o)
15749 def __eq__(self, o):
15750 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15751 return _IMP_core.ParticleType___eq__(self, o)
15753 def __ne__(self, o):
15754 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15755 return _IMP_core.ParticleType___ne__(self, o)
15757 def __lt__(self, o):
15758 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15759 return _IMP_core.ParticleType___lt__(self, o)
15761 def __gt__(self, o):
15762 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15763 return _IMP_core.ParticleType___gt__(self, o)
15765 def __ge__(self, o):
15766 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15767 return _IMP_core.ParticleType___ge__(self, o)
15769 def __le__(self, o):
15770 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15771 return _IMP_core.ParticleType___le__(self, o)
15773 def __hash__(self):
15774 r"""__hash__(ParticleType self) -> std::size_t"""
15775 return _IMP_core.ParticleType___hash__(self)
15777 def show(self, *args):
15778 r"""show(ParticleType self, _ostream out=std::cout)"""
15779 return _IMP_core.ParticleType_show(self, *args)
15782 def add_alias(old_key, new_name):
15783 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15784 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15787 def get_number_of_keys():
15788 r"""get_number_of_keys() -> unsigned int"""
15789 return _IMP_core.ParticleType_get_number_of_keys()
15792 r"""get_index(ParticleType self) -> unsigned int"""
15793 return _IMP_core.ParticleType_get_index(self)
15797 r"""show_all(_ostream out)"""
15798 return _IMP_core.ParticleType_show_all(out)
15801 def get_all_strings():
15802 r"""get_all_strings() -> IMP::Vector< std::string >"""
15803 return _IMP_core.ParticleType_get_all_strings()
15806 def get_number_unique():
15807 r"""get_number_unique() -> unsigned int"""
15808 return _IMP_core.ParticleType_get_number_unique()
15811 r"""__str__(ParticleType self) -> std::string"""
15812 return _IMP_core.ParticleType___str__(self)
15814 def __repr__(self):
15815 r"""__repr__(ParticleType self) -> std::string"""
15816 return _IMP_core.ParticleType___repr__(self)
15817 __swig_destroy__ = _IMP_core.delete_ParticleType
15820 _IMP_core.ParticleType_swigregister(ParticleType)
15822 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15824 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15825 __repr__ = _swig_repr
15827 def __init__(self, f, k):
15828 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15829 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15831 def do_get_inputs(self, m, pis):
15832 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15833 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15835 def get_unary_function(self):
15836 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15837 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15839 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15840 r"""evaluate_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15841 return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15843 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15844 r"""evaluate_indexes_scores(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15845 return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15847 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15848 r"""evaluate_indexes_delta(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15849 return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15851 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15852 r"""evaluate_if_good_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15853 return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15855 def get_version_info(self):
15856 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15857 return _IMP_core.AttributeSingletonScore_get_version_info(self)
15858 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15861 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15864 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15865 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15867 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15869 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15870 __repr__ = _swig_repr
15872 def __init__(self, f, bb):
15873 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15874 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15876 def do_get_inputs(self, m, pis):
15877 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15878 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15880 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15881 r"""evaluate_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15882 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15884 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15885 r"""evaluate_indexes_scores(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15886 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15888 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15889 r"""evaluate_indexes_delta(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15890 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15892 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15893 r"""evaluate_if_good_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15894 return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15896 def get_version_info(self):
15897 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15898 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15899 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15902 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15904 def create_bounding_box_3d_singleton_score(f, bb):
15905 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15906 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15908 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15910 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15911 __repr__ = _swig_repr
15913 def __init__(self, f, sphere):
15914 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15915 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15917 def do_get_inputs(self, m, pis):
15918 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15919 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15921 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15922 r"""evaluate_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15923 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15925 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15926 r"""evaluate_indexes_scores(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15927 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15929 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15930 r"""evaluate_indexes_delta(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15931 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15933 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15934 r"""evaluate_if_good_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15935 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15937 def get_version_info(self):
15938 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15939 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15940 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15943 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15945 def create_bounding_sphere_3d_singleton_score(f, sphere):
15946 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15947 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15949 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15951 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15952 __repr__ = _swig_repr
15954 def __init__(self, *args):
15956 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15957 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15959 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15961 def do_get_inputs(self, m, pis):
15962 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15963 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15965 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15966 r"""evaluate_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15967 return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15969 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15970 r"""evaluate_indexes_scores(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15971 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15973 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15974 r"""evaluate_indexes_delta(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15975 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15977 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15978 r"""evaluate_if_good_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15979 return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15981 def get_version_info(self):
15982 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15983 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15984 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15986 def _get_as_binary(self):
15987 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15988 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15990 def _set_from_binary(self, p):
15991 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15992 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15994 def __getstate__(self):
15995 p = self._get_as_binary()
15996 if len(self.__dict__) > 1:
15997 d = self.__dict__.copy()
16002 def __setstate__(self, p):
16003 if not hasattr(self,
'this'):
16005 if isinstance(p, tuple):
16007 self.__dict__.update(d)
16008 return self._set_from_binary(p)
16012 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16014 def create_distance_to_singleton_score(f, pt):
16015 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16016 return _IMP_core.create_distance_to_singleton_score(f, pt)
16018 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16019 def __init__(self, uf):
16020 if isinstance(uf, HarmonicUpperBound):
16021 p = HarmonicUpperBoundSphereDistancePairScore(
16022 uf.get_mean(), uf.get_k())
16023 elif isinstance(uf, HarmonicLowerBound):
16024 if uf.get_mean() == 0.0:
16025 p = SoftSpherePairScore(uf.get_k())
16027 p = _SphereDistancePairScore(uf)
16028 elif isinstance(uf, Harmonic):
16029 p = HarmonicSphereDistancePairScore(
16030 uf.get_mean(), uf.get_k())
16032 p = _SphereDistancePairScore(uf)
16033 self.__dict__[
'_proxied'] = p
16034 def __getattr__(self, key):
16035 return getattr(self._proxied, key)
16036 def __setattr__(self, key, val):
16037 return setattr(self._proxied, key, val)
16039 def __getstate__(self):
16040 return self.__dict__[
'_proxied']
16042 def __setstate__(self, p):
16043 self.__dict__[
'_proxied'] = p
16048 p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16051 p = HarmonicSphereDistancePairScore.get_from(o)
16054 p = SoftSpherePairScore.get_from(o)
16056 p = _SphereDistancePairScore.get_from(o)
16057 obj = object.__new__(SphereDistancePairScore)
16058 obj.__dict__[
'_proxied'] = p
16064 CombineProvenance, FilterProvenance,
16065 ClusterProvenance, ScriptProvenance,
16066 SoftwareProvenance]):
16067 """Yield all provenance decorators of the given types for the particle.
16068 By default, all provenance types are returned. Provenance is returned
16069 in order, most recent first. If the particle has no provenance
16070 information, an empty generator is returned."""
16071 if Provenanced.get_is_setup(p):
16075 if c.get_is_setup(prov):
16077 prov = prov.get_previous()
16080 """Tag the given particle with the current Python script.
16081 This is a noop if the particle is already so tagged."""
16082 main = sys.modules[
'__main__']
16084 if not hasattr(main,
'__file__'):
16088 if prov.get_filename() == f:
16092 provp.set_name(
'script')
16093 prov = ScriptProvenance.setup_particle(provp, f)
16097 """Tag the given particle with the software used to create it.
16098 This is a noop if the particle is already so tagged."""
16100 if prov.get_software_name() == name
and prov.get_version() == version \
16101 and prov.get_location() == location:
16105 provp.set_name(
'software')
16106 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16110 """Tag the given particle as being created by the current version of IMP."""
16113 location=
"https://integrativemodeling.org")
16117 r"""get_module_version() -> std::string const"""
16118 return _IMP_core.get_module_version()
16121 r"""get_example_path(std::string fname) -> std::string"""
16122 return _IMP_core.get_example_path(fname)
16125 r"""get_data_path(std::string fname) -> std::string"""
16126 return _IMP_core.get_data_path(fname)
16128 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.