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_BOOST_SYSTEM = _IMP_core.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_core._ostream_write(self, osa_buf)
238 _IMP_core._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
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_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
302 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
312 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
314 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
316 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
318 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
321 r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
323 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
324 __repr__ = _swig_repr
326 def __init__(self, *args):
327 r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
328 _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
330 def get_version_info(self):
331 r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
332 return _IMP_core._OpenCubicSplineBase_get_version_info(self)
333 __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
336 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
338 _object_types.append(
"MonteCarloMover")
341 def _object_cast_to_MonteCarloMover(o):
342 r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
343 return _IMP_core._object_cast_to_MonteCarloMover(o)
345 MonteCarloMoverResults=list
346 _plural_types.append(
"MonteCarloMoverResults")
347 _value_types.append(
"MonteCarloMoverResult")
350 _object_types.append(
"AngleRestraint")
353 def _object_cast_to_AngleRestraint(o):
354 r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
355 return _IMP_core._object_cast_to_AngleRestraint(o)
357 _object_types.append(
"AngleTripletScore")
360 def _object_cast_to_AngleTripletScore(o):
361 r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
362 return _IMP_core._object_cast_to_AngleTripletScore(o)
364 _object_types.append(
"AttributeSingletonScore")
367 def _object_cast_to_AttributeSingletonScore(o):
368 r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
369 return _IMP_core._object_cast_to_AttributeSingletonScore(o)
371 _object_types.append(
"BallMover")
374 def _object_cast_to_BallMover(o):
375 r"""_object_cast_to_BallMover(Object o) -> BallMover"""
376 return _IMP_core._object_cast_to_BallMover(o)
378 _object_types.append(
"SerialMover")
381 def _object_cast_to_SerialMover(o):
382 r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
383 return _IMP_core._object_cast_to_SerialMover(o)
385 _object_types.append(
"SubsetMover")
388 def _object_cast_to_SubsetMover(o):
389 r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
390 return _IMP_core._object_cast_to_SubsetMover(o)
392 _object_types.append(
"DirectionMover")
395 def _object_cast_to_DirectionMover(o):
396 r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
397 return _IMP_core._object_cast_to_DirectionMover(o)
399 _object_types.append(
"SurfaceMover")
402 def _object_cast_to_SurfaceMover(o):
403 r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
404 return _IMP_core._object_cast_to_SurfaceMover(o)
406 _object_types.append(
"BoundingBox3DSingletonScore")
409 def _object_cast_to_BoundingBox3DSingletonScore(o):
410 r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
411 return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
413 _object_types.append(
"BoundingSphere3DSingletonScore")
416 def _object_cast_to_BoundingSphere3DSingletonScore(o):
417 r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
418 return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
420 _object_types.append(
"BoxSweepClosePairsFinder")
423 def _object_cast_to_BoxSweepClosePairsFinder(o):
424 r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
425 return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
427 _object_types.append(
"NearestNeighborsClosePairsFinder")
430 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
431 r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
432 return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
434 _object_types.append(
"CentroidOfRefined")
437 def _object_cast_to_CentroidOfRefined(o):
438 r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
439 return _IMP_core._object_cast_to_CentroidOfRefined(o)
441 _object_types.append(
"ChecksScoreState")
444 def _object_cast_to_ChecksScoreState(o):
445 r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
446 return _IMP_core._object_cast_to_ChecksScoreState(o)
448 _object_types.append(
"ChildrenRefiner")
451 def _object_cast_to_ChildrenRefiner(o):
452 r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
453 return _IMP_core._object_cast_to_ChildrenRefiner(o)
455 _object_types.append(
"ClosePairsFinder")
458 def _object_cast_to_ClosePairsFinder(o):
459 r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
460 return _IMP_core._object_cast_to_ClosePairsFinder(o)
462 _object_types.append(
"ClosePairsPairScore")
465 def _object_cast_to_ClosePairsPairScore(o):
466 r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
467 return _IMP_core._object_cast_to_ClosePairsPairScore(o)
469 _object_types.append(
"ClosedCubicSpline")
472 def _object_cast_to_ClosedCubicSpline(o):
473 r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
474 return _IMP_core._object_cast_to_ClosedCubicSpline(o)
476 _object_types.append(
"ConjugateGradients")
479 def _object_cast_to_ConjugateGradients(o):
480 r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
481 return _IMP_core._object_cast_to_ConjugateGradients(o)
483 _object_types.append(
"ConnectivityRestraint")
486 def _object_cast_to_ConnectivityRestraint(o):
487 r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
488 return _IMP_core._object_cast_to_ConnectivityRestraint(o)
490 _object_types.append(
"ConstantRestraint")
493 def _object_cast_to_ConstantRestraint(o):
494 r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
495 return _IMP_core._object_cast_to_ConstantRestraint(o)
497 _object_types.append(
"Cosine")
500 def _object_cast_to_Cosine(o):
501 r"""_object_cast_to_Cosine(Object o) -> Cosine"""
502 return _IMP_core._object_cast_to_Cosine(o)
504 _object_types.append(
"CoverRefined")
507 def _object_cast_to_CoverRefined(o):
508 r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
509 return _IMP_core._object_cast_to_CoverRefined(o)
511 _object_types.append(
"DerivativesFromRefined")
514 def _object_cast_to_DerivativesFromRefined(o):
515 r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
516 return _IMP_core._object_cast_to_DerivativesFromRefined(o)
518 _object_types.append(
"DerivativesToRefined")
521 def _object_cast_to_DerivativesToRefined(o):
522 r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
523 return _IMP_core._object_cast_to_DerivativesToRefined(o)
525 _object_types.append(
"WeightedDerivativesToRefined")
528 def _object_cast_to_WeightedDerivativesToRefined(o):
529 r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
530 return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
532 _object_types.append(
"DiameterRestraint")
535 def _object_cast_to_DiameterRestraint(o):
536 r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
537 return _IMP_core._object_cast_to_DiameterRestraint(o)
539 _object_types.append(
"DihedralRestraint")
542 def _object_cast_to_DihedralRestraint(o):
543 r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
544 return _IMP_core._object_cast_to_DihedralRestraint(o)
546 _object_types.append(
"DistanceRestraint")
549 def _object_cast_to_DistanceRestraint(o):
550 r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
551 return _IMP_core._object_cast_to_DistanceRestraint(o)
553 _object_types.append(
"DistanceToSingletonScore")
556 def _object_cast_to_DistanceToSingletonScore(o):
557 r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
558 return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
560 _object_types.append(
"ExcludedVolumeRestraint")
563 def _object_cast_to_ExcludedVolumeRestraint(o):
564 r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
565 return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
567 _object_types.append(
"FixedRefiner")
570 def _object_cast_to_FixedRefiner(o):
571 r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
572 return _IMP_core._object_cast_to_FixedRefiner(o)
574 _object_types.append(
"GridClosePairsFinder")
577 def _object_cast_to_GridClosePairsFinder(o):
578 r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
579 return _IMP_core._object_cast_to_GridClosePairsFinder(o)
581 _object_types.append(
"Harmonic")
584 def _object_cast_to_Harmonic(o):
585 r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
586 return _IMP_core._object_cast_to_Harmonic(o)
588 _object_types.append(
"HarmonicWell")
591 def _object_cast_to_HarmonicWell(o):
592 r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
593 return _IMP_core._object_cast_to_HarmonicWell(o)
595 _object_types.append(
"HarmonicLowerBound")
598 def _object_cast_to_HarmonicLowerBound(o):
599 r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
600 return _IMP_core._object_cast_to_HarmonicLowerBound(o)
602 _object_types.append(
"HarmonicUpperBound")
605 def _object_cast_to_HarmonicUpperBound(o):
606 r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
607 return _IMP_core._object_cast_to_HarmonicUpperBound(o)
609 _object_types.append(
"HarmonicSphereDistancePairScore")
612 def _object_cast_to_HarmonicSphereDistancePairScore(o):
613 r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
614 return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
616 _object_types.append(
"HarmonicUpperBoundSphereDistancePairScore")
619 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
620 r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
621 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
623 _object_types.append(
"HarmonicUpperBoundSphereDiameterPairScore")
626 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
627 r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
628 return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
630 _object_types.append(
"HarmonicSurfaceDistancePairScore")
633 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
634 r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
635 return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
637 _object_types.append(
"HarmonicSurfaceHeightPairScore")
640 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
641 r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
642 return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
644 _object_types.append(
"HarmonicSurfaceDepthPairScore")
647 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
648 r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
649 return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
651 _object_types.append(
"WeightedSum")
654 def _object_cast_to_WeightedSum(o):
655 r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
656 return _IMP_core._object_cast_to_WeightedSum(o)
658 _object_types.append(
"WeightedSumOfExponential")
661 def _object_cast_to_WeightedSumOfExponential(o):
662 r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
663 return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
665 _object_types.append(
"KClosePairsPairScore")
668 def _object_cast_to_KClosePairsPairScore(o):
669 r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
670 return _IMP_core._object_cast_to_KClosePairsPairScore(o)
672 _object_types.append(
"LeavesRefiner")
675 def _object_cast_to_LeavesRefiner(o):
676 r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
677 return _IMP_core._object_cast_to_LeavesRefiner(o)
679 _object_types.append(
"Linear")
682 def _object_cast_to_Linear(o):
683 r"""_object_cast_to_Linear(Object o) -> Linear"""
684 return _IMP_core._object_cast_to_Linear(o)
686 _object_types.append(
"LogNormalMover")
689 def _object_cast_to_LogNormalMover(o):
690 r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
691 return _IMP_core._object_cast_to_LogNormalMover(o)
693 _object_types.append(
"MCCGSampler")
696 def _object_cast_to_MCCGSampler(o):
697 r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
698 return _IMP_core._object_cast_to_MCCGSampler(o)
700 _object_types.append(
"MonteCarlo")
703 def _object_cast_to_MonteCarlo(o):
704 r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
705 return _IMP_core._object_cast_to_MonteCarlo(o)
707 _object_types.append(
"MonteCarloWithLocalOptimization")
710 def _object_cast_to_MonteCarloWithLocalOptimization(o):
711 r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
712 return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
714 _object_types.append(
"MonteCarloWithBasinHopping")
717 def _object_cast_to_MonteCarloWithBasinHopping(o):
718 r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
719 return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
721 _object_types.append(
"MSConnectivityRestraint")
724 def _object_cast_to_MSConnectivityRestraint(o):
725 r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
726 return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
728 _object_types.append(
"NeighborsTable")
731 def _object_cast_to_NeighborsTable(o):
732 r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
733 return _IMP_core._object_cast_to_NeighborsTable(o)
735 _object_types.append(
"NormalMover")
738 def _object_cast_to_NormalMover(o):
739 r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
740 return _IMP_core._object_cast_to_NormalMover(o)
742 _object_types.append(
"NormalizedSphereDistancePairScore")
745 def _object_cast_to_NormalizedSphereDistancePairScore(o):
746 r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
747 return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
749 _object_types.append(
"OpenCubicSpline")
752 def _object_cast_to_OpenCubicSpline(o):
753 r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
754 return _IMP_core._object_cast_to_OpenCubicSpline(o)
756 _object_types.append(
"PairConstraint")
759 def _object_cast_to_PairConstraint(o):
760 r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
761 return _IMP_core._object_cast_to_PairConstraint(o)
763 _object_types.append(
"PairRestraint")
766 def _object_cast_to_PairRestraint(o):
767 r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
768 return _IMP_core._object_cast_to_PairRestraint(o)
770 _object_types.append(
"QuadConstraint")
773 def _object_cast_to_QuadConstraint(o):
774 r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
775 return _IMP_core._object_cast_to_QuadConstraint(o)
777 _object_types.append(
"QuadRestraint")
780 def _object_cast_to_QuadRestraint(o):
781 r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
782 return _IMP_core._object_cast_to_QuadRestraint(o)
784 _object_types.append(
"QuadraticClosePairsFinder")
787 def _object_cast_to_QuadraticClosePairsFinder(o):
788 r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
789 return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
791 _object_types.append(
"RefinedPairsPairScore")
794 def _object_cast_to_RefinedPairsPairScore(o):
795 r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
796 return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
798 _object_types.append(
"RestraintsScoringFunction")
801 def _object_cast_to_RestraintsScoringFunction(o):
802 r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
803 return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
805 _object_types.append(
"RigidBodyDistancePairScore")
808 def _object_cast_to_RigidBodyDistancePairScore(o):
809 r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
810 return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
812 _object_types.append(
"RigidBodyAnglePairScore")
815 def _object_cast_to_RigidBodyAnglePairScore(o):
816 r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
817 return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
819 _object_types.append(
"RigidBodyMover")
822 def _object_cast_to_RigidBodyMover(o):
823 r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
824 return _IMP_core._object_cast_to_RigidBodyMover(o)
826 _object_types.append(
"RigidBodyTunneler")
829 def _object_cast_to_RigidBodyTunneler(o):
830 r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
831 return _IMP_core._object_cast_to_RigidBodyTunneler(o)
833 _object_types.append(
"RigidBodyUmbrella")
836 def _object_cast_to_RigidBodyUmbrella(o):
837 r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
838 return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
840 _object_types.append(
"RigidClosePairsFinder")
843 def _object_cast_to_RigidClosePairsFinder(o):
844 r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
845 return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
847 _object_types.append(
"RigidMembersRefiner")
850 def _object_cast_to_RigidMembersRefiner(o):
851 r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
852 return _IMP_core._object_cast_to_RigidMembersRefiner(o)
854 _object_types.append(
"SingletonConstraint")
857 def _object_cast_to_SingletonConstraint(o):
858 r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
859 return _IMP_core._object_cast_to_SingletonConstraint(o)
861 _object_types.append(
"SingletonRestraint")
864 def _object_cast_to_SingletonRestraint(o):
865 r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
866 return _IMP_core._object_cast_to_SingletonRestraint(o)
868 _object_types.append(
"SoftSpherePairScore")
871 def _object_cast_to_SoftSpherePairScore(o):
872 r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
873 return _IMP_core._object_cast_to_SoftSpherePairScore(o)
875 _object_types.append(
"_SphereDistancePairScore")
878 def _object_cast_to__SphereDistancePairScore(o):
879 r"""_object_cast_to__SphereDistancePairScore(Object o) -> _SphereDistancePairScore"""
880 return _IMP_core._object_cast_to__SphereDistancePairScore(o)
882 _object_types.append(
"SphereDistanceToSingletonScore")
885 def _object_cast_to_SphereDistanceToSingletonScore(o):
886 r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
887 return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
889 _object_types.append(
"SoftSubSurfacePairScore")
892 def _object_cast_to_SoftSubSurfacePairScore(o):
893 r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
894 return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
896 _object_types.append(
"SoftSuperSurfacePairScore")
899 def _object_cast_to_SoftSuperSurfacePairScore(o):
900 r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
901 return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
903 _object_types.append(
"SurfaceDistancePairScore")
906 def _object_cast_to_SurfaceDistancePairScore(o):
907 r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
908 return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
910 _object_types.append(
"SurfaceHeightPairScore")
913 def _object_cast_to_SurfaceHeightPairScore(o):
914 r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
915 return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
917 _object_types.append(
"SurfaceDepthPairScore")
920 def _object_cast_to_SurfaceDepthPairScore(o):
921 r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
922 return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
924 _object_types.append(
"SurfaceTetheredChain")
927 def _object_cast_to_SurfaceTetheredChain(o):
928 r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
929 return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
931 _object_types.append(
"SurfaceSymmetryConstraint")
934 def _object_cast_to_SurfaceSymmetryConstraint(o):
935 r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
936 return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
938 _object_types.append(
"SteepestDescent")
941 def _object_cast_to_SteepestDescent(o):
942 r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
943 return _IMP_core._object_cast_to_SteepestDescent(o)
945 _object_types.append(
"TableRefiner")
948 def _object_cast_to_TableRefiner(o):
949 r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
950 return _IMP_core._object_cast_to_TableRefiner(o)
952 _object_types.append(
"Transform")
955 def _object_cast_to_Transform(o):
956 r"""_object_cast_to_Transform(Object o) -> Transform"""
957 return _IMP_core._object_cast_to_Transform(o)
959 _object_types.append(
"TransformationAndReflectionSymmetry")
962 def _object_cast_to_TransformationAndReflectionSymmetry(o):
963 r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
964 return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
966 _object_types.append(
"TransformationSymmetry")
969 def _object_cast_to_TransformationSymmetry(o):
970 r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
971 return _IMP_core._object_cast_to_TransformationSymmetry(o)
973 _object_types.append(
"TransformationSymmetryMover")
976 def _object_cast_to_TransformationSymmetryMover(o):
977 r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
978 return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
980 _object_types.append(
"TransformedDistancePairScore")
983 def _object_cast_to_TransformedDistancePairScore(o):
984 r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
985 return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
987 _object_types.append(
"TripletConstraint")
990 def _object_cast_to_TripletConstraint(o):
991 r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
992 return _IMP_core._object_cast_to_TripletConstraint(o)
994 _object_types.append(
"TripletRestraint")
997 def _object_cast_to_TripletRestraint(o):
998 r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
999 return _IMP_core._object_cast_to_TripletRestraint(o)
1001 _object_types.append(
"TypedPairScore")
1004 def _object_cast_to_TypedPairScore(o):
1005 r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1006 return _IMP_core._object_cast_to_TypedPairScore(o)
1008 _object_types.append(
"VolumeRestraint")
1011 def _object_cast_to_VolumeRestraint(o):
1012 r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1013 return _IMP_core._object_cast_to_VolumeRestraint(o)
1015 _object_types.append(
"WeightedSphereDistancePairScore")
1018 def _object_cast_to_WeightedSphereDistancePairScore(o):
1019 r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1020 return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1022 _object_types.append(
"MoveStatisticsScoreState")
1025 def _object_cast_to_MoveStatisticsScoreState(o):
1026 r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1027 return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1029 _object_types.append(
"MinimumRestraint")
1032 def _object_cast_to_MinimumRestraint(o):
1033 r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1034 return _IMP_core._object_cast_to_MinimumRestraint(o)
1036 _object_types.append(
"WriteRestraintScoresOptimizerState")
1039 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1040 r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1041 return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1043 _object_types.append(
"LateralSurfaceConstraint")
1046 def _object_cast_to_LateralSurfaceConstraint(o):
1047 r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1048 return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1050 _object_types.append(
"ConstantSingletonPredicate")
1053 def _object_cast_to_ConstantSingletonPredicate(o):
1054 r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1055 return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1057 _object_types.append(
"ConstantPairPredicate")
1060 def _object_cast_to_ConstantPairPredicate(o):
1061 r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1062 return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1064 _object_types.append(
"ConstantTripletPredicate")
1067 def _object_cast_to_ConstantTripletPredicate(o):
1068 r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1069 return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1071 _object_types.append(
"ConstantQuadPredicate")
1074 def _object_cast_to_ConstantQuadPredicate(o):
1075 r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1076 return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1078 _object_types.append(
"CoinFlipSingletonPredicate")
1081 def _object_cast_to_CoinFlipSingletonPredicate(o):
1082 r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1083 return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1085 _object_types.append(
"CoinFlipPairPredicate")
1088 def _object_cast_to_CoinFlipPairPredicate(o):
1089 r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1090 return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1092 _object_types.append(
"CoinFlipTripletPredicate")
1095 def _object_cast_to_CoinFlipTripletPredicate(o):
1096 r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1097 return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1099 _object_types.append(
"CoinFlipQuadPredicate")
1102 def _object_cast_to_CoinFlipQuadPredicate(o):
1103 r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1104 return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1106 _object_types.append(
"UnorderedTypeSingletonPredicate")
1109 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1110 r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1111 return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1113 _object_types.append(
"UnorderedTypePairPredicate")
1116 def _object_cast_to_UnorderedTypePairPredicate(o):
1117 r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1118 return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1120 _object_types.append(
"UnorderedTypeTripletPredicate")
1123 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1124 r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1125 return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1127 _object_types.append(
"UnorderedTypeQuadPredicate")
1130 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1131 r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1132 return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1134 _object_types.append(
"OrderedTypeSingletonPredicate")
1137 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1138 r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1139 return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1141 _object_types.append(
"OrderedTypePairPredicate")
1144 def _object_cast_to_OrderedTypePairPredicate(o):
1145 r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1146 return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1148 _object_types.append(
"OrderedTypeTripletPredicate")
1151 def _object_cast_to_OrderedTypeTripletPredicate(o):
1152 r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1153 return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1155 _object_types.append(
"OrderedTypeQuadPredicate")
1158 def _object_cast_to_OrderedTypeQuadPredicate(o):
1159 r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1160 return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1162 _object_types.append(
"AllSameSingletonPredicate")
1165 def _object_cast_to_AllSameSingletonPredicate(o):
1166 r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1167 return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1169 _object_types.append(
"AllSamePairPredicate")
1172 def _object_cast_to_AllSamePairPredicate(o):
1173 r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1174 return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1176 _object_types.append(
"AllSameTripletPredicate")
1179 def _object_cast_to_AllSameTripletPredicate(o):
1180 r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1181 return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1183 _object_types.append(
"AllSameQuadPredicate")
1186 def _object_cast_to_AllSameQuadPredicate(o):
1187 r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1188 return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1191 return [XYZ(x)
for x
in l]
1192 _plural_types.append(
"XYZs")
1195 _value_types.append(
"XYZ")
1199 return [XYZR(x)
for x
in l]
1200 _plural_types.append(
"XYZRs")
1203 _value_types.append(
"XYZR")
1206 def RigidBodies(l=[]):
1207 return [RigidBody(x)
for x
in l]
1208 _plural_types.append(
"RigidBodies")
1211 _value_types.append(
"RigidBody")
1214 def RigidBodyMembers(l=[]):
1215 return [RigidBodyMember(x)
for x
in l]
1216 _plural_types.append(
"RigidBodyMembers")
1219 _value_types.append(
"RigidBodyMember")
1222 def RigidMembers(l=[]):
1223 return [RigidMember(x)
for x
in l]
1224 _plural_types.append(
"RigidMembers")
1227 _value_types.append(
"RigidMember")
1230 def NonRigidMembers(l=[]):
1231 return [NonRigidMember(x)
for x
in l]
1232 _plural_types.append(
"NonRigidMembers")
1235 _value_types.append(
"NonRigidMember")
1238 def Centroids(l=[]):
1239 return [Centroid(x)
for x
in l]
1240 _plural_types.append(
"Centroids")
1243 _value_types.append(
"Centroid")
1247 return [Cover(x)
for x
in l]
1248 _plural_types.append(
"Covers")
1251 _value_types.append(
"Cover")
1254 def References(l=[]):
1255 return [Reference(x)
for x
in l]
1256 _plural_types.append(
"References")
1259 _value_types.append(
"Reference")
1263 _plural_types.append(
"ParticleTypes")
1264 _value_types.append(
"ParticleType")
1268 return [Typed(x)
for x
in l]
1269 _plural_types.append(
"Typeds")
1272 _value_types.append(
"Typed")
1275 def GenericHierarchies(l=[]):
1276 return [Hierarchy(x)
for x
in l]
1277 _plural_types.append(
"GenericHierarchies")
1280 _value_types.append(
"Hierarchy")
1283 def Gaussians(l=[]):
1284 return [Gaussian(x)
for x
in l]
1285 _plural_types.append(
"Gaussians")
1288 _value_types.append(
"Gaussian")
1291 def Directions(l=[]):
1292 return [Direction(x)
for x
in l]
1293 _plural_types.append(
"Directions")
1296 _value_types.append(
"Direction")
1299 def DirectionAngles(l=[]):
1300 return [DirectionAngle(x)
for x
in l]
1301 _plural_types.append(
"DirectionAngles")
1304 _value_types.append(
"DirectionAngle")
1308 return [Surface(x)
for x
in l]
1309 _plural_types.append(
"Surfaces")
1312 _value_types.append(
"Surface")
1315 def Provenances(l=[]):
1316 return [Provenance(x)
for x
in l]
1317 _plural_types.append(
"Provenances")
1320 _value_types.append(
"Provenance")
1323 def StructureProvenances(l=[]):
1324 return [StructureProvenance(x)
for x
in l]
1325 _plural_types.append(
"StructureProvenances")
1328 _value_types.append(
"StructureProvenance")
1331 def SampleProvenances(l=[]):
1332 return [SampleProvenance(x)
for x
in l]
1333 _plural_types.append(
"SampleProvenances")
1336 _value_types.append(
"SampleProvenance")
1339 def ClusterProvenances(l=[]):
1340 return [ClusterProvenance(x)
for x
in l]
1341 _plural_types.append(
"ClusterProvenances")
1344 _value_types.append(
"ClusterProvenance")
1347 def CombineProvenances(l=[]):
1348 return [CombineProvenance(x)
for x
in l]
1349 _plural_types.append(
"CombineProvenances")
1352 _value_types.append(
"CombineProvenance")
1355 def FilterProvenances(l=[]):
1356 return [FilterProvenance(x)
for x
in l]
1357 _plural_types.append(
"FilterProvenances")
1360 _value_types.append(
"FilterProvenance")
1363 def ScriptProvenances(l=[]):
1364 return [ScriptProvenance(x)
for x
in l]
1365 _plural_types.append(
"ScriptProvenances")
1368 _value_types.append(
"ScriptProvenance")
1371 def SoftwareProvenances(l=[]):
1372 return [SoftwareProvenance(x)
for x
in l]
1373 _plural_types.append(
"SoftwareProvenances")
1376 _value_types.append(
"SoftwareProvenance")
1379 def Provenanceds(l=[]):
1380 return [Provenanced(x)
for x
in l]
1381 _plural_types.append(
"Provenanceds")
1384 _value_types.append(
"Provenanced")
1387 HierarchyCounters=list
1388 _plural_types.append(
"HierarchyCounters")
1389 _value_types.append(
"HierarchyCounter")
1392 HierarchyTraitsList=list
1393 _plural_types.append(
"HierarchyTraitsList")
1394 _value_types.append(
"HierarchyTraits")
1397 _object_types.append(
"TruncatedHarmonicBound")
1400 def _object_cast_to_TruncatedHarmonicBound(o):
1401 r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1402 return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1404 _object_types.append(
"TruncatedHarmonicLowerBound")
1407 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1408 r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1409 return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1411 _object_types.append(
"TruncatedHarmonicUpperBound")
1414 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1415 r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1416 return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1418 _object_types.append(
"HarmonicDistancePairScore")
1421 def _object_cast_to_HarmonicDistancePairScore(o):
1422 r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1423 return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1425 _object_types.append(
"DistancePairScore")
1428 def _object_cast_to_DistancePairScore(o):
1429 r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1430 return _IMP_core._object_cast_to_DistancePairScore(o)
1432 _object_types.append(
"XYZRGeometry")
1435 def _object_cast_to_XYZRGeometry(o):
1436 r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1437 return _IMP_core._object_cast_to_XYZRGeometry(o)
1439 _object_types.append(
"XYZRsGeometry")
1442 def _object_cast_to_XYZRsGeometry(o):
1443 r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1444 return _IMP_core._object_cast_to_XYZRsGeometry(o)
1446 _object_types.append(
"XYZDerivativeGeometry")
1449 def _object_cast_to_XYZDerivativeGeometry(o):
1450 r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1451 return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1453 _object_types.append(
"XYZDerivativesGeometry")
1456 def _object_cast_to_XYZDerivativesGeometry(o):
1457 r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1458 return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1460 _object_types.append(
"RigidBodyDerivativeGeometry")
1463 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1464 r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1465 return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1467 _object_types.append(
"RigidBodyDerivativesGeometry")
1470 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1471 r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1472 return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1474 _object_types.append(
"RigidBodyHierarchyGeometry")
1477 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1478 r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1479 return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1481 _object_types.append(
"RigidBodyFrameGeometry")
1484 def _object_cast_to_RigidBodyFrameGeometry(o):
1485 r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1486 return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1488 _object_types.append(
"RigidBodyFramesGeometry")
1491 def _object_cast_to_RigidBodyFramesGeometry(o):
1492 r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1493 return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1495 _object_types.append(
"RigidBodyTorque")
1498 def _object_cast_to_RigidBodyTorque(o):
1499 r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1500 return _IMP_core._object_cast_to_RigidBodyTorque(o)
1502 _object_types.append(
"EdgePairGeometry")
1505 def _object_cast_to_EdgePairGeometry(o):
1506 r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1507 return _IMP_core._object_cast_to_EdgePairGeometry(o)
1509 _object_types.append(
"EdgePairsGeometry")
1512 def _object_cast_to_EdgePairsGeometry(o):
1513 r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1514 return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1516 _object_types.append(
"SurfaceGeometry")
1519 def _object_cast_to_SurfaceGeometry(o):
1520 r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1521 return _IMP_core._object_cast_to_SurfaceGeometry(o)
1523 _object_types.append(
"SurfaceGeometryConstraint")
1526 def _object_cast_to_SurfaceGeometryConstraint(o):
1527 r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1528 return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1530 _object_types.append(
"AttributeSingletonPredicate")
1533 def _object_cast_to_AttributeSingletonPredicate(o):
1534 r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1535 return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1537 _object_types.append(
"InBoundingBox3DSingletonPredicate")
1540 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1541 r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1542 return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1544 _object_types.append(
"IsCollisionPairPredicate")
1547 def _object_cast_to_IsCollisionPairPredicate(o):
1548 r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1549 return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1551 BinormalTermList=list
1552 _plural_types.append(
"BinormalTermList")
1553 _value_types.append(
"BinormalTerm")
1556 _object_types.append(
"MultipleBinormalRestraint")
1559 def _object_cast_to_MultipleBinormalRestraint(o):
1560 r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1561 return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1562 class ClosePairsFinder(IMP._ParticleInputs,
IMP.Object):
1563 r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1565 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1567 def __init__(self, *args, **kwargs):
1568 raise AttributeError(
"No constructor defined - class is abstract")
1569 __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1571 def get_close_pairs(self, *args):
1573 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1574 get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1575 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1576 get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1578 return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1580 def set_distance(self, d):
1581 r"""set_distance(ClosePairsFinder self, double d)"""
1582 return _IMP_core.ClosePairsFinder_set_distance(self, d)
1585 r"""get_distance(ClosePairsFinder self) -> double"""
1586 return _IMP_core.ClosePairsFinder_get_distance(self)
1587 def __get_pair_filters(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
1588 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1589 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1590 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1592 def remove_pair_filter(self, d):
1593 r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1594 return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1596 def _python_index_pair_filter(self, d, start, stop):
1597 r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1598 return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1600 def remove_pair_filters(self, d):
1601 r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1602 return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1604 def set_pair_filters(self, ps):
1605 r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1606 return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1608 def set_pair_filters_order(self, objs):
1609 r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1610 return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1612 def add_pair_filter(self, obj):
1613 r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1614 return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1616 def add_pair_filters(self, objs):
1617 r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618 return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1620 def clear_pair_filters(self):
1621 r"""clear_pair_filters(ClosePairsFinder self)"""
1622 return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1624 def get_number_of_pair_filters(self):
1625 r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1626 return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1628 def get_has_pair_filters(self):
1629 r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1630 return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1632 def get_pair_filter(self, i):
1633 r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1634 return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1636 def get_pair_filters(self):
1637 r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1638 return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1640 def erase_pair_filter(self, i):
1641 r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1642 return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1644 def reserve_pair_filters(self, sz):
1645 r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1646 return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1649 r"""__str__(ClosePairsFinder self) -> std::string"""
1650 return _IMP_core.ClosePairsFinder___str__(self)
1653 r"""__repr__(ClosePairsFinder self) -> std::string"""
1654 return _IMP_core.ClosePairsFinder___repr__(self)
1658 return _object_cast_to_ClosePairsFinder(o)
1662 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1663 class MonteCarloMoverResult(IMP._Value):
1664 r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1666 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1668 def __init__(self, *args):
1669 r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1670 _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1673 r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1674 return _IMP_core.MonteCarloMoverResult___hash__(self)
1676 def show(self, *args):
1677 r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1678 return _IMP_core.MonteCarloMoverResult_show(self, *args)
1680 def __cmp__(self, o):
1681 r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1682 return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1684 def __eq__(self, o):
1685 r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1686 return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1688 def __ne__(self, o):
1689 r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1690 return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1692 def __lt__(self, o):
1693 r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694 return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1696 def __gt__(self, o):
1697 r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698 return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1700 def __ge__(self, o):
1701 r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702 return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1704 def __le__(self, o):
1705 r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706 return _IMP_core.MonteCarloMoverResult___le__(self, o)
1708 def get_moved_particles(self):
1709 r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1710 return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1712 def set_moved_particles(self, v):
1713 r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1714 return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1716 def get_proposal_ratio(self):
1717 r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1718 return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1720 def set_proposal_ratio(self, v):
1721 r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1722 return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1725 r"""__str__(MonteCarloMoverResult self) -> std::string"""
1726 return _IMP_core.MonteCarloMoverResult___str__(self)
1729 r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1730 return _IMP_core.MonteCarloMoverResult___repr__(self)
1731 __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1734 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1736 r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1738 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1740 def __init__(self, *args):
1742 __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1743 __init__(MonteCarloMover self) -> MonteCarloMover
1745 if self.__class__ == MonteCarloMover:
1749 _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1751 if self.__class__ != MonteCarloMover:
1752 _director_objects.register(self)
1758 r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1759 return _IMP_core.MonteCarloMover_propose(self)
1762 r"""reject(MonteCarloMover self)"""
1763 return _IMP_core.MonteCarloMover_reject(self)
1766 r"""accept(MonteCarloMover self)"""
1767 return _IMP_core.MonteCarloMover_accept(self)
1769 def get_number_of_proposed(self):
1770 r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1771 return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1773 def get_number_of_accepted(self):
1774 r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1775 return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1777 def reset_statistics(self):
1778 r"""reset_statistics(MonteCarloMover self)"""
1779 return _IMP_core.MonteCarloMover_reset_statistics(self)
1781 def do_propose(self):
1782 r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1783 return _IMP_core.MonteCarloMover_do_propose(self)
1785 def do_reject(self):
1786 r"""do_reject(MonteCarloMover self)"""
1787 return _IMP_core.MonteCarloMover_do_reject(self)
1789 def do_accept(self):
1790 r"""do_accept(MonteCarloMover self)"""
1791 return _IMP_core.MonteCarloMover_do_accept(self)
1793 def do_get_outputs(self):
1794 r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1795 return _IMP_core.MonteCarloMover_do_get_outputs(self)
1798 r"""__str__(MonteCarloMover self) -> std::string"""
1799 return _IMP_core.MonteCarloMover___str__(self)
1802 r"""__repr__(MonteCarloMover self) -> std::string"""
1803 return _IMP_core.MonteCarloMover___repr__(self)
1807 return _object_cast_to_MonteCarloMover(o)
1810 def do_show(self, out):
1815 return _object_cast_to_MonteCarloMover(o)
1817 __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1818 def __disown__(self):
1820 _IMP_core.disown_MonteCarloMover(self)
1821 return weakref.proxy(self)
1823 def do_destroy(self):
1824 r"""do_destroy(MonteCarloMover self)"""
1825 return _IMP_core.MonteCarloMover_do_destroy(self)
1827 def handle_set_has_required_score_states(self, arg0):
1828 r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1829 return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1831 def do_get_inputs(self):
1832 r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1833 return _IMP_core.MonteCarloMover_do_get_inputs(self)
1835 def do_get_interactions(self):
1836 r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1837 return _IMP_core.MonteCarloMover_do_get_interactions(self)
1840 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1842 r"""Proxy of C++ IMP::core::XYZ class."""
1844 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1847 def get_coordinate_key(i):
1848 r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1849 return _IMP_core.XYZ_get_coordinate_key(i)
1851 def __init__(self, *args):
1853 __init__(XYZ self) -> XYZ
1854 __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1855 __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1857 _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1859 def show(self, *args):
1860 r"""show(XYZ self, _ostream out=std::cout)"""
1861 return _IMP_core.XYZ_show(self, *args)
1864 def setup_particle(*args):
1866 setup_particle(Model m, ParticleIndex pi) -> XYZ
1867 setup_particle(_ParticleAdaptor pa) -> XYZ
1868 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1869 setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1871 return _IMP_core.XYZ_setup_particle(*args)
1874 r"""get_x(XYZ self) -> IMP::Float"""
1875 return _IMP_core.XYZ_get_x(self)
1878 r"""set_x(XYZ self, IMP::Float t)"""
1879 return _IMP_core.XYZ_set_x(self, t)
1882 r"""get_y(XYZ self) -> IMP::Float"""
1883 return _IMP_core.XYZ_get_y(self)
1886 r"""set_y(XYZ self, IMP::Float t)"""
1887 return _IMP_core.XYZ_set_y(self, t)
1890 r"""get_z(XYZ self) -> IMP::Float"""
1891 return _IMP_core.XYZ_get_z(self)
1894 r"""set_z(XYZ self, IMP::Float t)"""
1895 return _IMP_core.XYZ_set_z(self, t)
1897 def set_coordinate(self, i, v):
1898 r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1899 return _IMP_core.XYZ_set_coordinate(self, i, v)
1901 def set_coordinates(self, v):
1902 r"""set_coordinates(XYZ self, Vector3D v)"""
1903 return _IMP_core.XYZ_set_coordinates(self, v)
1905 def get_coordinate(self, i):
1906 r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1907 return _IMP_core.XYZ_get_coordinate(self, i)
1909 def add_to_derivatives(self, v, d):
1910 r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1911 return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1913 def get_coordinates_are_optimized(self):
1914 r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1915 return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1917 def set_coordinates_are_optimized(self, tf):
1918 r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1919 return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1921 def get_vector_to(self, b):
1922 r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1923 return _IMP_core.XYZ_get_vector_to(self, b)
1925 def get_coordinates(self):
1926 r"""get_coordinates(XYZ self) -> Vector3D"""
1927 return _IMP_core.XYZ_get_coordinates(self)
1929 def get_derivatives(self):
1930 r"""get_derivatives(XYZ self) -> Vector3D"""
1931 return _IMP_core.XYZ_get_derivatives(self)
1934 def get_is_setup(*args):
1936 get_is_setup(_ParticleAdaptor p) -> bool
1937 get_is_setup(Model m, ParticleIndex pi) -> bool
1939 return _IMP_core.XYZ_get_is_setup(*args)
1943 r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1944 return _IMP_core.XYZ_get_xyz_keys()
1946 def add_attribute(self, *args):
1948 add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1949 add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1950 add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1951 add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1952 add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1953 add_attribute(XYZ self, StringKey a0, IMP::String a1)
1954 add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1955 add_attribute(XYZ self, ObjectKey a0, Object a1)
1956 add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1957 add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1958 add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1959 add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1961 return _IMP_core.XYZ_add_attribute(self, *args)
1963 def get_value(self, *args):
1965 get_value(XYZ self, FloatKey a0) -> IMP::Float
1966 get_value(XYZ self, IntKey a0) -> IMP::Int
1967 get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1968 get_value(XYZ self, IntsKey a0) -> IMP::Ints
1969 get_value(XYZ self, StringKey a0) -> IMP::String
1970 get_value(XYZ self, ParticleIndexKey a0) -> Particle
1971 get_value(XYZ self, ObjectKey a0) -> Object
1972 get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1973 get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1974 get_value(XYZ self, SparseStringKey a0) -> IMP::String
1975 get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1977 return _IMP_core.XYZ_get_value(self, *args)
1979 def set_value(self, *args):
1981 set_value(XYZ self, FloatKey a0, IMP::Float a1)
1982 set_value(XYZ self, IntKey a0, IMP::Int a1)
1983 set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
1984 set_value(XYZ self, IntsKey a0, IMP::Ints a1)
1985 set_value(XYZ self, StringKey a0, IMP::String a1)
1986 set_value(XYZ self, ParticleIndexKey a0, Particle a1)
1987 set_value(XYZ self, ObjectKey a0, Object a1)
1988 set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
1989 set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
1990 set_value(XYZ self, SparseStringKey a0, IMP::String a1)
1991 set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1993 return _IMP_core.XYZ_set_value(self, *args)
1995 def remove_attribute(self, *args):
1997 remove_attribute(XYZ self, FloatKey a0)
1998 remove_attribute(XYZ self, IntKey a0)
1999 remove_attribute(XYZ self, FloatsKey a0)
2000 remove_attribute(XYZ self, IntsKey a0)
2001 remove_attribute(XYZ self, StringKey a0)
2002 remove_attribute(XYZ self, ParticleIndexKey a0)
2003 remove_attribute(XYZ self, ObjectKey a0)
2004 remove_attribute(XYZ self, SparseFloatKey a0)
2005 remove_attribute(XYZ self, SparseIntKey a0)
2006 remove_attribute(XYZ self, SparseStringKey a0)
2007 remove_attribute(XYZ self, SparseParticleIndexKey a0)
2009 return _IMP_core.XYZ_remove_attribute(self, *args)
2011 def has_attribute(self, *args):
2013 has_attribute(XYZ self, FloatKey a0) -> bool
2014 has_attribute(XYZ self, IntKey a0) -> bool
2015 has_attribute(XYZ self, FloatsKey a0) -> bool
2016 has_attribute(XYZ self, IntsKey a0) -> bool
2017 has_attribute(XYZ self, StringKey a0) -> bool
2018 has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2019 has_attribute(XYZ self, ObjectKey a0) -> bool
2020 has_attribute(XYZ self, SparseFloatKey a0) -> bool
2021 has_attribute(XYZ self, SparseIntKey a0) -> bool
2022 has_attribute(XYZ self, SparseStringKey a0) -> bool
2023 has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2025 return _IMP_core.XYZ_has_attribute(self, *args)
2027 def get_derivative(self, *args):
2029 get_derivative(XYZ self, int i) -> IMP::Float
2030 get_derivative(XYZ self, FloatKey a0) -> double
2032 return _IMP_core.XYZ_get_derivative(self, *args)
2035 r"""get_name(XYZ self) -> std::string"""
2036 return _IMP_core.XYZ_get_name(self)
2038 def clear_caches(self):
2039 r"""clear_caches(XYZ self)"""
2040 return _IMP_core.XYZ_clear_caches(self)
2042 def set_name(self, a0):
2043 r"""set_name(XYZ self, std::string a0)"""
2044 return _IMP_core.XYZ_set_name(self, a0)
2047 r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2048 return _IMP_core.XYZ_set_check_level(self, a0)
2050 def add_to_derivative(self, *args):
2052 add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2053 add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2055 return _IMP_core.XYZ_add_to_derivative(self, *args)
2057 def set_is_optimized(self, a0, a1):
2058 r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2059 return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2061 def get_is_optimized(self, a0):
2062 r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2063 return _IMP_core.XYZ_get_is_optimized(self, a0)
2066 r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2067 return _IMP_core.XYZ_get_check_level(self)
2069 def __eq__(self, *args):
2071 __eq__(XYZ self, XYZ o) -> bool
2072 __eq__(XYZ self, Particle d) -> bool
2074 return _IMP_core.XYZ___eq__(self, *args)
2076 def __ne__(self, *args):
2078 __ne__(XYZ self, XYZ o) -> bool
2079 __ne__(XYZ self, Particle d) -> bool
2081 return _IMP_core.XYZ___ne__(self, *args)
2083 def __le__(self, *args):
2085 __le__(XYZ self, XYZ o) -> bool
2086 __le__(XYZ self, Particle d) -> bool
2088 return _IMP_core.XYZ___le__(self, *args)
2090 def __lt__(self, *args):
2092 __lt__(XYZ self, XYZ o) -> bool
2093 __lt__(XYZ self, Particle d) -> bool
2095 return _IMP_core.XYZ___lt__(self, *args)
2097 def __ge__(self, *args):
2099 __ge__(XYZ self, XYZ o) -> bool
2100 __ge__(XYZ self, Particle d) -> bool
2102 return _IMP_core.XYZ___ge__(self, *args)
2104 def __gt__(self, *args):
2106 __gt__(XYZ self, XYZ o) -> bool
2107 __gt__(XYZ self, Particle d) -> bool
2109 return _IMP_core.XYZ___gt__(self, *args)
2112 r"""__hash__(XYZ self) -> std::size_t"""
2113 return _IMP_core.XYZ___hash__(self)
2116 r"""__str__(XYZ self) -> std::string"""
2117 return _IMP_core.XYZ___str__(self)
2120 r"""__repr__(XYZ self) -> std::string"""
2121 return _IMP_core.XYZ___repr__(self)
2123 def _get_as_binary(self):
2124 r"""_get_as_binary(XYZ self) -> PyObject *"""
2125 return _IMP_core.XYZ__get_as_binary(self)
2127 def _set_from_binary(self, p):
2128 r"""_set_from_binary(XYZ self, PyObject * p)"""
2129 return _IMP_core.XYZ__set_from_binary(self, p)
2131 def __getstate__(self):
2132 p = self._get_as_binary()
2133 if len(self.__dict__) > 1:
2134 d = self.__dict__.copy()
2139 def __setstate__(self, p):
2140 if not hasattr(self,
'this'):
2142 if isinstance(p, tuple):
2144 self.__dict__.update(d)
2145 return self._set_from_binary(p)
2147 __swig_destroy__ = _IMP_core.delete_XYZ
2150 _IMP_core.XYZ_swigregister(XYZ)
2153 r"""set_vector_geometry(XYZ d, Vector3D v)"""
2154 return _IMP_core.set_vector_geometry(d, v)
2157 r"""get_vector_geometry(XYZ d) -> Vector3D"""
2158 return _IMP_core.get_vector_geometry(d)
2161 r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2162 return _IMP_core.get_dihedral(a, b, c, d)
2164 r"""Proxy of C++ IMP::core::XYZR class."""
2166 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2168 def __init__(self, *args):
2170 __init__(XYZR self) -> XYZR
2171 __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2172 __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2174 _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2176 def show(self, *args):
2177 r"""show(XYZR self, _ostream out=std::cout)"""
2178 return _IMP_core.XYZR_show(self, *args)
2181 def setup_particle(*args):
2183 setup_particle(Model m, ParticleIndex pi) -> XYZR
2184 setup_particle(_ParticleAdaptor pa) -> XYZR
2185 setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2186 setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2187 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2188 setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2190 return _IMP_core.XYZR_setup_particle(*args)
2193 def get_is_setup(*args):
2195 get_is_setup(_ParticleAdaptor p) -> bool
2196 get_is_setup(Model m, ParticleIndex pi) -> bool
2198 return _IMP_core.XYZR_get_is_setup(*args)
2200 def get_radius(self):
2201 r"""get_radius(XYZR self) -> double"""
2202 return _IMP_core.XYZR_get_radius(self)
2204 def set_radius(self, r):
2205 r"""set_radius(XYZR self, double r)"""
2206 return _IMP_core.XYZR_set_radius(self, r)
2208 def get_sphere(self):
2209 r"""get_sphere(XYZR self) -> Sphere3D"""
2210 return _IMP_core.XYZR_get_sphere(self)
2212 def set_sphere(self, s):
2213 r"""set_sphere(XYZR self, Sphere3D s)"""
2214 return _IMP_core.XYZR_set_sphere(self, s)
2217 def get_radius_key():
2218 r"""get_radius_key() -> FloatKey"""
2219 return _IMP_core.XYZR_get_radius_key()
2221 def add_to_radius_derivative(self, v, d):
2222 r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2223 return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2225 def add_attribute(self, *args):
2227 add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2228 add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2229 add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2230 add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2231 add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2232 add_attribute(XYZR self, StringKey a0, IMP::String a1)
2233 add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2234 add_attribute(XYZR self, ObjectKey a0, Object a1)
2235 add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2236 add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2237 add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2238 add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2240 return _IMP_core.XYZR_add_attribute(self, *args)
2242 def get_value(self, *args):
2244 get_value(XYZR self, FloatKey a0) -> IMP::Float
2245 get_value(XYZR self, IntKey a0) -> IMP::Int
2246 get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2247 get_value(XYZR self, IntsKey a0) -> IMP::Ints
2248 get_value(XYZR self, StringKey a0) -> IMP::String
2249 get_value(XYZR self, ParticleIndexKey a0) -> Particle
2250 get_value(XYZR self, ObjectKey a0) -> Object
2251 get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2252 get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2253 get_value(XYZR self, SparseStringKey a0) -> IMP::String
2254 get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2256 return _IMP_core.XYZR_get_value(self, *args)
2258 def set_value(self, *args):
2260 set_value(XYZR self, FloatKey a0, IMP::Float a1)
2261 set_value(XYZR self, IntKey a0, IMP::Int a1)
2262 set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2263 set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2264 set_value(XYZR self, StringKey a0, IMP::String a1)
2265 set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2266 set_value(XYZR self, ObjectKey a0, Object a1)
2267 set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2268 set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2269 set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2270 set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2272 return _IMP_core.XYZR_set_value(self, *args)
2274 def remove_attribute(self, *args):
2276 remove_attribute(XYZR self, FloatKey a0)
2277 remove_attribute(XYZR self, IntKey a0)
2278 remove_attribute(XYZR self, FloatsKey a0)
2279 remove_attribute(XYZR self, IntsKey a0)
2280 remove_attribute(XYZR self, StringKey a0)
2281 remove_attribute(XYZR self, ParticleIndexKey a0)
2282 remove_attribute(XYZR self, ObjectKey a0)
2283 remove_attribute(XYZR self, SparseFloatKey a0)
2284 remove_attribute(XYZR self, SparseIntKey a0)
2285 remove_attribute(XYZR self, SparseStringKey a0)
2286 remove_attribute(XYZR self, SparseParticleIndexKey a0)
2288 return _IMP_core.XYZR_remove_attribute(self, *args)
2290 def has_attribute(self, *args):
2292 has_attribute(XYZR self, FloatKey a0) -> bool
2293 has_attribute(XYZR self, IntKey a0) -> bool
2294 has_attribute(XYZR self, FloatsKey a0) -> bool
2295 has_attribute(XYZR self, IntsKey a0) -> bool
2296 has_attribute(XYZR self, StringKey a0) -> bool
2297 has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2298 has_attribute(XYZR self, ObjectKey a0) -> bool
2299 has_attribute(XYZR self, SparseFloatKey a0) -> bool
2300 has_attribute(XYZR self, SparseIntKey a0) -> bool
2301 has_attribute(XYZR self, SparseStringKey a0) -> bool
2302 has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2304 return _IMP_core.XYZR_has_attribute(self, *args)
2306 def get_derivative(self, a0):
2307 r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2308 return _IMP_core.XYZR_get_derivative(self, a0)
2311 r"""get_name(XYZR self) -> std::string"""
2312 return _IMP_core.XYZR_get_name(self)
2314 def clear_caches(self):
2315 r"""clear_caches(XYZR self)"""
2316 return _IMP_core.XYZR_clear_caches(self)
2318 def set_name(self, a0):
2319 r"""set_name(XYZR self, std::string a0)"""
2320 return _IMP_core.XYZR_set_name(self, a0)
2323 r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2324 return _IMP_core.XYZR_set_check_level(self, a0)
2326 def add_to_derivative(self, a0, a1, a2):
2327 r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2328 return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2330 def set_is_optimized(self, a0, a1):
2331 r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2332 return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2334 def get_is_optimized(self, a0):
2335 r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2336 return _IMP_core.XYZR_get_is_optimized(self, a0)
2339 r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2340 return _IMP_core.XYZR_get_check_level(self)
2342 def __eq__(self, *args):
2344 __eq__(XYZR self, XYZR o) -> bool
2345 __eq__(XYZR self, Particle d) -> bool
2347 return _IMP_core.XYZR___eq__(self, *args)
2349 def __ne__(self, *args):
2351 __ne__(XYZR self, XYZR o) -> bool
2352 __ne__(XYZR self, Particle d) -> bool
2354 return _IMP_core.XYZR___ne__(self, *args)
2356 def __le__(self, *args):
2358 __le__(XYZR self, XYZR o) -> bool
2359 __le__(XYZR self, Particle d) -> bool
2361 return _IMP_core.XYZR___le__(self, *args)
2363 def __lt__(self, *args):
2365 __lt__(XYZR self, XYZR o) -> bool
2366 __lt__(XYZR self, Particle d) -> bool
2368 return _IMP_core.XYZR___lt__(self, *args)
2370 def __ge__(self, *args):
2372 __ge__(XYZR self, XYZR o) -> bool
2373 __ge__(XYZR self, Particle d) -> bool
2375 return _IMP_core.XYZR___ge__(self, *args)
2377 def __gt__(self, *args):
2379 __gt__(XYZR self, XYZR o) -> bool
2380 __gt__(XYZR self, Particle d) -> bool
2382 return _IMP_core.XYZR___gt__(self, *args)
2385 r"""__hash__(XYZR self) -> std::size_t"""
2386 return _IMP_core.XYZR___hash__(self)
2389 r"""__str__(XYZR self) -> std::string"""
2390 return _IMP_core.XYZR___str__(self)
2393 r"""__repr__(XYZR self) -> std::string"""
2394 return _IMP_core.XYZR___repr__(self)
2396 def _get_as_binary(self):
2397 r"""_get_as_binary(XYZR self) -> PyObject *"""
2398 return _IMP_core.XYZR__get_as_binary(self)
2400 def _set_from_binary(self, p):
2401 r"""_set_from_binary(XYZR self, PyObject * p)"""
2402 return _IMP_core.XYZR__set_from_binary(self, p)
2404 def __getstate__(self):
2405 p = self._get_as_binary()
2406 if len(self.__dict__) > 1:
2407 d = self.__dict__.copy()
2412 def __setstate__(self, p):
2413 if not hasattr(self,
'this'):
2415 if isinstance(p, tuple):
2417 self.__dict__.update(d)
2418 return self._set_from_binary(p)
2420 __swig_destroy__ = _IMP_core.delete_XYZR
2423 _IMP_core.XYZR_swigregister(XYZR)
2426 r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2427 return _IMP_core.set_enclosing_sphere(b, v, slack)
2430 r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2431 return _IMP_core.set_enclosing_radius(b, v)
2434 r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2435 return _IMP_core.get_enclosing_sphere(v)
2438 r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2439 return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2441 r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2443 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2445 def __init__(self, *args):
2447 __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2448 __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2450 _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2452 def get_version_info(self):
2453 r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2454 return _IMP_core.XYZRGeometry_get_version_info(self)
2455 __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2458 r"""__str__(XYZRGeometry self) -> std::string"""
2459 return _IMP_core.XYZRGeometry___str__(self)
2462 r"""__repr__(XYZRGeometry self) -> std::string"""
2463 return _IMP_core.XYZRGeometry___repr__(self)
2467 return _object_cast_to_XYZRGeometry(o)
2471 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2473 r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2475 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2477 def __init__(self, sc):
2478 r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2479 _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2481 def get_version_info(self):
2482 r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2483 return _IMP_core.XYZRsGeometry_get_version_info(self)
2484 __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2487 r"""__str__(XYZRsGeometry self) -> std::string"""
2488 return _IMP_core.XYZRsGeometry___str__(self)
2491 r"""__repr__(XYZRsGeometry self) -> std::string"""
2492 return _IMP_core.XYZRsGeometry___repr__(self)
2496 return _object_cast_to_XYZRsGeometry(o)
2500 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2502 r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2504 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2506 def __init__(self, *args):
2508 __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2509 __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2511 _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2513 def get_version_info(self):
2514 r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2515 return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2516 __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2519 r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2520 return _IMP_core.XYZDerivativeGeometry___str__(self)
2523 r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2524 return _IMP_core.XYZDerivativeGeometry___repr__(self)
2528 return _object_cast_to_XYZDerivativeGeometry(o)
2532 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2534 r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2536 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2538 def __init__(self, sc):
2539 r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2540 _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2542 def get_version_info(self):
2543 r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2544 return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2545 __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2548 r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2549 return _IMP_core.XYZDerivativesGeometry___str__(self)
2552 r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2553 return _IMP_core.XYZDerivativesGeometry___repr__(self)
2557 return _object_cast_to_XYZDerivativesGeometry(o)
2561 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2563 r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2565 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2567 def __init__(self, pp):
2568 r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2569 _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2571 def get_version_info(self):
2572 r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2573 return _IMP_core.EdgePairGeometry_get_version_info(self)
2574 __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2577 r"""__str__(EdgePairGeometry self) -> std::string"""
2578 return _IMP_core.EdgePairGeometry___str__(self)
2581 r"""__repr__(EdgePairGeometry self) -> std::string"""
2582 return _IMP_core.EdgePairGeometry___repr__(self)
2586 return _object_cast_to_EdgePairGeometry(o)
2590 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2592 r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2594 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2596 def __init__(self, sc):
2597 r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2598 _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2600 def get_version_info(self):
2601 r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2602 return _IMP_core.EdgePairsGeometry_get_version_info(self)
2603 __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2606 r"""__str__(EdgePairsGeometry self) -> std::string"""
2607 return _IMP_core.EdgePairsGeometry___str__(self)
2610 r"""__repr__(EdgePairsGeometry self) -> std::string"""
2611 return _IMP_core.EdgePairsGeometry___repr__(self)
2615 return _object_cast_to_EdgePairsGeometry(o)
2619 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2621 r"""Proxy of C++ IMP::core::Direction class."""
2623 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2626 def do_setup_particle(m, pi, v):
2627 r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2628 return _IMP_core.Direction_do_setup_particle(m, pi, v)
2630 def __init__(self, *args):
2632 __init__(Direction self) -> Direction
2633 __init__(Direction self, Model m, ParticleIndex id) -> Direction
2634 __init__(Direction self, _ParticleAdaptor d) -> Direction
2636 _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2638 def show(self, *args):
2639 r"""show(Direction self, _ostream out=std::cout)"""
2640 return _IMP_core.Direction_show(self, *args)
2643 def setup_particle(*args):
2645 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2646 setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2648 return _IMP_core.Direction_setup_particle(*args)
2651 def get_is_setup(*args):
2653 get_is_setup(_ParticleAdaptor p) -> bool
2654 get_is_setup(Model m, ParticleIndex pi) -> bool
2656 return _IMP_core.Direction_get_is_setup(*args)
2659 def get_direction_key(i):
2660 r"""get_direction_key(unsigned int i) -> FloatKey"""
2661 return _IMP_core.Direction_get_direction_key(i)
2663 def get_direction_derivative(self, i):
2664 r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2665 return _IMP_core.Direction_get_direction_derivative(self, i)
2667 def get_direction_derivatives(self):
2668 r"""get_direction_derivatives(Direction self) -> Vector3D"""
2669 return _IMP_core.Direction_get_direction_derivatives(self)
2671 def add_to_direction_derivative(self, i, v, d):
2672 r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2673 return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2675 def add_to_direction_derivatives(self, v, d):
2676 r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2677 return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2679 def get_direction_is_optimized(self):
2680 r"""get_direction_is_optimized(Direction self) -> bool"""
2681 return _IMP_core.Direction_get_direction_is_optimized(self)
2683 def set_direction_is_optimized(self, tf):
2684 r"""set_direction_is_optimized(Direction self, bool tf)"""
2685 return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2687 def get_direction(self):
2688 r"""get_direction(Direction self) -> Vector3D"""
2689 return _IMP_core.Direction_get_direction(self)
2691 def set_direction(self, v):
2692 r"""set_direction(Direction self, Vector3D v)"""
2693 return _IMP_core.Direction_set_direction(self, v)
2696 r"""reflect(Direction self)"""
2697 return _IMP_core.Direction_reflect(self)
2699 def add_attribute(self, *args):
2701 add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2702 add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2703 add_attribute(Direction self, IntKey a0, IMP::Int a1)
2704 add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2705 add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2706 add_attribute(Direction self, StringKey a0, IMP::String a1)
2707 add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2708 add_attribute(Direction self, ObjectKey a0, Object a1)
2709 add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2710 add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2711 add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2712 add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2714 return _IMP_core.Direction_add_attribute(self, *args)
2716 def get_value(self, *args):
2718 get_value(Direction self, FloatKey a0) -> IMP::Float
2719 get_value(Direction self, IntKey a0) -> IMP::Int
2720 get_value(Direction self, FloatsKey a0) -> IMP::Floats
2721 get_value(Direction self, IntsKey a0) -> IMP::Ints
2722 get_value(Direction self, StringKey a0) -> IMP::String
2723 get_value(Direction self, ParticleIndexKey a0) -> Particle
2724 get_value(Direction self, ObjectKey a0) -> Object
2725 get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2726 get_value(Direction self, SparseIntKey a0) -> IMP::Int
2727 get_value(Direction self, SparseStringKey a0) -> IMP::String
2728 get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2730 return _IMP_core.Direction_get_value(self, *args)
2732 def set_value(self, *args):
2734 set_value(Direction self, FloatKey a0, IMP::Float a1)
2735 set_value(Direction self, IntKey a0, IMP::Int a1)
2736 set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2737 set_value(Direction self, IntsKey a0, IMP::Ints a1)
2738 set_value(Direction self, StringKey a0, IMP::String a1)
2739 set_value(Direction self, ParticleIndexKey a0, Particle a1)
2740 set_value(Direction self, ObjectKey a0, Object a1)
2741 set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2742 set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2743 set_value(Direction self, SparseStringKey a0, IMP::String a1)
2744 set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2746 return _IMP_core.Direction_set_value(self, *args)
2748 def remove_attribute(self, *args):
2750 remove_attribute(Direction self, FloatKey a0)
2751 remove_attribute(Direction self, IntKey a0)
2752 remove_attribute(Direction self, FloatsKey a0)
2753 remove_attribute(Direction self, IntsKey a0)
2754 remove_attribute(Direction self, StringKey a0)
2755 remove_attribute(Direction self, ParticleIndexKey a0)
2756 remove_attribute(Direction self, ObjectKey a0)
2757 remove_attribute(Direction self, SparseFloatKey a0)
2758 remove_attribute(Direction self, SparseIntKey a0)
2759 remove_attribute(Direction self, SparseStringKey a0)
2760 remove_attribute(Direction self, SparseParticleIndexKey a0)
2762 return _IMP_core.Direction_remove_attribute(self, *args)
2764 def has_attribute(self, *args):
2766 has_attribute(Direction self, FloatKey a0) -> bool
2767 has_attribute(Direction self, IntKey a0) -> bool
2768 has_attribute(Direction self, FloatsKey a0) -> bool
2769 has_attribute(Direction self, IntsKey a0) -> bool
2770 has_attribute(Direction self, StringKey a0) -> bool
2771 has_attribute(Direction self, ParticleIndexKey a0) -> bool
2772 has_attribute(Direction self, ObjectKey a0) -> bool
2773 has_attribute(Direction self, SparseFloatKey a0) -> bool
2774 has_attribute(Direction self, SparseIntKey a0) -> bool
2775 has_attribute(Direction self, SparseStringKey a0) -> bool
2776 has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2778 return _IMP_core.Direction_has_attribute(self, *args)
2780 def get_derivative(self, a0):
2781 r"""get_derivative(Direction self, FloatKey a0) -> double"""
2782 return _IMP_core.Direction_get_derivative(self, a0)
2785 r"""get_name(Direction self) -> std::string"""
2786 return _IMP_core.Direction_get_name(self)
2788 def clear_caches(self):
2789 r"""clear_caches(Direction self)"""
2790 return _IMP_core.Direction_clear_caches(self)
2792 def set_name(self, a0):
2793 r"""set_name(Direction self, std::string a0)"""
2794 return _IMP_core.Direction_set_name(self, a0)
2797 r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2798 return _IMP_core.Direction_set_check_level(self, a0)
2800 def add_to_derivative(self, a0, a1, a2):
2801 r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2802 return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2804 def set_is_optimized(self, a0, a1):
2805 r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2806 return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2808 def get_is_optimized(self, a0):
2809 r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2810 return _IMP_core.Direction_get_is_optimized(self, a0)
2813 r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2814 return _IMP_core.Direction_get_check_level(self)
2816 def __eq__(self, *args):
2818 __eq__(Direction self, Direction o) -> bool
2819 __eq__(Direction self, Particle d) -> bool
2821 return _IMP_core.Direction___eq__(self, *args)
2823 def __ne__(self, *args):
2825 __ne__(Direction self, Direction o) -> bool
2826 __ne__(Direction self, Particle d) -> bool
2828 return _IMP_core.Direction___ne__(self, *args)
2830 def __le__(self, *args):
2832 __le__(Direction self, Direction o) -> bool
2833 __le__(Direction self, Particle d) -> bool
2835 return _IMP_core.Direction___le__(self, *args)
2837 def __lt__(self, *args):
2839 __lt__(Direction self, Direction o) -> bool
2840 __lt__(Direction self, Particle d) -> bool
2842 return _IMP_core.Direction___lt__(self, *args)
2844 def __ge__(self, *args):
2846 __ge__(Direction self, Direction o) -> bool
2847 __ge__(Direction self, Particle d) -> bool
2849 return _IMP_core.Direction___ge__(self, *args)
2851 def __gt__(self, *args):
2853 __gt__(Direction self, Direction o) -> bool
2854 __gt__(Direction self, Particle d) -> bool
2856 return _IMP_core.Direction___gt__(self, *args)
2859 r"""__hash__(Direction self) -> std::size_t"""
2860 return _IMP_core.Direction___hash__(self)
2863 r"""__str__(Direction self) -> std::string"""
2864 return _IMP_core.Direction___str__(self)
2867 r"""__repr__(Direction self) -> std::string"""
2868 return _IMP_core.Direction___repr__(self)
2870 def _get_as_binary(self):
2871 r"""_get_as_binary(Direction self) -> PyObject *"""
2872 return _IMP_core.Direction__get_as_binary(self)
2874 def _set_from_binary(self, p):
2875 r"""_set_from_binary(Direction self, PyObject * p)"""
2876 return _IMP_core.Direction__set_from_binary(self, p)
2878 def __getstate__(self):
2879 p = self._get_as_binary()
2880 if len(self.__dict__) > 1:
2881 d = self.__dict__.copy()
2886 def __setstate__(self, p):
2887 if not hasattr(self,
'this'):
2889 if isinstance(p, tuple):
2891 self.__dict__.update(d)
2892 return self._set_from_binary(p)
2894 __swig_destroy__ = _IMP_core.delete_Direction
2897 _IMP_core.Direction_swigregister(Direction)
2900 r"""get_angle(Direction a, Direction b) -> double"""
2901 return _IMP_core.get_angle(a, b)
2903 r"""Proxy of C++ IMP::core::DirectionAngle class."""
2905 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2907 def __init__(self, *args):
2909 __init__(DirectionAngle self) -> DirectionAngle
2910 __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2911 __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2913 _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2915 def show(self, *args):
2916 r"""show(DirectionAngle self, _ostream out=std::cout)"""
2917 return _IMP_core.DirectionAngle_show(self, *args)
2920 def setup_particle(*args):
2922 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2923 setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2924 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2925 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2927 return _IMP_core.DirectionAngle_setup_particle(*args)
2930 def get_is_setup(*args):
2932 get_is_setup(_ParticleAdaptor p) -> bool
2933 get_is_setup(Model m, ParticleIndex pi) -> bool
2935 return _IMP_core.DirectionAngle_get_is_setup(*args)
2938 def get_angle_key():
2939 r"""get_angle_key() -> FloatKey"""
2940 return _IMP_core.DirectionAngle_get_angle_key()
2943 def get_particle_key(i):
2944 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2945 return _IMP_core.DirectionAngle_get_particle_key(i)
2947 def get_particle(self, *args):
2949 get_particle(DirectionAngle self, unsigned int i) -> Particle
2950 get_particle(DirectionAngle self) -> Particle
2952 return _IMP_core.DirectionAngle_get_particle(self, *args)
2954 def get_particle_index(self, *args):
2956 get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2957 get_particle_index(DirectionAngle self) -> ParticleIndex
2959 return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2962 r"""get_angle(DirectionAngle self) -> IMP::Float"""
2963 return _IMP_core.DirectionAngle_get_angle(self)
2965 def get_angle_derivative(self):
2966 r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2967 return _IMP_core.DirectionAngle_get_angle_derivative(self)
2969 def add_to_angle_derivative(self, v, d):
2970 r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2971 return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2973 def add_attribute(self, *args):
2975 add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2976 add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2977 add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2978 add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2979 add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2980 add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2981 add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2982 add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2983 add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
2984 add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
2985 add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
2986 add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
2988 return _IMP_core.DirectionAngle_add_attribute(self, *args)
2990 def get_value(self, *args):
2992 get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
2993 get_value(DirectionAngle self, IntKey a0) -> IMP::Int
2994 get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
2995 get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
2996 get_value(DirectionAngle self, StringKey a0) -> IMP::String
2997 get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
2998 get_value(DirectionAngle self, ObjectKey a0) -> Object
2999 get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3000 get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3001 get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3002 get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3004 return _IMP_core.DirectionAngle_get_value(self, *args)
3006 def set_value(self, *args):
3008 set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3009 set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3010 set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3011 set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3012 set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3013 set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3014 set_value(DirectionAngle self, ObjectKey a0, Object a1)
3015 set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3016 set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3017 set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3018 set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3020 return _IMP_core.DirectionAngle_set_value(self, *args)
3022 def remove_attribute(self, *args):
3024 remove_attribute(DirectionAngle self, FloatKey a0)
3025 remove_attribute(DirectionAngle self, IntKey a0)
3026 remove_attribute(DirectionAngle self, FloatsKey a0)
3027 remove_attribute(DirectionAngle self, IntsKey a0)
3028 remove_attribute(DirectionAngle self, StringKey a0)
3029 remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3030 remove_attribute(DirectionAngle self, ObjectKey a0)
3031 remove_attribute(DirectionAngle self, SparseFloatKey a0)
3032 remove_attribute(DirectionAngle self, SparseIntKey a0)
3033 remove_attribute(DirectionAngle self, SparseStringKey a0)
3034 remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3036 return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3038 def has_attribute(self, *args):
3040 has_attribute(DirectionAngle self, FloatKey a0) -> bool
3041 has_attribute(DirectionAngle self, IntKey a0) -> bool
3042 has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3043 has_attribute(DirectionAngle self, IntsKey a0) -> bool
3044 has_attribute(DirectionAngle self, StringKey a0) -> bool
3045 has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3046 has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3047 has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3048 has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3049 has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3050 has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3052 return _IMP_core.DirectionAngle_has_attribute(self, *args)
3054 def get_derivative(self, a0):
3055 r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3056 return _IMP_core.DirectionAngle_get_derivative(self, a0)
3059 r"""get_name(DirectionAngle self) -> std::string"""
3060 return _IMP_core.DirectionAngle_get_name(self)
3062 def clear_caches(self):
3063 r"""clear_caches(DirectionAngle self)"""
3064 return _IMP_core.DirectionAngle_clear_caches(self)
3066 def set_name(self, a0):
3067 r"""set_name(DirectionAngle self, std::string a0)"""
3068 return _IMP_core.DirectionAngle_set_name(self, a0)
3071 r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3072 return _IMP_core.DirectionAngle_set_check_level(self, a0)
3074 def add_to_derivative(self, a0, a1, a2):
3075 r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3076 return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3078 def set_is_optimized(self, a0, a1):
3079 r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3080 return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3082 def get_is_optimized(self, a0):
3083 r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3084 return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3087 r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3088 return _IMP_core.DirectionAngle_get_check_level(self)
3090 def __eq__(self, *args):
3092 __eq__(DirectionAngle self, DirectionAngle o) -> bool
3093 __eq__(DirectionAngle self, Particle d) -> bool
3095 return _IMP_core.DirectionAngle___eq__(self, *args)
3097 def __ne__(self, *args):
3099 __ne__(DirectionAngle self, DirectionAngle o) -> bool
3100 __ne__(DirectionAngle self, Particle d) -> bool
3102 return _IMP_core.DirectionAngle___ne__(self, *args)
3104 def __le__(self, *args):
3106 __le__(DirectionAngle self, DirectionAngle o) -> bool
3107 __le__(DirectionAngle self, Particle d) -> bool
3109 return _IMP_core.DirectionAngle___le__(self, *args)
3111 def __lt__(self, *args):
3113 __lt__(DirectionAngle self, DirectionAngle o) -> bool
3114 __lt__(DirectionAngle self, Particle d) -> bool
3116 return _IMP_core.DirectionAngle___lt__(self, *args)
3118 def __ge__(self, *args):
3120 __ge__(DirectionAngle self, DirectionAngle o) -> bool
3121 __ge__(DirectionAngle self, Particle d) -> bool
3123 return _IMP_core.DirectionAngle___ge__(self, *args)
3125 def __gt__(self, *args):
3127 __gt__(DirectionAngle self, DirectionAngle o) -> bool
3128 __gt__(DirectionAngle self, Particle d) -> bool
3130 return _IMP_core.DirectionAngle___gt__(self, *args)
3133 r"""__hash__(DirectionAngle self) -> std::size_t"""
3134 return _IMP_core.DirectionAngle___hash__(self)
3137 r"""__str__(DirectionAngle self) -> std::string"""
3138 return _IMP_core.DirectionAngle___str__(self)
3141 r"""__repr__(DirectionAngle self) -> std::string"""
3142 return _IMP_core.DirectionAngle___repr__(self)
3144 def _get_as_binary(self):
3145 r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3146 return _IMP_core.DirectionAngle__get_as_binary(self)
3148 def _set_from_binary(self, p):
3149 r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3150 return _IMP_core.DirectionAngle__set_from_binary(self, p)
3152 def __getstate__(self):
3153 p = self._get_as_binary()
3154 if len(self.__dict__) > 1:
3155 d = self.__dict__.copy()
3160 def __setstate__(self, p):
3161 if not hasattr(self,
'this'):
3163 if isinstance(p, tuple):
3165 self.__dict__.update(d)
3166 return self._set_from_binary(p)
3168 __swig_destroy__ = _IMP_core.delete_DirectionAngle
3171 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3173 r"""Proxy of C++ IMP::core::Surface class."""
3175 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3178 def do_setup_particle(*args):
3180 do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3181 do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3183 return _IMP_core.Surface_do_setup_particle(*args)
3185 def __init__(self, *args):
3187 __init__(Surface self) -> Surface
3188 __init__(Surface self, Model m, ParticleIndex id) -> Surface
3189 __init__(Surface self, _ParticleAdaptor d) -> Surface
3191 _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3193 def show(self, *args):
3194 r"""show(Surface self, _ostream out=std::cout)"""
3195 return _IMP_core.Surface_show(self, *args)
3198 def setup_particle(*args):
3200 setup_particle(Model m, ParticleIndex pi) -> Surface
3201 setup_particle(_ParticleAdaptor pa) -> Surface
3202 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3203 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3204 setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3205 setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3206 setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3207 setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3209 return _IMP_core.Surface_setup_particle(*args)
3211 def get_normal_x(self):
3212 r"""get_normal_x(Surface self) -> IMP::Float"""
3213 return _IMP_core.Surface_get_normal_x(self)
3215 def set_normal_x(self, t):
3216 r"""set_normal_x(Surface self, IMP::Float t)"""
3217 return _IMP_core.Surface_set_normal_x(self, t)
3219 def get_normal_y(self):
3220 r"""get_normal_y(Surface self) -> IMP::Float"""
3221 return _IMP_core.Surface_get_normal_y(self)
3223 def set_normal_y(self, t):
3224 r"""set_normal_y(Surface self, IMP::Float t)"""
3225 return _IMP_core.Surface_set_normal_y(self, t)
3227 def get_normal_z(self):
3228 r"""get_normal_z(Surface self) -> IMP::Float"""
3229 return _IMP_core.Surface_get_normal_z(self)
3231 def set_normal_z(self, t):
3232 r"""set_normal_z(Surface self, IMP::Float t)"""
3233 return _IMP_core.Surface_set_normal_z(self, t)
3236 def get_is_setup(*args):
3238 get_is_setup(_ParticleAdaptor p) -> bool
3239 get_is_setup(Model m, ParticleIndex pi) -> bool
3241 return _IMP_core.Surface_get_is_setup(*args)
3244 def get_normal_key(i):
3245 r"""get_normal_key(unsigned int i) -> FloatKey"""
3246 return _IMP_core.Surface_get_normal_key(i)
3248 def get_normal_derivative(self, i):
3249 r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3250 return _IMP_core.Surface_get_normal_derivative(self, i)
3252 def get_normal_derivatives(self):
3253 r"""get_normal_derivatives(Surface self) -> Vector3D"""
3254 return _IMP_core.Surface_get_normal_derivatives(self)
3256 def add_to_normal_derivative(self, i, v, d):
3257 r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3258 return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3260 def add_to_normal_derivatives(self, v, d):
3261 r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3262 return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3264 def get_normal_is_optimized(self):
3265 r"""get_normal_is_optimized(Surface self) -> bool"""
3266 return _IMP_core.Surface_get_normal_is_optimized(self)
3268 def set_normal_is_optimized(self, tf):
3269 r"""set_normal_is_optimized(Surface self, bool tf)"""
3270 return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3272 def get_normal(self):
3273 r"""get_normal(Surface self) -> Vector3D"""
3274 return _IMP_core.Surface_get_normal(self)
3276 def set_normal(self, normal):
3277 r"""set_normal(Surface self, Vector3D normal)"""
3278 return _IMP_core.Surface_set_normal(self, normal)
3281 r"""reflect(Surface self)"""
3282 return _IMP_core.Surface_reflect(self)
3285 r"""get_height(Surface self, Vector3D v) -> double"""
3286 return _IMP_core.Surface_get_height(self, v)
3289 r"""get_depth(Surface self, Vector3D v) -> double"""
3290 return _IMP_core.Surface_get_depth(self, v)
3292 def get_distance_to(self, v):
3293 r"""get_distance_to(Surface self, Vector3D v) -> double"""
3294 return _IMP_core.Surface_get_distance_to(self, v)
3296 def get_distance_to_center(self, v):
3297 r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3298 return _IMP_core.Surface_get_distance_to_center(self, v)
3300 def set_reference_frame(self, rf):
3301 r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3302 return _IMP_core.Surface_set_reference_frame(self, rf)
3304 def get_reference_frame(self):
3305 r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3306 return _IMP_core.Surface_get_reference_frame(self)
3308 def get_plane(self):
3309 r"""get_plane(Surface self) -> Plane3D"""
3310 return _IMP_core.Surface_get_plane(self)
3312 def add_attribute(self, *args):
3314 add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3315 add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3316 add_attribute(Surface self, IntKey a0, IMP::Int a1)
3317 add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3318 add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3319 add_attribute(Surface self, StringKey a0, IMP::String a1)
3320 add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3321 add_attribute(Surface self, ObjectKey a0, Object a1)
3322 add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3323 add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3324 add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3325 add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3327 return _IMP_core.Surface_add_attribute(self, *args)
3329 def get_value(self, *args):
3331 get_value(Surface self, FloatKey a0) -> IMP::Float
3332 get_value(Surface self, IntKey a0) -> IMP::Int
3333 get_value(Surface self, FloatsKey a0) -> IMP::Floats
3334 get_value(Surface self, IntsKey a0) -> IMP::Ints
3335 get_value(Surface self, StringKey a0) -> IMP::String
3336 get_value(Surface self, ParticleIndexKey a0) -> Particle
3337 get_value(Surface self, ObjectKey a0) -> Object
3338 get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3339 get_value(Surface self, SparseIntKey a0) -> IMP::Int
3340 get_value(Surface self, SparseStringKey a0) -> IMP::String
3341 get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3343 return _IMP_core.Surface_get_value(self, *args)
3345 def set_value(self, *args):
3347 set_value(Surface self, FloatKey a0, IMP::Float a1)
3348 set_value(Surface self, IntKey a0, IMP::Int a1)
3349 set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3350 set_value(Surface self, IntsKey a0, IMP::Ints a1)
3351 set_value(Surface self, StringKey a0, IMP::String a1)
3352 set_value(Surface self, ParticleIndexKey a0, Particle a1)
3353 set_value(Surface self, ObjectKey a0, Object a1)
3354 set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3355 set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3356 set_value(Surface self, SparseStringKey a0, IMP::String a1)
3357 set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3359 return _IMP_core.Surface_set_value(self, *args)
3361 def remove_attribute(self, *args):
3363 remove_attribute(Surface self, FloatKey a0)
3364 remove_attribute(Surface self, IntKey a0)
3365 remove_attribute(Surface self, FloatsKey a0)
3366 remove_attribute(Surface self, IntsKey a0)
3367 remove_attribute(Surface self, StringKey a0)
3368 remove_attribute(Surface self, ParticleIndexKey a0)
3369 remove_attribute(Surface self, ObjectKey a0)
3370 remove_attribute(Surface self, SparseFloatKey a0)
3371 remove_attribute(Surface self, SparseIntKey a0)
3372 remove_attribute(Surface self, SparseStringKey a0)
3373 remove_attribute(Surface self, SparseParticleIndexKey a0)
3375 return _IMP_core.Surface_remove_attribute(self, *args)
3377 def has_attribute(self, *args):
3379 has_attribute(Surface self, FloatKey a0) -> bool
3380 has_attribute(Surface self, IntKey a0) -> bool
3381 has_attribute(Surface self, FloatsKey a0) -> bool
3382 has_attribute(Surface self, IntsKey a0) -> bool
3383 has_attribute(Surface self, StringKey a0) -> bool
3384 has_attribute(Surface self, ParticleIndexKey a0) -> bool
3385 has_attribute(Surface self, ObjectKey a0) -> bool
3386 has_attribute(Surface self, SparseFloatKey a0) -> bool
3387 has_attribute(Surface self, SparseIntKey a0) -> bool
3388 has_attribute(Surface self, SparseStringKey a0) -> bool
3389 has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3391 return _IMP_core.Surface_has_attribute(self, *args)
3393 def get_derivative(self, a0):
3394 r"""get_derivative(Surface self, FloatKey a0) -> double"""
3395 return _IMP_core.Surface_get_derivative(self, a0)
3398 r"""get_name(Surface self) -> std::string"""
3399 return _IMP_core.Surface_get_name(self)
3401 def clear_caches(self):
3402 r"""clear_caches(Surface self)"""
3403 return _IMP_core.Surface_clear_caches(self)
3405 def set_name(self, a0):
3406 r"""set_name(Surface self, std::string a0)"""
3407 return _IMP_core.Surface_set_name(self, a0)
3410 r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3411 return _IMP_core.Surface_set_check_level(self, a0)
3413 def add_to_derivative(self, a0, a1, a2):
3414 r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3415 return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3417 def set_is_optimized(self, a0, a1):
3418 r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3419 return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3421 def get_is_optimized(self, a0):
3422 r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3423 return _IMP_core.Surface_get_is_optimized(self, a0)
3426 r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3427 return _IMP_core.Surface_get_check_level(self)
3429 def __eq__(self, *args):
3431 __eq__(Surface self, Surface o) -> bool
3432 __eq__(Surface self, Particle d) -> bool
3434 return _IMP_core.Surface___eq__(self, *args)
3436 def __ne__(self, *args):
3438 __ne__(Surface self, Surface o) -> bool
3439 __ne__(Surface self, Particle d) -> bool
3441 return _IMP_core.Surface___ne__(self, *args)
3443 def __le__(self, *args):
3445 __le__(Surface self, Surface o) -> bool
3446 __le__(Surface self, Particle d) -> bool
3448 return _IMP_core.Surface___le__(self, *args)
3450 def __lt__(self, *args):
3452 __lt__(Surface self, Surface o) -> bool
3453 __lt__(Surface self, Particle d) -> bool
3455 return _IMP_core.Surface___lt__(self, *args)
3457 def __ge__(self, *args):
3459 __ge__(Surface self, Surface o) -> bool
3460 __ge__(Surface self, Particle d) -> bool
3462 return _IMP_core.Surface___ge__(self, *args)
3464 def __gt__(self, *args):
3466 __gt__(Surface self, Surface o) -> bool
3467 __gt__(Surface self, Particle d) -> bool
3469 return _IMP_core.Surface___gt__(self, *args)
3472 r"""__hash__(Surface self) -> std::size_t"""
3473 return _IMP_core.Surface___hash__(self)
3476 r"""__str__(Surface self) -> std::string"""
3477 return _IMP_core.Surface___str__(self)
3480 r"""__repr__(Surface self) -> std::string"""
3481 return _IMP_core.Surface___repr__(self)
3483 def _get_as_binary(self):
3484 r"""_get_as_binary(Surface self) -> PyObject *"""
3485 return _IMP_core.Surface__get_as_binary(self)
3487 def _set_from_binary(self, p):
3488 r"""_set_from_binary(Surface self, PyObject * p)"""
3489 return _IMP_core.Surface__set_from_binary(self, p)
3491 def __getstate__(self):
3492 p = self._get_as_binary()
3493 if len(self.__dict__) > 1:
3494 d = self.__dict__.copy()
3499 def __setstate__(self, p):
3500 if not hasattr(self,
'this'):
3502 if isinstance(p, tuple):
3504 self.__dict__.update(d)
3505 return self._set_from_binary(p)
3507 __swig_destroy__ = _IMP_core.delete_Surface
3510 _IMP_core.Surface_swigregister(Surface)
3514 get_height(Surface s, XYZR d) -> double
3515 get_height(Surface s, XYZ d) -> double
3517 return _IMP_core.get_height(*args)
3521 get_depth(Surface s, XYZR d) -> double
3522 get_depth(Surface s, XYZ d) -> double
3524 return _IMP_core.get_depth(*args)
3528 get_distance(XYZ a, XYZ b) -> double
3529 get_distance(XYZR a, XYZR b) -> double
3530 get_distance(Surface s, XYZR d) -> double
3531 get_distance(Surface s, XYZ d) -> double
3533 return _IMP_core.get_distance(*args)
3535 r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3537 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3539 def __init__(self, *args):
3541 __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3542 __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3543 __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3545 _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3547 def get_geometry(self):
3548 r"""get_geometry(SurfaceGeometry self) -> Surface"""
3549 return _IMP_core.SurfaceGeometry_get_geometry(self)
3551 def set_geometry(self, s):
3552 r"""set_geometry(SurfaceGeometry self, Surface s)"""
3553 return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3555 def get_version_info(self):
3556 r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3557 return _IMP_core.SurfaceGeometry_get_version_info(self)
3558 __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3561 r"""__str__(SurfaceGeometry self) -> std::string"""
3562 return _IMP_core.SurfaceGeometry___str__(self)
3565 r"""__repr__(SurfaceGeometry self) -> std::string"""
3566 return _IMP_core.SurfaceGeometry___repr__(self)
3570 return _object_cast_to_SurfaceGeometry(o)
3574 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3577 r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3578 return _IMP_core.create_geometry(*args)
3580 r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3584 def __init__(self, s, g):
3585 r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3586 _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3588 def get_surface(self):
3589 r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3590 return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3592 def get_geometry(self):
3593 r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3594 return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3596 def do_get_inputs(self):
3597 r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3598 return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3600 def do_get_outputs(self):
3601 r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3602 return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3604 def get_version_info(self):
3605 r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3606 return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3607 __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3610 r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3611 return _IMP_core.SurfaceGeometryConstraint___str__(self)
3614 r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3615 return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3619 return _object_cast_to_SurfaceGeometryConstraint(o)
3623 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3626 r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3627 return _IMP_core.get_constrained_surface_geometry(*args)
3629 r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3631 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3633 def __init__(self, s, d):
3634 r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3635 _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3637 def do_get_inputs(self):
3638 r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3639 return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3641 def do_get_outputs(self):
3642 r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3643 return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3645 def get_version_info(self):
3646 r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3647 return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3648 __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3651 r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3652 return _IMP_core.LateralSurfaceConstraint___str__(self)
3655 r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3656 return _IMP_core.LateralSurfaceConstraint___repr__(self)
3660 return _object_cast_to_LateralSurfaceConstraint(o)
3664 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3666 r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3668 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3670 def __init__(self, *args):
3672 __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3673 __init__(AngleTripletScore self) -> AngleTripletScore
3675 _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3677 def do_get_inputs(self, m, pis):
3678 r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3679 return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3681 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3682 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"""
3683 return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3685 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3686 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"""
3687 return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3689 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3690 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"""
3691 return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3693 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3694 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"""
3695 return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3697 def get_version_info(self):
3698 r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3699 return _IMP_core.AngleTripletScore_get_version_info(self)
3700 __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3703 r"""__str__(AngleTripletScore self) -> std::string"""
3704 return _IMP_core.AngleTripletScore___str__(self)
3707 r"""__repr__(AngleTripletScore self) -> std::string"""
3708 return _IMP_core.AngleTripletScore___repr__(self)
3712 return _object_cast_to_AngleTripletScore(o)
3715 def _get_as_binary(self):
3716 r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3717 return _IMP_core.AngleTripletScore__get_as_binary(self)
3719 def _set_from_binary(self, p):
3720 r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3721 return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3723 def __getstate__(self):
3724 p = self._get_as_binary()
3725 if len(self.__dict__) > 1:
3726 d = self.__dict__.copy()
3731 def __setstate__(self, p):
3732 if not hasattr(self,
'this'):
3734 if isinstance(p, tuple):
3736 self.__dict__.update(d)
3737 return self._set_from_binary(p)
3741 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3742 class BallMover(MonteCarloMover):
3743 r"""Proxy of C++ IMP::core::BallMover class."""
3745 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3747 def __init__(self, *args):
3749 __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3750 __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3751 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3752 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3753 __init__(BallMover self) -> BallMover
3755 _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3757 def set_radius(self, radius):
3758 r"""set_radius(BallMover self, IMP::Float radius)"""
3759 return _IMP_core.BallMover_set_radius(self, radius)
3761 def get_radius(self):
3762 r"""get_radius(BallMover self) -> IMP::Float"""
3763 return _IMP_core.BallMover_get_radius(self)
3765 def get_version_info(self):
3766 r"""get_version_info(BallMover self) -> VersionInfo"""
3767 return _IMP_core.BallMover_get_version_info(self)
3768 __swig_destroy__ = _IMP_core.delete_BallMover
3771 r"""__str__(BallMover self) -> std::string"""
3772 return _IMP_core.BallMover___str__(self)
3775 r"""__repr__(BallMover self) -> std::string"""
3776 return _IMP_core.BallMover___repr__(self)
3780 return _object_cast_to_BallMover(o)
3783 def _get_as_binary(self):
3784 r"""_get_as_binary(BallMover self) -> PyObject *"""
3785 return _IMP_core.BallMover__get_as_binary(self)
3787 def _set_from_binary(self, p):
3788 r"""_set_from_binary(BallMover self, PyObject * p)"""
3789 return _IMP_core.BallMover__set_from_binary(self, p)
3791 def __getstate__(self):
3792 p = self._get_as_binary()
3793 if len(self.__dict__) > 1:
3794 d = self.__dict__.copy()
3799 def __setstate__(self, p):
3800 if not hasattr(self,
'this'):
3802 if isinstance(p, tuple):
3804 self.__dict__.update(d)
3805 return self._set_from_binary(p)
3809 _IMP_core.BallMover_swigregister(BallMover)
3810 class SerialMover(MonteCarloMover):
3811 r"""Proxy of C++ IMP::core::SerialMover class."""
3813 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3815 def __init__(self, *args):
3817 __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3818 __init__(SerialMover self) -> SerialMover
3820 _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3822 def get_movers(self):
3823 r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3824 return _IMP_core.SerialMover_get_movers(self)
3826 def get_version_info(self):
3827 r"""get_version_info(SerialMover self) -> VersionInfo"""
3828 return _IMP_core.SerialMover_get_version_info(self)
3829 __swig_destroy__ = _IMP_core.delete_SerialMover
3832 r"""__str__(SerialMover self) -> std::string"""
3833 return _IMP_core.SerialMover___str__(self)
3836 r"""__repr__(SerialMover self) -> std::string"""
3837 return _IMP_core.SerialMover___repr__(self)
3841 return _object_cast_to_SerialMover(o)
3844 def _get_as_binary(self):
3845 r"""_get_as_binary(SerialMover self) -> PyObject *"""
3846 return _IMP_core.SerialMover__get_as_binary(self)
3848 def _set_from_binary(self, p):
3849 r"""_set_from_binary(SerialMover self, PyObject * p)"""
3850 return _IMP_core.SerialMover__set_from_binary(self, p)
3852 def __getstate__(self):
3853 p = self._get_as_binary()
3854 if len(self.__dict__) > 1:
3855 d = self.__dict__.copy()
3860 def __setstate__(self, p):
3861 if not hasattr(self,
'this'):
3863 if isinstance(p, tuple):
3865 self.__dict__.update(d)
3866 return self._set_from_binary(p)
3870 _IMP_core.SerialMover_swigregister(SerialMover)
3871 class SubsetMover(MonteCarloMover):
3872 r"""Proxy of C++ IMP::core::SubsetMover class."""
3874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3876 def __init__(self, *args):
3878 __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3879 __init__(SubsetMover self) -> SubsetMover
3881 _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3883 def get_movers(self):
3884 r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3885 return _IMP_core.SubsetMover_get_movers(self)
3887 def get_subset_size(self):
3888 r"""get_subset_size(SubsetMover self) -> unsigned int"""
3889 return _IMP_core.SubsetMover_get_subset_size(self)
3891 def get_version_info(self):
3892 r"""get_version_info(SubsetMover self) -> VersionInfo"""
3893 return _IMP_core.SubsetMover_get_version_info(self)
3894 __swig_destroy__ = _IMP_core.delete_SubsetMover
3897 r"""__str__(SubsetMover self) -> std::string"""
3898 return _IMP_core.SubsetMover___str__(self)
3901 r"""__repr__(SubsetMover self) -> std::string"""
3902 return _IMP_core.SubsetMover___repr__(self)
3906 return _object_cast_to_SubsetMover(o)
3909 def _get_as_binary(self):
3910 r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3911 return _IMP_core.SubsetMover__get_as_binary(self)
3913 def _set_from_binary(self, p):
3914 r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3915 return _IMP_core.SubsetMover__set_from_binary(self, p)
3917 def __getstate__(self):
3918 p = self._get_as_binary()
3919 if len(self.__dict__) > 1:
3920 d = self.__dict__.copy()
3925 def __setstate__(self, p):
3926 if not hasattr(self,
'this'):
3928 if isinstance(p, tuple):
3930 self.__dict__.update(d)
3931 return self._set_from_binary(p)
3935 _IMP_core.SubsetMover_swigregister(SubsetMover)
3936 class DirectionMover(MonteCarloMover):
3937 r"""Proxy of C++ IMP::core::DirectionMover class."""
3939 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3941 def __init__(self, *args):
3943 __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3944 __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3945 __init__(DirectionMover self) -> DirectionMover
3947 _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3949 def set_maximum_rotation(self, mr):
3950 r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3951 return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3953 def set_reflect_probability(self, rp):
3954 r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3955 return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3957 def get_maximum_rotation(self):
3958 r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3959 return _IMP_core.DirectionMover_get_maximum_rotation(self)
3961 def get_reflect_probability(self):
3962 r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3963 return _IMP_core.DirectionMover_get_reflect_probability(self)
3965 def get_direction(self):
3966 r"""get_direction(DirectionMover self) -> Direction"""
3967 return _IMP_core.DirectionMover_get_direction(self)
3969 def get_version_info(self):
3970 r"""get_version_info(DirectionMover self) -> VersionInfo"""
3971 return _IMP_core.DirectionMover_get_version_info(self)
3972 __swig_destroy__ = _IMP_core.delete_DirectionMover
3975 r"""__str__(DirectionMover self) -> std::string"""
3976 return _IMP_core.DirectionMover___str__(self)
3979 r"""__repr__(DirectionMover self) -> std::string"""
3980 return _IMP_core.DirectionMover___repr__(self)
3984 return _object_cast_to_DirectionMover(o)
3987 def _get_as_binary(self):
3988 r"""_get_as_binary(DirectionMover self) -> PyObject *"""
3989 return _IMP_core.DirectionMover__get_as_binary(self)
3991 def _set_from_binary(self, p):
3992 r"""_set_from_binary(DirectionMover self, PyObject * p)"""
3993 return _IMP_core.DirectionMover__set_from_binary(self, p)
3995 def __getstate__(self):
3996 p = self._get_as_binary()
3997 if len(self.__dict__) > 1:
3998 d = self.__dict__.copy()
4003 def __setstate__(self, p):
4004 if not hasattr(self,
'this'):
4006 if isinstance(p, tuple):
4008 self.__dict__.update(d)
4009 return self._set_from_binary(p)
4013 _IMP_core.DirectionMover_swigregister(DirectionMover)
4014 class SurfaceMover(MonteCarloMover):
4015 r"""Proxy of C++ IMP::core::SurfaceMover class."""
4017 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4019 def __init__(self, *args):
4021 __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4022 __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4023 __init__(SurfaceMover self) -> SurfaceMover
4025 _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4027 def set_maximum_translation(self, mt):
4028 r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4029 return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4031 def set_maximum_rotation(self, mr):
4032 r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4033 return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4035 def set_reflect_probability(self, rp):
4036 r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4037 return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4039 def get_maximum_translation(self):
4040 r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4041 return _IMP_core.SurfaceMover_get_maximum_translation(self)
4043 def get_maximum_rotation(self):
4044 r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4045 return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4047 def get_reflect_probability(self):
4048 r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4049 return _IMP_core.SurfaceMover_get_reflect_probability(self)
4051 def get_surface(self):
4052 r"""get_surface(SurfaceMover self) -> Surface"""
4053 return _IMP_core.SurfaceMover_get_surface(self)
4055 def get_version_info(self):
4056 r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4057 return _IMP_core.SurfaceMover_get_version_info(self)
4058 __swig_destroy__ = _IMP_core.delete_SurfaceMover
4061 r"""__str__(SurfaceMover self) -> std::string"""
4062 return _IMP_core.SurfaceMover___str__(self)
4065 r"""__repr__(SurfaceMover self) -> std::string"""
4066 return _IMP_core.SurfaceMover___repr__(self)
4070 return _object_cast_to_SurfaceMover(o)
4073 def _get_as_binary(self):
4074 r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4075 return _IMP_core.SurfaceMover__get_as_binary(self)
4077 def _set_from_binary(self, p):
4078 r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4079 return _IMP_core.SurfaceMover__set_from_binary(self, p)
4081 def __getstate__(self):
4082 p = self._get_as_binary()
4083 if len(self.__dict__) > 1:
4084 d = self.__dict__.copy()
4089 def __setstate__(self, p):
4090 if not hasattr(self,
'this'):
4092 if isinstance(p, tuple):
4094 self.__dict__.update(d)
4095 return self._set_from_binary(p)
4099 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4100 class BoxSweepClosePairsFinder(ClosePairsFinder):
4101 r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4103 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4106 r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4107 _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4109 def get_close_pairs(self, *args):
4111 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4112 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4113 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4114 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4116 return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4118 def do_get_inputs(self, m, pis):
4119 r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4120 return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4122 def get_version_info(self):
4123 r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4124 return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4125 __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4128 r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4129 return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4132 r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4133 return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4137 return _object_cast_to_BoxSweepClosePairsFinder(o)
4141 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4143 r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4145 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4147 def __init__(self, *args):
4148 r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4149 _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4151 def do_get_inputs(self, m, pis):
4152 r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4153 return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4155 def do_get_outputs(self, m, pis):
4156 r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4157 return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4159 def get_version_info(self):
4160 r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4161 return _IMP_core.CentroidOfRefined_get_version_info(self)
4162 __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4165 r"""__str__(CentroidOfRefined self) -> std::string"""
4166 return _IMP_core.CentroidOfRefined___str__(self)
4169 r"""__repr__(CentroidOfRefined self) -> std::string"""
4170 return _IMP_core.CentroidOfRefined___repr__(self)
4174 return _object_cast_to_CentroidOfRefined(o)
4178 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4179 class Centroid(XYZ):
4180 r"""Proxy of C++ IMP::core::Centroid class."""
4182 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4184 def get_constraint(self):
4185 r"""get_constraint(Centroid self) -> Constraint"""
4186 return _IMP_core.Centroid_get_constraint(self)
4188 def __init__(self, *args):
4190 __init__(Centroid self) -> Centroid
4191 __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4192 __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4194 _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4196 def show(self, *args):
4197 r"""show(Centroid self, _ostream out=std::cout)"""
4198 return _IMP_core.Centroid_show(self, *args)
4201 def setup_particle(*args):
4203 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4204 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4205 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4206 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4208 return _IMP_core.Centroid_setup_particle(*args)
4211 def get_is_setup(*args):
4213 get_is_setup(_ParticleAdaptor p) -> bool
4214 get_is_setup(Model m, ParticleIndex pi) -> bool
4216 return _IMP_core.Centroid_get_is_setup(*args)
4218 def add_attribute(self, *args):
4220 add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4221 add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4222 add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4223 add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4224 add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4225 add_attribute(Centroid self, StringKey a0, IMP::String a1)
4226 add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4227 add_attribute(Centroid self, ObjectKey a0, Object a1)
4228 add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4229 add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4230 add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4231 add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4233 return _IMP_core.Centroid_add_attribute(self, *args)
4235 def get_value(self, *args):
4237 get_value(Centroid self, FloatKey a0) -> IMP::Float
4238 get_value(Centroid self, IntKey a0) -> IMP::Int
4239 get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4240 get_value(Centroid self, IntsKey a0) -> IMP::Ints
4241 get_value(Centroid self, StringKey a0) -> IMP::String
4242 get_value(Centroid self, ParticleIndexKey a0) -> Particle
4243 get_value(Centroid self, ObjectKey a0) -> Object
4244 get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4245 get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4246 get_value(Centroid self, SparseStringKey a0) -> IMP::String
4247 get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4249 return _IMP_core.Centroid_get_value(self, *args)
4251 def set_value(self, *args):
4253 set_value(Centroid self, FloatKey a0, IMP::Float a1)
4254 set_value(Centroid self, IntKey a0, IMP::Int a1)
4255 set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4256 set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4257 set_value(Centroid self, StringKey a0, IMP::String a1)
4258 set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4259 set_value(Centroid self, ObjectKey a0, Object a1)
4260 set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4261 set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4262 set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4263 set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4265 return _IMP_core.Centroid_set_value(self, *args)
4267 def remove_attribute(self, *args):
4269 remove_attribute(Centroid self, FloatKey a0)
4270 remove_attribute(Centroid self, IntKey a0)
4271 remove_attribute(Centroid self, FloatsKey a0)
4272 remove_attribute(Centroid self, IntsKey a0)
4273 remove_attribute(Centroid self, StringKey a0)
4274 remove_attribute(Centroid self, ParticleIndexKey a0)
4275 remove_attribute(Centroid self, ObjectKey a0)
4276 remove_attribute(Centroid self, SparseFloatKey a0)
4277 remove_attribute(Centroid self, SparseIntKey a0)
4278 remove_attribute(Centroid self, SparseStringKey a0)
4279 remove_attribute(Centroid self, SparseParticleIndexKey a0)
4281 return _IMP_core.Centroid_remove_attribute(self, *args)
4283 def has_attribute(self, *args):
4285 has_attribute(Centroid self, FloatKey a0) -> bool
4286 has_attribute(Centroid self, IntKey a0) -> bool
4287 has_attribute(Centroid self, FloatsKey a0) -> bool
4288 has_attribute(Centroid self, IntsKey a0) -> bool
4289 has_attribute(Centroid self, StringKey a0) -> bool
4290 has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4291 has_attribute(Centroid self, ObjectKey a0) -> bool
4292 has_attribute(Centroid self, SparseFloatKey a0) -> bool
4293 has_attribute(Centroid self, SparseIntKey a0) -> bool
4294 has_attribute(Centroid self, SparseStringKey a0) -> bool
4295 has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4297 return _IMP_core.Centroid_has_attribute(self, *args)
4299 def get_derivative(self, a0):
4300 r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4301 return _IMP_core.Centroid_get_derivative(self, a0)
4304 r"""get_name(Centroid self) -> std::string"""
4305 return _IMP_core.Centroid_get_name(self)
4307 def clear_caches(self):
4308 r"""clear_caches(Centroid self)"""
4309 return _IMP_core.Centroid_clear_caches(self)
4311 def set_name(self, a0):
4312 r"""set_name(Centroid self, std::string a0)"""
4313 return _IMP_core.Centroid_set_name(self, a0)
4316 r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4317 return _IMP_core.Centroid_set_check_level(self, a0)
4319 def add_to_derivative(self, a0, a1, a2):
4320 r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4321 return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4323 def set_is_optimized(self, a0, a1):
4324 r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4325 return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4327 def get_is_optimized(self, a0):
4328 r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4329 return _IMP_core.Centroid_get_is_optimized(self, a0)
4332 r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4333 return _IMP_core.Centroid_get_check_level(self)
4335 def __eq__(self, *args):
4337 __eq__(Centroid self, Centroid o) -> bool
4338 __eq__(Centroid self, Particle d) -> bool
4340 return _IMP_core.Centroid___eq__(self, *args)
4342 def __ne__(self, *args):
4344 __ne__(Centroid self, Centroid o) -> bool
4345 __ne__(Centroid self, Particle d) -> bool
4347 return _IMP_core.Centroid___ne__(self, *args)
4349 def __le__(self, *args):
4351 __le__(Centroid self, Centroid o) -> bool
4352 __le__(Centroid self, Particle d) -> bool
4354 return _IMP_core.Centroid___le__(self, *args)
4356 def __lt__(self, *args):
4358 __lt__(Centroid self, Centroid o) -> bool
4359 __lt__(Centroid self, Particle d) -> bool
4361 return _IMP_core.Centroid___lt__(self, *args)
4363 def __ge__(self, *args):
4365 __ge__(Centroid self, Centroid o) -> bool
4366 __ge__(Centroid self, Particle d) -> bool
4368 return _IMP_core.Centroid___ge__(self, *args)
4370 def __gt__(self, *args):
4372 __gt__(Centroid self, Centroid o) -> bool
4373 __gt__(Centroid self, Particle d) -> bool
4375 return _IMP_core.Centroid___gt__(self, *args)
4378 r"""__hash__(Centroid self) -> std::size_t"""
4379 return _IMP_core.Centroid___hash__(self)
4382 r"""__str__(Centroid self) -> std::string"""
4383 return _IMP_core.Centroid___str__(self)
4386 r"""__repr__(Centroid self) -> std::string"""
4387 return _IMP_core.Centroid___repr__(self)
4389 def _get_as_binary(self):
4390 r"""_get_as_binary(Centroid self) -> PyObject *"""
4391 return _IMP_core.Centroid__get_as_binary(self)
4393 def _set_from_binary(self, p):
4394 r"""_set_from_binary(Centroid self, PyObject * p)"""
4395 return _IMP_core.Centroid__set_from_binary(self, p)
4397 def __getstate__(self):
4398 p = self._get_as_binary()
4399 if len(self.__dict__) > 1:
4400 d = self.__dict__.copy()
4405 def __setstate__(self, p):
4406 if not hasattr(self,
'this'):
4408 if isinstance(p, tuple):
4410 self.__dict__.update(d)
4411 return self._set_from_binary(p)
4413 __swig_destroy__ = _IMP_core.delete_Centroid
4416 _IMP_core.Centroid_swigregister(Centroid)
4418 r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4420 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4422 def __init__(self, *args):
4424 __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4425 __init__(ChecksScoreState self) -> ChecksScoreState
4427 _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4429 def get_number_of_checked(self):
4430 r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4431 return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4433 def do_before_evaluate(self):
4434 r"""do_before_evaluate(ChecksScoreState self)"""
4435 return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4437 def do_after_evaluate(self, da):
4438 r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4439 return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4441 def do_get_outputs(self):
4442 r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4443 return _IMP_core.ChecksScoreState_do_get_outputs(self)
4445 def do_get_inputs(self):
4446 r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4447 return _IMP_core.ChecksScoreState_do_get_inputs(self)
4449 def get_version_info(self):
4450 r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4451 return _IMP_core.ChecksScoreState_get_version_info(self)
4452 __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4455 r"""__str__(ChecksScoreState self) -> std::string"""
4456 return _IMP_core.ChecksScoreState___str__(self)
4459 r"""__repr__(ChecksScoreState self) -> std::string"""
4460 return _IMP_core.ChecksScoreState___repr__(self)
4464 return _object_cast_to_ChecksScoreState(o)
4467 def _get_as_binary(self):
4468 r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4469 return _IMP_core.ChecksScoreState__get_as_binary(self)
4471 def _set_from_binary(self, p):
4472 r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4473 return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4475 def __getstate__(self):
4476 p = self._get_as_binary()
4477 if len(self.__dict__) > 1:
4478 d = self.__dict__.copy()
4483 def __setstate__(self, p):
4484 if not hasattr(self,
'this'):
4486 if isinstance(p, tuple):
4488 self.__dict__.update(d)
4489 return self._set_from_binary(p)
4493 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4495 r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4499 def __init__(self, tr):
4500 r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4501 _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4503 def do_get_inputs(self, m, pis):
4504 r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4505 return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4507 def get_version_info(self):
4508 r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4509 return _IMP_core.ChildrenRefiner_get_version_info(self)
4510 __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4513 r"""__str__(ChildrenRefiner self) -> std::string"""
4514 return _IMP_core.ChildrenRefiner___str__(self)
4517 r"""__repr__(ChildrenRefiner self) -> std::string"""
4518 return _IMP_core.ChildrenRefiner___repr__(self)
4522 return _object_cast_to_ChildrenRefiner(o)
4526 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4528 r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4530 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4532 def __init__(self, values, minrange, spacing):
4533 r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4534 _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4536 def get_version_info(self):
4537 r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4538 return _IMP_core.ClosedCubicSpline_get_version_info(self)
4539 __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4541 def do_show(self, out):
4542 r"""do_show(ClosedCubicSpline self, _ostream out)"""
4543 return _IMP_core.ClosedCubicSpline_do_show(self, out)
4546 r"""__str__(ClosedCubicSpline self) -> std::string"""
4547 return _IMP_core.ClosedCubicSpline___str__(self)
4550 r"""__repr__(ClosedCubicSpline self) -> std::string"""
4551 return _IMP_core.ClosedCubicSpline___repr__(self)
4555 return _object_cast_to_ClosedCubicSpline(o)
4559 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4561 r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4563 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4565 def __init__(self, f, r, k=1):
4566 r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4567 _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4569 def get_close_pairs(self, pp):
4570 r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4571 return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4573 def create_current_decomposition(self, m, vt):
4574 r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4575 return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4577 def do_get_inputs(self, m, pis):
4578 r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4579 return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4581 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4582 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"""
4583 return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4585 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4586 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"""
4587 return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4589 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4590 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"""
4591 return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4593 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4594 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"""
4595 return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4597 def get_version_info(self):
4598 r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4599 return _IMP_core.KClosePairsPairScore_get_version_info(self)
4600 __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4603 r"""__str__(KClosePairsPairScore self) -> std::string"""
4604 return _IMP_core.KClosePairsPairScore___str__(self)
4607 r"""__repr__(KClosePairsPairScore self) -> std::string"""
4608 return _IMP_core.KClosePairsPairScore___repr__(self)
4612 return _object_cast_to_KClosePairsPairScore(o)
4616 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4618 r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4620 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4622 def __init__(self, f, r, max_distance):
4623 r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4624 _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4626 def get_close_pairs(self, pp):
4627 r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4628 return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4630 def create_current_decomposition(self, m, vt):
4631 r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4632 return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4634 def do_get_inputs(self, m, pis):
4635 r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4636 return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4638 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4639 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"""
4640 return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4642 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4643 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"""
4644 return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4646 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4647 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"""
4648 return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4650 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4651 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"""
4652 return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4654 def get_version_info(self):
4655 r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4656 return _IMP_core.ClosePairsPairScore_get_version_info(self)
4657 __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4660 r"""__str__(ClosePairsPairScore self) -> std::string"""
4661 return _IMP_core.ClosePairsPairScore___str__(self)
4664 r"""__repr__(ClosePairsPairScore self) -> std::string"""
4665 return _IMP_core.ClosePairsPairScore___repr__(self)
4669 return _object_cast_to_ClosePairsPairScore(o)
4673 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4675 r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4677 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4679 def __init__(self, *args):
4681 __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4682 __init__(ConjugateGradients self) -> ConjugateGradients
4684 _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4686 def set_gradient_threshold(self, t):
4687 r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4688 return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4690 def set_max_change(self, t):
4691 r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4692 return _IMP_core.ConjugateGradients_set_max_change(self, t)
4694 def do_optimize(self, max_steps):
4695 r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4696 return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4698 def get_version_info(self):
4699 r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4700 return _IMP_core.ConjugateGradients_get_version_info(self)
4701 __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4704 r"""__str__(ConjugateGradients self) -> std::string"""
4705 return _IMP_core.ConjugateGradients___str__(self)
4708 r"""__repr__(ConjugateGradients self) -> std::string"""
4709 return _IMP_core.ConjugateGradients___repr__(self)
4713 return _object_cast_to_ConjugateGradients(o)
4716 def _get_as_binary(self):
4717 r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4718 return _IMP_core.ConjugateGradients__get_as_binary(self)
4720 def _set_from_binary(self, p):
4721 r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4722 return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4724 def __getstate__(self):
4725 p = self._get_as_binary()
4726 if len(self.__dict__) > 1:
4727 d = self.__dict__.copy()
4732 def __setstate__(self, p):
4733 if not hasattr(self,
'this'):
4735 if isinstance(p, tuple):
4737 self.__dict__.update(d)
4738 return self._set_from_binary(p)
4742 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4744 r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4748 def __init__(self, ps, sc):
4749 r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4750 _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4752 def get_connected_index_pairs(self):
4753 r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4754 return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4756 def get_pair_score(self):
4757 r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4758 return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4760 def do_create_current_decomposition(self):
4761 r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4762 return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4764 def do_get_inputs(self):
4765 r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4766 return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4768 def get_version_info(self):
4769 r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4770 return _IMP_core.ConnectivityRestraint_get_version_info(self)
4771 __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4774 r"""__str__(ConnectivityRestraint self) -> std::string"""
4775 return _IMP_core.ConnectivityRestraint___str__(self)
4778 r"""__repr__(ConnectivityRestraint self) -> std::string"""
4779 return _IMP_core.ConnectivityRestraint___repr__(self)
4783 return _object_cast_to_ConnectivityRestraint(o)
4787 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4789 r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4793 def __init__(self, *args):
4795 __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4796 __init__(ConstantRestraint self) -> ConstantRestraint
4798 _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4800 def do_get_inputs(self):
4801 r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4802 return _IMP_core.ConstantRestraint_do_get_inputs(self)
4804 def get_version_info(self):
4805 r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4806 return _IMP_core.ConstantRestraint_get_version_info(self)
4807 __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4810 r"""__str__(ConstantRestraint self) -> std::string"""
4811 return _IMP_core.ConstantRestraint___str__(self)
4814 r"""__repr__(ConstantRestraint self) -> std::string"""
4815 return _IMP_core.ConstantRestraint___repr__(self)
4819 return _object_cast_to_ConstantRestraint(o)
4822 def _get_as_binary(self):
4823 r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4824 return _IMP_core.ConstantRestraint__get_as_binary(self)
4826 def _set_from_binary(self, p):
4827 r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4828 return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4830 def __getstate__(self):
4831 p = self._get_as_binary()
4832 if len(self.__dict__) > 1:
4833 d = self.__dict__.copy()
4838 def __setstate__(self, p):
4839 if not hasattr(self,
'this'):
4841 if isinstance(p, tuple):
4843 self.__dict__.update(d)
4844 return self._set_from_binary(p)
4848 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4850 r"""Proxy of C++ IMP::core::Cosine class."""
4852 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4854 def __init__(self, *args):
4856 __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4857 __init__(Cosine self) -> Cosine
4859 _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4861 def get_version_info(self):
4862 r"""get_version_info(Cosine self) -> VersionInfo"""
4863 return _IMP_core.Cosine_get_version_info(self)
4864 __swig_destroy__ = _IMP_core.delete_Cosine
4866 def do_show(self, out):
4867 r"""do_show(Cosine self, _ostream out)"""
4868 return _IMP_core.Cosine_do_show(self, out)
4871 r"""__str__(Cosine self) -> std::string"""
4872 return _IMP_core.Cosine___str__(self)
4875 r"""__repr__(Cosine self) -> std::string"""
4876 return _IMP_core.Cosine___repr__(self)
4880 return _object_cast_to_Cosine(o)
4883 def _get_as_binary(self):
4884 r"""_get_as_binary(Cosine self) -> PyObject *"""
4885 return _IMP_core.Cosine__get_as_binary(self)
4887 def _set_from_binary(self, p):
4888 r"""_set_from_binary(Cosine self, PyObject * p)"""
4889 return _IMP_core.Cosine__set_from_binary(self, p)
4891 def __getstate__(self):
4892 p = self._get_as_binary()
4893 if len(self.__dict__) > 1:
4894 d = self.__dict__.copy()
4899 def __setstate__(self, p):
4900 if not hasattr(self,
'this'):
4902 if isinstance(p, tuple):
4904 self.__dict__.update(d)
4905 return self._set_from_binary(p)
4909 _IMP_core.Cosine_swigregister(Cosine)
4911 r"""Proxy of C++ IMP::core::CoverRefined class."""
4913 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4915 def __init__(self, ref, slack=0):
4916 r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4917 _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4919 def set_slack(self, slack):
4920 r"""set_slack(CoverRefined self, IMP::Float slack)"""
4921 return _IMP_core.CoverRefined_set_slack(self, slack)
4923 def do_get_inputs(self, m, pis):
4924 r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4925 return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4927 def do_get_outputs(self, m, pis):
4928 r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4929 return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4931 def get_version_info(self):
4932 r"""get_version_info(CoverRefined self) -> VersionInfo"""
4933 return _IMP_core.CoverRefined_get_version_info(self)
4934 __swig_destroy__ = _IMP_core.delete_CoverRefined
4937 r"""__str__(CoverRefined self) -> std::string"""
4938 return _IMP_core.CoverRefined___str__(self)
4941 r"""__repr__(CoverRefined self) -> std::string"""
4942 return _IMP_core.CoverRefined___repr__(self)
4946 return _object_cast_to_CoverRefined(o)
4950 _IMP_core.CoverRefined_swigregister(CoverRefined)
4952 r"""Proxy of C++ IMP::core::Cover class."""
4954 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4956 def get_constraint(self):
4957 r"""get_constraint(Cover self) -> Constraint"""
4958 return _IMP_core.Cover_get_constraint(self)
4960 def __init__(self, *args):
4962 __init__(Cover self) -> Cover
4963 __init__(Cover self, Model m, ParticleIndex id) -> Cover
4964 __init__(Cover self, _ParticleAdaptor d) -> Cover
4966 _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4968 def show(self, *args):
4969 r"""show(Cover self, _ostream out=std::cout)"""
4970 return _IMP_core.Cover_show(self, *args)
4973 def setup_particle(*args):
4975 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4976 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4977 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4978 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4980 return _IMP_core.Cover_setup_particle(*args)
4983 def get_is_setup(*args):
4985 get_is_setup(_ParticleAdaptor p) -> bool
4986 get_is_setup(Model m, ParticleIndex pi) -> bool
4988 return _IMP_core.Cover_get_is_setup(*args)
4990 def add_attribute(self, *args):
4992 add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4993 add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4994 add_attribute(Cover self, IntKey a0, IMP::Int a1)
4995 add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4996 add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4997 add_attribute(Cover self, StringKey a0, IMP::String a1)
4998 add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4999 add_attribute(Cover self, ObjectKey a0, Object a1)
5000 add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5001 add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5002 add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5003 add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5005 return _IMP_core.Cover_add_attribute(self, *args)
5007 def get_value(self, *args):
5009 get_value(Cover self, FloatKey a0) -> IMP::Float
5010 get_value(Cover self, IntKey a0) -> IMP::Int
5011 get_value(Cover self, FloatsKey a0) -> IMP::Floats
5012 get_value(Cover self, IntsKey a0) -> IMP::Ints
5013 get_value(Cover self, StringKey a0) -> IMP::String
5014 get_value(Cover self, ParticleIndexKey a0) -> Particle
5015 get_value(Cover self, ObjectKey a0) -> Object
5016 get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5017 get_value(Cover self, SparseIntKey a0) -> IMP::Int
5018 get_value(Cover self, SparseStringKey a0) -> IMP::String
5019 get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5021 return _IMP_core.Cover_get_value(self, *args)
5023 def set_value(self, *args):
5025 set_value(Cover self, FloatKey a0, IMP::Float a1)
5026 set_value(Cover self, IntKey a0, IMP::Int a1)
5027 set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5028 set_value(Cover self, IntsKey a0, IMP::Ints a1)
5029 set_value(Cover self, StringKey a0, IMP::String a1)
5030 set_value(Cover self, ParticleIndexKey a0, Particle a1)
5031 set_value(Cover self, ObjectKey a0, Object a1)
5032 set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5033 set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5034 set_value(Cover self, SparseStringKey a0, IMP::String a1)
5035 set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5037 return _IMP_core.Cover_set_value(self, *args)
5039 def remove_attribute(self, *args):
5041 remove_attribute(Cover self, FloatKey a0)
5042 remove_attribute(Cover self, IntKey a0)
5043 remove_attribute(Cover self, FloatsKey a0)
5044 remove_attribute(Cover self, IntsKey a0)
5045 remove_attribute(Cover self, StringKey a0)
5046 remove_attribute(Cover self, ParticleIndexKey a0)
5047 remove_attribute(Cover self, ObjectKey a0)
5048 remove_attribute(Cover self, SparseFloatKey a0)
5049 remove_attribute(Cover self, SparseIntKey a0)
5050 remove_attribute(Cover self, SparseStringKey a0)
5051 remove_attribute(Cover self, SparseParticleIndexKey a0)
5053 return _IMP_core.Cover_remove_attribute(self, *args)
5055 def has_attribute(self, *args):
5057 has_attribute(Cover self, FloatKey a0) -> bool
5058 has_attribute(Cover self, IntKey a0) -> bool
5059 has_attribute(Cover self, FloatsKey a0) -> bool
5060 has_attribute(Cover self, IntsKey a0) -> bool
5061 has_attribute(Cover self, StringKey a0) -> bool
5062 has_attribute(Cover self, ParticleIndexKey a0) -> bool
5063 has_attribute(Cover self, ObjectKey a0) -> bool
5064 has_attribute(Cover self, SparseFloatKey a0) -> bool
5065 has_attribute(Cover self, SparseIntKey a0) -> bool
5066 has_attribute(Cover self, SparseStringKey a0) -> bool
5067 has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5069 return _IMP_core.Cover_has_attribute(self, *args)
5071 def get_derivative(self, a0):
5072 r"""get_derivative(Cover self, FloatKey a0) -> double"""
5073 return _IMP_core.Cover_get_derivative(self, a0)
5076 r"""get_name(Cover self) -> std::string"""
5077 return _IMP_core.Cover_get_name(self)
5079 def clear_caches(self):
5080 r"""clear_caches(Cover self)"""
5081 return _IMP_core.Cover_clear_caches(self)
5083 def set_name(self, a0):
5084 r"""set_name(Cover self, std::string a0)"""
5085 return _IMP_core.Cover_set_name(self, a0)
5088 r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5089 return _IMP_core.Cover_set_check_level(self, a0)
5091 def add_to_derivative(self, a0, a1, a2):
5092 r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5093 return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5095 def set_is_optimized(self, a0, a1):
5096 r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5097 return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5099 def get_is_optimized(self, a0):
5100 r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5101 return _IMP_core.Cover_get_is_optimized(self, a0)
5104 r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5105 return _IMP_core.Cover_get_check_level(self)
5107 def __eq__(self, *args):
5109 __eq__(Cover self, Cover o) -> bool
5110 __eq__(Cover self, Particle d) -> bool
5112 return _IMP_core.Cover___eq__(self, *args)
5114 def __ne__(self, *args):
5116 __ne__(Cover self, Cover o) -> bool
5117 __ne__(Cover self, Particle d) -> bool
5119 return _IMP_core.Cover___ne__(self, *args)
5121 def __le__(self, *args):
5123 __le__(Cover self, Cover o) -> bool
5124 __le__(Cover self, Particle d) -> bool
5126 return _IMP_core.Cover___le__(self, *args)
5128 def __lt__(self, *args):
5130 __lt__(Cover self, Cover o) -> bool
5131 __lt__(Cover self, Particle d) -> bool
5133 return _IMP_core.Cover___lt__(self, *args)
5135 def __ge__(self, *args):
5137 __ge__(Cover self, Cover o) -> bool
5138 __ge__(Cover self, Particle d) -> bool
5140 return _IMP_core.Cover___ge__(self, *args)
5142 def __gt__(self, *args):
5144 __gt__(Cover self, Cover o) -> bool
5145 __gt__(Cover self, Particle d) -> bool
5147 return _IMP_core.Cover___gt__(self, *args)
5150 r"""__hash__(Cover self) -> std::size_t"""
5151 return _IMP_core.Cover___hash__(self)
5154 r"""__str__(Cover self) -> std::string"""
5155 return _IMP_core.Cover___str__(self)
5158 r"""__repr__(Cover self) -> std::string"""
5159 return _IMP_core.Cover___repr__(self)
5161 def _get_as_binary(self):
5162 r"""_get_as_binary(Cover self) -> PyObject *"""
5163 return _IMP_core.Cover__get_as_binary(self)
5165 def _set_from_binary(self, p):
5166 r"""_set_from_binary(Cover self, PyObject * p)"""
5167 return _IMP_core.Cover__set_from_binary(self, p)
5169 def __getstate__(self):
5170 p = self._get_as_binary()
5171 if len(self.__dict__) > 1:
5172 d = self.__dict__.copy()
5177 def __setstate__(self, p):
5178 if not hasattr(self,
'this'):
5180 if isinstance(p, tuple):
5182 self.__dict__.update(d)
5183 return self._set_from_binary(p)
5185 __swig_destroy__ = _IMP_core.delete_Cover
5188 _IMP_core.Cover_swigregister(Cover)
5190 r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5194 def __init__(self, *args):
5195 r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5196 _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5198 def do_get_inputs(self, m, pis):
5199 r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5200 return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5202 def do_get_outputs(self, m, pis):
5203 r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5204 return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5206 def get_version_info(self):
5207 r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5208 return _IMP_core.DerivativesFromRefined_get_version_info(self)
5209 __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5212 r"""__str__(DerivativesFromRefined self) -> std::string"""
5213 return _IMP_core.DerivativesFromRefined___str__(self)
5216 r"""__repr__(DerivativesFromRefined self) -> std::string"""
5217 return _IMP_core.DerivativesFromRefined___repr__(self)
5221 return _object_cast_to_DerivativesFromRefined(o)
5225 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5227 r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5229 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5231 def __init__(self, *args):
5232 r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5233 _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5235 def do_get_inputs(self, m, pis):
5236 r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5237 return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5239 def do_get_outputs(self, m, pis):
5240 r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5241 return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5243 def get_version_info(self):
5244 r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5245 return _IMP_core.DerivativesToRefined_get_version_info(self)
5246 __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5249 r"""__str__(DerivativesToRefined self) -> std::string"""
5250 return _IMP_core.DerivativesToRefined___str__(self)
5253 r"""__repr__(DerivativesToRefined self) -> std::string"""
5254 return _IMP_core.DerivativesToRefined___repr__(self)
5258 return _object_cast_to_DerivativesToRefined(o)
5262 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5264 r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5266 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5268 def __init__(self, f, sc, diameter):
5269 r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5270 _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5272 def do_get_inputs(self):
5273 r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5274 return _IMP_core.DiameterRestraint_do_get_inputs(self)
5276 def get_version_info(self):
5277 r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5278 return _IMP_core.DiameterRestraint_get_version_info(self)
5279 __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5281 def do_create_decomposition(self):
5282 r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5283 return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5285 def do_create_current_decomposition(self):
5286 r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5287 return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5290 r"""__str__(DiameterRestraint self) -> std::string"""
5291 return _IMP_core.DiameterRestraint___str__(self)
5294 r"""__repr__(DiameterRestraint self) -> std::string"""
5295 return _IMP_core.DiameterRestraint___repr__(self)
5299 return _object_cast_to_DiameterRestraint(o)
5303 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5305 r"""Proxy of C++ IMP::core::Transform class."""
5307 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5309 def __init__(self, *args):
5311 __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5312 __init__(Transform self) -> Transform
5314 _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5316 def do_get_inputs(self, m, pis):
5317 r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5318 return _IMP_core.Transform_do_get_inputs(self, m, pis)
5320 def do_get_outputs(self, m, pis):
5321 r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5322 return _IMP_core.Transform_do_get_outputs(self, m, pis)
5324 def get_version_info(self):
5325 r"""get_version_info(Transform self) -> VersionInfo"""
5326 return _IMP_core.Transform_get_version_info(self)
5327 __swig_destroy__ = _IMP_core.delete_Transform
5330 r"""__str__(Transform self) -> std::string"""
5331 return _IMP_core.Transform___str__(self)
5334 r"""__repr__(Transform self) -> std::string"""
5335 return _IMP_core.Transform___repr__(self)
5339 return _object_cast_to_Transform(o)
5342 def _get_as_binary(self):
5343 r"""_get_as_binary(Transform self) -> PyObject *"""
5344 return _IMP_core.Transform__get_as_binary(self)
5346 def _set_from_binary(self, p):
5347 r"""_set_from_binary(Transform self, PyObject * p)"""
5348 return _IMP_core.Transform__set_from_binary(self, p)
5350 def __getstate__(self):
5351 p = self._get_as_binary()
5352 if len(self.__dict__) > 1:
5353 d = self.__dict__.copy()
5358 def __setstate__(self, p):
5359 if not hasattr(self,
'this'):
5361 if isinstance(p, tuple):
5363 self.__dict__.update(d)
5364 return self._set_from_binary(p)
5368 _IMP_core.Transform_swigregister(Transform)
5370 r"""Proxy of C++ IMP::core::Reference class."""
5372 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5374 def __init__(self, *args):
5376 __init__(Reference self) -> Reference
5377 __init__(Reference self, Model m, ParticleIndex id) -> Reference
5378 __init__(Reference self, _ParticleAdaptor d) -> Reference
5380 _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5382 def show(self, *args):
5383 r"""show(Reference self, _ostream out=std::cout)"""
5384 return _IMP_core.Reference_show(self, *args)
5387 def setup_particle(*args):
5389 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5390 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5392 return _IMP_core.Reference_setup_particle(*args)
5394 def get_reference_particle(self):
5395 r"""get_reference_particle(Reference self) -> Particle"""
5396 return _IMP_core.Reference_get_reference_particle(self)
5399 def get_is_setup(*args):
5401 get_is_setup(_ParticleAdaptor p) -> bool
5402 get_is_setup(Model m, ParticleIndex pi) -> bool
5404 return _IMP_core.Reference_get_is_setup(*args)
5407 def get_reference_key():
5408 r"""get_reference_key() -> ParticleIndexKey"""
5409 return _IMP_core.Reference_get_reference_key()
5411 def add_attribute(self, *args):
5413 add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5414 add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5415 add_attribute(Reference self, IntKey a0, IMP::Int a1)
5416 add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5417 add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5418 add_attribute(Reference self, StringKey a0, IMP::String a1)
5419 add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5420 add_attribute(Reference self, ObjectKey a0, Object a1)
5421 add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5422 add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5423 add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5424 add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5426 return _IMP_core.Reference_add_attribute(self, *args)
5428 def get_value(self, *args):
5430 get_value(Reference self, FloatKey a0) -> IMP::Float
5431 get_value(Reference self, IntKey a0) -> IMP::Int
5432 get_value(Reference self, FloatsKey a0) -> IMP::Floats
5433 get_value(Reference self, IntsKey a0) -> IMP::Ints
5434 get_value(Reference self, StringKey a0) -> IMP::String
5435 get_value(Reference self, ParticleIndexKey a0) -> Particle
5436 get_value(Reference self, ObjectKey a0) -> Object
5437 get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5438 get_value(Reference self, SparseIntKey a0) -> IMP::Int
5439 get_value(Reference self, SparseStringKey a0) -> IMP::String
5440 get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5442 return _IMP_core.Reference_get_value(self, *args)
5444 def set_value(self, *args):
5446 set_value(Reference self, FloatKey a0, IMP::Float a1)
5447 set_value(Reference self, IntKey a0, IMP::Int a1)
5448 set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5449 set_value(Reference self, IntsKey a0, IMP::Ints a1)
5450 set_value(Reference self, StringKey a0, IMP::String a1)
5451 set_value(Reference self, ParticleIndexKey a0, Particle a1)
5452 set_value(Reference self, ObjectKey a0, Object a1)
5453 set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5454 set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5455 set_value(Reference self, SparseStringKey a0, IMP::String a1)
5456 set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5458 return _IMP_core.Reference_set_value(self, *args)
5460 def remove_attribute(self, *args):
5462 remove_attribute(Reference self, FloatKey a0)
5463 remove_attribute(Reference self, IntKey a0)
5464 remove_attribute(Reference self, FloatsKey a0)
5465 remove_attribute(Reference self, IntsKey a0)
5466 remove_attribute(Reference self, StringKey a0)
5467 remove_attribute(Reference self, ParticleIndexKey a0)
5468 remove_attribute(Reference self, ObjectKey a0)
5469 remove_attribute(Reference self, SparseFloatKey a0)
5470 remove_attribute(Reference self, SparseIntKey a0)
5471 remove_attribute(Reference self, SparseStringKey a0)
5472 remove_attribute(Reference self, SparseParticleIndexKey a0)
5474 return _IMP_core.Reference_remove_attribute(self, *args)
5476 def has_attribute(self, *args):
5478 has_attribute(Reference self, FloatKey a0) -> bool
5479 has_attribute(Reference self, IntKey a0) -> bool
5480 has_attribute(Reference self, FloatsKey a0) -> bool
5481 has_attribute(Reference self, IntsKey a0) -> bool
5482 has_attribute(Reference self, StringKey a0) -> bool
5483 has_attribute(Reference self, ParticleIndexKey a0) -> bool
5484 has_attribute(Reference self, ObjectKey a0) -> bool
5485 has_attribute(Reference self, SparseFloatKey a0) -> bool
5486 has_attribute(Reference self, SparseIntKey a0) -> bool
5487 has_attribute(Reference self, SparseStringKey a0) -> bool
5488 has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5490 return _IMP_core.Reference_has_attribute(self, *args)
5492 def get_derivative(self, a0):
5493 r"""get_derivative(Reference self, FloatKey a0) -> double"""
5494 return _IMP_core.Reference_get_derivative(self, a0)
5497 r"""get_name(Reference self) -> std::string"""
5498 return _IMP_core.Reference_get_name(self)
5500 def clear_caches(self):
5501 r"""clear_caches(Reference self)"""
5502 return _IMP_core.Reference_clear_caches(self)
5504 def set_name(self, a0):
5505 r"""set_name(Reference self, std::string a0)"""
5506 return _IMP_core.Reference_set_name(self, a0)
5509 r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5510 return _IMP_core.Reference_set_check_level(self, a0)
5512 def add_to_derivative(self, a0, a1, a2):
5513 r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5514 return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5516 def set_is_optimized(self, a0, a1):
5517 r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5518 return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5520 def get_is_optimized(self, a0):
5521 r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5522 return _IMP_core.Reference_get_is_optimized(self, a0)
5525 r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5526 return _IMP_core.Reference_get_check_level(self)
5528 def __eq__(self, *args):
5530 __eq__(Reference self, Reference o) -> bool
5531 __eq__(Reference self, Particle d) -> bool
5533 return _IMP_core.Reference___eq__(self, *args)
5535 def __ne__(self, *args):
5537 __ne__(Reference self, Reference o) -> bool
5538 __ne__(Reference self, Particle d) -> bool
5540 return _IMP_core.Reference___ne__(self, *args)
5542 def __le__(self, *args):
5544 __le__(Reference self, Reference o) -> bool
5545 __le__(Reference self, Particle d) -> bool
5547 return _IMP_core.Reference___le__(self, *args)
5549 def __lt__(self, *args):
5551 __lt__(Reference self, Reference o) -> bool
5552 __lt__(Reference self, Particle d) -> bool
5554 return _IMP_core.Reference___lt__(self, *args)
5556 def __ge__(self, *args):
5558 __ge__(Reference self, Reference o) -> bool
5559 __ge__(Reference self, Particle d) -> bool
5561 return _IMP_core.Reference___ge__(self, *args)
5563 def __gt__(self, *args):
5565 __gt__(Reference self, Reference o) -> bool
5566 __gt__(Reference self, Particle d) -> bool
5568 return _IMP_core.Reference___gt__(self, *args)
5571 r"""__hash__(Reference self) -> std::size_t"""
5572 return _IMP_core.Reference___hash__(self)
5575 r"""__str__(Reference self) -> std::string"""
5576 return _IMP_core.Reference___str__(self)
5579 r"""__repr__(Reference self) -> std::string"""
5580 return _IMP_core.Reference___repr__(self)
5582 def _get_as_binary(self):
5583 r"""_get_as_binary(Reference self) -> PyObject *"""
5584 return _IMP_core.Reference__get_as_binary(self)
5586 def _set_from_binary(self, p):
5587 r"""_set_from_binary(Reference self, PyObject * p)"""
5588 return _IMP_core.Reference__set_from_binary(self, p)
5590 def __getstate__(self):
5591 p = self._get_as_binary()
5592 if len(self.__dict__) > 1:
5593 d = self.__dict__.copy()
5598 def __setstate__(self, p):
5599 if not hasattr(self,
'this'):
5601 if isinstance(p, tuple):
5603 self.__dict__.update(d)
5604 return self._set_from_binary(p)
5606 __swig_destroy__ = _IMP_core.delete_Reference
5609 _IMP_core.Reference_swigregister(Reference)
5611 r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5613 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5615 def __init__(self, t, r):
5616 r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5617 _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5619 def do_get_inputs(self, m, pis):
5620 r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5621 return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5623 def do_get_outputs(self, m, pis):
5624 r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5625 return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5627 def get_version_info(self):
5628 r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5629 return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5630 __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5633 r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5634 return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5637 r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5638 return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5642 return _object_cast_to_TransformationAndReflectionSymmetry(o)
5646 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5648 r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5650 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5652 def __init__(self, *args):
5654 __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5655 __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5657 _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5659 def get_transformation(self):
5660 r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5661 return _IMP_core.TransformationSymmetry_get_transformation(self)
5663 def set_transformation(self, t):
5664 r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5665 return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5667 def do_get_inputs(self, m, pis):
5668 r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5669 return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5671 def do_get_outputs(self, m, pis):
5672 r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5673 return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5675 def get_version_info(self):
5676 r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5677 return _IMP_core.TransformationSymmetry_get_version_info(self)
5678 __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5681 r"""__str__(TransformationSymmetry self) -> std::string"""
5682 return _IMP_core.TransformationSymmetry___str__(self)
5685 r"""__repr__(TransformationSymmetry self) -> std::string"""
5686 return _IMP_core.TransformationSymmetry___repr__(self)
5690 return _object_cast_to_TransformationSymmetry(o)
5694 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5695 class TransformationSymmetryMover(MonteCarloMover):
5696 r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5698 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5700 def __init__(self, m, symm, pivot, max_translation, max_rotation):
5701 r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5702 _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5704 def set_maximum_translation(self, mt):
5705 r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5706 return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5708 def set_maximum_rotation(self, mr):
5709 r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5710 return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5712 def get_maximum_translation(self):
5713 r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5714 return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5716 def get_maximum_rotation(self):
5717 r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5718 return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5720 def get_version_info(self):
5721 r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5722 return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5723 __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5726 r"""__str__(TransformationSymmetryMover self) -> std::string"""
5727 return _IMP_core.TransformationSymmetryMover___str__(self)
5730 r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5731 return _IMP_core.TransformationSymmetryMover___repr__(self)
5735 return _object_cast_to_TransformationSymmetryMover(o)
5739 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5741 r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5743 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5745 def __init__(self, m, score_func, p1, p2, p3, p4):
5746 r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5747 _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5749 def do_get_inputs(self):
5750 r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5751 return _IMP_core.DihedralRestraint_do_get_inputs(self)
5753 def get_version_info(self):
5754 r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5755 return _IMP_core.DihedralRestraint_get_version_info(self)
5756 __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5759 r"""__str__(DihedralRestraint self) -> std::string"""
5760 return _IMP_core.DihedralRestraint___str__(self)
5763 r"""__repr__(DihedralRestraint self) -> std::string"""
5764 return _IMP_core.DihedralRestraint___repr__(self)
5768 return _object_cast_to_DihedralRestraint(o)
5772 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5774 r"""Proxy of C++ IMP::core::DistancePairScore class."""
5776 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5778 def __init__(self, *args):
5780 __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5781 __init__(DistancePairScore self) -> DistancePairScore
5783 _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5785 def do_get_inputs(self, m, pis):
5786 r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5787 return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5789 def get_version_info(self):
5790 r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5791 return _IMP_core.DistancePairScore_get_version_info(self)
5792 __swig_destroy__ = _IMP_core.delete_DistancePairScore
5795 r"""__str__(DistancePairScore self) -> std::string"""
5796 return _IMP_core.DistancePairScore___str__(self)
5799 r"""__repr__(DistancePairScore self) -> std::string"""
5800 return _IMP_core.DistancePairScore___repr__(self)
5804 return _object_cast_to_DistancePairScore(o)
5807 def _get_as_binary(self):
5808 r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5809 return _IMP_core.DistancePairScore__get_as_binary(self)
5811 def _set_from_binary(self, p):
5812 r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5813 return _IMP_core.DistancePairScore__set_from_binary(self, p)
5815 def __getstate__(self):
5816 p = self._get_as_binary()
5817 if len(self.__dict__) > 1:
5818 d = self.__dict__.copy()
5823 def __setstate__(self, p):
5824 if not hasattr(self,
'this'):
5826 if isinstance(p, tuple):
5828 self.__dict__.update(d)
5829 return self._set_from_binary(p)
5833 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5835 r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5837 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5839 def __init__(self, *args):
5841 __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5842 __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5844 _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5846 def do_get_inputs(self, m, pis):
5847 r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5848 return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5851 r"""get_x0(HarmonicDistancePairScore self) -> double"""
5852 return _IMP_core.HarmonicDistancePairScore_get_x0(self)
5855 r"""get_k(HarmonicDistancePairScore self) -> double"""
5856 return _IMP_core.HarmonicDistancePairScore_get_k(self)
5858 def get_version_info(self):
5859 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5860 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5861 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5864 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5865 return _IMP_core.HarmonicDistancePairScore___str__(self)
5868 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5869 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5873 return _object_cast_to_HarmonicDistancePairScore(o)
5876 def _get_as_binary(self):
5877 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5878 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5880 def _set_from_binary(self, p):
5881 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5882 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5884 def __getstate__(self):
5885 p = self._get_as_binary()
5886 if len(self.__dict__) > 1:
5887 d = self.__dict__.copy()
5892 def __setstate__(self, p):
5893 if not hasattr(self,
'this'):
5895 if isinstance(p, tuple):
5897 self.__dict__.update(d)
5898 return self._set_from_binary(p)
5902 import jax.numpy
as jnp
5904 from IMP._jax_util
import JaxInfo
5905 def jax_harmonic_distance_pair_score(X, indexes, d, k):
5906 xyzs = X[
'xyz'][indexes]
5907 diff = xyzs[:,0] - xyzs[:,1]
5908 drs = jnp.linalg.norm(diff, axis=1)
5909 return 0.5 * k * (d - drs)**2
5910 f = functools.partial(jax_harmonic_distance_pair_score,
5911 d=self.get_x0(), k=self.get_k())
5912 return JaxInfo(m=
None, score_func=f, weight=1.0)
5916 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5918 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5920 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5922 def __init__(self, *args):
5924 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5925 __init__(DistanceRestraint self) -> DistanceRestraint
5927 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5929 def get_version_info(self):
5930 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5931 return _IMP_core.DistanceRestraint_get_version_info(self)
5932 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5935 r"""__str__(DistanceRestraint self) -> std::string"""
5936 return _IMP_core.DistanceRestraint___str__(self)
5939 r"""__repr__(DistanceRestraint self) -> std::string"""
5940 return _IMP_core.DistanceRestraint___repr__(self)
5944 return _object_cast_to_DistanceRestraint(o)
5947 def _get_as_binary(self):
5948 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5949 return _IMP_core.DistanceRestraint__get_as_binary(self)
5951 def _set_from_binary(self, p):
5952 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5953 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5955 def __getstate__(self):
5956 p = self._get_as_binary()
5957 if len(self.__dict__) > 1:
5958 d = self.__dict__.copy()
5963 def __setstate__(self, p):
5964 if not hasattr(self,
'this'):
5966 if isinstance(p, tuple):
5968 self.__dict__.update(d)
5969 return self._set_from_binary(p)
5973 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5975 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5977 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5979 def __init__(self, f, pt):
5980 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5981 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5983 def do_get_inputs(self, m, pis):
5984 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5985 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5987 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5988 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"""
5989 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5991 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5992 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"""
5993 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5995 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5996 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"""
5997 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5999 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6000 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"""
6001 return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6003 def get_version_info(self):
6004 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
6005 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6006 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6009 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6010 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6013 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6014 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6018 return _object_cast_to_SphereDistanceToSingletonScore(o)
6022 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6024 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6026 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6028 def __init__(self, *args):
6029 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6030 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6032 def do_get_inputs(self):
6033 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6034 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6036 def get_version_info(self):
6037 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6038 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6039 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6041 def do_create_decomposition(self):
6042 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6043 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6045 def do_create_current_decomposition(self):
6046 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6047 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6050 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6051 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6052 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)
6053 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6054 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6055 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
6057 def remove_pair_filter(self, d):
6058 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6059 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6061 def _python_index_pair_filter(self, d, start, stop):
6062 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6063 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6065 def remove_pair_filters(self, d):
6066 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6067 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6069 def set_pair_filters(self, ps):
6070 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6071 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6073 def set_pair_filters_order(self, objs):
6074 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6075 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6077 def add_pair_filter(self, obj):
6078 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6079 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6081 def add_pair_filters(self, objs):
6082 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6083 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6085 def clear_pair_filters(self):
6086 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6087 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6089 def get_number_of_pair_filters(self):
6090 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6091 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6093 def get_has_pair_filters(self):
6094 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6095 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6097 def get_pair_filter(self, i):
6098 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6099 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6101 def get_pair_filters(self):
6102 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6103 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6105 def erase_pair_filter(self, i):
6106 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6107 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6109 def reserve_pair_filters(self, sz):
6110 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6111 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6114 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6115 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6118 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6119 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6123 return _object_cast_to_ExcludedVolumeRestraint(o)
6127 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6129 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6131 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6133 def __init__(self, *args):
6135 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6136 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6138 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6140 def do_get_inputs(self, m, pis):
6141 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6142 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6144 def get_version_info(self):
6145 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6146 return _IMP_core.FixedRefiner_get_version_info(self)
6147 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6150 r"""__str__(FixedRefiner self) -> std::string"""
6151 return _IMP_core.FixedRefiner___str__(self)
6154 r"""__repr__(FixedRefiner self) -> std::string"""
6155 return _IMP_core.FixedRefiner___repr__(self)
6159 return _object_cast_to_FixedRefiner(o)
6163 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6164 class GridClosePairsFinder(ClosePairsFinder):
6165 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6167 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6170 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6171 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6173 def get_close_pairs(self, *args):
6175 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6176 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6177 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6178 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6180 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6182 def do_get_inputs(self, m, pis):
6183 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6184 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6186 def get_version_info(self):
6187 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6188 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6189 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6192 r"""__str__(GridClosePairsFinder self) -> std::string"""
6193 return _IMP_core.GridClosePairsFinder___str__(self)
6196 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6197 return _IMP_core.GridClosePairsFinder___repr__(self)
6201 return _object_cast_to_GridClosePairsFinder(o)
6204 def _get_as_binary(self):
6205 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6206 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6208 def _set_from_binary(self, p):
6209 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6210 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6212 def __getstate__(self):
6213 p = self._get_as_binary()
6214 if len(self.__dict__) > 1:
6215 d = self.__dict__.copy()
6220 def __setstate__(self, p):
6221 if not hasattr(self,
'this'):
6223 if isinstance(p, tuple):
6225 self.__dict__.update(d)
6226 return self._set_from_binary(p)
6230 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6232 r"""Proxy of C++ IMP::core::Harmonic class."""
6234 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6236 def __init__(self, *args):
6238 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6239 __init__(Harmonic self) -> Harmonic
6241 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6243 def get_version_info(self):
6244 r"""get_version_info(Harmonic self) -> VersionInfo"""
6245 return _IMP_core.Harmonic_get_version_info(self)
6246 __swig_destroy__ = _IMP_core.delete_Harmonic
6249 r"""get_mean(Harmonic self) -> IMP::Float"""
6250 return _IMP_core.Harmonic_get_mean(self)
6253 r"""get_k(Harmonic self) -> IMP::Float"""
6254 return _IMP_core.Harmonic_get_k(self)
6256 def set_mean(self, mean):
6257 r"""set_mean(Harmonic self, IMP::Float mean)"""
6258 return _IMP_core.Harmonic_set_mean(self, mean)
6261 r"""set_k(Harmonic self, IMP::Float k)"""
6262 return _IMP_core.Harmonic_set_k(self, k)
6265 def get_k_from_standard_deviation(sd, t=297.15):
6266 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6267 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6270 r"""__str__(Harmonic self) -> std::string"""
6271 return _IMP_core.Harmonic___str__(self)
6274 r"""__repr__(Harmonic self) -> std::string"""
6275 return _IMP_core.Harmonic___repr__(self)
6279 return _object_cast_to_Harmonic(o)
6282 def _get_as_binary(self):
6283 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6284 return _IMP_core.Harmonic__get_as_binary(self)
6286 def _set_from_binary(self, p):
6287 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6288 return _IMP_core.Harmonic__set_from_binary(self, p)
6290 def __getstate__(self):
6291 p = self._get_as_binary()
6292 if len(self.__dict__) > 1:
6293 d = self.__dict__.copy()
6298 def __setstate__(self, p):
6299 if not hasattr(self,
'this'):
6301 if isinstance(p, tuple):
6303 self.__dict__.update(d)
6304 return self._set_from_binary(p)
6308 _IMP_core.Harmonic_swigregister(Harmonic)
6310 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6312 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6314 def __init__(self, well, k):
6315 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6316 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6318 def get_version_info(self):
6319 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6320 return _IMP_core.HarmonicWell_get_version_info(self)
6321 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6324 r"""__str__(HarmonicWell self) -> std::string"""
6325 return _IMP_core.HarmonicWell___str__(self)
6328 r"""__repr__(HarmonicWell self) -> std::string"""
6329 return _IMP_core.HarmonicWell___repr__(self)
6333 return _object_cast_to_HarmonicWell(o)
6337 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6338 class HarmonicLowerBound(Harmonic):
6339 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6341 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6343 def __init__(self, *args):
6345 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6346 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6348 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6349 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6352 r"""__str__(HarmonicLowerBound self) -> std::string"""
6353 return _IMP_core.HarmonicLowerBound___str__(self)
6356 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6357 return _IMP_core.HarmonicLowerBound___repr__(self)
6361 return _object_cast_to_HarmonicLowerBound(o)
6364 def _get_as_binary(self):
6365 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6366 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6368 def _set_from_binary(self, p):
6369 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6370 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6372 def __getstate__(self):
6373 p = self._get_as_binary()
6374 if len(self.__dict__) > 1:
6375 d = self.__dict__.copy()
6380 def __setstate__(self, p):
6381 if not hasattr(self,
'this'):
6383 if isinstance(p, tuple):
6385 self.__dict__.update(d)
6386 return self._set_from_binary(p)
6390 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6391 class HarmonicUpperBound(Harmonic):
6392 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6394 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6396 def __init__(self, *args):
6398 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6399 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6401 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6402 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6405 r"""__str__(HarmonicUpperBound self) -> std::string"""
6406 return _IMP_core.HarmonicUpperBound___str__(self)
6409 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6410 return _IMP_core.HarmonicUpperBound___repr__(self)
6414 return _object_cast_to_HarmonicUpperBound(o)
6417 def _get_as_binary(self):
6418 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6419 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6421 def _set_from_binary(self, p):
6422 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6423 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6425 def __getstate__(self):
6426 p = self._get_as_binary()
6427 if len(self.__dict__) > 1:
6428 d = self.__dict__.copy()
6433 def __setstate__(self, p):
6434 if not hasattr(self,
'this'):
6436 if isinstance(p, tuple):
6438 self.__dict__.update(d)
6439 return self._set_from_binary(p)
6443 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6445 r"""Proxy of C++ IMP::core::WeightedSum class."""
6447 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6449 def __init__(self, funcs, weights):
6450 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6451 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6453 def get_function_number(self):
6454 r"""get_function_number(WeightedSum self) -> unsigned int"""
6455 return _IMP_core.WeightedSum_get_function_number(self)
6457 def set_weights(self, weights):
6458 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6459 return _IMP_core.WeightedSum_set_weights(self, weights)
6461 def get_weights(self):
6462 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6463 return _IMP_core.WeightedSum_get_weights(self)
6465 def get_weight(self, i):
6466 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6467 return _IMP_core.WeightedSum_get_weight(self, i)
6469 def get_function(self, i):
6470 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6471 return _IMP_core.WeightedSum_get_function(self, i)
6473 def get_version_info(self):
6474 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6475 return _IMP_core.WeightedSum_get_version_info(self)
6476 __swig_destroy__ = _IMP_core.delete_WeightedSum
6479 r"""__str__(WeightedSum self) -> std::string"""
6480 return _IMP_core.WeightedSum___str__(self)
6483 r"""__repr__(WeightedSum self) -> std::string"""
6484 return _IMP_core.WeightedSum___repr__(self)
6488 return _object_cast_to_WeightedSum(o)
6492 _IMP_core.WeightedSum_swigregister(WeightedSum)
6494 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6496 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6498 def __init__(self, funcs, weights, denom=1.0):
6499 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6500 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6502 def get_function_number(self):
6503 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6504 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6506 def set_weights(self, weights):
6507 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6508 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6510 def get_weights(self):
6511 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6512 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6514 def get_weight(self, i):
6515 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6516 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6518 def get_function(self, i):
6519 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6520 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6522 def set_denominator(self, denom):
6523 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6524 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6526 def get_denominator(self):
6527 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6528 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6530 def get_version_info(self):
6531 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6532 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6533 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6536 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6537 return _IMP_core.WeightedSumOfExponential___str__(self)
6540 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6541 return _IMP_core.WeightedSumOfExponential___repr__(self)
6545 return _object_cast_to_WeightedSumOfExponential(o)
6549 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6551 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6553 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6555 def __init__(self, m, ps, eps=0.1):
6556 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6557 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6559 def add_type(self, ps):
6560 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6561 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6563 def add_composite(self, *args):
6565 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6566 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6568 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6570 def get_connected_pairs(self):
6571 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6572 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6574 def get_pair_score(self):
6575 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6576 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6578 def do_create_current_decomposition(self):
6579 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6580 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6582 def do_get_inputs(self):
6583 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6584 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6586 def get_version_info(self):
6587 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6588 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6589 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6592 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6593 return _IMP_core.MSConnectivityRestraint___str__(self)
6596 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6597 return _IMP_core.MSConnectivityRestraint___repr__(self)
6601 return _object_cast_to_MSConnectivityRestraint(o)
6605 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6606 class HierarchyTraits(object):
6607 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6609 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6611 def __init__(self, *args):
6613 __init__(HierarchyTraits self) -> HierarchyTraits
6614 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6616 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6618 def get_children_key(self):
6619 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6620 return _IMP_core.HierarchyTraits_get_children_key(self)
6622 def get_parent_key(self):
6623 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6624 return _IMP_core.HierarchyTraits_get_parent_key(self)
6626 def __eq__(self, o):
6627 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6628 return _IMP_core.HierarchyTraits___eq__(self, o)
6630 def show(self, *args):
6631 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6632 return _IMP_core.HierarchyTraits_show(self, *args)
6635 r"""__str__(HierarchyTraits self) -> std::string"""
6636 return _IMP_core.HierarchyTraits___str__(self)
6639 r"""__repr__(HierarchyTraits self) -> std::string"""
6640 return _IMP_core.HierarchyTraits___repr__(self)
6641 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6644 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6646 r"""Proxy of C++ IMP::core::Hierarchy class."""
6648 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6650 def get_decorator_traits(self):
6651 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6652 return _IMP_core.Hierarchy_get_decorator_traits(self)
6655 def get_default_decorator_traits():
6656 r"""get_default_decorator_traits() -> HierarchyTraits"""
6657 return _IMP_core.Hierarchy_get_default_decorator_traits()
6659 def __init__(self, *args):
6661 __init__(Hierarchy self) -> Hierarchy
6662 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6663 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6665 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6667 def show(self, *args):
6668 r"""show(Hierarchy self, _ostream out=std::cout)"""
6669 return _IMP_core.Hierarchy_show(self, *args)
6672 def setup_particle(*args):
6674 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6675 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6676 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6677 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6678 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6679 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6681 return _IMP_core.Hierarchy_setup_particle(*args)
6684 def get_is_setup(*args):
6686 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6687 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6689 return _IMP_core.Hierarchy_get_is_setup(*args)
6692 def get_changed_key():
6693 r"""get_changed_key() -> TriggerKey"""
6694 return _IMP_core.Hierarchy_get_changed_key()
6696 def get_parent(self):
6697 r"""get_parent(Hierarchy self) -> Hierarchy"""
6698 return _IMP_core.Hierarchy_get_parent(self)
6700 def get_number_of_children(self):
6701 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6702 return _IMP_core.Hierarchy_get_number_of_children(self)
6704 def get_child(self, i):
6705 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6706 return _IMP_core.Hierarchy_get_child(self, i)
6708 def get_children_indexes(self):
6709 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6710 return _IMP_core.Hierarchy_get_children_indexes(self)
6712 def get_children(self):
6713 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6714 return _IMP_core.Hierarchy_get_children(self)
6716 def remove_child(self, *args):
6718 remove_child(Hierarchy self, unsigned int i)
6719 remove_child(Hierarchy self, Hierarchy h)
6721 return _IMP_core.Hierarchy_remove_child(self, *args)
6723 def clear_children(self):
6724 r"""clear_children(Hierarchy self)"""
6725 return _IMP_core.Hierarchy_clear_children(self)
6727 def add_child(self, h):
6728 r"""add_child(Hierarchy self, Hierarchy h)"""
6729 return _IMP_core.Hierarchy_add_child(self, h)
6731 def add_child_at(self, h, pos):
6732 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6733 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6735 def get_child_index(self, *args):
6737 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6738 get_child_index(Hierarchy self) -> int
6740 return _IMP_core.Hierarchy_get_child_index(self, *args)
6743 def get_default_traits():
6744 r"""get_default_traits() -> HierarchyTraits"""
6745 return _IMP_core.Hierarchy_get_default_traits()
6747 def get_traits(self):
6748 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6749 return _IMP_core.Hierarchy_get_traits(self)
6751 def add_attribute(self, *args):
6753 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6754 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6755 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6756 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6757 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6758 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6759 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6760 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6761 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6762 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6763 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6764 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6766 return _IMP_core.Hierarchy_add_attribute(self, *args)
6768 def get_value(self, *args):
6770 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6771 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6772 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6773 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6774 get_value(Hierarchy self, StringKey a0) -> IMP::String
6775 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6776 get_value(Hierarchy self, ObjectKey a0) -> Object
6777 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6778 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6779 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6780 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6782 return _IMP_core.Hierarchy_get_value(self, *args)
6784 def set_value(self, *args):
6786 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6787 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6788 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6789 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6790 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6791 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6792 set_value(Hierarchy self, ObjectKey a0, Object a1)
6793 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6794 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6795 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6796 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6798 return _IMP_core.Hierarchy_set_value(self, *args)
6800 def remove_attribute(self, *args):
6802 remove_attribute(Hierarchy self, FloatKey a0)
6803 remove_attribute(Hierarchy self, IntKey a0)
6804 remove_attribute(Hierarchy self, FloatsKey a0)
6805 remove_attribute(Hierarchy self, IntsKey a0)
6806 remove_attribute(Hierarchy self, StringKey a0)
6807 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6808 remove_attribute(Hierarchy self, ObjectKey a0)
6809 remove_attribute(Hierarchy self, SparseFloatKey a0)
6810 remove_attribute(Hierarchy self, SparseIntKey a0)
6811 remove_attribute(Hierarchy self, SparseStringKey a0)
6812 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6814 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6816 def has_attribute(self, *args):
6818 has_attribute(Hierarchy self, FloatKey a0) -> bool
6819 has_attribute(Hierarchy self, IntKey a0) -> bool
6820 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6821 has_attribute(Hierarchy self, IntsKey a0) -> bool
6822 has_attribute(Hierarchy self, StringKey a0) -> bool
6823 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6824 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6825 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6826 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6827 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6828 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6830 return _IMP_core.Hierarchy_has_attribute(self, *args)
6832 def get_derivative(self, a0):
6833 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6834 return _IMP_core.Hierarchy_get_derivative(self, a0)
6837 r"""get_name(Hierarchy self) -> std::string"""
6838 return _IMP_core.Hierarchy_get_name(self)
6840 def clear_caches(self):
6841 r"""clear_caches(Hierarchy self)"""
6842 return _IMP_core.Hierarchy_clear_caches(self)
6844 def set_name(self, a0):
6845 r"""set_name(Hierarchy self, std::string a0)"""
6846 return _IMP_core.Hierarchy_set_name(self, a0)
6849 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6850 return _IMP_core.Hierarchy_set_check_level(self, a0)
6852 def add_to_derivative(self, a0, a1, a2):
6853 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6854 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6856 def set_is_optimized(self, a0, a1):
6857 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6858 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6860 def get_is_optimized(self, a0):
6861 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6862 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6865 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6866 return _IMP_core.Hierarchy_get_check_level(self)
6868 def __eq__(self, *args):
6870 __eq__(Hierarchy self, Hierarchy o) -> bool
6871 __eq__(Hierarchy self, Particle d) -> bool
6873 return _IMP_core.Hierarchy___eq__(self, *args)
6875 def __ne__(self, *args):
6877 __ne__(Hierarchy self, Hierarchy o) -> bool
6878 __ne__(Hierarchy self, Particle d) -> bool
6880 return _IMP_core.Hierarchy___ne__(self, *args)
6882 def __le__(self, *args):
6884 __le__(Hierarchy self, Hierarchy o) -> bool
6885 __le__(Hierarchy self, Particle d) -> bool
6887 return _IMP_core.Hierarchy___le__(self, *args)
6889 def __lt__(self, *args):
6891 __lt__(Hierarchy self, Hierarchy o) -> bool
6892 __lt__(Hierarchy self, Particle d) -> bool
6894 return _IMP_core.Hierarchy___lt__(self, *args)
6896 def __ge__(self, *args):
6898 __ge__(Hierarchy self, Hierarchy o) -> bool
6899 __ge__(Hierarchy self, Particle d) -> bool
6901 return _IMP_core.Hierarchy___ge__(self, *args)
6903 def __gt__(self, *args):
6905 __gt__(Hierarchy self, Hierarchy o) -> bool
6906 __gt__(Hierarchy self, Particle d) -> bool
6908 return _IMP_core.Hierarchy___gt__(self, *args)
6911 r"""__hash__(Hierarchy self) -> std::size_t"""
6912 return _IMP_core.Hierarchy___hash__(self)
6915 r"""__str__(Hierarchy self) -> std::string"""
6916 return _IMP_core.Hierarchy___str__(self)
6919 r"""__repr__(Hierarchy self) -> std::string"""
6920 return _IMP_core.Hierarchy___repr__(self)
6921 __swig_destroy__ = _IMP_core.delete_Hierarchy
6924 _IMP_core.Hierarchy_swigregister(Hierarchy)
6925 class HierarchyVisitor(object):
6926 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6928 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6929 __repr__ = _swig_repr
6932 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6933 if self.__class__ == HierarchyVisitor:
6937 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6939 if self.__class__ != HierarchyVisitor:
6940 _director_objects.register(self)
6945 def __call__(self, p):
6946 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6947 return _IMP_core.HierarchyVisitor___call__(self, p)
6948 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6949 def __disown__(self):
6951 _IMP_core.disown_HierarchyVisitor(self)
6952 return weakref.proxy(self)
6955 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6956 class ModifierVisitor(HierarchyVisitor):
6957 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6959 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6960 __repr__ = _swig_repr
6962 def __init__(self, sm):
6963 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6964 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6965 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6968 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6969 class HierarchyCounter(HierarchyVisitor):
6970 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6972 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6975 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6976 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6978 def get_count(self):
6979 r"""get_count(HierarchyCounter self) -> unsigned int"""
6980 return _IMP_core.HierarchyCounter_get_count(self)
6982 def show(self, *args):
6983 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6984 return _IMP_core.HierarchyCounter_show(self, *args)
6987 r"""__str__(HierarchyCounter self) -> std::string"""
6988 return _IMP_core.HierarchyCounter___str__(self)
6991 r"""__repr__(HierarchyCounter self) -> std::string"""
6992 return _IMP_core.HierarchyCounter___repr__(self)
6994 def _get_as_binary(self):
6995 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6996 return _IMP_core.HierarchyCounter__get_as_binary(self)
6998 def _set_from_binary(self, p):
6999 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
7000 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
7002 def __getstate__(self):
7003 p = self._get_as_binary()
7004 if len(self.__dict__) > 1:
7005 d = self.__dict__.copy()
7010 def __setstate__(self, p):
7011 if not hasattr(self,
'this'):
7013 if isinstance(p, tuple):
7015 self.__dict__.update(d)
7016 return self._set_from_binary(p)
7018 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7021 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7024 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7025 return _IMP_core.get_leaves(mhd)
7028 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7029 return _IMP_core.get_internal(mhd)
7032 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7033 return _IMP_core.get_all_descendants(mhd)
7036 r"""get_root(Hierarchy h) -> Hierarchy"""
7037 return _IMP_core.get_root(h)
7040 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7041 return _IMP_core.visit_breadth_first(d, f)
7044 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7045 return _IMP_core.visit_depth_first(d, f)
7047 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7049 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7051 def __init__(self, tr):
7052 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7053 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7055 def do_get_inputs(self, m, pis):
7056 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7057 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7059 def get_version_info(self):
7060 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7061 return _IMP_core.LeavesRefiner_get_version_info(self)
7062 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7065 r"""__str__(LeavesRefiner self) -> std::string"""
7066 return _IMP_core.LeavesRefiner___str__(self)
7069 r"""__repr__(LeavesRefiner self) -> std::string"""
7070 return _IMP_core.LeavesRefiner___repr__(self)
7074 return _object_cast_to_LeavesRefiner(o)
7078 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7080 r"""Proxy of C++ IMP::core::Linear class."""
7082 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7084 def __init__(self, *args):
7086 __init__(Linear self, double offset, double slope) -> Linear
7087 __init__(Linear self) -> Linear
7089 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7091 def set_slope(self, f):
7092 r"""set_slope(Linear self, double f)"""
7093 return _IMP_core.Linear_set_slope(self, f)
7095 def set_offset(self, f):
7096 r"""set_offset(Linear self, double f)"""
7097 return _IMP_core.Linear_set_offset(self, f)
7099 def get_version_info(self):
7100 r"""get_version_info(Linear self) -> VersionInfo"""
7101 return _IMP_core.Linear_get_version_info(self)
7102 __swig_destroy__ = _IMP_core.delete_Linear
7105 r"""__str__(Linear self) -> std::string"""
7106 return _IMP_core.Linear___str__(self)
7109 r"""__repr__(Linear self) -> std::string"""
7110 return _IMP_core.Linear___repr__(self)
7114 return _object_cast_to_Linear(o)
7117 def _get_as_binary(self):
7118 r"""_get_as_binary(Linear self) -> PyObject *"""
7119 return _IMP_core.Linear__get_as_binary(self)
7121 def _set_from_binary(self, p):
7122 r"""_set_from_binary(Linear self, PyObject * p)"""
7123 return _IMP_core.Linear__set_from_binary(self, p)
7125 def __getstate__(self):
7126 p = self._get_as_binary()
7127 if len(self.__dict__) > 1:
7128 d = self.__dict__.copy()
7133 def __setstate__(self, p):
7134 if not hasattr(self,
'this'):
7136 if isinstance(p, tuple):
7138 self.__dict__.update(d)
7139 return self._set_from_binary(p)
7143 _IMP_core.Linear_swigregister(Linear)
7144 class LogNormalMover(MonteCarloMover):
7145 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7147 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7149 def __init__(self, *args):
7151 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7152 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7153 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7154 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7155 __init__(LogNormalMover self) -> LogNormalMover
7157 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7159 def set_sigma(self, sigma):
7160 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7161 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7163 def get_sigma(self):
7164 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7165 return _IMP_core.LogNormalMover_get_sigma(self)
7167 def get_version_info(self):
7168 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7169 return _IMP_core.LogNormalMover_get_version_info(self)
7170 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7173 r"""__str__(LogNormalMover self) -> std::string"""
7174 return _IMP_core.LogNormalMover___str__(self)
7177 r"""__repr__(LogNormalMover self) -> std::string"""
7178 return _IMP_core.LogNormalMover___repr__(self)
7182 return _object_cast_to_LogNormalMover(o)
7185 def _get_as_binary(self):
7186 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7187 return _IMP_core.LogNormalMover__get_as_binary(self)
7189 def _set_from_binary(self, p):
7190 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7191 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7193 def __getstate__(self):
7194 p = self._get_as_binary()
7195 if len(self.__dict__) > 1:
7196 d = self.__dict__.copy()
7201 def __setstate__(self, p):
7202 if not hasattr(self,
'this'):
7204 if isinstance(p, tuple):
7206 self.__dict__.update(d)
7207 return self._set_from_binary(p)
7211 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7212 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7215 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7217 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7219 def __init__(self, m):
7220 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7221 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7223 def get_version_info(self):
7224 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7225 return _IMP_core.MonteCarlo_get_version_info(self)
7226 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7228 def set_return_best(self, tf):
7229 r"""set_return_best(MonteCarlo self, bool tf)"""
7230 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7232 def set_score_moved(self, mv):
7233 r"""set_score_moved(MonteCarlo self, bool mv)"""
7234 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7236 def set_kt(self, t):
7237 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7238 return _IMP_core.MonteCarlo_set_kt(self, t)
7241 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7242 return _IMP_core.MonteCarlo_get_kt(self)
7244 def get_last_accepted_energy(self):
7245 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7246 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7248 def get_best_accepted_energy(self):
7249 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7250 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7252 def get_number_of_downward_steps(self):
7253 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7254 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7256 def get_number_of_upward_steps(self):
7257 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7258 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7260 def get_number_of_proposed_steps(self):
7261 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7262 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7264 def get_number_of_accepted_steps(self):
7265 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7266 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7268 def reset_statistics(self):
7269 r"""reset_statistics(MonteCarlo self)"""
7270 return _IMP_core.MonteCarlo_reset_statistics(self)
7272 def set_score_threshold(self, s):
7273 r"""set_score_threshold(MonteCarlo self, double s)"""
7274 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7276 def get_score_threshold(self):
7277 r"""get_score_threshold(MonteCarlo self) -> double"""
7278 return _IMP_core.MonteCarlo_get_score_threshold(self)
7280 def set_maximum_difference(self, d):
7281 r"""set_maximum_difference(MonteCarlo self, double d)"""
7282 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7284 def get_maximum_difference(self):
7285 r"""get_maximum_difference(MonteCarlo self) -> double"""
7286 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7287 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)
7288 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7289 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7290 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7292 def remove_mover(self, d):
7293 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7294 return _IMP_core.MonteCarlo_remove_mover(self, d)
7296 def _python_index_mover(self, d, start, stop):
7297 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7298 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7300 def remove_movers(self, d):
7301 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7302 return _IMP_core.MonteCarlo_remove_movers(self, d)
7304 def set_movers(self, ps):
7305 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7306 return _IMP_core.MonteCarlo_set_movers(self, ps)
7308 def set_movers_order(self, objs):
7309 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7310 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7312 def add_mover(self, obj):
7313 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7314 return _IMP_core.MonteCarlo_add_mover(self, obj)
7316 def add_movers(self, objs):
7317 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7318 return _IMP_core.MonteCarlo_add_movers(self, objs)
7320 def clear_movers(self):
7321 r"""clear_movers(MonteCarlo self)"""
7322 return _IMP_core.MonteCarlo_clear_movers(self)
7324 def get_number_of_movers(self):
7325 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7326 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7328 def get_has_movers(self):
7329 r"""get_has_movers(MonteCarlo self) -> bool"""
7330 return _IMP_core.MonteCarlo_get_has_movers(self)
7332 def get_mover(self, i):
7333 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7334 return _IMP_core.MonteCarlo_get_mover(self, i)
7336 def get_movers(self):
7337 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7338 return _IMP_core.MonteCarlo_get_movers(self)
7340 def erase_mover(self, i):
7341 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7342 return _IMP_core.MonteCarlo_erase_mover(self, i)
7344 def reserve_movers(self, sz):
7345 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7346 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7349 r"""__str__(MonteCarlo self) -> std::string"""
7350 return _IMP_core.MonteCarlo___str__(self)
7353 r"""__repr__(MonteCarlo self) -> std::string"""
7354 return _IMP_core.MonteCarlo___repr__(self)
7358 return _object_cast_to_MonteCarlo(o)
7362 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7363 class MonteCarloWithLocalOptimization(MonteCarlo):
7364 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7366 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7368 def __init__(self, opt, steps):
7369 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7370 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7372 def get_number_of_steps(self):
7373 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7374 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7376 def get_local_optimizer(self):
7377 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7378 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7379 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7382 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7383 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7386 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7387 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7391 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7395 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7396 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7397 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7399 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7401 def __init__(self, opt, ns):
7402 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7403 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7404 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7407 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7408 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7411 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7412 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7416 return _object_cast_to_MonteCarloWithBasinHopping(o)
7420 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7422 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7424 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7426 def __init__(self, *args):
7427 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7428 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7430 def get_neighbors(self, pi):
7431 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7432 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7434 def get_version_info(self):
7435 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7436 return _IMP_core.NeighborsTable_get_version_info(self)
7437 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7440 r"""__str__(NeighborsTable self) -> std::string"""
7441 return _IMP_core.NeighborsTable___str__(self)
7444 r"""__repr__(NeighborsTable self) -> std::string"""
7445 return _IMP_core.NeighborsTable___repr__(self)
7449 return _object_cast_to_NeighborsTable(o)
7453 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7454 class NormalMover(MonteCarloMover):
7455 r"""Proxy of C++ IMP::core::NormalMover class."""
7457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7459 def __init__(self, *args):
7461 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7462 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7463 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7464 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7465 __init__(NormalMover self) -> NormalMover
7467 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7469 def set_sigma(self, sigma):
7470 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7471 return _IMP_core.NormalMover_set_sigma(self, sigma)
7473 def get_sigma(self):
7474 r"""get_sigma(NormalMover self) -> IMP::Float"""
7475 return _IMP_core.NormalMover_get_sigma(self)
7477 def get_version_info(self):
7478 r"""get_version_info(NormalMover self) -> VersionInfo"""
7479 return _IMP_core.NormalMover_get_version_info(self)
7480 __swig_destroy__ = _IMP_core.delete_NormalMover
7483 r"""__str__(NormalMover self) -> std::string"""
7484 return _IMP_core.NormalMover___str__(self)
7487 r"""__repr__(NormalMover self) -> std::string"""
7488 return _IMP_core.NormalMover___repr__(self)
7492 return _object_cast_to_NormalMover(o)
7495 def _get_as_binary(self):
7496 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7497 return _IMP_core.NormalMover__get_as_binary(self)
7499 def _set_from_binary(self, p):
7500 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7501 return _IMP_core.NormalMover__set_from_binary(self, p)
7503 def __getstate__(self):
7504 p = self._get_as_binary()
7505 if len(self.__dict__) > 1:
7506 d = self.__dict__.copy()
7511 def __setstate__(self, p):
7512 if not hasattr(self,
'this'):
7514 if isinstance(p, tuple):
7516 self.__dict__.update(d)
7517 return self._set_from_binary(p)
7521 _IMP_core.NormalMover_swigregister(NormalMover)
7522 class OpenCubicSpline(_OpenCubicSplineBase):
7523 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7525 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7527 def __init__(self, values, minrange, spacing, extend=False):
7528 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7529 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7532 r"""__str__(OpenCubicSpline self) -> std::string"""
7533 return _IMP_core.OpenCubicSpline___str__(self)
7536 r"""__repr__(OpenCubicSpline self) -> std::string"""
7537 return _IMP_core.OpenCubicSpline___repr__(self)
7541 return _object_cast_to_OpenCubicSpline(o)
7543 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7546 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7547 class QuadraticClosePairsFinder(ClosePairsFinder):
7548 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7550 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7553 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7554 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7556 def get_are_close_and_filtered(self, *args):
7558 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7559 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7561 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7563 def get_close_pairs(self, *args):
7565 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7566 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7567 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7568 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7570 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7572 def do_get_inputs(self, m, pis):
7573 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7574 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7576 def get_version_info(self):
7577 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7578 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7579 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7582 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7583 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7586 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7587 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7591 return _object_cast_to_QuadraticClosePairsFinder(o)
7595 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7597 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7601 def __init__(self, r, f):
7602 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7603 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7605 def do_get_inputs(self, m, pis):
7606 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7607 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7609 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7610 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"""
7611 return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7613 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7614 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"""
7615 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7617 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7618 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"""
7619 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7621 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7622 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"""
7623 return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7625 def get_version_info(self):
7626 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7627 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7628 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7631 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7632 return _IMP_core.RefinedPairsPairScore___str__(self)
7635 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7636 return _IMP_core.RefinedPairsPairScore___repr__(self)
7640 return _object_cast_to_RefinedPairsPairScore(o)
7644 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7645 class RigidBody(XYZ):
7646 r"""Proxy of C++ IMP::core::RigidBody class."""
7648 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7650 def get_rigid_members(self):
7651 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7652 return _IMP_core.RigidBody_get_rigid_members(self)
7655 def get_rotation_keys():
7656 r"""get_rotation_keys() -> IMP::FloatKeys"""
7657 return _IMP_core.RigidBody_get_rotation_keys()
7659 def get_member_particle_indexes(self):
7660 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7661 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7663 def get_body_member_particle_indexes(self):
7664 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7665 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7667 def get_member_indexes(self):
7668 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7669 return _IMP_core.RigidBody_get_member_indexes(self)
7671 def show(self, *args):
7672 r"""show(RigidBody self, _ostream out=std::cout)"""
7673 return _IMP_core.RigidBody_show(self, *args)
7676 def setup_particle(*args):
7678 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7679 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7680 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7681 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7683 return _IMP_core.RigidBody_setup_particle(*args)
7686 def teardown_particle(rb):
7687 r"""teardown_particle(RigidBody rb)"""
7688 return _IMP_core.RigidBody_teardown_particle(rb)
7690 def __init__(self, *args):
7692 __init__(RigidBody self) -> RigidBody
7693 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7694 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7695 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7697 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7698 __swig_destroy__ = _IMP_core.delete_RigidBody
7701 def get_is_setup(*args):
7703 get_is_setup(_ParticleAdaptor p) -> bool
7704 get_is_setup(Model m, ParticleIndex pi) -> bool
7706 return _IMP_core.RigidBody_get_is_setup(*args)
7708 def get_coordinates(self):
7709 r"""get_coordinates(RigidBody self) -> Vector3D"""
7710 return _IMP_core.RigidBody_get_coordinates(self)
7712 def get_rotation(self):
7713 r"""get_rotation(RigidBody self) -> Rotation3D"""
7714 return _IMP_core.RigidBody_get_rotation(self)
7716 def get_reference_frame(self):
7717 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7718 return _IMP_core.RigidBody_get_reference_frame(self)
7720 def set_reference_frame(self, tr):
7721 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7722 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7724 def set_reference_frame_lazy(self, tr):
7725 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7726 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7728 def set_reference_frame_from_members(self, members):
7729 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7730 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7732 def pull_back_members_adjoints(self, da):
7733 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7734 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7736 def pull_back_member_adjoints(self, pi, da):
7737 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7738 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7740 def pull_back_body_member_adjoints(self, pi, da):
7741 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7742 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7744 def add_to_derivatives(self, *args):
7746 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7747 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7749 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7751 def add_to_rotational_derivatives(self, *args):
7753 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7754 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7756 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7758 def add_to_torque(self, torque_local, da):
7759 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7760 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7762 def get_torque(self):
7763 r"""get_torque(RigidBody self) -> Vector3D"""
7764 return _IMP_core.RigidBody_get_torque(self)
7766 def get_coordinates_are_optimized(self):
7767 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7768 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7770 def set_coordinates_are_optimized(self, tf):
7771 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7772 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7774 def normalize_rotation(self):
7775 r"""normalize_rotation(RigidBody self)"""
7776 return _IMP_core.RigidBody_normalize_rotation(self)
7778 def update_members(self):
7779 r"""update_members(RigidBody self)"""
7780 return _IMP_core.RigidBody_update_members(self)
7782 def get_rotational_derivatives(self):
7783 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7784 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7786 def get_number_of_members(self):
7787 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7788 return _IMP_core.RigidBody_get_number_of_members(self)
7790 def get_member(self, i):
7791 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7792 return _IMP_core.RigidBody_get_member(self, i)
7794 def add_member(self, p):
7795 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7796 return _IMP_core.RigidBody_add_member(self, p)
7798 def add_non_rigid_member(self, p):
7799 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7800 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7802 def set_is_rigid_member(self, pi, tf):
7803 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7804 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7806 def remove_member(self, p):
7807 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7808 return _IMP_core.RigidBody_remove_member(self, p)
7810 def add_attribute(self, *args):
7812 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7813 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7814 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7815 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7816 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7817 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7818 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7819 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7820 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7821 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7822 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7823 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7825 return _IMP_core.RigidBody_add_attribute(self, *args)
7827 def get_value(self, *args):
7829 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7830 get_value(RigidBody self, IntKey a0) -> IMP::Int
7831 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7832 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7833 get_value(RigidBody self, StringKey a0) -> IMP::String
7834 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7835 get_value(RigidBody self, ObjectKey a0) -> Object
7836 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7837 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7838 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7839 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7841 return _IMP_core.RigidBody_get_value(self, *args)
7843 def set_value(self, *args):
7845 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7846 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7847 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7848 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7849 set_value(RigidBody self, StringKey a0, IMP::String a1)
7850 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7851 set_value(RigidBody self, ObjectKey a0, Object a1)
7852 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7853 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7854 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7855 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7857 return _IMP_core.RigidBody_set_value(self, *args)
7859 def remove_attribute(self, *args):
7861 remove_attribute(RigidBody self, FloatKey a0)
7862 remove_attribute(RigidBody self, IntKey a0)
7863 remove_attribute(RigidBody self, FloatsKey a0)
7864 remove_attribute(RigidBody self, IntsKey a0)
7865 remove_attribute(RigidBody self, StringKey a0)
7866 remove_attribute(RigidBody self, ParticleIndexKey a0)
7867 remove_attribute(RigidBody self, ObjectKey a0)
7868 remove_attribute(RigidBody self, SparseFloatKey a0)
7869 remove_attribute(RigidBody self, SparseIntKey a0)
7870 remove_attribute(RigidBody self, SparseStringKey a0)
7871 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7873 return _IMP_core.RigidBody_remove_attribute(self, *args)
7875 def has_attribute(self, *args):
7877 has_attribute(RigidBody self, FloatKey a0) -> bool
7878 has_attribute(RigidBody self, IntKey a0) -> bool
7879 has_attribute(RigidBody self, FloatsKey a0) -> bool
7880 has_attribute(RigidBody self, IntsKey a0) -> bool
7881 has_attribute(RigidBody self, StringKey a0) -> bool
7882 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7883 has_attribute(RigidBody self, ObjectKey a0) -> bool
7884 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7885 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7886 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7887 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7889 return _IMP_core.RigidBody_has_attribute(self, *args)
7891 def get_derivative(self, a0):
7892 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7893 return _IMP_core.RigidBody_get_derivative(self, a0)
7896 r"""get_name(RigidBody self) -> std::string"""
7897 return _IMP_core.RigidBody_get_name(self)
7899 def clear_caches(self):
7900 r"""clear_caches(RigidBody self)"""
7901 return _IMP_core.RigidBody_clear_caches(self)
7903 def set_name(self, a0):
7904 r"""set_name(RigidBody self, std::string a0)"""
7905 return _IMP_core.RigidBody_set_name(self, a0)
7908 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7909 return _IMP_core.RigidBody_set_check_level(self, a0)
7911 def add_to_derivative(self, a0, a1, a2):
7912 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7913 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7915 def set_is_optimized(self, a0, a1):
7916 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7917 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7919 def get_is_optimized(self, a0):
7920 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7921 return _IMP_core.RigidBody_get_is_optimized(self, a0)
7924 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7925 return _IMP_core.RigidBody_get_check_level(self)
7927 def __eq__(self, *args):
7929 __eq__(RigidBody self, RigidBody o) -> bool
7930 __eq__(RigidBody self, Particle d) -> bool
7932 return _IMP_core.RigidBody___eq__(self, *args)
7934 def __ne__(self, *args):
7936 __ne__(RigidBody self, RigidBody o) -> bool
7937 __ne__(RigidBody self, Particle d) -> bool
7939 return _IMP_core.RigidBody___ne__(self, *args)
7941 def __le__(self, *args):
7943 __le__(RigidBody self, RigidBody o) -> bool
7944 __le__(RigidBody self, Particle d) -> bool
7946 return _IMP_core.RigidBody___le__(self, *args)
7948 def __lt__(self, *args):
7950 __lt__(RigidBody self, RigidBody o) -> bool
7951 __lt__(RigidBody self, Particle d) -> bool
7953 return _IMP_core.RigidBody___lt__(self, *args)
7955 def __ge__(self, *args):
7957 __ge__(RigidBody self, RigidBody o) -> bool
7958 __ge__(RigidBody self, Particle d) -> bool
7960 return _IMP_core.RigidBody___ge__(self, *args)
7962 def __gt__(self, *args):
7964 __gt__(RigidBody self, RigidBody o) -> bool
7965 __gt__(RigidBody self, Particle d) -> bool
7967 return _IMP_core.RigidBody___gt__(self, *args)
7970 r"""__hash__(RigidBody self) -> std::size_t"""
7971 return _IMP_core.RigidBody___hash__(self)
7974 r"""__str__(RigidBody self) -> std::string"""
7975 return _IMP_core.RigidBody___str__(self)
7978 r"""__repr__(RigidBody self) -> std::string"""
7979 return _IMP_core.RigidBody___repr__(self)
7981 def _get_as_binary(self):
7982 r"""_get_as_binary(RigidBody self) -> PyObject *"""
7983 return _IMP_core.RigidBody__get_as_binary(self)
7985 def _set_from_binary(self, p):
7986 r"""_set_from_binary(RigidBody self, PyObject * p)"""
7987 return _IMP_core.RigidBody__set_from_binary(self, p)
7989 def __getstate__(self):
7990 p = self._get_as_binary()
7991 if len(self.__dict__) > 1:
7992 d = self.__dict__.copy()
7997 def __setstate__(self, p):
7998 if not hasattr(self,
'this'):
8000 if isinstance(p, tuple):
8002 self.__dict__.update(d)
8003 return self._set_from_binary(p)
8007 _IMP_core.RigidBody_swigregister(RigidBody)
8010 r"""add_rigid_body_cache_key(ObjectKey k)"""
8011 return _IMP_core.add_rigid_body_cache_key(k)
8012 class RigidBodyMember(XYZ):
8013 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8017 def show(self, *args):
8018 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8019 return _IMP_core.RigidBodyMember_show(self, *args)
8021 def get_rigid_body(self):
8022 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8023 return _IMP_core.RigidBodyMember_get_rigid_body(self)
8025 def get_internal_coordinates(self):
8026 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8027 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8029 def set_internal_coordinates(self, v):
8030 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8031 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8033 def set_internal_transformation(self, v):
8034 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8035 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8037 def get_internal_transformation(self):
8038 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8039 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8040 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8042 def set_coordinates(self, *args):
8044 set_coordinates(RigidBodyMember self, Vector3D center)
8045 set_coordinates(RigidBodyMember self, Transformation3D tr)
8047 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8049 def __init__(self, *args):
8051 __init__(RigidBodyMember self) -> RigidBodyMember
8052 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8053 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8054 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8056 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8059 def get_is_setup(*args):
8061 get_is_setup(_ParticleAdaptor p) -> bool
8062 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8064 return _IMP_core.RigidBodyMember_get_is_setup(*args)
8067 def get_internal_coordinate_keys():
8068 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8069 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8072 def get_internal_rotation_keys():
8073 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8074 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8076 def add_attribute(self, *args):
8078 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8079 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8080 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8081 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8082 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8083 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8084 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8085 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8086 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8087 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8088 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8089 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8091 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8093 def get_value(self, *args):
8095 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8096 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8097 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8098 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8099 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8100 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8101 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8102 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8103 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8104 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8105 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8107 return _IMP_core.RigidBodyMember_get_value(self, *args)
8109 def set_value(self, *args):
8111 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8112 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8113 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8114 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8115 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8116 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8117 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8118 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8119 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8120 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8121 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8123 return _IMP_core.RigidBodyMember_set_value(self, *args)
8125 def remove_attribute(self, *args):
8127 remove_attribute(RigidBodyMember self, FloatKey a0)
8128 remove_attribute(RigidBodyMember self, IntKey a0)
8129 remove_attribute(RigidBodyMember self, FloatsKey a0)
8130 remove_attribute(RigidBodyMember self, IntsKey a0)
8131 remove_attribute(RigidBodyMember self, StringKey a0)
8132 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8133 remove_attribute(RigidBodyMember self, ObjectKey a0)
8134 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8135 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8136 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8137 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8139 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8141 def has_attribute(self, *args):
8143 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8144 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8145 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8146 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8147 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8148 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8149 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8150 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8151 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8152 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8153 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8155 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8157 def get_derivative(self, a0):
8158 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8159 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8162 r"""get_name(RigidBodyMember self) -> std::string"""
8163 return _IMP_core.RigidBodyMember_get_name(self)
8165 def clear_caches(self):
8166 r"""clear_caches(RigidBodyMember self)"""
8167 return _IMP_core.RigidBodyMember_clear_caches(self)
8169 def set_name(self, a0):
8170 r"""set_name(RigidBodyMember self, std::string a0)"""
8171 return _IMP_core.RigidBodyMember_set_name(self, a0)
8174 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8175 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8177 def add_to_derivative(self, a0, a1, a2):
8178 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8179 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8181 def set_is_optimized(self, a0, a1):
8182 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8183 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8185 def get_is_optimized(self, a0):
8186 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8187 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8190 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8191 return _IMP_core.RigidBodyMember_get_check_level(self)
8193 def __eq__(self, *args):
8195 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8196 __eq__(RigidBodyMember self, Particle d) -> bool
8198 return _IMP_core.RigidBodyMember___eq__(self, *args)
8200 def __ne__(self, *args):
8202 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8203 __ne__(RigidBodyMember self, Particle d) -> bool
8205 return _IMP_core.RigidBodyMember___ne__(self, *args)
8207 def __le__(self, *args):
8209 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8210 __le__(RigidBodyMember self, Particle d) -> bool
8212 return _IMP_core.RigidBodyMember___le__(self, *args)
8214 def __lt__(self, *args):
8216 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8217 __lt__(RigidBodyMember self, Particle d) -> bool
8219 return _IMP_core.RigidBodyMember___lt__(self, *args)
8221 def __ge__(self, *args):
8223 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8224 __ge__(RigidBodyMember self, Particle d) -> bool
8226 return _IMP_core.RigidBodyMember___ge__(self, *args)
8228 def __gt__(self, *args):
8230 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8231 __gt__(RigidBodyMember self, Particle d) -> bool
8233 return _IMP_core.RigidBodyMember___gt__(self, *args)
8236 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8237 return _IMP_core.RigidBodyMember___hash__(self)
8240 r"""__str__(RigidBodyMember self) -> std::string"""
8241 return _IMP_core.RigidBodyMember___str__(self)
8244 r"""__repr__(RigidBodyMember self) -> std::string"""
8245 return _IMP_core.RigidBodyMember___repr__(self)
8247 def _get_as_binary(self):
8248 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8249 return _IMP_core.RigidBodyMember__get_as_binary(self)
8251 def _set_from_binary(self, p):
8252 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8253 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8255 def __getstate__(self):
8256 p = self._get_as_binary()
8257 if len(self.__dict__) > 1:
8258 d = self.__dict__.copy()
8263 def __setstate__(self, p):
8264 if not hasattr(self,
'this'):
8266 if isinstance(p, tuple):
8268 self.__dict__.update(d)
8269 return self._set_from_binary(p)
8273 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8274 class RigidMember(RigidBodyMember):
8275 r"""Proxy of C++ IMP::core::RigidMember class."""
8277 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8279 def show(self, *args):
8280 r"""show(RigidMember self, _ostream out=std::cout)"""
8281 return _IMP_core.RigidMember_show(self, *args)
8283 def __init__(self, *args):
8285 __init__(RigidMember self) -> RigidMember
8286 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8287 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8288 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8290 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8291 __swig_destroy__ = _IMP_core.delete_RigidMember
8294 def get_is_setup(*args):
8296 get_is_setup(_ParticleAdaptor p) -> bool
8297 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8299 return _IMP_core.RigidMember_get_is_setup(*args)
8301 def add_attribute(self, *args):
8303 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8304 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8305 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8306 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8307 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8308 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8309 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8310 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8311 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8312 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8313 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8314 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8316 return _IMP_core.RigidMember_add_attribute(self, *args)
8318 def get_value(self, *args):
8320 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8321 get_value(RigidMember self, IntKey a0) -> IMP::Int
8322 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8323 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8324 get_value(RigidMember self, StringKey a0) -> IMP::String
8325 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8326 get_value(RigidMember self, ObjectKey a0) -> Object
8327 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8328 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8329 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8330 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8332 return _IMP_core.RigidMember_get_value(self, *args)
8334 def set_value(self, *args):
8336 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8337 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8338 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8339 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8340 set_value(RigidMember self, StringKey a0, IMP::String a1)
8341 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8342 set_value(RigidMember self, ObjectKey a0, Object a1)
8343 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8344 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8345 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8346 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8348 return _IMP_core.RigidMember_set_value(self, *args)
8350 def remove_attribute(self, *args):
8352 remove_attribute(RigidMember self, FloatKey a0)
8353 remove_attribute(RigidMember self, IntKey a0)
8354 remove_attribute(RigidMember self, FloatsKey a0)
8355 remove_attribute(RigidMember self, IntsKey a0)
8356 remove_attribute(RigidMember self, StringKey a0)
8357 remove_attribute(RigidMember self, ParticleIndexKey a0)
8358 remove_attribute(RigidMember self, ObjectKey a0)
8359 remove_attribute(RigidMember self, SparseFloatKey a0)
8360 remove_attribute(RigidMember self, SparseIntKey a0)
8361 remove_attribute(RigidMember self, SparseStringKey a0)
8362 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8364 return _IMP_core.RigidMember_remove_attribute(self, *args)
8366 def has_attribute(self, *args):
8368 has_attribute(RigidMember self, FloatKey a0) -> bool
8369 has_attribute(RigidMember self, IntKey a0) -> bool
8370 has_attribute(RigidMember self, FloatsKey a0) -> bool
8371 has_attribute(RigidMember self, IntsKey a0) -> bool
8372 has_attribute(RigidMember self, StringKey a0) -> bool
8373 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8374 has_attribute(RigidMember self, ObjectKey a0) -> bool
8375 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8376 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8377 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8378 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8380 return _IMP_core.RigidMember_has_attribute(self, *args)
8382 def get_derivative(self, a0):
8383 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8384 return _IMP_core.RigidMember_get_derivative(self, a0)
8387 r"""get_name(RigidMember self) -> std::string"""
8388 return _IMP_core.RigidMember_get_name(self)
8390 def clear_caches(self):
8391 r"""clear_caches(RigidMember self)"""
8392 return _IMP_core.RigidMember_clear_caches(self)
8394 def set_name(self, a0):
8395 r"""set_name(RigidMember self, std::string a0)"""
8396 return _IMP_core.RigidMember_set_name(self, a0)
8399 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8400 return _IMP_core.RigidMember_set_check_level(self, a0)
8402 def add_to_derivative(self, a0, a1, a2):
8403 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8404 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8406 def set_is_optimized(self, a0, a1):
8407 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8408 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8410 def get_is_optimized(self, a0):
8411 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8412 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8415 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8416 return _IMP_core.RigidMember_get_check_level(self)
8418 def __eq__(self, *args):
8420 __eq__(RigidMember self, RigidMember o) -> bool
8421 __eq__(RigidMember self, Particle d) -> bool
8423 return _IMP_core.RigidMember___eq__(self, *args)
8425 def __ne__(self, *args):
8427 __ne__(RigidMember self, RigidMember o) -> bool
8428 __ne__(RigidMember self, Particle d) -> bool
8430 return _IMP_core.RigidMember___ne__(self, *args)
8432 def __le__(self, *args):
8434 __le__(RigidMember self, RigidMember o) -> bool
8435 __le__(RigidMember self, Particle d) -> bool
8437 return _IMP_core.RigidMember___le__(self, *args)
8439 def __lt__(self, *args):
8441 __lt__(RigidMember self, RigidMember o) -> bool
8442 __lt__(RigidMember self, Particle d) -> bool
8444 return _IMP_core.RigidMember___lt__(self, *args)
8446 def __ge__(self, *args):
8448 __ge__(RigidMember self, RigidMember o) -> bool
8449 __ge__(RigidMember self, Particle d) -> bool
8451 return _IMP_core.RigidMember___ge__(self, *args)
8453 def __gt__(self, *args):
8455 __gt__(RigidMember self, RigidMember o) -> bool
8456 __gt__(RigidMember self, Particle d) -> bool
8458 return _IMP_core.RigidMember___gt__(self, *args)
8461 r"""__hash__(RigidMember self) -> std::size_t"""
8462 return _IMP_core.RigidMember___hash__(self)
8465 r"""__str__(RigidMember self) -> std::string"""
8466 return _IMP_core.RigidMember___str__(self)
8469 r"""__repr__(RigidMember self) -> std::string"""
8470 return _IMP_core.RigidMember___repr__(self)
8472 def _get_as_binary(self):
8473 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8474 return _IMP_core.RigidMember__get_as_binary(self)
8476 def _set_from_binary(self, p):
8477 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8478 return _IMP_core.RigidMember__set_from_binary(self, p)
8480 def __getstate__(self):
8481 p = self._get_as_binary()
8482 if len(self.__dict__) > 1:
8483 d = self.__dict__.copy()
8488 def __setstate__(self, p):
8489 if not hasattr(self,
'this'):
8491 if isinstance(p, tuple):
8493 self.__dict__.update(d)
8494 return self._set_from_binary(p)
8498 _IMP_core.RigidMember_swigregister(RigidMember)
8499 class NonRigidMember(RigidBodyMember):
8500 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8502 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8504 def show(self, *args):
8505 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8506 return _IMP_core.NonRigidMember_show(self, *args)
8508 def __init__(self, *args):
8510 __init__(NonRigidMember self) -> NonRigidMember
8511 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8512 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8513 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8515 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8516 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8519 def get_is_setup(*args):
8521 get_is_setup(_ParticleAdaptor p) -> bool
8522 get_is_setup(Model m, ParticleIndex p) -> bool
8524 return _IMP_core.NonRigidMember_get_is_setup(*args)
8526 def add_to_internal_derivatives(self, deriv_parent, da):
8527 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8528 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8530 def add_to_internal_rotational_derivatives(self, *args):
8532 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8533 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8535 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8537 def get_internal_derivatives(self):
8538 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8539 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8541 def get_internal_rotational_derivatives(self):
8542 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8543 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8545 def add_attribute(self, *args):
8547 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8548 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8549 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8550 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8551 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8552 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8553 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8554 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8555 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8556 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8557 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8558 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8560 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8562 def get_value(self, *args):
8564 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8565 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8566 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8567 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8568 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8569 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8570 get_value(NonRigidMember self, ObjectKey a0) -> Object
8571 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8572 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8573 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8574 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8576 return _IMP_core.NonRigidMember_get_value(self, *args)
8578 def set_value(self, *args):
8580 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8581 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8582 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8583 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8584 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8585 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8586 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8587 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8588 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8589 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8590 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8592 return _IMP_core.NonRigidMember_set_value(self, *args)
8594 def remove_attribute(self, *args):
8596 remove_attribute(NonRigidMember self, FloatKey a0)
8597 remove_attribute(NonRigidMember self, IntKey a0)
8598 remove_attribute(NonRigidMember self, FloatsKey a0)
8599 remove_attribute(NonRigidMember self, IntsKey a0)
8600 remove_attribute(NonRigidMember self, StringKey a0)
8601 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8602 remove_attribute(NonRigidMember self, ObjectKey a0)
8603 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8604 remove_attribute(NonRigidMember self, SparseIntKey a0)
8605 remove_attribute(NonRigidMember self, SparseStringKey a0)
8606 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8608 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8610 def has_attribute(self, *args):
8612 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8613 has_attribute(NonRigidMember self, IntKey a0) -> bool
8614 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8615 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8616 has_attribute(NonRigidMember self, StringKey a0) -> bool
8617 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8618 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8619 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8620 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8621 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8622 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8624 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8626 def get_derivative(self, a0):
8627 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8628 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8631 r"""get_name(NonRigidMember self) -> std::string"""
8632 return _IMP_core.NonRigidMember_get_name(self)
8634 def clear_caches(self):
8635 r"""clear_caches(NonRigidMember self)"""
8636 return _IMP_core.NonRigidMember_clear_caches(self)
8638 def set_name(self, a0):
8639 r"""set_name(NonRigidMember self, std::string a0)"""
8640 return _IMP_core.NonRigidMember_set_name(self, a0)
8643 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8644 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8646 def add_to_derivative(self, a0, a1, a2):
8647 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8648 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8650 def set_is_optimized(self, a0, a1):
8651 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8652 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8654 def get_is_optimized(self, a0):
8655 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8656 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8659 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8660 return _IMP_core.NonRigidMember_get_check_level(self)
8662 def __eq__(self, *args):
8664 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8665 __eq__(NonRigidMember self, Particle d) -> bool
8667 return _IMP_core.NonRigidMember___eq__(self, *args)
8669 def __ne__(self, *args):
8671 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8672 __ne__(NonRigidMember self, Particle d) -> bool
8674 return _IMP_core.NonRigidMember___ne__(self, *args)
8676 def __le__(self, *args):
8678 __le__(NonRigidMember self, NonRigidMember o) -> bool
8679 __le__(NonRigidMember self, Particle d) -> bool
8681 return _IMP_core.NonRigidMember___le__(self, *args)
8683 def __lt__(self, *args):
8685 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8686 __lt__(NonRigidMember self, Particle d) -> bool
8688 return _IMP_core.NonRigidMember___lt__(self, *args)
8690 def __ge__(self, *args):
8692 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8693 __ge__(NonRigidMember self, Particle d) -> bool
8695 return _IMP_core.NonRigidMember___ge__(self, *args)
8697 def __gt__(self, *args):
8699 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8700 __gt__(NonRigidMember self, Particle d) -> bool
8702 return _IMP_core.NonRigidMember___gt__(self, *args)
8705 r"""__hash__(NonRigidMember self) -> std::size_t"""
8706 return _IMP_core.NonRigidMember___hash__(self)
8709 r"""__str__(NonRigidMember self) -> std::string"""
8710 return _IMP_core.NonRigidMember___str__(self)
8713 r"""__repr__(NonRigidMember self) -> std::string"""
8714 return _IMP_core.NonRigidMember___repr__(self)
8716 def _get_as_binary(self):
8717 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8718 return _IMP_core.NonRigidMember__get_as_binary(self)
8720 def _set_from_binary(self, p):
8721 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8722 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8724 def __getstate__(self):
8725 p = self._get_as_binary()
8726 if len(self.__dict__) > 1:
8727 d = self.__dict__.copy()
8732 def __setstate__(self, p):
8733 if not hasattr(self,
'this'):
8735 if isinstance(p, tuple):
8737 self.__dict__.update(d)
8738 return self._set_from_binary(p)
8742 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8744 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8748 def __init__(self, *args):
8749 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8750 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8752 def do_get_inputs(self, m, pis):
8753 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8754 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8756 def get_version_info(self):
8757 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8758 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8759 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8762 r"""__str__(RigidMembersRefiner self) -> std::string"""
8763 return _IMP_core.RigidMembersRefiner___str__(self)
8766 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8767 return _IMP_core.RigidMembersRefiner___repr__(self)
8771 return _object_cast_to_RigidMembersRefiner(o)
8775 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8777 def get_rigid_members_refiner():
8778 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8779 return _IMP_core.get_rigid_members_refiner()
8783 transform(XYZ a, Transformation3D tr)
8784 transform(RigidBody a, Transformation3D tr)
8786 return _IMP_core.transform(*args)
8790 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8791 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8793 return _IMP_core.get_initial_reference_frame(*args)
8796 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8797 return _IMP_core.create_rigid_bodies(m, n, no_members)
8800 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8801 return _IMP_core.show_rigid_body_hierarchy(*args)
8804 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8805 return _IMP_core.get_root_rigid_body(m)
8807 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8809 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8811 def __init__(self, rb, constituents):
8812 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8813 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8815 def get_version_info(self):
8816 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8817 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8818 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8821 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8822 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8825 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8826 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8830 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8834 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8836 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8838 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8840 def __init__(self, *args):
8842 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8843 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8845 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8847 def get_version_info(self):
8848 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8849 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8850 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8853 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8854 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8857 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8858 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8862 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8866 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8868 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8870 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8872 def __init__(self, sc):
8873 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8874 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8876 def get_version_info(self):
8877 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8878 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8879 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8882 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8883 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8886 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8887 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8891 return _object_cast_to_RigidBodyDerivativesGeometry(o)
8895 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8897 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8899 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8901 def __init__(self, *args):
8903 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8904 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8906 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8908 def get_version_info(self):
8909 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8910 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8911 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8914 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8915 return _IMP_core.RigidBodyFrameGeometry___str__(self)
8918 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8919 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8923 return _object_cast_to_RigidBodyFrameGeometry(o)
8927 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8929 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8931 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8933 def __init__(self, sc):
8934 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8935 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8937 def get_version_info(self):
8938 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8939 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8940 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8943 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8944 return _IMP_core.RigidBodyFramesGeometry___str__(self)
8947 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8948 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8952 return _object_cast_to_RigidBodyFramesGeometry(o)
8956 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8958 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8962 def __init__(self, p):
8963 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8964 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8967 r"""__str__(RigidBodyTorque self) -> std::string"""
8968 return _IMP_core.RigidBodyTorque___str__(self)
8971 r"""__repr__(RigidBodyTorque self) -> std::string"""
8972 return _IMP_core.RigidBodyTorque___repr__(self)
8976 return _object_cast_to_RigidBodyTorque(o)
8978 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8981 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8982 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8983 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8985 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8988 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8989 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8991 def get_close_pairs(self, *args):
8993 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8994 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8995 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8996 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8998 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
9000 def do_get_inputs(self, m, pis):
9001 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9002 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
9004 def get_version_info(self):
9005 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9006 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9007 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9010 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9011 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9014 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9015 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9019 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9023 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9025 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9027 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9029 def __init__(self, *args):
9031 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9032 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9033 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9035 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9037 def do_add_score_and_derivatives(self, sa, ss):
9038 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9039 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9041 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9042 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)"""
9043 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9045 def do_get_inputs(self):
9046 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9047 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9049 def get_restraints(self):
9050 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9051 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9053 def set_restraints(self, d):
9054 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9055 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9057 def get_number_of_restraints(self):
9058 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9059 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9061 def clear_restraints(self):
9062 r"""clear_restraints(RestraintsScoringFunction self)"""
9063 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9065 def get_restraint(self, i):
9066 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9067 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9069 def erase_restraint(self, i):
9070 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9071 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9074 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9075 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9078 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9079 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9081 def _python_index_restraint(self, r, start, stop):
9082 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9083 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9084 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)
9085 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9086 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9087 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9089 def get_version_info(self):
9090 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9091 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9092 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9095 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9096 return _IMP_core.RestraintsScoringFunction___str__(self)
9099 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9100 return _IMP_core.RestraintsScoringFunction___repr__(self)
9104 return _object_cast_to_RestraintsScoringFunction(o)
9107 def _get_as_binary(self):
9108 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9109 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9111 def _set_from_binary(self, p):
9112 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9113 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9115 def __getstate__(self):
9116 p = self._get_as_binary()
9117 if len(self.__dict__) > 1:
9118 d = self.__dict__.copy()
9123 def __setstate__(self, p):
9124 if not hasattr(self,
'this'):
9126 if isinstance(p, tuple):
9128 self.__dict__.update(d)
9129 return self._set_from_binary(p)
9133 import IMP._jax_util
9134 funcs = [r.get_derived_object()._get_jax().score_func
9135 for r
in self.restraints]
9137 return sum(f(X)
for f
in funcs)
9138 return IMP._jax_util.JaxInfo(m=self.get_model(), score_func=jax_sf,
9143 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9144 class RigidClosePairsFinder(ClosePairsFinder):
9145 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9147 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9149 def __init__(self, cpf=None):
9150 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9151 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9153 def do_get_inputs(self, m, pis):
9154 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9155 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9157 def get_close_pairs(self, *args):
9159 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9160 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9161 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9162 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9163 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9165 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9167 def get_version_info(self):
9168 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9169 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9170 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9173 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9174 return _IMP_core.RigidClosePairsFinder___str__(self)
9177 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9178 return _IMP_core.RigidClosePairsFinder___repr__(self)
9182 return _object_cast_to_RigidClosePairsFinder(o)
9185 def _get_as_binary(self):
9186 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9187 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9189 def _set_from_binary(self, p):
9190 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9191 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9193 def __getstate__(self):
9194 p = self._get_as_binary()
9195 if len(self.__dict__) > 1:
9196 d = self.__dict__.copy()
9201 def __setstate__(self, p):
9202 if not hasattr(self,
'this'):
9204 if isinstance(p, tuple):
9206 self.__dict__.update(d)
9207 return self._set_from_binary(p)
9211 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9213 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9216 __repr__ = _swig_repr
9218 def __init__(self, *args):
9220 SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9221 __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9223 _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9225 def do_get_inputs(self, m, pis):
9226 r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9227 return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9229 def get_version_info(self):
9230 r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9231 return _IMP_core._SphereDistancePairScore_get_version_info(self)
9232 __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9236 return _object_cast_to__SphereDistancePairScore(o)
9239 def _get_as_binary(self):
9240 r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9241 return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9243 def _set_from_binary(self, p):
9244 r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9245 return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9247 def __getstate__(self):
9248 p = self._get_as_binary()
9249 if len(self.__dict__) > 1:
9250 d = self.__dict__.copy()
9255 def __setstate__(self, p):
9256 if not hasattr(self,
'this'):
9258 if isinstance(p, tuple):
9260 self.__dict__.update(d)
9261 return self._set_from_binary(p)
9265 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9266 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9267 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9269 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9271 def __init__(self, *args):
9273 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9274 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9276 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9278 def do_get_inputs(self, m, pis):
9279 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9280 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9282 def get_version_info(self):
9283 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9284 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9285 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9288 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9289 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9292 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9293 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9297 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9300 def _get_as_binary(self):
9301 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9302 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9304 def _set_from_binary(self, p):
9305 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9306 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9308 def __getstate__(self):
9309 p = self._get_as_binary()
9310 if len(self.__dict__) > 1:
9311 d = self.__dict__.copy()
9316 def __setstate__(self, p):
9317 if not hasattr(self,
'this'):
9319 if isinstance(p, tuple):
9321 self.__dict__.update(d)
9322 return self._set_from_binary(p)
9326 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9327 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9328 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9330 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9332 def __init__(self, d0, k):
9333 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9334 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9336 def get_rest_length(self):
9337 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9338 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9340 def get_stiffness(self):
9341 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9342 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9344 def do_get_inputs(self, m, pis):
9345 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9346 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9348 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9349 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"""
9350 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9352 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9353 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"""
9354 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9356 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9357 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"""
9358 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9360 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9361 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"""
9362 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9364 def get_version_info(self):
9365 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9366 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9367 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9370 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9371 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9374 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9375 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9379 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9383 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9385 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9387 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9389 def __init__(self, *args):
9391 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9392 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9394 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9396 def do_get_inputs(self, m, pis):
9397 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9398 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9400 def get_version_info(self):
9401 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9402 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9403 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9406 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9407 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9410 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9411 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9415 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9418 def _get_as_binary(self):
9419 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9420 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9422 def _set_from_binary(self, p):
9423 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9424 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9426 def __getstate__(self):
9427 p = self._get_as_binary()
9428 if len(self.__dict__) > 1:
9429 d = self.__dict__.copy()
9434 def __setstate__(self, p):
9435 if not hasattr(self,
'this'):
9437 if isinstance(p, tuple):
9439 self.__dict__.update(d)
9440 return self._set_from_binary(p)
9444 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9446 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9448 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9450 def __init__(self, *args):
9451 r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9452 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9454 def do_get_inputs(self, m, pis):
9455 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9456 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9458 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9459 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"""
9460 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9462 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9463 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"""
9464 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9466 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9467 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"""
9468 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9470 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9471 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"""
9472 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9474 def get_version_info(self):
9475 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9476 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9477 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9480 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9481 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9484 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9485 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9489 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9493 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9495 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9499 def __init__(self, *args):
9500 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9501 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9503 def do_get_inputs(self, m, pis):
9504 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9505 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9507 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9508 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"""
9509 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9511 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9512 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"""
9513 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9515 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9516 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"""
9517 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9519 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9520 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"""
9521 return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9523 def get_version_info(self):
9524 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9525 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9526 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9529 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9530 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9533 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9534 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9538 return _object_cast_to_WeightedSphereDistancePairScore(o)
9542 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9544 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9546 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9548 def __init__(self, *args):
9550 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9551 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9553 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9555 def do_get_inputs(self, m, pis):
9556 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9557 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9559 def get_version_info(self):
9560 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9561 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9562 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9565 r"""__str__(SoftSpherePairScore self) -> std::string"""
9566 return _IMP_core.SoftSpherePairScore___str__(self)
9569 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9570 return _IMP_core.SoftSpherePairScore___repr__(self)
9574 return _object_cast_to_SoftSpherePairScore(o)
9577 def _get_as_binary(self):
9578 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9579 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9581 def _set_from_binary(self, p):
9582 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9583 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9585 def __getstate__(self):
9586 p = self._get_as_binary()
9587 if len(self.__dict__) > 1:
9588 d = self.__dict__.copy()
9593 def __setstate__(self, p):
9594 if not hasattr(self,
'this'):
9596 if isinstance(p, tuple):
9598 self.__dict__.update(d)
9599 return self._set_from_binary(p)
9603 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9605 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9607 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9609 def __init__(self, *args):
9610 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9611 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9613 def do_get_inputs(self, m, pis):
9614 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9615 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9617 def get_version_info(self):
9618 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9619 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9620 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9623 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9624 return _IMP_core.SurfaceDistancePairScore___str__(self)
9627 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9628 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9632 return _object_cast_to_SurfaceDistancePairScore(o)
9636 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9638 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9640 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9642 def __init__(self, *args):
9643 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9644 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9646 def do_get_inputs(self, m, pis):
9647 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9648 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9650 def get_version_info(self):
9651 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9652 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9653 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9656 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9657 return _IMP_core.SurfaceHeightPairScore___str__(self)
9660 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9661 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9665 return _object_cast_to_SurfaceHeightPairScore(o)
9669 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9671 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9673 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9675 def __init__(self, *args):
9676 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9677 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9679 def do_get_inputs(self, m, pis):
9680 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9681 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9683 def get_version_info(self):
9684 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9685 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9686 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9689 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9690 return _IMP_core.SurfaceDepthPairScore___str__(self)
9693 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9694 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9698 return _object_cast_to_SurfaceDepthPairScore(o)
9702 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9704 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9706 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9708 def __init__(self, *args):
9709 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9710 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9712 def do_get_inputs(self, m, pis):
9713 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9714 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9716 def get_version_info(self):
9717 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9718 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9719 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9722 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9723 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9726 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9727 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9731 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9735 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9737 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9739 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9741 def __init__(self, *args):
9742 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9743 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9745 def do_get_inputs(self, m, pis):
9746 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9747 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9749 def get_version_info(self):
9750 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9751 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9752 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9755 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9756 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9759 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9760 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9764 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9768 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9770 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9772 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9774 def __init__(self, *args):
9775 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9776 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9778 def do_get_inputs(self, m, pis):
9779 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9780 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9782 def get_version_info(self):
9783 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9784 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9785 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9788 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9789 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9792 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9793 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9797 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9801 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9803 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9807 def __init__(self, *args):
9808 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9809 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9811 def do_get_inputs(self, m, pis):
9812 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9813 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9815 def get_version_info(self):
9816 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9817 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9818 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9821 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9822 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9825 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9826 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9830 return _object_cast_to_SoftSuperSurfacePairScore(o)
9834 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9836 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9838 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9840 def __init__(self, *args):
9841 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9842 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9844 def do_get_inputs(self, m, pis):
9845 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9846 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9848 def get_version_info(self):
9849 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9850 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9851 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9854 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9855 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9858 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9859 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9863 return _object_cast_to_SoftSubSurfacePairScore(o)
9867 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9869 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9871 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9873 def __init__(self, link_num, link_length):
9874 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9875 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9877 def get_version_info(self):
9878 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9879 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9880 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9882 def get_link_number(self):
9883 r"""get_link_number(SurfaceTetheredChain self) -> int"""
9884 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9886 def get_link_length(self):
9887 r"""get_link_length(SurfaceTetheredChain self) -> double"""
9888 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9890 def set_link_number(self, N):
9891 r"""set_link_number(SurfaceTetheredChain self, int N)"""
9892 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9894 def set_link_length(self, b):
9895 r"""set_link_length(SurfaceTetheredChain self, double b)"""
9896 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9898 def get_distance_at_minimum(self):
9899 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9900 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9902 def get_average_distance(self):
9903 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9904 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9907 r"""__str__(SurfaceTetheredChain self) -> std::string"""
9908 return _IMP_core.SurfaceTetheredChain___str__(self)
9911 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9912 return _IMP_core.SurfaceTetheredChain___repr__(self)
9916 return _object_cast_to_SurfaceTetheredChain(o)
9920 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9922 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9924 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9926 def __init__(self, m, ss, rbs):
9927 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9928 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9930 def do_get_inputs(self):
9931 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9932 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9934 def do_get_outputs(self):
9935 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9936 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9938 def get_version_info(self):
9939 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9940 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9941 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9944 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9945 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9948 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9949 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9953 return _object_cast_to_SurfaceSymmetryConstraint(o)
9957 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9959 r"""Proxy of C++ IMP::core::SteepestDescent class."""
9961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9963 def __init__(self, *args):
9964 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9965 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9967 def do_optimize(self, max_steps):
9968 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9969 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9971 def get_version_info(self):
9972 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9973 return _IMP_core.SteepestDescent_get_version_info(self)
9974 __swig_destroy__ = _IMP_core.delete_SteepestDescent
9976 def set_threshold(self, t):
9977 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9978 return _IMP_core.SteepestDescent_set_threshold(self, t)
9980 def set_step_size(self, t):
9981 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9982 return _IMP_core.SteepestDescent_set_step_size(self, t)
9984 def set_maximum_step_size(self, t):
9985 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9986 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9989 r"""__str__(SteepestDescent self) -> std::string"""
9990 return _IMP_core.SteepestDescent___str__(self)
9993 r"""__repr__(SteepestDescent self) -> std::string"""
9994 return _IMP_core.SteepestDescent___repr__(self)
9998 return _object_cast_to_SteepestDescent(o)
10002 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
10004 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
10006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10008 def __init__(self, f, transformation):
10009 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
10010 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
10012 def set_transformation(self, rot):
10013 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
10014 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
10016 def do_get_inputs(self, m, pis):
10017 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10018 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10020 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10021 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"""
10022 return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10024 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10025 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"""
10026 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10028 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10029 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"""
10030 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10032 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10033 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"""
10034 return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10036 def get_version_info(self):
10037 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10038 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10039 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10042 r"""__str__(TransformedDistancePairScore self) -> std::string"""
10043 return _IMP_core.TransformedDistancePairScore___str__(self)
10045 def __repr__(self):
10046 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10047 return _IMP_core.TransformedDistancePairScore___repr__(self)
10051 return _object_cast_to_TransformedDistancePairScore(o)
10055 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10057 r"""Proxy of C++ IMP::core::TypedPairScore class."""
10059 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10061 def __init__(self, typekey, allow_invalid_types=True):
10062 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10063 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10065 def set_particle_type(self, arg2):
10066 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10067 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10069 def set_pair_score(self, ps, atype, btype):
10070 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10071 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10073 def do_get_inputs(self, m, pis):
10074 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10075 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10077 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10078 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"""
10079 return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10081 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10082 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"""
10083 return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10085 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10086 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"""
10087 return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10089 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10090 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"""
10091 return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10093 def get_version_info(self):
10094 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10095 return _IMP_core.TypedPairScore_get_version_info(self)
10096 __swig_destroy__ = _IMP_core.delete_TypedPairScore
10099 r"""__str__(TypedPairScore self) -> std::string"""
10100 return _IMP_core.TypedPairScore___str__(self)
10102 def __repr__(self):
10103 r"""__repr__(TypedPairScore self) -> std::string"""
10104 return _IMP_core.TypedPairScore___repr__(self)
10108 return _object_cast_to_TypedPairScore(o)
10112 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10113 class RigidBodyDistancePairScore(KClosePairsPairScore):
10114 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10116 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10118 def __init__(self, ps, r):
10119 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10120 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10123 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10124 return _IMP_core.RigidBodyDistancePairScore___str__(self)
10126 def __repr__(self):
10127 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10128 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10132 return _object_cast_to_RigidBodyDistancePairScore(o)
10134 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10137 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10139 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10141 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10143 def __init__(self, f):
10144 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10145 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10147 def do_get_inputs(self, m, pis):
10148 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10149 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10151 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10152 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"""
10153 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10155 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10156 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"""
10157 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10159 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10160 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"""
10161 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10163 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10164 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"""
10165 return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10167 def get_version_info(self):
10168 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10169 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10170 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10173 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10174 return _IMP_core.RigidBodyAnglePairScore___str__(self)
10176 def __repr__(self):
10177 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10178 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10182 return _object_cast_to_RigidBodyAnglePairScore(o)
10186 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10188 r"""Proxy of C++ IMP::core::TableRefiner class."""
10190 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10192 def __init__(self):
10193 r"""__init__(TableRefiner self) -> TableRefiner"""
10194 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10197 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10198 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10200 def remove_particle(self, p):
10201 r"""remove_particle(TableRefiner self, Particle p)"""
10202 return _IMP_core.TableRefiner_remove_particle(self, p)
10204 def set_particle(self, p, ps):
10205 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10206 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10208 def do_get_inputs(self, m, pis):
10209 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10210 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10212 def get_version_info(self):
10213 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10214 return _IMP_core.TableRefiner_get_version_info(self)
10215 __swig_destroy__ = _IMP_core.delete_TableRefiner
10218 r"""__str__(TableRefiner self) -> std::string"""
10219 return _IMP_core.TableRefiner___str__(self)
10221 def __repr__(self):
10222 r"""__repr__(TableRefiner self) -> std::string"""
10223 return _IMP_core.TableRefiner___repr__(self)
10227 return _object_cast_to_TableRefiner(o)
10231 _IMP_core.TableRefiner_swigregister(TableRefiner)
10232 LOWER = _IMP_core.LOWER
10234 BOTH = _IMP_core.BOTH
10236 UPPER = _IMP_core.UPPER
10239 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10241 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10243 def __init__(self, *args):
10244 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10245 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10247 def set_bounding_box(self, bb):
10248 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10249 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10251 def set_number_of_attempts(self, att):
10252 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10253 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10255 def set_number_of_monte_carlo_steps(self, cg):
10256 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10257 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10259 def set_number_of_conjugate_gradient_steps(self, cg):
10260 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10261 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10263 def set_max_monte_carlo_step_size(self, *args):
10265 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10266 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10268 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10270 def set_is_refining(self, tf):
10271 r"""set_is_refining(MCCGSampler self, bool tf)"""
10272 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10274 def set_local_optimizer(self, opt):
10275 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10276 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10278 def set_save_rejected_configurations(self, tf):
10279 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10280 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10282 def get_rejected_configurations(self):
10283 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10284 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10285 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)
10286 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10287 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10288 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10290 def remove_optimizer_state(self, d):
10291 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10292 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10294 def _python_index_optimizer_state(self, d, start, stop):
10295 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10296 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10298 def remove_optimizer_states(self, d):
10299 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10300 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10302 def set_optimizer_states(self, ps):
10303 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10304 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10306 def set_optimizer_states_order(self, objs):
10307 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10308 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10310 def add_optimizer_state(self, obj):
10311 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10312 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10314 def add_optimizer_states(self, objs):
10315 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10316 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10318 def clear_optimizer_states(self):
10319 r"""clear_optimizer_states(MCCGSampler self)"""
10320 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10322 def get_number_of_optimizer_states(self):
10323 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10324 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10326 def get_has_optimizer_states(self):
10327 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10328 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10330 def get_optimizer_state(self, i):
10331 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10332 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10334 def get_optimizer_states(self):
10335 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10336 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10338 def erase_optimizer_state(self, i):
10339 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10340 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10342 def reserve_optimizer_states(self, sz):
10343 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10344 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10346 def do_sample(self):
10347 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10348 return _IMP_core.MCCGSampler_do_sample(self)
10350 def get_version_info(self):
10351 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10352 return _IMP_core.MCCGSampler_get_version_info(self)
10353 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10356 r"""__str__(MCCGSampler self) -> std::string"""
10357 return _IMP_core.MCCGSampler___str__(self)
10359 def __repr__(self):
10360 r"""__repr__(MCCGSampler self) -> std::string"""
10361 return _IMP_core.MCCGSampler___repr__(self)
10365 return _object_cast_to_MCCGSampler(o)
10369 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10371 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10373 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10375 def __init__(self, *args):
10376 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10377 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10379 def do_get_inputs(self):
10380 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10381 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10383 def get_version_info(self):
10384 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10385 return _IMP_core.MinimumRestraint_get_version_info(self)
10386 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10387 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)
10388 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10389 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10390 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10392 def remove_restraint(self, d):
10393 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10394 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10396 def _python_index_restraint(self, d, start, stop):
10397 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10398 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10400 def remove_restraints(self, d):
10401 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10402 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10404 def set_restraints(self, ps):
10405 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10406 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10408 def set_restraints_order(self, objs):
10409 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10410 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10413 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10414 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10417 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10418 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10420 def clear_restraints(self):
10421 r"""clear_restraints(MinimumRestraint self)"""
10422 return _IMP_core.MinimumRestraint_clear_restraints(self)
10424 def get_number_of_restraints(self):
10425 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10426 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10428 def get_has_restraints(self):
10429 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10430 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10432 def get_restraint(self, i):
10433 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10434 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10436 def get_restraints(self):
10437 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10438 return _IMP_core.MinimumRestraint_get_restraints(self)
10440 def erase_restraint(self, i):
10441 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10442 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10444 def reserve_restraints(self, sz):
10445 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10446 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10449 r"""__str__(MinimumRestraint self) -> std::string"""
10450 return _IMP_core.MinimumRestraint___str__(self)
10452 def __repr__(self):
10453 r"""__repr__(MinimumRestraint self) -> std::string"""
10454 return _IMP_core.MinimumRestraint___repr__(self)
10458 return _object_cast_to_MinimumRestraint(o)
10462 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10463 class Gaussian(RigidBody):
10464 r"""Proxy of C++ IMP::core::Gaussian class."""
10466 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10468 def __init__(self, *args):
10470 __init__(Gaussian self) -> Gaussian
10471 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10472 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10474 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10476 def show(self, *args):
10477 r"""show(Gaussian self, _ostream out=std::cout)"""
10478 return _IMP_core.Gaussian_show(self, *args)
10481 def setup_particle(*args):
10483 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10484 setup_particle(_ParticleAdaptor pa) -> Gaussian
10485 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10486 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10488 return _IMP_core.Gaussian_setup_particle(*args)
10491 def get_local_covariance_key():
10492 r"""get_local_covariance_key() -> ObjectKey"""
10493 return _IMP_core.Gaussian_get_local_covariance_key()
10496 def get_global_covariance_key():
10497 r"""get_global_covariance_key() -> ObjectKey"""
10498 return _IMP_core.Gaussian_get_global_covariance_key()
10501 def get_is_setup(*args):
10503 get_is_setup(_ParticleAdaptor p) -> bool
10504 get_is_setup(Model m, ParticleIndex pi) -> bool
10506 return _IMP_core.Gaussian_get_is_setup(*args)
10508 def get_local_covariance(self):
10509 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10510 return _IMP_core.Gaussian_get_local_covariance(self)
10512 def get_variances(self):
10513 r"""get_variances(Gaussian self) -> Vector3D"""
10514 return _IMP_core.Gaussian_get_variances(self)
10516 def get_global_covariance(self):
10517 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10518 return _IMP_core.Gaussian_get_global_covariance(self)
10520 def get_gaussian(self):
10521 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10522 return _IMP_core.Gaussian_get_gaussian(self)
10524 def set_gaussian(self, g):
10525 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10526 return _IMP_core.Gaussian_set_gaussian(self, g)
10528 def set_local_covariance(self, covar):
10529 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10530 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10532 def set_variances(self, v):
10533 r"""set_variances(Gaussian self, Vector3D v)"""
10534 return _IMP_core.Gaussian_set_variances(self, v)
10536 def set_global_covariance(self, covar):
10537 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10538 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10540 def update_global_covariance(self):
10541 r"""update_global_covariance(Gaussian self)"""
10542 return _IMP_core.Gaussian_update_global_covariance(self)
10544 def add_attribute(self, *args):
10546 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10547 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10548 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10549 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10550 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10551 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10552 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10553 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10554 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10555 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10556 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10557 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10559 return _IMP_core.Gaussian_add_attribute(self, *args)
10561 def get_value(self, *args):
10563 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10564 get_value(Gaussian self, IntKey a0) -> IMP::Int
10565 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10566 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10567 get_value(Gaussian self, StringKey a0) -> IMP::String
10568 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10569 get_value(Gaussian self, ObjectKey a0) -> Object
10570 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10571 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10572 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10573 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10575 return _IMP_core.Gaussian_get_value(self, *args)
10577 def set_value(self, *args):
10579 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10580 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10581 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10582 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10583 set_value(Gaussian self, StringKey a0, IMP::String a1)
10584 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10585 set_value(Gaussian self, ObjectKey a0, Object a1)
10586 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10587 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10588 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10589 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10591 return _IMP_core.Gaussian_set_value(self, *args)
10593 def remove_attribute(self, *args):
10595 remove_attribute(Gaussian self, FloatKey a0)
10596 remove_attribute(Gaussian self, IntKey a0)
10597 remove_attribute(Gaussian self, FloatsKey a0)
10598 remove_attribute(Gaussian self, IntsKey a0)
10599 remove_attribute(Gaussian self, StringKey a0)
10600 remove_attribute(Gaussian self, ParticleIndexKey a0)
10601 remove_attribute(Gaussian self, ObjectKey a0)
10602 remove_attribute(Gaussian self, SparseFloatKey a0)
10603 remove_attribute(Gaussian self, SparseIntKey a0)
10604 remove_attribute(Gaussian self, SparseStringKey a0)
10605 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10607 return _IMP_core.Gaussian_remove_attribute(self, *args)
10609 def has_attribute(self, *args):
10611 has_attribute(Gaussian self, FloatKey a0) -> bool
10612 has_attribute(Gaussian self, IntKey a0) -> bool
10613 has_attribute(Gaussian self, FloatsKey a0) -> bool
10614 has_attribute(Gaussian self, IntsKey a0) -> bool
10615 has_attribute(Gaussian self, StringKey a0) -> bool
10616 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10617 has_attribute(Gaussian self, ObjectKey a0) -> bool
10618 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10619 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10620 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10621 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10623 return _IMP_core.Gaussian_has_attribute(self, *args)
10625 def get_derivative(self, a0):
10626 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10627 return _IMP_core.Gaussian_get_derivative(self, a0)
10629 def get_name(self):
10630 r"""get_name(Gaussian self) -> std::string"""
10631 return _IMP_core.Gaussian_get_name(self)
10633 def clear_caches(self):
10634 r"""clear_caches(Gaussian self)"""
10635 return _IMP_core.Gaussian_clear_caches(self)
10637 def set_name(self, a0):
10638 r"""set_name(Gaussian self, std::string a0)"""
10639 return _IMP_core.Gaussian_set_name(self, a0)
10642 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10643 return _IMP_core.Gaussian_set_check_level(self, a0)
10645 def add_to_derivative(self, a0, a1, a2):
10646 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10647 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10649 def set_is_optimized(self, a0, a1):
10650 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10651 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10653 def get_is_optimized(self, a0):
10654 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10655 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10658 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10659 return _IMP_core.Gaussian_get_check_level(self)
10661 def __eq__(self, *args):
10663 __eq__(Gaussian self, Gaussian o) -> bool
10664 __eq__(Gaussian self, Particle d) -> bool
10666 return _IMP_core.Gaussian___eq__(self, *args)
10668 def __ne__(self, *args):
10670 __ne__(Gaussian self, Gaussian o) -> bool
10671 __ne__(Gaussian self, Particle d) -> bool
10673 return _IMP_core.Gaussian___ne__(self, *args)
10675 def __le__(self, *args):
10677 __le__(Gaussian self, Gaussian o) -> bool
10678 __le__(Gaussian self, Particle d) -> bool
10680 return _IMP_core.Gaussian___le__(self, *args)
10682 def __lt__(self, *args):
10684 __lt__(Gaussian self, Gaussian o) -> bool
10685 __lt__(Gaussian self, Particle d) -> bool
10687 return _IMP_core.Gaussian___lt__(self, *args)
10689 def __ge__(self, *args):
10691 __ge__(Gaussian self, Gaussian o) -> bool
10692 __ge__(Gaussian self, Particle d) -> bool
10694 return _IMP_core.Gaussian___ge__(self, *args)
10696 def __gt__(self, *args):
10698 __gt__(Gaussian self, Gaussian o) -> bool
10699 __gt__(Gaussian self, Particle d) -> bool
10701 return _IMP_core.Gaussian___gt__(self, *args)
10703 def __hash__(self):
10704 r"""__hash__(Gaussian self) -> std::size_t"""
10705 return _IMP_core.Gaussian___hash__(self)
10708 r"""__str__(Gaussian self) -> std::string"""
10709 return _IMP_core.Gaussian___str__(self)
10711 def __repr__(self):
10712 r"""__repr__(Gaussian self) -> std::string"""
10713 return _IMP_core.Gaussian___repr__(self)
10715 def _get_as_binary(self):
10716 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10717 return _IMP_core.Gaussian__get_as_binary(self)
10719 def _set_from_binary(self, p):
10720 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10721 return _IMP_core.Gaussian__set_from_binary(self, p)
10723 def __getstate__(self):
10724 p = self._get_as_binary()
10725 if len(self.__dict__) > 1:
10726 d = self.__dict__.copy()
10731 def __setstate__(self, p):
10732 if not hasattr(self,
'this'):
10734 if isinstance(p, tuple):
10736 self.__dict__.update(d)
10737 return self._set_from_binary(p)
10739 __swig_destroy__ = _IMP_core.delete_Gaussian
10742 _IMP_core.Gaussian_swigregister(Gaussian)
10744 r"""Proxy of C++ IMP::core::PairRestraint class."""
10746 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10748 def __init__(self, *args):
10750 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10751 __init__(PairRestraint self) -> PairRestraint
10753 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10755 def get_version_info(self):
10756 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10757 return _IMP_core.PairRestraint_get_version_info(self)
10758 __swig_destroy__ = _IMP_core.delete_PairRestraint
10761 r"""__str__(PairRestraint self) -> std::string"""
10762 return _IMP_core.PairRestraint___str__(self)
10764 def __repr__(self):
10765 r"""__repr__(PairRestraint self) -> std::string"""
10766 return _IMP_core.PairRestraint___repr__(self)
10770 return _object_cast_to_PairRestraint(o)
10773 def _get_as_binary(self):
10774 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10775 return _IMP_core.PairRestraint__get_as_binary(self)
10777 def _set_from_binary(self, p):
10778 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10779 return _IMP_core.PairRestraint__set_from_binary(self, p)
10781 def __getstate__(self):
10782 p = self._get_as_binary()
10783 if len(self.__dict__) > 1:
10784 d = self.__dict__.copy()
10789 def __setstate__(self, p):
10790 if not hasattr(self,
'this'):
10792 if isinstance(p, tuple):
10794 self.__dict__.update(d)
10795 return self._set_from_binary(p)
10799 _IMP_core.PairRestraint_swigregister(PairRestraint)
10801 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10803 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10805 def __init__(self, *args):
10807 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10808 __init__(SingletonRestraint self) -> SingletonRestraint
10810 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10812 def get_version_info(self):
10813 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10814 return _IMP_core.SingletonRestraint_get_version_info(self)
10815 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10818 r"""__str__(SingletonRestraint self) -> std::string"""
10819 return _IMP_core.SingletonRestraint___str__(self)
10821 def __repr__(self):
10822 r"""__repr__(SingletonRestraint self) -> std::string"""
10823 return _IMP_core.SingletonRestraint___repr__(self)
10827 return _object_cast_to_SingletonRestraint(o)
10830 def _get_as_binary(self):
10831 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10832 return _IMP_core.SingletonRestraint__get_as_binary(self)
10834 def _set_from_binary(self, p):
10835 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10836 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10838 def __getstate__(self):
10839 p = self._get_as_binary()
10840 if len(self.__dict__) > 1:
10841 d = self.__dict__.copy()
10846 def __setstate__(self, p):
10847 if not hasattr(self,
'this'):
10849 if isinstance(p, tuple):
10851 self.__dict__.update(d)
10852 return self._set_from_binary(p)
10856 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10858 r"""Proxy of C++ IMP::core::TripletRestraint class."""
10860 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10862 def __init__(self, *args):
10864 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10865 __init__(TripletRestraint self) -> TripletRestraint
10867 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10869 def get_version_info(self):
10870 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10871 return _IMP_core.TripletRestraint_get_version_info(self)
10872 __swig_destroy__ = _IMP_core.delete_TripletRestraint
10875 r"""__str__(TripletRestraint self) -> std::string"""
10876 return _IMP_core.TripletRestraint___str__(self)
10878 def __repr__(self):
10879 r"""__repr__(TripletRestraint self) -> std::string"""
10880 return _IMP_core.TripletRestraint___repr__(self)
10884 return _object_cast_to_TripletRestraint(o)
10887 def _get_as_binary(self):
10888 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10889 return _IMP_core.TripletRestraint__get_as_binary(self)
10891 def _set_from_binary(self, p):
10892 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10893 return _IMP_core.TripletRestraint__set_from_binary(self, p)
10895 def __getstate__(self):
10896 p = self._get_as_binary()
10897 if len(self.__dict__) > 1:
10898 d = self.__dict__.copy()
10903 def __setstate__(self, p):
10904 if not hasattr(self,
'this'):
10906 if isinstance(p, tuple):
10908 self.__dict__.update(d)
10909 return self._set_from_binary(p)
10913 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10915 r"""Proxy of C++ IMP::core::QuadRestraint class."""
10917 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10919 def __init__(self, *args):
10921 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10922 __init__(QuadRestraint self) -> QuadRestraint
10924 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10926 def get_version_info(self):
10927 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10928 return _IMP_core.QuadRestraint_get_version_info(self)
10929 __swig_destroy__ = _IMP_core.delete_QuadRestraint
10932 r"""__str__(QuadRestraint self) -> std::string"""
10933 return _IMP_core.QuadRestraint___str__(self)
10935 def __repr__(self):
10936 r"""__repr__(QuadRestraint self) -> std::string"""
10937 return _IMP_core.QuadRestraint___repr__(self)
10941 return _object_cast_to_QuadRestraint(o)
10944 def _get_as_binary(self):
10945 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10946 return _IMP_core.QuadRestraint__get_as_binary(self)
10948 def _set_from_binary(self, p):
10949 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10950 return _IMP_core.QuadRestraint__set_from_binary(self, p)
10952 def __getstate__(self):
10953 p = self._get_as_binary()
10954 if len(self.__dict__) > 1:
10955 d = self.__dict__.copy()
10960 def __setstate__(self, p):
10961 if not hasattr(self,
'this'):
10963 if isinstance(p, tuple):
10965 self.__dict__.update(d)
10966 return self._set_from_binary(p)
10970 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10972 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10974 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10976 def __init__(self, *args):
10978 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10979 __init__(SingletonConstraint self) -> SingletonConstraint
10981 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10983 def get_version_info(self):
10984 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10985 return _IMP_core.SingletonConstraint_get_version_info(self)
10986 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10989 r"""__str__(SingletonConstraint self) -> std::string"""
10990 return _IMP_core.SingletonConstraint___str__(self)
10992 def __repr__(self):
10993 r"""__repr__(SingletonConstraint self) -> std::string"""
10994 return _IMP_core.SingletonConstraint___repr__(self)
10998 return _object_cast_to_SingletonConstraint(o)
11001 def _get_as_binary(self):
11002 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
11003 return _IMP_core.SingletonConstraint__get_as_binary(self)
11005 def _set_from_binary(self, p):
11006 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
11007 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
11009 def __getstate__(self):
11010 p = self._get_as_binary()
11011 if len(self.__dict__) > 1:
11012 d = self.__dict__.copy()
11017 def __setstate__(self, p):
11018 if not hasattr(self,
'this'):
11020 if isinstance(p, tuple):
11022 self.__dict__.update(d)
11023 return self._set_from_binary(p)
11027 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11029 r"""Proxy of C++ IMP::core::PairConstraint class."""
11031 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11033 def __init__(self, *args):
11035 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11036 __init__(PairConstraint self) -> PairConstraint
11038 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11040 def get_version_info(self):
11041 r"""get_version_info(PairConstraint self) -> VersionInfo"""
11042 return _IMP_core.PairConstraint_get_version_info(self)
11043 __swig_destroy__ = _IMP_core.delete_PairConstraint
11046 r"""__str__(PairConstraint self) -> std::string"""
11047 return _IMP_core.PairConstraint___str__(self)
11049 def __repr__(self):
11050 r"""__repr__(PairConstraint self) -> std::string"""
11051 return _IMP_core.PairConstraint___repr__(self)
11055 return _object_cast_to_PairConstraint(o)
11058 def _get_as_binary(self):
11059 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11060 return _IMP_core.PairConstraint__get_as_binary(self)
11062 def _set_from_binary(self, p):
11063 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11064 return _IMP_core.PairConstraint__set_from_binary(self, p)
11066 def __getstate__(self):
11067 p = self._get_as_binary()
11068 if len(self.__dict__) > 1:
11069 d = self.__dict__.copy()
11074 def __setstate__(self, p):
11075 if not hasattr(self,
'this'):
11077 if isinstance(p, tuple):
11079 self.__dict__.update(d)
11080 return self._set_from_binary(p)
11084 _IMP_core.PairConstraint_swigregister(PairConstraint)
11086 r"""Proxy of C++ IMP::core::TripletConstraint class."""
11088 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11090 def __init__(self, *args):
11092 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11093 __init__(TripletConstraint self) -> TripletConstraint
11095 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11097 def get_version_info(self):
11098 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11099 return _IMP_core.TripletConstraint_get_version_info(self)
11100 __swig_destroy__ = _IMP_core.delete_TripletConstraint
11103 r"""__str__(TripletConstraint self) -> std::string"""
11104 return _IMP_core.TripletConstraint___str__(self)
11106 def __repr__(self):
11107 r"""__repr__(TripletConstraint self) -> std::string"""
11108 return _IMP_core.TripletConstraint___repr__(self)
11112 return _object_cast_to_TripletConstraint(o)
11115 def _get_as_binary(self):
11116 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11117 return _IMP_core.TripletConstraint__get_as_binary(self)
11119 def _set_from_binary(self, p):
11120 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11121 return _IMP_core.TripletConstraint__set_from_binary(self, p)
11123 def __getstate__(self):
11124 p = self._get_as_binary()
11125 if len(self.__dict__) > 1:
11126 d = self.__dict__.copy()
11131 def __setstate__(self, p):
11132 if not hasattr(self,
'this'):
11134 if isinstance(p, tuple):
11136 self.__dict__.update(d)
11137 return self._set_from_binary(p)
11141 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11143 r"""Proxy of C++ IMP::core::QuadConstraint class."""
11145 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11147 def __init__(self, *args):
11149 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11150 __init__(QuadConstraint self) -> QuadConstraint
11152 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11154 def get_version_info(self):
11155 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11156 return _IMP_core.QuadConstraint_get_version_info(self)
11157 __swig_destroy__ = _IMP_core.delete_QuadConstraint
11160 r"""__str__(QuadConstraint self) -> std::string"""
11161 return _IMP_core.QuadConstraint___str__(self)
11163 def __repr__(self):
11164 r"""__repr__(QuadConstraint self) -> std::string"""
11165 return _IMP_core.QuadConstraint___repr__(self)
11169 return _object_cast_to_QuadConstraint(o)
11172 def _get_as_binary(self):
11173 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11174 return _IMP_core.QuadConstraint__get_as_binary(self)
11176 def _set_from_binary(self, p):
11177 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11178 return _IMP_core.QuadConstraint__set_from_binary(self, p)
11180 def __getstate__(self):
11181 p = self._get_as_binary()
11182 if len(self.__dict__) > 1:
11183 d = self.__dict__.copy()
11188 def __setstate__(self, p):
11189 if not hasattr(self,
'this'):
11191 if isinstance(p, tuple):
11193 self.__dict__.update(d)
11194 return self._set_from_binary(p)
11198 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11200 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11202 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11204 def __init__(self, *args):
11206 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11207 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11209 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11211 def do_get_inputs(self, arg2, arg3):
11212 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11213 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11215 def get_value(self, *args):
11217 get_value(ConstantSingletonPredicate self, Particle a) -> int
11218 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11220 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11222 def get_value_index(self, *args):
11224 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11225 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11227 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11229 def get_version_info(self):
11230 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11231 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11232 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11235 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11236 return _IMP_core.ConstantSingletonPredicate___str__(self)
11238 def __repr__(self):
11239 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11240 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11244 return _object_cast_to_ConstantSingletonPredicate(o)
11247 def _get_as_binary(self):
11248 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11249 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11251 def _set_from_binary(self, p):
11252 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11253 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11255 def __getstate__(self):
11256 p = self._get_as_binary()
11257 if len(self.__dict__) > 1:
11258 d = self.__dict__.copy()
11263 def __setstate__(self, p):
11264 if not hasattr(self,
'this'):
11266 if isinstance(p, tuple):
11268 self.__dict__.update(d)
11269 return self._set_from_binary(p)
11273 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11275 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11277 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11279 def __init__(self, *args):
11280 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11281 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11283 def do_get_inputs(self, m, pis):
11284 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11285 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11287 def get_value(self, *args):
11289 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11290 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11292 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11294 def get_value_index(self, *args):
11296 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11297 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11299 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11301 def get_version_info(self):
11302 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11303 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11304 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11307 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11308 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11310 def __repr__(self):
11311 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11312 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11316 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11319 def _get_as_binary(self):
11320 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11321 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11323 def _set_from_binary(self, p):
11324 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11325 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11327 def __getstate__(self):
11328 p = self._get_as_binary()
11329 if len(self.__dict__) > 1:
11330 d = self.__dict__.copy()
11335 def __setstate__(self, p):
11336 if not hasattr(self,
'this'):
11338 if isinstance(p, tuple):
11340 self.__dict__.update(d)
11341 return self._set_from_binary(p)
11345 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11347 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11349 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11351 def __init__(self, *args):
11352 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11353 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11355 def do_get_inputs(self, m, pis):
11356 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11357 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11359 def get_value(self, *args):
11361 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11362 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11363 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11365 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11367 def get_value_index(self, *args):
11369 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11370 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11372 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11374 def get_version_info(self):
11375 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11376 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11377 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11380 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11381 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11383 def __repr__(self):
11384 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11385 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11389 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11393 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11395 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11397 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11399 def __init__(self, *args):
11400 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11401 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11403 def do_get_inputs(self, arg2, arg3):
11404 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11405 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11407 def get_value(self, *args):
11409 get_value(AllSameSingletonPredicate self, Particle a) -> int
11410 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11412 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11414 def get_value_index(self, *args):
11416 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11417 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11419 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11421 def get_version_info(self):
11422 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11423 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11424 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11427 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11428 return _IMP_core.AllSameSingletonPredicate___str__(self)
11430 def __repr__(self):
11431 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11432 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11436 return _object_cast_to_AllSameSingletonPredicate(o)
11439 def _get_as_binary(self):
11440 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11441 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11443 def _set_from_binary(self, p):
11444 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11445 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11447 def __getstate__(self):
11448 p = self._get_as_binary()
11449 if len(self.__dict__) > 1:
11450 d = self.__dict__.copy()
11455 def __setstate__(self, p):
11456 if not hasattr(self,
'this'):
11458 if isinstance(p, tuple):
11460 self.__dict__.update(d)
11461 return self._set_from_binary(p)
11465 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11467 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11469 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11471 def __init__(self, *args):
11472 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11473 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11475 def do_get_inputs(self, arg2, arg3):
11476 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11477 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11479 def get_value(self, *args):
11481 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11482 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11484 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11486 def get_value_index(self, *args):
11488 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11489 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11491 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11493 def get_version_info(self):
11494 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11495 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11496 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11499 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11500 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11502 def __repr__(self):
11503 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11504 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11508 return _object_cast_to_CoinFlipSingletonPredicate(o)
11512 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11514 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11516 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11518 def __init__(self, *args):
11520 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11521 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11523 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11525 def do_get_inputs(self, arg2, arg3):
11526 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11527 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11529 def get_value(self, *args):
11531 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11532 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11534 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11536 def get_value_index(self, *args):
11538 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11539 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11541 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11543 def get_version_info(self):
11544 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11545 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11546 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11549 r"""__str__(ConstantPairPredicate self) -> std::string"""
11550 return _IMP_core.ConstantPairPredicate___str__(self)
11552 def __repr__(self):
11553 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11554 return _IMP_core.ConstantPairPredicate___repr__(self)
11558 return _object_cast_to_ConstantPairPredicate(o)
11561 def _get_as_binary(self):
11562 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11563 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11565 def _set_from_binary(self, p):
11566 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11567 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11569 def __getstate__(self):
11570 p = self._get_as_binary()
11571 if len(self.__dict__) > 1:
11572 d = self.__dict__.copy()
11577 def __setstate__(self, p):
11578 if not hasattr(self,
'this'):
11580 if isinstance(p, tuple):
11582 self.__dict__.update(d)
11583 return self._set_from_binary(p)
11587 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11589 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11591 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11593 def __init__(self, *args):
11594 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11595 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11597 def do_get_inputs(self, m, pis):
11598 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11599 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11601 def get_value(self, *args):
11603 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11604 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11606 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11608 def get_value_index(self, *args):
11610 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11611 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11613 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11615 def get_version_info(self):
11616 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11617 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11618 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11621 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11622 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11624 def __repr__(self):
11625 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11626 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11630 return _object_cast_to_UnorderedTypePairPredicate(o)
11633 def _get_as_binary(self):
11634 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11635 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11637 def _set_from_binary(self, p):
11638 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11639 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11641 def __getstate__(self):
11642 p = self._get_as_binary()
11643 if len(self.__dict__) > 1:
11644 d = self.__dict__.copy()
11649 def __setstate__(self, p):
11650 if not hasattr(self,
'this'):
11652 if isinstance(p, tuple):
11654 self.__dict__.update(d)
11655 return self._set_from_binary(p)
11659 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11661 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11663 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11665 def __init__(self, *args):
11666 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11667 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11669 def do_get_inputs(self, m, pis):
11670 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11671 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11673 def get_value(self, *args):
11675 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11676 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11677 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11679 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11681 def get_value_index(self, *args):
11683 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11684 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11686 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11688 def get_version_info(self):
11689 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11690 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11691 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11694 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11695 return _IMP_core.OrderedTypePairPredicate___str__(self)
11697 def __repr__(self):
11698 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11699 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11703 return _object_cast_to_OrderedTypePairPredicate(o)
11707 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11709 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11711 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11713 def __init__(self, *args):
11714 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11715 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11717 def do_get_inputs(self, arg2, arg3):
11718 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11719 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11721 def get_value(self, *args):
11723 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11724 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11726 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11728 def get_value_index(self, *args):
11730 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11731 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11733 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11735 def get_version_info(self):
11736 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11737 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11738 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11741 r"""__str__(AllSamePairPredicate self) -> std::string"""
11742 return _IMP_core.AllSamePairPredicate___str__(self)
11744 def __repr__(self):
11745 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11746 return _IMP_core.AllSamePairPredicate___repr__(self)
11750 return _object_cast_to_AllSamePairPredicate(o)
11753 def _get_as_binary(self):
11754 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11755 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11757 def _set_from_binary(self, p):
11758 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11759 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11761 def __getstate__(self):
11762 p = self._get_as_binary()
11763 if len(self.__dict__) > 1:
11764 d = self.__dict__.copy()
11769 def __setstate__(self, p):
11770 if not hasattr(self,
'this'):
11772 if isinstance(p, tuple):
11774 self.__dict__.update(d)
11775 return self._set_from_binary(p)
11779 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11781 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11783 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11785 def __init__(self, *args):
11786 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11787 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11789 def do_get_inputs(self, arg2, arg3):
11790 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11791 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11793 def get_value(self, *args):
11795 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11796 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11798 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11800 def get_value_index(self, *args):
11802 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11803 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11805 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11807 def get_version_info(self):
11808 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11809 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11810 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11813 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11814 return _IMP_core.CoinFlipPairPredicate___str__(self)
11816 def __repr__(self):
11817 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11818 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11822 return _object_cast_to_CoinFlipPairPredicate(o)
11826 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11828 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11830 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11832 def __init__(self, *args):
11834 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11835 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11837 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11839 def do_get_inputs(self, arg2, arg3):
11840 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11841 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11843 def get_value(self, *args):
11845 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11846 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11848 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11850 def get_value_index(self, *args):
11852 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11853 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11855 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11857 def get_version_info(self):
11858 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11859 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11860 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11863 r"""__str__(ConstantTripletPredicate self) -> std::string"""
11864 return _IMP_core.ConstantTripletPredicate___str__(self)
11866 def __repr__(self):
11867 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11868 return _IMP_core.ConstantTripletPredicate___repr__(self)
11872 return _object_cast_to_ConstantTripletPredicate(o)
11875 def _get_as_binary(self):
11876 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11877 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11879 def _set_from_binary(self, p):
11880 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11881 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11883 def __getstate__(self):
11884 p = self._get_as_binary()
11885 if len(self.__dict__) > 1:
11886 d = self.__dict__.copy()
11891 def __setstate__(self, p):
11892 if not hasattr(self,
'this'):
11894 if isinstance(p, tuple):
11896 self.__dict__.update(d)
11897 return self._set_from_binary(p)
11901 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11903 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11905 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11907 def __init__(self, *args):
11908 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11909 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11911 def do_get_inputs(self, m, pis):
11912 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11913 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11915 def get_value(self, *args):
11917 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11918 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11920 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11922 def get_value_index(self, *args):
11924 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11925 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11927 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11929 def get_version_info(self):
11930 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11931 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11932 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11935 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11936 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11938 def __repr__(self):
11939 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11940 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11944 return _object_cast_to_UnorderedTypeTripletPredicate(o)
11947 def _get_as_binary(self):
11948 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11949 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11951 def _set_from_binary(self, p):
11952 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11953 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11955 def __getstate__(self):
11956 p = self._get_as_binary()
11957 if len(self.__dict__) > 1:
11958 d = self.__dict__.copy()
11963 def __setstate__(self, p):
11964 if not hasattr(self,
'this'):
11966 if isinstance(p, tuple):
11968 self.__dict__.update(d)
11969 return self._set_from_binary(p)
11973 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11975 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11977 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11979 def __init__(self, *args):
11980 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11981 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11983 def do_get_inputs(self, m, pis):
11984 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11985 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11987 def get_value(self, *args):
11989 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11990 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11991 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11993 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11995 def get_value_index(self, *args):
11997 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11998 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12000 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
12002 def get_version_info(self):
12003 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
12004 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
12005 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
12008 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
12009 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
12011 def __repr__(self):
12012 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
12013 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
12017 return _object_cast_to_OrderedTypeTripletPredicate(o)
12021 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12023 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12025 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12027 def __init__(self, *args):
12028 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12029 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12031 def do_get_inputs(self, arg2, arg3):
12032 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12033 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12035 def get_value(self, *args):
12037 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12038 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12040 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12042 def get_value_index(self, *args):
12044 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12045 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12047 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12049 def get_version_info(self):
12050 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12051 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12052 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12055 r"""__str__(AllSameTripletPredicate self) -> std::string"""
12056 return _IMP_core.AllSameTripletPredicate___str__(self)
12058 def __repr__(self):
12059 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12060 return _IMP_core.AllSameTripletPredicate___repr__(self)
12064 return _object_cast_to_AllSameTripletPredicate(o)
12067 def _get_as_binary(self):
12068 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12069 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12071 def _set_from_binary(self, p):
12072 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12073 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12075 def __getstate__(self):
12076 p = self._get_as_binary()
12077 if len(self.__dict__) > 1:
12078 d = self.__dict__.copy()
12083 def __setstate__(self, p):
12084 if not hasattr(self,
'this'):
12086 if isinstance(p, tuple):
12088 self.__dict__.update(d)
12089 return self._set_from_binary(p)
12093 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12095 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12097 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12099 def __init__(self, *args):
12100 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12101 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12103 def do_get_inputs(self, arg2, arg3):
12104 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12105 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12107 def get_value(self, *args):
12109 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12110 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12112 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12114 def get_value_index(self, *args):
12116 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12117 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12119 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12121 def get_version_info(self):
12122 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12123 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12124 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12127 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12128 return _IMP_core.CoinFlipTripletPredicate___str__(self)
12130 def __repr__(self):
12131 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12132 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12136 return _object_cast_to_CoinFlipTripletPredicate(o)
12140 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12142 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12144 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12146 def __init__(self, *args):
12148 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12149 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12151 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12153 def do_get_inputs(self, arg2, arg3):
12154 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12155 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12157 def get_value(self, *args):
12159 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12160 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12162 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12164 def get_value_index(self, *args):
12166 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12167 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12169 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12171 def get_version_info(self):
12172 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12173 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12174 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12177 r"""__str__(ConstantQuadPredicate self) -> std::string"""
12178 return _IMP_core.ConstantQuadPredicate___str__(self)
12180 def __repr__(self):
12181 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12182 return _IMP_core.ConstantQuadPredicate___repr__(self)
12186 return _object_cast_to_ConstantQuadPredicate(o)
12189 def _get_as_binary(self):
12190 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12191 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12193 def _set_from_binary(self, p):
12194 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12195 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12197 def __getstate__(self):
12198 p = self._get_as_binary()
12199 if len(self.__dict__) > 1:
12200 d = self.__dict__.copy()
12205 def __setstate__(self, p):
12206 if not hasattr(self,
'this'):
12208 if isinstance(p, tuple):
12210 self.__dict__.update(d)
12211 return self._set_from_binary(p)
12215 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12217 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12221 def __init__(self, *args):
12222 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12223 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12225 def do_get_inputs(self, m, pis):
12226 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12227 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12229 def get_value(self, *args):
12231 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12232 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12234 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12236 def get_value_index(self, *args):
12238 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12239 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12241 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12243 def get_version_info(self):
12244 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12245 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12246 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12249 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12250 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12252 def __repr__(self):
12253 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12254 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12258 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12261 def _get_as_binary(self):
12262 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12263 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12265 def _set_from_binary(self, p):
12266 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12267 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12269 def __getstate__(self):
12270 p = self._get_as_binary()
12271 if len(self.__dict__) > 1:
12272 d = self.__dict__.copy()
12277 def __setstate__(self, p):
12278 if not hasattr(self,
'this'):
12280 if isinstance(p, tuple):
12282 self.__dict__.update(d)
12283 return self._set_from_binary(p)
12287 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12289 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12291 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12293 def __init__(self, *args):
12294 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12295 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12297 def do_get_inputs(self, m, pis):
12298 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12299 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12301 def get_value(self, *args):
12303 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12304 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12305 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12307 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12309 def get_value_index(self, *args):
12311 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12312 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12314 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12316 def get_version_info(self):
12317 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12318 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12319 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12322 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12323 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12325 def __repr__(self):
12326 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12327 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12331 return _object_cast_to_OrderedTypeQuadPredicate(o)
12335 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12337 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12339 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12341 def __init__(self, *args):
12342 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12343 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12345 def do_get_inputs(self, arg2, arg3):
12346 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12347 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12349 def get_value(self, *args):
12351 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12352 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12354 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12356 def get_value_index(self, *args):
12358 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12359 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12361 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12363 def get_version_info(self):
12364 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12365 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12366 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12369 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12370 return _IMP_core.AllSameQuadPredicate___str__(self)
12372 def __repr__(self):
12373 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12374 return _IMP_core.AllSameQuadPredicate___repr__(self)
12378 return _object_cast_to_AllSameQuadPredicate(o)
12381 def _get_as_binary(self):
12382 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12383 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12385 def _set_from_binary(self, p):
12386 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12387 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12389 def __getstate__(self):
12390 p = self._get_as_binary()
12391 if len(self.__dict__) > 1:
12392 d = self.__dict__.copy()
12397 def __setstate__(self, p):
12398 if not hasattr(self,
'this'):
12400 if isinstance(p, tuple):
12402 self.__dict__.update(d)
12403 return self._set_from_binary(p)
12407 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12409 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12411 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12413 def __init__(self, *args):
12414 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12415 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12417 def do_get_inputs(self, arg2, arg3):
12418 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12419 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12421 def get_value(self, *args):
12423 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12424 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12426 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12428 def get_value_index(self, *args):
12430 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12431 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12433 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12435 def get_version_info(self):
12436 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12437 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12438 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12441 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12442 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12444 def __repr__(self):
12445 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12446 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12450 return _object_cast_to_CoinFlipQuadPredicate(o)
12454 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12456 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12458 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12460 def __init__(self, *args):
12461 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12462 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12464 def do_get_inputs(self, m, pi):
12465 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12466 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12468 def get_value(self, *args):
12470 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12471 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12473 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12475 def get_value_index(self, *args):
12477 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12478 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12480 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12482 def get_version_info(self):
12483 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12484 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12485 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12488 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12489 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12491 def __repr__(self):
12492 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12493 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12497 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12501 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12503 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12505 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12507 def __init__(self, *args):
12508 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12509 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12511 def do_get_inputs(self, m, pi):
12512 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12513 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12515 def get_value(self, *args):
12517 get_value(AttributeSingletonPredicate self, Particle a) -> int
12518 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12520 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12522 def get_value_index(self, *args):
12524 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12525 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12527 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12529 def get_version_info(self):
12530 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12531 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12532 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12535 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12536 return _IMP_core.AttributeSingletonPredicate___str__(self)
12538 def __repr__(self):
12539 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12540 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12544 return _object_cast_to_AttributeSingletonPredicate(o)
12548 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12550 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12552 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12554 def __init__(self, *args):
12555 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12556 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12558 def do_get_inputs(self, m, pi):
12559 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12560 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12562 def get_value(self, *args):
12564 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12565 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12567 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12569 def get_value_index(self, *args):
12571 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12572 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12574 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12576 def get_version_info(self):
12577 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12578 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12579 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12582 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12583 return _IMP_core.IsCollisionPairPredicate___str__(self)
12585 def __repr__(self):
12586 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12587 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12591 return _object_cast_to_IsCollisionPairPredicate(o)
12595 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12596 class AngleRestraint(TripletRestraint):
12597 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12601 def __init__(self, *args):
12603 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12604 __init__(AngleRestraint self) -> AngleRestraint
12606 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12607 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12610 r"""__str__(AngleRestraint self) -> std::string"""
12611 return _IMP_core.AngleRestraint___str__(self)
12613 def __repr__(self):
12614 r"""__repr__(AngleRestraint self) -> std::string"""
12615 return _IMP_core.AngleRestraint___repr__(self)
12619 return _object_cast_to_AngleRestraint(o)
12622 def _get_as_binary(self):
12623 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12624 return _IMP_core.AngleRestraint__get_as_binary(self)
12626 def _set_from_binary(self, p):
12627 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12628 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12630 def __getstate__(self):
12631 p = self._get_as_binary()
12632 if len(self.__dict__) > 1:
12633 d = self.__dict__.copy()
12638 def __setstate__(self, p):
12639 if not hasattr(self,
'this'):
12641 if isinstance(p, tuple):
12643 self.__dict__.update(d)
12644 return self._set_from_binary(p)
12648 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12649 class RigidBodyMover(MonteCarloMover):
12650 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12652 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12654 def __init__(self, *args):
12656 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12657 __init__(RigidBodyMover self) -> RigidBodyMover
12659 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12661 def set_maximum_translation(self, mt):
12662 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12663 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12665 def set_maximum_rotation(self, mr):
12666 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12667 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12669 def get_maximum_translation(self):
12670 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12671 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12673 def get_maximum_rotation(self):
12674 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12675 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12677 def get_version_info(self):
12678 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12679 return _IMP_core.RigidBodyMover_get_version_info(self)
12680 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12683 r"""__str__(RigidBodyMover self) -> std::string"""
12684 return _IMP_core.RigidBodyMover___str__(self)
12686 def __repr__(self):
12687 r"""__repr__(RigidBodyMover self) -> std::string"""
12688 return _IMP_core.RigidBodyMover___repr__(self)
12692 return _object_cast_to_RigidBodyMover(o)
12695 def _get_as_binary(self):
12696 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12697 return _IMP_core.RigidBodyMover__get_as_binary(self)
12699 def _set_from_binary(self, p):
12700 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12701 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12703 def __getstate__(self):
12704 p = self._get_as_binary()
12705 if len(self.__dict__) > 1:
12706 d = self.__dict__.copy()
12711 def __setstate__(self, p):
12712 if not hasattr(self,
'this'):
12714 if isinstance(p, tuple):
12716 self.__dict__.update(d)
12717 return self._set_from_binary(p)
12721 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12722 class RigidBodyTunneler(MonteCarloMover):
12723 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12725 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12727 def __init__(self, m, pis, ref, k, move_probability=1.):
12728 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12729 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12731 def add_entry_point(self, fl):
12732 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12733 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12735 def reset_stats(self):
12736 r"""reset_stats(RigidBodyTunneler self)"""
12737 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12739 def get_number_of_rejected_moves(self):
12740 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12741 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12743 def get_number_of_proposed_moves(self):
12744 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12745 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12747 def get_number_of_impossible_moves(self):
12748 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12749 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12751 def get_number_of_calls(self):
12752 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12753 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12756 def get_reduced_coordinates(*args):
12758 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12759 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12761 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12764 def set_reduced_coordinates(m, target, ref, coords):
12765 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12766 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12768 def get_version_info(self):
12769 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12770 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12771 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12774 r"""__str__(RigidBodyTunneler self) -> std::string"""
12775 return _IMP_core.RigidBodyTunneler___str__(self)
12777 def __repr__(self):
12778 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12779 return _IMP_core.RigidBodyTunneler___repr__(self)
12783 return _object_cast_to_RigidBodyTunneler(o)
12787 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12789 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12793 def __init__(self, *args):
12795 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12796 __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
12798 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12800 def set_x0(self, *args):
12802 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12803 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12805 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12808 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12809 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12812 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12813 return _IMP_core.RigidBodyUmbrella_get_x(self)
12815 def set_alpha(self, alpha):
12816 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12817 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12819 def set_k(self, k):
12820 r"""set_k(RigidBodyUmbrella self, double k)"""
12821 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12823 def get_version_info(self):
12824 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12825 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12826 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12829 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12830 return _IMP_core.RigidBodyUmbrella___str__(self)
12832 def __repr__(self):
12833 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12834 return _IMP_core.RigidBodyUmbrella___repr__(self)
12838 return _object_cast_to_RigidBodyUmbrella(o)
12842 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12844 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12846 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12848 def __init__(self, f, sc, volume):
12849 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12850 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12852 def do_get_inputs(self):
12853 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12854 return _IMP_core.VolumeRestraint_do_get_inputs(self)
12856 def get_version_info(self):
12857 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12858 return _IMP_core.VolumeRestraint_get_version_info(self)
12859 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12862 r"""__str__(VolumeRestraint self) -> std::string"""
12863 return _IMP_core.VolumeRestraint___str__(self)
12865 def __repr__(self):
12866 r"""__repr__(VolumeRestraint self) -> std::string"""
12867 return _IMP_core.VolumeRestraint___repr__(self)
12871 return _object_cast_to_VolumeRestraint(o)
12875 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12878 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12879 return _IMP_core.get_centroid(ps)
12882 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12883 return _IMP_core.get_bounding_box(ps)
12885 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12887 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12889 def __init__(self, ps):
12890 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12891 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12893 def show_statistics(self, *args):
12894 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12895 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12898 r"""reset(MoveStatisticsScoreState self)"""
12899 return _IMP_core.MoveStatisticsScoreState_reset(self)
12901 def do_before_evaluate(self):
12902 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12903 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12905 def do_after_evaluate(self, da):
12906 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12907 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12909 def do_get_inputs(self):
12910 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12911 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12913 def do_get_outputs(self):
12914 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12915 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12917 def get_version_info(self):
12918 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12919 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12920 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12923 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12924 return _IMP_core.MoveStatisticsScoreState___str__(self)
12926 def __repr__(self):
12927 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12928 return _IMP_core.MoveStatisticsScoreState___repr__(self)
12932 return _object_cast_to_MoveStatisticsScoreState(o)
12936 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12937 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12940 r"""Proxy of C++ IMP::core::Typed class."""
12942 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12945 def get_type_key():
12946 r"""get_type_key() -> IntKey"""
12947 return _IMP_core.Typed_get_type_key()
12949 def __init__(self, *args):
12951 __init__(Typed self) -> Typed
12952 __init__(Typed self, Model m, ParticleIndex id) -> Typed
12953 __init__(Typed self, _ParticleAdaptor d) -> Typed
12955 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12957 def show(self, *args):
12958 r"""show(Typed self, _ostream out=std::cout)"""
12959 return _IMP_core.Typed_show(self, *args)
12962 def setup_particle(*args):
12964 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12965 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12967 return _IMP_core.Typed_setup_particle(*args)
12970 def get_is_setup(*args):
12972 get_is_setup(_ParticleAdaptor p) -> bool
12973 get_is_setup(Model m, ParticleIndex pi) -> bool
12975 return _IMP_core.Typed_get_is_setup(*args)
12977 def get_type(self):
12978 r"""get_type(Typed self) -> ParticleType"""
12979 return _IMP_core.Typed_get_type(self)
12981 def set_type(self, pt):
12982 r"""set_type(Typed self, ParticleType pt)"""
12983 return _IMP_core.Typed_set_type(self, pt)
12985 def add_attribute(self, *args):
12987 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12988 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12989 add_attribute(Typed self, IntKey a0, IMP::Int a1)
12990 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12991 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12992 add_attribute(Typed self, StringKey a0, IMP::String a1)
12993 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12994 add_attribute(Typed self, ObjectKey a0, Object a1)
12995 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12996 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12997 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12998 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13000 return _IMP_core.Typed_add_attribute(self, *args)
13002 def get_value(self, *args):
13004 get_value(Typed self, FloatKey a0) -> IMP::Float
13005 get_value(Typed self, IntKey a0) -> IMP::Int
13006 get_value(Typed self, FloatsKey a0) -> IMP::Floats
13007 get_value(Typed self, IntsKey a0) -> IMP::Ints
13008 get_value(Typed self, StringKey a0) -> IMP::String
13009 get_value(Typed self, ParticleIndexKey a0) -> Particle
13010 get_value(Typed self, ObjectKey a0) -> Object
13011 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
13012 get_value(Typed self, SparseIntKey a0) -> IMP::Int
13013 get_value(Typed self, SparseStringKey a0) -> IMP::String
13014 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
13016 return _IMP_core.Typed_get_value(self, *args)
13018 def set_value(self, *args):
13020 set_value(Typed self, FloatKey a0, IMP::Float a1)
13021 set_value(Typed self, IntKey a0, IMP::Int a1)
13022 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13023 set_value(Typed self, IntsKey a0, IMP::Ints a1)
13024 set_value(Typed self, StringKey a0, IMP::String a1)
13025 set_value(Typed self, ParticleIndexKey a0, Particle a1)
13026 set_value(Typed self, ObjectKey a0, Object a1)
13027 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13028 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13029 set_value(Typed self, SparseStringKey a0, IMP::String a1)
13030 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13032 return _IMP_core.Typed_set_value(self, *args)
13034 def remove_attribute(self, *args):
13036 remove_attribute(Typed self, FloatKey a0)
13037 remove_attribute(Typed self, IntKey a0)
13038 remove_attribute(Typed self, FloatsKey a0)
13039 remove_attribute(Typed self, IntsKey a0)
13040 remove_attribute(Typed self, StringKey a0)
13041 remove_attribute(Typed self, ParticleIndexKey a0)
13042 remove_attribute(Typed self, ObjectKey a0)
13043 remove_attribute(Typed self, SparseFloatKey a0)
13044 remove_attribute(Typed self, SparseIntKey a0)
13045 remove_attribute(Typed self, SparseStringKey a0)
13046 remove_attribute(Typed self, SparseParticleIndexKey a0)
13048 return _IMP_core.Typed_remove_attribute(self, *args)
13050 def has_attribute(self, *args):
13052 has_attribute(Typed self, FloatKey a0) -> bool
13053 has_attribute(Typed self, IntKey a0) -> bool
13054 has_attribute(Typed self, FloatsKey a0) -> bool
13055 has_attribute(Typed self, IntsKey a0) -> bool
13056 has_attribute(Typed self, StringKey a0) -> bool
13057 has_attribute(Typed self, ParticleIndexKey a0) -> bool
13058 has_attribute(Typed self, ObjectKey a0) -> bool
13059 has_attribute(Typed self, SparseFloatKey a0) -> bool
13060 has_attribute(Typed self, SparseIntKey a0) -> bool
13061 has_attribute(Typed self, SparseStringKey a0) -> bool
13062 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13064 return _IMP_core.Typed_has_attribute(self, *args)
13066 def get_derivative(self, a0):
13067 r"""get_derivative(Typed self, FloatKey a0) -> double"""
13068 return _IMP_core.Typed_get_derivative(self, a0)
13070 def get_name(self):
13071 r"""get_name(Typed self) -> std::string"""
13072 return _IMP_core.Typed_get_name(self)
13074 def clear_caches(self):
13075 r"""clear_caches(Typed self)"""
13076 return _IMP_core.Typed_clear_caches(self)
13078 def set_name(self, a0):
13079 r"""set_name(Typed self, std::string a0)"""
13080 return _IMP_core.Typed_set_name(self, a0)
13083 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13084 return _IMP_core.Typed_set_check_level(self, a0)
13086 def add_to_derivative(self, a0, a1, a2):
13087 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13088 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13090 def set_is_optimized(self, a0, a1):
13091 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13092 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13094 def get_is_optimized(self, a0):
13095 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13096 return _IMP_core.Typed_get_is_optimized(self, a0)
13099 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13100 return _IMP_core.Typed_get_check_level(self)
13102 def __eq__(self, *args):
13104 __eq__(Typed self, Typed o) -> bool
13105 __eq__(Typed self, Particle d) -> bool
13107 return _IMP_core.Typed___eq__(self, *args)
13109 def __ne__(self, *args):
13111 __ne__(Typed self, Typed o) -> bool
13112 __ne__(Typed self, Particle d) -> bool
13114 return _IMP_core.Typed___ne__(self, *args)
13116 def __le__(self, *args):
13118 __le__(Typed self, Typed o) -> bool
13119 __le__(Typed self, Particle d) -> bool
13121 return _IMP_core.Typed___le__(self, *args)
13123 def __lt__(self, *args):
13125 __lt__(Typed self, Typed o) -> bool
13126 __lt__(Typed self, Particle d) -> bool
13128 return _IMP_core.Typed___lt__(self, *args)
13130 def __ge__(self, *args):
13132 __ge__(Typed self, Typed o) -> bool
13133 __ge__(Typed self, Particle d) -> bool
13135 return _IMP_core.Typed___ge__(self, *args)
13137 def __gt__(self, *args):
13139 __gt__(Typed self, Typed o) -> bool
13140 __gt__(Typed self, Particle d) -> bool
13142 return _IMP_core.Typed___gt__(self, *args)
13144 def __hash__(self):
13145 r"""__hash__(Typed self) -> std::size_t"""
13146 return _IMP_core.Typed___hash__(self)
13149 r"""__str__(Typed self) -> std::string"""
13150 return _IMP_core.Typed___str__(self)
13152 def __repr__(self):
13153 r"""__repr__(Typed self) -> std::string"""
13154 return _IMP_core.Typed___repr__(self)
13156 def _get_as_binary(self):
13157 r"""_get_as_binary(Typed self) -> PyObject *"""
13158 return _IMP_core.Typed__get_as_binary(self)
13160 def _set_from_binary(self, p):
13161 r"""_set_from_binary(Typed self, PyObject * p)"""
13162 return _IMP_core.Typed__set_from_binary(self, p)
13164 def __getstate__(self):
13165 p = self._get_as_binary()
13166 if len(self.__dict__) > 1:
13167 d = self.__dict__.copy()
13172 def __setstate__(self, p):
13173 if not hasattr(self,
'this'):
13175 if isinstance(p, tuple):
13177 self.__dict__.update(d)
13178 return self._set_from_binary(p)
13180 __swig_destroy__ = _IMP_core.delete_Typed
13183 _IMP_core.Typed_swigregister(Typed)
13185 def __lshift__(*args):
13187 __lshift__(_ostream out, XYZ n) -> _ostream
13188 __lshift__(_ostream out, XYZR n) -> _ostream
13189 __lshift__(_ostream out, Direction n) -> _ostream
13190 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13191 __lshift__(_ostream out, Surface n) -> _ostream
13192 __lshift__(_ostream out, Centroid n) -> _ostream
13193 __lshift__(_ostream out, Cover n) -> _ostream
13194 __lshift__(_ostream out, Reference n) -> _ostream
13195 __lshift__(_ostream out, RigidMember n) -> _ostream
13196 __lshift__(_ostream out, RigidBody n) -> _ostream
13197 __lshift__(_ostream out, Gaussian n) -> _ostream
13198 __lshift__(_ostream out, Typed n) -> _ostream
13200 return _IMP_core.__lshift__(*args)
13202 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13204 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13206 def __init__(self, rs, out):
13207 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13208 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13210 def get_version_info(self):
13211 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13212 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13213 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13216 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13217 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13219 def __repr__(self):
13220 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13221 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13225 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13229 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13232 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13233 return _IMP_core.assign_blame(rs, ps, attribute)
13236 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13237 return _IMP_core.create_blame_geometries(*args)
13239 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13241 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13243 def __init__(self, m, q1, q2):
13244 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13245 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13247 def add_term(self, term):
13248 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13249 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13251 def do_get_inputs(self):
13252 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13253 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13255 def get_version_info(self):
13256 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13257 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13258 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13261 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13262 return _IMP_core.MultipleBinormalRestraint___str__(self)
13264 def __repr__(self):
13265 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13266 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13270 return _object_cast_to_MultipleBinormalRestraint(o)
13274 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13275 class BinormalTerm(object):
13276 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13278 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13280 def __init__(self):
13281 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13282 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13284 def set_correlation(self, correlation):
13285 r"""set_correlation(BinormalTerm self, double correlation)"""
13286 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13288 def set_weight(self, weight):
13289 r"""set_weight(BinormalTerm self, double weight)"""
13290 return _IMP_core.BinormalTerm_set_weight(self, weight)
13292 def set_means(self, means):
13293 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13294 return _IMP_core.BinormalTerm_set_means(self, means)
13296 def set_standard_deviations(self, stdevs):
13297 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13298 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13300 def show(self, *args):
13301 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13302 return _IMP_core.BinormalTerm_show(self, *args)
13305 r"""__str__(BinormalTerm self) -> std::string"""
13306 return _IMP_core.BinormalTerm___str__(self)
13308 def __repr__(self):
13309 r"""__repr__(BinormalTerm self) -> std::string"""
13310 return _IMP_core.BinormalTerm___repr__(self)
13312 def _get_as_binary(self):
13313 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13314 return _IMP_core.BinormalTerm__get_as_binary(self)
13316 def _set_from_binary(self, p):
13317 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13318 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13320 def __getstate__(self):
13321 p = self._get_as_binary()
13322 if len(self.__dict__) > 1:
13323 d = self.__dict__.copy()
13328 def __setstate__(self, p):
13329 if not hasattr(self,
'this'):
13331 if isinstance(p, tuple):
13333 self.__dict__.update(d)
13334 return self._set_from_binary(p)
13336 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13339 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13341 r"""Proxy of C++ IMP::core::Provenance class."""
13343 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13345 def get_previous(self):
13346 r"""get_previous(Provenance self) -> Provenance"""
13347 return _IMP_core.Provenance_get_previous(self)
13349 def set_previous(self, p):
13350 r"""set_previous(Provenance self, Provenance p)"""
13351 return _IMP_core.Provenance_set_previous(self, p)
13353 def __init__(self, *args):
13355 __init__(Provenance self) -> Provenance
13356 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13357 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13359 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13362 def get_is_setup(*args):
13364 get_is_setup(Model m, ParticleIndex pi) -> bool
13365 get_is_setup(_ParticleAdaptor p) -> bool
13367 return _IMP_core.Provenance_get_is_setup(*args)
13369 def show(self, *args):
13370 r"""show(Provenance self, _ostream out=std::cout)"""
13371 return _IMP_core.Provenance_show(self, *args)
13374 def setup_particle(*args):
13376 setup_particle(Model m, ParticleIndex pi) -> Provenance
13377 setup_particle(_ParticleAdaptor pa) -> Provenance
13379 return _IMP_core.Provenance_setup_particle(*args)
13381 def add_attribute(self, *args):
13383 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13384 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13385 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13386 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13387 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13388 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13389 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13390 add_attribute(Provenance self, ObjectKey a0, Object a1)
13391 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13392 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13393 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13394 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13396 return _IMP_core.Provenance_add_attribute(self, *args)
13398 def get_value(self, *args):
13400 get_value(Provenance self, FloatKey a0) -> IMP::Float
13401 get_value(Provenance self, IntKey a0) -> IMP::Int
13402 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13403 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13404 get_value(Provenance self, StringKey a0) -> IMP::String
13405 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13406 get_value(Provenance self, ObjectKey a0) -> Object
13407 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13408 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13409 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13410 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13412 return _IMP_core.Provenance_get_value(self, *args)
13414 def set_value(self, *args):
13416 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13417 set_value(Provenance self, IntKey a0, IMP::Int a1)
13418 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13419 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13420 set_value(Provenance self, StringKey a0, IMP::String a1)
13421 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13422 set_value(Provenance self, ObjectKey a0, Object a1)
13423 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13424 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13425 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13426 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13428 return _IMP_core.Provenance_set_value(self, *args)
13430 def remove_attribute(self, *args):
13432 remove_attribute(Provenance self, FloatKey a0)
13433 remove_attribute(Provenance self, IntKey a0)
13434 remove_attribute(Provenance self, FloatsKey a0)
13435 remove_attribute(Provenance self, IntsKey a0)
13436 remove_attribute(Provenance self, StringKey a0)
13437 remove_attribute(Provenance self, ParticleIndexKey a0)
13438 remove_attribute(Provenance self, ObjectKey a0)
13439 remove_attribute(Provenance self, SparseFloatKey a0)
13440 remove_attribute(Provenance self, SparseIntKey a0)
13441 remove_attribute(Provenance self, SparseStringKey a0)
13442 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13444 return _IMP_core.Provenance_remove_attribute(self, *args)
13446 def has_attribute(self, *args):
13448 has_attribute(Provenance self, FloatKey a0) -> bool
13449 has_attribute(Provenance self, IntKey a0) -> bool
13450 has_attribute(Provenance self, FloatsKey a0) -> bool
13451 has_attribute(Provenance self, IntsKey a0) -> bool
13452 has_attribute(Provenance self, StringKey a0) -> bool
13453 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13454 has_attribute(Provenance self, ObjectKey a0) -> bool
13455 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13456 has_attribute(Provenance self, SparseIntKey a0) -> bool
13457 has_attribute(Provenance self, SparseStringKey a0) -> bool
13458 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13460 return _IMP_core.Provenance_has_attribute(self, *args)
13462 def get_derivative(self, a0):
13463 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13464 return _IMP_core.Provenance_get_derivative(self, a0)
13466 def get_name(self):
13467 r"""get_name(Provenance self) -> std::string"""
13468 return _IMP_core.Provenance_get_name(self)
13470 def clear_caches(self):
13471 r"""clear_caches(Provenance self)"""
13472 return _IMP_core.Provenance_clear_caches(self)
13474 def set_name(self, a0):
13475 r"""set_name(Provenance self, std::string a0)"""
13476 return _IMP_core.Provenance_set_name(self, a0)
13479 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13480 return _IMP_core.Provenance_set_check_level(self, a0)
13482 def add_to_derivative(self, a0, a1, a2):
13483 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13484 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13486 def set_is_optimized(self, a0, a1):
13487 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13488 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13490 def get_is_optimized(self, a0):
13491 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13492 return _IMP_core.Provenance_get_is_optimized(self, a0)
13495 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13496 return _IMP_core.Provenance_get_check_level(self)
13498 def __eq__(self, *args):
13500 __eq__(Provenance self, Provenance o) -> bool
13501 __eq__(Provenance self, Particle d) -> bool
13503 return _IMP_core.Provenance___eq__(self, *args)
13505 def __ne__(self, *args):
13507 __ne__(Provenance self, Provenance o) -> bool
13508 __ne__(Provenance self, Particle d) -> bool
13510 return _IMP_core.Provenance___ne__(self, *args)
13512 def __le__(self, *args):
13514 __le__(Provenance self, Provenance o) -> bool
13515 __le__(Provenance self, Particle d) -> bool
13517 return _IMP_core.Provenance___le__(self, *args)
13519 def __lt__(self, *args):
13521 __lt__(Provenance self, Provenance o) -> bool
13522 __lt__(Provenance self, Particle d) -> bool
13524 return _IMP_core.Provenance___lt__(self, *args)
13526 def __ge__(self, *args):
13528 __ge__(Provenance self, Provenance o) -> bool
13529 __ge__(Provenance self, Particle d) -> bool
13531 return _IMP_core.Provenance___ge__(self, *args)
13533 def __gt__(self, *args):
13535 __gt__(Provenance self, Provenance o) -> bool
13536 __gt__(Provenance self, Particle d) -> bool
13538 return _IMP_core.Provenance___gt__(self, *args)
13540 def __hash__(self):
13541 r"""__hash__(Provenance self) -> std::size_t"""
13542 return _IMP_core.Provenance___hash__(self)
13545 r"""__str__(Provenance self) -> std::string"""
13546 return _IMP_core.Provenance___str__(self)
13548 def __repr__(self):
13549 r"""__repr__(Provenance self) -> std::string"""
13550 return _IMP_core.Provenance___repr__(self)
13552 def _get_as_binary(self):
13553 r"""_get_as_binary(Provenance self) -> PyObject *"""
13554 return _IMP_core.Provenance__get_as_binary(self)
13556 def _set_from_binary(self, p):
13557 r"""_set_from_binary(Provenance self, PyObject * p)"""
13558 return _IMP_core.Provenance__set_from_binary(self, p)
13560 def __getstate__(self):
13561 p = self._get_as_binary()
13562 if len(self.__dict__) > 1:
13563 d = self.__dict__.copy()
13568 def __setstate__(self, p):
13569 if not hasattr(self,
'this'):
13571 if isinstance(p, tuple):
13573 self.__dict__.update(d)
13574 return self._set_from_binary(p)
13576 __swig_destroy__ = _IMP_core.delete_Provenance
13579 _IMP_core.Provenance_swigregister(Provenance)
13580 class StructureProvenance(Provenance):
13581 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13583 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13585 def set_filename(self, filename):
13586 r"""set_filename(StructureProvenance self, std::string filename)"""
13587 return _IMP_core.StructureProvenance_set_filename(self, filename)
13589 def get_filename(self):
13590 r"""get_filename(StructureProvenance self) -> std::string"""
13591 return _IMP_core.StructureProvenance_get_filename(self)
13593 def set_chain_id(self, chain_id):
13594 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13595 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13598 r"""get_chain_id(StructureProvenance self) -> std::string"""
13599 return _IMP_core.StructureProvenance_get_chain_id(self)
13601 def set_residue_offset(self, residue_offset):
13602 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13603 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13605 def get_residue_offset(self):
13606 r"""get_residue_offset(StructureProvenance self) -> int"""
13607 return _IMP_core.StructureProvenance_get_residue_offset(self)
13609 def __init__(self, *args):
13611 __init__(StructureProvenance self) -> StructureProvenance
13612 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13613 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13615 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13618 def get_is_setup(*args):
13620 get_is_setup(Model m, ParticleIndex pi) -> bool
13621 get_is_setup(_ParticleAdaptor p) -> bool
13623 return _IMP_core.StructureProvenance_get_is_setup(*args)
13625 def show(self, *args):
13626 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13627 return _IMP_core.StructureProvenance_show(self, *args)
13630 def setup_particle(*args):
13632 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13633 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13634 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13635 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13636 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13637 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13639 return _IMP_core.StructureProvenance_setup_particle(*args)
13641 def add_attribute(self, *args):
13643 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13644 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13645 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13646 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13647 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13648 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13649 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13650 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13651 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13652 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13653 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13654 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13656 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13658 def get_value(self, *args):
13660 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13661 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13662 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13663 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13664 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13665 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13666 get_value(StructureProvenance self, ObjectKey a0) -> Object
13667 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13668 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13669 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13670 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13672 return _IMP_core.StructureProvenance_get_value(self, *args)
13674 def set_value(self, *args):
13676 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13677 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13678 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13679 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13680 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13681 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13682 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13683 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13684 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13685 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13686 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13688 return _IMP_core.StructureProvenance_set_value(self, *args)
13690 def remove_attribute(self, *args):
13692 remove_attribute(StructureProvenance self, FloatKey a0)
13693 remove_attribute(StructureProvenance self, IntKey a0)
13694 remove_attribute(StructureProvenance self, FloatsKey a0)
13695 remove_attribute(StructureProvenance self, IntsKey a0)
13696 remove_attribute(StructureProvenance self, StringKey a0)
13697 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13698 remove_attribute(StructureProvenance self, ObjectKey a0)
13699 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13700 remove_attribute(StructureProvenance self, SparseIntKey a0)
13701 remove_attribute(StructureProvenance self, SparseStringKey a0)
13702 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13704 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13706 def has_attribute(self, *args):
13708 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13709 has_attribute(StructureProvenance self, IntKey a0) -> bool
13710 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13711 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13712 has_attribute(StructureProvenance self, StringKey a0) -> bool
13713 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13714 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13715 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13716 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13717 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13718 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13720 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13722 def get_derivative(self, a0):
13723 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13724 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13726 def get_name(self):
13727 r"""get_name(StructureProvenance self) -> std::string"""
13728 return _IMP_core.StructureProvenance_get_name(self)
13730 def clear_caches(self):
13731 r"""clear_caches(StructureProvenance self)"""
13732 return _IMP_core.StructureProvenance_clear_caches(self)
13734 def set_name(self, a0):
13735 r"""set_name(StructureProvenance self, std::string a0)"""
13736 return _IMP_core.StructureProvenance_set_name(self, a0)
13739 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13740 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13742 def add_to_derivative(self, a0, a1, a2):
13743 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13744 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13746 def set_is_optimized(self, a0, a1):
13747 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13748 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13750 def get_is_optimized(self, a0):
13751 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13752 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13755 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13756 return _IMP_core.StructureProvenance_get_check_level(self)
13758 def __eq__(self, *args):
13760 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13761 __eq__(StructureProvenance self, Particle d) -> bool
13763 return _IMP_core.StructureProvenance___eq__(self, *args)
13765 def __ne__(self, *args):
13767 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13768 __ne__(StructureProvenance self, Particle d) -> bool
13770 return _IMP_core.StructureProvenance___ne__(self, *args)
13772 def __le__(self, *args):
13774 __le__(StructureProvenance self, StructureProvenance o) -> bool
13775 __le__(StructureProvenance self, Particle d) -> bool
13777 return _IMP_core.StructureProvenance___le__(self, *args)
13779 def __lt__(self, *args):
13781 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13782 __lt__(StructureProvenance self, Particle d) -> bool
13784 return _IMP_core.StructureProvenance___lt__(self, *args)
13786 def __ge__(self, *args):
13788 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13789 __ge__(StructureProvenance self, Particle d) -> bool
13791 return _IMP_core.StructureProvenance___ge__(self, *args)
13793 def __gt__(self, *args):
13795 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13796 __gt__(StructureProvenance self, Particle d) -> bool
13798 return _IMP_core.StructureProvenance___gt__(self, *args)
13800 def __hash__(self):
13801 r"""__hash__(StructureProvenance self) -> std::size_t"""
13802 return _IMP_core.StructureProvenance___hash__(self)
13805 r"""__str__(StructureProvenance self) -> std::string"""
13806 return _IMP_core.StructureProvenance___str__(self)
13808 def __repr__(self):
13809 r"""__repr__(StructureProvenance self) -> std::string"""
13810 return _IMP_core.StructureProvenance___repr__(self)
13812 def _get_as_binary(self):
13813 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13814 return _IMP_core.StructureProvenance__get_as_binary(self)
13816 def _set_from_binary(self, p):
13817 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13818 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13820 def __getstate__(self):
13821 p = self._get_as_binary()
13822 if len(self.__dict__) > 1:
13823 d = self.__dict__.copy()
13828 def __setstate__(self, p):
13829 if not hasattr(self,
'this'):
13831 if isinstance(p, tuple):
13833 self.__dict__.update(d)
13834 return self._set_from_binary(p)
13836 __swig_destroy__ = _IMP_core.delete_StructureProvenance
13839 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13840 class SampleProvenance(Provenance):
13841 r"""Proxy of C++ IMP::core::SampleProvenance class."""
13843 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13845 def set_method(self, method):
13846 r"""set_method(SampleProvenance self, std::string method)"""
13847 return _IMP_core.SampleProvenance_set_method(self, method)
13849 def get_method(self):
13850 r"""get_method(SampleProvenance self) -> std::string"""
13851 return _IMP_core.SampleProvenance_get_method(self)
13853 def set_number_of_frames(self, frames):
13854 r"""set_number_of_frames(SampleProvenance self, int frames)"""
13855 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13858 r"""get_number_of_frames(SampleProvenance self) -> int"""
13859 return _IMP_core.SampleProvenance_get_number_of_frames(self)
13861 def set_number_of_iterations(self, iterations):
13862 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13863 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13865 def get_number_of_iterations(self):
13866 r"""get_number_of_iterations(SampleProvenance self) -> int"""
13867 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13869 def set_number_of_replicas(self, replicas):
13870 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13871 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13873 def get_number_of_replicas(self):
13874 r"""get_number_of_replicas(SampleProvenance self) -> int"""
13875 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13877 def __init__(self, *args):
13879 __init__(SampleProvenance self) -> SampleProvenance
13880 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13881 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13883 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13886 def get_is_setup(*args):
13888 get_is_setup(Model m, ParticleIndex pi) -> bool
13889 get_is_setup(_ParticleAdaptor p) -> bool
13891 return _IMP_core.SampleProvenance_get_is_setup(*args)
13893 def show(self, *args):
13894 r"""show(SampleProvenance self, _ostream out=std::cout)"""
13895 return _IMP_core.SampleProvenance_show(self, *args)
13898 def setup_particle(*args):
13900 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13901 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13902 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13903 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13904 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13905 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13907 return _IMP_core.SampleProvenance_setup_particle(*args)
13909 def add_attribute(self, *args):
13911 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13912 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13913 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13914 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13915 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13916 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13917 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13918 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13919 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13920 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13921 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13922 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13924 return _IMP_core.SampleProvenance_add_attribute(self, *args)
13926 def get_value(self, *args):
13928 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13929 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13930 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13931 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13932 get_value(SampleProvenance self, StringKey a0) -> IMP::String
13933 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13934 get_value(SampleProvenance self, ObjectKey a0) -> Object
13935 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13936 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13937 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13938 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13940 return _IMP_core.SampleProvenance_get_value(self, *args)
13942 def set_value(self, *args):
13944 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13945 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13946 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13947 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13948 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13949 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13950 set_value(SampleProvenance self, ObjectKey a0, Object a1)
13951 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13952 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13953 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13954 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13956 return _IMP_core.SampleProvenance_set_value(self, *args)
13958 def remove_attribute(self, *args):
13960 remove_attribute(SampleProvenance self, FloatKey a0)
13961 remove_attribute(SampleProvenance self, IntKey a0)
13962 remove_attribute(SampleProvenance self, FloatsKey a0)
13963 remove_attribute(SampleProvenance self, IntsKey a0)
13964 remove_attribute(SampleProvenance self, StringKey a0)
13965 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13966 remove_attribute(SampleProvenance self, ObjectKey a0)
13967 remove_attribute(SampleProvenance self, SparseFloatKey a0)
13968 remove_attribute(SampleProvenance self, SparseIntKey a0)
13969 remove_attribute(SampleProvenance self, SparseStringKey a0)
13970 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13972 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13974 def has_attribute(self, *args):
13976 has_attribute(SampleProvenance self, FloatKey a0) -> bool
13977 has_attribute(SampleProvenance self, IntKey a0) -> bool
13978 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13979 has_attribute(SampleProvenance self, IntsKey a0) -> bool
13980 has_attribute(SampleProvenance self, StringKey a0) -> bool
13981 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13982 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13983 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13984 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13985 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13986 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13988 return _IMP_core.SampleProvenance_has_attribute(self, *args)
13990 def get_derivative(self, a0):
13991 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13992 return _IMP_core.SampleProvenance_get_derivative(self, a0)
13994 def get_name(self):
13995 r"""get_name(SampleProvenance self) -> std::string"""
13996 return _IMP_core.SampleProvenance_get_name(self)
13998 def clear_caches(self):
13999 r"""clear_caches(SampleProvenance self)"""
14000 return _IMP_core.SampleProvenance_clear_caches(self)
14002 def set_name(self, a0):
14003 r"""set_name(SampleProvenance self, std::string a0)"""
14004 return _IMP_core.SampleProvenance_set_name(self, a0)
14007 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
14008 return _IMP_core.SampleProvenance_set_check_level(self, a0)
14010 def add_to_derivative(self, a0, a1, a2):
14011 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14012 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
14014 def set_is_optimized(self, a0, a1):
14015 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14016 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14018 def get_is_optimized(self, a0):
14019 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14020 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14023 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14024 return _IMP_core.SampleProvenance_get_check_level(self)
14026 def __eq__(self, *args):
14028 __eq__(SampleProvenance self, SampleProvenance o) -> bool
14029 __eq__(SampleProvenance self, Particle d) -> bool
14031 return _IMP_core.SampleProvenance___eq__(self, *args)
14033 def __ne__(self, *args):
14035 __ne__(SampleProvenance self, SampleProvenance o) -> bool
14036 __ne__(SampleProvenance self, Particle d) -> bool
14038 return _IMP_core.SampleProvenance___ne__(self, *args)
14040 def __le__(self, *args):
14042 __le__(SampleProvenance self, SampleProvenance o) -> bool
14043 __le__(SampleProvenance self, Particle d) -> bool
14045 return _IMP_core.SampleProvenance___le__(self, *args)
14047 def __lt__(self, *args):
14049 __lt__(SampleProvenance self, SampleProvenance o) -> bool
14050 __lt__(SampleProvenance self, Particle d) -> bool
14052 return _IMP_core.SampleProvenance___lt__(self, *args)
14054 def __ge__(self, *args):
14056 __ge__(SampleProvenance self, SampleProvenance o) -> bool
14057 __ge__(SampleProvenance self, Particle d) -> bool
14059 return _IMP_core.SampleProvenance___ge__(self, *args)
14061 def __gt__(self, *args):
14063 __gt__(SampleProvenance self, SampleProvenance o) -> bool
14064 __gt__(SampleProvenance self, Particle d) -> bool
14066 return _IMP_core.SampleProvenance___gt__(self, *args)
14068 def __hash__(self):
14069 r"""__hash__(SampleProvenance self) -> std::size_t"""
14070 return _IMP_core.SampleProvenance___hash__(self)
14073 r"""__str__(SampleProvenance self) -> std::string"""
14074 return _IMP_core.SampleProvenance___str__(self)
14076 def __repr__(self):
14077 r"""__repr__(SampleProvenance self) -> std::string"""
14078 return _IMP_core.SampleProvenance___repr__(self)
14080 def _get_as_binary(self):
14081 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14082 return _IMP_core.SampleProvenance__get_as_binary(self)
14084 def _set_from_binary(self, p):
14085 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14086 return _IMP_core.SampleProvenance__set_from_binary(self, p)
14088 def __getstate__(self):
14089 p = self._get_as_binary()
14090 if len(self.__dict__) > 1:
14091 d = self.__dict__.copy()
14096 def __setstate__(self, p):
14097 if not hasattr(self,
'this'):
14099 if isinstance(p, tuple):
14101 self.__dict__.update(d)
14102 return self._set_from_binary(p)
14104 __swig_destroy__ = _IMP_core.delete_SampleProvenance
14107 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14108 class CombineProvenance(Provenance):
14109 r"""Proxy of C++ IMP::core::CombineProvenance class."""
14111 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14113 def set_number_of_frames(self, frames):
14114 r"""set_number_of_frames(CombineProvenance self, int frames)"""
14115 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14118 r"""get_number_of_frames(CombineProvenance self) -> int"""
14119 return _IMP_core.CombineProvenance_get_number_of_frames(self)
14121 def set_number_of_runs(self, runs):
14122 r"""set_number_of_runs(CombineProvenance self, int runs)"""
14123 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14125 def get_number_of_runs(self):
14126 r"""get_number_of_runs(CombineProvenance self) -> int"""
14127 return _IMP_core.CombineProvenance_get_number_of_runs(self)
14129 def __init__(self, *args):
14131 __init__(CombineProvenance self) -> CombineProvenance
14132 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14133 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14135 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14138 def get_is_setup(*args):
14140 get_is_setup(Model m, ParticleIndex pi) -> bool
14141 get_is_setup(_ParticleAdaptor p) -> bool
14143 return _IMP_core.CombineProvenance_get_is_setup(*args)
14145 def show(self, *args):
14146 r"""show(CombineProvenance self, _ostream out=std::cout)"""
14147 return _IMP_core.CombineProvenance_show(self, *args)
14150 def setup_particle(*args):
14152 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14153 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14154 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14155 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14157 return _IMP_core.CombineProvenance_setup_particle(*args)
14159 def add_attribute(self, *args):
14161 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14162 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14163 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14164 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14165 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14166 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14167 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14168 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14169 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14170 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14171 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14172 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14174 return _IMP_core.CombineProvenance_add_attribute(self, *args)
14176 def get_value(self, *args):
14178 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14179 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14180 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14181 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14182 get_value(CombineProvenance self, StringKey a0) -> IMP::String
14183 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14184 get_value(CombineProvenance self, ObjectKey a0) -> Object
14185 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14186 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14187 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14188 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14190 return _IMP_core.CombineProvenance_get_value(self, *args)
14192 def set_value(self, *args):
14194 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14195 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14196 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14197 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14198 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14199 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14200 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14201 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14202 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14203 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14204 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14206 return _IMP_core.CombineProvenance_set_value(self, *args)
14208 def remove_attribute(self, *args):
14210 remove_attribute(CombineProvenance self, FloatKey a0)
14211 remove_attribute(CombineProvenance self, IntKey a0)
14212 remove_attribute(CombineProvenance self, FloatsKey a0)
14213 remove_attribute(CombineProvenance self, IntsKey a0)
14214 remove_attribute(CombineProvenance self, StringKey a0)
14215 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14216 remove_attribute(CombineProvenance self, ObjectKey a0)
14217 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14218 remove_attribute(CombineProvenance self, SparseIntKey a0)
14219 remove_attribute(CombineProvenance self, SparseStringKey a0)
14220 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14222 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14224 def has_attribute(self, *args):
14226 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14227 has_attribute(CombineProvenance self, IntKey a0) -> bool
14228 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14229 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14230 has_attribute(CombineProvenance self, StringKey a0) -> bool
14231 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14232 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14233 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14234 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14235 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14236 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14238 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14240 def get_derivative(self, a0):
14241 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14242 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14244 def get_name(self):
14245 r"""get_name(CombineProvenance self) -> std::string"""
14246 return _IMP_core.CombineProvenance_get_name(self)
14248 def clear_caches(self):
14249 r"""clear_caches(CombineProvenance self)"""
14250 return _IMP_core.CombineProvenance_clear_caches(self)
14252 def set_name(self, a0):
14253 r"""set_name(CombineProvenance self, std::string a0)"""
14254 return _IMP_core.CombineProvenance_set_name(self, a0)
14257 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14258 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14260 def add_to_derivative(self, a0, a1, a2):
14261 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14262 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14264 def set_is_optimized(self, a0, a1):
14265 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14266 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14268 def get_is_optimized(self, a0):
14269 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14270 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14273 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14274 return _IMP_core.CombineProvenance_get_check_level(self)
14276 def __eq__(self, *args):
14278 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14279 __eq__(CombineProvenance self, Particle d) -> bool
14281 return _IMP_core.CombineProvenance___eq__(self, *args)
14283 def __ne__(self, *args):
14285 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14286 __ne__(CombineProvenance self, Particle d) -> bool
14288 return _IMP_core.CombineProvenance___ne__(self, *args)
14290 def __le__(self, *args):
14292 __le__(CombineProvenance self, CombineProvenance o) -> bool
14293 __le__(CombineProvenance self, Particle d) -> bool
14295 return _IMP_core.CombineProvenance___le__(self, *args)
14297 def __lt__(self, *args):
14299 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14300 __lt__(CombineProvenance self, Particle d) -> bool
14302 return _IMP_core.CombineProvenance___lt__(self, *args)
14304 def __ge__(self, *args):
14306 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14307 __ge__(CombineProvenance self, Particle d) -> bool
14309 return _IMP_core.CombineProvenance___ge__(self, *args)
14311 def __gt__(self, *args):
14313 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14314 __gt__(CombineProvenance self, Particle d) -> bool
14316 return _IMP_core.CombineProvenance___gt__(self, *args)
14318 def __hash__(self):
14319 r"""__hash__(CombineProvenance self) -> std::size_t"""
14320 return _IMP_core.CombineProvenance___hash__(self)
14323 r"""__str__(CombineProvenance self) -> std::string"""
14324 return _IMP_core.CombineProvenance___str__(self)
14326 def __repr__(self):
14327 r"""__repr__(CombineProvenance self) -> std::string"""
14328 return _IMP_core.CombineProvenance___repr__(self)
14330 def _get_as_binary(self):
14331 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14332 return _IMP_core.CombineProvenance__get_as_binary(self)
14334 def _set_from_binary(self, p):
14335 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14336 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14338 def __getstate__(self):
14339 p = self._get_as_binary()
14340 if len(self.__dict__) > 1:
14341 d = self.__dict__.copy()
14346 def __setstate__(self, p):
14347 if not hasattr(self,
'this'):
14349 if isinstance(p, tuple):
14351 self.__dict__.update(d)
14352 return self._set_from_binary(p)
14354 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14357 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14358 class FilterProvenance(Provenance):
14359 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14361 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14363 def set_method(self, method):
14364 r"""set_method(FilterProvenance self, std::string method)"""
14365 return _IMP_core.FilterProvenance_set_method(self, method)
14367 def get_method(self):
14368 r"""get_method(FilterProvenance self) -> std::string"""
14369 return _IMP_core.FilterProvenance_get_method(self)
14371 def set_number_of_frames(self, frames):
14372 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14373 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14376 r"""get_number_of_frames(FilterProvenance self) -> int"""
14377 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14379 def set_threshold(self, threshold):
14380 r"""set_threshold(FilterProvenance self, double threshold)"""
14381 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14383 def get_threshold(self):
14384 r"""get_threshold(FilterProvenance self) -> double"""
14385 return _IMP_core.FilterProvenance_get_threshold(self)
14387 def __init__(self, *args):
14389 __init__(FilterProvenance self) -> FilterProvenance
14390 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14391 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14393 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14396 def get_is_setup(*args):
14398 get_is_setup(Model m, ParticleIndex pi) -> bool
14399 get_is_setup(_ParticleAdaptor p) -> bool
14401 return _IMP_core.FilterProvenance_get_is_setup(*args)
14403 def show(self, *args):
14404 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14405 return _IMP_core.FilterProvenance_show(self, *args)
14408 def setup_particle(*args):
14410 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14411 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14412 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14413 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14415 return _IMP_core.FilterProvenance_setup_particle(*args)
14417 def add_attribute(self, *args):
14419 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14420 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14421 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14422 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14423 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14424 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14425 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14426 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14427 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14428 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14429 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14430 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14432 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14434 def get_value(self, *args):
14436 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14437 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14438 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14439 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14440 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14441 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14442 get_value(FilterProvenance self, ObjectKey a0) -> Object
14443 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14444 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14445 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14446 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14448 return _IMP_core.FilterProvenance_get_value(self, *args)
14450 def set_value(self, *args):
14452 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14453 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14454 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14455 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14456 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14457 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14458 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14459 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14460 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14461 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14462 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14464 return _IMP_core.FilterProvenance_set_value(self, *args)
14466 def remove_attribute(self, *args):
14468 remove_attribute(FilterProvenance self, FloatKey a0)
14469 remove_attribute(FilterProvenance self, IntKey a0)
14470 remove_attribute(FilterProvenance self, FloatsKey a0)
14471 remove_attribute(FilterProvenance self, IntsKey a0)
14472 remove_attribute(FilterProvenance self, StringKey a0)
14473 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14474 remove_attribute(FilterProvenance self, ObjectKey a0)
14475 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14476 remove_attribute(FilterProvenance self, SparseIntKey a0)
14477 remove_attribute(FilterProvenance self, SparseStringKey a0)
14478 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14480 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14482 def has_attribute(self, *args):
14484 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14485 has_attribute(FilterProvenance self, IntKey a0) -> bool
14486 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14487 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14488 has_attribute(FilterProvenance self, StringKey a0) -> bool
14489 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14490 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14491 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14492 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14493 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14494 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14496 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14498 def get_derivative(self, a0):
14499 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14500 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14502 def get_name(self):
14503 r"""get_name(FilterProvenance self) -> std::string"""
14504 return _IMP_core.FilterProvenance_get_name(self)
14506 def clear_caches(self):
14507 r"""clear_caches(FilterProvenance self)"""
14508 return _IMP_core.FilterProvenance_clear_caches(self)
14510 def set_name(self, a0):
14511 r"""set_name(FilterProvenance self, std::string a0)"""
14512 return _IMP_core.FilterProvenance_set_name(self, a0)
14515 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14516 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14518 def add_to_derivative(self, a0, a1, a2):
14519 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14520 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14522 def set_is_optimized(self, a0, a1):
14523 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14524 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14526 def get_is_optimized(self, a0):
14527 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14528 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14531 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14532 return _IMP_core.FilterProvenance_get_check_level(self)
14534 def __eq__(self, *args):
14536 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14537 __eq__(FilterProvenance self, Particle d) -> bool
14539 return _IMP_core.FilterProvenance___eq__(self, *args)
14541 def __ne__(self, *args):
14543 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14544 __ne__(FilterProvenance self, Particle d) -> bool
14546 return _IMP_core.FilterProvenance___ne__(self, *args)
14548 def __le__(self, *args):
14550 __le__(FilterProvenance self, FilterProvenance o) -> bool
14551 __le__(FilterProvenance self, Particle d) -> bool
14553 return _IMP_core.FilterProvenance___le__(self, *args)
14555 def __lt__(self, *args):
14557 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14558 __lt__(FilterProvenance self, Particle d) -> bool
14560 return _IMP_core.FilterProvenance___lt__(self, *args)
14562 def __ge__(self, *args):
14564 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14565 __ge__(FilterProvenance self, Particle d) -> bool
14567 return _IMP_core.FilterProvenance___ge__(self, *args)
14569 def __gt__(self, *args):
14571 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14572 __gt__(FilterProvenance self, Particle d) -> bool
14574 return _IMP_core.FilterProvenance___gt__(self, *args)
14576 def __hash__(self):
14577 r"""__hash__(FilterProvenance self) -> std::size_t"""
14578 return _IMP_core.FilterProvenance___hash__(self)
14581 r"""__str__(FilterProvenance self) -> std::string"""
14582 return _IMP_core.FilterProvenance___str__(self)
14584 def __repr__(self):
14585 r"""__repr__(FilterProvenance self) -> std::string"""
14586 return _IMP_core.FilterProvenance___repr__(self)
14588 def _get_as_binary(self):
14589 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14590 return _IMP_core.FilterProvenance__get_as_binary(self)
14592 def _set_from_binary(self, p):
14593 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14594 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14596 def __getstate__(self):
14597 p = self._get_as_binary()
14598 if len(self.__dict__) > 1:
14599 d = self.__dict__.copy()
14604 def __setstate__(self, p):
14605 if not hasattr(self,
'this'):
14607 if isinstance(p, tuple):
14609 self.__dict__.update(d)
14610 return self._set_from_binary(p)
14612 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14615 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14616 class ClusterProvenance(Provenance):
14617 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14619 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14621 def set_number_of_members(self, members):
14622 r"""set_number_of_members(ClusterProvenance self, int members)"""
14623 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14625 def get_number_of_members(self):
14626 r"""get_number_of_members(ClusterProvenance self) -> int"""
14627 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14629 def set_precision(self, precision):
14630 r"""set_precision(ClusterProvenance self, double precision)"""
14631 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14633 def get_precision(self):
14634 r"""get_precision(ClusterProvenance self) -> double"""
14635 return _IMP_core.ClusterProvenance_get_precision(self)
14637 def set_density(self, density):
14638 r"""set_density(ClusterProvenance self, std::string density)"""
14639 return _IMP_core.ClusterProvenance_set_density(self, density)
14641 def get_density(self):
14642 r"""get_density(ClusterProvenance self) -> std::string"""
14643 return _IMP_core.ClusterProvenance_get_density(self)
14645 def __init__(self, *args):
14647 __init__(ClusterProvenance self) -> ClusterProvenance
14648 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14649 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14651 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14654 def get_is_setup(*args):
14656 get_is_setup(Model m, ParticleIndex pi) -> bool
14657 get_is_setup(_ParticleAdaptor p) -> bool
14659 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14661 def show(self, *args):
14662 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14663 return _IMP_core.ClusterProvenance_show(self, *args)
14666 def setup_particle(*args):
14668 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14669 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14670 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14671 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14672 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14673 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14674 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14675 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14677 return _IMP_core.ClusterProvenance_setup_particle(*args)
14679 def add_attribute(self, *args):
14681 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14682 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14683 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14684 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14685 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14686 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14687 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14688 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14689 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14690 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14691 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14692 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14694 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14696 def get_value(self, *args):
14698 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14699 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14700 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14701 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14702 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14703 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14704 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14705 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14706 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14707 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14708 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14710 return _IMP_core.ClusterProvenance_get_value(self, *args)
14712 def set_value(self, *args):
14714 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14715 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14716 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14717 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14718 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14719 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14720 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14721 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14722 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14723 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14724 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14726 return _IMP_core.ClusterProvenance_set_value(self, *args)
14728 def remove_attribute(self, *args):
14730 remove_attribute(ClusterProvenance self, FloatKey a0)
14731 remove_attribute(ClusterProvenance self, IntKey a0)
14732 remove_attribute(ClusterProvenance self, FloatsKey a0)
14733 remove_attribute(ClusterProvenance self, IntsKey a0)
14734 remove_attribute(ClusterProvenance self, StringKey a0)
14735 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14736 remove_attribute(ClusterProvenance self, ObjectKey a0)
14737 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14738 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14739 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14740 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14742 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14744 def has_attribute(self, *args):
14746 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14747 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14748 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14749 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14750 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14751 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14752 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14753 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14754 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14755 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14756 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14758 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14760 def get_derivative(self, a0):
14761 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14762 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14764 def get_name(self):
14765 r"""get_name(ClusterProvenance self) -> std::string"""
14766 return _IMP_core.ClusterProvenance_get_name(self)
14768 def clear_caches(self):
14769 r"""clear_caches(ClusterProvenance self)"""
14770 return _IMP_core.ClusterProvenance_clear_caches(self)
14772 def set_name(self, a0):
14773 r"""set_name(ClusterProvenance self, std::string a0)"""
14774 return _IMP_core.ClusterProvenance_set_name(self, a0)
14777 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14778 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14780 def add_to_derivative(self, a0, a1, a2):
14781 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14782 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14784 def set_is_optimized(self, a0, a1):
14785 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14786 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14788 def get_is_optimized(self, a0):
14789 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14790 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14793 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14794 return _IMP_core.ClusterProvenance_get_check_level(self)
14796 def __eq__(self, *args):
14798 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14799 __eq__(ClusterProvenance self, Particle d) -> bool
14801 return _IMP_core.ClusterProvenance___eq__(self, *args)
14803 def __ne__(self, *args):
14805 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14806 __ne__(ClusterProvenance self, Particle d) -> bool
14808 return _IMP_core.ClusterProvenance___ne__(self, *args)
14810 def __le__(self, *args):
14812 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14813 __le__(ClusterProvenance self, Particle d) -> bool
14815 return _IMP_core.ClusterProvenance___le__(self, *args)
14817 def __lt__(self, *args):
14819 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14820 __lt__(ClusterProvenance self, Particle d) -> bool
14822 return _IMP_core.ClusterProvenance___lt__(self, *args)
14824 def __ge__(self, *args):
14826 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14827 __ge__(ClusterProvenance self, Particle d) -> bool
14829 return _IMP_core.ClusterProvenance___ge__(self, *args)
14831 def __gt__(self, *args):
14833 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14834 __gt__(ClusterProvenance self, Particle d) -> bool
14836 return _IMP_core.ClusterProvenance___gt__(self, *args)
14838 def __hash__(self):
14839 r"""__hash__(ClusterProvenance self) -> std::size_t"""
14840 return _IMP_core.ClusterProvenance___hash__(self)
14843 r"""__str__(ClusterProvenance self) -> std::string"""
14844 return _IMP_core.ClusterProvenance___str__(self)
14846 def __repr__(self):
14847 r"""__repr__(ClusterProvenance self) -> std::string"""
14848 return _IMP_core.ClusterProvenance___repr__(self)
14850 def _get_as_binary(self):
14851 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14852 return _IMP_core.ClusterProvenance__get_as_binary(self)
14854 def _set_from_binary(self, p):
14855 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14856 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14858 def __getstate__(self):
14859 p = self._get_as_binary()
14860 if len(self.__dict__) > 1:
14861 d = self.__dict__.copy()
14866 def __setstate__(self, p):
14867 if not hasattr(self,
'this'):
14869 if isinstance(p, tuple):
14871 self.__dict__.update(d)
14872 return self._set_from_binary(p)
14874 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14877 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14878 class ScriptProvenance(Provenance):
14879 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14881 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14883 def set_filename(self, filename):
14884 r"""set_filename(ScriptProvenance self, std::string filename)"""
14885 return _IMP_core.ScriptProvenance_set_filename(self, filename)
14887 def get_filename(self):
14888 r"""get_filename(ScriptProvenance self) -> std::string"""
14889 return _IMP_core.ScriptProvenance_get_filename(self)
14891 def __init__(self, *args):
14893 __init__(ScriptProvenance self) -> ScriptProvenance
14894 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14895 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14897 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14900 def get_is_setup(*args):
14902 get_is_setup(Model m, ParticleIndex pi) -> bool
14903 get_is_setup(_ParticleAdaptor p) -> bool
14905 return _IMP_core.ScriptProvenance_get_is_setup(*args)
14907 def show(self, *args):
14908 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14909 return _IMP_core.ScriptProvenance_show(self, *args)
14912 def setup_particle(*args):
14914 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14915 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14916 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14917 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14919 return _IMP_core.ScriptProvenance_setup_particle(*args)
14921 def add_attribute(self, *args):
14923 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14924 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14925 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14926 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14927 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14928 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14929 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14930 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14931 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14932 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14933 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14934 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14936 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14938 def get_value(self, *args):
14940 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14941 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14942 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14943 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14944 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14945 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14946 get_value(ScriptProvenance self, ObjectKey a0) -> Object
14947 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14948 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14949 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14950 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14952 return _IMP_core.ScriptProvenance_get_value(self, *args)
14954 def set_value(self, *args):
14956 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14957 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14958 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14959 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14960 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14961 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14962 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14963 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14964 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14965 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14966 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14968 return _IMP_core.ScriptProvenance_set_value(self, *args)
14970 def remove_attribute(self, *args):
14972 remove_attribute(ScriptProvenance self, FloatKey a0)
14973 remove_attribute(ScriptProvenance self, IntKey a0)
14974 remove_attribute(ScriptProvenance self, FloatsKey a0)
14975 remove_attribute(ScriptProvenance self, IntsKey a0)
14976 remove_attribute(ScriptProvenance self, StringKey a0)
14977 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14978 remove_attribute(ScriptProvenance self, ObjectKey a0)
14979 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14980 remove_attribute(ScriptProvenance self, SparseIntKey a0)
14981 remove_attribute(ScriptProvenance self, SparseStringKey a0)
14982 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14984 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14986 def has_attribute(self, *args):
14988 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14989 has_attribute(ScriptProvenance self, IntKey a0) -> bool
14990 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14991 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14992 has_attribute(ScriptProvenance self, StringKey a0) -> bool
14993 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14994 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14995 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14996 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14997 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14998 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
15000 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
15002 def get_derivative(self, a0):
15003 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
15004 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
15006 def get_name(self):
15007 r"""get_name(ScriptProvenance self) -> std::string"""
15008 return _IMP_core.ScriptProvenance_get_name(self)
15010 def clear_caches(self):
15011 r"""clear_caches(ScriptProvenance self)"""
15012 return _IMP_core.ScriptProvenance_clear_caches(self)
15014 def set_name(self, a0):
15015 r"""set_name(ScriptProvenance self, std::string a0)"""
15016 return _IMP_core.ScriptProvenance_set_name(self, a0)
15019 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15020 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15022 def add_to_derivative(self, a0, a1, a2):
15023 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15024 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15026 def set_is_optimized(self, a0, a1):
15027 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15028 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15030 def get_is_optimized(self, a0):
15031 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15032 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15035 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15036 return _IMP_core.ScriptProvenance_get_check_level(self)
15038 def __eq__(self, *args):
15040 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15041 __eq__(ScriptProvenance self, Particle d) -> bool
15043 return _IMP_core.ScriptProvenance___eq__(self, *args)
15045 def __ne__(self, *args):
15047 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15048 __ne__(ScriptProvenance self, Particle d) -> bool
15050 return _IMP_core.ScriptProvenance___ne__(self, *args)
15052 def __le__(self, *args):
15054 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15055 __le__(ScriptProvenance self, Particle d) -> bool
15057 return _IMP_core.ScriptProvenance___le__(self, *args)
15059 def __lt__(self, *args):
15061 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15062 __lt__(ScriptProvenance self, Particle d) -> bool
15064 return _IMP_core.ScriptProvenance___lt__(self, *args)
15066 def __ge__(self, *args):
15068 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15069 __ge__(ScriptProvenance self, Particle d) -> bool
15071 return _IMP_core.ScriptProvenance___ge__(self, *args)
15073 def __gt__(self, *args):
15075 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15076 __gt__(ScriptProvenance self, Particle d) -> bool
15078 return _IMP_core.ScriptProvenance___gt__(self, *args)
15080 def __hash__(self):
15081 r"""__hash__(ScriptProvenance self) -> std::size_t"""
15082 return _IMP_core.ScriptProvenance___hash__(self)
15085 r"""__str__(ScriptProvenance self) -> std::string"""
15086 return _IMP_core.ScriptProvenance___str__(self)
15088 def __repr__(self):
15089 r"""__repr__(ScriptProvenance self) -> std::string"""
15090 return _IMP_core.ScriptProvenance___repr__(self)
15092 def _get_as_binary(self):
15093 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15094 return _IMP_core.ScriptProvenance__get_as_binary(self)
15096 def _set_from_binary(self, p):
15097 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15098 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15100 def __getstate__(self):
15101 p = self._get_as_binary()
15102 if len(self.__dict__) > 1:
15103 d = self.__dict__.copy()
15108 def __setstate__(self, p):
15109 if not hasattr(self,
'this'):
15111 if isinstance(p, tuple):
15113 self.__dict__.update(d)
15114 return self._set_from_binary(p)
15116 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15119 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15120 class SoftwareProvenance(Provenance):
15121 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15123 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15125 def set_software_name(self, name):
15126 r"""set_software_name(SoftwareProvenance self, std::string name)"""
15127 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15129 def get_software_name(self):
15130 r"""get_software_name(SoftwareProvenance self) -> std::string"""
15131 return _IMP_core.SoftwareProvenance_get_software_name(self)
15133 def set_version(self, version):
15134 r"""set_version(SoftwareProvenance self, std::string version)"""
15135 return _IMP_core.SoftwareProvenance_set_version(self, version)
15137 def get_version(self):
15138 r"""get_version(SoftwareProvenance self) -> std::string"""
15139 return _IMP_core.SoftwareProvenance_get_version(self)
15141 def set_location(self, location):
15142 r"""set_location(SoftwareProvenance self, std::string location)"""
15143 return _IMP_core.SoftwareProvenance_set_location(self, location)
15145 def get_location(self):
15146 r"""get_location(SoftwareProvenance self) -> std::string"""
15147 return _IMP_core.SoftwareProvenance_get_location(self)
15149 def __init__(self, *args):
15151 __init__(SoftwareProvenance self) -> SoftwareProvenance
15152 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15153 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15155 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15158 def get_is_setup(*args):
15160 get_is_setup(Model m, ParticleIndex pi) -> bool
15161 get_is_setup(_ParticleAdaptor p) -> bool
15163 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15165 def show(self, *args):
15166 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15167 return _IMP_core.SoftwareProvenance_show(self, *args)
15170 def setup_particle(*args):
15172 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15173 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15174 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15175 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15177 return _IMP_core.SoftwareProvenance_setup_particle(*args)
15179 def add_attribute(self, *args):
15181 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15182 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15183 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15184 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15185 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15186 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15187 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15188 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15189 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15190 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15191 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15192 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15194 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15196 def get_value(self, *args):
15198 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15199 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15200 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15201 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15202 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15203 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15204 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15205 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15206 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15207 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15208 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15210 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15212 def set_value(self, *args):
15214 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15215 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15216 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15217 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15218 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15219 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15220 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15221 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15222 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15223 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15224 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15226 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15228 def remove_attribute(self, *args):
15230 remove_attribute(SoftwareProvenance self, FloatKey a0)
15231 remove_attribute(SoftwareProvenance self, IntKey a0)
15232 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15233 remove_attribute(SoftwareProvenance self, IntsKey a0)
15234 remove_attribute(SoftwareProvenance self, StringKey a0)
15235 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15236 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15237 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15238 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15239 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15240 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15242 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15244 def has_attribute(self, *args):
15246 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15247 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15248 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15249 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15250 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15251 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15252 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15253 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15254 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15255 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15256 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15258 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15260 def get_derivative(self, a0):
15261 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15262 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15264 def get_name(self):
15265 r"""get_name(SoftwareProvenance self) -> std::string"""
15266 return _IMP_core.SoftwareProvenance_get_name(self)
15268 def clear_caches(self):
15269 r"""clear_caches(SoftwareProvenance self)"""
15270 return _IMP_core.SoftwareProvenance_clear_caches(self)
15272 def set_name(self, a0):
15273 r"""set_name(SoftwareProvenance self, std::string a0)"""
15274 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15277 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15278 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15280 def add_to_derivative(self, a0, a1, a2):
15281 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15282 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15284 def set_is_optimized(self, a0, a1):
15285 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15286 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15288 def get_is_optimized(self, a0):
15289 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15290 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15293 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15294 return _IMP_core.SoftwareProvenance_get_check_level(self)
15296 def __eq__(self, *args):
15298 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15299 __eq__(SoftwareProvenance self, Particle d) -> bool
15301 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15303 def __ne__(self, *args):
15305 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15306 __ne__(SoftwareProvenance self, Particle d) -> bool
15308 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15310 def __le__(self, *args):
15312 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15313 __le__(SoftwareProvenance self, Particle d) -> bool
15315 return _IMP_core.SoftwareProvenance___le__(self, *args)
15317 def __lt__(self, *args):
15319 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15320 __lt__(SoftwareProvenance self, Particle d) -> bool
15322 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15324 def __ge__(self, *args):
15326 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15327 __ge__(SoftwareProvenance self, Particle d) -> bool
15329 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15331 def __gt__(self, *args):
15333 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15334 __gt__(SoftwareProvenance self, Particle d) -> bool
15336 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15338 def __hash__(self):
15339 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15340 return _IMP_core.SoftwareProvenance___hash__(self)
15343 r"""__str__(SoftwareProvenance self) -> std::string"""
15344 return _IMP_core.SoftwareProvenance___str__(self)
15346 def __repr__(self):
15347 r"""__repr__(SoftwareProvenance self) -> std::string"""
15348 return _IMP_core.SoftwareProvenance___repr__(self)
15350 def _get_as_binary(self):
15351 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15352 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15354 def _set_from_binary(self, p):
15355 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15356 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15358 def __getstate__(self):
15359 p = self._get_as_binary()
15360 if len(self.__dict__) > 1:
15361 d = self.__dict__.copy()
15366 def __setstate__(self, p):
15367 if not hasattr(self,
'this'):
15369 if isinstance(p, tuple):
15371 self.__dict__.update(d)
15372 return self._set_from_binary(p)
15374 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15377 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15379 r"""Proxy of C++ IMP::core::Provenanced class."""
15381 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15383 def get_provenance(self):
15384 r"""get_provenance(Provenanced self) -> Provenance"""
15385 return _IMP_core.Provenanced_get_provenance(self)
15387 def set_provenance(self, p):
15388 r"""set_provenance(Provenanced self, Provenance p)"""
15389 return _IMP_core.Provenanced_set_provenance(self, p)
15391 def __init__(self, *args):
15393 __init__(Provenanced self) -> Provenanced
15394 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15395 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15397 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15400 def get_is_setup(*args):
15402 get_is_setup(Model m, ParticleIndex pi) -> bool
15403 get_is_setup(_ParticleAdaptor p) -> bool
15405 return _IMP_core.Provenanced_get_is_setup(*args)
15407 def show(self, *args):
15408 r"""show(Provenanced self, _ostream out=std::cout)"""
15409 return _IMP_core.Provenanced_show(self, *args)
15412 def setup_particle(*args):
15414 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15415 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15417 return _IMP_core.Provenanced_setup_particle(*args)
15419 def add_attribute(self, *args):
15421 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15422 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15423 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15424 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15425 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15426 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15427 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15428 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15429 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15430 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15431 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15432 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15434 return _IMP_core.Provenanced_add_attribute(self, *args)
15436 def get_value(self, *args):
15438 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15439 get_value(Provenanced self, IntKey a0) -> IMP::Int
15440 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15441 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15442 get_value(Provenanced self, StringKey a0) -> IMP::String
15443 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15444 get_value(Provenanced self, ObjectKey a0) -> Object
15445 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15446 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15447 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15448 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15450 return _IMP_core.Provenanced_get_value(self, *args)
15452 def set_value(self, *args):
15454 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15455 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15456 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15457 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15458 set_value(Provenanced self, StringKey a0, IMP::String a1)
15459 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15460 set_value(Provenanced self, ObjectKey a0, Object a1)
15461 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15462 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15463 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15464 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15466 return _IMP_core.Provenanced_set_value(self, *args)
15468 def remove_attribute(self, *args):
15470 remove_attribute(Provenanced self, FloatKey a0)
15471 remove_attribute(Provenanced self, IntKey a0)
15472 remove_attribute(Provenanced self, FloatsKey a0)
15473 remove_attribute(Provenanced self, IntsKey a0)
15474 remove_attribute(Provenanced self, StringKey a0)
15475 remove_attribute(Provenanced self, ParticleIndexKey a0)
15476 remove_attribute(Provenanced self, ObjectKey a0)
15477 remove_attribute(Provenanced self, SparseFloatKey a0)
15478 remove_attribute(Provenanced self, SparseIntKey a0)
15479 remove_attribute(Provenanced self, SparseStringKey a0)
15480 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15482 return _IMP_core.Provenanced_remove_attribute(self, *args)
15484 def has_attribute(self, *args):
15486 has_attribute(Provenanced self, FloatKey a0) -> bool
15487 has_attribute(Provenanced self, IntKey a0) -> bool
15488 has_attribute(Provenanced self, FloatsKey a0) -> bool
15489 has_attribute(Provenanced self, IntsKey a0) -> bool
15490 has_attribute(Provenanced self, StringKey a0) -> bool
15491 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15492 has_attribute(Provenanced self, ObjectKey a0) -> bool
15493 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15494 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15495 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15496 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15498 return _IMP_core.Provenanced_has_attribute(self, *args)
15500 def get_derivative(self, a0):
15501 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15502 return _IMP_core.Provenanced_get_derivative(self, a0)
15504 def get_name(self):
15505 r"""get_name(Provenanced self) -> std::string"""
15506 return _IMP_core.Provenanced_get_name(self)
15508 def clear_caches(self):
15509 r"""clear_caches(Provenanced self)"""
15510 return _IMP_core.Provenanced_clear_caches(self)
15512 def set_name(self, a0):
15513 r"""set_name(Provenanced self, std::string a0)"""
15514 return _IMP_core.Provenanced_set_name(self, a0)
15517 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15518 return _IMP_core.Provenanced_set_check_level(self, a0)
15520 def add_to_derivative(self, a0, a1, a2):
15521 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15522 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15524 def set_is_optimized(self, a0, a1):
15525 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15526 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15528 def get_is_optimized(self, a0):
15529 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15530 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15533 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15534 return _IMP_core.Provenanced_get_check_level(self)
15536 def __eq__(self, *args):
15538 __eq__(Provenanced self, Provenanced o) -> bool
15539 __eq__(Provenanced self, Particle d) -> bool
15541 return _IMP_core.Provenanced___eq__(self, *args)
15543 def __ne__(self, *args):
15545 __ne__(Provenanced self, Provenanced o) -> bool
15546 __ne__(Provenanced self, Particle d) -> bool
15548 return _IMP_core.Provenanced___ne__(self, *args)
15550 def __le__(self, *args):
15552 __le__(Provenanced self, Provenanced o) -> bool
15553 __le__(Provenanced self, Particle d) -> bool
15555 return _IMP_core.Provenanced___le__(self, *args)
15557 def __lt__(self, *args):
15559 __lt__(Provenanced self, Provenanced o) -> bool
15560 __lt__(Provenanced self, Particle d) -> bool
15562 return _IMP_core.Provenanced___lt__(self, *args)
15564 def __ge__(self, *args):
15566 __ge__(Provenanced self, Provenanced o) -> bool
15567 __ge__(Provenanced self, Particle d) -> bool
15569 return _IMP_core.Provenanced___ge__(self, *args)
15571 def __gt__(self, *args):
15573 __gt__(Provenanced self, Provenanced o) -> bool
15574 __gt__(Provenanced self, Particle d) -> bool
15576 return _IMP_core.Provenanced___gt__(self, *args)
15578 def __hash__(self):
15579 r"""__hash__(Provenanced self) -> std::size_t"""
15580 return _IMP_core.Provenanced___hash__(self)
15583 r"""__str__(Provenanced self) -> std::string"""
15584 return _IMP_core.Provenanced___str__(self)
15586 def __repr__(self):
15587 r"""__repr__(Provenanced self) -> std::string"""
15588 return _IMP_core.Provenanced___repr__(self)
15590 def _get_as_binary(self):
15591 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15592 return _IMP_core.Provenanced__get_as_binary(self)
15594 def _set_from_binary(self, p):
15595 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15596 return _IMP_core.Provenanced__set_from_binary(self, p)
15598 def __getstate__(self):
15599 p = self._get_as_binary()
15600 if len(self.__dict__) > 1:
15601 d = self.__dict__.copy()
15606 def __setstate__(self, p):
15607 if not hasattr(self,
'this'):
15609 if isinstance(p, tuple):
15611 self.__dict__.update(d)
15612 return self._set_from_binary(p)
15614 __swig_destroy__ = _IMP_core.delete_Provenanced
15617 _IMP_core.Provenanced_swigregister(Provenanced)
15620 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15621 return _IMP_core.add_provenance(m, pi, p)
15624 r"""create_clone(Provenance p) -> Provenance"""
15625 return _IMP_core.create_clone(p)
15629 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15630 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
15631 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
15633 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15636 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15637 return _IMP_core.create_restraint(ps, pp)
15639 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15641 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15643 def __init__(self, *args):
15645 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15646 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15648 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15650 def get_version_info(self):
15651 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15652 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15653 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15656 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15657 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15659 def __repr__(self):
15660 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15661 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15665 return _object_cast_to_TruncatedHarmonic(o)
15669 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15671 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15673 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15675 def __init__(self, *args):
15677 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15678 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15680 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15682 def get_version_info(self):
15683 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15684 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15685 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15688 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15689 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15691 def __repr__(self):
15692 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15693 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15697 return _object_cast_to_TruncatedHarmonic(o)
15701 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15703 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15705 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15707 def __init__(self, *args):
15709 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15710 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15712 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15714 def get_version_info(self):
15715 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15716 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15717 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15720 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15721 return _IMP_core.TruncatedHarmonicBound___str__(self)
15723 def __repr__(self):
15724 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15725 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15729 return _object_cast_to_TruncatedHarmonic(o)
15733 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15735 r"""Proxy of C++ IMP::Key< 34897493 > class."""
15737 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15739 def __init__(self, *args):
15741 __init__(ParticleType self) -> ParticleType
15742 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15743 __init__(ParticleType self, unsigned int i) -> ParticleType
15745 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15749 r"""add_key(std::string sc) -> unsigned int"""
15750 return _IMP_core.ParticleType_add_key(sc)
15753 def get_key_exists(sc):
15754 r"""get_key_exists(std::string sc) -> bool"""
15755 return _IMP_core.ParticleType_get_key_exists(sc)
15757 def get_string(self):
15758 r"""get_string(ParticleType self) -> std::string const"""
15759 return _IMP_core.ParticleType_get_string(self)
15761 def __cmp__(self, o):
15762 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15763 return _IMP_core.ParticleType___cmp__(self, o)
15765 def __eq__(self, o):
15766 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15767 return _IMP_core.ParticleType___eq__(self, o)
15769 def __ne__(self, o):
15770 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15771 return _IMP_core.ParticleType___ne__(self, o)
15773 def __lt__(self, o):
15774 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15775 return _IMP_core.ParticleType___lt__(self, o)
15777 def __gt__(self, o):
15778 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15779 return _IMP_core.ParticleType___gt__(self, o)
15781 def __ge__(self, o):
15782 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15783 return _IMP_core.ParticleType___ge__(self, o)
15785 def __le__(self, o):
15786 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15787 return _IMP_core.ParticleType___le__(self, o)
15789 def __hash__(self):
15790 r"""__hash__(ParticleType self) -> std::size_t"""
15791 return _IMP_core.ParticleType___hash__(self)
15793 def show(self, *args):
15794 r"""show(ParticleType self, _ostream out=std::cout)"""
15795 return _IMP_core.ParticleType_show(self, *args)
15798 def add_alias(old_key, new_name):
15799 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15800 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15803 def get_number_of_keys():
15804 r"""get_number_of_keys() -> unsigned int"""
15805 return _IMP_core.ParticleType_get_number_of_keys()
15808 r"""get_index(ParticleType self) -> unsigned int"""
15809 return _IMP_core.ParticleType_get_index(self)
15813 r"""show_all(_ostream out)"""
15814 return _IMP_core.ParticleType_show_all(out)
15817 def get_all_strings():
15818 r"""get_all_strings() -> IMP::Vector< std::string >"""
15819 return _IMP_core.ParticleType_get_all_strings()
15822 def get_number_unique():
15823 r"""get_number_unique() -> unsigned int"""
15824 return _IMP_core.ParticleType_get_number_unique()
15827 r"""__str__(ParticleType self) -> std::string"""
15828 return _IMP_core.ParticleType___str__(self)
15830 def __repr__(self):
15831 r"""__repr__(ParticleType self) -> std::string"""
15832 return _IMP_core.ParticleType___repr__(self)
15833 __swig_destroy__ = _IMP_core.delete_ParticleType
15836 _IMP_core.ParticleType_swigregister(ParticleType)
15838 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15840 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15841 __repr__ = _swig_repr
15843 def __init__(self, f, k):
15844 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15845 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15847 def do_get_inputs(self, m, pis):
15848 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15849 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15851 def get_unary_function(self):
15852 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15853 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15855 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15856 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"""
15857 return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15859 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15860 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"""
15861 return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15863 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15864 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"""
15865 return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15867 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15868 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"""
15869 return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15871 def get_version_info(self):
15872 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15873 return _IMP_core.AttributeSingletonScore_get_version_info(self)
15874 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15877 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15880 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15881 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15883 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15885 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15886 __repr__ = _swig_repr
15888 def __init__(self, f, bb):
15889 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15890 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15892 def do_get_inputs(self, m, pis):
15893 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15894 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15896 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15897 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"""
15898 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15900 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15901 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"""
15902 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15904 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15905 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"""
15906 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15908 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15909 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"""
15910 return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15912 def get_version_info(self):
15913 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15914 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15915 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15918 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15920 def create_bounding_box_3d_singleton_score(f, bb):
15921 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15922 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15924 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15927 __repr__ = _swig_repr
15929 def __init__(self, f, sphere):
15930 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15931 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15933 def do_get_inputs(self, m, pis):
15934 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15935 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15937 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15938 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"""
15939 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15941 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15942 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"""
15943 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15945 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15946 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"""
15947 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15949 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15950 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"""
15951 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15953 def get_version_info(self):
15954 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15955 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15956 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15959 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15961 def create_bounding_sphere_3d_singleton_score(f, sphere):
15962 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15963 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15965 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15967 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15968 __repr__ = _swig_repr
15970 def __init__(self, *args):
15972 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15973 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15975 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15977 def do_get_inputs(self, m, pis):
15978 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15979 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15981 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15982 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"""
15983 return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15985 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15986 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"""
15987 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15989 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15990 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"""
15991 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15993 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15994 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"""
15995 return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15997 def get_version_info(self):
15998 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15999 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
16000 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
16002 def _get_as_binary(self):
16003 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
16004 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
16006 def _set_from_binary(self, p):
16007 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
16008 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
16010 def __getstate__(self):
16011 p = self._get_as_binary()
16012 if len(self.__dict__) > 1:
16013 d = self.__dict__.copy()
16018 def __setstate__(self, p):
16019 if not hasattr(self,
'this'):
16021 if isinstance(p, tuple):
16023 self.__dict__.update(d)
16024 return self._set_from_binary(p)
16028 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16030 def create_distance_to_singleton_score(f, pt):
16031 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16032 return _IMP_core.create_distance_to_singleton_score(f, pt)
16034 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16035 def __init__(self, uf):
16036 if isinstance(uf, HarmonicUpperBound):
16037 p = HarmonicUpperBoundSphereDistancePairScore(
16038 uf.get_mean(), uf.get_k())
16039 elif isinstance(uf, HarmonicLowerBound):
16040 if uf.get_mean() == 0.0:
16041 p = SoftSpherePairScore(uf.get_k())
16043 p = _SphereDistancePairScore(uf)
16044 elif isinstance(uf, Harmonic):
16045 p = HarmonicSphereDistancePairScore(
16046 uf.get_mean(), uf.get_k())
16048 p = _SphereDistancePairScore(uf)
16049 self.__dict__[
'_proxied'] = p
16050 def __getattr__(self, key):
16051 return getattr(self._proxied, key)
16052 def __setattr__(self, key, val):
16053 return setattr(self._proxied, key, val)
16055 def __getstate__(self):
16056 return self.__dict__[
'_proxied']
16058 def __setstate__(self, p):
16059 self.__dict__[
'_proxied'] = p
16064 p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16067 p = HarmonicSphereDistancePairScore.get_from(o)
16070 p = SoftSpherePairScore.get_from(o)
16072 p = _SphereDistancePairScore.get_from(o)
16073 obj = object.__new__(SphereDistancePairScore)
16074 obj.__dict__[
'_proxied'] = p
16080 CombineProvenance, FilterProvenance,
16081 ClusterProvenance, ScriptProvenance,
16082 SoftwareProvenance]):
16083 """Yield all provenance decorators of the given types for the particle.
16084 By default, all provenance types are returned. Provenance is returned
16085 in order, most recent first. If the particle has no provenance
16086 information, an empty generator is returned."""
16087 if Provenanced.get_is_setup(p):
16091 if c.get_is_setup(prov):
16093 prov = prov.get_previous()
16096 """Tag the given particle with the current Python script.
16097 This is a noop if the particle is already so tagged."""
16098 main = sys.modules[
'__main__']
16100 if not hasattr(main,
'__file__'):
16104 if prov.get_filename() == f:
16108 provp.set_name(
'script')
16109 prov = ScriptProvenance.setup_particle(provp, f)
16113 """Tag the given particle with the software used to create it.
16114 This is a noop if the particle is already so tagged."""
16116 if prov.get_software_name() == name
and prov.get_version() == version \
16117 and prov.get_location() == location:
16121 provp.set_name(
'software')
16122 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16126 """Tag the given particle as being created by the current version of IMP."""
16129 location=
"https://integrativemodeling.org")
16132 def get_module_name():
16133 r"""get_module_name() -> std::string const"""
16134 return _IMP_core.get_module_name()
16137 r"""get_module_version() -> std::string const"""
16138 return _IMP_core.get_module_version()
16141 r"""get_example_path(std::string fname) -> std::string"""
16142 return _IMP_core.get_example_path(fname)
16145 r"""get_data_path(std::string fname) -> std::string"""
16146 return _IMP_core.get_data_path(fname)
16148 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.
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.