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)
5850 def get_version_info(self):
5851 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5852 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5853 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5856 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5857 return _IMP_core.HarmonicDistancePairScore___str__(self)
5860 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5861 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5865 return _object_cast_to_HarmonicDistancePairScore(o)
5868 def _get_as_binary(self):
5869 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5870 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5872 def _set_from_binary(self, p):
5873 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5874 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5876 def __getstate__(self):
5877 p = self._get_as_binary()
5878 if len(self.__dict__) > 1:
5879 d = self.__dict__.copy()
5884 def __setstate__(self, p):
5885 if not hasattr(self,
'this'):
5887 if isinstance(p, tuple):
5889 self.__dict__.update(d)
5890 return self._set_from_binary(p)
5894 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5896 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5898 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5900 def __init__(self, *args):
5902 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5903 __init__(DistanceRestraint self) -> DistanceRestraint
5905 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5907 def get_version_info(self):
5908 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5909 return _IMP_core.DistanceRestraint_get_version_info(self)
5910 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5913 r"""__str__(DistanceRestraint self) -> std::string"""
5914 return _IMP_core.DistanceRestraint___str__(self)
5917 r"""__repr__(DistanceRestraint self) -> std::string"""
5918 return _IMP_core.DistanceRestraint___repr__(self)
5922 return _object_cast_to_DistanceRestraint(o)
5925 def _get_as_binary(self):
5926 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5927 return _IMP_core.DistanceRestraint__get_as_binary(self)
5929 def _set_from_binary(self, p):
5930 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5931 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5933 def __getstate__(self):
5934 p = self._get_as_binary()
5935 if len(self.__dict__) > 1:
5936 d = self.__dict__.copy()
5941 def __setstate__(self, p):
5942 if not hasattr(self,
'this'):
5944 if isinstance(p, tuple):
5946 self.__dict__.update(d)
5947 return self._set_from_binary(p)
5951 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5953 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5955 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5957 def __init__(self, f, pt):
5958 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5959 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5961 def do_get_inputs(self, m, pis):
5962 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5963 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5965 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5966 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"""
5967 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5969 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5970 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"""
5971 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5973 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5974 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"""
5975 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5977 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
5978 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"""
5979 return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
5981 def get_version_info(self):
5982 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5983 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5984 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5987 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5988 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5991 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5992 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5996 return _object_cast_to_SphereDistanceToSingletonScore(o)
6000 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6002 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6004 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6006 def __init__(self, *args):
6007 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6008 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6010 def do_get_inputs(self):
6011 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6012 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6014 def get_version_info(self):
6015 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6016 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6017 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6019 def do_create_decomposition(self):
6020 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6021 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6023 def do_create_current_decomposition(self):
6024 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6025 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6028 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6029 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6030 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)
6031 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6032 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6033 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
6035 def remove_pair_filter(self, d):
6036 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6037 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6039 def _python_index_pair_filter(self, d, start, stop):
6040 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6041 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6043 def remove_pair_filters(self, d):
6044 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6045 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6047 def set_pair_filters(self, ps):
6048 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6049 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6051 def set_pair_filters_order(self, objs):
6052 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6053 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6055 def add_pair_filter(self, obj):
6056 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6057 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6059 def add_pair_filters(self, objs):
6060 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6061 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6063 def clear_pair_filters(self):
6064 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6065 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6067 def get_number_of_pair_filters(self):
6068 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6069 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6071 def get_has_pair_filters(self):
6072 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6073 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6075 def get_pair_filter(self, i):
6076 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6077 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6079 def get_pair_filters(self):
6080 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6081 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6083 def erase_pair_filter(self, i):
6084 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6085 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6087 def reserve_pair_filters(self, sz):
6088 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6089 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6092 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6093 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6096 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6097 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6101 return _object_cast_to_ExcludedVolumeRestraint(o)
6105 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6107 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6111 def __init__(self, *args):
6113 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6114 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6116 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6118 def do_get_inputs(self, m, pis):
6119 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6120 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6122 def get_version_info(self):
6123 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6124 return _IMP_core.FixedRefiner_get_version_info(self)
6125 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6128 r"""__str__(FixedRefiner self) -> std::string"""
6129 return _IMP_core.FixedRefiner___str__(self)
6132 r"""__repr__(FixedRefiner self) -> std::string"""
6133 return _IMP_core.FixedRefiner___repr__(self)
6137 return _object_cast_to_FixedRefiner(o)
6141 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6142 class GridClosePairsFinder(ClosePairsFinder):
6143 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6145 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6148 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6149 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6151 def get_close_pairs(self, *args):
6153 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6154 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6155 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6156 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6158 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6160 def do_get_inputs(self, m, pis):
6161 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6162 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6164 def get_version_info(self):
6165 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6166 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6167 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6170 r"""__str__(GridClosePairsFinder self) -> std::string"""
6171 return _IMP_core.GridClosePairsFinder___str__(self)
6174 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6175 return _IMP_core.GridClosePairsFinder___repr__(self)
6179 return _object_cast_to_GridClosePairsFinder(o)
6182 def _get_as_binary(self):
6183 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6184 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6186 def _set_from_binary(self, p):
6187 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6188 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6190 def __getstate__(self):
6191 p = self._get_as_binary()
6192 if len(self.__dict__) > 1:
6193 d = self.__dict__.copy()
6198 def __setstate__(self, p):
6199 if not hasattr(self,
'this'):
6201 if isinstance(p, tuple):
6203 self.__dict__.update(d)
6204 return self._set_from_binary(p)
6208 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6210 r"""Proxy of C++ IMP::core::Harmonic class."""
6212 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6214 def __init__(self, *args):
6216 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6217 __init__(Harmonic self) -> Harmonic
6219 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6221 def get_version_info(self):
6222 r"""get_version_info(Harmonic self) -> VersionInfo"""
6223 return _IMP_core.Harmonic_get_version_info(self)
6224 __swig_destroy__ = _IMP_core.delete_Harmonic
6227 r"""get_mean(Harmonic self) -> IMP::Float"""
6228 return _IMP_core.Harmonic_get_mean(self)
6231 r"""get_k(Harmonic self) -> IMP::Float"""
6232 return _IMP_core.Harmonic_get_k(self)
6234 def set_mean(self, mean):
6235 r"""set_mean(Harmonic self, IMP::Float mean)"""
6236 return _IMP_core.Harmonic_set_mean(self, mean)
6239 r"""set_k(Harmonic self, IMP::Float k)"""
6240 return _IMP_core.Harmonic_set_k(self, k)
6243 def get_k_from_standard_deviation(sd, t=297.15):
6244 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6245 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6248 r"""__str__(Harmonic self) -> std::string"""
6249 return _IMP_core.Harmonic___str__(self)
6252 r"""__repr__(Harmonic self) -> std::string"""
6253 return _IMP_core.Harmonic___repr__(self)
6257 return _object_cast_to_Harmonic(o)
6260 def _get_as_binary(self):
6261 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6262 return _IMP_core.Harmonic__get_as_binary(self)
6264 def _set_from_binary(self, p):
6265 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6266 return _IMP_core.Harmonic__set_from_binary(self, p)
6268 def __getstate__(self):
6269 p = self._get_as_binary()
6270 if len(self.__dict__) > 1:
6271 d = self.__dict__.copy()
6276 def __setstate__(self, p):
6277 if not hasattr(self,
'this'):
6279 if isinstance(p, tuple):
6281 self.__dict__.update(d)
6282 return self._set_from_binary(p)
6286 _IMP_core.Harmonic_swigregister(Harmonic)
6288 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6290 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6292 def __init__(self, well, k):
6293 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6294 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6296 def get_version_info(self):
6297 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6298 return _IMP_core.HarmonicWell_get_version_info(self)
6299 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6302 r"""__str__(HarmonicWell self) -> std::string"""
6303 return _IMP_core.HarmonicWell___str__(self)
6306 r"""__repr__(HarmonicWell self) -> std::string"""
6307 return _IMP_core.HarmonicWell___repr__(self)
6311 return _object_cast_to_HarmonicWell(o)
6315 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6316 class HarmonicLowerBound(Harmonic):
6317 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6319 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6321 def __init__(self, *args):
6323 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6324 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6326 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6327 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6330 r"""__str__(HarmonicLowerBound self) -> std::string"""
6331 return _IMP_core.HarmonicLowerBound___str__(self)
6334 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6335 return _IMP_core.HarmonicLowerBound___repr__(self)
6339 return _object_cast_to_HarmonicLowerBound(o)
6342 def _get_as_binary(self):
6343 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6344 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6346 def _set_from_binary(self, p):
6347 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6348 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6350 def __getstate__(self):
6351 p = self._get_as_binary()
6352 if len(self.__dict__) > 1:
6353 d = self.__dict__.copy()
6358 def __setstate__(self, p):
6359 if not hasattr(self,
'this'):
6361 if isinstance(p, tuple):
6363 self.__dict__.update(d)
6364 return self._set_from_binary(p)
6368 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6369 class HarmonicUpperBound(Harmonic):
6370 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6372 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6374 def __init__(self, *args):
6376 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6377 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6379 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6380 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6383 r"""__str__(HarmonicUpperBound self) -> std::string"""
6384 return _IMP_core.HarmonicUpperBound___str__(self)
6387 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6388 return _IMP_core.HarmonicUpperBound___repr__(self)
6392 return _object_cast_to_HarmonicUpperBound(o)
6395 def _get_as_binary(self):
6396 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6397 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6399 def _set_from_binary(self, p):
6400 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6401 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6403 def __getstate__(self):
6404 p = self._get_as_binary()
6405 if len(self.__dict__) > 1:
6406 d = self.__dict__.copy()
6411 def __setstate__(self, p):
6412 if not hasattr(self,
'this'):
6414 if isinstance(p, tuple):
6416 self.__dict__.update(d)
6417 return self._set_from_binary(p)
6421 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6423 r"""Proxy of C++ IMP::core::WeightedSum class."""
6425 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6427 def __init__(self, funcs, weights):
6428 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6429 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6431 def get_function_number(self):
6432 r"""get_function_number(WeightedSum self) -> unsigned int"""
6433 return _IMP_core.WeightedSum_get_function_number(self)
6435 def set_weights(self, weights):
6436 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6437 return _IMP_core.WeightedSum_set_weights(self, weights)
6439 def get_weights(self):
6440 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6441 return _IMP_core.WeightedSum_get_weights(self)
6443 def get_weight(self, i):
6444 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6445 return _IMP_core.WeightedSum_get_weight(self, i)
6447 def get_function(self, i):
6448 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6449 return _IMP_core.WeightedSum_get_function(self, i)
6451 def get_version_info(self):
6452 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6453 return _IMP_core.WeightedSum_get_version_info(self)
6454 __swig_destroy__ = _IMP_core.delete_WeightedSum
6457 r"""__str__(WeightedSum self) -> std::string"""
6458 return _IMP_core.WeightedSum___str__(self)
6461 r"""__repr__(WeightedSum self) -> std::string"""
6462 return _IMP_core.WeightedSum___repr__(self)
6466 return _object_cast_to_WeightedSum(o)
6470 _IMP_core.WeightedSum_swigregister(WeightedSum)
6472 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6474 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6476 def __init__(self, funcs, weights, denom=1.0):
6477 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6478 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6480 def get_function_number(self):
6481 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6482 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6484 def set_weights(self, weights):
6485 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6486 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6488 def get_weights(self):
6489 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6490 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6492 def get_weight(self, i):
6493 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6494 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6496 def get_function(self, i):
6497 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6498 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6500 def set_denominator(self, denom):
6501 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6502 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6504 def get_denominator(self):
6505 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6506 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6508 def get_version_info(self):
6509 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6510 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6511 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6514 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6515 return _IMP_core.WeightedSumOfExponential___str__(self)
6518 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6519 return _IMP_core.WeightedSumOfExponential___repr__(self)
6523 return _object_cast_to_WeightedSumOfExponential(o)
6527 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6529 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6531 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6533 def __init__(self, m, ps, eps=0.1):
6534 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6535 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6537 def add_type(self, ps):
6538 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6539 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6541 def add_composite(self, *args):
6543 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6544 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6546 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6548 def get_connected_pairs(self):
6549 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6550 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6552 def get_pair_score(self):
6553 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6554 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6556 def do_create_current_decomposition(self):
6557 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6558 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6560 def do_get_inputs(self):
6561 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6562 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6564 def get_version_info(self):
6565 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6566 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6567 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6570 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6571 return _IMP_core.MSConnectivityRestraint___str__(self)
6574 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6575 return _IMP_core.MSConnectivityRestraint___repr__(self)
6579 return _object_cast_to_MSConnectivityRestraint(o)
6583 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6584 class HierarchyTraits(object):
6585 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6587 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6589 def __init__(self, *args):
6591 __init__(HierarchyTraits self) -> HierarchyTraits
6592 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6594 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6596 def get_children_key(self):
6597 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6598 return _IMP_core.HierarchyTraits_get_children_key(self)
6600 def get_parent_key(self):
6601 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6602 return _IMP_core.HierarchyTraits_get_parent_key(self)
6604 def __eq__(self, o):
6605 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6606 return _IMP_core.HierarchyTraits___eq__(self, o)
6608 def show(self, *args):
6609 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6610 return _IMP_core.HierarchyTraits_show(self, *args)
6613 r"""__str__(HierarchyTraits self) -> std::string"""
6614 return _IMP_core.HierarchyTraits___str__(self)
6617 r"""__repr__(HierarchyTraits self) -> std::string"""
6618 return _IMP_core.HierarchyTraits___repr__(self)
6619 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6622 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6624 r"""Proxy of C++ IMP::core::Hierarchy class."""
6626 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6628 def get_decorator_traits(self):
6629 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6630 return _IMP_core.Hierarchy_get_decorator_traits(self)
6633 def get_default_decorator_traits():
6634 r"""get_default_decorator_traits() -> HierarchyTraits"""
6635 return _IMP_core.Hierarchy_get_default_decorator_traits()
6637 def __init__(self, *args):
6639 __init__(Hierarchy self) -> Hierarchy
6640 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6641 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6643 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6645 def show(self, *args):
6646 r"""show(Hierarchy self, _ostream out=std::cout)"""
6647 return _IMP_core.Hierarchy_show(self, *args)
6650 def setup_particle(*args):
6652 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6653 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6654 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6655 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6656 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6657 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6659 return _IMP_core.Hierarchy_setup_particle(*args)
6662 def get_is_setup(*args):
6664 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6665 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6667 return _IMP_core.Hierarchy_get_is_setup(*args)
6670 def get_changed_key():
6671 r"""get_changed_key() -> TriggerKey"""
6672 return _IMP_core.Hierarchy_get_changed_key()
6674 def get_parent(self):
6675 r"""get_parent(Hierarchy self) -> Hierarchy"""
6676 return _IMP_core.Hierarchy_get_parent(self)
6678 def get_number_of_children(self):
6679 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6680 return _IMP_core.Hierarchy_get_number_of_children(self)
6682 def get_child(self, i):
6683 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6684 return _IMP_core.Hierarchy_get_child(self, i)
6686 def get_children_indexes(self):
6687 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6688 return _IMP_core.Hierarchy_get_children_indexes(self)
6690 def get_children(self):
6691 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6692 return _IMP_core.Hierarchy_get_children(self)
6694 def remove_child(self, *args):
6696 remove_child(Hierarchy self, unsigned int i)
6697 remove_child(Hierarchy self, Hierarchy h)
6699 return _IMP_core.Hierarchy_remove_child(self, *args)
6701 def clear_children(self):
6702 r"""clear_children(Hierarchy self)"""
6703 return _IMP_core.Hierarchy_clear_children(self)
6705 def add_child(self, h):
6706 r"""add_child(Hierarchy self, Hierarchy h)"""
6707 return _IMP_core.Hierarchy_add_child(self, h)
6709 def add_child_at(self, h, pos):
6710 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6711 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6713 def get_child_index(self, *args):
6715 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6716 get_child_index(Hierarchy self) -> int
6718 return _IMP_core.Hierarchy_get_child_index(self, *args)
6721 def get_default_traits():
6722 r"""get_default_traits() -> HierarchyTraits"""
6723 return _IMP_core.Hierarchy_get_default_traits()
6725 def get_traits(self):
6726 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6727 return _IMP_core.Hierarchy_get_traits(self)
6729 def add_attribute(self, *args):
6731 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6732 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6733 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6734 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6735 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6736 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6737 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6738 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6739 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6740 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6741 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6742 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6744 return _IMP_core.Hierarchy_add_attribute(self, *args)
6746 def get_value(self, *args):
6748 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6749 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6750 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6751 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6752 get_value(Hierarchy self, StringKey a0) -> IMP::String
6753 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6754 get_value(Hierarchy self, ObjectKey a0) -> Object
6755 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6756 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6757 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6758 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6760 return _IMP_core.Hierarchy_get_value(self, *args)
6762 def set_value(self, *args):
6764 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6765 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6766 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6767 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6768 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6769 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6770 set_value(Hierarchy self, ObjectKey a0, Object a1)
6771 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6772 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6773 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6774 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6776 return _IMP_core.Hierarchy_set_value(self, *args)
6778 def remove_attribute(self, *args):
6780 remove_attribute(Hierarchy self, FloatKey a0)
6781 remove_attribute(Hierarchy self, IntKey a0)
6782 remove_attribute(Hierarchy self, FloatsKey a0)
6783 remove_attribute(Hierarchy self, IntsKey a0)
6784 remove_attribute(Hierarchy self, StringKey a0)
6785 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6786 remove_attribute(Hierarchy self, ObjectKey a0)
6787 remove_attribute(Hierarchy self, SparseFloatKey a0)
6788 remove_attribute(Hierarchy self, SparseIntKey a0)
6789 remove_attribute(Hierarchy self, SparseStringKey a0)
6790 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6792 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6794 def has_attribute(self, *args):
6796 has_attribute(Hierarchy self, FloatKey a0) -> bool
6797 has_attribute(Hierarchy self, IntKey a0) -> bool
6798 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6799 has_attribute(Hierarchy self, IntsKey a0) -> bool
6800 has_attribute(Hierarchy self, StringKey a0) -> bool
6801 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6802 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6803 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6804 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6805 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6806 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6808 return _IMP_core.Hierarchy_has_attribute(self, *args)
6810 def get_derivative(self, a0):
6811 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6812 return _IMP_core.Hierarchy_get_derivative(self, a0)
6815 r"""get_name(Hierarchy self) -> std::string"""
6816 return _IMP_core.Hierarchy_get_name(self)
6818 def clear_caches(self):
6819 r"""clear_caches(Hierarchy self)"""
6820 return _IMP_core.Hierarchy_clear_caches(self)
6822 def set_name(self, a0):
6823 r"""set_name(Hierarchy self, std::string a0)"""
6824 return _IMP_core.Hierarchy_set_name(self, a0)
6827 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6828 return _IMP_core.Hierarchy_set_check_level(self, a0)
6830 def add_to_derivative(self, a0, a1, a2):
6831 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6832 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6834 def set_is_optimized(self, a0, a1):
6835 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6836 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6838 def get_is_optimized(self, a0):
6839 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6840 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6843 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6844 return _IMP_core.Hierarchy_get_check_level(self)
6846 def __eq__(self, *args):
6848 __eq__(Hierarchy self, Hierarchy o) -> bool
6849 __eq__(Hierarchy self, Particle d) -> bool
6851 return _IMP_core.Hierarchy___eq__(self, *args)
6853 def __ne__(self, *args):
6855 __ne__(Hierarchy self, Hierarchy o) -> bool
6856 __ne__(Hierarchy self, Particle d) -> bool
6858 return _IMP_core.Hierarchy___ne__(self, *args)
6860 def __le__(self, *args):
6862 __le__(Hierarchy self, Hierarchy o) -> bool
6863 __le__(Hierarchy self, Particle d) -> bool
6865 return _IMP_core.Hierarchy___le__(self, *args)
6867 def __lt__(self, *args):
6869 __lt__(Hierarchy self, Hierarchy o) -> bool
6870 __lt__(Hierarchy self, Particle d) -> bool
6872 return _IMP_core.Hierarchy___lt__(self, *args)
6874 def __ge__(self, *args):
6876 __ge__(Hierarchy self, Hierarchy o) -> bool
6877 __ge__(Hierarchy self, Particle d) -> bool
6879 return _IMP_core.Hierarchy___ge__(self, *args)
6881 def __gt__(self, *args):
6883 __gt__(Hierarchy self, Hierarchy o) -> bool
6884 __gt__(Hierarchy self, Particle d) -> bool
6886 return _IMP_core.Hierarchy___gt__(self, *args)
6889 r"""__hash__(Hierarchy self) -> std::size_t"""
6890 return _IMP_core.Hierarchy___hash__(self)
6893 r"""__str__(Hierarchy self) -> std::string"""
6894 return _IMP_core.Hierarchy___str__(self)
6897 r"""__repr__(Hierarchy self) -> std::string"""
6898 return _IMP_core.Hierarchy___repr__(self)
6899 __swig_destroy__ = _IMP_core.delete_Hierarchy
6902 _IMP_core.Hierarchy_swigregister(Hierarchy)
6903 class HierarchyVisitor(object):
6904 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6906 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6907 __repr__ = _swig_repr
6910 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6911 if self.__class__ == HierarchyVisitor:
6915 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6917 if self.__class__ != HierarchyVisitor:
6918 _director_objects.register(self)
6923 def __call__(self, p):
6924 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6925 return _IMP_core.HierarchyVisitor___call__(self, p)
6926 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6927 def __disown__(self):
6929 _IMP_core.disown_HierarchyVisitor(self)
6930 return weakref.proxy(self)
6933 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6934 class ModifierVisitor(HierarchyVisitor):
6935 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6937 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6938 __repr__ = _swig_repr
6940 def __init__(self, sm):
6941 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6942 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6943 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6946 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6947 class HierarchyCounter(HierarchyVisitor):
6948 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6950 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6953 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6954 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6956 def get_count(self):
6957 r"""get_count(HierarchyCounter self) -> unsigned int"""
6958 return _IMP_core.HierarchyCounter_get_count(self)
6960 def show(self, *args):
6961 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6962 return _IMP_core.HierarchyCounter_show(self, *args)
6965 r"""__str__(HierarchyCounter self) -> std::string"""
6966 return _IMP_core.HierarchyCounter___str__(self)
6969 r"""__repr__(HierarchyCounter self) -> std::string"""
6970 return _IMP_core.HierarchyCounter___repr__(self)
6972 def _get_as_binary(self):
6973 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6974 return _IMP_core.HierarchyCounter__get_as_binary(self)
6976 def _set_from_binary(self, p):
6977 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6978 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6980 def __getstate__(self):
6981 p = self._get_as_binary()
6982 if len(self.__dict__) > 1:
6983 d = self.__dict__.copy()
6988 def __setstate__(self, p):
6989 if not hasattr(self,
'this'):
6991 if isinstance(p, tuple):
6993 self.__dict__.update(d)
6994 return self._set_from_binary(p)
6996 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6999 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7002 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7003 return _IMP_core.get_leaves(mhd)
7006 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7007 return _IMP_core.get_internal(mhd)
7010 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7011 return _IMP_core.get_all_descendants(mhd)
7014 r"""get_root(Hierarchy h) -> Hierarchy"""
7015 return _IMP_core.get_root(h)
7018 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7019 return _IMP_core.visit_breadth_first(d, f)
7022 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7023 return _IMP_core.visit_depth_first(d, f)
7025 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7027 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7029 def __init__(self, tr):
7030 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7031 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7033 def do_get_inputs(self, m, pis):
7034 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7035 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7037 def get_version_info(self):
7038 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7039 return _IMP_core.LeavesRefiner_get_version_info(self)
7040 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7043 r"""__str__(LeavesRefiner self) -> std::string"""
7044 return _IMP_core.LeavesRefiner___str__(self)
7047 r"""__repr__(LeavesRefiner self) -> std::string"""
7048 return _IMP_core.LeavesRefiner___repr__(self)
7052 return _object_cast_to_LeavesRefiner(o)
7056 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7058 r"""Proxy of C++ IMP::core::Linear class."""
7060 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7062 def __init__(self, *args):
7064 __init__(Linear self, double offset, double slope) -> Linear
7065 __init__(Linear self) -> Linear
7067 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7069 def set_slope(self, f):
7070 r"""set_slope(Linear self, double f)"""
7071 return _IMP_core.Linear_set_slope(self, f)
7073 def set_offset(self, f):
7074 r"""set_offset(Linear self, double f)"""
7075 return _IMP_core.Linear_set_offset(self, f)
7077 def get_version_info(self):
7078 r"""get_version_info(Linear self) -> VersionInfo"""
7079 return _IMP_core.Linear_get_version_info(self)
7080 __swig_destroy__ = _IMP_core.delete_Linear
7083 r"""__str__(Linear self) -> std::string"""
7084 return _IMP_core.Linear___str__(self)
7087 r"""__repr__(Linear self) -> std::string"""
7088 return _IMP_core.Linear___repr__(self)
7092 return _object_cast_to_Linear(o)
7095 def _get_as_binary(self):
7096 r"""_get_as_binary(Linear self) -> PyObject *"""
7097 return _IMP_core.Linear__get_as_binary(self)
7099 def _set_from_binary(self, p):
7100 r"""_set_from_binary(Linear self, PyObject * p)"""
7101 return _IMP_core.Linear__set_from_binary(self, p)
7103 def __getstate__(self):
7104 p = self._get_as_binary()
7105 if len(self.__dict__) > 1:
7106 d = self.__dict__.copy()
7111 def __setstate__(self, p):
7112 if not hasattr(self,
'this'):
7114 if isinstance(p, tuple):
7116 self.__dict__.update(d)
7117 return self._set_from_binary(p)
7121 _IMP_core.Linear_swigregister(Linear)
7122 class LogNormalMover(MonteCarloMover):
7123 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7125 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7127 def __init__(self, *args):
7129 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7130 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7131 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7132 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7133 __init__(LogNormalMover self) -> LogNormalMover
7135 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7137 def set_sigma(self, sigma):
7138 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7139 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7141 def get_sigma(self):
7142 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7143 return _IMP_core.LogNormalMover_get_sigma(self)
7145 def get_version_info(self):
7146 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7147 return _IMP_core.LogNormalMover_get_version_info(self)
7148 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7151 r"""__str__(LogNormalMover self) -> std::string"""
7152 return _IMP_core.LogNormalMover___str__(self)
7155 r"""__repr__(LogNormalMover self) -> std::string"""
7156 return _IMP_core.LogNormalMover___repr__(self)
7160 return _object_cast_to_LogNormalMover(o)
7163 def _get_as_binary(self):
7164 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7165 return _IMP_core.LogNormalMover__get_as_binary(self)
7167 def _set_from_binary(self, p):
7168 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7169 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7171 def __getstate__(self):
7172 p = self._get_as_binary()
7173 if len(self.__dict__) > 1:
7174 d = self.__dict__.copy()
7179 def __setstate__(self, p):
7180 if not hasattr(self,
'this'):
7182 if isinstance(p, tuple):
7184 self.__dict__.update(d)
7185 return self._set_from_binary(p)
7189 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7190 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7193 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7195 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7197 def __init__(self, m):
7198 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7199 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7201 def get_version_info(self):
7202 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7203 return _IMP_core.MonteCarlo_get_version_info(self)
7204 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7206 def set_return_best(self, tf):
7207 r"""set_return_best(MonteCarlo self, bool tf)"""
7208 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7210 def set_score_moved(self, mv):
7211 r"""set_score_moved(MonteCarlo self, bool mv)"""
7212 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7214 def set_kt(self, t):
7215 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7216 return _IMP_core.MonteCarlo_set_kt(self, t)
7219 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7220 return _IMP_core.MonteCarlo_get_kt(self)
7222 def get_last_accepted_energy(self):
7223 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7224 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7226 def get_best_accepted_energy(self):
7227 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7228 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7230 def get_number_of_downward_steps(self):
7231 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7232 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7234 def get_number_of_upward_steps(self):
7235 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7236 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7238 def get_number_of_proposed_steps(self):
7239 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7240 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7242 def get_number_of_accepted_steps(self):
7243 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7244 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7246 def reset_statistics(self):
7247 r"""reset_statistics(MonteCarlo self)"""
7248 return _IMP_core.MonteCarlo_reset_statistics(self)
7250 def set_score_threshold(self, s):
7251 r"""set_score_threshold(MonteCarlo self, double s)"""
7252 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7254 def get_score_threshold(self):
7255 r"""get_score_threshold(MonteCarlo self) -> double"""
7256 return _IMP_core.MonteCarlo_get_score_threshold(self)
7258 def set_maximum_difference(self, d):
7259 r"""set_maximum_difference(MonteCarlo self, double d)"""
7260 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7262 def get_maximum_difference(self):
7263 r"""get_maximum_difference(MonteCarlo self) -> double"""
7264 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7265 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)
7266 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7267 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7268 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7270 def remove_mover(self, d):
7271 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7272 return _IMP_core.MonteCarlo_remove_mover(self, d)
7274 def _python_index_mover(self, d, start, stop):
7275 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7276 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7278 def remove_movers(self, d):
7279 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7280 return _IMP_core.MonteCarlo_remove_movers(self, d)
7282 def set_movers(self, ps):
7283 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7284 return _IMP_core.MonteCarlo_set_movers(self, ps)
7286 def set_movers_order(self, objs):
7287 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7288 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7290 def add_mover(self, obj):
7291 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7292 return _IMP_core.MonteCarlo_add_mover(self, obj)
7294 def add_movers(self, objs):
7295 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7296 return _IMP_core.MonteCarlo_add_movers(self, objs)
7298 def clear_movers(self):
7299 r"""clear_movers(MonteCarlo self)"""
7300 return _IMP_core.MonteCarlo_clear_movers(self)
7302 def get_number_of_movers(self):
7303 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7304 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7306 def get_has_movers(self):
7307 r"""get_has_movers(MonteCarlo self) -> bool"""
7308 return _IMP_core.MonteCarlo_get_has_movers(self)
7310 def get_mover(self, i):
7311 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7312 return _IMP_core.MonteCarlo_get_mover(self, i)
7314 def get_movers(self):
7315 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7316 return _IMP_core.MonteCarlo_get_movers(self)
7318 def erase_mover(self, i):
7319 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7320 return _IMP_core.MonteCarlo_erase_mover(self, i)
7322 def reserve_movers(self, sz):
7323 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7324 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7327 r"""__str__(MonteCarlo self) -> std::string"""
7328 return _IMP_core.MonteCarlo___str__(self)
7331 r"""__repr__(MonteCarlo self) -> std::string"""
7332 return _IMP_core.MonteCarlo___repr__(self)
7336 return _object_cast_to_MonteCarlo(o)
7340 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7341 class MonteCarloWithLocalOptimization(MonteCarlo):
7342 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7344 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7346 def __init__(self, opt, steps):
7347 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7348 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7350 def get_number_of_steps(self):
7351 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7352 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7354 def get_local_optimizer(self):
7355 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7356 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7357 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7360 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7361 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7364 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7365 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7369 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7373 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7374 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7375 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7377 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7379 def __init__(self, opt, ns):
7380 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7381 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7382 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7385 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7386 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7389 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7390 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7394 return _object_cast_to_MonteCarloWithBasinHopping(o)
7398 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7400 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7402 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7404 def __init__(self, *args):
7405 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7406 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7408 def get_neighbors(self, pi):
7409 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7410 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7412 def get_version_info(self):
7413 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7414 return _IMP_core.NeighborsTable_get_version_info(self)
7415 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7418 r"""__str__(NeighborsTable self) -> std::string"""
7419 return _IMP_core.NeighborsTable___str__(self)
7422 r"""__repr__(NeighborsTable self) -> std::string"""
7423 return _IMP_core.NeighborsTable___repr__(self)
7427 return _object_cast_to_NeighborsTable(o)
7431 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7432 class NormalMover(MonteCarloMover):
7433 r"""Proxy of C++ IMP::core::NormalMover class."""
7435 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7437 def __init__(self, *args):
7439 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7440 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7441 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7442 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7443 __init__(NormalMover self) -> NormalMover
7445 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7447 def set_sigma(self, sigma):
7448 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7449 return _IMP_core.NormalMover_set_sigma(self, sigma)
7451 def get_sigma(self):
7452 r"""get_sigma(NormalMover self) -> IMP::Float"""
7453 return _IMP_core.NormalMover_get_sigma(self)
7455 def get_version_info(self):
7456 r"""get_version_info(NormalMover self) -> VersionInfo"""
7457 return _IMP_core.NormalMover_get_version_info(self)
7458 __swig_destroy__ = _IMP_core.delete_NormalMover
7461 r"""__str__(NormalMover self) -> std::string"""
7462 return _IMP_core.NormalMover___str__(self)
7465 r"""__repr__(NormalMover self) -> std::string"""
7466 return _IMP_core.NormalMover___repr__(self)
7470 return _object_cast_to_NormalMover(o)
7473 def _get_as_binary(self):
7474 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7475 return _IMP_core.NormalMover__get_as_binary(self)
7477 def _set_from_binary(self, p):
7478 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7479 return _IMP_core.NormalMover__set_from_binary(self, p)
7481 def __getstate__(self):
7482 p = self._get_as_binary()
7483 if len(self.__dict__) > 1:
7484 d = self.__dict__.copy()
7489 def __setstate__(self, p):
7490 if not hasattr(self,
'this'):
7492 if isinstance(p, tuple):
7494 self.__dict__.update(d)
7495 return self._set_from_binary(p)
7499 _IMP_core.NormalMover_swigregister(NormalMover)
7500 class OpenCubicSpline(_OpenCubicSplineBase):
7501 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7503 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7505 def __init__(self, values, minrange, spacing, extend=False):
7506 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7507 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7510 r"""__str__(OpenCubicSpline self) -> std::string"""
7511 return _IMP_core.OpenCubicSpline___str__(self)
7514 r"""__repr__(OpenCubicSpline self) -> std::string"""
7515 return _IMP_core.OpenCubicSpline___repr__(self)
7519 return _object_cast_to_OpenCubicSpline(o)
7521 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7524 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7525 class QuadraticClosePairsFinder(ClosePairsFinder):
7526 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7528 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7531 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7532 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7534 def get_are_close_and_filtered(self, *args):
7536 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7537 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7539 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7541 def get_close_pairs(self, *args):
7543 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7544 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7545 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7546 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7548 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7550 def do_get_inputs(self, m, pis):
7551 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7552 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7554 def get_version_info(self):
7555 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7556 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7557 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7560 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7561 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7564 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7565 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7569 return _object_cast_to_QuadraticClosePairsFinder(o)
7573 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7575 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7577 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7579 def __init__(self, r, f):
7580 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7581 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7583 def do_get_inputs(self, m, pis):
7584 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7585 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7587 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7588 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"""
7589 return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7591 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7592 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"""
7593 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7595 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7596 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"""
7597 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7599 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7600 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"""
7601 return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7603 def get_version_info(self):
7604 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7605 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7606 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7609 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7610 return _IMP_core.RefinedPairsPairScore___str__(self)
7613 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7614 return _IMP_core.RefinedPairsPairScore___repr__(self)
7618 return _object_cast_to_RefinedPairsPairScore(o)
7622 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7623 class RigidBody(XYZ):
7624 r"""Proxy of C++ IMP::core::RigidBody class."""
7626 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7628 def get_rigid_members(self):
7629 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7630 return _IMP_core.RigidBody_get_rigid_members(self)
7633 def get_rotation_keys():
7634 r"""get_rotation_keys() -> IMP::FloatKeys"""
7635 return _IMP_core.RigidBody_get_rotation_keys()
7637 def get_member_particle_indexes(self):
7638 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7639 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7641 def get_body_member_particle_indexes(self):
7642 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7643 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7645 def get_member_indexes(self):
7646 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7647 return _IMP_core.RigidBody_get_member_indexes(self)
7649 def show(self, *args):
7650 r"""show(RigidBody self, _ostream out=std::cout)"""
7651 return _IMP_core.RigidBody_show(self, *args)
7654 def setup_particle(*args):
7656 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7657 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7658 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7659 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7661 return _IMP_core.RigidBody_setup_particle(*args)
7664 def teardown_particle(rb):
7665 r"""teardown_particle(RigidBody rb)"""
7666 return _IMP_core.RigidBody_teardown_particle(rb)
7668 def __init__(self, *args):
7670 __init__(RigidBody self) -> RigidBody
7671 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7672 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7673 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7675 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7676 __swig_destroy__ = _IMP_core.delete_RigidBody
7679 def get_is_setup(*args):
7681 get_is_setup(_ParticleAdaptor p) -> bool
7682 get_is_setup(Model m, ParticleIndex pi) -> bool
7684 return _IMP_core.RigidBody_get_is_setup(*args)
7686 def get_coordinates(self):
7687 r"""get_coordinates(RigidBody self) -> Vector3D"""
7688 return _IMP_core.RigidBody_get_coordinates(self)
7690 def get_rotation(self):
7691 r"""get_rotation(RigidBody self) -> Rotation3D"""
7692 return _IMP_core.RigidBody_get_rotation(self)
7694 def get_reference_frame(self):
7695 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7696 return _IMP_core.RigidBody_get_reference_frame(self)
7698 def set_reference_frame(self, tr):
7699 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7700 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7702 def set_reference_frame_lazy(self, tr):
7703 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7704 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7706 def set_reference_frame_from_members(self, members):
7707 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7708 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7710 def pull_back_members_adjoints(self, da):
7711 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7712 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7714 def pull_back_member_adjoints(self, pi, da):
7715 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7716 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7718 def pull_back_body_member_adjoints(self, pi, da):
7719 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7720 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7722 def add_to_derivatives(self, *args):
7724 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7725 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7727 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7729 def add_to_rotational_derivatives(self, *args):
7731 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7732 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7734 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7736 def add_to_torque(self, torque_local, da):
7737 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7738 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7740 def get_torque(self):
7741 r"""get_torque(RigidBody self) -> Vector3D"""
7742 return _IMP_core.RigidBody_get_torque(self)
7744 def get_coordinates_are_optimized(self):
7745 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7746 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7748 def set_coordinates_are_optimized(self, tf):
7749 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7750 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7752 def normalize_rotation(self):
7753 r"""normalize_rotation(RigidBody self)"""
7754 return _IMP_core.RigidBody_normalize_rotation(self)
7756 def update_members(self):
7757 r"""update_members(RigidBody self)"""
7758 return _IMP_core.RigidBody_update_members(self)
7760 def get_rotational_derivatives(self):
7761 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7762 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7764 def get_number_of_members(self):
7765 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7766 return _IMP_core.RigidBody_get_number_of_members(self)
7768 def get_member(self, i):
7769 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7770 return _IMP_core.RigidBody_get_member(self, i)
7772 def add_member(self, p):
7773 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7774 return _IMP_core.RigidBody_add_member(self, p)
7776 def add_non_rigid_member(self, p):
7777 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7778 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7780 def set_is_rigid_member(self, pi, tf):
7781 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7782 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7784 def remove_member(self, p):
7785 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7786 return _IMP_core.RigidBody_remove_member(self, p)
7788 def add_attribute(self, *args):
7790 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7791 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7792 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7793 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7794 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7795 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7796 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7797 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7798 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7799 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7800 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7801 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7803 return _IMP_core.RigidBody_add_attribute(self, *args)
7805 def get_value(self, *args):
7807 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7808 get_value(RigidBody self, IntKey a0) -> IMP::Int
7809 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7810 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7811 get_value(RigidBody self, StringKey a0) -> IMP::String
7812 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7813 get_value(RigidBody self, ObjectKey a0) -> Object
7814 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7815 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7816 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7817 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7819 return _IMP_core.RigidBody_get_value(self, *args)
7821 def set_value(self, *args):
7823 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7824 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7825 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7826 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7827 set_value(RigidBody self, StringKey a0, IMP::String a1)
7828 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7829 set_value(RigidBody self, ObjectKey a0, Object a1)
7830 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7831 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7832 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7833 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7835 return _IMP_core.RigidBody_set_value(self, *args)
7837 def remove_attribute(self, *args):
7839 remove_attribute(RigidBody self, FloatKey a0)
7840 remove_attribute(RigidBody self, IntKey a0)
7841 remove_attribute(RigidBody self, FloatsKey a0)
7842 remove_attribute(RigidBody self, IntsKey a0)
7843 remove_attribute(RigidBody self, StringKey a0)
7844 remove_attribute(RigidBody self, ParticleIndexKey a0)
7845 remove_attribute(RigidBody self, ObjectKey a0)
7846 remove_attribute(RigidBody self, SparseFloatKey a0)
7847 remove_attribute(RigidBody self, SparseIntKey a0)
7848 remove_attribute(RigidBody self, SparseStringKey a0)
7849 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7851 return _IMP_core.RigidBody_remove_attribute(self, *args)
7853 def has_attribute(self, *args):
7855 has_attribute(RigidBody self, FloatKey a0) -> bool
7856 has_attribute(RigidBody self, IntKey a0) -> bool
7857 has_attribute(RigidBody self, FloatsKey a0) -> bool
7858 has_attribute(RigidBody self, IntsKey a0) -> bool
7859 has_attribute(RigidBody self, StringKey a0) -> bool
7860 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7861 has_attribute(RigidBody self, ObjectKey a0) -> bool
7862 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7863 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7864 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7865 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7867 return _IMP_core.RigidBody_has_attribute(self, *args)
7869 def get_derivative(self, a0):
7870 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7871 return _IMP_core.RigidBody_get_derivative(self, a0)
7874 r"""get_name(RigidBody self) -> std::string"""
7875 return _IMP_core.RigidBody_get_name(self)
7877 def clear_caches(self):
7878 r"""clear_caches(RigidBody self)"""
7879 return _IMP_core.RigidBody_clear_caches(self)
7881 def set_name(self, a0):
7882 r"""set_name(RigidBody self, std::string a0)"""
7883 return _IMP_core.RigidBody_set_name(self, a0)
7886 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7887 return _IMP_core.RigidBody_set_check_level(self, a0)
7889 def add_to_derivative(self, a0, a1, a2):
7890 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7891 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7893 def set_is_optimized(self, a0, a1):
7894 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7895 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7897 def get_is_optimized(self, a0):
7898 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7899 return _IMP_core.RigidBody_get_is_optimized(self, a0)
7902 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7903 return _IMP_core.RigidBody_get_check_level(self)
7905 def __eq__(self, *args):
7907 __eq__(RigidBody self, RigidBody o) -> bool
7908 __eq__(RigidBody self, Particle d) -> bool
7910 return _IMP_core.RigidBody___eq__(self, *args)
7912 def __ne__(self, *args):
7914 __ne__(RigidBody self, RigidBody o) -> bool
7915 __ne__(RigidBody self, Particle d) -> bool
7917 return _IMP_core.RigidBody___ne__(self, *args)
7919 def __le__(self, *args):
7921 __le__(RigidBody self, RigidBody o) -> bool
7922 __le__(RigidBody self, Particle d) -> bool
7924 return _IMP_core.RigidBody___le__(self, *args)
7926 def __lt__(self, *args):
7928 __lt__(RigidBody self, RigidBody o) -> bool
7929 __lt__(RigidBody self, Particle d) -> bool
7931 return _IMP_core.RigidBody___lt__(self, *args)
7933 def __ge__(self, *args):
7935 __ge__(RigidBody self, RigidBody o) -> bool
7936 __ge__(RigidBody self, Particle d) -> bool
7938 return _IMP_core.RigidBody___ge__(self, *args)
7940 def __gt__(self, *args):
7942 __gt__(RigidBody self, RigidBody o) -> bool
7943 __gt__(RigidBody self, Particle d) -> bool
7945 return _IMP_core.RigidBody___gt__(self, *args)
7948 r"""__hash__(RigidBody self) -> std::size_t"""
7949 return _IMP_core.RigidBody___hash__(self)
7952 r"""__str__(RigidBody self) -> std::string"""
7953 return _IMP_core.RigidBody___str__(self)
7956 r"""__repr__(RigidBody self) -> std::string"""
7957 return _IMP_core.RigidBody___repr__(self)
7959 def _get_as_binary(self):
7960 r"""_get_as_binary(RigidBody self) -> PyObject *"""
7961 return _IMP_core.RigidBody__get_as_binary(self)
7963 def _set_from_binary(self, p):
7964 r"""_set_from_binary(RigidBody self, PyObject * p)"""
7965 return _IMP_core.RigidBody__set_from_binary(self, p)
7967 def __getstate__(self):
7968 p = self._get_as_binary()
7969 if len(self.__dict__) > 1:
7970 d = self.__dict__.copy()
7975 def __setstate__(self, p):
7976 if not hasattr(self,
'this'):
7978 if isinstance(p, tuple):
7980 self.__dict__.update(d)
7981 return self._set_from_binary(p)
7985 _IMP_core.RigidBody_swigregister(RigidBody)
7988 r"""add_rigid_body_cache_key(ObjectKey k)"""
7989 return _IMP_core.add_rigid_body_cache_key(k)
7990 class RigidBodyMember(XYZ):
7991 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7993 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7995 def show(self, *args):
7996 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7997 return _IMP_core.RigidBodyMember_show(self, *args)
7999 def get_rigid_body(self):
8000 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8001 return _IMP_core.RigidBodyMember_get_rigid_body(self)
8003 def get_internal_coordinates(self):
8004 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8005 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8007 def set_internal_coordinates(self, v):
8008 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8009 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8011 def set_internal_transformation(self, v):
8012 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8013 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8015 def get_internal_transformation(self):
8016 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8017 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8018 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8020 def set_coordinates(self, *args):
8022 set_coordinates(RigidBodyMember self, Vector3D center)
8023 set_coordinates(RigidBodyMember self, Transformation3D tr)
8025 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8027 def __init__(self, *args):
8029 __init__(RigidBodyMember self) -> RigidBodyMember
8030 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8031 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8032 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8034 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8037 def get_is_setup(*args):
8039 get_is_setup(_ParticleAdaptor p) -> bool
8040 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8042 return _IMP_core.RigidBodyMember_get_is_setup(*args)
8045 def get_internal_coordinate_keys():
8046 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8047 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8050 def get_internal_rotation_keys():
8051 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8052 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8054 def add_attribute(self, *args):
8056 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8057 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8058 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8059 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8060 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8061 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8062 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8063 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8064 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8065 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8066 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8067 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8069 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8071 def get_value(self, *args):
8073 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8074 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8075 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8076 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8077 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8078 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8079 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8080 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8081 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8082 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8083 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8085 return _IMP_core.RigidBodyMember_get_value(self, *args)
8087 def set_value(self, *args):
8089 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8090 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8091 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8092 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8093 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8094 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8095 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8096 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8097 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8098 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8099 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8101 return _IMP_core.RigidBodyMember_set_value(self, *args)
8103 def remove_attribute(self, *args):
8105 remove_attribute(RigidBodyMember self, FloatKey a0)
8106 remove_attribute(RigidBodyMember self, IntKey a0)
8107 remove_attribute(RigidBodyMember self, FloatsKey a0)
8108 remove_attribute(RigidBodyMember self, IntsKey a0)
8109 remove_attribute(RigidBodyMember self, StringKey a0)
8110 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8111 remove_attribute(RigidBodyMember self, ObjectKey a0)
8112 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8113 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8114 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8115 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8117 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8119 def has_attribute(self, *args):
8121 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8122 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8123 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8124 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8125 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8126 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8127 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8128 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8129 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8130 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8131 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8133 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8135 def get_derivative(self, a0):
8136 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8137 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8140 r"""get_name(RigidBodyMember self) -> std::string"""
8141 return _IMP_core.RigidBodyMember_get_name(self)
8143 def clear_caches(self):
8144 r"""clear_caches(RigidBodyMember self)"""
8145 return _IMP_core.RigidBodyMember_clear_caches(self)
8147 def set_name(self, a0):
8148 r"""set_name(RigidBodyMember self, std::string a0)"""
8149 return _IMP_core.RigidBodyMember_set_name(self, a0)
8152 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8153 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8155 def add_to_derivative(self, a0, a1, a2):
8156 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8157 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8159 def set_is_optimized(self, a0, a1):
8160 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8161 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8163 def get_is_optimized(self, a0):
8164 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8165 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8168 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8169 return _IMP_core.RigidBodyMember_get_check_level(self)
8171 def __eq__(self, *args):
8173 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8174 __eq__(RigidBodyMember self, Particle d) -> bool
8176 return _IMP_core.RigidBodyMember___eq__(self, *args)
8178 def __ne__(self, *args):
8180 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8181 __ne__(RigidBodyMember self, Particle d) -> bool
8183 return _IMP_core.RigidBodyMember___ne__(self, *args)
8185 def __le__(self, *args):
8187 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8188 __le__(RigidBodyMember self, Particle d) -> bool
8190 return _IMP_core.RigidBodyMember___le__(self, *args)
8192 def __lt__(self, *args):
8194 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8195 __lt__(RigidBodyMember self, Particle d) -> bool
8197 return _IMP_core.RigidBodyMember___lt__(self, *args)
8199 def __ge__(self, *args):
8201 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8202 __ge__(RigidBodyMember self, Particle d) -> bool
8204 return _IMP_core.RigidBodyMember___ge__(self, *args)
8206 def __gt__(self, *args):
8208 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8209 __gt__(RigidBodyMember self, Particle d) -> bool
8211 return _IMP_core.RigidBodyMember___gt__(self, *args)
8214 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8215 return _IMP_core.RigidBodyMember___hash__(self)
8218 r"""__str__(RigidBodyMember self) -> std::string"""
8219 return _IMP_core.RigidBodyMember___str__(self)
8222 r"""__repr__(RigidBodyMember self) -> std::string"""
8223 return _IMP_core.RigidBodyMember___repr__(self)
8225 def _get_as_binary(self):
8226 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8227 return _IMP_core.RigidBodyMember__get_as_binary(self)
8229 def _set_from_binary(self, p):
8230 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8231 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8233 def __getstate__(self):
8234 p = self._get_as_binary()
8235 if len(self.__dict__) > 1:
8236 d = self.__dict__.copy()
8241 def __setstate__(self, p):
8242 if not hasattr(self,
'this'):
8244 if isinstance(p, tuple):
8246 self.__dict__.update(d)
8247 return self._set_from_binary(p)
8251 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8252 class RigidMember(RigidBodyMember):
8253 r"""Proxy of C++ IMP::core::RigidMember class."""
8255 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8257 def show(self, *args):
8258 r"""show(RigidMember self, _ostream out=std::cout)"""
8259 return _IMP_core.RigidMember_show(self, *args)
8261 def __init__(self, *args):
8263 __init__(RigidMember self) -> RigidMember
8264 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8265 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8266 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8268 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8269 __swig_destroy__ = _IMP_core.delete_RigidMember
8272 def get_is_setup(*args):
8274 get_is_setup(_ParticleAdaptor p) -> bool
8275 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8277 return _IMP_core.RigidMember_get_is_setup(*args)
8279 def add_attribute(self, *args):
8281 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8282 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8283 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8284 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8285 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8286 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8287 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8288 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8289 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8290 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8291 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8292 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8294 return _IMP_core.RigidMember_add_attribute(self, *args)
8296 def get_value(self, *args):
8298 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8299 get_value(RigidMember self, IntKey a0) -> IMP::Int
8300 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8301 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8302 get_value(RigidMember self, StringKey a0) -> IMP::String
8303 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8304 get_value(RigidMember self, ObjectKey a0) -> Object
8305 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8306 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8307 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8308 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8310 return _IMP_core.RigidMember_get_value(self, *args)
8312 def set_value(self, *args):
8314 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8315 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8316 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8317 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8318 set_value(RigidMember self, StringKey a0, IMP::String a1)
8319 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8320 set_value(RigidMember self, ObjectKey a0, Object a1)
8321 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8322 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8323 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8324 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8326 return _IMP_core.RigidMember_set_value(self, *args)
8328 def remove_attribute(self, *args):
8330 remove_attribute(RigidMember self, FloatKey a0)
8331 remove_attribute(RigidMember self, IntKey a0)
8332 remove_attribute(RigidMember self, FloatsKey a0)
8333 remove_attribute(RigidMember self, IntsKey a0)
8334 remove_attribute(RigidMember self, StringKey a0)
8335 remove_attribute(RigidMember self, ParticleIndexKey a0)
8336 remove_attribute(RigidMember self, ObjectKey a0)
8337 remove_attribute(RigidMember self, SparseFloatKey a0)
8338 remove_attribute(RigidMember self, SparseIntKey a0)
8339 remove_attribute(RigidMember self, SparseStringKey a0)
8340 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8342 return _IMP_core.RigidMember_remove_attribute(self, *args)
8344 def has_attribute(self, *args):
8346 has_attribute(RigidMember self, FloatKey a0) -> bool
8347 has_attribute(RigidMember self, IntKey a0) -> bool
8348 has_attribute(RigidMember self, FloatsKey a0) -> bool
8349 has_attribute(RigidMember self, IntsKey a0) -> bool
8350 has_attribute(RigidMember self, StringKey a0) -> bool
8351 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8352 has_attribute(RigidMember self, ObjectKey a0) -> bool
8353 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8354 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8355 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8356 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8358 return _IMP_core.RigidMember_has_attribute(self, *args)
8360 def get_derivative(self, a0):
8361 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8362 return _IMP_core.RigidMember_get_derivative(self, a0)
8365 r"""get_name(RigidMember self) -> std::string"""
8366 return _IMP_core.RigidMember_get_name(self)
8368 def clear_caches(self):
8369 r"""clear_caches(RigidMember self)"""
8370 return _IMP_core.RigidMember_clear_caches(self)
8372 def set_name(self, a0):
8373 r"""set_name(RigidMember self, std::string a0)"""
8374 return _IMP_core.RigidMember_set_name(self, a0)
8377 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8378 return _IMP_core.RigidMember_set_check_level(self, a0)
8380 def add_to_derivative(self, a0, a1, a2):
8381 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8382 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8384 def set_is_optimized(self, a0, a1):
8385 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8386 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8388 def get_is_optimized(self, a0):
8389 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8390 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8393 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8394 return _IMP_core.RigidMember_get_check_level(self)
8396 def __eq__(self, *args):
8398 __eq__(RigidMember self, RigidMember o) -> bool
8399 __eq__(RigidMember self, Particle d) -> bool
8401 return _IMP_core.RigidMember___eq__(self, *args)
8403 def __ne__(self, *args):
8405 __ne__(RigidMember self, RigidMember o) -> bool
8406 __ne__(RigidMember self, Particle d) -> bool
8408 return _IMP_core.RigidMember___ne__(self, *args)
8410 def __le__(self, *args):
8412 __le__(RigidMember self, RigidMember o) -> bool
8413 __le__(RigidMember self, Particle d) -> bool
8415 return _IMP_core.RigidMember___le__(self, *args)
8417 def __lt__(self, *args):
8419 __lt__(RigidMember self, RigidMember o) -> bool
8420 __lt__(RigidMember self, Particle d) -> bool
8422 return _IMP_core.RigidMember___lt__(self, *args)
8424 def __ge__(self, *args):
8426 __ge__(RigidMember self, RigidMember o) -> bool
8427 __ge__(RigidMember self, Particle d) -> bool
8429 return _IMP_core.RigidMember___ge__(self, *args)
8431 def __gt__(self, *args):
8433 __gt__(RigidMember self, RigidMember o) -> bool
8434 __gt__(RigidMember self, Particle d) -> bool
8436 return _IMP_core.RigidMember___gt__(self, *args)
8439 r"""__hash__(RigidMember self) -> std::size_t"""
8440 return _IMP_core.RigidMember___hash__(self)
8443 r"""__str__(RigidMember self) -> std::string"""
8444 return _IMP_core.RigidMember___str__(self)
8447 r"""__repr__(RigidMember self) -> std::string"""
8448 return _IMP_core.RigidMember___repr__(self)
8450 def _get_as_binary(self):
8451 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8452 return _IMP_core.RigidMember__get_as_binary(self)
8454 def _set_from_binary(self, p):
8455 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8456 return _IMP_core.RigidMember__set_from_binary(self, p)
8458 def __getstate__(self):
8459 p = self._get_as_binary()
8460 if len(self.__dict__) > 1:
8461 d = self.__dict__.copy()
8466 def __setstate__(self, p):
8467 if not hasattr(self,
'this'):
8469 if isinstance(p, tuple):
8471 self.__dict__.update(d)
8472 return self._set_from_binary(p)
8476 _IMP_core.RigidMember_swigregister(RigidMember)
8477 class NonRigidMember(RigidBodyMember):
8478 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8480 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8482 def show(self, *args):
8483 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8484 return _IMP_core.NonRigidMember_show(self, *args)
8486 def __init__(self, *args):
8488 __init__(NonRigidMember self) -> NonRigidMember
8489 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8490 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8491 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8493 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8494 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8497 def get_is_setup(*args):
8499 get_is_setup(_ParticleAdaptor p) -> bool
8500 get_is_setup(Model m, ParticleIndex p) -> bool
8502 return _IMP_core.NonRigidMember_get_is_setup(*args)
8504 def add_to_internal_derivatives(self, deriv_parent, da):
8505 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8506 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8508 def add_to_internal_rotational_derivatives(self, *args):
8510 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8511 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8513 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8515 def get_internal_derivatives(self):
8516 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8517 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8519 def get_internal_rotational_derivatives(self):
8520 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8521 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8523 def add_attribute(self, *args):
8525 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8526 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8527 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8528 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8529 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8530 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8531 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8532 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8533 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8534 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8535 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8536 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8538 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8540 def get_value(self, *args):
8542 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8543 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8544 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8545 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8546 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8547 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8548 get_value(NonRigidMember self, ObjectKey a0) -> Object
8549 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8550 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8551 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8552 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8554 return _IMP_core.NonRigidMember_get_value(self, *args)
8556 def set_value(self, *args):
8558 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8559 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8560 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8561 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8562 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8563 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8564 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8565 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8566 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8567 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8568 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8570 return _IMP_core.NonRigidMember_set_value(self, *args)
8572 def remove_attribute(self, *args):
8574 remove_attribute(NonRigidMember self, FloatKey a0)
8575 remove_attribute(NonRigidMember self, IntKey a0)
8576 remove_attribute(NonRigidMember self, FloatsKey a0)
8577 remove_attribute(NonRigidMember self, IntsKey a0)
8578 remove_attribute(NonRigidMember self, StringKey a0)
8579 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8580 remove_attribute(NonRigidMember self, ObjectKey a0)
8581 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8582 remove_attribute(NonRigidMember self, SparseIntKey a0)
8583 remove_attribute(NonRigidMember self, SparseStringKey a0)
8584 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8586 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8588 def has_attribute(self, *args):
8590 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8591 has_attribute(NonRigidMember self, IntKey a0) -> bool
8592 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8593 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8594 has_attribute(NonRigidMember self, StringKey a0) -> bool
8595 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8596 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8597 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8598 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8599 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8600 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8602 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8604 def get_derivative(self, a0):
8605 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8606 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8609 r"""get_name(NonRigidMember self) -> std::string"""
8610 return _IMP_core.NonRigidMember_get_name(self)
8612 def clear_caches(self):
8613 r"""clear_caches(NonRigidMember self)"""
8614 return _IMP_core.NonRigidMember_clear_caches(self)
8616 def set_name(self, a0):
8617 r"""set_name(NonRigidMember self, std::string a0)"""
8618 return _IMP_core.NonRigidMember_set_name(self, a0)
8621 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8622 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8624 def add_to_derivative(self, a0, a1, a2):
8625 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8626 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8628 def set_is_optimized(self, a0, a1):
8629 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8630 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8632 def get_is_optimized(self, a0):
8633 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8634 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8637 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8638 return _IMP_core.NonRigidMember_get_check_level(self)
8640 def __eq__(self, *args):
8642 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8643 __eq__(NonRigidMember self, Particle d) -> bool
8645 return _IMP_core.NonRigidMember___eq__(self, *args)
8647 def __ne__(self, *args):
8649 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8650 __ne__(NonRigidMember self, Particle d) -> bool
8652 return _IMP_core.NonRigidMember___ne__(self, *args)
8654 def __le__(self, *args):
8656 __le__(NonRigidMember self, NonRigidMember o) -> bool
8657 __le__(NonRigidMember self, Particle d) -> bool
8659 return _IMP_core.NonRigidMember___le__(self, *args)
8661 def __lt__(self, *args):
8663 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8664 __lt__(NonRigidMember self, Particle d) -> bool
8666 return _IMP_core.NonRigidMember___lt__(self, *args)
8668 def __ge__(self, *args):
8670 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8671 __ge__(NonRigidMember self, Particle d) -> bool
8673 return _IMP_core.NonRigidMember___ge__(self, *args)
8675 def __gt__(self, *args):
8677 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8678 __gt__(NonRigidMember self, Particle d) -> bool
8680 return _IMP_core.NonRigidMember___gt__(self, *args)
8683 r"""__hash__(NonRigidMember self) -> std::size_t"""
8684 return _IMP_core.NonRigidMember___hash__(self)
8687 r"""__str__(NonRigidMember self) -> std::string"""
8688 return _IMP_core.NonRigidMember___str__(self)
8691 r"""__repr__(NonRigidMember self) -> std::string"""
8692 return _IMP_core.NonRigidMember___repr__(self)
8694 def _get_as_binary(self):
8695 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8696 return _IMP_core.NonRigidMember__get_as_binary(self)
8698 def _set_from_binary(self, p):
8699 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8700 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8702 def __getstate__(self):
8703 p = self._get_as_binary()
8704 if len(self.__dict__) > 1:
8705 d = self.__dict__.copy()
8710 def __setstate__(self, p):
8711 if not hasattr(self,
'this'):
8713 if isinstance(p, tuple):
8715 self.__dict__.update(d)
8716 return self._set_from_binary(p)
8720 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8722 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8724 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8726 def __init__(self, *args):
8727 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8728 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8730 def do_get_inputs(self, m, pis):
8731 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8732 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8734 def get_version_info(self):
8735 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8736 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8737 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8740 r"""__str__(RigidMembersRefiner self) -> std::string"""
8741 return _IMP_core.RigidMembersRefiner___str__(self)
8744 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8745 return _IMP_core.RigidMembersRefiner___repr__(self)
8749 return _object_cast_to_RigidMembersRefiner(o)
8753 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8755 def get_rigid_members_refiner():
8756 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8757 return _IMP_core.get_rigid_members_refiner()
8761 transform(XYZ a, Transformation3D tr)
8762 transform(RigidBody a, Transformation3D tr)
8764 return _IMP_core.transform(*args)
8768 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8769 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8771 return _IMP_core.get_initial_reference_frame(*args)
8774 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8775 return _IMP_core.create_rigid_bodies(m, n, no_members)
8778 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8779 return _IMP_core.show_rigid_body_hierarchy(*args)
8782 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8783 return _IMP_core.get_root_rigid_body(m)
8785 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8787 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8789 def __init__(self, rb, constituents):
8790 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8791 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8793 def get_version_info(self):
8794 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8795 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8796 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8799 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8800 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8803 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8804 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8808 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8812 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8814 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8816 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8818 def __init__(self, *args):
8820 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8821 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8823 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8825 def get_version_info(self):
8826 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8827 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8828 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8831 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8832 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8835 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8836 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8840 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8844 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8846 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8848 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8850 def __init__(self, sc):
8851 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8852 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8854 def get_version_info(self):
8855 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8856 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8857 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8860 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8861 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8864 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8865 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8869 return _object_cast_to_RigidBodyDerivativesGeometry(o)
8873 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8875 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8877 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8879 def __init__(self, *args):
8881 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8882 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8884 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8886 def get_version_info(self):
8887 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8888 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8889 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8892 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8893 return _IMP_core.RigidBodyFrameGeometry___str__(self)
8896 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8897 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8901 return _object_cast_to_RigidBodyFrameGeometry(o)
8905 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8907 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8909 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8911 def __init__(self, sc):
8912 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8913 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8915 def get_version_info(self):
8916 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8917 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8918 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8921 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8922 return _IMP_core.RigidBodyFramesGeometry___str__(self)
8925 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8926 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8930 return _object_cast_to_RigidBodyFramesGeometry(o)
8934 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8936 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8938 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8940 def __init__(self, p):
8941 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8942 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8945 r"""__str__(RigidBodyTorque self) -> std::string"""
8946 return _IMP_core.RigidBodyTorque___str__(self)
8949 r"""__repr__(RigidBodyTorque self) -> std::string"""
8950 return _IMP_core.RigidBodyTorque___repr__(self)
8954 return _object_cast_to_RigidBodyTorque(o)
8956 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8959 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8960 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8961 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8963 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8966 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8967 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8969 def get_close_pairs(self, *args):
8971 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8972 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8973 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8974 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8976 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8978 def do_get_inputs(self, m, pis):
8979 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8980 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8982 def get_version_info(self):
8983 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8984 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8985 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8988 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8989 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8992 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8993 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8997 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9001 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9003 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9005 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9007 def __init__(self, *args):
9009 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9010 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9011 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9013 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9015 def do_add_score_and_derivatives(self, sa, ss):
9016 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9017 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9019 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9020 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)"""
9021 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9023 def do_get_inputs(self):
9024 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9025 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9027 def get_restraints(self):
9028 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9029 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9031 def set_restraints(self, d):
9032 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9033 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9035 def get_number_of_restraints(self):
9036 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9037 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9039 def clear_restraints(self):
9040 r"""clear_restraints(RestraintsScoringFunction self)"""
9041 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9043 def get_restraint(self, i):
9044 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9045 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9047 def erase_restraint(self, i):
9048 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9049 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9052 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9053 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9056 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9057 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9059 def _python_index_restraint(self, r, start, stop):
9060 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9061 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9062 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)
9063 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9064 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9065 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9067 def get_version_info(self):
9068 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9069 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9070 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9073 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9074 return _IMP_core.RestraintsScoringFunction___str__(self)
9077 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9078 return _IMP_core.RestraintsScoringFunction___repr__(self)
9082 return _object_cast_to_RestraintsScoringFunction(o)
9085 def _get_as_binary(self):
9086 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9087 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9089 def _set_from_binary(self, p):
9090 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9091 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9093 def __getstate__(self):
9094 p = self._get_as_binary()
9095 if len(self.__dict__) > 1:
9096 d = self.__dict__.copy()
9101 def __setstate__(self, p):
9102 if not hasattr(self,
'this'):
9104 if isinstance(p, tuple):
9106 self.__dict__.update(d)
9107 return self._set_from_binary(p)
9111 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9112 class RigidClosePairsFinder(ClosePairsFinder):
9113 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9115 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9117 def __init__(self, cpf=None):
9118 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9119 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9121 def do_get_inputs(self, m, pis):
9122 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9123 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9125 def get_close_pairs(self, *args):
9127 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9128 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9129 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9130 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9131 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9133 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9135 def get_version_info(self):
9136 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9137 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9138 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9141 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9142 return _IMP_core.RigidClosePairsFinder___str__(self)
9145 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9146 return _IMP_core.RigidClosePairsFinder___repr__(self)
9150 return _object_cast_to_RigidClosePairsFinder(o)
9153 def _get_as_binary(self):
9154 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9155 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9157 def _set_from_binary(self, p):
9158 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9159 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9161 def __getstate__(self):
9162 p = self._get_as_binary()
9163 if len(self.__dict__) > 1:
9164 d = self.__dict__.copy()
9169 def __setstate__(self, p):
9170 if not hasattr(self,
'this'):
9172 if isinstance(p, tuple):
9174 self.__dict__.update(d)
9175 return self._set_from_binary(p)
9179 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9181 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9183 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9184 __repr__ = _swig_repr
9186 def __init__(self, *args):
9188 SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9189 __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9191 _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9193 def do_get_inputs(self, m, pis):
9194 r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9195 return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9197 def get_version_info(self):
9198 r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9199 return _IMP_core._SphereDistancePairScore_get_version_info(self)
9200 __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9204 return _object_cast_to__SphereDistancePairScore(o)
9207 def _get_as_binary(self):
9208 r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9209 return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9211 def _set_from_binary(self, p):
9212 r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9213 return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9215 def __getstate__(self):
9216 p = self._get_as_binary()
9217 if len(self.__dict__) > 1:
9218 d = self.__dict__.copy()
9223 def __setstate__(self, p):
9224 if not hasattr(self,
'this'):
9226 if isinstance(p, tuple):
9228 self.__dict__.update(d)
9229 return self._set_from_binary(p)
9233 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9234 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9235 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9237 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9239 def __init__(self, *args):
9241 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9242 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9244 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9246 def do_get_inputs(self, m, pis):
9247 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9248 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9250 def get_version_info(self):
9251 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9252 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9253 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9256 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9257 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9260 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9261 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9265 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9268 def _get_as_binary(self):
9269 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9270 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9272 def _set_from_binary(self, p):
9273 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9274 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9276 def __getstate__(self):
9277 p = self._get_as_binary()
9278 if len(self.__dict__) > 1:
9279 d = self.__dict__.copy()
9284 def __setstate__(self, p):
9285 if not hasattr(self,
'this'):
9287 if isinstance(p, tuple):
9289 self.__dict__.update(d)
9290 return self._set_from_binary(p)
9294 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9295 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9296 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9298 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9300 def __init__(self, d0, k):
9301 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9302 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9304 def get_rest_length(self):
9305 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9306 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9308 def get_stiffness(self):
9309 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9310 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9312 def do_get_inputs(self, m, pis):
9313 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9314 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9316 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9317 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"""
9318 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9320 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9321 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"""
9322 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9324 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9325 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"""
9326 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9328 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9329 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"""
9330 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9332 def get_version_info(self):
9333 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9334 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9335 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9338 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9339 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9342 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9343 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9347 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9351 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9353 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9355 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9357 def __init__(self, *args):
9359 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9360 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9362 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9364 def do_get_inputs(self, m, pis):
9365 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9366 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9368 def get_version_info(self):
9369 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9370 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9371 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9374 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9375 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9378 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9379 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9383 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9386 def _get_as_binary(self):
9387 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9388 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9390 def _set_from_binary(self, p):
9391 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9392 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9394 def __getstate__(self):
9395 p = self._get_as_binary()
9396 if len(self.__dict__) > 1:
9397 d = self.__dict__.copy()
9402 def __setstate__(self, p):
9403 if not hasattr(self,
'this'):
9405 if isinstance(p, tuple):
9407 self.__dict__.update(d)
9408 return self._set_from_binary(p)
9412 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9414 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9416 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9418 def __init__(self, *args):
9419 r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9420 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9422 def do_get_inputs(self, m, pis):
9423 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9424 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9426 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9427 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"""
9428 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9430 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9431 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"""
9432 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9434 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9435 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"""
9436 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9438 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9439 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"""
9440 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9442 def get_version_info(self):
9443 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9444 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9445 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9448 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9449 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9452 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9453 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9457 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9461 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9463 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9465 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9467 def __init__(self, *args):
9468 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9469 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9471 def do_get_inputs(self, m, pis):
9472 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9473 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9475 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9476 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"""
9477 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9479 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9480 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"""
9481 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9483 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9484 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"""
9485 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9487 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9488 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"""
9489 return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9491 def get_version_info(self):
9492 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9493 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9494 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9497 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9498 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9501 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9502 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9506 return _object_cast_to_WeightedSphereDistancePairScore(o)
9510 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9512 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9514 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9516 def __init__(self, *args):
9518 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9519 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9521 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9523 def do_get_inputs(self, m, pis):
9524 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9525 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9527 def get_version_info(self):
9528 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9529 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9530 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9533 r"""__str__(SoftSpherePairScore self) -> std::string"""
9534 return _IMP_core.SoftSpherePairScore___str__(self)
9537 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9538 return _IMP_core.SoftSpherePairScore___repr__(self)
9542 return _object_cast_to_SoftSpherePairScore(o)
9545 def _get_as_binary(self):
9546 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9547 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9549 def _set_from_binary(self, p):
9550 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9551 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9553 def __getstate__(self):
9554 p = self._get_as_binary()
9555 if len(self.__dict__) > 1:
9556 d = self.__dict__.copy()
9561 def __setstate__(self, p):
9562 if not hasattr(self,
'this'):
9564 if isinstance(p, tuple):
9566 self.__dict__.update(d)
9567 return self._set_from_binary(p)
9571 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9573 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9575 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9577 def __init__(self, *args):
9578 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9579 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9581 def do_get_inputs(self, m, pis):
9582 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9583 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9585 def get_version_info(self):
9586 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9587 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9588 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9591 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9592 return _IMP_core.SurfaceDistancePairScore___str__(self)
9595 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9596 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9600 return _object_cast_to_SurfaceDistancePairScore(o)
9604 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9606 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9608 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9610 def __init__(self, *args):
9611 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9612 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9614 def do_get_inputs(self, m, pis):
9615 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9616 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9618 def get_version_info(self):
9619 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9620 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9621 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9624 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9625 return _IMP_core.SurfaceHeightPairScore___str__(self)
9628 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9629 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9633 return _object_cast_to_SurfaceHeightPairScore(o)
9637 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9639 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9641 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9643 def __init__(self, *args):
9644 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9645 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9647 def do_get_inputs(self, m, pis):
9648 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9649 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9651 def get_version_info(self):
9652 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9653 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9654 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9657 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9658 return _IMP_core.SurfaceDepthPairScore___str__(self)
9661 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9662 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9666 return _object_cast_to_SurfaceDepthPairScore(o)
9670 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9672 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9674 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9676 def __init__(self, *args):
9677 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9678 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9680 def do_get_inputs(self, m, pis):
9681 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9682 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9684 def get_version_info(self):
9685 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9686 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9687 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9690 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9691 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9694 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9695 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9699 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9703 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9705 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9707 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9709 def __init__(self, *args):
9710 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9711 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9713 def do_get_inputs(self, m, pis):
9714 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9715 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9717 def get_version_info(self):
9718 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9719 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9720 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9723 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9724 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9727 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9728 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9732 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9736 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9738 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9740 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9742 def __init__(self, *args):
9743 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9744 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9746 def do_get_inputs(self, m, pis):
9747 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9748 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9750 def get_version_info(self):
9751 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9752 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9753 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9756 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9757 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9760 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9761 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9765 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9769 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9771 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9773 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9775 def __init__(self, *args):
9776 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9777 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9779 def do_get_inputs(self, m, pis):
9780 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9781 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9783 def get_version_info(self):
9784 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9785 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9786 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9789 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9790 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9793 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9794 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9798 return _object_cast_to_SoftSuperSurfacePairScore(o)
9802 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9804 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9806 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9808 def __init__(self, *args):
9809 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9810 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9812 def do_get_inputs(self, m, pis):
9813 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9814 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9816 def get_version_info(self):
9817 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9818 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9819 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9822 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9823 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9826 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9827 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9831 return _object_cast_to_SoftSubSurfacePairScore(o)
9835 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9837 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9839 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9841 def __init__(self, link_num, link_length):
9842 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9843 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9845 def get_version_info(self):
9846 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9847 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9848 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9850 def get_link_number(self):
9851 r"""get_link_number(SurfaceTetheredChain self) -> int"""
9852 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9854 def get_link_length(self):
9855 r"""get_link_length(SurfaceTetheredChain self) -> double"""
9856 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9858 def set_link_number(self, N):
9859 r"""set_link_number(SurfaceTetheredChain self, int N)"""
9860 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9862 def set_link_length(self, b):
9863 r"""set_link_length(SurfaceTetheredChain self, double b)"""
9864 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9866 def get_distance_at_minimum(self):
9867 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9868 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9870 def get_average_distance(self):
9871 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9872 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9875 r"""__str__(SurfaceTetheredChain self) -> std::string"""
9876 return _IMP_core.SurfaceTetheredChain___str__(self)
9879 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9880 return _IMP_core.SurfaceTetheredChain___repr__(self)
9884 return _object_cast_to_SurfaceTetheredChain(o)
9888 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9890 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9892 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9894 def __init__(self, m, ss, rbs):
9895 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9896 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9898 def do_get_inputs(self):
9899 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9900 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9902 def do_get_outputs(self):
9903 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9904 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9906 def get_version_info(self):
9907 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9908 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9909 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9912 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9913 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9916 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9917 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9921 return _object_cast_to_SurfaceSymmetryConstraint(o)
9925 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9927 r"""Proxy of C++ IMP::core::SteepestDescent class."""
9929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9931 def __init__(self, *args):
9932 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9933 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9935 def do_optimize(self, max_steps):
9936 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9937 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9939 def get_version_info(self):
9940 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9941 return _IMP_core.SteepestDescent_get_version_info(self)
9942 __swig_destroy__ = _IMP_core.delete_SteepestDescent
9944 def set_threshold(self, t):
9945 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9946 return _IMP_core.SteepestDescent_set_threshold(self, t)
9948 def set_step_size(self, t):
9949 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9950 return _IMP_core.SteepestDescent_set_step_size(self, t)
9952 def set_maximum_step_size(self, t):
9953 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9954 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9957 r"""__str__(SteepestDescent self) -> std::string"""
9958 return _IMP_core.SteepestDescent___str__(self)
9961 r"""__repr__(SteepestDescent self) -> std::string"""
9962 return _IMP_core.SteepestDescent___repr__(self)
9966 return _object_cast_to_SteepestDescent(o)
9970 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9972 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9974 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9976 def __init__(self, f, transformation):
9977 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9978 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9980 def set_transformation(self, rot):
9981 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9982 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9984 def do_get_inputs(self, m, pis):
9985 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9986 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9988 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9989 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"""
9990 return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9992 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9993 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"""
9994 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9996 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9997 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"""
9998 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10000 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10001 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"""
10002 return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10004 def get_version_info(self):
10005 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10006 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10007 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10010 r"""__str__(TransformedDistancePairScore self) -> std::string"""
10011 return _IMP_core.TransformedDistancePairScore___str__(self)
10013 def __repr__(self):
10014 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10015 return _IMP_core.TransformedDistancePairScore___repr__(self)
10019 return _object_cast_to_TransformedDistancePairScore(o)
10023 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10025 r"""Proxy of C++ IMP::core::TypedPairScore class."""
10027 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10029 def __init__(self, typekey, allow_invalid_types=True):
10030 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10031 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10033 def set_particle_type(self, arg2):
10034 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10035 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10037 def set_pair_score(self, ps, atype, btype):
10038 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10039 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10041 def do_get_inputs(self, m, pis):
10042 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10043 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10045 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10046 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"""
10047 return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10049 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10050 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"""
10051 return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10053 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10054 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"""
10055 return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10057 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10058 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"""
10059 return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10061 def get_version_info(self):
10062 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10063 return _IMP_core.TypedPairScore_get_version_info(self)
10064 __swig_destroy__ = _IMP_core.delete_TypedPairScore
10067 r"""__str__(TypedPairScore self) -> std::string"""
10068 return _IMP_core.TypedPairScore___str__(self)
10070 def __repr__(self):
10071 r"""__repr__(TypedPairScore self) -> std::string"""
10072 return _IMP_core.TypedPairScore___repr__(self)
10076 return _object_cast_to_TypedPairScore(o)
10080 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10081 class RigidBodyDistancePairScore(KClosePairsPairScore):
10082 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10084 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10086 def __init__(self, ps, r):
10087 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10088 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10091 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10092 return _IMP_core.RigidBodyDistancePairScore___str__(self)
10094 def __repr__(self):
10095 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10096 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10100 return _object_cast_to_RigidBodyDistancePairScore(o)
10102 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10105 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10107 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10111 def __init__(self, f):
10112 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10113 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10115 def do_get_inputs(self, m, pis):
10116 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10117 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10119 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10120 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"""
10121 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10123 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10124 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"""
10125 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10127 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10128 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"""
10129 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10131 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10132 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"""
10133 return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10135 def get_version_info(self):
10136 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10137 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10138 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10141 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10142 return _IMP_core.RigidBodyAnglePairScore___str__(self)
10144 def __repr__(self):
10145 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10146 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10150 return _object_cast_to_RigidBodyAnglePairScore(o)
10154 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10156 r"""Proxy of C++ IMP::core::TableRefiner class."""
10158 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10160 def __init__(self):
10161 r"""__init__(TableRefiner self) -> TableRefiner"""
10162 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10165 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10166 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10168 def remove_particle(self, p):
10169 r"""remove_particle(TableRefiner self, Particle p)"""
10170 return _IMP_core.TableRefiner_remove_particle(self, p)
10172 def set_particle(self, p, ps):
10173 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10174 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10176 def do_get_inputs(self, m, pis):
10177 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10178 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10180 def get_version_info(self):
10181 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10182 return _IMP_core.TableRefiner_get_version_info(self)
10183 __swig_destroy__ = _IMP_core.delete_TableRefiner
10186 r"""__str__(TableRefiner self) -> std::string"""
10187 return _IMP_core.TableRefiner___str__(self)
10189 def __repr__(self):
10190 r"""__repr__(TableRefiner self) -> std::string"""
10191 return _IMP_core.TableRefiner___repr__(self)
10195 return _object_cast_to_TableRefiner(o)
10199 _IMP_core.TableRefiner_swigregister(TableRefiner)
10200 LOWER = _IMP_core.LOWER
10202 BOTH = _IMP_core.BOTH
10204 UPPER = _IMP_core.UPPER
10207 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10209 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10211 def __init__(self, *args):
10212 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10213 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10215 def set_bounding_box(self, bb):
10216 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10217 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10219 def set_number_of_attempts(self, att):
10220 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10221 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10223 def set_number_of_monte_carlo_steps(self, cg):
10224 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10225 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10227 def set_number_of_conjugate_gradient_steps(self, cg):
10228 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10229 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10231 def set_max_monte_carlo_step_size(self, *args):
10233 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10234 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10236 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10238 def set_is_refining(self, tf):
10239 r"""set_is_refining(MCCGSampler self, bool tf)"""
10240 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10242 def set_local_optimizer(self, opt):
10243 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10244 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10246 def set_save_rejected_configurations(self, tf):
10247 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10248 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10250 def get_rejected_configurations(self):
10251 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10252 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10253 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)
10254 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10255 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10256 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10258 def remove_optimizer_state(self, d):
10259 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10260 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10262 def _python_index_optimizer_state(self, d, start, stop):
10263 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10264 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10266 def remove_optimizer_states(self, d):
10267 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10268 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10270 def set_optimizer_states(self, ps):
10271 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10272 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10274 def set_optimizer_states_order(self, objs):
10275 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10276 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10278 def add_optimizer_state(self, obj):
10279 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10280 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10282 def add_optimizer_states(self, objs):
10283 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10284 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10286 def clear_optimizer_states(self):
10287 r"""clear_optimizer_states(MCCGSampler self)"""
10288 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10290 def get_number_of_optimizer_states(self):
10291 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10292 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10294 def get_has_optimizer_states(self):
10295 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10296 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10298 def get_optimizer_state(self, i):
10299 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10300 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10302 def get_optimizer_states(self):
10303 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10304 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10306 def erase_optimizer_state(self, i):
10307 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10308 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10310 def reserve_optimizer_states(self, sz):
10311 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10312 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10314 def do_sample(self):
10315 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10316 return _IMP_core.MCCGSampler_do_sample(self)
10318 def get_version_info(self):
10319 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10320 return _IMP_core.MCCGSampler_get_version_info(self)
10321 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10324 r"""__str__(MCCGSampler self) -> std::string"""
10325 return _IMP_core.MCCGSampler___str__(self)
10327 def __repr__(self):
10328 r"""__repr__(MCCGSampler self) -> std::string"""
10329 return _IMP_core.MCCGSampler___repr__(self)
10333 return _object_cast_to_MCCGSampler(o)
10337 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10339 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10341 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10343 def __init__(self, *args):
10344 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10345 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10347 def do_get_inputs(self):
10348 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10349 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10351 def get_version_info(self):
10352 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10353 return _IMP_core.MinimumRestraint_get_version_info(self)
10354 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10355 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)
10356 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10357 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10358 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10360 def remove_restraint(self, d):
10361 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10362 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10364 def _python_index_restraint(self, d, start, stop):
10365 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10366 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10368 def remove_restraints(self, d):
10369 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10370 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10372 def set_restraints(self, ps):
10373 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10374 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10376 def set_restraints_order(self, objs):
10377 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10378 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10381 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10382 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10385 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10386 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10388 def clear_restraints(self):
10389 r"""clear_restraints(MinimumRestraint self)"""
10390 return _IMP_core.MinimumRestraint_clear_restraints(self)
10392 def get_number_of_restraints(self):
10393 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10394 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10396 def get_has_restraints(self):
10397 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10398 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10400 def get_restraint(self, i):
10401 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10402 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10404 def get_restraints(self):
10405 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10406 return _IMP_core.MinimumRestraint_get_restraints(self)
10408 def erase_restraint(self, i):
10409 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10410 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10412 def reserve_restraints(self, sz):
10413 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10414 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10417 r"""__str__(MinimumRestraint self) -> std::string"""
10418 return _IMP_core.MinimumRestraint___str__(self)
10420 def __repr__(self):
10421 r"""__repr__(MinimumRestraint self) -> std::string"""
10422 return _IMP_core.MinimumRestraint___repr__(self)
10426 return _object_cast_to_MinimumRestraint(o)
10430 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10431 class Gaussian(RigidBody):
10432 r"""Proxy of C++ IMP::core::Gaussian class."""
10434 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10436 def __init__(self, *args):
10438 __init__(Gaussian self) -> Gaussian
10439 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10440 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10442 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10444 def show(self, *args):
10445 r"""show(Gaussian self, _ostream out=std::cout)"""
10446 return _IMP_core.Gaussian_show(self, *args)
10449 def setup_particle(*args):
10451 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10452 setup_particle(_ParticleAdaptor pa) -> Gaussian
10453 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10454 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10456 return _IMP_core.Gaussian_setup_particle(*args)
10459 def get_local_covariance_key():
10460 r"""get_local_covariance_key() -> ObjectKey"""
10461 return _IMP_core.Gaussian_get_local_covariance_key()
10464 def get_global_covariance_key():
10465 r"""get_global_covariance_key() -> ObjectKey"""
10466 return _IMP_core.Gaussian_get_global_covariance_key()
10469 def get_is_setup(*args):
10471 get_is_setup(_ParticleAdaptor p) -> bool
10472 get_is_setup(Model m, ParticleIndex pi) -> bool
10474 return _IMP_core.Gaussian_get_is_setup(*args)
10476 def get_local_covariance(self):
10477 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10478 return _IMP_core.Gaussian_get_local_covariance(self)
10480 def get_variances(self):
10481 r"""get_variances(Gaussian self) -> Vector3D"""
10482 return _IMP_core.Gaussian_get_variances(self)
10484 def get_global_covariance(self):
10485 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10486 return _IMP_core.Gaussian_get_global_covariance(self)
10488 def get_gaussian(self):
10489 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10490 return _IMP_core.Gaussian_get_gaussian(self)
10492 def set_gaussian(self, g):
10493 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10494 return _IMP_core.Gaussian_set_gaussian(self, g)
10496 def set_local_covariance(self, covar):
10497 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10498 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10500 def set_variances(self, v):
10501 r"""set_variances(Gaussian self, Vector3D v)"""
10502 return _IMP_core.Gaussian_set_variances(self, v)
10504 def set_global_covariance(self, covar):
10505 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10506 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10508 def update_global_covariance(self):
10509 r"""update_global_covariance(Gaussian self)"""
10510 return _IMP_core.Gaussian_update_global_covariance(self)
10512 def add_attribute(self, *args):
10514 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10515 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10516 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10517 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10518 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10519 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10520 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10521 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10522 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10523 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10524 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10525 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10527 return _IMP_core.Gaussian_add_attribute(self, *args)
10529 def get_value(self, *args):
10531 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10532 get_value(Gaussian self, IntKey a0) -> IMP::Int
10533 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10534 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10535 get_value(Gaussian self, StringKey a0) -> IMP::String
10536 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10537 get_value(Gaussian self, ObjectKey a0) -> Object
10538 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10539 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10540 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10541 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10543 return _IMP_core.Gaussian_get_value(self, *args)
10545 def set_value(self, *args):
10547 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10548 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10549 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10550 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10551 set_value(Gaussian self, StringKey a0, IMP::String a1)
10552 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10553 set_value(Gaussian self, ObjectKey a0, Object a1)
10554 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10555 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10556 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10557 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10559 return _IMP_core.Gaussian_set_value(self, *args)
10561 def remove_attribute(self, *args):
10563 remove_attribute(Gaussian self, FloatKey a0)
10564 remove_attribute(Gaussian self, IntKey a0)
10565 remove_attribute(Gaussian self, FloatsKey a0)
10566 remove_attribute(Gaussian self, IntsKey a0)
10567 remove_attribute(Gaussian self, StringKey a0)
10568 remove_attribute(Gaussian self, ParticleIndexKey a0)
10569 remove_attribute(Gaussian self, ObjectKey a0)
10570 remove_attribute(Gaussian self, SparseFloatKey a0)
10571 remove_attribute(Gaussian self, SparseIntKey a0)
10572 remove_attribute(Gaussian self, SparseStringKey a0)
10573 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10575 return _IMP_core.Gaussian_remove_attribute(self, *args)
10577 def has_attribute(self, *args):
10579 has_attribute(Gaussian self, FloatKey a0) -> bool
10580 has_attribute(Gaussian self, IntKey a0) -> bool
10581 has_attribute(Gaussian self, FloatsKey a0) -> bool
10582 has_attribute(Gaussian self, IntsKey a0) -> bool
10583 has_attribute(Gaussian self, StringKey a0) -> bool
10584 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10585 has_attribute(Gaussian self, ObjectKey a0) -> bool
10586 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10587 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10588 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10589 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10591 return _IMP_core.Gaussian_has_attribute(self, *args)
10593 def get_derivative(self, a0):
10594 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10595 return _IMP_core.Gaussian_get_derivative(self, a0)
10597 def get_name(self):
10598 r"""get_name(Gaussian self) -> std::string"""
10599 return _IMP_core.Gaussian_get_name(self)
10601 def clear_caches(self):
10602 r"""clear_caches(Gaussian self)"""
10603 return _IMP_core.Gaussian_clear_caches(self)
10605 def set_name(self, a0):
10606 r"""set_name(Gaussian self, std::string a0)"""
10607 return _IMP_core.Gaussian_set_name(self, a0)
10610 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10611 return _IMP_core.Gaussian_set_check_level(self, a0)
10613 def add_to_derivative(self, a0, a1, a2):
10614 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10615 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10617 def set_is_optimized(self, a0, a1):
10618 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10619 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10621 def get_is_optimized(self, a0):
10622 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10623 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10626 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10627 return _IMP_core.Gaussian_get_check_level(self)
10629 def __eq__(self, *args):
10631 __eq__(Gaussian self, Gaussian o) -> bool
10632 __eq__(Gaussian self, Particle d) -> bool
10634 return _IMP_core.Gaussian___eq__(self, *args)
10636 def __ne__(self, *args):
10638 __ne__(Gaussian self, Gaussian o) -> bool
10639 __ne__(Gaussian self, Particle d) -> bool
10641 return _IMP_core.Gaussian___ne__(self, *args)
10643 def __le__(self, *args):
10645 __le__(Gaussian self, Gaussian o) -> bool
10646 __le__(Gaussian self, Particle d) -> bool
10648 return _IMP_core.Gaussian___le__(self, *args)
10650 def __lt__(self, *args):
10652 __lt__(Gaussian self, Gaussian o) -> bool
10653 __lt__(Gaussian self, Particle d) -> bool
10655 return _IMP_core.Gaussian___lt__(self, *args)
10657 def __ge__(self, *args):
10659 __ge__(Gaussian self, Gaussian o) -> bool
10660 __ge__(Gaussian self, Particle d) -> bool
10662 return _IMP_core.Gaussian___ge__(self, *args)
10664 def __gt__(self, *args):
10666 __gt__(Gaussian self, Gaussian o) -> bool
10667 __gt__(Gaussian self, Particle d) -> bool
10669 return _IMP_core.Gaussian___gt__(self, *args)
10671 def __hash__(self):
10672 r"""__hash__(Gaussian self) -> std::size_t"""
10673 return _IMP_core.Gaussian___hash__(self)
10676 r"""__str__(Gaussian self) -> std::string"""
10677 return _IMP_core.Gaussian___str__(self)
10679 def __repr__(self):
10680 r"""__repr__(Gaussian self) -> std::string"""
10681 return _IMP_core.Gaussian___repr__(self)
10683 def _get_as_binary(self):
10684 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10685 return _IMP_core.Gaussian__get_as_binary(self)
10687 def _set_from_binary(self, p):
10688 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10689 return _IMP_core.Gaussian__set_from_binary(self, p)
10691 def __getstate__(self):
10692 p = self._get_as_binary()
10693 if len(self.__dict__) > 1:
10694 d = self.__dict__.copy()
10699 def __setstate__(self, p):
10700 if not hasattr(self,
'this'):
10702 if isinstance(p, tuple):
10704 self.__dict__.update(d)
10705 return self._set_from_binary(p)
10707 __swig_destroy__ = _IMP_core.delete_Gaussian
10710 _IMP_core.Gaussian_swigregister(Gaussian)
10712 r"""Proxy of C++ IMP::core::PairRestraint class."""
10714 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10716 def __init__(self, *args):
10718 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10719 __init__(PairRestraint self) -> PairRestraint
10721 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10723 def get_version_info(self):
10724 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10725 return _IMP_core.PairRestraint_get_version_info(self)
10726 __swig_destroy__ = _IMP_core.delete_PairRestraint
10729 r"""__str__(PairRestraint self) -> std::string"""
10730 return _IMP_core.PairRestraint___str__(self)
10732 def __repr__(self):
10733 r"""__repr__(PairRestraint self) -> std::string"""
10734 return _IMP_core.PairRestraint___repr__(self)
10738 return _object_cast_to_PairRestraint(o)
10741 def _get_as_binary(self):
10742 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10743 return _IMP_core.PairRestraint__get_as_binary(self)
10745 def _set_from_binary(self, p):
10746 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10747 return _IMP_core.PairRestraint__set_from_binary(self, p)
10749 def __getstate__(self):
10750 p = self._get_as_binary()
10751 if len(self.__dict__) > 1:
10752 d = self.__dict__.copy()
10757 def __setstate__(self, p):
10758 if not hasattr(self,
'this'):
10760 if isinstance(p, tuple):
10762 self.__dict__.update(d)
10763 return self._set_from_binary(p)
10767 _IMP_core.PairRestraint_swigregister(PairRestraint)
10769 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10771 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10773 def __init__(self, *args):
10775 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10776 __init__(SingletonRestraint self) -> SingletonRestraint
10778 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10780 def get_version_info(self):
10781 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10782 return _IMP_core.SingletonRestraint_get_version_info(self)
10783 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10786 r"""__str__(SingletonRestraint self) -> std::string"""
10787 return _IMP_core.SingletonRestraint___str__(self)
10789 def __repr__(self):
10790 r"""__repr__(SingletonRestraint self) -> std::string"""
10791 return _IMP_core.SingletonRestraint___repr__(self)
10795 return _object_cast_to_SingletonRestraint(o)
10798 def _get_as_binary(self):
10799 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10800 return _IMP_core.SingletonRestraint__get_as_binary(self)
10802 def _set_from_binary(self, p):
10803 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10804 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10806 def __getstate__(self):
10807 p = self._get_as_binary()
10808 if len(self.__dict__) > 1:
10809 d = self.__dict__.copy()
10814 def __setstate__(self, p):
10815 if not hasattr(self,
'this'):
10817 if isinstance(p, tuple):
10819 self.__dict__.update(d)
10820 return self._set_from_binary(p)
10824 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10826 r"""Proxy of C++ IMP::core::TripletRestraint class."""
10828 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10830 def __init__(self, *args):
10832 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10833 __init__(TripletRestraint self) -> TripletRestraint
10835 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10837 def get_version_info(self):
10838 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10839 return _IMP_core.TripletRestraint_get_version_info(self)
10840 __swig_destroy__ = _IMP_core.delete_TripletRestraint
10843 r"""__str__(TripletRestraint self) -> std::string"""
10844 return _IMP_core.TripletRestraint___str__(self)
10846 def __repr__(self):
10847 r"""__repr__(TripletRestraint self) -> std::string"""
10848 return _IMP_core.TripletRestraint___repr__(self)
10852 return _object_cast_to_TripletRestraint(o)
10855 def _get_as_binary(self):
10856 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10857 return _IMP_core.TripletRestraint__get_as_binary(self)
10859 def _set_from_binary(self, p):
10860 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10861 return _IMP_core.TripletRestraint__set_from_binary(self, p)
10863 def __getstate__(self):
10864 p = self._get_as_binary()
10865 if len(self.__dict__) > 1:
10866 d = self.__dict__.copy()
10871 def __setstate__(self, p):
10872 if not hasattr(self,
'this'):
10874 if isinstance(p, tuple):
10876 self.__dict__.update(d)
10877 return self._set_from_binary(p)
10881 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10883 r"""Proxy of C++ IMP::core::QuadRestraint class."""
10885 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10887 def __init__(self, *args):
10889 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10890 __init__(QuadRestraint self) -> QuadRestraint
10892 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10894 def get_version_info(self):
10895 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10896 return _IMP_core.QuadRestraint_get_version_info(self)
10897 __swig_destroy__ = _IMP_core.delete_QuadRestraint
10900 r"""__str__(QuadRestraint self) -> std::string"""
10901 return _IMP_core.QuadRestraint___str__(self)
10903 def __repr__(self):
10904 r"""__repr__(QuadRestraint self) -> std::string"""
10905 return _IMP_core.QuadRestraint___repr__(self)
10909 return _object_cast_to_QuadRestraint(o)
10912 def _get_as_binary(self):
10913 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10914 return _IMP_core.QuadRestraint__get_as_binary(self)
10916 def _set_from_binary(self, p):
10917 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10918 return _IMP_core.QuadRestraint__set_from_binary(self, p)
10920 def __getstate__(self):
10921 p = self._get_as_binary()
10922 if len(self.__dict__) > 1:
10923 d = self.__dict__.copy()
10928 def __setstate__(self, p):
10929 if not hasattr(self,
'this'):
10931 if isinstance(p, tuple):
10933 self.__dict__.update(d)
10934 return self._set_from_binary(p)
10938 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10940 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10942 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10944 def __init__(self, *args):
10946 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10947 __init__(SingletonConstraint self) -> SingletonConstraint
10949 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10951 def get_version_info(self):
10952 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10953 return _IMP_core.SingletonConstraint_get_version_info(self)
10954 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10957 r"""__str__(SingletonConstraint self) -> std::string"""
10958 return _IMP_core.SingletonConstraint___str__(self)
10960 def __repr__(self):
10961 r"""__repr__(SingletonConstraint self) -> std::string"""
10962 return _IMP_core.SingletonConstraint___repr__(self)
10966 return _object_cast_to_SingletonConstraint(o)
10969 def _get_as_binary(self):
10970 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10971 return _IMP_core.SingletonConstraint__get_as_binary(self)
10973 def _set_from_binary(self, p):
10974 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10975 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10977 def __getstate__(self):
10978 p = self._get_as_binary()
10979 if len(self.__dict__) > 1:
10980 d = self.__dict__.copy()
10985 def __setstate__(self, p):
10986 if not hasattr(self,
'this'):
10988 if isinstance(p, tuple):
10990 self.__dict__.update(d)
10991 return self._set_from_binary(p)
10995 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10997 r"""Proxy of C++ IMP::core::PairConstraint class."""
10999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11001 def __init__(self, *args):
11003 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11004 __init__(PairConstraint self) -> PairConstraint
11006 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11008 def get_version_info(self):
11009 r"""get_version_info(PairConstraint self) -> VersionInfo"""
11010 return _IMP_core.PairConstraint_get_version_info(self)
11011 __swig_destroy__ = _IMP_core.delete_PairConstraint
11014 r"""__str__(PairConstraint self) -> std::string"""
11015 return _IMP_core.PairConstraint___str__(self)
11017 def __repr__(self):
11018 r"""__repr__(PairConstraint self) -> std::string"""
11019 return _IMP_core.PairConstraint___repr__(self)
11023 return _object_cast_to_PairConstraint(o)
11026 def _get_as_binary(self):
11027 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11028 return _IMP_core.PairConstraint__get_as_binary(self)
11030 def _set_from_binary(self, p):
11031 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11032 return _IMP_core.PairConstraint__set_from_binary(self, p)
11034 def __getstate__(self):
11035 p = self._get_as_binary()
11036 if len(self.__dict__) > 1:
11037 d = self.__dict__.copy()
11042 def __setstate__(self, p):
11043 if not hasattr(self,
'this'):
11045 if isinstance(p, tuple):
11047 self.__dict__.update(d)
11048 return self._set_from_binary(p)
11052 _IMP_core.PairConstraint_swigregister(PairConstraint)
11054 r"""Proxy of C++ IMP::core::TripletConstraint class."""
11056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11058 def __init__(self, *args):
11060 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11061 __init__(TripletConstraint self) -> TripletConstraint
11063 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11065 def get_version_info(self):
11066 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11067 return _IMP_core.TripletConstraint_get_version_info(self)
11068 __swig_destroy__ = _IMP_core.delete_TripletConstraint
11071 r"""__str__(TripletConstraint self) -> std::string"""
11072 return _IMP_core.TripletConstraint___str__(self)
11074 def __repr__(self):
11075 r"""__repr__(TripletConstraint self) -> std::string"""
11076 return _IMP_core.TripletConstraint___repr__(self)
11080 return _object_cast_to_TripletConstraint(o)
11083 def _get_as_binary(self):
11084 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11085 return _IMP_core.TripletConstraint__get_as_binary(self)
11087 def _set_from_binary(self, p):
11088 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11089 return _IMP_core.TripletConstraint__set_from_binary(self, p)
11091 def __getstate__(self):
11092 p = self._get_as_binary()
11093 if len(self.__dict__) > 1:
11094 d = self.__dict__.copy()
11099 def __setstate__(self, p):
11100 if not hasattr(self,
'this'):
11102 if isinstance(p, tuple):
11104 self.__dict__.update(d)
11105 return self._set_from_binary(p)
11109 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11111 r"""Proxy of C++ IMP::core::QuadConstraint class."""
11113 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11115 def __init__(self, *args):
11117 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11118 __init__(QuadConstraint self) -> QuadConstraint
11120 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11122 def get_version_info(self):
11123 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11124 return _IMP_core.QuadConstraint_get_version_info(self)
11125 __swig_destroy__ = _IMP_core.delete_QuadConstraint
11128 r"""__str__(QuadConstraint self) -> std::string"""
11129 return _IMP_core.QuadConstraint___str__(self)
11131 def __repr__(self):
11132 r"""__repr__(QuadConstraint self) -> std::string"""
11133 return _IMP_core.QuadConstraint___repr__(self)
11137 return _object_cast_to_QuadConstraint(o)
11140 def _get_as_binary(self):
11141 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11142 return _IMP_core.QuadConstraint__get_as_binary(self)
11144 def _set_from_binary(self, p):
11145 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11146 return _IMP_core.QuadConstraint__set_from_binary(self, p)
11148 def __getstate__(self):
11149 p = self._get_as_binary()
11150 if len(self.__dict__) > 1:
11151 d = self.__dict__.copy()
11156 def __setstate__(self, p):
11157 if not hasattr(self,
'this'):
11159 if isinstance(p, tuple):
11161 self.__dict__.update(d)
11162 return self._set_from_binary(p)
11166 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11168 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11170 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11172 def __init__(self, *args):
11174 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11175 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11177 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11179 def do_get_inputs(self, arg2, arg3):
11180 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11181 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11183 def get_value(self, *args):
11185 get_value(ConstantSingletonPredicate self, Particle a) -> int
11186 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11188 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11190 def get_value_index(self, *args):
11192 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11193 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11195 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11197 def get_version_info(self):
11198 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11199 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11200 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11203 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11204 return _IMP_core.ConstantSingletonPredicate___str__(self)
11206 def __repr__(self):
11207 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11208 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11212 return _object_cast_to_ConstantSingletonPredicate(o)
11215 def _get_as_binary(self):
11216 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11217 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11219 def _set_from_binary(self, p):
11220 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11221 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11223 def __getstate__(self):
11224 p = self._get_as_binary()
11225 if len(self.__dict__) > 1:
11226 d = self.__dict__.copy()
11231 def __setstate__(self, p):
11232 if not hasattr(self,
'this'):
11234 if isinstance(p, tuple):
11236 self.__dict__.update(d)
11237 return self._set_from_binary(p)
11241 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11243 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11245 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11247 def __init__(self, *args):
11248 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11249 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11251 def do_get_inputs(self, m, pis):
11252 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11253 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11255 def get_value(self, *args):
11257 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11258 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11260 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11262 def get_value_index(self, *args):
11264 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11265 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11267 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11269 def get_version_info(self):
11270 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11271 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11272 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11275 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11276 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11278 def __repr__(self):
11279 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11280 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11284 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11287 def _get_as_binary(self):
11288 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11289 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11291 def _set_from_binary(self, p):
11292 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11293 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11295 def __getstate__(self):
11296 p = self._get_as_binary()
11297 if len(self.__dict__) > 1:
11298 d = self.__dict__.copy()
11303 def __setstate__(self, p):
11304 if not hasattr(self,
'this'):
11306 if isinstance(p, tuple):
11308 self.__dict__.update(d)
11309 return self._set_from_binary(p)
11313 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11315 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11317 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11319 def __init__(self, *args):
11320 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11321 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11323 def do_get_inputs(self, m, pis):
11324 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11325 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11327 def get_value(self, *args):
11329 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11330 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11331 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11333 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11335 def get_value_index(self, *args):
11337 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11338 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11340 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11342 def get_version_info(self):
11343 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11344 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11345 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11348 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11349 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11351 def __repr__(self):
11352 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11353 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11357 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11361 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11363 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11365 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11367 def __init__(self, *args):
11368 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11369 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11371 def do_get_inputs(self, arg2, arg3):
11372 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11373 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11375 def get_value(self, *args):
11377 get_value(AllSameSingletonPredicate self, Particle a) -> int
11378 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11380 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11382 def get_value_index(self, *args):
11384 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11385 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11387 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11389 def get_version_info(self):
11390 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11391 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11392 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11395 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11396 return _IMP_core.AllSameSingletonPredicate___str__(self)
11398 def __repr__(self):
11399 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11400 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11404 return _object_cast_to_AllSameSingletonPredicate(o)
11407 def _get_as_binary(self):
11408 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11409 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11411 def _set_from_binary(self, p):
11412 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11413 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11415 def __getstate__(self):
11416 p = self._get_as_binary()
11417 if len(self.__dict__) > 1:
11418 d = self.__dict__.copy()
11423 def __setstate__(self, p):
11424 if not hasattr(self,
'this'):
11426 if isinstance(p, tuple):
11428 self.__dict__.update(d)
11429 return self._set_from_binary(p)
11433 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11435 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11437 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11439 def __init__(self, *args):
11440 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11441 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11443 def do_get_inputs(self, arg2, arg3):
11444 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11445 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11447 def get_value(self, *args):
11449 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11450 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11452 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11454 def get_value_index(self, *args):
11456 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11457 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11459 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11461 def get_version_info(self):
11462 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11463 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11464 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11467 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11468 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11470 def __repr__(self):
11471 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11472 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11476 return _object_cast_to_CoinFlipSingletonPredicate(o)
11480 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11482 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11484 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11486 def __init__(self, *args):
11488 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11489 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11491 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11493 def do_get_inputs(self, arg2, arg3):
11494 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11495 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11497 def get_value(self, *args):
11499 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11500 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11502 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11504 def get_value_index(self, *args):
11506 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11507 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11509 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11511 def get_version_info(self):
11512 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11513 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11514 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11517 r"""__str__(ConstantPairPredicate self) -> std::string"""
11518 return _IMP_core.ConstantPairPredicate___str__(self)
11520 def __repr__(self):
11521 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11522 return _IMP_core.ConstantPairPredicate___repr__(self)
11526 return _object_cast_to_ConstantPairPredicate(o)
11529 def _get_as_binary(self):
11530 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11531 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11533 def _set_from_binary(self, p):
11534 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11535 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11537 def __getstate__(self):
11538 p = self._get_as_binary()
11539 if len(self.__dict__) > 1:
11540 d = self.__dict__.copy()
11545 def __setstate__(self, p):
11546 if not hasattr(self,
'this'):
11548 if isinstance(p, tuple):
11550 self.__dict__.update(d)
11551 return self._set_from_binary(p)
11555 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11557 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11559 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11561 def __init__(self, *args):
11562 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11563 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11565 def do_get_inputs(self, m, pis):
11566 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11567 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11569 def get_value(self, *args):
11571 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11572 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11574 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11576 def get_value_index(self, *args):
11578 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11579 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11581 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11583 def get_version_info(self):
11584 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11585 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11586 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11589 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11590 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11592 def __repr__(self):
11593 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11594 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11598 return _object_cast_to_UnorderedTypePairPredicate(o)
11601 def _get_as_binary(self):
11602 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11603 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11605 def _set_from_binary(self, p):
11606 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11607 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11609 def __getstate__(self):
11610 p = self._get_as_binary()
11611 if len(self.__dict__) > 1:
11612 d = self.__dict__.copy()
11617 def __setstate__(self, p):
11618 if not hasattr(self,
'this'):
11620 if isinstance(p, tuple):
11622 self.__dict__.update(d)
11623 return self._set_from_binary(p)
11627 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11629 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11631 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11633 def __init__(self, *args):
11634 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11635 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11637 def do_get_inputs(self, m, pis):
11638 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11639 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11641 def get_value(self, *args):
11643 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11644 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11645 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11647 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11649 def get_value_index(self, *args):
11651 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11652 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11654 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11656 def get_version_info(self):
11657 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11658 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11659 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11662 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11663 return _IMP_core.OrderedTypePairPredicate___str__(self)
11665 def __repr__(self):
11666 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11667 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11671 return _object_cast_to_OrderedTypePairPredicate(o)
11675 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11677 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11679 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11681 def __init__(self, *args):
11682 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11683 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11685 def do_get_inputs(self, arg2, arg3):
11686 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11687 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11689 def get_value(self, *args):
11691 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11692 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11694 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11696 def get_value_index(self, *args):
11698 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11699 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11701 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11703 def get_version_info(self):
11704 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11705 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11706 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11709 r"""__str__(AllSamePairPredicate self) -> std::string"""
11710 return _IMP_core.AllSamePairPredicate___str__(self)
11712 def __repr__(self):
11713 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11714 return _IMP_core.AllSamePairPredicate___repr__(self)
11718 return _object_cast_to_AllSamePairPredicate(o)
11721 def _get_as_binary(self):
11722 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11723 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11725 def _set_from_binary(self, p):
11726 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11727 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11729 def __getstate__(self):
11730 p = self._get_as_binary()
11731 if len(self.__dict__) > 1:
11732 d = self.__dict__.copy()
11737 def __setstate__(self, p):
11738 if not hasattr(self,
'this'):
11740 if isinstance(p, tuple):
11742 self.__dict__.update(d)
11743 return self._set_from_binary(p)
11747 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11749 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11751 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11753 def __init__(self, *args):
11754 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11755 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11757 def do_get_inputs(self, arg2, arg3):
11758 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11759 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11761 def get_value(self, *args):
11763 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11764 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11766 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11768 def get_value_index(self, *args):
11770 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11771 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11773 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11775 def get_version_info(self):
11776 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11777 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11778 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11781 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11782 return _IMP_core.CoinFlipPairPredicate___str__(self)
11784 def __repr__(self):
11785 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11786 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11790 return _object_cast_to_CoinFlipPairPredicate(o)
11794 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11796 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11798 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11800 def __init__(self, *args):
11802 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11803 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11805 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11807 def do_get_inputs(self, arg2, arg3):
11808 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11809 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11811 def get_value(self, *args):
11813 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11814 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11816 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11818 def get_value_index(self, *args):
11820 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11821 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11823 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11825 def get_version_info(self):
11826 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11827 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11828 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11831 r"""__str__(ConstantTripletPredicate self) -> std::string"""
11832 return _IMP_core.ConstantTripletPredicate___str__(self)
11834 def __repr__(self):
11835 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11836 return _IMP_core.ConstantTripletPredicate___repr__(self)
11840 return _object_cast_to_ConstantTripletPredicate(o)
11843 def _get_as_binary(self):
11844 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11845 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11847 def _set_from_binary(self, p):
11848 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11849 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11851 def __getstate__(self):
11852 p = self._get_as_binary()
11853 if len(self.__dict__) > 1:
11854 d = self.__dict__.copy()
11859 def __setstate__(self, p):
11860 if not hasattr(self,
'this'):
11862 if isinstance(p, tuple):
11864 self.__dict__.update(d)
11865 return self._set_from_binary(p)
11869 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11871 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11873 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11875 def __init__(self, *args):
11876 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11877 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11879 def do_get_inputs(self, m, pis):
11880 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11881 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11883 def get_value(self, *args):
11885 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11886 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11888 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11890 def get_value_index(self, *args):
11892 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11893 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11895 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11897 def get_version_info(self):
11898 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11899 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11900 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11903 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11904 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11906 def __repr__(self):
11907 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11908 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11912 return _object_cast_to_UnorderedTypeTripletPredicate(o)
11915 def _get_as_binary(self):
11916 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11917 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11919 def _set_from_binary(self, p):
11920 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11921 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11923 def __getstate__(self):
11924 p = self._get_as_binary()
11925 if len(self.__dict__) > 1:
11926 d = self.__dict__.copy()
11931 def __setstate__(self, p):
11932 if not hasattr(self,
'this'):
11934 if isinstance(p, tuple):
11936 self.__dict__.update(d)
11937 return self._set_from_binary(p)
11941 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11943 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11945 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11947 def __init__(self, *args):
11948 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11949 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11951 def do_get_inputs(self, m, pis):
11952 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11953 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11955 def get_value(self, *args):
11957 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11958 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11959 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11961 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11963 def get_value_index(self, *args):
11965 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11966 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11968 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11970 def get_version_info(self):
11971 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11972 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11973 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11976 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11977 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11979 def __repr__(self):
11980 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11981 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11985 return _object_cast_to_OrderedTypeTripletPredicate(o)
11989 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11991 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11993 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11995 def __init__(self, *args):
11996 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11997 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11999 def do_get_inputs(self, arg2, arg3):
12000 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12001 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12003 def get_value(self, *args):
12005 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12006 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12008 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12010 def get_value_index(self, *args):
12012 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12013 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12015 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12017 def get_version_info(self):
12018 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12019 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12020 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12023 r"""__str__(AllSameTripletPredicate self) -> std::string"""
12024 return _IMP_core.AllSameTripletPredicate___str__(self)
12026 def __repr__(self):
12027 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12028 return _IMP_core.AllSameTripletPredicate___repr__(self)
12032 return _object_cast_to_AllSameTripletPredicate(o)
12035 def _get_as_binary(self):
12036 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12037 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12039 def _set_from_binary(self, p):
12040 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12041 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12043 def __getstate__(self):
12044 p = self._get_as_binary()
12045 if len(self.__dict__) > 1:
12046 d = self.__dict__.copy()
12051 def __setstate__(self, p):
12052 if not hasattr(self,
'this'):
12054 if isinstance(p, tuple):
12056 self.__dict__.update(d)
12057 return self._set_from_binary(p)
12061 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12063 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12065 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12067 def __init__(self, *args):
12068 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12069 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12071 def do_get_inputs(self, arg2, arg3):
12072 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12073 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12075 def get_value(self, *args):
12077 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12078 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12080 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12082 def get_value_index(self, *args):
12084 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12085 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12087 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12089 def get_version_info(self):
12090 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12091 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12092 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12095 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12096 return _IMP_core.CoinFlipTripletPredicate___str__(self)
12098 def __repr__(self):
12099 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12100 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12104 return _object_cast_to_CoinFlipTripletPredicate(o)
12108 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12110 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12112 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12114 def __init__(self, *args):
12116 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12117 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12119 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12121 def do_get_inputs(self, arg2, arg3):
12122 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12123 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12125 def get_value(self, *args):
12127 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12128 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12130 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12132 def get_value_index(self, *args):
12134 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12135 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12137 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12139 def get_version_info(self):
12140 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12141 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12142 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12145 r"""__str__(ConstantQuadPredicate self) -> std::string"""
12146 return _IMP_core.ConstantQuadPredicate___str__(self)
12148 def __repr__(self):
12149 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12150 return _IMP_core.ConstantQuadPredicate___repr__(self)
12154 return _object_cast_to_ConstantQuadPredicate(o)
12157 def _get_as_binary(self):
12158 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12159 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12161 def _set_from_binary(self, p):
12162 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12163 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12165 def __getstate__(self):
12166 p = self._get_as_binary()
12167 if len(self.__dict__) > 1:
12168 d = self.__dict__.copy()
12173 def __setstate__(self, p):
12174 if not hasattr(self,
'this'):
12176 if isinstance(p, tuple):
12178 self.__dict__.update(d)
12179 return self._set_from_binary(p)
12183 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12185 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12187 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12189 def __init__(self, *args):
12190 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12191 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12193 def do_get_inputs(self, m, pis):
12194 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12195 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12197 def get_value(self, *args):
12199 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12200 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12202 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12204 def get_value_index(self, *args):
12206 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12207 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12209 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12211 def get_version_info(self):
12212 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12213 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12214 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12217 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12218 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12220 def __repr__(self):
12221 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12222 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12226 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12229 def _get_as_binary(self):
12230 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12231 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12233 def _set_from_binary(self, p):
12234 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12235 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12237 def __getstate__(self):
12238 p = self._get_as_binary()
12239 if len(self.__dict__) > 1:
12240 d = self.__dict__.copy()
12245 def __setstate__(self, p):
12246 if not hasattr(self,
'this'):
12248 if isinstance(p, tuple):
12250 self.__dict__.update(d)
12251 return self._set_from_binary(p)
12255 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12257 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12259 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12261 def __init__(self, *args):
12262 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12263 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12265 def do_get_inputs(self, m, pis):
12266 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12267 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12269 def get_value(self, *args):
12271 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12272 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12273 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12275 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12277 def get_value_index(self, *args):
12279 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12280 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12282 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12284 def get_version_info(self):
12285 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12286 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12287 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12290 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12291 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12293 def __repr__(self):
12294 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12295 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12299 return _object_cast_to_OrderedTypeQuadPredicate(o)
12303 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12305 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12307 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12309 def __init__(self, *args):
12310 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12311 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12313 def do_get_inputs(self, arg2, arg3):
12314 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12315 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12317 def get_value(self, *args):
12319 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12320 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12322 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12324 def get_value_index(self, *args):
12326 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12327 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12329 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12331 def get_version_info(self):
12332 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12333 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12334 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12337 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12338 return _IMP_core.AllSameQuadPredicate___str__(self)
12340 def __repr__(self):
12341 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12342 return _IMP_core.AllSameQuadPredicate___repr__(self)
12346 return _object_cast_to_AllSameQuadPredicate(o)
12349 def _get_as_binary(self):
12350 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12351 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12353 def _set_from_binary(self, p):
12354 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12355 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12357 def __getstate__(self):
12358 p = self._get_as_binary()
12359 if len(self.__dict__) > 1:
12360 d = self.__dict__.copy()
12365 def __setstate__(self, p):
12366 if not hasattr(self,
'this'):
12368 if isinstance(p, tuple):
12370 self.__dict__.update(d)
12371 return self._set_from_binary(p)
12375 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12377 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12379 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12381 def __init__(self, *args):
12382 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12383 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12385 def do_get_inputs(self, arg2, arg3):
12386 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12387 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12389 def get_value(self, *args):
12391 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12392 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12394 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12396 def get_value_index(self, *args):
12398 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12399 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12401 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12403 def get_version_info(self):
12404 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12405 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12406 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12409 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12410 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12412 def __repr__(self):
12413 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12414 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12418 return _object_cast_to_CoinFlipQuadPredicate(o)
12422 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12424 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12426 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12428 def __init__(self, *args):
12429 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12430 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12432 def do_get_inputs(self, m, pi):
12433 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12434 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12436 def get_value(self, *args):
12438 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12439 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12441 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12443 def get_value_index(self, *args):
12445 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12446 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12448 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12450 def get_version_info(self):
12451 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12452 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12453 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12456 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12457 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12459 def __repr__(self):
12460 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12461 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12465 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12469 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12471 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12473 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12475 def __init__(self, *args):
12476 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12477 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12479 def do_get_inputs(self, m, pi):
12480 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12481 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12483 def get_value(self, *args):
12485 get_value(AttributeSingletonPredicate self, Particle a) -> int
12486 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12488 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12490 def get_value_index(self, *args):
12492 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12493 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12495 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12497 def get_version_info(self):
12498 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12499 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12500 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12503 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12504 return _IMP_core.AttributeSingletonPredicate___str__(self)
12506 def __repr__(self):
12507 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12508 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12512 return _object_cast_to_AttributeSingletonPredicate(o)
12516 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12518 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12520 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12522 def __init__(self, *args):
12523 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12524 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12526 def do_get_inputs(self, m, pi):
12527 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12528 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12530 def get_value(self, *args):
12532 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12533 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12535 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12537 def get_value_index(self, *args):
12539 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12540 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12542 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12544 def get_version_info(self):
12545 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12546 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12547 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12550 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12551 return _IMP_core.IsCollisionPairPredicate___str__(self)
12553 def __repr__(self):
12554 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12555 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12559 return _object_cast_to_IsCollisionPairPredicate(o)
12563 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12564 class AngleRestraint(TripletRestraint):
12565 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12567 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12569 def __init__(self, *args):
12571 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12572 __init__(AngleRestraint self) -> AngleRestraint
12574 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12575 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12578 r"""__str__(AngleRestraint self) -> std::string"""
12579 return _IMP_core.AngleRestraint___str__(self)
12581 def __repr__(self):
12582 r"""__repr__(AngleRestraint self) -> std::string"""
12583 return _IMP_core.AngleRestraint___repr__(self)
12587 return _object_cast_to_AngleRestraint(o)
12590 def _get_as_binary(self):
12591 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12592 return _IMP_core.AngleRestraint__get_as_binary(self)
12594 def _set_from_binary(self, p):
12595 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12596 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12598 def __getstate__(self):
12599 p = self._get_as_binary()
12600 if len(self.__dict__) > 1:
12601 d = self.__dict__.copy()
12606 def __setstate__(self, p):
12607 if not hasattr(self,
'this'):
12609 if isinstance(p, tuple):
12611 self.__dict__.update(d)
12612 return self._set_from_binary(p)
12616 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12617 class RigidBodyMover(MonteCarloMover):
12618 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12620 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12622 def __init__(self, *args):
12624 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12625 __init__(RigidBodyMover self) -> RigidBodyMover
12627 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12629 def set_maximum_translation(self, mt):
12630 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12631 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12633 def set_maximum_rotation(self, mr):
12634 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12635 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12637 def get_maximum_translation(self):
12638 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12639 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12641 def get_maximum_rotation(self):
12642 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12643 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12645 def get_version_info(self):
12646 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12647 return _IMP_core.RigidBodyMover_get_version_info(self)
12648 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12651 r"""__str__(RigidBodyMover self) -> std::string"""
12652 return _IMP_core.RigidBodyMover___str__(self)
12654 def __repr__(self):
12655 r"""__repr__(RigidBodyMover self) -> std::string"""
12656 return _IMP_core.RigidBodyMover___repr__(self)
12660 return _object_cast_to_RigidBodyMover(o)
12663 def _get_as_binary(self):
12664 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12665 return _IMP_core.RigidBodyMover__get_as_binary(self)
12667 def _set_from_binary(self, p):
12668 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12669 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12671 def __getstate__(self):
12672 p = self._get_as_binary()
12673 if len(self.__dict__) > 1:
12674 d = self.__dict__.copy()
12679 def __setstate__(self, p):
12680 if not hasattr(self,
'this'):
12682 if isinstance(p, tuple):
12684 self.__dict__.update(d)
12685 return self._set_from_binary(p)
12689 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12690 class RigidBodyTunneler(MonteCarloMover):
12691 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12693 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12695 def __init__(self, m, pis, ref, k, move_probability=1.):
12696 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12697 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12699 def add_entry_point(self, fl):
12700 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12701 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12703 def reset_stats(self):
12704 r"""reset_stats(RigidBodyTunneler self)"""
12705 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12707 def get_number_of_rejected_moves(self):
12708 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12709 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12711 def get_number_of_proposed_moves(self):
12712 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12713 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12715 def get_number_of_impossible_moves(self):
12716 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12717 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12719 def get_number_of_calls(self):
12720 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12721 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12724 def get_reduced_coordinates(*args):
12726 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12727 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12729 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12732 def set_reduced_coordinates(m, target, ref, coords):
12733 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12734 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12736 def get_version_info(self):
12737 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12738 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12739 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12742 r"""__str__(RigidBodyTunneler self) -> std::string"""
12743 return _IMP_core.RigidBodyTunneler___str__(self)
12745 def __repr__(self):
12746 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12747 return _IMP_core.RigidBodyTunneler___repr__(self)
12751 return _object_cast_to_RigidBodyTunneler(o)
12755 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12757 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12759 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12761 def __init__(self, *args):
12763 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12764 __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
12766 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12768 def set_x0(self, *args):
12770 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12771 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12773 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12776 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12777 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12780 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12781 return _IMP_core.RigidBodyUmbrella_get_x(self)
12783 def set_alpha(self, alpha):
12784 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12785 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12787 def set_k(self, k):
12788 r"""set_k(RigidBodyUmbrella self, double k)"""
12789 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12791 def get_version_info(self):
12792 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12793 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12794 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12797 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12798 return _IMP_core.RigidBodyUmbrella___str__(self)
12800 def __repr__(self):
12801 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12802 return _IMP_core.RigidBodyUmbrella___repr__(self)
12806 return _object_cast_to_RigidBodyUmbrella(o)
12810 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12812 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12814 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12816 def __init__(self, f, sc, volume):
12817 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12818 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12820 def do_get_inputs(self):
12821 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12822 return _IMP_core.VolumeRestraint_do_get_inputs(self)
12824 def get_version_info(self):
12825 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12826 return _IMP_core.VolumeRestraint_get_version_info(self)
12827 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12830 r"""__str__(VolumeRestraint self) -> std::string"""
12831 return _IMP_core.VolumeRestraint___str__(self)
12833 def __repr__(self):
12834 r"""__repr__(VolumeRestraint self) -> std::string"""
12835 return _IMP_core.VolumeRestraint___repr__(self)
12839 return _object_cast_to_VolumeRestraint(o)
12843 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12846 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12847 return _IMP_core.get_centroid(ps)
12850 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12851 return _IMP_core.get_bounding_box(ps)
12853 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12855 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12857 def __init__(self, ps):
12858 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12859 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12861 def show_statistics(self, *args):
12862 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12863 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12866 r"""reset(MoveStatisticsScoreState self)"""
12867 return _IMP_core.MoveStatisticsScoreState_reset(self)
12869 def do_before_evaluate(self):
12870 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12871 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12873 def do_after_evaluate(self, da):
12874 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12875 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12877 def do_get_inputs(self):
12878 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12879 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12881 def do_get_outputs(self):
12882 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12883 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12885 def get_version_info(self):
12886 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12887 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12888 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12891 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12892 return _IMP_core.MoveStatisticsScoreState___str__(self)
12894 def __repr__(self):
12895 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12896 return _IMP_core.MoveStatisticsScoreState___repr__(self)
12900 return _object_cast_to_MoveStatisticsScoreState(o)
12904 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12905 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12908 r"""Proxy of C++ IMP::core::Typed class."""
12910 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12913 def get_type_key():
12914 r"""get_type_key() -> IntKey"""
12915 return _IMP_core.Typed_get_type_key()
12917 def __init__(self, *args):
12919 __init__(Typed self) -> Typed
12920 __init__(Typed self, Model m, ParticleIndex id) -> Typed
12921 __init__(Typed self, _ParticleAdaptor d) -> Typed
12923 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12925 def show(self, *args):
12926 r"""show(Typed self, _ostream out=std::cout)"""
12927 return _IMP_core.Typed_show(self, *args)
12930 def setup_particle(*args):
12932 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12933 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12935 return _IMP_core.Typed_setup_particle(*args)
12938 def get_is_setup(*args):
12940 get_is_setup(_ParticleAdaptor p) -> bool
12941 get_is_setup(Model m, ParticleIndex pi) -> bool
12943 return _IMP_core.Typed_get_is_setup(*args)
12945 def get_type(self):
12946 r"""get_type(Typed self) -> ParticleType"""
12947 return _IMP_core.Typed_get_type(self)
12949 def set_type(self, pt):
12950 r"""set_type(Typed self, ParticleType pt)"""
12951 return _IMP_core.Typed_set_type(self, pt)
12953 def add_attribute(self, *args):
12955 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12956 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12957 add_attribute(Typed self, IntKey a0, IMP::Int a1)
12958 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12959 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12960 add_attribute(Typed self, StringKey a0, IMP::String a1)
12961 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12962 add_attribute(Typed self, ObjectKey a0, Object a1)
12963 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12964 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12965 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12966 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12968 return _IMP_core.Typed_add_attribute(self, *args)
12970 def get_value(self, *args):
12972 get_value(Typed self, FloatKey a0) -> IMP::Float
12973 get_value(Typed self, IntKey a0) -> IMP::Int
12974 get_value(Typed self, FloatsKey a0) -> IMP::Floats
12975 get_value(Typed self, IntsKey a0) -> IMP::Ints
12976 get_value(Typed self, StringKey a0) -> IMP::String
12977 get_value(Typed self, ParticleIndexKey a0) -> Particle
12978 get_value(Typed self, ObjectKey a0) -> Object
12979 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12980 get_value(Typed self, SparseIntKey a0) -> IMP::Int
12981 get_value(Typed self, SparseStringKey a0) -> IMP::String
12982 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12984 return _IMP_core.Typed_get_value(self, *args)
12986 def set_value(self, *args):
12988 set_value(Typed self, FloatKey a0, IMP::Float a1)
12989 set_value(Typed self, IntKey a0, IMP::Int a1)
12990 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12991 set_value(Typed self, IntsKey a0, IMP::Ints a1)
12992 set_value(Typed self, StringKey a0, IMP::String a1)
12993 set_value(Typed self, ParticleIndexKey a0, Particle a1)
12994 set_value(Typed self, ObjectKey a0, Object a1)
12995 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12996 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12997 set_value(Typed self, SparseStringKey a0, IMP::String a1)
12998 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13000 return _IMP_core.Typed_set_value(self, *args)
13002 def remove_attribute(self, *args):
13004 remove_attribute(Typed self, FloatKey a0)
13005 remove_attribute(Typed self, IntKey a0)
13006 remove_attribute(Typed self, FloatsKey a0)
13007 remove_attribute(Typed self, IntsKey a0)
13008 remove_attribute(Typed self, StringKey a0)
13009 remove_attribute(Typed self, ParticleIndexKey a0)
13010 remove_attribute(Typed self, ObjectKey a0)
13011 remove_attribute(Typed self, SparseFloatKey a0)
13012 remove_attribute(Typed self, SparseIntKey a0)
13013 remove_attribute(Typed self, SparseStringKey a0)
13014 remove_attribute(Typed self, SparseParticleIndexKey a0)
13016 return _IMP_core.Typed_remove_attribute(self, *args)
13018 def has_attribute(self, *args):
13020 has_attribute(Typed self, FloatKey a0) -> bool
13021 has_attribute(Typed self, IntKey a0) -> bool
13022 has_attribute(Typed self, FloatsKey a0) -> bool
13023 has_attribute(Typed self, IntsKey a0) -> bool
13024 has_attribute(Typed self, StringKey a0) -> bool
13025 has_attribute(Typed self, ParticleIndexKey a0) -> bool
13026 has_attribute(Typed self, ObjectKey a0) -> bool
13027 has_attribute(Typed self, SparseFloatKey a0) -> bool
13028 has_attribute(Typed self, SparseIntKey a0) -> bool
13029 has_attribute(Typed self, SparseStringKey a0) -> bool
13030 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13032 return _IMP_core.Typed_has_attribute(self, *args)
13034 def get_derivative(self, a0):
13035 r"""get_derivative(Typed self, FloatKey a0) -> double"""
13036 return _IMP_core.Typed_get_derivative(self, a0)
13038 def get_name(self):
13039 r"""get_name(Typed self) -> std::string"""
13040 return _IMP_core.Typed_get_name(self)
13042 def clear_caches(self):
13043 r"""clear_caches(Typed self)"""
13044 return _IMP_core.Typed_clear_caches(self)
13046 def set_name(self, a0):
13047 r"""set_name(Typed self, std::string a0)"""
13048 return _IMP_core.Typed_set_name(self, a0)
13051 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13052 return _IMP_core.Typed_set_check_level(self, a0)
13054 def add_to_derivative(self, a0, a1, a2):
13055 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13056 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13058 def set_is_optimized(self, a0, a1):
13059 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13060 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13062 def get_is_optimized(self, a0):
13063 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13064 return _IMP_core.Typed_get_is_optimized(self, a0)
13067 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13068 return _IMP_core.Typed_get_check_level(self)
13070 def __eq__(self, *args):
13072 __eq__(Typed self, Typed o) -> bool
13073 __eq__(Typed self, Particle d) -> bool
13075 return _IMP_core.Typed___eq__(self, *args)
13077 def __ne__(self, *args):
13079 __ne__(Typed self, Typed o) -> bool
13080 __ne__(Typed self, Particle d) -> bool
13082 return _IMP_core.Typed___ne__(self, *args)
13084 def __le__(self, *args):
13086 __le__(Typed self, Typed o) -> bool
13087 __le__(Typed self, Particle d) -> bool
13089 return _IMP_core.Typed___le__(self, *args)
13091 def __lt__(self, *args):
13093 __lt__(Typed self, Typed o) -> bool
13094 __lt__(Typed self, Particle d) -> bool
13096 return _IMP_core.Typed___lt__(self, *args)
13098 def __ge__(self, *args):
13100 __ge__(Typed self, Typed o) -> bool
13101 __ge__(Typed self, Particle d) -> bool
13103 return _IMP_core.Typed___ge__(self, *args)
13105 def __gt__(self, *args):
13107 __gt__(Typed self, Typed o) -> bool
13108 __gt__(Typed self, Particle d) -> bool
13110 return _IMP_core.Typed___gt__(self, *args)
13112 def __hash__(self):
13113 r"""__hash__(Typed self) -> std::size_t"""
13114 return _IMP_core.Typed___hash__(self)
13117 r"""__str__(Typed self) -> std::string"""
13118 return _IMP_core.Typed___str__(self)
13120 def __repr__(self):
13121 r"""__repr__(Typed self) -> std::string"""
13122 return _IMP_core.Typed___repr__(self)
13124 def _get_as_binary(self):
13125 r"""_get_as_binary(Typed self) -> PyObject *"""
13126 return _IMP_core.Typed__get_as_binary(self)
13128 def _set_from_binary(self, p):
13129 r"""_set_from_binary(Typed self, PyObject * p)"""
13130 return _IMP_core.Typed__set_from_binary(self, p)
13132 def __getstate__(self):
13133 p = self._get_as_binary()
13134 if len(self.__dict__) > 1:
13135 d = self.__dict__.copy()
13140 def __setstate__(self, p):
13141 if not hasattr(self,
'this'):
13143 if isinstance(p, tuple):
13145 self.__dict__.update(d)
13146 return self._set_from_binary(p)
13148 __swig_destroy__ = _IMP_core.delete_Typed
13151 _IMP_core.Typed_swigregister(Typed)
13153 def __lshift__(*args):
13155 __lshift__(_ostream out, XYZ n) -> _ostream
13156 __lshift__(_ostream out, XYZR n) -> _ostream
13157 __lshift__(_ostream out, Direction n) -> _ostream
13158 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13159 __lshift__(_ostream out, Surface n) -> _ostream
13160 __lshift__(_ostream out, Centroid n) -> _ostream
13161 __lshift__(_ostream out, Cover n) -> _ostream
13162 __lshift__(_ostream out, Reference n) -> _ostream
13163 __lshift__(_ostream out, RigidMember n) -> _ostream
13164 __lshift__(_ostream out, RigidBody n) -> _ostream
13165 __lshift__(_ostream out, Gaussian n) -> _ostream
13166 __lshift__(_ostream out, Typed n) -> _ostream
13168 return _IMP_core.__lshift__(*args)
13170 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13172 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13174 def __init__(self, rs, out):
13175 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13176 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13178 def get_version_info(self):
13179 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13180 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13181 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13184 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13185 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13187 def __repr__(self):
13188 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13189 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13193 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13197 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13200 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13201 return _IMP_core.assign_blame(rs, ps, attribute)
13204 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13205 return _IMP_core.create_blame_geometries(*args)
13207 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13209 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13211 def __init__(self, m, q1, q2):
13212 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13213 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13215 def add_term(self, term):
13216 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13217 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13219 def do_get_inputs(self):
13220 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13221 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13223 def get_version_info(self):
13224 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13225 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13226 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13229 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13230 return _IMP_core.MultipleBinormalRestraint___str__(self)
13232 def __repr__(self):
13233 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13234 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13238 return _object_cast_to_MultipleBinormalRestraint(o)
13242 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13243 class BinormalTerm(object):
13244 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13246 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13248 def __init__(self):
13249 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13250 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13252 def set_correlation(self, correlation):
13253 r"""set_correlation(BinormalTerm self, double correlation)"""
13254 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13256 def set_weight(self, weight):
13257 r"""set_weight(BinormalTerm self, double weight)"""
13258 return _IMP_core.BinormalTerm_set_weight(self, weight)
13260 def set_means(self, means):
13261 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13262 return _IMP_core.BinormalTerm_set_means(self, means)
13264 def set_standard_deviations(self, stdevs):
13265 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13266 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13268 def show(self, *args):
13269 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13270 return _IMP_core.BinormalTerm_show(self, *args)
13273 r"""__str__(BinormalTerm self) -> std::string"""
13274 return _IMP_core.BinormalTerm___str__(self)
13276 def __repr__(self):
13277 r"""__repr__(BinormalTerm self) -> std::string"""
13278 return _IMP_core.BinormalTerm___repr__(self)
13280 def _get_as_binary(self):
13281 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13282 return _IMP_core.BinormalTerm__get_as_binary(self)
13284 def _set_from_binary(self, p):
13285 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13286 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13288 def __getstate__(self):
13289 p = self._get_as_binary()
13290 if len(self.__dict__) > 1:
13291 d = self.__dict__.copy()
13296 def __setstate__(self, p):
13297 if not hasattr(self,
'this'):
13299 if isinstance(p, tuple):
13301 self.__dict__.update(d)
13302 return self._set_from_binary(p)
13304 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13307 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13309 r"""Proxy of C++ IMP::core::Provenance class."""
13311 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13313 def get_previous(self):
13314 r"""get_previous(Provenance self) -> Provenance"""
13315 return _IMP_core.Provenance_get_previous(self)
13317 def set_previous(self, p):
13318 r"""set_previous(Provenance self, Provenance p)"""
13319 return _IMP_core.Provenance_set_previous(self, p)
13321 def __init__(self, *args):
13323 __init__(Provenance self) -> Provenance
13324 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13325 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13327 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13330 def get_is_setup(*args):
13332 get_is_setup(Model m, ParticleIndex pi) -> bool
13333 get_is_setup(_ParticleAdaptor p) -> bool
13335 return _IMP_core.Provenance_get_is_setup(*args)
13337 def show(self, *args):
13338 r"""show(Provenance self, _ostream out=std::cout)"""
13339 return _IMP_core.Provenance_show(self, *args)
13342 def setup_particle(*args):
13344 setup_particle(Model m, ParticleIndex pi) -> Provenance
13345 setup_particle(_ParticleAdaptor pa) -> Provenance
13347 return _IMP_core.Provenance_setup_particle(*args)
13349 def add_attribute(self, *args):
13351 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13352 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13353 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13354 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13355 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13356 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13357 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13358 add_attribute(Provenance self, ObjectKey a0, Object a1)
13359 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13360 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13361 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13362 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13364 return _IMP_core.Provenance_add_attribute(self, *args)
13366 def get_value(self, *args):
13368 get_value(Provenance self, FloatKey a0) -> IMP::Float
13369 get_value(Provenance self, IntKey a0) -> IMP::Int
13370 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13371 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13372 get_value(Provenance self, StringKey a0) -> IMP::String
13373 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13374 get_value(Provenance self, ObjectKey a0) -> Object
13375 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13376 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13377 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13378 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13380 return _IMP_core.Provenance_get_value(self, *args)
13382 def set_value(self, *args):
13384 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13385 set_value(Provenance self, IntKey a0, IMP::Int a1)
13386 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13387 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13388 set_value(Provenance self, StringKey a0, IMP::String a1)
13389 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13390 set_value(Provenance self, ObjectKey a0, Object a1)
13391 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13392 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13393 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13394 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13396 return _IMP_core.Provenance_set_value(self, *args)
13398 def remove_attribute(self, *args):
13400 remove_attribute(Provenance self, FloatKey a0)
13401 remove_attribute(Provenance self, IntKey a0)
13402 remove_attribute(Provenance self, FloatsKey a0)
13403 remove_attribute(Provenance self, IntsKey a0)
13404 remove_attribute(Provenance self, StringKey a0)
13405 remove_attribute(Provenance self, ParticleIndexKey a0)
13406 remove_attribute(Provenance self, ObjectKey a0)
13407 remove_attribute(Provenance self, SparseFloatKey a0)
13408 remove_attribute(Provenance self, SparseIntKey a0)
13409 remove_attribute(Provenance self, SparseStringKey a0)
13410 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13412 return _IMP_core.Provenance_remove_attribute(self, *args)
13414 def has_attribute(self, *args):
13416 has_attribute(Provenance self, FloatKey a0) -> bool
13417 has_attribute(Provenance self, IntKey a0) -> bool
13418 has_attribute(Provenance self, FloatsKey a0) -> bool
13419 has_attribute(Provenance self, IntsKey a0) -> bool
13420 has_attribute(Provenance self, StringKey a0) -> bool
13421 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13422 has_attribute(Provenance self, ObjectKey a0) -> bool
13423 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13424 has_attribute(Provenance self, SparseIntKey a0) -> bool
13425 has_attribute(Provenance self, SparseStringKey a0) -> bool
13426 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13428 return _IMP_core.Provenance_has_attribute(self, *args)
13430 def get_derivative(self, a0):
13431 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13432 return _IMP_core.Provenance_get_derivative(self, a0)
13434 def get_name(self):
13435 r"""get_name(Provenance self) -> std::string"""
13436 return _IMP_core.Provenance_get_name(self)
13438 def clear_caches(self):
13439 r"""clear_caches(Provenance self)"""
13440 return _IMP_core.Provenance_clear_caches(self)
13442 def set_name(self, a0):
13443 r"""set_name(Provenance self, std::string a0)"""
13444 return _IMP_core.Provenance_set_name(self, a0)
13447 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13448 return _IMP_core.Provenance_set_check_level(self, a0)
13450 def add_to_derivative(self, a0, a1, a2):
13451 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13452 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13454 def set_is_optimized(self, a0, a1):
13455 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13456 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13458 def get_is_optimized(self, a0):
13459 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13460 return _IMP_core.Provenance_get_is_optimized(self, a0)
13463 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13464 return _IMP_core.Provenance_get_check_level(self)
13466 def __eq__(self, *args):
13468 __eq__(Provenance self, Provenance o) -> bool
13469 __eq__(Provenance self, Particle d) -> bool
13471 return _IMP_core.Provenance___eq__(self, *args)
13473 def __ne__(self, *args):
13475 __ne__(Provenance self, Provenance o) -> bool
13476 __ne__(Provenance self, Particle d) -> bool
13478 return _IMP_core.Provenance___ne__(self, *args)
13480 def __le__(self, *args):
13482 __le__(Provenance self, Provenance o) -> bool
13483 __le__(Provenance self, Particle d) -> bool
13485 return _IMP_core.Provenance___le__(self, *args)
13487 def __lt__(self, *args):
13489 __lt__(Provenance self, Provenance o) -> bool
13490 __lt__(Provenance self, Particle d) -> bool
13492 return _IMP_core.Provenance___lt__(self, *args)
13494 def __ge__(self, *args):
13496 __ge__(Provenance self, Provenance o) -> bool
13497 __ge__(Provenance self, Particle d) -> bool
13499 return _IMP_core.Provenance___ge__(self, *args)
13501 def __gt__(self, *args):
13503 __gt__(Provenance self, Provenance o) -> bool
13504 __gt__(Provenance self, Particle d) -> bool
13506 return _IMP_core.Provenance___gt__(self, *args)
13508 def __hash__(self):
13509 r"""__hash__(Provenance self) -> std::size_t"""
13510 return _IMP_core.Provenance___hash__(self)
13513 r"""__str__(Provenance self) -> std::string"""
13514 return _IMP_core.Provenance___str__(self)
13516 def __repr__(self):
13517 r"""__repr__(Provenance self) -> std::string"""
13518 return _IMP_core.Provenance___repr__(self)
13520 def _get_as_binary(self):
13521 r"""_get_as_binary(Provenance self) -> PyObject *"""
13522 return _IMP_core.Provenance__get_as_binary(self)
13524 def _set_from_binary(self, p):
13525 r"""_set_from_binary(Provenance self, PyObject * p)"""
13526 return _IMP_core.Provenance__set_from_binary(self, p)
13528 def __getstate__(self):
13529 p = self._get_as_binary()
13530 if len(self.__dict__) > 1:
13531 d = self.__dict__.copy()
13536 def __setstate__(self, p):
13537 if not hasattr(self,
'this'):
13539 if isinstance(p, tuple):
13541 self.__dict__.update(d)
13542 return self._set_from_binary(p)
13544 __swig_destroy__ = _IMP_core.delete_Provenance
13547 _IMP_core.Provenance_swigregister(Provenance)
13548 class StructureProvenance(Provenance):
13549 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13551 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13553 def set_filename(self, filename):
13554 r"""set_filename(StructureProvenance self, std::string filename)"""
13555 return _IMP_core.StructureProvenance_set_filename(self, filename)
13557 def get_filename(self):
13558 r"""get_filename(StructureProvenance self) -> std::string"""
13559 return _IMP_core.StructureProvenance_get_filename(self)
13561 def set_chain_id(self, chain_id):
13562 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13563 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13566 r"""get_chain_id(StructureProvenance self) -> std::string"""
13567 return _IMP_core.StructureProvenance_get_chain_id(self)
13569 def set_residue_offset(self, residue_offset):
13570 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13571 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13573 def get_residue_offset(self):
13574 r"""get_residue_offset(StructureProvenance self) -> int"""
13575 return _IMP_core.StructureProvenance_get_residue_offset(self)
13577 def __init__(self, *args):
13579 __init__(StructureProvenance self) -> StructureProvenance
13580 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13581 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13583 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13586 def get_is_setup(*args):
13588 get_is_setup(Model m, ParticleIndex pi) -> bool
13589 get_is_setup(_ParticleAdaptor p) -> bool
13591 return _IMP_core.StructureProvenance_get_is_setup(*args)
13593 def show(self, *args):
13594 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13595 return _IMP_core.StructureProvenance_show(self, *args)
13598 def setup_particle(*args):
13600 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13601 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13602 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13603 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13604 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13605 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13607 return _IMP_core.StructureProvenance_setup_particle(*args)
13609 def add_attribute(self, *args):
13611 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13612 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13613 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13614 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13615 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13616 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13617 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13618 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13619 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13620 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13621 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13622 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13624 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13626 def get_value(self, *args):
13628 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13629 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13630 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13631 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13632 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13633 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13634 get_value(StructureProvenance self, ObjectKey a0) -> Object
13635 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13636 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13637 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13638 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13640 return _IMP_core.StructureProvenance_get_value(self, *args)
13642 def set_value(self, *args):
13644 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13645 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13646 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13647 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13648 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13649 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13650 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13651 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13652 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13653 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13654 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13656 return _IMP_core.StructureProvenance_set_value(self, *args)
13658 def remove_attribute(self, *args):
13660 remove_attribute(StructureProvenance self, FloatKey a0)
13661 remove_attribute(StructureProvenance self, IntKey a0)
13662 remove_attribute(StructureProvenance self, FloatsKey a0)
13663 remove_attribute(StructureProvenance self, IntsKey a0)
13664 remove_attribute(StructureProvenance self, StringKey a0)
13665 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13666 remove_attribute(StructureProvenance self, ObjectKey a0)
13667 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13668 remove_attribute(StructureProvenance self, SparseIntKey a0)
13669 remove_attribute(StructureProvenance self, SparseStringKey a0)
13670 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13672 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13674 def has_attribute(self, *args):
13676 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13677 has_attribute(StructureProvenance self, IntKey a0) -> bool
13678 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13679 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13680 has_attribute(StructureProvenance self, StringKey a0) -> bool
13681 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13682 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13683 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13684 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13685 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13686 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13688 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13690 def get_derivative(self, a0):
13691 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13692 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13694 def get_name(self):
13695 r"""get_name(StructureProvenance self) -> std::string"""
13696 return _IMP_core.StructureProvenance_get_name(self)
13698 def clear_caches(self):
13699 r"""clear_caches(StructureProvenance self)"""
13700 return _IMP_core.StructureProvenance_clear_caches(self)
13702 def set_name(self, a0):
13703 r"""set_name(StructureProvenance self, std::string a0)"""
13704 return _IMP_core.StructureProvenance_set_name(self, a0)
13707 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13708 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13710 def add_to_derivative(self, a0, a1, a2):
13711 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13712 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13714 def set_is_optimized(self, a0, a1):
13715 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13716 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13718 def get_is_optimized(self, a0):
13719 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13720 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13723 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13724 return _IMP_core.StructureProvenance_get_check_level(self)
13726 def __eq__(self, *args):
13728 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13729 __eq__(StructureProvenance self, Particle d) -> bool
13731 return _IMP_core.StructureProvenance___eq__(self, *args)
13733 def __ne__(self, *args):
13735 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13736 __ne__(StructureProvenance self, Particle d) -> bool
13738 return _IMP_core.StructureProvenance___ne__(self, *args)
13740 def __le__(self, *args):
13742 __le__(StructureProvenance self, StructureProvenance o) -> bool
13743 __le__(StructureProvenance self, Particle d) -> bool
13745 return _IMP_core.StructureProvenance___le__(self, *args)
13747 def __lt__(self, *args):
13749 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13750 __lt__(StructureProvenance self, Particle d) -> bool
13752 return _IMP_core.StructureProvenance___lt__(self, *args)
13754 def __ge__(self, *args):
13756 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13757 __ge__(StructureProvenance self, Particle d) -> bool
13759 return _IMP_core.StructureProvenance___ge__(self, *args)
13761 def __gt__(self, *args):
13763 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13764 __gt__(StructureProvenance self, Particle d) -> bool
13766 return _IMP_core.StructureProvenance___gt__(self, *args)
13768 def __hash__(self):
13769 r"""__hash__(StructureProvenance self) -> std::size_t"""
13770 return _IMP_core.StructureProvenance___hash__(self)
13773 r"""__str__(StructureProvenance self) -> std::string"""
13774 return _IMP_core.StructureProvenance___str__(self)
13776 def __repr__(self):
13777 r"""__repr__(StructureProvenance self) -> std::string"""
13778 return _IMP_core.StructureProvenance___repr__(self)
13780 def _get_as_binary(self):
13781 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13782 return _IMP_core.StructureProvenance__get_as_binary(self)
13784 def _set_from_binary(self, p):
13785 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13786 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13788 def __getstate__(self):
13789 p = self._get_as_binary()
13790 if len(self.__dict__) > 1:
13791 d = self.__dict__.copy()
13796 def __setstate__(self, p):
13797 if not hasattr(self,
'this'):
13799 if isinstance(p, tuple):
13801 self.__dict__.update(d)
13802 return self._set_from_binary(p)
13804 __swig_destroy__ = _IMP_core.delete_StructureProvenance
13807 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13808 class SampleProvenance(Provenance):
13809 r"""Proxy of C++ IMP::core::SampleProvenance class."""
13811 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13813 def set_method(self, method):
13814 r"""set_method(SampleProvenance self, std::string method)"""
13815 return _IMP_core.SampleProvenance_set_method(self, method)
13817 def get_method(self):
13818 r"""get_method(SampleProvenance self) -> std::string"""
13819 return _IMP_core.SampleProvenance_get_method(self)
13821 def set_number_of_frames(self, frames):
13822 r"""set_number_of_frames(SampleProvenance self, int frames)"""
13823 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13826 r"""get_number_of_frames(SampleProvenance self) -> int"""
13827 return _IMP_core.SampleProvenance_get_number_of_frames(self)
13829 def set_number_of_iterations(self, iterations):
13830 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13831 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13833 def get_number_of_iterations(self):
13834 r"""get_number_of_iterations(SampleProvenance self) -> int"""
13835 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13837 def set_number_of_replicas(self, replicas):
13838 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13839 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13841 def get_number_of_replicas(self):
13842 r"""get_number_of_replicas(SampleProvenance self) -> int"""
13843 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13845 def __init__(self, *args):
13847 __init__(SampleProvenance self) -> SampleProvenance
13848 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13849 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13851 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13854 def get_is_setup(*args):
13856 get_is_setup(Model m, ParticleIndex pi) -> bool
13857 get_is_setup(_ParticleAdaptor p) -> bool
13859 return _IMP_core.SampleProvenance_get_is_setup(*args)
13861 def show(self, *args):
13862 r"""show(SampleProvenance self, _ostream out=std::cout)"""
13863 return _IMP_core.SampleProvenance_show(self, *args)
13866 def setup_particle(*args):
13868 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13869 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13870 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13871 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13872 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13873 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13875 return _IMP_core.SampleProvenance_setup_particle(*args)
13877 def add_attribute(self, *args):
13879 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13880 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13881 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13882 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13883 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13884 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13885 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13886 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13887 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13888 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13889 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13890 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13892 return _IMP_core.SampleProvenance_add_attribute(self, *args)
13894 def get_value(self, *args):
13896 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13897 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13898 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13899 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13900 get_value(SampleProvenance self, StringKey a0) -> IMP::String
13901 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13902 get_value(SampleProvenance self, ObjectKey a0) -> Object
13903 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13904 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13905 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13906 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13908 return _IMP_core.SampleProvenance_get_value(self, *args)
13910 def set_value(self, *args):
13912 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13913 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13914 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13915 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13916 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13917 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13918 set_value(SampleProvenance self, ObjectKey a0, Object a1)
13919 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13920 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13921 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13922 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13924 return _IMP_core.SampleProvenance_set_value(self, *args)
13926 def remove_attribute(self, *args):
13928 remove_attribute(SampleProvenance self, FloatKey a0)
13929 remove_attribute(SampleProvenance self, IntKey a0)
13930 remove_attribute(SampleProvenance self, FloatsKey a0)
13931 remove_attribute(SampleProvenance self, IntsKey a0)
13932 remove_attribute(SampleProvenance self, StringKey a0)
13933 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13934 remove_attribute(SampleProvenance self, ObjectKey a0)
13935 remove_attribute(SampleProvenance self, SparseFloatKey a0)
13936 remove_attribute(SampleProvenance self, SparseIntKey a0)
13937 remove_attribute(SampleProvenance self, SparseStringKey a0)
13938 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13940 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13942 def has_attribute(self, *args):
13944 has_attribute(SampleProvenance self, FloatKey a0) -> bool
13945 has_attribute(SampleProvenance self, IntKey a0) -> bool
13946 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13947 has_attribute(SampleProvenance self, IntsKey a0) -> bool
13948 has_attribute(SampleProvenance self, StringKey a0) -> bool
13949 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13950 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13951 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13952 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13953 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13954 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13956 return _IMP_core.SampleProvenance_has_attribute(self, *args)
13958 def get_derivative(self, a0):
13959 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13960 return _IMP_core.SampleProvenance_get_derivative(self, a0)
13962 def get_name(self):
13963 r"""get_name(SampleProvenance self) -> std::string"""
13964 return _IMP_core.SampleProvenance_get_name(self)
13966 def clear_caches(self):
13967 r"""clear_caches(SampleProvenance self)"""
13968 return _IMP_core.SampleProvenance_clear_caches(self)
13970 def set_name(self, a0):
13971 r"""set_name(SampleProvenance self, std::string a0)"""
13972 return _IMP_core.SampleProvenance_set_name(self, a0)
13975 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13976 return _IMP_core.SampleProvenance_set_check_level(self, a0)
13978 def add_to_derivative(self, a0, a1, a2):
13979 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13980 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13982 def set_is_optimized(self, a0, a1):
13983 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13984 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13986 def get_is_optimized(self, a0):
13987 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13988 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13991 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13992 return _IMP_core.SampleProvenance_get_check_level(self)
13994 def __eq__(self, *args):
13996 __eq__(SampleProvenance self, SampleProvenance o) -> bool
13997 __eq__(SampleProvenance self, Particle d) -> bool
13999 return _IMP_core.SampleProvenance___eq__(self, *args)
14001 def __ne__(self, *args):
14003 __ne__(SampleProvenance self, SampleProvenance o) -> bool
14004 __ne__(SampleProvenance self, Particle d) -> bool
14006 return _IMP_core.SampleProvenance___ne__(self, *args)
14008 def __le__(self, *args):
14010 __le__(SampleProvenance self, SampleProvenance o) -> bool
14011 __le__(SampleProvenance self, Particle d) -> bool
14013 return _IMP_core.SampleProvenance___le__(self, *args)
14015 def __lt__(self, *args):
14017 __lt__(SampleProvenance self, SampleProvenance o) -> bool
14018 __lt__(SampleProvenance self, Particle d) -> bool
14020 return _IMP_core.SampleProvenance___lt__(self, *args)
14022 def __ge__(self, *args):
14024 __ge__(SampleProvenance self, SampleProvenance o) -> bool
14025 __ge__(SampleProvenance self, Particle d) -> bool
14027 return _IMP_core.SampleProvenance___ge__(self, *args)
14029 def __gt__(self, *args):
14031 __gt__(SampleProvenance self, SampleProvenance o) -> bool
14032 __gt__(SampleProvenance self, Particle d) -> bool
14034 return _IMP_core.SampleProvenance___gt__(self, *args)
14036 def __hash__(self):
14037 r"""__hash__(SampleProvenance self) -> std::size_t"""
14038 return _IMP_core.SampleProvenance___hash__(self)
14041 r"""__str__(SampleProvenance self) -> std::string"""
14042 return _IMP_core.SampleProvenance___str__(self)
14044 def __repr__(self):
14045 r"""__repr__(SampleProvenance self) -> std::string"""
14046 return _IMP_core.SampleProvenance___repr__(self)
14048 def _get_as_binary(self):
14049 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14050 return _IMP_core.SampleProvenance__get_as_binary(self)
14052 def _set_from_binary(self, p):
14053 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14054 return _IMP_core.SampleProvenance__set_from_binary(self, p)
14056 def __getstate__(self):
14057 p = self._get_as_binary()
14058 if len(self.__dict__) > 1:
14059 d = self.__dict__.copy()
14064 def __setstate__(self, p):
14065 if not hasattr(self,
'this'):
14067 if isinstance(p, tuple):
14069 self.__dict__.update(d)
14070 return self._set_from_binary(p)
14072 __swig_destroy__ = _IMP_core.delete_SampleProvenance
14075 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14076 class CombineProvenance(Provenance):
14077 r"""Proxy of C++ IMP::core::CombineProvenance class."""
14079 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14081 def set_number_of_frames(self, frames):
14082 r"""set_number_of_frames(CombineProvenance self, int frames)"""
14083 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14086 r"""get_number_of_frames(CombineProvenance self) -> int"""
14087 return _IMP_core.CombineProvenance_get_number_of_frames(self)
14089 def set_number_of_runs(self, runs):
14090 r"""set_number_of_runs(CombineProvenance self, int runs)"""
14091 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14093 def get_number_of_runs(self):
14094 r"""get_number_of_runs(CombineProvenance self) -> int"""
14095 return _IMP_core.CombineProvenance_get_number_of_runs(self)
14097 def __init__(self, *args):
14099 __init__(CombineProvenance self) -> CombineProvenance
14100 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14101 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14103 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14106 def get_is_setup(*args):
14108 get_is_setup(Model m, ParticleIndex pi) -> bool
14109 get_is_setup(_ParticleAdaptor p) -> bool
14111 return _IMP_core.CombineProvenance_get_is_setup(*args)
14113 def show(self, *args):
14114 r"""show(CombineProvenance self, _ostream out=std::cout)"""
14115 return _IMP_core.CombineProvenance_show(self, *args)
14118 def setup_particle(*args):
14120 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14121 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14122 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14123 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14125 return _IMP_core.CombineProvenance_setup_particle(*args)
14127 def add_attribute(self, *args):
14129 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14130 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14131 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14132 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14133 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14134 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14135 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14136 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14137 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14138 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14139 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14140 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14142 return _IMP_core.CombineProvenance_add_attribute(self, *args)
14144 def get_value(self, *args):
14146 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14147 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14148 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14149 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14150 get_value(CombineProvenance self, StringKey a0) -> IMP::String
14151 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14152 get_value(CombineProvenance self, ObjectKey a0) -> Object
14153 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14154 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14155 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14156 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14158 return _IMP_core.CombineProvenance_get_value(self, *args)
14160 def set_value(self, *args):
14162 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14163 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14164 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14165 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14166 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14167 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14168 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14169 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14170 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14171 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14172 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14174 return _IMP_core.CombineProvenance_set_value(self, *args)
14176 def remove_attribute(self, *args):
14178 remove_attribute(CombineProvenance self, FloatKey a0)
14179 remove_attribute(CombineProvenance self, IntKey a0)
14180 remove_attribute(CombineProvenance self, FloatsKey a0)
14181 remove_attribute(CombineProvenance self, IntsKey a0)
14182 remove_attribute(CombineProvenance self, StringKey a0)
14183 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14184 remove_attribute(CombineProvenance self, ObjectKey a0)
14185 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14186 remove_attribute(CombineProvenance self, SparseIntKey a0)
14187 remove_attribute(CombineProvenance self, SparseStringKey a0)
14188 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14190 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14192 def has_attribute(self, *args):
14194 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14195 has_attribute(CombineProvenance self, IntKey a0) -> bool
14196 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14197 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14198 has_attribute(CombineProvenance self, StringKey a0) -> bool
14199 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14200 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14201 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14202 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14203 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14204 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14206 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14208 def get_derivative(self, a0):
14209 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14210 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14212 def get_name(self):
14213 r"""get_name(CombineProvenance self) -> std::string"""
14214 return _IMP_core.CombineProvenance_get_name(self)
14216 def clear_caches(self):
14217 r"""clear_caches(CombineProvenance self)"""
14218 return _IMP_core.CombineProvenance_clear_caches(self)
14220 def set_name(self, a0):
14221 r"""set_name(CombineProvenance self, std::string a0)"""
14222 return _IMP_core.CombineProvenance_set_name(self, a0)
14225 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14226 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14228 def add_to_derivative(self, a0, a1, a2):
14229 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14230 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14232 def set_is_optimized(self, a0, a1):
14233 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14234 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14236 def get_is_optimized(self, a0):
14237 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14238 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14241 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14242 return _IMP_core.CombineProvenance_get_check_level(self)
14244 def __eq__(self, *args):
14246 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14247 __eq__(CombineProvenance self, Particle d) -> bool
14249 return _IMP_core.CombineProvenance___eq__(self, *args)
14251 def __ne__(self, *args):
14253 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14254 __ne__(CombineProvenance self, Particle d) -> bool
14256 return _IMP_core.CombineProvenance___ne__(self, *args)
14258 def __le__(self, *args):
14260 __le__(CombineProvenance self, CombineProvenance o) -> bool
14261 __le__(CombineProvenance self, Particle d) -> bool
14263 return _IMP_core.CombineProvenance___le__(self, *args)
14265 def __lt__(self, *args):
14267 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14268 __lt__(CombineProvenance self, Particle d) -> bool
14270 return _IMP_core.CombineProvenance___lt__(self, *args)
14272 def __ge__(self, *args):
14274 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14275 __ge__(CombineProvenance self, Particle d) -> bool
14277 return _IMP_core.CombineProvenance___ge__(self, *args)
14279 def __gt__(self, *args):
14281 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14282 __gt__(CombineProvenance self, Particle d) -> bool
14284 return _IMP_core.CombineProvenance___gt__(self, *args)
14286 def __hash__(self):
14287 r"""__hash__(CombineProvenance self) -> std::size_t"""
14288 return _IMP_core.CombineProvenance___hash__(self)
14291 r"""__str__(CombineProvenance self) -> std::string"""
14292 return _IMP_core.CombineProvenance___str__(self)
14294 def __repr__(self):
14295 r"""__repr__(CombineProvenance self) -> std::string"""
14296 return _IMP_core.CombineProvenance___repr__(self)
14298 def _get_as_binary(self):
14299 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14300 return _IMP_core.CombineProvenance__get_as_binary(self)
14302 def _set_from_binary(self, p):
14303 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14304 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14306 def __getstate__(self):
14307 p = self._get_as_binary()
14308 if len(self.__dict__) > 1:
14309 d = self.__dict__.copy()
14314 def __setstate__(self, p):
14315 if not hasattr(self,
'this'):
14317 if isinstance(p, tuple):
14319 self.__dict__.update(d)
14320 return self._set_from_binary(p)
14322 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14325 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14326 class FilterProvenance(Provenance):
14327 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14329 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14331 def set_method(self, method):
14332 r"""set_method(FilterProvenance self, std::string method)"""
14333 return _IMP_core.FilterProvenance_set_method(self, method)
14335 def get_method(self):
14336 r"""get_method(FilterProvenance self) -> std::string"""
14337 return _IMP_core.FilterProvenance_get_method(self)
14339 def set_number_of_frames(self, frames):
14340 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14341 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14344 r"""get_number_of_frames(FilterProvenance self) -> int"""
14345 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14347 def set_threshold(self, threshold):
14348 r"""set_threshold(FilterProvenance self, double threshold)"""
14349 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14351 def get_threshold(self):
14352 r"""get_threshold(FilterProvenance self) -> double"""
14353 return _IMP_core.FilterProvenance_get_threshold(self)
14355 def __init__(self, *args):
14357 __init__(FilterProvenance self) -> FilterProvenance
14358 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14359 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14361 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14364 def get_is_setup(*args):
14366 get_is_setup(Model m, ParticleIndex pi) -> bool
14367 get_is_setup(_ParticleAdaptor p) -> bool
14369 return _IMP_core.FilterProvenance_get_is_setup(*args)
14371 def show(self, *args):
14372 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14373 return _IMP_core.FilterProvenance_show(self, *args)
14376 def setup_particle(*args):
14378 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14379 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14380 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14381 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14383 return _IMP_core.FilterProvenance_setup_particle(*args)
14385 def add_attribute(self, *args):
14387 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14388 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14389 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14390 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14391 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14392 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14393 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14394 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14395 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14396 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14397 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14398 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14400 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14402 def get_value(self, *args):
14404 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14405 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14406 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14407 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14408 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14409 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14410 get_value(FilterProvenance self, ObjectKey a0) -> Object
14411 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14412 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14413 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14414 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14416 return _IMP_core.FilterProvenance_get_value(self, *args)
14418 def set_value(self, *args):
14420 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14421 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14422 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14423 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14424 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14425 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14426 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14427 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14428 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14429 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14430 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14432 return _IMP_core.FilterProvenance_set_value(self, *args)
14434 def remove_attribute(self, *args):
14436 remove_attribute(FilterProvenance self, FloatKey a0)
14437 remove_attribute(FilterProvenance self, IntKey a0)
14438 remove_attribute(FilterProvenance self, FloatsKey a0)
14439 remove_attribute(FilterProvenance self, IntsKey a0)
14440 remove_attribute(FilterProvenance self, StringKey a0)
14441 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14442 remove_attribute(FilterProvenance self, ObjectKey a0)
14443 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14444 remove_attribute(FilterProvenance self, SparseIntKey a0)
14445 remove_attribute(FilterProvenance self, SparseStringKey a0)
14446 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14448 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14450 def has_attribute(self, *args):
14452 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14453 has_attribute(FilterProvenance self, IntKey a0) -> bool
14454 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14455 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14456 has_attribute(FilterProvenance self, StringKey a0) -> bool
14457 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14458 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14459 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14460 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14461 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14462 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14464 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14466 def get_derivative(self, a0):
14467 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14468 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14470 def get_name(self):
14471 r"""get_name(FilterProvenance self) -> std::string"""
14472 return _IMP_core.FilterProvenance_get_name(self)
14474 def clear_caches(self):
14475 r"""clear_caches(FilterProvenance self)"""
14476 return _IMP_core.FilterProvenance_clear_caches(self)
14478 def set_name(self, a0):
14479 r"""set_name(FilterProvenance self, std::string a0)"""
14480 return _IMP_core.FilterProvenance_set_name(self, a0)
14483 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14484 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14486 def add_to_derivative(self, a0, a1, a2):
14487 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14488 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14490 def set_is_optimized(self, a0, a1):
14491 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14492 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14494 def get_is_optimized(self, a0):
14495 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14496 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14499 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14500 return _IMP_core.FilterProvenance_get_check_level(self)
14502 def __eq__(self, *args):
14504 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14505 __eq__(FilterProvenance self, Particle d) -> bool
14507 return _IMP_core.FilterProvenance___eq__(self, *args)
14509 def __ne__(self, *args):
14511 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14512 __ne__(FilterProvenance self, Particle d) -> bool
14514 return _IMP_core.FilterProvenance___ne__(self, *args)
14516 def __le__(self, *args):
14518 __le__(FilterProvenance self, FilterProvenance o) -> bool
14519 __le__(FilterProvenance self, Particle d) -> bool
14521 return _IMP_core.FilterProvenance___le__(self, *args)
14523 def __lt__(self, *args):
14525 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14526 __lt__(FilterProvenance self, Particle d) -> bool
14528 return _IMP_core.FilterProvenance___lt__(self, *args)
14530 def __ge__(self, *args):
14532 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14533 __ge__(FilterProvenance self, Particle d) -> bool
14535 return _IMP_core.FilterProvenance___ge__(self, *args)
14537 def __gt__(self, *args):
14539 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14540 __gt__(FilterProvenance self, Particle d) -> bool
14542 return _IMP_core.FilterProvenance___gt__(self, *args)
14544 def __hash__(self):
14545 r"""__hash__(FilterProvenance self) -> std::size_t"""
14546 return _IMP_core.FilterProvenance___hash__(self)
14549 r"""__str__(FilterProvenance self) -> std::string"""
14550 return _IMP_core.FilterProvenance___str__(self)
14552 def __repr__(self):
14553 r"""__repr__(FilterProvenance self) -> std::string"""
14554 return _IMP_core.FilterProvenance___repr__(self)
14556 def _get_as_binary(self):
14557 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14558 return _IMP_core.FilterProvenance__get_as_binary(self)
14560 def _set_from_binary(self, p):
14561 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14562 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14564 def __getstate__(self):
14565 p = self._get_as_binary()
14566 if len(self.__dict__) > 1:
14567 d = self.__dict__.copy()
14572 def __setstate__(self, p):
14573 if not hasattr(self,
'this'):
14575 if isinstance(p, tuple):
14577 self.__dict__.update(d)
14578 return self._set_from_binary(p)
14580 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14583 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14584 class ClusterProvenance(Provenance):
14585 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14587 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14589 def set_number_of_members(self, members):
14590 r"""set_number_of_members(ClusterProvenance self, int members)"""
14591 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14593 def get_number_of_members(self):
14594 r"""get_number_of_members(ClusterProvenance self) -> int"""
14595 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14597 def set_precision(self, precision):
14598 r"""set_precision(ClusterProvenance self, double precision)"""
14599 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14601 def get_precision(self):
14602 r"""get_precision(ClusterProvenance self) -> double"""
14603 return _IMP_core.ClusterProvenance_get_precision(self)
14605 def set_density(self, density):
14606 r"""set_density(ClusterProvenance self, std::string density)"""
14607 return _IMP_core.ClusterProvenance_set_density(self, density)
14609 def get_density(self):
14610 r"""get_density(ClusterProvenance self) -> std::string"""
14611 return _IMP_core.ClusterProvenance_get_density(self)
14613 def __init__(self, *args):
14615 __init__(ClusterProvenance self) -> ClusterProvenance
14616 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14617 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14619 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14622 def get_is_setup(*args):
14624 get_is_setup(Model m, ParticleIndex pi) -> bool
14625 get_is_setup(_ParticleAdaptor p) -> bool
14627 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14629 def show(self, *args):
14630 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14631 return _IMP_core.ClusterProvenance_show(self, *args)
14634 def setup_particle(*args):
14636 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14637 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14638 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14639 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14640 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14641 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14642 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14643 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14645 return _IMP_core.ClusterProvenance_setup_particle(*args)
14647 def add_attribute(self, *args):
14649 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14650 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14651 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14652 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14653 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14654 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14655 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14656 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14657 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14658 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14659 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14660 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14662 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14664 def get_value(self, *args):
14666 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14667 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14668 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14669 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14670 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14671 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14672 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14673 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14674 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14675 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14676 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14678 return _IMP_core.ClusterProvenance_get_value(self, *args)
14680 def set_value(self, *args):
14682 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14683 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14684 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14685 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14686 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14687 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14688 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14689 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14690 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14691 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14692 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14694 return _IMP_core.ClusterProvenance_set_value(self, *args)
14696 def remove_attribute(self, *args):
14698 remove_attribute(ClusterProvenance self, FloatKey a0)
14699 remove_attribute(ClusterProvenance self, IntKey a0)
14700 remove_attribute(ClusterProvenance self, FloatsKey a0)
14701 remove_attribute(ClusterProvenance self, IntsKey a0)
14702 remove_attribute(ClusterProvenance self, StringKey a0)
14703 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14704 remove_attribute(ClusterProvenance self, ObjectKey a0)
14705 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14706 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14707 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14708 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14710 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14712 def has_attribute(self, *args):
14714 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14715 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14716 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14717 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14718 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14719 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14720 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14721 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14722 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14723 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14724 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14726 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14728 def get_derivative(self, a0):
14729 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14730 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14732 def get_name(self):
14733 r"""get_name(ClusterProvenance self) -> std::string"""
14734 return _IMP_core.ClusterProvenance_get_name(self)
14736 def clear_caches(self):
14737 r"""clear_caches(ClusterProvenance self)"""
14738 return _IMP_core.ClusterProvenance_clear_caches(self)
14740 def set_name(self, a0):
14741 r"""set_name(ClusterProvenance self, std::string a0)"""
14742 return _IMP_core.ClusterProvenance_set_name(self, a0)
14745 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14746 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14748 def add_to_derivative(self, a0, a1, a2):
14749 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14750 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14752 def set_is_optimized(self, a0, a1):
14753 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14754 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14756 def get_is_optimized(self, a0):
14757 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14758 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14761 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14762 return _IMP_core.ClusterProvenance_get_check_level(self)
14764 def __eq__(self, *args):
14766 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14767 __eq__(ClusterProvenance self, Particle d) -> bool
14769 return _IMP_core.ClusterProvenance___eq__(self, *args)
14771 def __ne__(self, *args):
14773 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14774 __ne__(ClusterProvenance self, Particle d) -> bool
14776 return _IMP_core.ClusterProvenance___ne__(self, *args)
14778 def __le__(self, *args):
14780 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14781 __le__(ClusterProvenance self, Particle d) -> bool
14783 return _IMP_core.ClusterProvenance___le__(self, *args)
14785 def __lt__(self, *args):
14787 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14788 __lt__(ClusterProvenance self, Particle d) -> bool
14790 return _IMP_core.ClusterProvenance___lt__(self, *args)
14792 def __ge__(self, *args):
14794 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14795 __ge__(ClusterProvenance self, Particle d) -> bool
14797 return _IMP_core.ClusterProvenance___ge__(self, *args)
14799 def __gt__(self, *args):
14801 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14802 __gt__(ClusterProvenance self, Particle d) -> bool
14804 return _IMP_core.ClusterProvenance___gt__(self, *args)
14806 def __hash__(self):
14807 r"""__hash__(ClusterProvenance self) -> std::size_t"""
14808 return _IMP_core.ClusterProvenance___hash__(self)
14811 r"""__str__(ClusterProvenance self) -> std::string"""
14812 return _IMP_core.ClusterProvenance___str__(self)
14814 def __repr__(self):
14815 r"""__repr__(ClusterProvenance self) -> std::string"""
14816 return _IMP_core.ClusterProvenance___repr__(self)
14818 def _get_as_binary(self):
14819 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14820 return _IMP_core.ClusterProvenance__get_as_binary(self)
14822 def _set_from_binary(self, p):
14823 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14824 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14826 def __getstate__(self):
14827 p = self._get_as_binary()
14828 if len(self.__dict__) > 1:
14829 d = self.__dict__.copy()
14834 def __setstate__(self, p):
14835 if not hasattr(self,
'this'):
14837 if isinstance(p, tuple):
14839 self.__dict__.update(d)
14840 return self._set_from_binary(p)
14842 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14845 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14846 class ScriptProvenance(Provenance):
14847 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14849 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14851 def set_filename(self, filename):
14852 r"""set_filename(ScriptProvenance self, std::string filename)"""
14853 return _IMP_core.ScriptProvenance_set_filename(self, filename)
14855 def get_filename(self):
14856 r"""get_filename(ScriptProvenance self) -> std::string"""
14857 return _IMP_core.ScriptProvenance_get_filename(self)
14859 def __init__(self, *args):
14861 __init__(ScriptProvenance self) -> ScriptProvenance
14862 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14863 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14865 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14868 def get_is_setup(*args):
14870 get_is_setup(Model m, ParticleIndex pi) -> bool
14871 get_is_setup(_ParticleAdaptor p) -> bool
14873 return _IMP_core.ScriptProvenance_get_is_setup(*args)
14875 def show(self, *args):
14876 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14877 return _IMP_core.ScriptProvenance_show(self, *args)
14880 def setup_particle(*args):
14882 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14883 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14884 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14885 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14887 return _IMP_core.ScriptProvenance_setup_particle(*args)
14889 def add_attribute(self, *args):
14891 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14892 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14893 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14894 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14895 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14896 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14897 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14898 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14899 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14900 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14901 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14902 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14904 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14906 def get_value(self, *args):
14908 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14909 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14910 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14911 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14912 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14913 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14914 get_value(ScriptProvenance self, ObjectKey a0) -> Object
14915 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14916 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14917 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14918 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14920 return _IMP_core.ScriptProvenance_get_value(self, *args)
14922 def set_value(self, *args):
14924 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14925 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14926 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14927 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14928 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14929 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14930 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14931 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14932 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14933 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14934 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14936 return _IMP_core.ScriptProvenance_set_value(self, *args)
14938 def remove_attribute(self, *args):
14940 remove_attribute(ScriptProvenance self, FloatKey a0)
14941 remove_attribute(ScriptProvenance self, IntKey a0)
14942 remove_attribute(ScriptProvenance self, FloatsKey a0)
14943 remove_attribute(ScriptProvenance self, IntsKey a0)
14944 remove_attribute(ScriptProvenance self, StringKey a0)
14945 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14946 remove_attribute(ScriptProvenance self, ObjectKey a0)
14947 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14948 remove_attribute(ScriptProvenance self, SparseIntKey a0)
14949 remove_attribute(ScriptProvenance self, SparseStringKey a0)
14950 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14952 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14954 def has_attribute(self, *args):
14956 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14957 has_attribute(ScriptProvenance self, IntKey a0) -> bool
14958 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14959 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14960 has_attribute(ScriptProvenance self, StringKey a0) -> bool
14961 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14962 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14963 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14964 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14965 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14966 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14968 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14970 def get_derivative(self, a0):
14971 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14972 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14974 def get_name(self):
14975 r"""get_name(ScriptProvenance self) -> std::string"""
14976 return _IMP_core.ScriptProvenance_get_name(self)
14978 def clear_caches(self):
14979 r"""clear_caches(ScriptProvenance self)"""
14980 return _IMP_core.ScriptProvenance_clear_caches(self)
14982 def set_name(self, a0):
14983 r"""set_name(ScriptProvenance self, std::string a0)"""
14984 return _IMP_core.ScriptProvenance_set_name(self, a0)
14987 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14988 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14990 def add_to_derivative(self, a0, a1, a2):
14991 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14992 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14994 def set_is_optimized(self, a0, a1):
14995 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14996 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14998 def get_is_optimized(self, a0):
14999 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15000 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15003 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15004 return _IMP_core.ScriptProvenance_get_check_level(self)
15006 def __eq__(self, *args):
15008 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15009 __eq__(ScriptProvenance self, Particle d) -> bool
15011 return _IMP_core.ScriptProvenance___eq__(self, *args)
15013 def __ne__(self, *args):
15015 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15016 __ne__(ScriptProvenance self, Particle d) -> bool
15018 return _IMP_core.ScriptProvenance___ne__(self, *args)
15020 def __le__(self, *args):
15022 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15023 __le__(ScriptProvenance self, Particle d) -> bool
15025 return _IMP_core.ScriptProvenance___le__(self, *args)
15027 def __lt__(self, *args):
15029 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15030 __lt__(ScriptProvenance self, Particle d) -> bool
15032 return _IMP_core.ScriptProvenance___lt__(self, *args)
15034 def __ge__(self, *args):
15036 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15037 __ge__(ScriptProvenance self, Particle d) -> bool
15039 return _IMP_core.ScriptProvenance___ge__(self, *args)
15041 def __gt__(self, *args):
15043 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15044 __gt__(ScriptProvenance self, Particle d) -> bool
15046 return _IMP_core.ScriptProvenance___gt__(self, *args)
15048 def __hash__(self):
15049 r"""__hash__(ScriptProvenance self) -> std::size_t"""
15050 return _IMP_core.ScriptProvenance___hash__(self)
15053 r"""__str__(ScriptProvenance self) -> std::string"""
15054 return _IMP_core.ScriptProvenance___str__(self)
15056 def __repr__(self):
15057 r"""__repr__(ScriptProvenance self) -> std::string"""
15058 return _IMP_core.ScriptProvenance___repr__(self)
15060 def _get_as_binary(self):
15061 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15062 return _IMP_core.ScriptProvenance__get_as_binary(self)
15064 def _set_from_binary(self, p):
15065 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15066 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15068 def __getstate__(self):
15069 p = self._get_as_binary()
15070 if len(self.__dict__) > 1:
15071 d = self.__dict__.copy()
15076 def __setstate__(self, p):
15077 if not hasattr(self,
'this'):
15079 if isinstance(p, tuple):
15081 self.__dict__.update(d)
15082 return self._set_from_binary(p)
15084 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15087 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15088 class SoftwareProvenance(Provenance):
15089 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15091 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15093 def set_software_name(self, name):
15094 r"""set_software_name(SoftwareProvenance self, std::string name)"""
15095 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15097 def get_software_name(self):
15098 r"""get_software_name(SoftwareProvenance self) -> std::string"""
15099 return _IMP_core.SoftwareProvenance_get_software_name(self)
15101 def set_version(self, version):
15102 r"""set_version(SoftwareProvenance self, std::string version)"""
15103 return _IMP_core.SoftwareProvenance_set_version(self, version)
15105 def get_version(self):
15106 r"""get_version(SoftwareProvenance self) -> std::string"""
15107 return _IMP_core.SoftwareProvenance_get_version(self)
15109 def set_location(self, location):
15110 r"""set_location(SoftwareProvenance self, std::string location)"""
15111 return _IMP_core.SoftwareProvenance_set_location(self, location)
15113 def get_location(self):
15114 r"""get_location(SoftwareProvenance self) -> std::string"""
15115 return _IMP_core.SoftwareProvenance_get_location(self)
15117 def __init__(self, *args):
15119 __init__(SoftwareProvenance self) -> SoftwareProvenance
15120 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15121 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15123 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15126 def get_is_setup(*args):
15128 get_is_setup(Model m, ParticleIndex pi) -> bool
15129 get_is_setup(_ParticleAdaptor p) -> bool
15131 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15133 def show(self, *args):
15134 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15135 return _IMP_core.SoftwareProvenance_show(self, *args)
15138 def setup_particle(*args):
15140 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15141 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15142 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15143 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15145 return _IMP_core.SoftwareProvenance_setup_particle(*args)
15147 def add_attribute(self, *args):
15149 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15150 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15151 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15152 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15153 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15154 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15155 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15156 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15157 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15158 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15159 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15160 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15162 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15164 def get_value(self, *args):
15166 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15167 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15168 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15169 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15170 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15171 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15172 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15173 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15174 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15175 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15176 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15178 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15180 def set_value(self, *args):
15182 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15183 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15184 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15185 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15186 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15187 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15188 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15189 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15190 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15191 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15192 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15194 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15196 def remove_attribute(self, *args):
15198 remove_attribute(SoftwareProvenance self, FloatKey a0)
15199 remove_attribute(SoftwareProvenance self, IntKey a0)
15200 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15201 remove_attribute(SoftwareProvenance self, IntsKey a0)
15202 remove_attribute(SoftwareProvenance self, StringKey a0)
15203 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15204 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15205 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15206 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15207 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15208 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15210 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15212 def has_attribute(self, *args):
15214 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15215 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15216 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15217 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15218 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15219 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15220 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15221 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15222 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15223 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15224 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15226 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15228 def get_derivative(self, a0):
15229 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15230 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15232 def get_name(self):
15233 r"""get_name(SoftwareProvenance self) -> std::string"""
15234 return _IMP_core.SoftwareProvenance_get_name(self)
15236 def clear_caches(self):
15237 r"""clear_caches(SoftwareProvenance self)"""
15238 return _IMP_core.SoftwareProvenance_clear_caches(self)
15240 def set_name(self, a0):
15241 r"""set_name(SoftwareProvenance self, std::string a0)"""
15242 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15245 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15246 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15248 def add_to_derivative(self, a0, a1, a2):
15249 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15250 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15252 def set_is_optimized(self, a0, a1):
15253 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15254 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15256 def get_is_optimized(self, a0):
15257 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15258 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15261 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15262 return _IMP_core.SoftwareProvenance_get_check_level(self)
15264 def __eq__(self, *args):
15266 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15267 __eq__(SoftwareProvenance self, Particle d) -> bool
15269 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15271 def __ne__(self, *args):
15273 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15274 __ne__(SoftwareProvenance self, Particle d) -> bool
15276 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15278 def __le__(self, *args):
15280 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15281 __le__(SoftwareProvenance self, Particle d) -> bool
15283 return _IMP_core.SoftwareProvenance___le__(self, *args)
15285 def __lt__(self, *args):
15287 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15288 __lt__(SoftwareProvenance self, Particle d) -> bool
15290 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15292 def __ge__(self, *args):
15294 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15295 __ge__(SoftwareProvenance self, Particle d) -> bool
15297 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15299 def __gt__(self, *args):
15301 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15302 __gt__(SoftwareProvenance self, Particle d) -> bool
15304 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15306 def __hash__(self):
15307 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15308 return _IMP_core.SoftwareProvenance___hash__(self)
15311 r"""__str__(SoftwareProvenance self) -> std::string"""
15312 return _IMP_core.SoftwareProvenance___str__(self)
15314 def __repr__(self):
15315 r"""__repr__(SoftwareProvenance self) -> std::string"""
15316 return _IMP_core.SoftwareProvenance___repr__(self)
15318 def _get_as_binary(self):
15319 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15320 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15322 def _set_from_binary(self, p):
15323 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15324 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15326 def __getstate__(self):
15327 p = self._get_as_binary()
15328 if len(self.__dict__) > 1:
15329 d = self.__dict__.copy()
15334 def __setstate__(self, p):
15335 if not hasattr(self,
'this'):
15337 if isinstance(p, tuple):
15339 self.__dict__.update(d)
15340 return self._set_from_binary(p)
15342 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15345 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15347 r"""Proxy of C++ IMP::core::Provenanced class."""
15349 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15351 def get_provenance(self):
15352 r"""get_provenance(Provenanced self) -> Provenance"""
15353 return _IMP_core.Provenanced_get_provenance(self)
15355 def set_provenance(self, p):
15356 r"""set_provenance(Provenanced self, Provenance p)"""
15357 return _IMP_core.Provenanced_set_provenance(self, p)
15359 def __init__(self, *args):
15361 __init__(Provenanced self) -> Provenanced
15362 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15363 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15365 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15368 def get_is_setup(*args):
15370 get_is_setup(Model m, ParticleIndex pi) -> bool
15371 get_is_setup(_ParticleAdaptor p) -> bool
15373 return _IMP_core.Provenanced_get_is_setup(*args)
15375 def show(self, *args):
15376 r"""show(Provenanced self, _ostream out=std::cout)"""
15377 return _IMP_core.Provenanced_show(self, *args)
15380 def setup_particle(*args):
15382 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15383 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15385 return _IMP_core.Provenanced_setup_particle(*args)
15387 def add_attribute(self, *args):
15389 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15390 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15391 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15392 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15393 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15394 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15395 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15396 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15397 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15398 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15399 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15400 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15402 return _IMP_core.Provenanced_add_attribute(self, *args)
15404 def get_value(self, *args):
15406 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15407 get_value(Provenanced self, IntKey a0) -> IMP::Int
15408 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15409 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15410 get_value(Provenanced self, StringKey a0) -> IMP::String
15411 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15412 get_value(Provenanced self, ObjectKey a0) -> Object
15413 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15414 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15415 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15416 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15418 return _IMP_core.Provenanced_get_value(self, *args)
15420 def set_value(self, *args):
15422 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15423 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15424 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15425 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15426 set_value(Provenanced self, StringKey a0, IMP::String a1)
15427 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15428 set_value(Provenanced self, ObjectKey a0, Object a1)
15429 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15430 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15431 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15432 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15434 return _IMP_core.Provenanced_set_value(self, *args)
15436 def remove_attribute(self, *args):
15438 remove_attribute(Provenanced self, FloatKey a0)
15439 remove_attribute(Provenanced self, IntKey a0)
15440 remove_attribute(Provenanced self, FloatsKey a0)
15441 remove_attribute(Provenanced self, IntsKey a0)
15442 remove_attribute(Provenanced self, StringKey a0)
15443 remove_attribute(Provenanced self, ParticleIndexKey a0)
15444 remove_attribute(Provenanced self, ObjectKey a0)
15445 remove_attribute(Provenanced self, SparseFloatKey a0)
15446 remove_attribute(Provenanced self, SparseIntKey a0)
15447 remove_attribute(Provenanced self, SparseStringKey a0)
15448 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15450 return _IMP_core.Provenanced_remove_attribute(self, *args)
15452 def has_attribute(self, *args):
15454 has_attribute(Provenanced self, FloatKey a0) -> bool
15455 has_attribute(Provenanced self, IntKey a0) -> bool
15456 has_attribute(Provenanced self, FloatsKey a0) -> bool
15457 has_attribute(Provenanced self, IntsKey a0) -> bool
15458 has_attribute(Provenanced self, StringKey a0) -> bool
15459 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15460 has_attribute(Provenanced self, ObjectKey a0) -> bool
15461 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15462 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15463 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15464 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15466 return _IMP_core.Provenanced_has_attribute(self, *args)
15468 def get_derivative(self, a0):
15469 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15470 return _IMP_core.Provenanced_get_derivative(self, a0)
15472 def get_name(self):
15473 r"""get_name(Provenanced self) -> std::string"""
15474 return _IMP_core.Provenanced_get_name(self)
15476 def clear_caches(self):
15477 r"""clear_caches(Provenanced self)"""
15478 return _IMP_core.Provenanced_clear_caches(self)
15480 def set_name(self, a0):
15481 r"""set_name(Provenanced self, std::string a0)"""
15482 return _IMP_core.Provenanced_set_name(self, a0)
15485 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15486 return _IMP_core.Provenanced_set_check_level(self, a0)
15488 def add_to_derivative(self, a0, a1, a2):
15489 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15490 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15492 def set_is_optimized(self, a0, a1):
15493 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15494 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15496 def get_is_optimized(self, a0):
15497 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15498 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15501 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15502 return _IMP_core.Provenanced_get_check_level(self)
15504 def __eq__(self, *args):
15506 __eq__(Provenanced self, Provenanced o) -> bool
15507 __eq__(Provenanced self, Particle d) -> bool
15509 return _IMP_core.Provenanced___eq__(self, *args)
15511 def __ne__(self, *args):
15513 __ne__(Provenanced self, Provenanced o) -> bool
15514 __ne__(Provenanced self, Particle d) -> bool
15516 return _IMP_core.Provenanced___ne__(self, *args)
15518 def __le__(self, *args):
15520 __le__(Provenanced self, Provenanced o) -> bool
15521 __le__(Provenanced self, Particle d) -> bool
15523 return _IMP_core.Provenanced___le__(self, *args)
15525 def __lt__(self, *args):
15527 __lt__(Provenanced self, Provenanced o) -> bool
15528 __lt__(Provenanced self, Particle d) -> bool
15530 return _IMP_core.Provenanced___lt__(self, *args)
15532 def __ge__(self, *args):
15534 __ge__(Provenanced self, Provenanced o) -> bool
15535 __ge__(Provenanced self, Particle d) -> bool
15537 return _IMP_core.Provenanced___ge__(self, *args)
15539 def __gt__(self, *args):
15541 __gt__(Provenanced self, Provenanced o) -> bool
15542 __gt__(Provenanced self, Particle d) -> bool
15544 return _IMP_core.Provenanced___gt__(self, *args)
15546 def __hash__(self):
15547 r"""__hash__(Provenanced self) -> std::size_t"""
15548 return _IMP_core.Provenanced___hash__(self)
15551 r"""__str__(Provenanced self) -> std::string"""
15552 return _IMP_core.Provenanced___str__(self)
15554 def __repr__(self):
15555 r"""__repr__(Provenanced self) -> std::string"""
15556 return _IMP_core.Provenanced___repr__(self)
15558 def _get_as_binary(self):
15559 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15560 return _IMP_core.Provenanced__get_as_binary(self)
15562 def _set_from_binary(self, p):
15563 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15564 return _IMP_core.Provenanced__set_from_binary(self, p)
15566 def __getstate__(self):
15567 p = self._get_as_binary()
15568 if len(self.__dict__) > 1:
15569 d = self.__dict__.copy()
15574 def __setstate__(self, p):
15575 if not hasattr(self,
'this'):
15577 if isinstance(p, tuple):
15579 self.__dict__.update(d)
15580 return self._set_from_binary(p)
15582 __swig_destroy__ = _IMP_core.delete_Provenanced
15585 _IMP_core.Provenanced_swigregister(Provenanced)
15588 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15589 return _IMP_core.add_provenance(m, pi, p)
15592 r"""create_clone(Provenance p) -> Provenance"""
15593 return _IMP_core.create_clone(p)
15597 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15598 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
15599 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
15601 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15604 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15605 return _IMP_core.create_restraint(ps, pp)
15607 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15609 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15611 def __init__(self, *args):
15613 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15614 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15616 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15618 def get_version_info(self):
15619 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15620 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15621 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15624 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15625 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15627 def __repr__(self):
15628 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15629 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15633 return _object_cast_to_TruncatedHarmonic(o)
15637 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15639 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > 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__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15646 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15648 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15650 def get_version_info(self):
15651 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15652 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15653 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15656 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15657 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15659 def __repr__(self):
15660 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15661 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15665 return _object_cast_to_TruncatedHarmonic(o)
15669 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15671 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > 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__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15678 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15680 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15682 def get_version_info(self):
15683 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15684 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15685 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15688 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15689 return _IMP_core.TruncatedHarmonicBound___str__(self)
15691 def __repr__(self):
15692 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15693 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15697 return _object_cast_to_TruncatedHarmonic(o)
15701 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15703 r"""Proxy of C++ IMP::Key< 34897493 > 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__(ParticleType self) -> ParticleType
15710 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15711 __init__(ParticleType self, unsigned int i) -> ParticleType
15713 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15717 r"""add_key(std::string sc) -> unsigned int"""
15718 return _IMP_core.ParticleType_add_key(sc)
15721 def get_key_exists(sc):
15722 r"""get_key_exists(std::string sc) -> bool"""
15723 return _IMP_core.ParticleType_get_key_exists(sc)
15725 def get_string(self):
15726 r"""get_string(ParticleType self) -> std::string const"""
15727 return _IMP_core.ParticleType_get_string(self)
15729 def __cmp__(self, o):
15730 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15731 return _IMP_core.ParticleType___cmp__(self, o)
15733 def __eq__(self, o):
15734 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15735 return _IMP_core.ParticleType___eq__(self, o)
15737 def __ne__(self, o):
15738 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15739 return _IMP_core.ParticleType___ne__(self, o)
15741 def __lt__(self, o):
15742 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15743 return _IMP_core.ParticleType___lt__(self, o)
15745 def __gt__(self, o):
15746 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15747 return _IMP_core.ParticleType___gt__(self, o)
15749 def __ge__(self, o):
15750 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15751 return _IMP_core.ParticleType___ge__(self, o)
15753 def __le__(self, o):
15754 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15755 return _IMP_core.ParticleType___le__(self, o)
15757 def __hash__(self):
15758 r"""__hash__(ParticleType self) -> std::size_t"""
15759 return _IMP_core.ParticleType___hash__(self)
15761 def show(self, *args):
15762 r"""show(ParticleType self, _ostream out=std::cout)"""
15763 return _IMP_core.ParticleType_show(self, *args)
15766 def add_alias(old_key, new_name):
15767 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15768 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15771 def get_number_of_keys():
15772 r"""get_number_of_keys() -> unsigned int"""
15773 return _IMP_core.ParticleType_get_number_of_keys()
15776 r"""get_index(ParticleType self) -> unsigned int"""
15777 return _IMP_core.ParticleType_get_index(self)
15781 r"""show_all(_ostream out)"""
15782 return _IMP_core.ParticleType_show_all(out)
15785 def get_all_strings():
15786 r"""get_all_strings() -> IMP::Vector< std::string >"""
15787 return _IMP_core.ParticleType_get_all_strings()
15790 def get_number_unique():
15791 r"""get_number_unique() -> unsigned int"""
15792 return _IMP_core.ParticleType_get_number_unique()
15795 r"""__str__(ParticleType self) -> std::string"""
15796 return _IMP_core.ParticleType___str__(self)
15798 def __repr__(self):
15799 r"""__repr__(ParticleType self) -> std::string"""
15800 return _IMP_core.ParticleType___repr__(self)
15801 __swig_destroy__ = _IMP_core.delete_ParticleType
15804 _IMP_core.ParticleType_swigregister(ParticleType)
15806 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15808 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15809 __repr__ = _swig_repr
15811 def __init__(self, f, k):
15812 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15813 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15815 def do_get_inputs(self, m, pis):
15816 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15817 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15819 def get_unary_function(self):
15820 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15821 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15823 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15824 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"""
15825 return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15827 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15828 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"""
15829 return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15831 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15832 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"""
15833 return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15835 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15836 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"""
15837 return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15839 def get_version_info(self):
15840 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15841 return _IMP_core.AttributeSingletonScore_get_version_info(self)
15842 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15845 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15848 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15849 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15851 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15854 __repr__ = _swig_repr
15856 def __init__(self, f, bb):
15857 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15858 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15860 def do_get_inputs(self, m, pis):
15861 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15862 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15864 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15865 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"""
15866 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15868 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15869 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"""
15870 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15872 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15873 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"""
15874 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15876 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15877 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"""
15878 return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15880 def get_version_info(self):
15881 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15882 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15883 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15886 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15888 def create_bounding_box_3d_singleton_score(f, bb):
15889 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15890 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15892 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15894 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15895 __repr__ = _swig_repr
15897 def __init__(self, f, sphere):
15898 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15899 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15901 def do_get_inputs(self, m, pis):
15902 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15903 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15905 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15906 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"""
15907 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15909 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15910 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"""
15911 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15913 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15914 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"""
15915 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15917 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15918 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"""
15919 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15921 def get_version_info(self):
15922 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15923 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15924 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15927 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15929 def create_bounding_sphere_3d_singleton_score(f, sphere):
15930 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15931 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15933 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15935 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15936 __repr__ = _swig_repr
15938 def __init__(self, *args):
15940 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15941 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15943 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15945 def do_get_inputs(self, m, pis):
15946 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15947 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15949 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15950 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"""
15951 return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15953 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15954 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"""
15955 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15957 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15958 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"""
15959 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15961 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15962 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"""
15963 return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15965 def get_version_info(self):
15966 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15967 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15968 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15970 def _get_as_binary(self):
15971 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15972 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15974 def _set_from_binary(self, p):
15975 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15976 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15978 def __getstate__(self):
15979 p = self._get_as_binary()
15980 if len(self.__dict__) > 1:
15981 d = self.__dict__.copy()
15986 def __setstate__(self, p):
15987 if not hasattr(self,
'this'):
15989 if isinstance(p, tuple):
15991 self.__dict__.update(d)
15992 return self._set_from_binary(p)
15996 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15998 def create_distance_to_singleton_score(f, pt):
15999 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16000 return _IMP_core.create_distance_to_singleton_score(f, pt)
16002 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16003 def __init__(self, uf):
16004 if isinstance(uf, HarmonicUpperBound):
16005 p = HarmonicUpperBoundSphereDistancePairScore(
16006 uf.get_mean(), uf.get_k())
16007 elif isinstance(uf, HarmonicLowerBound):
16008 if uf.get_mean() == 0.0:
16009 p = SoftSpherePairScore(uf.get_k())
16011 p = _SphereDistancePairScore(uf)
16012 elif isinstance(uf, Harmonic):
16013 p = HarmonicSphereDistancePairScore(
16014 uf.get_mean(), uf.get_k())
16016 p = _SphereDistancePairScore(uf)
16017 self.__dict__[
'_proxied'] = p
16018 def __getattr__(self, key):
16019 return getattr(self._proxied, key)
16020 def __setattr__(self, key, val):
16021 return setattr(self._proxied, key, val)
16023 def __getstate__(self):
16024 return self.__dict__[
'_proxied']
16026 def __setstate__(self, p):
16027 self.__dict__[
'_proxied'] = p
16032 p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16035 p = HarmonicSphereDistancePairScore.get_from(o)
16038 p = SoftSpherePairScore.get_from(o)
16040 p = _SphereDistancePairScore.get_from(o)
16041 obj = object.__new__(SphereDistancePairScore)
16042 obj.__dict__[
'_proxied'] = p
16048 CombineProvenance, FilterProvenance,
16049 ClusterProvenance, ScriptProvenance,
16050 SoftwareProvenance]):
16051 """Yield all provenance decorators of the given types for the particle.
16052 By default, all provenance types are returned. Provenance is returned
16053 in order, most recent first. If the particle has no provenance
16054 information, an empty generator is returned."""
16055 if Provenanced.get_is_setup(p):
16059 if c.get_is_setup(prov):
16061 prov = prov.get_previous()
16064 """Tag the given particle with the current Python script.
16065 This is a noop if the particle is already so tagged."""
16066 main = sys.modules[
'__main__']
16068 if not hasattr(main,
'__file__'):
16072 if prov.get_filename() == f:
16076 provp.set_name(
'script')
16077 prov = ScriptProvenance.setup_particle(provp, f)
16081 """Tag the given particle with the software used to create it.
16082 This is a noop if the particle is already so tagged."""
16084 if prov.get_software_name() == name
and prov.get_version() == version \
16085 and prov.get_location() == location:
16089 provp.set_name(
'software')
16090 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16094 """Tag the given particle as being created by the current version of IMP."""
16097 location=
"https://integrativemodeling.org")
16100 def get_module_name():
16101 r"""get_module_name() -> std::string const"""
16102 return _IMP_core.get_module_name()
16105 r"""get_module_version() -> std::string const"""
16106 return _IMP_core.get_module_version()
16109 r"""get_example_path(std::string fname) -> std::string"""
16110 return _IMP_core.get_example_path(fname)
16113 r"""get_data_path(std::string fname) -> std::string"""
16114 return _IMP_core.get_data_path(fname)
16116 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.