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)
1819 """Return a JAX implementation of this mover.
1820 Implement this method in a MonteCarloMover subclass to provide
1821 an equivalent function using [JAX](https://docs.jax.dev/)
1822 that given the random number generator state and the current model
1823 state, returns a proposed new model state and the proposal ratio.
1825 raise NotImplementedError(f
"No JAX implementation for {self}")
1827 __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1828 def __disown__(self):
1830 _IMP_core.disown_MonteCarloMover(self)
1831 return weakref.proxy(self)
1833 def do_destroy(self):
1834 r"""do_destroy(MonteCarloMover self)"""
1835 return _IMP_core.MonteCarloMover_do_destroy(self)
1837 def handle_set_has_required_score_states(self, arg0):
1838 r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1839 return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1841 def do_get_inputs(self):
1842 r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1843 return _IMP_core.MonteCarloMover_do_get_inputs(self)
1845 def do_get_interactions(self):
1846 r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1847 return _IMP_core.MonteCarloMover_do_get_interactions(self)
1850 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1852 r"""Proxy of C++ IMP::core::XYZ class."""
1854 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1857 def get_coordinate_key(i):
1858 r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1859 return _IMP_core.XYZ_get_coordinate_key(i)
1861 def __init__(self, *args):
1863 __init__(XYZ self) -> XYZ
1864 __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1865 __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1867 _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1869 def show(self, *args):
1870 r"""show(XYZ self, _ostream out=std::cout)"""
1871 return _IMP_core.XYZ_show(self, *args)
1874 def setup_particle(*args):
1876 setup_particle(Model m, ParticleIndex pi) -> XYZ
1877 setup_particle(_ParticleAdaptor pa) -> XYZ
1878 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1879 setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1881 return _IMP_core.XYZ_setup_particle(*args)
1884 r"""get_x(XYZ self) -> IMP::Float"""
1885 return _IMP_core.XYZ_get_x(self)
1888 r"""set_x(XYZ self, IMP::Float t)"""
1889 return _IMP_core.XYZ_set_x(self, t)
1892 r"""get_y(XYZ self) -> IMP::Float"""
1893 return _IMP_core.XYZ_get_y(self)
1896 r"""set_y(XYZ self, IMP::Float t)"""
1897 return _IMP_core.XYZ_set_y(self, t)
1900 r"""get_z(XYZ self) -> IMP::Float"""
1901 return _IMP_core.XYZ_get_z(self)
1904 r"""set_z(XYZ self, IMP::Float t)"""
1905 return _IMP_core.XYZ_set_z(self, t)
1907 def set_coordinate(self, i, v):
1908 r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1909 return _IMP_core.XYZ_set_coordinate(self, i, v)
1911 def set_coordinates(self, v):
1912 r"""set_coordinates(XYZ self, Vector3D v)"""
1913 return _IMP_core.XYZ_set_coordinates(self, v)
1915 def get_coordinate(self, i):
1916 r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1917 return _IMP_core.XYZ_get_coordinate(self, i)
1919 def add_to_derivatives(self, v, d):
1920 r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1921 return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1923 def get_coordinates_are_optimized(self):
1924 r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1925 return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1927 def set_coordinates_are_optimized(self, tf):
1928 r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1929 return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1931 def get_vector_to(self, b):
1932 r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1933 return _IMP_core.XYZ_get_vector_to(self, b)
1935 def get_coordinates(self):
1936 r"""get_coordinates(XYZ self) -> Vector3D"""
1937 return _IMP_core.XYZ_get_coordinates(self)
1939 def get_derivatives(self):
1940 r"""get_derivatives(XYZ self) -> Vector3D"""
1941 return _IMP_core.XYZ_get_derivatives(self)
1944 def get_is_setup(*args):
1946 get_is_setup(_ParticleAdaptor p) -> bool
1947 get_is_setup(Model m, ParticleIndex pi) -> bool
1949 return _IMP_core.XYZ_get_is_setup(*args)
1953 r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1954 return _IMP_core.XYZ_get_xyz_keys()
1956 def add_attribute(self, *args):
1958 add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1959 add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1960 add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1961 add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1962 add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1963 add_attribute(XYZ self, StringKey a0, IMP::String a1)
1964 add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1965 add_attribute(XYZ self, ObjectKey a0, Object a1)
1966 add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1967 add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1968 add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1969 add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1971 return _IMP_core.XYZ_add_attribute(self, *args)
1973 def get_value(self, *args):
1975 get_value(XYZ self, FloatKey a0) -> IMP::Float
1976 get_value(XYZ self, IntKey a0) -> IMP::Int
1977 get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1978 get_value(XYZ self, IntsKey a0) -> IMP::Ints
1979 get_value(XYZ self, StringKey a0) -> IMP::String
1980 get_value(XYZ self, ParticleIndexKey a0) -> Particle
1981 get_value(XYZ self, ObjectKey a0) -> Object
1982 get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1983 get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1984 get_value(XYZ self, SparseStringKey a0) -> IMP::String
1985 get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1987 return _IMP_core.XYZ_get_value(self, *args)
1989 def set_value(self, *args):
1991 set_value(XYZ self, FloatKey a0, IMP::Float a1)
1992 set_value(XYZ self, IntKey a0, IMP::Int a1)
1993 set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
1994 set_value(XYZ self, IntsKey a0, IMP::Ints a1)
1995 set_value(XYZ self, StringKey a0, IMP::String a1)
1996 set_value(XYZ self, ParticleIndexKey a0, Particle a1)
1997 set_value(XYZ self, ObjectKey a0, Object a1)
1998 set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
1999 set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2000 set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2001 set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2003 return _IMP_core.XYZ_set_value(self, *args)
2005 def remove_attribute(self, *args):
2007 remove_attribute(XYZ self, FloatKey a0)
2008 remove_attribute(XYZ self, IntKey a0)
2009 remove_attribute(XYZ self, FloatsKey a0)
2010 remove_attribute(XYZ self, IntsKey a0)
2011 remove_attribute(XYZ self, StringKey a0)
2012 remove_attribute(XYZ self, ParticleIndexKey a0)
2013 remove_attribute(XYZ self, ObjectKey a0)
2014 remove_attribute(XYZ self, SparseFloatKey a0)
2015 remove_attribute(XYZ self, SparseIntKey a0)
2016 remove_attribute(XYZ self, SparseStringKey a0)
2017 remove_attribute(XYZ self, SparseParticleIndexKey a0)
2019 return _IMP_core.XYZ_remove_attribute(self, *args)
2021 def has_attribute(self, *args):
2023 has_attribute(XYZ self, FloatKey a0) -> bool
2024 has_attribute(XYZ self, IntKey a0) -> bool
2025 has_attribute(XYZ self, FloatsKey a0) -> bool
2026 has_attribute(XYZ self, IntsKey a0) -> bool
2027 has_attribute(XYZ self, StringKey a0) -> bool
2028 has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2029 has_attribute(XYZ self, ObjectKey a0) -> bool
2030 has_attribute(XYZ self, SparseFloatKey a0) -> bool
2031 has_attribute(XYZ self, SparseIntKey a0) -> bool
2032 has_attribute(XYZ self, SparseStringKey a0) -> bool
2033 has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2035 return _IMP_core.XYZ_has_attribute(self, *args)
2037 def get_derivative(self, *args):
2039 get_derivative(XYZ self, int i) -> IMP::Float
2040 get_derivative(XYZ self, FloatKey a0) -> double
2042 return _IMP_core.XYZ_get_derivative(self, *args)
2045 r"""get_name(XYZ self) -> std::string"""
2046 return _IMP_core.XYZ_get_name(self)
2048 def clear_caches(self):
2049 r"""clear_caches(XYZ self)"""
2050 return _IMP_core.XYZ_clear_caches(self)
2052 def set_name(self, a0):
2053 r"""set_name(XYZ self, std::string a0)"""
2054 return _IMP_core.XYZ_set_name(self, a0)
2057 r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2058 return _IMP_core.XYZ_set_check_level(self, a0)
2060 def add_to_derivative(self, *args):
2062 add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2063 add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2065 return _IMP_core.XYZ_add_to_derivative(self, *args)
2067 def set_is_optimized(self, a0, a1):
2068 r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2069 return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2071 def get_is_optimized(self, a0):
2072 r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2073 return _IMP_core.XYZ_get_is_optimized(self, a0)
2076 r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2077 return _IMP_core.XYZ_get_check_level(self)
2079 def __eq__(self, *args):
2081 __eq__(XYZ self, XYZ o) -> bool
2082 __eq__(XYZ self, Particle d) -> bool
2084 return _IMP_core.XYZ___eq__(self, *args)
2086 def __ne__(self, *args):
2088 __ne__(XYZ self, XYZ o) -> bool
2089 __ne__(XYZ self, Particle d) -> bool
2091 return _IMP_core.XYZ___ne__(self, *args)
2093 def __le__(self, *args):
2095 __le__(XYZ self, XYZ o) -> bool
2096 __le__(XYZ self, Particle d) -> bool
2098 return _IMP_core.XYZ___le__(self, *args)
2100 def __lt__(self, *args):
2102 __lt__(XYZ self, XYZ o) -> bool
2103 __lt__(XYZ self, Particle d) -> bool
2105 return _IMP_core.XYZ___lt__(self, *args)
2107 def __ge__(self, *args):
2109 __ge__(XYZ self, XYZ o) -> bool
2110 __ge__(XYZ self, Particle d) -> bool
2112 return _IMP_core.XYZ___ge__(self, *args)
2114 def __gt__(self, *args):
2116 __gt__(XYZ self, XYZ o) -> bool
2117 __gt__(XYZ self, Particle d) -> bool
2119 return _IMP_core.XYZ___gt__(self, *args)
2122 r"""__hash__(XYZ self) -> std::size_t"""
2123 return _IMP_core.XYZ___hash__(self)
2126 r"""__str__(XYZ self) -> std::string"""
2127 return _IMP_core.XYZ___str__(self)
2130 r"""__repr__(XYZ self) -> std::string"""
2131 return _IMP_core.XYZ___repr__(self)
2133 def _get_as_binary(self):
2134 r"""_get_as_binary(XYZ self) -> PyObject *"""
2135 return _IMP_core.XYZ__get_as_binary(self)
2137 def _set_from_binary(self, p):
2138 r"""_set_from_binary(XYZ self, PyObject * p)"""
2139 return _IMP_core.XYZ__set_from_binary(self, p)
2141 def __getstate__(self):
2142 p = self._get_as_binary()
2143 if len(self.__dict__) > 1:
2144 d = self.__dict__.copy()
2149 def __setstate__(self, p):
2150 if not hasattr(self,
'this'):
2152 if isinstance(p, tuple):
2154 self.__dict__.update(d)
2155 return self._set_from_binary(p)
2157 __swig_destroy__ = _IMP_core.delete_XYZ
2160 _IMP_core.XYZ_swigregister(XYZ)
2163 r"""set_vector_geometry(XYZ d, Vector3D v)"""
2164 return _IMP_core.set_vector_geometry(d, v)
2167 r"""get_vector_geometry(XYZ d) -> Vector3D"""
2168 return _IMP_core.get_vector_geometry(d)
2171 r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2172 return _IMP_core.get_dihedral(a, b, c, d)
2174 r"""Proxy of C++ IMP::core::XYZR class."""
2176 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2178 def __init__(self, *args):
2180 __init__(XYZR self) -> XYZR
2181 __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2182 __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2184 _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2186 def show(self, *args):
2187 r"""show(XYZR self, _ostream out=std::cout)"""
2188 return _IMP_core.XYZR_show(self, *args)
2191 def setup_particle(*args):
2193 setup_particle(Model m, ParticleIndex pi) -> XYZR
2194 setup_particle(_ParticleAdaptor pa) -> XYZR
2195 setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2196 setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2197 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2198 setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2200 return _IMP_core.XYZR_setup_particle(*args)
2203 def get_is_setup(*args):
2205 get_is_setup(_ParticleAdaptor p) -> bool
2206 get_is_setup(Model m, ParticleIndex pi) -> bool
2208 return _IMP_core.XYZR_get_is_setup(*args)
2210 def get_radius(self):
2211 r"""get_radius(XYZR self) -> double"""
2212 return _IMP_core.XYZR_get_radius(self)
2214 def set_radius(self, r):
2215 r"""set_radius(XYZR self, double r)"""
2216 return _IMP_core.XYZR_set_radius(self, r)
2218 def get_sphere(self):
2219 r"""get_sphere(XYZR self) -> Sphere3D"""
2220 return _IMP_core.XYZR_get_sphere(self)
2222 def set_sphere(self, s):
2223 r"""set_sphere(XYZR self, Sphere3D s)"""
2224 return _IMP_core.XYZR_set_sphere(self, s)
2227 def get_radius_key():
2228 r"""get_radius_key() -> FloatKey"""
2229 return _IMP_core.XYZR_get_radius_key()
2231 def add_to_radius_derivative(self, v, d):
2232 r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2233 return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2235 def add_attribute(self, *args):
2237 add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2238 add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2239 add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2240 add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2241 add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2242 add_attribute(XYZR self, StringKey a0, IMP::String a1)
2243 add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2244 add_attribute(XYZR self, ObjectKey a0, Object a1)
2245 add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2246 add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2247 add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2248 add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2250 return _IMP_core.XYZR_add_attribute(self, *args)
2252 def get_value(self, *args):
2254 get_value(XYZR self, FloatKey a0) -> IMP::Float
2255 get_value(XYZR self, IntKey a0) -> IMP::Int
2256 get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2257 get_value(XYZR self, IntsKey a0) -> IMP::Ints
2258 get_value(XYZR self, StringKey a0) -> IMP::String
2259 get_value(XYZR self, ParticleIndexKey a0) -> Particle
2260 get_value(XYZR self, ObjectKey a0) -> Object
2261 get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2262 get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2263 get_value(XYZR self, SparseStringKey a0) -> IMP::String
2264 get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2266 return _IMP_core.XYZR_get_value(self, *args)
2268 def set_value(self, *args):
2270 set_value(XYZR self, FloatKey a0, IMP::Float a1)
2271 set_value(XYZR self, IntKey a0, IMP::Int a1)
2272 set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2273 set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2274 set_value(XYZR self, StringKey a0, IMP::String a1)
2275 set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2276 set_value(XYZR self, ObjectKey a0, Object a1)
2277 set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2278 set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2279 set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2280 set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2282 return _IMP_core.XYZR_set_value(self, *args)
2284 def remove_attribute(self, *args):
2286 remove_attribute(XYZR self, FloatKey a0)
2287 remove_attribute(XYZR self, IntKey a0)
2288 remove_attribute(XYZR self, FloatsKey a0)
2289 remove_attribute(XYZR self, IntsKey a0)
2290 remove_attribute(XYZR self, StringKey a0)
2291 remove_attribute(XYZR self, ParticleIndexKey a0)
2292 remove_attribute(XYZR self, ObjectKey a0)
2293 remove_attribute(XYZR self, SparseFloatKey a0)
2294 remove_attribute(XYZR self, SparseIntKey a0)
2295 remove_attribute(XYZR self, SparseStringKey a0)
2296 remove_attribute(XYZR self, SparseParticleIndexKey a0)
2298 return _IMP_core.XYZR_remove_attribute(self, *args)
2300 def has_attribute(self, *args):
2302 has_attribute(XYZR self, FloatKey a0) -> bool
2303 has_attribute(XYZR self, IntKey a0) -> bool
2304 has_attribute(XYZR self, FloatsKey a0) -> bool
2305 has_attribute(XYZR self, IntsKey a0) -> bool
2306 has_attribute(XYZR self, StringKey a0) -> bool
2307 has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2308 has_attribute(XYZR self, ObjectKey a0) -> bool
2309 has_attribute(XYZR self, SparseFloatKey a0) -> bool
2310 has_attribute(XYZR self, SparseIntKey a0) -> bool
2311 has_attribute(XYZR self, SparseStringKey a0) -> bool
2312 has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2314 return _IMP_core.XYZR_has_attribute(self, *args)
2316 def get_derivative(self, a0):
2317 r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2318 return _IMP_core.XYZR_get_derivative(self, a0)
2321 r"""get_name(XYZR self) -> std::string"""
2322 return _IMP_core.XYZR_get_name(self)
2324 def clear_caches(self):
2325 r"""clear_caches(XYZR self)"""
2326 return _IMP_core.XYZR_clear_caches(self)
2328 def set_name(self, a0):
2329 r"""set_name(XYZR self, std::string a0)"""
2330 return _IMP_core.XYZR_set_name(self, a0)
2333 r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2334 return _IMP_core.XYZR_set_check_level(self, a0)
2336 def add_to_derivative(self, a0, a1, a2):
2337 r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2338 return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2340 def set_is_optimized(self, a0, a1):
2341 r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2342 return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2344 def get_is_optimized(self, a0):
2345 r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2346 return _IMP_core.XYZR_get_is_optimized(self, a0)
2349 r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2350 return _IMP_core.XYZR_get_check_level(self)
2352 def __eq__(self, *args):
2354 __eq__(XYZR self, XYZR o) -> bool
2355 __eq__(XYZR self, Particle d) -> bool
2357 return _IMP_core.XYZR___eq__(self, *args)
2359 def __ne__(self, *args):
2361 __ne__(XYZR self, XYZR o) -> bool
2362 __ne__(XYZR self, Particle d) -> bool
2364 return _IMP_core.XYZR___ne__(self, *args)
2366 def __le__(self, *args):
2368 __le__(XYZR self, XYZR o) -> bool
2369 __le__(XYZR self, Particle d) -> bool
2371 return _IMP_core.XYZR___le__(self, *args)
2373 def __lt__(self, *args):
2375 __lt__(XYZR self, XYZR o) -> bool
2376 __lt__(XYZR self, Particle d) -> bool
2378 return _IMP_core.XYZR___lt__(self, *args)
2380 def __ge__(self, *args):
2382 __ge__(XYZR self, XYZR o) -> bool
2383 __ge__(XYZR self, Particle d) -> bool
2385 return _IMP_core.XYZR___ge__(self, *args)
2387 def __gt__(self, *args):
2389 __gt__(XYZR self, XYZR o) -> bool
2390 __gt__(XYZR self, Particle d) -> bool
2392 return _IMP_core.XYZR___gt__(self, *args)
2395 r"""__hash__(XYZR self) -> std::size_t"""
2396 return _IMP_core.XYZR___hash__(self)
2399 r"""__str__(XYZR self) -> std::string"""
2400 return _IMP_core.XYZR___str__(self)
2403 r"""__repr__(XYZR self) -> std::string"""
2404 return _IMP_core.XYZR___repr__(self)
2406 def _get_as_binary(self):
2407 r"""_get_as_binary(XYZR self) -> PyObject *"""
2408 return _IMP_core.XYZR__get_as_binary(self)
2410 def _set_from_binary(self, p):
2411 r"""_set_from_binary(XYZR self, PyObject * p)"""
2412 return _IMP_core.XYZR__set_from_binary(self, p)
2414 def __getstate__(self):
2415 p = self._get_as_binary()
2416 if len(self.__dict__) > 1:
2417 d = self.__dict__.copy()
2422 def __setstate__(self, p):
2423 if not hasattr(self,
'this'):
2425 if isinstance(p, tuple):
2427 self.__dict__.update(d)
2428 return self._set_from_binary(p)
2430 __swig_destroy__ = _IMP_core.delete_XYZR
2433 _IMP_core.XYZR_swigregister(XYZR)
2436 r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2437 return _IMP_core.set_enclosing_sphere(b, v, slack)
2440 r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2441 return _IMP_core.set_enclosing_radius(b, v)
2444 r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2445 return _IMP_core.get_enclosing_sphere(v)
2448 r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2449 return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2451 r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2453 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2455 def __init__(self, *args):
2457 __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2458 __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2460 _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2462 def get_version_info(self):
2463 r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2464 return _IMP_core.XYZRGeometry_get_version_info(self)
2465 __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2468 r"""__str__(XYZRGeometry self) -> std::string"""
2469 return _IMP_core.XYZRGeometry___str__(self)
2472 r"""__repr__(XYZRGeometry self) -> std::string"""
2473 return _IMP_core.XYZRGeometry___repr__(self)
2477 return _object_cast_to_XYZRGeometry(o)
2481 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2483 r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2485 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2487 def __init__(self, sc):
2488 r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2489 _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2491 def get_version_info(self):
2492 r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2493 return _IMP_core.XYZRsGeometry_get_version_info(self)
2494 __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2497 r"""__str__(XYZRsGeometry self) -> std::string"""
2498 return _IMP_core.XYZRsGeometry___str__(self)
2501 r"""__repr__(XYZRsGeometry self) -> std::string"""
2502 return _IMP_core.XYZRsGeometry___repr__(self)
2506 return _object_cast_to_XYZRsGeometry(o)
2510 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2512 r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2514 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2516 def __init__(self, *args):
2518 __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2519 __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2521 _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2523 def get_version_info(self):
2524 r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2525 return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2526 __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2529 r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2530 return _IMP_core.XYZDerivativeGeometry___str__(self)
2533 r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2534 return _IMP_core.XYZDerivativeGeometry___repr__(self)
2538 return _object_cast_to_XYZDerivativeGeometry(o)
2542 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2544 r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2546 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2548 def __init__(self, sc):
2549 r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2550 _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2552 def get_version_info(self):
2553 r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2554 return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2555 __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2558 r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2559 return _IMP_core.XYZDerivativesGeometry___str__(self)
2562 r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2563 return _IMP_core.XYZDerivativesGeometry___repr__(self)
2567 return _object_cast_to_XYZDerivativesGeometry(o)
2571 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2573 r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2575 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2577 def __init__(self, pp):
2578 r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2579 _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2581 def get_version_info(self):
2582 r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2583 return _IMP_core.EdgePairGeometry_get_version_info(self)
2584 __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2587 r"""__str__(EdgePairGeometry self) -> std::string"""
2588 return _IMP_core.EdgePairGeometry___str__(self)
2591 r"""__repr__(EdgePairGeometry self) -> std::string"""
2592 return _IMP_core.EdgePairGeometry___repr__(self)
2596 return _object_cast_to_EdgePairGeometry(o)
2600 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2602 r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2604 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2606 def __init__(self, sc):
2607 r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2608 _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2610 def get_version_info(self):
2611 r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2612 return _IMP_core.EdgePairsGeometry_get_version_info(self)
2613 __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2616 r"""__str__(EdgePairsGeometry self) -> std::string"""
2617 return _IMP_core.EdgePairsGeometry___str__(self)
2620 r"""__repr__(EdgePairsGeometry self) -> std::string"""
2621 return _IMP_core.EdgePairsGeometry___repr__(self)
2625 return _object_cast_to_EdgePairsGeometry(o)
2629 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2631 r"""Proxy of C++ IMP::core::Direction class."""
2633 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2636 def do_setup_particle(m, pi, v):
2637 r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2638 return _IMP_core.Direction_do_setup_particle(m, pi, v)
2640 def __init__(self, *args):
2642 __init__(Direction self) -> Direction
2643 __init__(Direction self, Model m, ParticleIndex id) -> Direction
2644 __init__(Direction self, _ParticleAdaptor d) -> Direction
2646 _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2648 def show(self, *args):
2649 r"""show(Direction self, _ostream out=std::cout)"""
2650 return _IMP_core.Direction_show(self, *args)
2653 def setup_particle(*args):
2655 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2656 setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2658 return _IMP_core.Direction_setup_particle(*args)
2661 def get_is_setup(*args):
2663 get_is_setup(_ParticleAdaptor p) -> bool
2664 get_is_setup(Model m, ParticleIndex pi) -> bool
2666 return _IMP_core.Direction_get_is_setup(*args)
2669 def get_direction_key(i):
2670 r"""get_direction_key(unsigned int i) -> FloatKey"""
2671 return _IMP_core.Direction_get_direction_key(i)
2673 def get_direction_derivative(self, i):
2674 r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2675 return _IMP_core.Direction_get_direction_derivative(self, i)
2677 def get_direction_derivatives(self):
2678 r"""get_direction_derivatives(Direction self) -> Vector3D"""
2679 return _IMP_core.Direction_get_direction_derivatives(self)
2681 def add_to_direction_derivative(self, i, v, d):
2682 r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2683 return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2685 def add_to_direction_derivatives(self, v, d):
2686 r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2687 return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2689 def get_direction_is_optimized(self):
2690 r"""get_direction_is_optimized(Direction self) -> bool"""
2691 return _IMP_core.Direction_get_direction_is_optimized(self)
2693 def set_direction_is_optimized(self, tf):
2694 r"""set_direction_is_optimized(Direction self, bool tf)"""
2695 return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2697 def get_direction(self):
2698 r"""get_direction(Direction self) -> Vector3D"""
2699 return _IMP_core.Direction_get_direction(self)
2701 def set_direction(self, v):
2702 r"""set_direction(Direction self, Vector3D v)"""
2703 return _IMP_core.Direction_set_direction(self, v)
2706 r"""reflect(Direction self)"""
2707 return _IMP_core.Direction_reflect(self)
2709 def add_attribute(self, *args):
2711 add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2712 add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2713 add_attribute(Direction self, IntKey a0, IMP::Int a1)
2714 add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2715 add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2716 add_attribute(Direction self, StringKey a0, IMP::String a1)
2717 add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2718 add_attribute(Direction self, ObjectKey a0, Object a1)
2719 add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2720 add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2721 add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2722 add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2724 return _IMP_core.Direction_add_attribute(self, *args)
2726 def get_value(self, *args):
2728 get_value(Direction self, FloatKey a0) -> IMP::Float
2729 get_value(Direction self, IntKey a0) -> IMP::Int
2730 get_value(Direction self, FloatsKey a0) -> IMP::Floats
2731 get_value(Direction self, IntsKey a0) -> IMP::Ints
2732 get_value(Direction self, StringKey a0) -> IMP::String
2733 get_value(Direction self, ParticleIndexKey a0) -> Particle
2734 get_value(Direction self, ObjectKey a0) -> Object
2735 get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2736 get_value(Direction self, SparseIntKey a0) -> IMP::Int
2737 get_value(Direction self, SparseStringKey a0) -> IMP::String
2738 get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2740 return _IMP_core.Direction_get_value(self, *args)
2742 def set_value(self, *args):
2744 set_value(Direction self, FloatKey a0, IMP::Float a1)
2745 set_value(Direction self, IntKey a0, IMP::Int a1)
2746 set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2747 set_value(Direction self, IntsKey a0, IMP::Ints a1)
2748 set_value(Direction self, StringKey a0, IMP::String a1)
2749 set_value(Direction self, ParticleIndexKey a0, Particle a1)
2750 set_value(Direction self, ObjectKey a0, Object a1)
2751 set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2752 set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2753 set_value(Direction self, SparseStringKey a0, IMP::String a1)
2754 set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2756 return _IMP_core.Direction_set_value(self, *args)
2758 def remove_attribute(self, *args):
2760 remove_attribute(Direction self, FloatKey a0)
2761 remove_attribute(Direction self, IntKey a0)
2762 remove_attribute(Direction self, FloatsKey a0)
2763 remove_attribute(Direction self, IntsKey a0)
2764 remove_attribute(Direction self, StringKey a0)
2765 remove_attribute(Direction self, ParticleIndexKey a0)
2766 remove_attribute(Direction self, ObjectKey a0)
2767 remove_attribute(Direction self, SparseFloatKey a0)
2768 remove_attribute(Direction self, SparseIntKey a0)
2769 remove_attribute(Direction self, SparseStringKey a0)
2770 remove_attribute(Direction self, SparseParticleIndexKey a0)
2772 return _IMP_core.Direction_remove_attribute(self, *args)
2774 def has_attribute(self, *args):
2776 has_attribute(Direction self, FloatKey a0) -> bool
2777 has_attribute(Direction self, IntKey a0) -> bool
2778 has_attribute(Direction self, FloatsKey a0) -> bool
2779 has_attribute(Direction self, IntsKey a0) -> bool
2780 has_attribute(Direction self, StringKey a0) -> bool
2781 has_attribute(Direction self, ParticleIndexKey a0) -> bool
2782 has_attribute(Direction self, ObjectKey a0) -> bool
2783 has_attribute(Direction self, SparseFloatKey a0) -> bool
2784 has_attribute(Direction self, SparseIntKey a0) -> bool
2785 has_attribute(Direction self, SparseStringKey a0) -> bool
2786 has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2788 return _IMP_core.Direction_has_attribute(self, *args)
2790 def get_derivative(self, a0):
2791 r"""get_derivative(Direction self, FloatKey a0) -> double"""
2792 return _IMP_core.Direction_get_derivative(self, a0)
2795 r"""get_name(Direction self) -> std::string"""
2796 return _IMP_core.Direction_get_name(self)
2798 def clear_caches(self):
2799 r"""clear_caches(Direction self)"""
2800 return _IMP_core.Direction_clear_caches(self)
2802 def set_name(self, a0):
2803 r"""set_name(Direction self, std::string a0)"""
2804 return _IMP_core.Direction_set_name(self, a0)
2807 r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2808 return _IMP_core.Direction_set_check_level(self, a0)
2810 def add_to_derivative(self, a0, a1, a2):
2811 r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2812 return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2814 def set_is_optimized(self, a0, a1):
2815 r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2816 return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2818 def get_is_optimized(self, a0):
2819 r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2820 return _IMP_core.Direction_get_is_optimized(self, a0)
2823 r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2824 return _IMP_core.Direction_get_check_level(self)
2826 def __eq__(self, *args):
2828 __eq__(Direction self, Direction o) -> bool
2829 __eq__(Direction self, Particle d) -> bool
2831 return _IMP_core.Direction___eq__(self, *args)
2833 def __ne__(self, *args):
2835 __ne__(Direction self, Direction o) -> bool
2836 __ne__(Direction self, Particle d) -> bool
2838 return _IMP_core.Direction___ne__(self, *args)
2840 def __le__(self, *args):
2842 __le__(Direction self, Direction o) -> bool
2843 __le__(Direction self, Particle d) -> bool
2845 return _IMP_core.Direction___le__(self, *args)
2847 def __lt__(self, *args):
2849 __lt__(Direction self, Direction o) -> bool
2850 __lt__(Direction self, Particle d) -> bool
2852 return _IMP_core.Direction___lt__(self, *args)
2854 def __ge__(self, *args):
2856 __ge__(Direction self, Direction o) -> bool
2857 __ge__(Direction self, Particle d) -> bool
2859 return _IMP_core.Direction___ge__(self, *args)
2861 def __gt__(self, *args):
2863 __gt__(Direction self, Direction o) -> bool
2864 __gt__(Direction self, Particle d) -> bool
2866 return _IMP_core.Direction___gt__(self, *args)
2869 r"""__hash__(Direction self) -> std::size_t"""
2870 return _IMP_core.Direction___hash__(self)
2873 r"""__str__(Direction self) -> std::string"""
2874 return _IMP_core.Direction___str__(self)
2877 r"""__repr__(Direction self) -> std::string"""
2878 return _IMP_core.Direction___repr__(self)
2880 def _get_as_binary(self):
2881 r"""_get_as_binary(Direction self) -> PyObject *"""
2882 return _IMP_core.Direction__get_as_binary(self)
2884 def _set_from_binary(self, p):
2885 r"""_set_from_binary(Direction self, PyObject * p)"""
2886 return _IMP_core.Direction__set_from_binary(self, p)
2888 def __getstate__(self):
2889 p = self._get_as_binary()
2890 if len(self.__dict__) > 1:
2891 d = self.__dict__.copy()
2896 def __setstate__(self, p):
2897 if not hasattr(self,
'this'):
2899 if isinstance(p, tuple):
2901 self.__dict__.update(d)
2902 return self._set_from_binary(p)
2904 __swig_destroy__ = _IMP_core.delete_Direction
2907 _IMP_core.Direction_swigregister(Direction)
2910 r"""get_angle(Direction a, Direction b) -> double"""
2911 return _IMP_core.get_angle(a, b)
2913 r"""Proxy of C++ IMP::core::DirectionAngle class."""
2915 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2917 def __init__(self, *args):
2919 __init__(DirectionAngle self) -> DirectionAngle
2920 __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2921 __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2923 _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2925 def show(self, *args):
2926 r"""show(DirectionAngle self, _ostream out=std::cout)"""
2927 return _IMP_core.DirectionAngle_show(self, *args)
2930 def setup_particle(*args):
2932 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2933 setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2934 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2935 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2937 return _IMP_core.DirectionAngle_setup_particle(*args)
2940 def get_is_setup(*args):
2942 get_is_setup(_ParticleAdaptor p) -> bool
2943 get_is_setup(Model m, ParticleIndex pi) -> bool
2945 return _IMP_core.DirectionAngle_get_is_setup(*args)
2948 def get_angle_key():
2949 r"""get_angle_key() -> FloatKey"""
2950 return _IMP_core.DirectionAngle_get_angle_key()
2953 def get_particle_key(i):
2954 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2955 return _IMP_core.DirectionAngle_get_particle_key(i)
2957 def get_particle(self, *args):
2959 get_particle(DirectionAngle self, unsigned int i) -> Particle
2960 get_particle(DirectionAngle self) -> Particle
2962 return _IMP_core.DirectionAngle_get_particle(self, *args)
2964 def get_particle_index(self, *args):
2966 get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2967 get_particle_index(DirectionAngle self) -> ParticleIndex
2969 return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2972 r"""get_angle(DirectionAngle self) -> IMP::Float"""
2973 return _IMP_core.DirectionAngle_get_angle(self)
2975 def get_angle_derivative(self):
2976 r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2977 return _IMP_core.DirectionAngle_get_angle_derivative(self)
2979 def add_to_angle_derivative(self, v, d):
2980 r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2981 return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2983 def add_attribute(self, *args):
2985 add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2986 add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2987 add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2988 add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2989 add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2990 add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2991 add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2992 add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2993 add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
2994 add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
2995 add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
2996 add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
2998 return _IMP_core.DirectionAngle_add_attribute(self, *args)
3000 def get_value(self, *args):
3002 get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3003 get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3004 get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3005 get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3006 get_value(DirectionAngle self, StringKey a0) -> IMP::String
3007 get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3008 get_value(DirectionAngle self, ObjectKey a0) -> Object
3009 get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3010 get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3011 get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3012 get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3014 return _IMP_core.DirectionAngle_get_value(self, *args)
3016 def set_value(self, *args):
3018 set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3019 set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3020 set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3021 set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3022 set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3023 set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3024 set_value(DirectionAngle self, ObjectKey a0, Object a1)
3025 set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3026 set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3027 set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3028 set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3030 return _IMP_core.DirectionAngle_set_value(self, *args)
3032 def remove_attribute(self, *args):
3034 remove_attribute(DirectionAngle self, FloatKey a0)
3035 remove_attribute(DirectionAngle self, IntKey a0)
3036 remove_attribute(DirectionAngle self, FloatsKey a0)
3037 remove_attribute(DirectionAngle self, IntsKey a0)
3038 remove_attribute(DirectionAngle self, StringKey a0)
3039 remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3040 remove_attribute(DirectionAngle self, ObjectKey a0)
3041 remove_attribute(DirectionAngle self, SparseFloatKey a0)
3042 remove_attribute(DirectionAngle self, SparseIntKey a0)
3043 remove_attribute(DirectionAngle self, SparseStringKey a0)
3044 remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3046 return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3048 def has_attribute(self, *args):
3050 has_attribute(DirectionAngle self, FloatKey a0) -> bool
3051 has_attribute(DirectionAngle self, IntKey a0) -> bool
3052 has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3053 has_attribute(DirectionAngle self, IntsKey a0) -> bool
3054 has_attribute(DirectionAngle self, StringKey a0) -> bool
3055 has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3056 has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3057 has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3058 has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3059 has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3060 has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3062 return _IMP_core.DirectionAngle_has_attribute(self, *args)
3064 def get_derivative(self, a0):
3065 r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3066 return _IMP_core.DirectionAngle_get_derivative(self, a0)
3069 r"""get_name(DirectionAngle self) -> std::string"""
3070 return _IMP_core.DirectionAngle_get_name(self)
3072 def clear_caches(self):
3073 r"""clear_caches(DirectionAngle self)"""
3074 return _IMP_core.DirectionAngle_clear_caches(self)
3076 def set_name(self, a0):
3077 r"""set_name(DirectionAngle self, std::string a0)"""
3078 return _IMP_core.DirectionAngle_set_name(self, a0)
3081 r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3082 return _IMP_core.DirectionAngle_set_check_level(self, a0)
3084 def add_to_derivative(self, a0, a1, a2):
3085 r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3086 return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3088 def set_is_optimized(self, a0, a1):
3089 r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3090 return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3092 def get_is_optimized(self, a0):
3093 r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3094 return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3097 r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3098 return _IMP_core.DirectionAngle_get_check_level(self)
3100 def __eq__(self, *args):
3102 __eq__(DirectionAngle self, DirectionAngle o) -> bool
3103 __eq__(DirectionAngle self, Particle d) -> bool
3105 return _IMP_core.DirectionAngle___eq__(self, *args)
3107 def __ne__(self, *args):
3109 __ne__(DirectionAngle self, DirectionAngle o) -> bool
3110 __ne__(DirectionAngle self, Particle d) -> bool
3112 return _IMP_core.DirectionAngle___ne__(self, *args)
3114 def __le__(self, *args):
3116 __le__(DirectionAngle self, DirectionAngle o) -> bool
3117 __le__(DirectionAngle self, Particle d) -> bool
3119 return _IMP_core.DirectionAngle___le__(self, *args)
3121 def __lt__(self, *args):
3123 __lt__(DirectionAngle self, DirectionAngle o) -> bool
3124 __lt__(DirectionAngle self, Particle d) -> bool
3126 return _IMP_core.DirectionAngle___lt__(self, *args)
3128 def __ge__(self, *args):
3130 __ge__(DirectionAngle self, DirectionAngle o) -> bool
3131 __ge__(DirectionAngle self, Particle d) -> bool
3133 return _IMP_core.DirectionAngle___ge__(self, *args)
3135 def __gt__(self, *args):
3137 __gt__(DirectionAngle self, DirectionAngle o) -> bool
3138 __gt__(DirectionAngle self, Particle d) -> bool
3140 return _IMP_core.DirectionAngle___gt__(self, *args)
3143 r"""__hash__(DirectionAngle self) -> std::size_t"""
3144 return _IMP_core.DirectionAngle___hash__(self)
3147 r"""__str__(DirectionAngle self) -> std::string"""
3148 return _IMP_core.DirectionAngle___str__(self)
3151 r"""__repr__(DirectionAngle self) -> std::string"""
3152 return _IMP_core.DirectionAngle___repr__(self)
3154 def _get_as_binary(self):
3155 r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3156 return _IMP_core.DirectionAngle__get_as_binary(self)
3158 def _set_from_binary(self, p):
3159 r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3160 return _IMP_core.DirectionAngle__set_from_binary(self, p)
3162 def __getstate__(self):
3163 p = self._get_as_binary()
3164 if len(self.__dict__) > 1:
3165 d = self.__dict__.copy()
3170 def __setstate__(self, p):
3171 if not hasattr(self,
'this'):
3173 if isinstance(p, tuple):
3175 self.__dict__.update(d)
3176 return self._set_from_binary(p)
3178 __swig_destroy__ = _IMP_core.delete_DirectionAngle
3181 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3183 r"""Proxy of C++ IMP::core::Surface class."""
3185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3188 def do_setup_particle(*args):
3190 do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3191 do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3193 return _IMP_core.Surface_do_setup_particle(*args)
3195 def __init__(self, *args):
3197 __init__(Surface self) -> Surface
3198 __init__(Surface self, Model m, ParticleIndex id) -> Surface
3199 __init__(Surface self, _ParticleAdaptor d) -> Surface
3201 _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3203 def show(self, *args):
3204 r"""show(Surface self, _ostream out=std::cout)"""
3205 return _IMP_core.Surface_show(self, *args)
3208 def setup_particle(*args):
3210 setup_particle(Model m, ParticleIndex pi) -> Surface
3211 setup_particle(_ParticleAdaptor pa) -> Surface
3212 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3213 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3214 setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3215 setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3216 setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3217 setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3219 return _IMP_core.Surface_setup_particle(*args)
3221 def get_normal_x(self):
3222 r"""get_normal_x(Surface self) -> IMP::Float"""
3223 return _IMP_core.Surface_get_normal_x(self)
3225 def set_normal_x(self, t):
3226 r"""set_normal_x(Surface self, IMP::Float t)"""
3227 return _IMP_core.Surface_set_normal_x(self, t)
3229 def get_normal_y(self):
3230 r"""get_normal_y(Surface self) -> IMP::Float"""
3231 return _IMP_core.Surface_get_normal_y(self)
3233 def set_normal_y(self, t):
3234 r"""set_normal_y(Surface self, IMP::Float t)"""
3235 return _IMP_core.Surface_set_normal_y(self, t)
3237 def get_normal_z(self):
3238 r"""get_normal_z(Surface self) -> IMP::Float"""
3239 return _IMP_core.Surface_get_normal_z(self)
3241 def set_normal_z(self, t):
3242 r"""set_normal_z(Surface self, IMP::Float t)"""
3243 return _IMP_core.Surface_set_normal_z(self, t)
3246 def get_is_setup(*args):
3248 get_is_setup(_ParticleAdaptor p) -> bool
3249 get_is_setup(Model m, ParticleIndex pi) -> bool
3251 return _IMP_core.Surface_get_is_setup(*args)
3254 def get_normal_key(i):
3255 r"""get_normal_key(unsigned int i) -> FloatKey"""
3256 return _IMP_core.Surface_get_normal_key(i)
3258 def get_normal_derivative(self, i):
3259 r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3260 return _IMP_core.Surface_get_normal_derivative(self, i)
3262 def get_normal_derivatives(self):
3263 r"""get_normal_derivatives(Surface self) -> Vector3D"""
3264 return _IMP_core.Surface_get_normal_derivatives(self)
3266 def add_to_normal_derivative(self, i, v, d):
3267 r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3268 return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3270 def add_to_normal_derivatives(self, v, d):
3271 r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3272 return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3274 def get_normal_is_optimized(self):
3275 r"""get_normal_is_optimized(Surface self) -> bool"""
3276 return _IMP_core.Surface_get_normal_is_optimized(self)
3278 def set_normal_is_optimized(self, tf):
3279 r"""set_normal_is_optimized(Surface self, bool tf)"""
3280 return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3282 def get_normal(self):
3283 r"""get_normal(Surface self) -> Vector3D"""
3284 return _IMP_core.Surface_get_normal(self)
3286 def set_normal(self, normal):
3287 r"""set_normal(Surface self, Vector3D normal)"""
3288 return _IMP_core.Surface_set_normal(self, normal)
3291 r"""reflect(Surface self)"""
3292 return _IMP_core.Surface_reflect(self)
3295 r"""get_height(Surface self, Vector3D v) -> double"""
3296 return _IMP_core.Surface_get_height(self, v)
3299 r"""get_depth(Surface self, Vector3D v) -> double"""
3300 return _IMP_core.Surface_get_depth(self, v)
3302 def get_distance_to(self, v):
3303 r"""get_distance_to(Surface self, Vector3D v) -> double"""
3304 return _IMP_core.Surface_get_distance_to(self, v)
3306 def get_distance_to_center(self, v):
3307 r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3308 return _IMP_core.Surface_get_distance_to_center(self, v)
3310 def set_reference_frame(self, rf):
3311 r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3312 return _IMP_core.Surface_set_reference_frame(self, rf)
3314 def get_reference_frame(self):
3315 r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3316 return _IMP_core.Surface_get_reference_frame(self)
3318 def get_plane(self):
3319 r"""get_plane(Surface self) -> Plane3D"""
3320 return _IMP_core.Surface_get_plane(self)
3322 def add_attribute(self, *args):
3324 add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3325 add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3326 add_attribute(Surface self, IntKey a0, IMP::Int a1)
3327 add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3328 add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3329 add_attribute(Surface self, StringKey a0, IMP::String a1)
3330 add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3331 add_attribute(Surface self, ObjectKey a0, Object a1)
3332 add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3333 add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3334 add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3335 add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3337 return _IMP_core.Surface_add_attribute(self, *args)
3339 def get_value(self, *args):
3341 get_value(Surface self, FloatKey a0) -> IMP::Float
3342 get_value(Surface self, IntKey a0) -> IMP::Int
3343 get_value(Surface self, FloatsKey a0) -> IMP::Floats
3344 get_value(Surface self, IntsKey a0) -> IMP::Ints
3345 get_value(Surface self, StringKey a0) -> IMP::String
3346 get_value(Surface self, ParticleIndexKey a0) -> Particle
3347 get_value(Surface self, ObjectKey a0) -> Object
3348 get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3349 get_value(Surface self, SparseIntKey a0) -> IMP::Int
3350 get_value(Surface self, SparseStringKey a0) -> IMP::String
3351 get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3353 return _IMP_core.Surface_get_value(self, *args)
3355 def set_value(self, *args):
3357 set_value(Surface self, FloatKey a0, IMP::Float a1)
3358 set_value(Surface self, IntKey a0, IMP::Int a1)
3359 set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3360 set_value(Surface self, IntsKey a0, IMP::Ints a1)
3361 set_value(Surface self, StringKey a0, IMP::String a1)
3362 set_value(Surface self, ParticleIndexKey a0, Particle a1)
3363 set_value(Surface self, ObjectKey a0, Object a1)
3364 set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3365 set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3366 set_value(Surface self, SparseStringKey a0, IMP::String a1)
3367 set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3369 return _IMP_core.Surface_set_value(self, *args)
3371 def remove_attribute(self, *args):
3373 remove_attribute(Surface self, FloatKey a0)
3374 remove_attribute(Surface self, IntKey a0)
3375 remove_attribute(Surface self, FloatsKey a0)
3376 remove_attribute(Surface self, IntsKey a0)
3377 remove_attribute(Surface self, StringKey a0)
3378 remove_attribute(Surface self, ParticleIndexKey a0)
3379 remove_attribute(Surface self, ObjectKey a0)
3380 remove_attribute(Surface self, SparseFloatKey a0)
3381 remove_attribute(Surface self, SparseIntKey a0)
3382 remove_attribute(Surface self, SparseStringKey a0)
3383 remove_attribute(Surface self, SparseParticleIndexKey a0)
3385 return _IMP_core.Surface_remove_attribute(self, *args)
3387 def has_attribute(self, *args):
3389 has_attribute(Surface self, FloatKey a0) -> bool
3390 has_attribute(Surface self, IntKey a0) -> bool
3391 has_attribute(Surface self, FloatsKey a0) -> bool
3392 has_attribute(Surface self, IntsKey a0) -> bool
3393 has_attribute(Surface self, StringKey a0) -> bool
3394 has_attribute(Surface self, ParticleIndexKey a0) -> bool
3395 has_attribute(Surface self, ObjectKey a0) -> bool
3396 has_attribute(Surface self, SparseFloatKey a0) -> bool
3397 has_attribute(Surface self, SparseIntKey a0) -> bool
3398 has_attribute(Surface self, SparseStringKey a0) -> bool
3399 has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3401 return _IMP_core.Surface_has_attribute(self, *args)
3403 def get_derivative(self, a0):
3404 r"""get_derivative(Surface self, FloatKey a0) -> double"""
3405 return _IMP_core.Surface_get_derivative(self, a0)
3408 r"""get_name(Surface self) -> std::string"""
3409 return _IMP_core.Surface_get_name(self)
3411 def clear_caches(self):
3412 r"""clear_caches(Surface self)"""
3413 return _IMP_core.Surface_clear_caches(self)
3415 def set_name(self, a0):
3416 r"""set_name(Surface self, std::string a0)"""
3417 return _IMP_core.Surface_set_name(self, a0)
3420 r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3421 return _IMP_core.Surface_set_check_level(self, a0)
3423 def add_to_derivative(self, a0, a1, a2):
3424 r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3425 return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3427 def set_is_optimized(self, a0, a1):
3428 r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3429 return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3431 def get_is_optimized(self, a0):
3432 r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3433 return _IMP_core.Surface_get_is_optimized(self, a0)
3436 r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3437 return _IMP_core.Surface_get_check_level(self)
3439 def __eq__(self, *args):
3441 __eq__(Surface self, Surface o) -> bool
3442 __eq__(Surface self, Particle d) -> bool
3444 return _IMP_core.Surface___eq__(self, *args)
3446 def __ne__(self, *args):
3448 __ne__(Surface self, Surface o) -> bool
3449 __ne__(Surface self, Particle d) -> bool
3451 return _IMP_core.Surface___ne__(self, *args)
3453 def __le__(self, *args):
3455 __le__(Surface self, Surface o) -> bool
3456 __le__(Surface self, Particle d) -> bool
3458 return _IMP_core.Surface___le__(self, *args)
3460 def __lt__(self, *args):
3462 __lt__(Surface self, Surface o) -> bool
3463 __lt__(Surface self, Particle d) -> bool
3465 return _IMP_core.Surface___lt__(self, *args)
3467 def __ge__(self, *args):
3469 __ge__(Surface self, Surface o) -> bool
3470 __ge__(Surface self, Particle d) -> bool
3472 return _IMP_core.Surface___ge__(self, *args)
3474 def __gt__(self, *args):
3476 __gt__(Surface self, Surface o) -> bool
3477 __gt__(Surface self, Particle d) -> bool
3479 return _IMP_core.Surface___gt__(self, *args)
3482 r"""__hash__(Surface self) -> std::size_t"""
3483 return _IMP_core.Surface___hash__(self)
3486 r"""__str__(Surface self) -> std::string"""
3487 return _IMP_core.Surface___str__(self)
3490 r"""__repr__(Surface self) -> std::string"""
3491 return _IMP_core.Surface___repr__(self)
3493 def _get_as_binary(self):
3494 r"""_get_as_binary(Surface self) -> PyObject *"""
3495 return _IMP_core.Surface__get_as_binary(self)
3497 def _set_from_binary(self, p):
3498 r"""_set_from_binary(Surface self, PyObject * p)"""
3499 return _IMP_core.Surface__set_from_binary(self, p)
3501 def __getstate__(self):
3502 p = self._get_as_binary()
3503 if len(self.__dict__) > 1:
3504 d = self.__dict__.copy()
3509 def __setstate__(self, p):
3510 if not hasattr(self,
'this'):
3512 if isinstance(p, tuple):
3514 self.__dict__.update(d)
3515 return self._set_from_binary(p)
3517 __swig_destroy__ = _IMP_core.delete_Surface
3520 _IMP_core.Surface_swigregister(Surface)
3524 get_height(Surface s, XYZR d) -> double
3525 get_height(Surface s, XYZ d) -> double
3527 return _IMP_core.get_height(*args)
3531 get_depth(Surface s, XYZR d) -> double
3532 get_depth(Surface s, XYZ d) -> double
3534 return _IMP_core.get_depth(*args)
3538 get_distance(XYZ a, XYZ b) -> double
3539 get_distance(XYZR a, XYZR b) -> double
3540 get_distance(Surface s, XYZR d) -> double
3541 get_distance(Surface s, XYZ d) -> double
3543 return _IMP_core.get_distance(*args)
3545 r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3547 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3549 def __init__(self, *args):
3551 __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3552 __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3553 __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3555 _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3557 def get_geometry(self):
3558 r"""get_geometry(SurfaceGeometry self) -> Surface"""
3559 return _IMP_core.SurfaceGeometry_get_geometry(self)
3561 def set_geometry(self, s):
3562 r"""set_geometry(SurfaceGeometry self, Surface s)"""
3563 return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3565 def get_version_info(self):
3566 r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3567 return _IMP_core.SurfaceGeometry_get_version_info(self)
3568 __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3571 r"""__str__(SurfaceGeometry self) -> std::string"""
3572 return _IMP_core.SurfaceGeometry___str__(self)
3575 r"""__repr__(SurfaceGeometry self) -> std::string"""
3576 return _IMP_core.SurfaceGeometry___repr__(self)
3580 return _object_cast_to_SurfaceGeometry(o)
3584 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3587 r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3588 return _IMP_core.create_geometry(*args)
3590 r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3592 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3594 def __init__(self, s, g):
3595 r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3596 _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3598 def get_surface(self):
3599 r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3600 return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3602 def get_geometry(self):
3603 r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3604 return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3606 def do_get_inputs(self):
3607 r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3608 return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3610 def do_get_outputs(self):
3611 r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3612 return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3614 def get_version_info(self):
3615 r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3616 return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3617 __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3620 r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3621 return _IMP_core.SurfaceGeometryConstraint___str__(self)
3624 r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3625 return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3629 return _object_cast_to_SurfaceGeometryConstraint(o)
3633 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3636 r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3637 return _IMP_core.get_constrained_surface_geometry(*args)
3639 r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3641 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3643 def __init__(self, s, d):
3644 r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3645 _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3647 def do_get_inputs(self):
3648 r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3649 return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3651 def do_get_outputs(self):
3652 r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3653 return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3655 def get_version_info(self):
3656 r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3657 return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3658 __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3661 r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3662 return _IMP_core.LateralSurfaceConstraint___str__(self)
3665 r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3666 return _IMP_core.LateralSurfaceConstraint___repr__(self)
3670 return _object_cast_to_LateralSurfaceConstraint(o)
3674 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3676 r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3678 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3680 def __init__(self, *args):
3682 __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3683 __init__(AngleTripletScore self) -> AngleTripletScore
3685 _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3687 def do_get_inputs(self, m, pis):
3688 r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3689 return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3691 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3692 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"""
3693 return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3695 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3696 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"""
3697 return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3699 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3700 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"""
3701 return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3703 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3704 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"""
3705 return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3707 def get_version_info(self):
3708 r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3709 return _IMP_core.AngleTripletScore_get_version_info(self)
3710 __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3713 r"""__str__(AngleTripletScore self) -> std::string"""
3714 return _IMP_core.AngleTripletScore___str__(self)
3717 r"""__repr__(AngleTripletScore self) -> std::string"""
3718 return _IMP_core.AngleTripletScore___repr__(self)
3722 return _object_cast_to_AngleTripletScore(o)
3725 def _get_as_binary(self):
3726 r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3727 return _IMP_core.AngleTripletScore__get_as_binary(self)
3729 def _set_from_binary(self, p):
3730 r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3731 return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3733 def __getstate__(self):
3734 p = self._get_as_binary()
3735 if len(self.__dict__) > 1:
3736 d = self.__dict__.copy()
3741 def __setstate__(self, p):
3742 if not hasattr(self,
'this'):
3744 if isinstance(p, tuple):
3746 self.__dict__.update(d)
3747 return self._set_from_binary(p)
3751 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3752 class BallMover(MonteCarloMover):
3753 r"""Proxy of C++ IMP::core::BallMover class."""
3755 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3757 def __init__(self, *args):
3759 __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3760 __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3761 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3762 __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3763 __init__(BallMover self) -> BallMover
3765 _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3767 def set_radius(self, radius):
3768 r"""set_radius(BallMover self, IMP::Float radius)"""
3769 return _IMP_core.BallMover_set_radius(self, radius)
3771 def get_radius(self):
3772 r"""get_radius(BallMover self) -> IMP::Float"""
3773 return _IMP_core.BallMover_get_radius(self)
3776 r"""get_indexes(BallMover self) -> IMP::ParticleIndexes"""
3777 return _IMP_core.BallMover_get_indexes(self)
3780 r"""get_keys(BallMover self) -> IMP::FloatKeys"""
3781 return _IMP_core.BallMover_get_keys(self)
3783 def get_version_info(self):
3784 r"""get_version_info(BallMover self) -> VersionInfo"""
3785 return _IMP_core.BallMover_get_version_info(self)
3786 __swig_destroy__ = _IMP_core.delete_BallMover
3789 r"""__str__(BallMover self) -> std::string"""
3790 return _IMP_core.BallMover___str__(self)
3793 r"""__repr__(BallMover self) -> std::string"""
3794 return _IMP_core.BallMover___repr__(self)
3798 return _object_cast_to_BallMover(o)
3801 def _get_as_binary(self):
3802 r"""_get_as_binary(BallMover self) -> PyObject *"""
3803 return _IMP_core.BallMover__get_as_binary(self)
3805 def _set_from_binary(self, p):
3806 r"""_set_from_binary(BallMover self, PyObject * p)"""
3807 return _IMP_core.BallMover__set_from_binary(self, p)
3809 def __getstate__(self):
3810 p = self._get_as_binary()
3811 if len(self.__dict__) > 1:
3812 d = self.__dict__.copy()
3817 def __setstate__(self, p):
3818 if not hasattr(self,
'this'):
3820 if isinstance(p, tuple):
3822 self.__dict__.update(d)
3823 return self._set_from_binary(p)
3827 from IMP.algebra._jax_util
import get_random_vector_in_3d_sphere
3828 indexes = self.get_indexes()
3829 keys = frozenset(self.get_keys())
3831 raise NotImplementedError(
"Only works for XYZ")
3832 radius = self.get_radius()
3834 def propose_func(k, X):
3835 v = get_random_vector_in_3d_sphere(k, radius)
3837 newX[
'xyz'] = X[
'xyz'].at[indexes].add(v)
3843 _IMP_core.BallMover_swigregister(BallMover)
3844 class SerialMover(MonteCarloMover):
3845 r"""Proxy of C++ IMP::core::SerialMover class."""
3847 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3849 def __init__(self, *args):
3851 __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3852 __init__(SerialMover self) -> SerialMover
3854 _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3856 def get_movers(self):
3857 r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3858 return _IMP_core.SerialMover_get_movers(self)
3860 def get_version_info(self):
3861 r"""get_version_info(SerialMover self) -> VersionInfo"""
3862 return _IMP_core.SerialMover_get_version_info(self)
3863 __swig_destroy__ = _IMP_core.delete_SerialMover
3866 r"""__str__(SerialMover self) -> std::string"""
3867 return _IMP_core.SerialMover___str__(self)
3870 r"""__repr__(SerialMover self) -> std::string"""
3871 return _IMP_core.SerialMover___repr__(self)
3875 return _object_cast_to_SerialMover(o)
3878 def _get_as_binary(self):
3879 r"""_get_as_binary(SerialMover self) -> PyObject *"""
3880 return _IMP_core.SerialMover__get_as_binary(self)
3882 def _set_from_binary(self, p):
3883 r"""_set_from_binary(SerialMover self, PyObject * p)"""
3884 return _IMP_core.SerialMover__set_from_binary(self, p)
3886 def __getstate__(self):
3887 p = self._get_as_binary()
3888 if len(self.__dict__) > 1:
3889 d = self.__dict__.copy()
3894 def __setstate__(self, p):
3895 if not hasattr(self,
'this'):
3897 if isinstance(p, tuple):
3899 self.__dict__.update(d)
3900 return self._set_from_binary(p)
3904 _IMP_core.SerialMover_swigregister(SerialMover)
3905 class SubsetMover(MonteCarloMover):
3906 r"""Proxy of C++ IMP::core::SubsetMover class."""
3908 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3910 def __init__(self, *args):
3912 __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3913 __init__(SubsetMover self) -> SubsetMover
3915 _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3917 def get_movers(self):
3918 r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3919 return _IMP_core.SubsetMover_get_movers(self)
3921 def get_subset_size(self):
3922 r"""get_subset_size(SubsetMover self) -> unsigned int"""
3923 return _IMP_core.SubsetMover_get_subset_size(self)
3925 def get_version_info(self):
3926 r"""get_version_info(SubsetMover self) -> VersionInfo"""
3927 return _IMP_core.SubsetMover_get_version_info(self)
3928 __swig_destroy__ = _IMP_core.delete_SubsetMover
3931 r"""__str__(SubsetMover self) -> std::string"""
3932 return _IMP_core.SubsetMover___str__(self)
3935 r"""__repr__(SubsetMover self) -> std::string"""
3936 return _IMP_core.SubsetMover___repr__(self)
3940 return _object_cast_to_SubsetMover(o)
3943 def _get_as_binary(self):
3944 r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3945 return _IMP_core.SubsetMover__get_as_binary(self)
3947 def _set_from_binary(self, p):
3948 r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3949 return _IMP_core.SubsetMover__set_from_binary(self, p)
3951 def __getstate__(self):
3952 p = self._get_as_binary()
3953 if len(self.__dict__) > 1:
3954 d = self.__dict__.copy()
3959 def __setstate__(self, p):
3960 if not hasattr(self,
'this'):
3962 if isinstance(p, tuple):
3964 self.__dict__.update(d)
3965 return self._set_from_binary(p)
3969 _IMP_core.SubsetMover_swigregister(SubsetMover)
3970 class DirectionMover(MonteCarloMover):
3971 r"""Proxy of C++ IMP::core::DirectionMover class."""
3973 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3975 def __init__(self, *args):
3977 __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3978 __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3979 __init__(DirectionMover self) -> DirectionMover
3981 _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3983 def set_maximum_rotation(self, mr):
3984 r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3985 return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3987 def set_reflect_probability(self, rp):
3988 r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3989 return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3991 def get_maximum_rotation(self):
3992 r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3993 return _IMP_core.DirectionMover_get_maximum_rotation(self)
3995 def get_reflect_probability(self):
3996 r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3997 return _IMP_core.DirectionMover_get_reflect_probability(self)
3999 def get_direction(self):
4000 r"""get_direction(DirectionMover self) -> Direction"""
4001 return _IMP_core.DirectionMover_get_direction(self)
4003 def get_version_info(self):
4004 r"""get_version_info(DirectionMover self) -> VersionInfo"""
4005 return _IMP_core.DirectionMover_get_version_info(self)
4006 __swig_destroy__ = _IMP_core.delete_DirectionMover
4009 r"""__str__(DirectionMover self) -> std::string"""
4010 return _IMP_core.DirectionMover___str__(self)
4013 r"""__repr__(DirectionMover self) -> std::string"""
4014 return _IMP_core.DirectionMover___repr__(self)
4018 return _object_cast_to_DirectionMover(o)
4021 def _get_as_binary(self):
4022 r"""_get_as_binary(DirectionMover self) -> PyObject *"""
4023 return _IMP_core.DirectionMover__get_as_binary(self)
4025 def _set_from_binary(self, p):
4026 r"""_set_from_binary(DirectionMover self, PyObject * p)"""
4027 return _IMP_core.DirectionMover__set_from_binary(self, p)
4029 def __getstate__(self):
4030 p = self._get_as_binary()
4031 if len(self.__dict__) > 1:
4032 d = self.__dict__.copy()
4037 def __setstate__(self, p):
4038 if not hasattr(self,
'this'):
4040 if isinstance(p, tuple):
4042 self.__dict__.update(d)
4043 return self._set_from_binary(p)
4047 _IMP_core.DirectionMover_swigregister(DirectionMover)
4048 class SurfaceMover(MonteCarloMover):
4049 r"""Proxy of C++ IMP::core::SurfaceMover class."""
4051 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4053 def __init__(self, *args):
4055 __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4056 __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4057 __init__(SurfaceMover self) -> SurfaceMover
4059 _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4061 def set_maximum_translation(self, mt):
4062 r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4063 return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4065 def set_maximum_rotation(self, mr):
4066 r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4067 return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4069 def set_reflect_probability(self, rp):
4070 r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4071 return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4073 def get_maximum_translation(self):
4074 r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4075 return _IMP_core.SurfaceMover_get_maximum_translation(self)
4077 def get_maximum_rotation(self):
4078 r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4079 return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4081 def get_reflect_probability(self):
4082 r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4083 return _IMP_core.SurfaceMover_get_reflect_probability(self)
4085 def get_surface(self):
4086 r"""get_surface(SurfaceMover self) -> Surface"""
4087 return _IMP_core.SurfaceMover_get_surface(self)
4089 def get_version_info(self):
4090 r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4091 return _IMP_core.SurfaceMover_get_version_info(self)
4092 __swig_destroy__ = _IMP_core.delete_SurfaceMover
4095 r"""__str__(SurfaceMover self) -> std::string"""
4096 return _IMP_core.SurfaceMover___str__(self)
4099 r"""__repr__(SurfaceMover self) -> std::string"""
4100 return _IMP_core.SurfaceMover___repr__(self)
4104 return _object_cast_to_SurfaceMover(o)
4107 def _get_as_binary(self):
4108 r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4109 return _IMP_core.SurfaceMover__get_as_binary(self)
4111 def _set_from_binary(self, p):
4112 r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4113 return _IMP_core.SurfaceMover__set_from_binary(self, p)
4115 def __getstate__(self):
4116 p = self._get_as_binary()
4117 if len(self.__dict__) > 1:
4118 d = self.__dict__.copy()
4123 def __setstate__(self, p):
4124 if not hasattr(self,
'this'):
4126 if isinstance(p, tuple):
4128 self.__dict__.update(d)
4129 return self._set_from_binary(p)
4133 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4134 class BoxSweepClosePairsFinder(ClosePairsFinder):
4135 r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4140 r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4141 _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4143 def get_close_pairs(self, *args):
4145 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4146 get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4147 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4148 get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4150 return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4152 def do_get_inputs(self, m, pis):
4153 r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4154 return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4156 def get_version_info(self):
4157 r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4158 return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4159 __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4162 r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4163 return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4166 r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4167 return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4171 return _object_cast_to_BoxSweepClosePairsFinder(o)
4175 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4177 r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4179 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4181 def __init__(self, *args):
4182 r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4183 _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4185 def do_get_inputs(self, m, pis):
4186 r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4187 return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4189 def do_get_outputs(self, m, pis):
4190 r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4191 return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4193 def get_version_info(self):
4194 r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4195 return _IMP_core.CentroidOfRefined_get_version_info(self)
4196 __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4199 r"""__str__(CentroidOfRefined self) -> std::string"""
4200 return _IMP_core.CentroidOfRefined___str__(self)
4203 r"""__repr__(CentroidOfRefined self) -> std::string"""
4204 return _IMP_core.CentroidOfRefined___repr__(self)
4208 return _object_cast_to_CentroidOfRefined(o)
4212 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4213 class Centroid(XYZ):
4214 r"""Proxy of C++ IMP::core::Centroid class."""
4216 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4218 def get_constraint(self):
4219 r"""get_constraint(Centroid self) -> Constraint"""
4220 return _IMP_core.Centroid_get_constraint(self)
4222 def __init__(self, *args):
4224 __init__(Centroid self) -> Centroid
4225 __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4226 __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4228 _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4230 def show(self, *args):
4231 r"""show(Centroid self, _ostream out=std::cout)"""
4232 return _IMP_core.Centroid_show(self, *args)
4235 def setup_particle(*args):
4237 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4238 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4239 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4240 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4242 return _IMP_core.Centroid_setup_particle(*args)
4245 def get_is_setup(*args):
4247 get_is_setup(_ParticleAdaptor p) -> bool
4248 get_is_setup(Model m, ParticleIndex pi) -> bool
4250 return _IMP_core.Centroid_get_is_setup(*args)
4252 def add_attribute(self, *args):
4254 add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4255 add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4256 add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4257 add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4258 add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4259 add_attribute(Centroid self, StringKey a0, IMP::String a1)
4260 add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4261 add_attribute(Centroid self, ObjectKey a0, Object a1)
4262 add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4263 add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4264 add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4265 add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4267 return _IMP_core.Centroid_add_attribute(self, *args)
4269 def get_value(self, *args):
4271 get_value(Centroid self, FloatKey a0) -> IMP::Float
4272 get_value(Centroid self, IntKey a0) -> IMP::Int
4273 get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4274 get_value(Centroid self, IntsKey a0) -> IMP::Ints
4275 get_value(Centroid self, StringKey a0) -> IMP::String
4276 get_value(Centroid self, ParticleIndexKey a0) -> Particle
4277 get_value(Centroid self, ObjectKey a0) -> Object
4278 get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4279 get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4280 get_value(Centroid self, SparseStringKey a0) -> IMP::String
4281 get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4283 return _IMP_core.Centroid_get_value(self, *args)
4285 def set_value(self, *args):
4287 set_value(Centroid self, FloatKey a0, IMP::Float a1)
4288 set_value(Centroid self, IntKey a0, IMP::Int a1)
4289 set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4290 set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4291 set_value(Centroid self, StringKey a0, IMP::String a1)
4292 set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4293 set_value(Centroid self, ObjectKey a0, Object a1)
4294 set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4295 set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4296 set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4297 set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4299 return _IMP_core.Centroid_set_value(self, *args)
4301 def remove_attribute(self, *args):
4303 remove_attribute(Centroid self, FloatKey a0)
4304 remove_attribute(Centroid self, IntKey a0)
4305 remove_attribute(Centroid self, FloatsKey a0)
4306 remove_attribute(Centroid self, IntsKey a0)
4307 remove_attribute(Centroid self, StringKey a0)
4308 remove_attribute(Centroid self, ParticleIndexKey a0)
4309 remove_attribute(Centroid self, ObjectKey a0)
4310 remove_attribute(Centroid self, SparseFloatKey a0)
4311 remove_attribute(Centroid self, SparseIntKey a0)
4312 remove_attribute(Centroid self, SparseStringKey a0)
4313 remove_attribute(Centroid self, SparseParticleIndexKey a0)
4315 return _IMP_core.Centroid_remove_attribute(self, *args)
4317 def has_attribute(self, *args):
4319 has_attribute(Centroid self, FloatKey a0) -> bool
4320 has_attribute(Centroid self, IntKey a0) -> bool
4321 has_attribute(Centroid self, FloatsKey a0) -> bool
4322 has_attribute(Centroid self, IntsKey a0) -> bool
4323 has_attribute(Centroid self, StringKey a0) -> bool
4324 has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4325 has_attribute(Centroid self, ObjectKey a0) -> bool
4326 has_attribute(Centroid self, SparseFloatKey a0) -> bool
4327 has_attribute(Centroid self, SparseIntKey a0) -> bool
4328 has_attribute(Centroid self, SparseStringKey a0) -> bool
4329 has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4331 return _IMP_core.Centroid_has_attribute(self, *args)
4333 def get_derivative(self, a0):
4334 r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4335 return _IMP_core.Centroid_get_derivative(self, a0)
4338 r"""get_name(Centroid self) -> std::string"""
4339 return _IMP_core.Centroid_get_name(self)
4341 def clear_caches(self):
4342 r"""clear_caches(Centroid self)"""
4343 return _IMP_core.Centroid_clear_caches(self)
4345 def set_name(self, a0):
4346 r"""set_name(Centroid self, std::string a0)"""
4347 return _IMP_core.Centroid_set_name(self, a0)
4350 r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4351 return _IMP_core.Centroid_set_check_level(self, a0)
4353 def add_to_derivative(self, a0, a1, a2):
4354 r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4355 return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4357 def set_is_optimized(self, a0, a1):
4358 r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4359 return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4361 def get_is_optimized(self, a0):
4362 r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4363 return _IMP_core.Centroid_get_is_optimized(self, a0)
4366 r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4367 return _IMP_core.Centroid_get_check_level(self)
4369 def __eq__(self, *args):
4371 __eq__(Centroid self, Centroid o) -> bool
4372 __eq__(Centroid self, Particle d) -> bool
4374 return _IMP_core.Centroid___eq__(self, *args)
4376 def __ne__(self, *args):
4378 __ne__(Centroid self, Centroid o) -> bool
4379 __ne__(Centroid self, Particle d) -> bool
4381 return _IMP_core.Centroid___ne__(self, *args)
4383 def __le__(self, *args):
4385 __le__(Centroid self, Centroid o) -> bool
4386 __le__(Centroid self, Particle d) -> bool
4388 return _IMP_core.Centroid___le__(self, *args)
4390 def __lt__(self, *args):
4392 __lt__(Centroid self, Centroid o) -> bool
4393 __lt__(Centroid self, Particle d) -> bool
4395 return _IMP_core.Centroid___lt__(self, *args)
4397 def __ge__(self, *args):
4399 __ge__(Centroid self, Centroid o) -> bool
4400 __ge__(Centroid self, Particle d) -> bool
4402 return _IMP_core.Centroid___ge__(self, *args)
4404 def __gt__(self, *args):
4406 __gt__(Centroid self, Centroid o) -> bool
4407 __gt__(Centroid self, Particle d) -> bool
4409 return _IMP_core.Centroid___gt__(self, *args)
4412 r"""__hash__(Centroid self) -> std::size_t"""
4413 return _IMP_core.Centroid___hash__(self)
4416 r"""__str__(Centroid self) -> std::string"""
4417 return _IMP_core.Centroid___str__(self)
4420 r"""__repr__(Centroid self) -> std::string"""
4421 return _IMP_core.Centroid___repr__(self)
4423 def _get_as_binary(self):
4424 r"""_get_as_binary(Centroid self) -> PyObject *"""
4425 return _IMP_core.Centroid__get_as_binary(self)
4427 def _set_from_binary(self, p):
4428 r"""_set_from_binary(Centroid self, PyObject * p)"""
4429 return _IMP_core.Centroid__set_from_binary(self, p)
4431 def __getstate__(self):
4432 p = self._get_as_binary()
4433 if len(self.__dict__) > 1:
4434 d = self.__dict__.copy()
4439 def __setstate__(self, p):
4440 if not hasattr(self,
'this'):
4442 if isinstance(p, tuple):
4444 self.__dict__.update(d)
4445 return self._set_from_binary(p)
4447 __swig_destroy__ = _IMP_core.delete_Centroid
4450 _IMP_core.Centroid_swigregister(Centroid)
4452 r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4454 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4456 def __init__(self, *args):
4458 __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4459 __init__(ChecksScoreState self) -> ChecksScoreState
4461 _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4463 def get_number_of_checked(self):
4464 r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4465 return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4467 def do_before_evaluate(self):
4468 r"""do_before_evaluate(ChecksScoreState self)"""
4469 return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4471 def do_after_evaluate(self, da):
4472 r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4473 return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4475 def do_get_outputs(self):
4476 r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4477 return _IMP_core.ChecksScoreState_do_get_outputs(self)
4479 def do_get_inputs(self):
4480 r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4481 return _IMP_core.ChecksScoreState_do_get_inputs(self)
4483 def get_version_info(self):
4484 r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4485 return _IMP_core.ChecksScoreState_get_version_info(self)
4486 __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4489 r"""__str__(ChecksScoreState self) -> std::string"""
4490 return _IMP_core.ChecksScoreState___str__(self)
4493 r"""__repr__(ChecksScoreState self) -> std::string"""
4494 return _IMP_core.ChecksScoreState___repr__(self)
4498 return _object_cast_to_ChecksScoreState(o)
4501 def _get_as_binary(self):
4502 r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4503 return _IMP_core.ChecksScoreState__get_as_binary(self)
4505 def _set_from_binary(self, p):
4506 r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4507 return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4509 def __getstate__(self):
4510 p = self._get_as_binary()
4511 if len(self.__dict__) > 1:
4512 d = self.__dict__.copy()
4517 def __setstate__(self, p):
4518 if not hasattr(self,
'this'):
4520 if isinstance(p, tuple):
4522 self.__dict__.update(d)
4523 return self._set_from_binary(p)
4527 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4529 r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4531 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4533 def __init__(self, tr):
4534 r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4535 _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4537 def do_get_inputs(self, m, pis):
4538 r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4539 return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4541 def get_version_info(self):
4542 r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4543 return _IMP_core.ChildrenRefiner_get_version_info(self)
4544 __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4547 r"""__str__(ChildrenRefiner self) -> std::string"""
4548 return _IMP_core.ChildrenRefiner___str__(self)
4551 r"""__repr__(ChildrenRefiner self) -> std::string"""
4552 return _IMP_core.ChildrenRefiner___repr__(self)
4556 return _object_cast_to_ChildrenRefiner(o)
4560 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4562 r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4564 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4566 def __init__(self, values, minrange, spacing):
4567 r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4568 _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4570 def get_version_info(self):
4571 r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4572 return _IMP_core.ClosedCubicSpline_get_version_info(self)
4573 __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4575 def do_show(self, out):
4576 r"""do_show(ClosedCubicSpline self, _ostream out)"""
4577 return _IMP_core.ClosedCubicSpline_do_show(self, out)
4580 r"""__str__(ClosedCubicSpline self) -> std::string"""
4581 return _IMP_core.ClosedCubicSpline___str__(self)
4584 r"""__repr__(ClosedCubicSpline self) -> std::string"""
4585 return _IMP_core.ClosedCubicSpline___repr__(self)
4589 return _object_cast_to_ClosedCubicSpline(o)
4593 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4595 r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4597 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4599 def __init__(self, f, r, k=1):
4600 r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4601 _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4603 def get_close_pairs(self, pp):
4604 r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4605 return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4607 def create_current_decomposition(self, m, vt):
4608 r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4609 return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4611 def do_get_inputs(self, m, pis):
4612 r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4613 return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4615 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4616 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"""
4617 return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4619 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4620 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"""
4621 return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4623 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4624 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"""
4625 return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4627 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4628 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"""
4629 return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4631 def get_version_info(self):
4632 r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4633 return _IMP_core.KClosePairsPairScore_get_version_info(self)
4634 __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4637 r"""__str__(KClosePairsPairScore self) -> std::string"""
4638 return _IMP_core.KClosePairsPairScore___str__(self)
4641 r"""__repr__(KClosePairsPairScore self) -> std::string"""
4642 return _IMP_core.KClosePairsPairScore___repr__(self)
4646 return _object_cast_to_KClosePairsPairScore(o)
4650 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4652 r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4654 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4656 def __init__(self, f, r, max_distance):
4657 r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4658 _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4660 def get_close_pairs(self, pp):
4661 r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4662 return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4664 def create_current_decomposition(self, m, vt):
4665 r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4666 return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4668 def do_get_inputs(self, m, pis):
4669 r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4670 return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4672 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4673 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"""
4674 return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4676 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4677 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"""
4678 return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4680 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4681 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"""
4682 return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4684 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4685 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"""
4686 return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4688 def get_version_info(self):
4689 r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4690 return _IMP_core.ClosePairsPairScore_get_version_info(self)
4691 __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4694 r"""__str__(ClosePairsPairScore self) -> std::string"""
4695 return _IMP_core.ClosePairsPairScore___str__(self)
4698 r"""__repr__(ClosePairsPairScore self) -> std::string"""
4699 return _IMP_core.ClosePairsPairScore___repr__(self)
4703 return _object_cast_to_ClosePairsPairScore(o)
4707 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4709 r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4711 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4713 def __init__(self, *args):
4715 __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4716 __init__(ConjugateGradients self) -> ConjugateGradients
4718 _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4720 def set_gradient_threshold(self, t):
4721 r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4722 return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4724 def set_max_change(self, t):
4725 r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4726 return _IMP_core.ConjugateGradients_set_max_change(self, t)
4728 def do_optimize(self, max_steps):
4729 r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4730 return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4732 def get_version_info(self):
4733 r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4734 return _IMP_core.ConjugateGradients_get_version_info(self)
4735 __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4738 r"""__str__(ConjugateGradients self) -> std::string"""
4739 return _IMP_core.ConjugateGradients___str__(self)
4742 r"""__repr__(ConjugateGradients self) -> std::string"""
4743 return _IMP_core.ConjugateGradients___repr__(self)
4747 return _object_cast_to_ConjugateGradients(o)
4750 def _get_as_binary(self):
4751 r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4752 return _IMP_core.ConjugateGradients__get_as_binary(self)
4754 def _set_from_binary(self, p):
4755 r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4756 return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4758 def __getstate__(self):
4759 p = self._get_as_binary()
4760 if len(self.__dict__) > 1:
4761 d = self.__dict__.copy()
4766 def __setstate__(self, p):
4767 if not hasattr(self,
'this'):
4769 if isinstance(p, tuple):
4771 self.__dict__.update(d)
4772 return self._set_from_binary(p)
4776 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4778 r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4780 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4782 def __init__(self, ps, sc):
4783 r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4784 _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4786 def get_connected_index_pairs(self):
4787 r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4788 return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4790 def get_pair_score(self):
4791 r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4792 return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4794 def do_create_current_decomposition(self):
4795 r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4796 return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4798 def do_get_inputs(self):
4799 r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4800 return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4802 def get_version_info(self):
4803 r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4804 return _IMP_core.ConnectivityRestraint_get_version_info(self)
4805 __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4808 r"""__str__(ConnectivityRestraint self) -> std::string"""
4809 return _IMP_core.ConnectivityRestraint___str__(self)
4812 r"""__repr__(ConnectivityRestraint self) -> std::string"""
4813 return _IMP_core.ConnectivityRestraint___repr__(self)
4817 return _object_cast_to_ConnectivityRestraint(o)
4821 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4823 r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4825 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4827 def __init__(self, *args):
4829 __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4830 __init__(ConstantRestraint self) -> ConstantRestraint
4832 _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4834 def do_get_inputs(self):
4835 r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4836 return _IMP_core.ConstantRestraint_do_get_inputs(self)
4838 def get_version_info(self):
4839 r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4840 return _IMP_core.ConstantRestraint_get_version_info(self)
4841 __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4844 r"""__str__(ConstantRestraint self) -> std::string"""
4845 return _IMP_core.ConstantRestraint___str__(self)
4848 r"""__repr__(ConstantRestraint self) -> std::string"""
4849 return _IMP_core.ConstantRestraint___repr__(self)
4853 return _object_cast_to_ConstantRestraint(o)
4856 def _get_as_binary(self):
4857 r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4858 return _IMP_core.ConstantRestraint__get_as_binary(self)
4860 def _set_from_binary(self, p):
4861 r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4862 return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4864 def __getstate__(self):
4865 p = self._get_as_binary()
4866 if len(self.__dict__) > 1:
4867 d = self.__dict__.copy()
4872 def __setstate__(self, p):
4873 if not hasattr(self,
'this'):
4875 if isinstance(p, tuple):
4877 self.__dict__.update(d)
4878 return self._set_from_binary(p)
4882 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4884 r"""Proxy of C++ IMP::core::Cosine class."""
4886 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4888 def __init__(self, *args):
4890 __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4891 __init__(Cosine self) -> Cosine
4893 _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4895 def get_version_info(self):
4896 r"""get_version_info(Cosine self) -> VersionInfo"""
4897 return _IMP_core.Cosine_get_version_info(self)
4898 __swig_destroy__ = _IMP_core.delete_Cosine
4900 def do_show(self, out):
4901 r"""do_show(Cosine self, _ostream out)"""
4902 return _IMP_core.Cosine_do_show(self, out)
4905 r"""__str__(Cosine self) -> std::string"""
4906 return _IMP_core.Cosine___str__(self)
4909 r"""__repr__(Cosine self) -> std::string"""
4910 return _IMP_core.Cosine___repr__(self)
4914 return _object_cast_to_Cosine(o)
4917 def _get_as_binary(self):
4918 r"""_get_as_binary(Cosine self) -> PyObject *"""
4919 return _IMP_core.Cosine__get_as_binary(self)
4921 def _set_from_binary(self, p):
4922 r"""_set_from_binary(Cosine self, PyObject * p)"""
4923 return _IMP_core.Cosine__set_from_binary(self, p)
4925 def __getstate__(self):
4926 p = self._get_as_binary()
4927 if len(self.__dict__) > 1:
4928 d = self.__dict__.copy()
4933 def __setstate__(self, p):
4934 if not hasattr(self,
'this'):
4936 if isinstance(p, tuple):
4938 self.__dict__.update(d)
4939 return self._set_from_binary(p)
4943 _IMP_core.Cosine_swigregister(Cosine)
4945 r"""Proxy of C++ IMP::core::CoverRefined class."""
4947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4949 def __init__(self, ref, slack=0):
4950 r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4951 _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4953 def set_slack(self, slack):
4954 r"""set_slack(CoverRefined self, IMP::Float slack)"""
4955 return _IMP_core.CoverRefined_set_slack(self, slack)
4957 def do_get_inputs(self, m, pis):
4958 r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4959 return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4961 def do_get_outputs(self, m, pis):
4962 r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4963 return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4965 def get_version_info(self):
4966 r"""get_version_info(CoverRefined self) -> VersionInfo"""
4967 return _IMP_core.CoverRefined_get_version_info(self)
4968 __swig_destroy__ = _IMP_core.delete_CoverRefined
4971 r"""__str__(CoverRefined self) -> std::string"""
4972 return _IMP_core.CoverRefined___str__(self)
4975 r"""__repr__(CoverRefined self) -> std::string"""
4976 return _IMP_core.CoverRefined___repr__(self)
4980 return _object_cast_to_CoverRefined(o)
4984 _IMP_core.CoverRefined_swigregister(CoverRefined)
4986 r"""Proxy of C++ IMP::core::Cover class."""
4988 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4990 def get_constraint(self):
4991 r"""get_constraint(Cover self) -> Constraint"""
4992 return _IMP_core.Cover_get_constraint(self)
4994 def __init__(self, *args):
4996 __init__(Cover self) -> Cover
4997 __init__(Cover self, Model m, ParticleIndex id) -> Cover
4998 __init__(Cover self, _ParticleAdaptor d) -> Cover
5000 _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
5002 def show(self, *args):
5003 r"""show(Cover self, _ostream out=std::cout)"""
5004 return _IMP_core.Cover_show(self, *args)
5007 def setup_particle(*args):
5009 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
5010 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
5011 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
5012 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
5014 return _IMP_core.Cover_setup_particle(*args)
5017 def get_is_setup(*args):
5019 get_is_setup(_ParticleAdaptor p) -> bool
5020 get_is_setup(Model m, ParticleIndex pi) -> bool
5022 return _IMP_core.Cover_get_is_setup(*args)
5024 def add_attribute(self, *args):
5026 add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
5027 add_attribute(Cover self, FloatKey a0, IMP::Float a1)
5028 add_attribute(Cover self, IntKey a0, IMP::Int a1)
5029 add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
5030 add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
5031 add_attribute(Cover self, StringKey a0, IMP::String a1)
5032 add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
5033 add_attribute(Cover self, ObjectKey a0, Object a1)
5034 add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5035 add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5036 add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5037 add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5039 return _IMP_core.Cover_add_attribute(self, *args)
5041 def get_value(self, *args):
5043 get_value(Cover self, FloatKey a0) -> IMP::Float
5044 get_value(Cover self, IntKey a0) -> IMP::Int
5045 get_value(Cover self, FloatsKey a0) -> IMP::Floats
5046 get_value(Cover self, IntsKey a0) -> IMP::Ints
5047 get_value(Cover self, StringKey a0) -> IMP::String
5048 get_value(Cover self, ParticleIndexKey a0) -> Particle
5049 get_value(Cover self, ObjectKey a0) -> Object
5050 get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5051 get_value(Cover self, SparseIntKey a0) -> IMP::Int
5052 get_value(Cover self, SparseStringKey a0) -> IMP::String
5053 get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5055 return _IMP_core.Cover_get_value(self, *args)
5057 def set_value(self, *args):
5059 set_value(Cover self, FloatKey a0, IMP::Float a1)
5060 set_value(Cover self, IntKey a0, IMP::Int a1)
5061 set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5062 set_value(Cover self, IntsKey a0, IMP::Ints a1)
5063 set_value(Cover self, StringKey a0, IMP::String a1)
5064 set_value(Cover self, ParticleIndexKey a0, Particle a1)
5065 set_value(Cover self, ObjectKey a0, Object a1)
5066 set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5067 set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5068 set_value(Cover self, SparseStringKey a0, IMP::String a1)
5069 set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5071 return _IMP_core.Cover_set_value(self, *args)
5073 def remove_attribute(self, *args):
5075 remove_attribute(Cover self, FloatKey a0)
5076 remove_attribute(Cover self, IntKey a0)
5077 remove_attribute(Cover self, FloatsKey a0)
5078 remove_attribute(Cover self, IntsKey a0)
5079 remove_attribute(Cover self, StringKey a0)
5080 remove_attribute(Cover self, ParticleIndexKey a0)
5081 remove_attribute(Cover self, ObjectKey a0)
5082 remove_attribute(Cover self, SparseFloatKey a0)
5083 remove_attribute(Cover self, SparseIntKey a0)
5084 remove_attribute(Cover self, SparseStringKey a0)
5085 remove_attribute(Cover self, SparseParticleIndexKey a0)
5087 return _IMP_core.Cover_remove_attribute(self, *args)
5089 def has_attribute(self, *args):
5091 has_attribute(Cover self, FloatKey a0) -> bool
5092 has_attribute(Cover self, IntKey a0) -> bool
5093 has_attribute(Cover self, FloatsKey a0) -> bool
5094 has_attribute(Cover self, IntsKey a0) -> bool
5095 has_attribute(Cover self, StringKey a0) -> bool
5096 has_attribute(Cover self, ParticleIndexKey a0) -> bool
5097 has_attribute(Cover self, ObjectKey a0) -> bool
5098 has_attribute(Cover self, SparseFloatKey a0) -> bool
5099 has_attribute(Cover self, SparseIntKey a0) -> bool
5100 has_attribute(Cover self, SparseStringKey a0) -> bool
5101 has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5103 return _IMP_core.Cover_has_attribute(self, *args)
5105 def get_derivative(self, a0):
5106 r"""get_derivative(Cover self, FloatKey a0) -> double"""
5107 return _IMP_core.Cover_get_derivative(self, a0)
5110 r"""get_name(Cover self) -> std::string"""
5111 return _IMP_core.Cover_get_name(self)
5113 def clear_caches(self):
5114 r"""clear_caches(Cover self)"""
5115 return _IMP_core.Cover_clear_caches(self)
5117 def set_name(self, a0):
5118 r"""set_name(Cover self, std::string a0)"""
5119 return _IMP_core.Cover_set_name(self, a0)
5122 r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5123 return _IMP_core.Cover_set_check_level(self, a0)
5125 def add_to_derivative(self, a0, a1, a2):
5126 r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5127 return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5129 def set_is_optimized(self, a0, a1):
5130 r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5131 return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5133 def get_is_optimized(self, a0):
5134 r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5135 return _IMP_core.Cover_get_is_optimized(self, a0)
5138 r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5139 return _IMP_core.Cover_get_check_level(self)
5141 def __eq__(self, *args):
5143 __eq__(Cover self, Cover o) -> bool
5144 __eq__(Cover self, Particle d) -> bool
5146 return _IMP_core.Cover___eq__(self, *args)
5148 def __ne__(self, *args):
5150 __ne__(Cover self, Cover o) -> bool
5151 __ne__(Cover self, Particle d) -> bool
5153 return _IMP_core.Cover___ne__(self, *args)
5155 def __le__(self, *args):
5157 __le__(Cover self, Cover o) -> bool
5158 __le__(Cover self, Particle d) -> bool
5160 return _IMP_core.Cover___le__(self, *args)
5162 def __lt__(self, *args):
5164 __lt__(Cover self, Cover o) -> bool
5165 __lt__(Cover self, Particle d) -> bool
5167 return _IMP_core.Cover___lt__(self, *args)
5169 def __ge__(self, *args):
5171 __ge__(Cover self, Cover o) -> bool
5172 __ge__(Cover self, Particle d) -> bool
5174 return _IMP_core.Cover___ge__(self, *args)
5176 def __gt__(self, *args):
5178 __gt__(Cover self, Cover o) -> bool
5179 __gt__(Cover self, Particle d) -> bool
5181 return _IMP_core.Cover___gt__(self, *args)
5184 r"""__hash__(Cover self) -> std::size_t"""
5185 return _IMP_core.Cover___hash__(self)
5188 r"""__str__(Cover self) -> std::string"""
5189 return _IMP_core.Cover___str__(self)
5192 r"""__repr__(Cover self) -> std::string"""
5193 return _IMP_core.Cover___repr__(self)
5195 def _get_as_binary(self):
5196 r"""_get_as_binary(Cover self) -> PyObject *"""
5197 return _IMP_core.Cover__get_as_binary(self)
5199 def _set_from_binary(self, p):
5200 r"""_set_from_binary(Cover self, PyObject * p)"""
5201 return _IMP_core.Cover__set_from_binary(self, p)
5203 def __getstate__(self):
5204 p = self._get_as_binary()
5205 if len(self.__dict__) > 1:
5206 d = self.__dict__.copy()
5211 def __setstate__(self, p):
5212 if not hasattr(self,
'this'):
5214 if isinstance(p, tuple):
5216 self.__dict__.update(d)
5217 return self._set_from_binary(p)
5219 __swig_destroy__ = _IMP_core.delete_Cover
5222 _IMP_core.Cover_swigregister(Cover)
5224 r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5228 def __init__(self, *args):
5229 r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5230 _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5232 def do_get_inputs(self, m, pis):
5233 r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5234 return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5236 def do_get_outputs(self, m, pis):
5237 r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5238 return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5240 def get_version_info(self):
5241 r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5242 return _IMP_core.DerivativesFromRefined_get_version_info(self)
5243 __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5246 r"""__str__(DerivativesFromRefined self) -> std::string"""
5247 return _IMP_core.DerivativesFromRefined___str__(self)
5250 r"""__repr__(DerivativesFromRefined self) -> std::string"""
5251 return _IMP_core.DerivativesFromRefined___repr__(self)
5255 return _object_cast_to_DerivativesFromRefined(o)
5259 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5261 r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5263 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5265 def __init__(self, *args):
5266 r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5267 _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5269 def do_get_inputs(self, m, pis):
5270 r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5271 return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5273 def do_get_outputs(self, m, pis):
5274 r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5275 return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5277 def get_version_info(self):
5278 r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5279 return _IMP_core.DerivativesToRefined_get_version_info(self)
5280 __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5283 r"""__str__(DerivativesToRefined self) -> std::string"""
5284 return _IMP_core.DerivativesToRefined___str__(self)
5287 r"""__repr__(DerivativesToRefined self) -> std::string"""
5288 return _IMP_core.DerivativesToRefined___repr__(self)
5292 return _object_cast_to_DerivativesToRefined(o)
5296 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5298 r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5300 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5302 def __init__(self, f, sc, diameter):
5303 r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5304 _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5306 def do_get_inputs(self):
5307 r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5308 return _IMP_core.DiameterRestraint_do_get_inputs(self)
5310 def get_version_info(self):
5311 r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5312 return _IMP_core.DiameterRestraint_get_version_info(self)
5313 __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5315 def do_create_decomposition(self):
5316 r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5317 return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5319 def do_create_current_decomposition(self):
5320 r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5321 return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5324 r"""__str__(DiameterRestraint self) -> std::string"""
5325 return _IMP_core.DiameterRestraint___str__(self)
5328 r"""__repr__(DiameterRestraint self) -> std::string"""
5329 return _IMP_core.DiameterRestraint___repr__(self)
5333 return _object_cast_to_DiameterRestraint(o)
5337 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5339 r"""Proxy of C++ IMP::core::Transform class."""
5341 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5343 def __init__(self, *args):
5345 __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5346 __init__(Transform self) -> Transform
5348 _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5350 def do_get_inputs(self, m, pis):
5351 r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5352 return _IMP_core.Transform_do_get_inputs(self, m, pis)
5354 def do_get_outputs(self, m, pis):
5355 r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5356 return _IMP_core.Transform_do_get_outputs(self, m, pis)
5358 def get_version_info(self):
5359 r"""get_version_info(Transform self) -> VersionInfo"""
5360 return _IMP_core.Transform_get_version_info(self)
5361 __swig_destroy__ = _IMP_core.delete_Transform
5364 r"""__str__(Transform self) -> std::string"""
5365 return _IMP_core.Transform___str__(self)
5368 r"""__repr__(Transform self) -> std::string"""
5369 return _IMP_core.Transform___repr__(self)
5373 return _object_cast_to_Transform(o)
5376 def _get_as_binary(self):
5377 r"""_get_as_binary(Transform self) -> PyObject *"""
5378 return _IMP_core.Transform__get_as_binary(self)
5380 def _set_from_binary(self, p):
5381 r"""_set_from_binary(Transform self, PyObject * p)"""
5382 return _IMP_core.Transform__set_from_binary(self, p)
5384 def __getstate__(self):
5385 p = self._get_as_binary()
5386 if len(self.__dict__) > 1:
5387 d = self.__dict__.copy()
5392 def __setstate__(self, p):
5393 if not hasattr(self,
'this'):
5395 if isinstance(p, tuple):
5397 self.__dict__.update(d)
5398 return self._set_from_binary(p)
5402 _IMP_core.Transform_swigregister(Transform)
5404 r"""Proxy of C++ IMP::core::Reference class."""
5406 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5408 def __init__(self, *args):
5410 __init__(Reference self) -> Reference
5411 __init__(Reference self, Model m, ParticleIndex id) -> Reference
5412 __init__(Reference self, _ParticleAdaptor d) -> Reference
5414 _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5416 def show(self, *args):
5417 r"""show(Reference self, _ostream out=std::cout)"""
5418 return _IMP_core.Reference_show(self, *args)
5421 def setup_particle(*args):
5423 setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5424 setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5426 return _IMP_core.Reference_setup_particle(*args)
5428 def get_reference_particle(self):
5429 r"""get_reference_particle(Reference self) -> Particle"""
5430 return _IMP_core.Reference_get_reference_particle(self)
5433 def get_is_setup(*args):
5435 get_is_setup(_ParticleAdaptor p) -> bool
5436 get_is_setup(Model m, ParticleIndex pi) -> bool
5438 return _IMP_core.Reference_get_is_setup(*args)
5441 def get_reference_key():
5442 r"""get_reference_key() -> ParticleIndexKey"""
5443 return _IMP_core.Reference_get_reference_key()
5445 def add_attribute(self, *args):
5447 add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5448 add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5449 add_attribute(Reference self, IntKey a0, IMP::Int a1)
5450 add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5451 add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5452 add_attribute(Reference self, StringKey a0, IMP::String a1)
5453 add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5454 add_attribute(Reference self, ObjectKey a0, Object a1)
5455 add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5456 add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5457 add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5458 add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5460 return _IMP_core.Reference_add_attribute(self, *args)
5462 def get_value(self, *args):
5464 get_value(Reference self, FloatKey a0) -> IMP::Float
5465 get_value(Reference self, IntKey a0) -> IMP::Int
5466 get_value(Reference self, FloatsKey a0) -> IMP::Floats
5467 get_value(Reference self, IntsKey a0) -> IMP::Ints
5468 get_value(Reference self, StringKey a0) -> IMP::String
5469 get_value(Reference self, ParticleIndexKey a0) -> Particle
5470 get_value(Reference self, ObjectKey a0) -> Object
5471 get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5472 get_value(Reference self, SparseIntKey a0) -> IMP::Int
5473 get_value(Reference self, SparseStringKey a0) -> IMP::String
5474 get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5476 return _IMP_core.Reference_get_value(self, *args)
5478 def set_value(self, *args):
5480 set_value(Reference self, FloatKey a0, IMP::Float a1)
5481 set_value(Reference self, IntKey a0, IMP::Int a1)
5482 set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5483 set_value(Reference self, IntsKey a0, IMP::Ints a1)
5484 set_value(Reference self, StringKey a0, IMP::String a1)
5485 set_value(Reference self, ParticleIndexKey a0, Particle a1)
5486 set_value(Reference self, ObjectKey a0, Object a1)
5487 set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5488 set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5489 set_value(Reference self, SparseStringKey a0, IMP::String a1)
5490 set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5492 return _IMP_core.Reference_set_value(self, *args)
5494 def remove_attribute(self, *args):
5496 remove_attribute(Reference self, FloatKey a0)
5497 remove_attribute(Reference self, IntKey a0)
5498 remove_attribute(Reference self, FloatsKey a0)
5499 remove_attribute(Reference self, IntsKey a0)
5500 remove_attribute(Reference self, StringKey a0)
5501 remove_attribute(Reference self, ParticleIndexKey a0)
5502 remove_attribute(Reference self, ObjectKey a0)
5503 remove_attribute(Reference self, SparseFloatKey a0)
5504 remove_attribute(Reference self, SparseIntKey a0)
5505 remove_attribute(Reference self, SparseStringKey a0)
5506 remove_attribute(Reference self, SparseParticleIndexKey a0)
5508 return _IMP_core.Reference_remove_attribute(self, *args)
5510 def has_attribute(self, *args):
5512 has_attribute(Reference self, FloatKey a0) -> bool
5513 has_attribute(Reference self, IntKey a0) -> bool
5514 has_attribute(Reference self, FloatsKey a0) -> bool
5515 has_attribute(Reference self, IntsKey a0) -> bool
5516 has_attribute(Reference self, StringKey a0) -> bool
5517 has_attribute(Reference self, ParticleIndexKey a0) -> bool
5518 has_attribute(Reference self, ObjectKey a0) -> bool
5519 has_attribute(Reference self, SparseFloatKey a0) -> bool
5520 has_attribute(Reference self, SparseIntKey a0) -> bool
5521 has_attribute(Reference self, SparseStringKey a0) -> bool
5522 has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5524 return _IMP_core.Reference_has_attribute(self, *args)
5526 def get_derivative(self, a0):
5527 r"""get_derivative(Reference self, FloatKey a0) -> double"""
5528 return _IMP_core.Reference_get_derivative(self, a0)
5531 r"""get_name(Reference self) -> std::string"""
5532 return _IMP_core.Reference_get_name(self)
5534 def clear_caches(self):
5535 r"""clear_caches(Reference self)"""
5536 return _IMP_core.Reference_clear_caches(self)
5538 def set_name(self, a0):
5539 r"""set_name(Reference self, std::string a0)"""
5540 return _IMP_core.Reference_set_name(self, a0)
5543 r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5544 return _IMP_core.Reference_set_check_level(self, a0)
5546 def add_to_derivative(self, a0, a1, a2):
5547 r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5548 return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5550 def set_is_optimized(self, a0, a1):
5551 r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5552 return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5554 def get_is_optimized(self, a0):
5555 r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5556 return _IMP_core.Reference_get_is_optimized(self, a0)
5559 r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5560 return _IMP_core.Reference_get_check_level(self)
5562 def __eq__(self, *args):
5564 __eq__(Reference self, Reference o) -> bool
5565 __eq__(Reference self, Particle d) -> bool
5567 return _IMP_core.Reference___eq__(self, *args)
5569 def __ne__(self, *args):
5571 __ne__(Reference self, Reference o) -> bool
5572 __ne__(Reference self, Particle d) -> bool
5574 return _IMP_core.Reference___ne__(self, *args)
5576 def __le__(self, *args):
5578 __le__(Reference self, Reference o) -> bool
5579 __le__(Reference self, Particle d) -> bool
5581 return _IMP_core.Reference___le__(self, *args)
5583 def __lt__(self, *args):
5585 __lt__(Reference self, Reference o) -> bool
5586 __lt__(Reference self, Particle d) -> bool
5588 return _IMP_core.Reference___lt__(self, *args)
5590 def __ge__(self, *args):
5592 __ge__(Reference self, Reference o) -> bool
5593 __ge__(Reference self, Particle d) -> bool
5595 return _IMP_core.Reference___ge__(self, *args)
5597 def __gt__(self, *args):
5599 __gt__(Reference self, Reference o) -> bool
5600 __gt__(Reference self, Particle d) -> bool
5602 return _IMP_core.Reference___gt__(self, *args)
5605 r"""__hash__(Reference self) -> std::size_t"""
5606 return _IMP_core.Reference___hash__(self)
5609 r"""__str__(Reference self) -> std::string"""
5610 return _IMP_core.Reference___str__(self)
5613 r"""__repr__(Reference self) -> std::string"""
5614 return _IMP_core.Reference___repr__(self)
5616 def _get_as_binary(self):
5617 r"""_get_as_binary(Reference self) -> PyObject *"""
5618 return _IMP_core.Reference__get_as_binary(self)
5620 def _set_from_binary(self, p):
5621 r"""_set_from_binary(Reference self, PyObject * p)"""
5622 return _IMP_core.Reference__set_from_binary(self, p)
5624 def __getstate__(self):
5625 p = self._get_as_binary()
5626 if len(self.__dict__) > 1:
5627 d = self.__dict__.copy()
5632 def __setstate__(self, p):
5633 if not hasattr(self,
'this'):
5635 if isinstance(p, tuple):
5637 self.__dict__.update(d)
5638 return self._set_from_binary(p)
5640 __swig_destroy__ = _IMP_core.delete_Reference
5643 _IMP_core.Reference_swigregister(Reference)
5645 r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5647 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5649 def __init__(self, t, r):
5650 r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5651 _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5653 def do_get_inputs(self, m, pis):
5654 r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5655 return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5657 def do_get_outputs(self, m, pis):
5658 r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5659 return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5661 def get_version_info(self):
5662 r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5663 return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5664 __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5667 r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5668 return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5671 r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5672 return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5676 return _object_cast_to_TransformationAndReflectionSymmetry(o)
5680 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5682 r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5684 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5686 def __init__(self, *args):
5688 __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5689 __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5691 _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5693 def get_transformation(self):
5694 r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5695 return _IMP_core.TransformationSymmetry_get_transformation(self)
5697 def set_transformation(self, t):
5698 r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5699 return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5701 def do_get_inputs(self, m, pis):
5702 r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5703 return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5705 def do_get_outputs(self, m, pis):
5706 r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5707 return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5709 def get_version_info(self):
5710 r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5711 return _IMP_core.TransformationSymmetry_get_version_info(self)
5712 __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5715 r"""__str__(TransformationSymmetry self) -> std::string"""
5716 return _IMP_core.TransformationSymmetry___str__(self)
5719 r"""__repr__(TransformationSymmetry self) -> std::string"""
5720 return _IMP_core.TransformationSymmetry___repr__(self)
5724 return _object_cast_to_TransformationSymmetry(o)
5728 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5729 class TransformationSymmetryMover(MonteCarloMover):
5730 r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5732 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5734 def __init__(self, m, symm, pivot, max_translation, max_rotation):
5735 r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5736 _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5738 def set_maximum_translation(self, mt):
5739 r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5740 return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5742 def set_maximum_rotation(self, mr):
5743 r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5744 return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5746 def get_maximum_translation(self):
5747 r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5748 return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5750 def get_maximum_rotation(self):
5751 r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5752 return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5754 def get_version_info(self):
5755 r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5756 return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5757 __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5760 r"""__str__(TransformationSymmetryMover self) -> std::string"""
5761 return _IMP_core.TransformationSymmetryMover___str__(self)
5764 r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5765 return _IMP_core.TransformationSymmetryMover___repr__(self)
5769 return _object_cast_to_TransformationSymmetryMover(o)
5773 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5775 r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5777 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5779 def __init__(self, m, score_func, p1, p2, p3, p4):
5780 r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5781 _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5783 def do_get_inputs(self):
5784 r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5785 return _IMP_core.DihedralRestraint_do_get_inputs(self)
5787 def get_version_info(self):
5788 r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5789 return _IMP_core.DihedralRestraint_get_version_info(self)
5790 __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5793 r"""__str__(DihedralRestraint self) -> std::string"""
5794 return _IMP_core.DihedralRestraint___str__(self)
5797 r"""__repr__(DihedralRestraint self) -> std::string"""
5798 return _IMP_core.DihedralRestraint___repr__(self)
5802 return _object_cast_to_DihedralRestraint(o)
5806 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5808 r"""Proxy of C++ IMP::core::DistancePairScore class."""
5810 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5812 def __init__(self, *args):
5814 __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5815 __init__(DistancePairScore self) -> DistancePairScore
5817 _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5819 def do_get_inputs(self, m, pis):
5820 r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5821 return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5823 def get_version_info(self):
5824 r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5825 return _IMP_core.DistancePairScore_get_version_info(self)
5826 __swig_destroy__ = _IMP_core.delete_DistancePairScore
5829 r"""__str__(DistancePairScore self) -> std::string"""
5830 return _IMP_core.DistancePairScore___str__(self)
5833 r"""__repr__(DistancePairScore self) -> std::string"""
5834 return _IMP_core.DistancePairScore___repr__(self)
5838 return _object_cast_to_DistancePairScore(o)
5841 def _get_as_binary(self):
5842 r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5843 return _IMP_core.DistancePairScore__get_as_binary(self)
5845 def _set_from_binary(self, p):
5846 r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5847 return _IMP_core.DistancePairScore__set_from_binary(self, p)
5849 def __getstate__(self):
5850 p = self._get_as_binary()
5851 if len(self.__dict__) > 1:
5852 d = self.__dict__.copy()
5857 def __setstate__(self, p):
5858 if not hasattr(self,
'this'):
5860 if isinstance(p, tuple):
5862 self.__dict__.update(d)
5863 return self._set_from_binary(p)
5867 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5869 r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5871 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5873 def __init__(self, *args):
5875 __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5876 __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5878 _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5880 def do_get_inputs(self, m, pis):
5881 r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5882 return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5885 r"""get_x0(HarmonicDistancePairScore self) -> double"""
5886 return _IMP_core.HarmonicDistancePairScore_get_x0(self)
5889 r"""get_k(HarmonicDistancePairScore self) -> double"""
5890 return _IMP_core.HarmonicDistancePairScore_get_k(self)
5892 def get_version_info(self):
5893 r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5894 return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5895 __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5898 r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5899 return _IMP_core.HarmonicDistancePairScore___str__(self)
5902 r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5903 return _IMP_core.HarmonicDistancePairScore___repr__(self)
5907 return _object_cast_to_HarmonicDistancePairScore(o)
5910 def _get_as_binary(self):
5911 r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5912 return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5914 def _set_from_binary(self, p):
5915 r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5916 return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5918 def __getstate__(self):
5919 p = self._get_as_binary()
5920 if len(self.__dict__) > 1:
5921 d = self.__dict__.copy()
5926 def __setstate__(self, p):
5927 if not hasattr(self,
'this'):
5929 if isinstance(p, tuple):
5931 self.__dict__.update(d)
5932 return self._set_from_binary(p)
5936 import jax.numpy
as jnp
5938 def jax_harmonic_distance_pair_score(X, indexes, d, k):
5939 xyzs = X[
'xyz'][indexes]
5940 diff = xyzs[:,0] - xyzs[:,1]
5941 drs = jnp.linalg.norm(diff, axis=1)
5942 return 0.5 * k * (d - drs)**2
5943 f = functools.partial(jax_harmonic_distance_pair_score,
5944 d=self.get_x0(), k=self.get_k())
5945 return self._wrap_jax(f)
5949 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5951 r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5953 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5955 def __init__(self, *args):
5957 __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5958 __init__(DistanceRestraint self) -> DistanceRestraint
5960 _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5962 def get_version_info(self):
5963 r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5964 return _IMP_core.DistanceRestraint_get_version_info(self)
5965 __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5968 r"""__str__(DistanceRestraint self) -> std::string"""
5969 return _IMP_core.DistanceRestraint___str__(self)
5972 r"""__repr__(DistanceRestraint self) -> std::string"""
5973 return _IMP_core.DistanceRestraint___repr__(self)
5977 return _object_cast_to_DistanceRestraint(o)
5980 def _get_as_binary(self):
5981 r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5982 return _IMP_core.DistanceRestraint__get_as_binary(self)
5984 def _set_from_binary(self, p):
5985 r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5986 return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5988 def __getstate__(self):
5989 p = self._get_as_binary()
5990 if len(self.__dict__) > 1:
5991 d = self.__dict__.copy()
5996 def __setstate__(self, p):
5997 if not hasattr(self,
'this'):
5999 if isinstance(p, tuple):
6001 self.__dict__.update(d)
6002 return self._set_from_binary(p)
6006 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
6008 r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
6010 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6012 def __init__(self, f, pt):
6013 r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
6014 _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
6016 def do_get_inputs(self, m, pis):
6017 r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6018 return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
6020 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6021 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"""
6022 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6024 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6025 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"""
6026 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6028 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6029 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"""
6030 return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6032 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6033 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"""
6034 return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6036 def get_version_info(self):
6037 r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
6038 return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6039 __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6042 r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6043 return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6046 r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6047 return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6051 return _object_cast_to_SphereDistanceToSingletonScore(o)
6055 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6057 r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6059 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6061 def __init__(self, *args):
6062 r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6063 _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6065 def do_get_inputs(self):
6066 r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6067 return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6069 def get_version_info(self):
6070 r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6071 return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6072 __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6074 def do_create_decomposition(self):
6075 r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6076 return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6078 def do_create_current_decomposition(self):
6079 r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6080 return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6083 r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6084 return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6085 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)
6086 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6087 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6088 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
6090 def remove_pair_filter(self, d):
6091 r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6092 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6094 def _python_index_pair_filter(self, d, start, stop):
6095 r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6096 return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6098 def remove_pair_filters(self, d):
6099 r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6100 return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6102 def set_pair_filters(self, ps):
6103 r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6104 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6106 def set_pair_filters_order(self, objs):
6107 r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6108 return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6110 def add_pair_filter(self, obj):
6111 r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6112 return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6114 def add_pair_filters(self, objs):
6115 r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6116 return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6118 def clear_pair_filters(self):
6119 r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6120 return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6122 def get_number_of_pair_filters(self):
6123 r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6124 return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6126 def get_has_pair_filters(self):
6127 r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6128 return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6130 def get_pair_filter(self, i):
6131 r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6132 return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6134 def get_pair_filters(self):
6135 r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6136 return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6138 def erase_pair_filter(self, i):
6139 r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6140 return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6142 def reserve_pair_filters(self, sz):
6143 r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6144 return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6147 r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6148 return _IMP_core.ExcludedVolumeRestraint___str__(self)
6151 r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6152 return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6156 return _object_cast_to_ExcludedVolumeRestraint(o)
6160 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6162 r"""Proxy of C++ IMP::core::FixedRefiner class."""
6164 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6166 def __init__(self, *args):
6168 __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6169 __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6171 _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6173 def do_get_inputs(self, m, pis):
6174 r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6175 return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6177 def get_version_info(self):
6178 r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6179 return _IMP_core.FixedRefiner_get_version_info(self)
6180 __swig_destroy__ = _IMP_core.delete_FixedRefiner
6183 r"""__str__(FixedRefiner self) -> std::string"""
6184 return _IMP_core.FixedRefiner___str__(self)
6187 r"""__repr__(FixedRefiner self) -> std::string"""
6188 return _IMP_core.FixedRefiner___repr__(self)
6192 return _object_cast_to_FixedRefiner(o)
6196 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6197 class GridClosePairsFinder(ClosePairsFinder):
6198 r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6200 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6203 r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6204 _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6206 def get_close_pairs(self, *args):
6208 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6209 get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6210 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6211 get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6213 return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6215 def do_get_inputs(self, m, pis):
6216 r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6217 return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6219 def get_version_info(self):
6220 r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6221 return _IMP_core.GridClosePairsFinder_get_version_info(self)
6222 __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6225 r"""__str__(GridClosePairsFinder self) -> std::string"""
6226 return _IMP_core.GridClosePairsFinder___str__(self)
6229 r"""__repr__(GridClosePairsFinder self) -> std::string"""
6230 return _IMP_core.GridClosePairsFinder___repr__(self)
6234 return _object_cast_to_GridClosePairsFinder(o)
6237 def _get_as_binary(self):
6238 r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6239 return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6241 def _set_from_binary(self, p):
6242 r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6243 return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6245 def __getstate__(self):
6246 p = self._get_as_binary()
6247 if len(self.__dict__) > 1:
6248 d = self.__dict__.copy()
6253 def __setstate__(self, p):
6254 if not hasattr(self,
'this'):
6256 if isinstance(p, tuple):
6258 self.__dict__.update(d)
6259 return self._set_from_binary(p)
6263 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6265 r"""Proxy of C++ IMP::core::Harmonic class."""
6267 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6269 def __init__(self, *args):
6271 __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6272 __init__(Harmonic self) -> Harmonic
6274 _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6276 def get_version_info(self):
6277 r"""get_version_info(Harmonic self) -> VersionInfo"""
6278 return _IMP_core.Harmonic_get_version_info(self)
6279 __swig_destroy__ = _IMP_core.delete_Harmonic
6282 r"""get_mean(Harmonic self) -> IMP::Float"""
6283 return _IMP_core.Harmonic_get_mean(self)
6286 r"""get_k(Harmonic self) -> IMP::Float"""
6287 return _IMP_core.Harmonic_get_k(self)
6289 def set_mean(self, mean):
6290 r"""set_mean(Harmonic self, IMP::Float mean)"""
6291 return _IMP_core.Harmonic_set_mean(self, mean)
6294 r"""set_k(Harmonic self, IMP::Float k)"""
6295 return _IMP_core.Harmonic_set_k(self, k)
6298 def get_k_from_standard_deviation(sd, t=297.15):
6299 r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6300 return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6303 r"""__str__(Harmonic self) -> std::string"""
6304 return _IMP_core.Harmonic___str__(self)
6307 r"""__repr__(Harmonic self) -> std::string"""
6308 return _IMP_core.Harmonic___repr__(self)
6312 return _object_cast_to_Harmonic(o)
6315 def _get_as_binary(self):
6316 r"""_get_as_binary(Harmonic self) -> PyObject *"""
6317 return _IMP_core.Harmonic__get_as_binary(self)
6319 def _set_from_binary(self, p):
6320 r"""_set_from_binary(Harmonic self, PyObject * p)"""
6321 return _IMP_core.Harmonic__set_from_binary(self, p)
6323 def __getstate__(self):
6324 p = self._get_as_binary()
6325 if len(self.__dict__) > 1:
6326 d = self.__dict__.copy()
6331 def __setstate__(self, p):
6332 if not hasattr(self,
'this'):
6334 if isinstance(p, tuple):
6336 self.__dict__.update(d)
6337 return self._set_from_binary(p)
6342 def score(val, mean, k):
6343 return 0.5 * k * (mean - val) ** 2
6344 return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6348 _IMP_core.Harmonic_swigregister(Harmonic)
6350 r"""Proxy of C++ IMP::core::HarmonicWell class."""
6352 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6354 def __init__(self, well, k):
6355 r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6356 _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6358 def get_version_info(self):
6359 r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6360 return _IMP_core.HarmonicWell_get_version_info(self)
6361 __swig_destroy__ = _IMP_core.delete_HarmonicWell
6364 r"""__str__(HarmonicWell self) -> std::string"""
6365 return _IMP_core.HarmonicWell___str__(self)
6368 r"""__repr__(HarmonicWell self) -> std::string"""
6369 return _IMP_core.HarmonicWell___repr__(self)
6373 return _object_cast_to_HarmonicWell(o)
6377 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6378 class HarmonicLowerBound(Harmonic):
6379 r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6381 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6383 def __init__(self, *args):
6385 __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6386 __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6388 _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6389 __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6392 r"""__str__(HarmonicLowerBound self) -> std::string"""
6393 return _IMP_core.HarmonicLowerBound___str__(self)
6396 r"""__repr__(HarmonicLowerBound self) -> std::string"""
6397 return _IMP_core.HarmonicLowerBound___repr__(self)
6401 return _object_cast_to_HarmonicLowerBound(o)
6404 def _get_as_binary(self):
6405 r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6406 return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6408 def _set_from_binary(self, p):
6409 r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6410 return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6412 def __getstate__(self):
6413 p = self._get_as_binary()
6414 if len(self.__dict__) > 1:
6415 d = self.__dict__.copy()
6420 def __setstate__(self, p):
6421 if not hasattr(self,
'this'):
6423 if isinstance(p, tuple):
6425 self.__dict__.update(d)
6426 return self._set_from_binary(p)
6432 def score(val, mean, k):
6433 return 0.5 * k * jax.lax.max(mean - val, 0.0) ** 2
6434 return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6438 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6439 class HarmonicUpperBound(Harmonic):
6440 r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6442 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6444 def __init__(self, *args):
6446 __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6447 __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6449 _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6450 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6453 r"""__str__(HarmonicUpperBound self) -> std::string"""
6454 return _IMP_core.HarmonicUpperBound___str__(self)
6457 r"""__repr__(HarmonicUpperBound self) -> std::string"""
6458 return _IMP_core.HarmonicUpperBound___repr__(self)
6462 return _object_cast_to_HarmonicUpperBound(o)
6465 def _get_as_binary(self):
6466 r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6467 return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6469 def _set_from_binary(self, p):
6470 r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6471 return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6473 def __getstate__(self):
6474 p = self._get_as_binary()
6475 if len(self.__dict__) > 1:
6476 d = self.__dict__.copy()
6481 def __setstate__(self, p):
6482 if not hasattr(self,
'this'):
6484 if isinstance(p, tuple):
6486 self.__dict__.update(d)
6487 return self._set_from_binary(p)
6493 def score(val, mean, k):
6494 return 0.5 * k * jax.lax.min(mean - val, 0.0) ** 2
6495 return functools.partial(score, mean=self.get_mean(), k=self.get_k())
6499 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6501 r"""Proxy of C++ IMP::core::WeightedSum class."""
6503 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6505 def __init__(self, funcs, weights):
6506 r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6507 _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6509 def get_function_number(self):
6510 r"""get_function_number(WeightedSum self) -> unsigned int"""
6511 return _IMP_core.WeightedSum_get_function_number(self)
6513 def set_weights(self, weights):
6514 r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6515 return _IMP_core.WeightedSum_set_weights(self, weights)
6517 def get_weights(self):
6518 r"""get_weights(WeightedSum self) -> IMP::Floats"""
6519 return _IMP_core.WeightedSum_get_weights(self)
6521 def get_weight(self, i):
6522 r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6523 return _IMP_core.WeightedSum_get_weight(self, i)
6525 def get_function(self, i):
6526 r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6527 return _IMP_core.WeightedSum_get_function(self, i)
6529 def get_version_info(self):
6530 r"""get_version_info(WeightedSum self) -> VersionInfo"""
6531 return _IMP_core.WeightedSum_get_version_info(self)
6532 __swig_destroy__ = _IMP_core.delete_WeightedSum
6535 r"""__str__(WeightedSum self) -> std::string"""
6536 return _IMP_core.WeightedSum___str__(self)
6539 r"""__repr__(WeightedSum self) -> std::string"""
6540 return _IMP_core.WeightedSum___repr__(self)
6544 return _object_cast_to_WeightedSum(o)
6548 _IMP_core.WeightedSum_swigregister(WeightedSum)
6550 r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6552 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6554 def __init__(self, funcs, weights, denom=1.0):
6555 r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6556 _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6558 def get_function_number(self):
6559 r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6560 return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6562 def set_weights(self, weights):
6563 r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6564 return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6566 def get_weights(self):
6567 r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6568 return _IMP_core.WeightedSumOfExponential_get_weights(self)
6570 def get_weight(self, i):
6571 r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6572 return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6574 def get_function(self, i):
6575 r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6576 return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6578 def set_denominator(self, denom):
6579 r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6580 return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6582 def get_denominator(self):
6583 r"""get_denominator(WeightedSumOfExponential self) -> double"""
6584 return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6586 def get_version_info(self):
6587 r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6588 return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6589 __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6592 r"""__str__(WeightedSumOfExponential self) -> std::string"""
6593 return _IMP_core.WeightedSumOfExponential___str__(self)
6596 r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6597 return _IMP_core.WeightedSumOfExponential___repr__(self)
6601 return _object_cast_to_WeightedSumOfExponential(o)
6605 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6607 r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6609 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6611 def __init__(self, m, ps, eps=0.1):
6612 r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6613 _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6615 def add_type(self, ps):
6616 r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6617 return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6619 def add_composite(self, *args):
6621 add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6622 add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6624 return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6626 def get_connected_pairs(self):
6627 r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6628 return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6630 def get_pair_score(self):
6631 r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6632 return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6634 def do_create_current_decomposition(self):
6635 r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6636 return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6638 def do_get_inputs(self):
6639 r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6640 return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6642 def get_version_info(self):
6643 r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6644 return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6645 __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6648 r"""__str__(MSConnectivityRestraint self) -> std::string"""
6649 return _IMP_core.MSConnectivityRestraint___str__(self)
6652 r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6653 return _IMP_core.MSConnectivityRestraint___repr__(self)
6657 return _object_cast_to_MSConnectivityRestraint(o)
6661 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6662 class HierarchyTraits(object):
6663 r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6665 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6667 def __init__(self, *args):
6669 __init__(HierarchyTraits self) -> HierarchyTraits
6670 __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6672 _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6674 def get_children_key(self):
6675 r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6676 return _IMP_core.HierarchyTraits_get_children_key(self)
6678 def get_parent_key(self):
6679 r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6680 return _IMP_core.HierarchyTraits_get_parent_key(self)
6682 def __eq__(self, o):
6683 r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6684 return _IMP_core.HierarchyTraits___eq__(self, o)
6686 def show(self, *args):
6687 r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6688 return _IMP_core.HierarchyTraits_show(self, *args)
6691 r"""__str__(HierarchyTraits self) -> std::string"""
6692 return _IMP_core.HierarchyTraits___str__(self)
6695 r"""__repr__(HierarchyTraits self) -> std::string"""
6696 return _IMP_core.HierarchyTraits___repr__(self)
6697 __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6700 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6702 r"""Proxy of C++ IMP::core::Hierarchy class."""
6704 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6706 def get_decorator_traits(self):
6707 r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6708 return _IMP_core.Hierarchy_get_decorator_traits(self)
6711 def get_default_decorator_traits():
6712 r"""get_default_decorator_traits() -> HierarchyTraits"""
6713 return _IMP_core.Hierarchy_get_default_decorator_traits()
6715 def __init__(self, *args):
6717 __init__(Hierarchy self) -> Hierarchy
6718 __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6719 __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6721 _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6723 def show(self, *args):
6724 r"""show(Hierarchy self, _ostream out=std::cout)"""
6725 return _IMP_core.Hierarchy_show(self, *args)
6728 def setup_particle(*args):
6730 setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6731 setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6732 setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6733 setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6734 setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6735 setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6737 return _IMP_core.Hierarchy_setup_particle(*args)
6740 def get_is_setup(*args):
6742 get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6743 get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6745 return _IMP_core.Hierarchy_get_is_setup(*args)
6748 def get_changed_key():
6749 r"""get_changed_key() -> TriggerKey"""
6750 return _IMP_core.Hierarchy_get_changed_key()
6752 def get_parent(self):
6753 r"""get_parent(Hierarchy self) -> Hierarchy"""
6754 return _IMP_core.Hierarchy_get_parent(self)
6756 def get_number_of_children(self):
6757 r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6758 return _IMP_core.Hierarchy_get_number_of_children(self)
6760 def get_child(self, i):
6761 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6762 return _IMP_core.Hierarchy_get_child(self, i)
6764 def get_children_indexes(self):
6765 r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6766 return _IMP_core.Hierarchy_get_children_indexes(self)
6768 def get_children(self):
6769 r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6770 return _IMP_core.Hierarchy_get_children(self)
6772 def remove_child(self, *args):
6774 remove_child(Hierarchy self, unsigned int i)
6775 remove_child(Hierarchy self, Hierarchy h)
6777 return _IMP_core.Hierarchy_remove_child(self, *args)
6779 def clear_children(self):
6780 r"""clear_children(Hierarchy self)"""
6781 return _IMP_core.Hierarchy_clear_children(self)
6783 def add_child(self, h):
6784 r"""add_child(Hierarchy self, Hierarchy h)"""
6785 return _IMP_core.Hierarchy_add_child(self, h)
6787 def add_child_at(self, h, pos):
6788 r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6789 return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6791 def get_child_index(self, *args):
6793 get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6794 get_child_index(Hierarchy self) -> int
6796 return _IMP_core.Hierarchy_get_child_index(self, *args)
6799 def get_default_traits():
6800 r"""get_default_traits() -> HierarchyTraits"""
6801 return _IMP_core.Hierarchy_get_default_traits()
6803 def get_traits(self):
6804 r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6805 return _IMP_core.Hierarchy_get_traits(self)
6807 def add_attribute(self, *args):
6809 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6810 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6811 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6812 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6813 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6814 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6815 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6816 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6817 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6818 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6819 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6820 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6822 return _IMP_core.Hierarchy_add_attribute(self, *args)
6824 def get_value(self, *args):
6826 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6827 get_value(Hierarchy self, IntKey a0) -> IMP::Int
6828 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6829 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6830 get_value(Hierarchy self, StringKey a0) -> IMP::String
6831 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6832 get_value(Hierarchy self, ObjectKey a0) -> Object
6833 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6834 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6835 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6836 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6838 return _IMP_core.Hierarchy_get_value(self, *args)
6840 def set_value(self, *args):
6842 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6843 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6844 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6845 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6846 set_value(Hierarchy self, StringKey a0, IMP::String a1)
6847 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6848 set_value(Hierarchy self, ObjectKey a0, Object a1)
6849 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6850 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6851 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6852 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6854 return _IMP_core.Hierarchy_set_value(self, *args)
6856 def remove_attribute(self, *args):
6858 remove_attribute(Hierarchy self, FloatKey a0)
6859 remove_attribute(Hierarchy self, IntKey a0)
6860 remove_attribute(Hierarchy self, FloatsKey a0)
6861 remove_attribute(Hierarchy self, IntsKey a0)
6862 remove_attribute(Hierarchy self, StringKey a0)
6863 remove_attribute(Hierarchy self, ParticleIndexKey a0)
6864 remove_attribute(Hierarchy self, ObjectKey a0)
6865 remove_attribute(Hierarchy self, SparseFloatKey a0)
6866 remove_attribute(Hierarchy self, SparseIntKey a0)
6867 remove_attribute(Hierarchy self, SparseStringKey a0)
6868 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6870 return _IMP_core.Hierarchy_remove_attribute(self, *args)
6872 def has_attribute(self, *args):
6874 has_attribute(Hierarchy self, FloatKey a0) -> bool
6875 has_attribute(Hierarchy self, IntKey a0) -> bool
6876 has_attribute(Hierarchy self, FloatsKey a0) -> bool
6877 has_attribute(Hierarchy self, IntsKey a0) -> bool
6878 has_attribute(Hierarchy self, StringKey a0) -> bool
6879 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6880 has_attribute(Hierarchy self, ObjectKey a0) -> bool
6881 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6882 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6883 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6884 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6886 return _IMP_core.Hierarchy_has_attribute(self, *args)
6888 def get_derivative(self, a0):
6889 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6890 return _IMP_core.Hierarchy_get_derivative(self, a0)
6893 r"""get_name(Hierarchy self) -> std::string"""
6894 return _IMP_core.Hierarchy_get_name(self)
6896 def clear_caches(self):
6897 r"""clear_caches(Hierarchy self)"""
6898 return _IMP_core.Hierarchy_clear_caches(self)
6900 def set_name(self, a0):
6901 r"""set_name(Hierarchy self, std::string a0)"""
6902 return _IMP_core.Hierarchy_set_name(self, a0)
6905 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6906 return _IMP_core.Hierarchy_set_check_level(self, a0)
6908 def add_to_derivative(self, a0, a1, a2):
6909 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6910 return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6912 def set_is_optimized(self, a0, a1):
6913 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6914 return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6916 def get_is_optimized(self, a0):
6917 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6918 return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6921 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6922 return _IMP_core.Hierarchy_get_check_level(self)
6924 def __eq__(self, *args):
6926 __eq__(Hierarchy self, Hierarchy o) -> bool
6927 __eq__(Hierarchy self, Particle d) -> bool
6929 return _IMP_core.Hierarchy___eq__(self, *args)
6931 def __ne__(self, *args):
6933 __ne__(Hierarchy self, Hierarchy o) -> bool
6934 __ne__(Hierarchy self, Particle d) -> bool
6936 return _IMP_core.Hierarchy___ne__(self, *args)
6938 def __le__(self, *args):
6940 __le__(Hierarchy self, Hierarchy o) -> bool
6941 __le__(Hierarchy self, Particle d) -> bool
6943 return _IMP_core.Hierarchy___le__(self, *args)
6945 def __lt__(self, *args):
6947 __lt__(Hierarchy self, Hierarchy o) -> bool
6948 __lt__(Hierarchy self, Particle d) -> bool
6950 return _IMP_core.Hierarchy___lt__(self, *args)
6952 def __ge__(self, *args):
6954 __ge__(Hierarchy self, Hierarchy o) -> bool
6955 __ge__(Hierarchy self, Particle d) -> bool
6957 return _IMP_core.Hierarchy___ge__(self, *args)
6959 def __gt__(self, *args):
6961 __gt__(Hierarchy self, Hierarchy o) -> bool
6962 __gt__(Hierarchy self, Particle d) -> bool
6964 return _IMP_core.Hierarchy___gt__(self, *args)
6967 r"""__hash__(Hierarchy self) -> std::size_t"""
6968 return _IMP_core.Hierarchy___hash__(self)
6971 r"""__str__(Hierarchy self) -> std::string"""
6972 return _IMP_core.Hierarchy___str__(self)
6975 r"""__repr__(Hierarchy self) -> std::string"""
6976 return _IMP_core.Hierarchy___repr__(self)
6977 __swig_destroy__ = _IMP_core.delete_Hierarchy
6980 _IMP_core.Hierarchy_swigregister(Hierarchy)
6981 class HierarchyVisitor(object):
6982 r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6984 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6985 __repr__ = _swig_repr
6988 r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6989 if self.__class__ == HierarchyVisitor:
6993 _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6995 if self.__class__ != HierarchyVisitor:
6996 _director_objects.register(self)
7001 def __call__(self, p):
7002 r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
7003 return _IMP_core.HierarchyVisitor___call__(self, p)
7004 __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
7005 def __disown__(self):
7007 _IMP_core.disown_HierarchyVisitor(self)
7008 return weakref.proxy(self)
7011 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
7012 class ModifierVisitor(HierarchyVisitor):
7013 r"""Proxy of C++ IMP::core::ModifierVisitor class."""
7015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7016 __repr__ = _swig_repr
7018 def __init__(self, sm):
7019 r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
7020 _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
7021 __swig_destroy__ = _IMP_core.delete_ModifierVisitor
7024 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
7025 class HierarchyCounter(HierarchyVisitor):
7026 r"""Proxy of C++ IMP::core::HierarchyCounter class."""
7028 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7031 r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
7032 _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
7034 def get_count(self):
7035 r"""get_count(HierarchyCounter self) -> unsigned int"""
7036 return _IMP_core.HierarchyCounter_get_count(self)
7038 def show(self, *args):
7039 r"""show(HierarchyCounter self, _ostream out=std::cout)"""
7040 return _IMP_core.HierarchyCounter_show(self, *args)
7043 r"""__str__(HierarchyCounter self) -> std::string"""
7044 return _IMP_core.HierarchyCounter___str__(self)
7047 r"""__repr__(HierarchyCounter self) -> std::string"""
7048 return _IMP_core.HierarchyCounter___repr__(self)
7050 def _get_as_binary(self):
7051 r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
7052 return _IMP_core.HierarchyCounter__get_as_binary(self)
7054 def _set_from_binary(self, p):
7055 r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
7056 return _IMP_core.HierarchyCounter__set_from_binary(self, p)
7058 def __getstate__(self):
7059 p = self._get_as_binary()
7060 if len(self.__dict__) > 1:
7061 d = self.__dict__.copy()
7066 def __setstate__(self, p):
7067 if not hasattr(self,
'this'):
7069 if isinstance(p, tuple):
7071 self.__dict__.update(d)
7072 return self._set_from_binary(p)
7074 __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7077 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7080 r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7081 return _IMP_core.get_leaves(mhd)
7084 r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7085 return _IMP_core.get_internal(mhd)
7088 r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7089 return _IMP_core.get_all_descendants(mhd)
7092 r"""get_root(Hierarchy h) -> Hierarchy"""
7093 return _IMP_core.get_root(h)
7096 r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7097 return _IMP_core.visit_breadth_first(d, f)
7100 r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7101 return _IMP_core.visit_depth_first(d, f)
7103 r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7105 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7107 def __init__(self, tr):
7108 r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7109 _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7111 def do_get_inputs(self, m, pis):
7112 r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7113 return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7115 def get_version_info(self):
7116 r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7117 return _IMP_core.LeavesRefiner_get_version_info(self)
7118 __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7121 r"""__str__(LeavesRefiner self) -> std::string"""
7122 return _IMP_core.LeavesRefiner___str__(self)
7125 r"""__repr__(LeavesRefiner self) -> std::string"""
7126 return _IMP_core.LeavesRefiner___repr__(self)
7130 return _object_cast_to_LeavesRefiner(o)
7134 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7136 r"""Proxy of C++ IMP::core::Linear class."""
7138 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7140 def __init__(self, *args):
7142 __init__(Linear self, double offset, double slope) -> Linear
7143 __init__(Linear self) -> Linear
7145 _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7147 def set_slope(self, f):
7148 r"""set_slope(Linear self, double f)"""
7149 return _IMP_core.Linear_set_slope(self, f)
7151 def get_slope(self):
7152 r"""get_slope(Linear self) -> double"""
7153 return _IMP_core.Linear_get_slope(self)
7155 def set_offset(self, f):
7156 r"""set_offset(Linear self, double f)"""
7157 return _IMP_core.Linear_set_offset(self, f)
7159 def get_offset(self):
7160 r"""get_offset(Linear self) -> double"""
7161 return _IMP_core.Linear_get_offset(self)
7163 def get_version_info(self):
7164 r"""get_version_info(Linear self) -> VersionInfo"""
7165 return _IMP_core.Linear_get_version_info(self)
7166 __swig_destroy__ = _IMP_core.delete_Linear
7169 r"""__str__(Linear self) -> std::string"""
7170 return _IMP_core.Linear___str__(self)
7173 r"""__repr__(Linear self) -> std::string"""
7174 return _IMP_core.Linear___repr__(self)
7178 return _object_cast_to_Linear(o)
7181 def _get_as_binary(self):
7182 r"""_get_as_binary(Linear self) -> PyObject *"""
7183 return _IMP_core.Linear__get_as_binary(self)
7185 def _set_from_binary(self, p):
7186 r"""_set_from_binary(Linear self, PyObject * p)"""
7187 return _IMP_core.Linear__set_from_binary(self, p)
7189 def __getstate__(self):
7190 p = self._get_as_binary()
7191 if len(self.__dict__) > 1:
7192 d = self.__dict__.copy()
7197 def __setstate__(self, p):
7198 if not hasattr(self,
'this'):
7200 if isinstance(p, tuple):
7202 self.__dict__.update(d)
7203 return self._set_from_binary(p)
7208 def score(val, slope, offset):
7209 return (val - offset) * slope
7210 return functools.partial(score, slope=self.get_slope(),
7211 offset=self.get_offset())
7215 _IMP_core.Linear_swigregister(Linear)
7216 class LogNormalMover(MonteCarloMover):
7217 r"""Proxy of C++ IMP::core::LogNormalMover class."""
7219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7221 def __init__(self, *args):
7223 __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7224 __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7225 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7226 __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7227 __init__(LogNormalMover self) -> LogNormalMover
7229 _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7231 def set_sigma(self, sigma):
7232 r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7233 return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7235 def get_sigma(self):
7236 r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7237 return _IMP_core.LogNormalMover_get_sigma(self)
7239 def get_version_info(self):
7240 r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7241 return _IMP_core.LogNormalMover_get_version_info(self)
7242 __swig_destroy__ = _IMP_core.delete_LogNormalMover
7245 r"""__str__(LogNormalMover self) -> std::string"""
7246 return _IMP_core.LogNormalMover___str__(self)
7249 r"""__repr__(LogNormalMover self) -> std::string"""
7250 return _IMP_core.LogNormalMover___repr__(self)
7254 return _object_cast_to_LogNormalMover(o)
7257 def _get_as_binary(self):
7258 r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7259 return _IMP_core.LogNormalMover__get_as_binary(self)
7261 def _set_from_binary(self, p):
7262 r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7263 return _IMP_core.LogNormalMover__set_from_binary(self, p)
7265 def __getstate__(self):
7266 p = self._get_as_binary()
7267 if len(self.__dict__) > 1:
7268 d = self.__dict__.copy()
7273 def __setstate__(self, p):
7274 if not hasattr(self,
'this'):
7276 if isinstance(p, tuple):
7278 self.__dict__.update(d)
7279 return self._set_from_binary(p)
7283 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7284 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7287 r"""Proxy of C++ IMP::core::MonteCarlo class."""
7289 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7291 def __init__(self, m):
7292 r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7293 _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7295 def get_version_info(self):
7296 r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7297 return _IMP_core.MonteCarlo_get_version_info(self)
7298 __swig_destroy__ = _IMP_core.delete_MonteCarlo
7300 def set_return_best(self, tf):
7301 r"""set_return_best(MonteCarlo self, bool tf)"""
7302 return _IMP_core.MonteCarlo_set_return_best(self, tf)
7304 def get_return_best(self):
7305 r"""get_return_best(MonteCarlo self) -> bool"""
7306 return _IMP_core.MonteCarlo_get_return_best(self)
7308 def set_score_moved(self, mv):
7309 r"""set_score_moved(MonteCarlo self, bool mv)"""
7310 return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7312 def set_kt(self, t):
7313 r"""set_kt(MonteCarlo self, IMP::Float t)"""
7314 return _IMP_core.MonteCarlo_set_kt(self, t)
7317 r"""get_kt(MonteCarlo self) -> IMP::Float"""
7318 return _IMP_core.MonteCarlo_get_kt(self)
7320 def get_last_accepted_energy(self):
7321 r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7322 return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7324 def set_last_accepted_energy(self, energy):
7325 r"""set_last_accepted_energy(MonteCarlo self, double energy)"""
7326 return _IMP_core.MonteCarlo_set_last_accepted_energy(self, energy)
7328 def get_best_accepted_energy(self):
7329 r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7330 return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7332 def set_best_accepted_energy(self, energy):
7333 r"""set_best_accepted_energy(MonteCarlo self, double energy)"""
7334 return _IMP_core.MonteCarlo_set_best_accepted_energy(self, energy)
7336 def get_number_of_downward_steps(self):
7337 r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7338 return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7340 def get_number_of_upward_steps(self):
7341 r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7342 return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7344 def get_number_of_proposed_steps(self):
7345 r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7346 return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7348 def get_number_of_accepted_steps(self):
7349 r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7350 return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7352 def set_number_of_downward_steps(self, nsteps):
7353 r"""set_number_of_downward_steps(MonteCarlo self, unsigned int nsteps)"""
7354 return _IMP_core.MonteCarlo_set_number_of_downward_steps(self, nsteps)
7356 def set_number_of_upward_steps(self, nsteps):
7357 r"""set_number_of_upward_steps(MonteCarlo self, unsigned int nsteps)"""
7358 return _IMP_core.MonteCarlo_set_number_of_upward_steps(self, nsteps)
7360 def set_number_of_rejected_steps(self, nsteps):
7361 r"""set_number_of_rejected_steps(MonteCarlo self, unsigned int nsteps)"""
7362 return _IMP_core.MonteCarlo_set_number_of_rejected_steps(self, nsteps)
7364 def reset_statistics(self):
7365 r"""reset_statistics(MonteCarlo self)"""
7366 return _IMP_core.MonteCarlo_reset_statistics(self)
7368 def set_score_threshold(self, s):
7369 r"""set_score_threshold(MonteCarlo self, double s)"""
7370 return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7372 def get_score_threshold(self):
7373 r"""get_score_threshold(MonteCarlo self) -> double"""
7374 return _IMP_core.MonteCarlo_get_score_threshold(self)
7376 def set_maximum_difference(self, d):
7377 r"""set_maximum_difference(MonteCarlo self, double d)"""
7378 return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7380 def get_maximum_difference(self):
7381 r"""get_maximum_difference(MonteCarlo self) -> double"""
7382 return _IMP_core.MonteCarlo_get_maximum_difference(self)
7383 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)
7384 def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7385 def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7386 movers = property(__get_movers, __set_movers, __del_movers, doc=
"List of ##ucnames")
7388 def remove_mover(self, d):
7389 r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7390 return _IMP_core.MonteCarlo_remove_mover(self, d)
7392 def _python_index_mover(self, d, start, stop):
7393 r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7394 return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7396 def remove_movers(self, d):
7397 r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7398 return _IMP_core.MonteCarlo_remove_movers(self, d)
7400 def set_movers(self, ps):
7401 r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7402 return _IMP_core.MonteCarlo_set_movers(self, ps)
7404 def set_movers_order(self, objs):
7405 r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7406 return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7408 def add_mover(self, obj):
7409 r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7410 return _IMP_core.MonteCarlo_add_mover(self, obj)
7412 def add_movers(self, objs):
7413 r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7414 return _IMP_core.MonteCarlo_add_movers(self, objs)
7416 def clear_movers(self):
7417 r"""clear_movers(MonteCarlo self)"""
7418 return _IMP_core.MonteCarlo_clear_movers(self)
7420 def get_number_of_movers(self):
7421 r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7422 return _IMP_core.MonteCarlo_get_number_of_movers(self)
7424 def get_has_movers(self):
7425 r"""get_has_movers(MonteCarlo self) -> bool"""
7426 return _IMP_core.MonteCarlo_get_has_movers(self)
7428 def get_mover(self, i):
7429 r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7430 return _IMP_core.MonteCarlo_get_mover(self, i)
7432 def get_movers(self):
7433 r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7434 return _IMP_core.MonteCarlo_get_movers(self)
7436 def erase_mover(self, i):
7437 r"""erase_mover(MonteCarlo self, unsigned int i)"""
7438 return _IMP_core.MonteCarlo_erase_mover(self, i)
7440 def reserve_movers(self, sz):
7441 r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7442 return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7445 r"""__str__(MonteCarlo self) -> std::string"""
7446 return _IMP_core.MonteCarlo___str__(self)
7449 r"""__repr__(MonteCarlo self) -> std::string"""
7450 return _IMP_core.MonteCarlo___repr__(self)
7454 return _object_cast_to_MonteCarlo(o)
7458 from IMP.core._jax_util
import _MCJaxInfo
7459 return _MCJaxInfo(self)
7461 def _optimize_jax(self, max_steps):
7462 import IMP.core._jax_util
7463 return IMP.core._jax_util._mc_optimize(self, max_steps)
7467 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7468 class MonteCarloWithLocalOptimization(MonteCarlo):
7469 r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7471 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7473 def __init__(self, opt, steps):
7474 r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7475 _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7477 def get_number_of_steps(self):
7478 r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7479 return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7481 def get_local_optimizer(self):
7482 r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7483 return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7484 __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7487 r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7488 return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7491 r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7492 return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7496 return _object_cast_to_MonteCarloWithLocalOptimization(o)
7500 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7501 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7502 r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7504 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7506 def __init__(self, opt, ns):
7507 r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7508 _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7509 __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7512 r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7513 return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7516 r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7517 return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7521 return _object_cast_to_MonteCarloWithBasinHopping(o)
7525 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7527 r"""Proxy of C++ IMP::core::NeighborsTable class."""
7529 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7531 def __init__(self, *args):
7532 r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7533 _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7535 def get_neighbors(self, pi):
7536 r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7537 return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7539 def get_version_info(self):
7540 r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7541 return _IMP_core.NeighborsTable_get_version_info(self)
7542 __swig_destroy__ = _IMP_core.delete_NeighborsTable
7545 r"""__str__(NeighborsTable self) -> std::string"""
7546 return _IMP_core.NeighborsTable___str__(self)
7549 r"""__repr__(NeighborsTable self) -> std::string"""
7550 return _IMP_core.NeighborsTable___repr__(self)
7554 return _object_cast_to_NeighborsTable(o)
7558 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7559 class NormalMover(MonteCarloMover):
7560 r"""Proxy of C++ IMP::core::NormalMover class."""
7562 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7564 def __init__(self, *args):
7566 __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7567 __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7568 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7569 __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7570 __init__(NormalMover self) -> NormalMover
7572 _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7574 def set_sigma(self, sigma):
7575 r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7576 return _IMP_core.NormalMover_set_sigma(self, sigma)
7578 def get_sigma(self):
7579 r"""get_sigma(NormalMover self) -> IMP::Float"""
7580 return _IMP_core.NormalMover_get_sigma(self)
7582 def get_version_info(self):
7583 r"""get_version_info(NormalMover self) -> VersionInfo"""
7584 return _IMP_core.NormalMover_get_version_info(self)
7585 __swig_destroy__ = _IMP_core.delete_NormalMover
7588 r"""__str__(NormalMover self) -> std::string"""
7589 return _IMP_core.NormalMover___str__(self)
7592 r"""__repr__(NormalMover self) -> std::string"""
7593 return _IMP_core.NormalMover___repr__(self)
7597 return _object_cast_to_NormalMover(o)
7600 def _get_as_binary(self):
7601 r"""_get_as_binary(NormalMover self) -> PyObject *"""
7602 return _IMP_core.NormalMover__get_as_binary(self)
7604 def _set_from_binary(self, p):
7605 r"""_set_from_binary(NormalMover self, PyObject * p)"""
7606 return _IMP_core.NormalMover__set_from_binary(self, p)
7608 def __getstate__(self):
7609 p = self._get_as_binary()
7610 if len(self.__dict__) > 1:
7611 d = self.__dict__.copy()
7616 def __setstate__(self, p):
7617 if not hasattr(self,
'this'):
7619 if isinstance(p, tuple):
7621 self.__dict__.update(d)
7622 return self._set_from_binary(p)
7626 _IMP_core.NormalMover_swigregister(NormalMover)
7627 class OpenCubicSpline(_OpenCubicSplineBase):
7628 r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7630 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7632 def __init__(self, values, minrange, spacing, extend=False):
7633 r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7634 _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7637 r"""__str__(OpenCubicSpline self) -> std::string"""
7638 return _IMP_core.OpenCubicSpline___str__(self)
7641 r"""__repr__(OpenCubicSpline self) -> std::string"""
7642 return _IMP_core.OpenCubicSpline___repr__(self)
7646 return _object_cast_to_OpenCubicSpline(o)
7648 __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7651 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7652 class QuadraticClosePairsFinder(ClosePairsFinder):
7653 r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7655 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7658 r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7659 _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7661 def get_are_close_and_filtered(self, *args):
7663 get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7664 get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7666 return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7668 def get_close_pairs(self, *args):
7670 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7671 get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7672 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7673 get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7675 return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7677 def do_get_inputs(self, m, pis):
7678 r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7679 return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7681 def get_version_info(self):
7682 r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7683 return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7684 __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7687 r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7688 return _IMP_core.QuadraticClosePairsFinder___str__(self)
7691 r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7692 return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7696 return _object_cast_to_QuadraticClosePairsFinder(o)
7700 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7702 r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7704 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7706 def __init__(self, r, f):
7707 r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7708 _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7710 def do_get_inputs(self, m, pis):
7711 r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7712 return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7714 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7715 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"""
7716 return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7718 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7719 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"""
7720 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7722 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7723 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"""
7724 return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7726 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7727 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"""
7728 return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7730 def get_version_info(self):
7731 r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7732 return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7733 __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7736 r"""__str__(RefinedPairsPairScore self) -> std::string"""
7737 return _IMP_core.RefinedPairsPairScore___str__(self)
7740 r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7741 return _IMP_core.RefinedPairsPairScore___repr__(self)
7745 return _object_cast_to_RefinedPairsPairScore(o)
7749 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7750 class RigidBody(XYZ):
7751 r"""Proxy of C++ IMP::core::RigidBody class."""
7753 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7755 def get_rigid_members(self):
7756 r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7757 return _IMP_core.RigidBody_get_rigid_members(self)
7760 def get_rotation_keys():
7761 r"""get_rotation_keys() -> IMP::FloatKeys"""
7762 return _IMP_core.RigidBody_get_rotation_keys()
7764 def get_member_particle_indexes(self):
7765 r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7766 return _IMP_core.RigidBody_get_member_particle_indexes(self)
7768 def get_body_member_particle_indexes(self):
7769 r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7770 return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7772 def get_member_indexes(self):
7773 r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7774 return _IMP_core.RigidBody_get_member_indexes(self)
7776 def show(self, *args):
7777 r"""show(RigidBody self, _ostream out=std::cout)"""
7778 return _IMP_core.RigidBody_show(self, *args)
7781 def setup_particle(*args):
7783 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7784 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7785 setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7786 setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7788 return _IMP_core.RigidBody_setup_particle(*args)
7791 def teardown_particle(rb):
7792 r"""teardown_particle(RigidBody rb)"""
7793 return _IMP_core.RigidBody_teardown_particle(rb)
7795 def __init__(self, *args):
7797 __init__(RigidBody self) -> RigidBody
7798 __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7799 __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7800 __init__(RigidBody self, RigidBody arg2) -> RigidBody
7802 _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7803 __swig_destroy__ = _IMP_core.delete_RigidBody
7806 def get_is_setup(*args):
7808 get_is_setup(_ParticleAdaptor p) -> bool
7809 get_is_setup(Model m, ParticleIndex pi) -> bool
7811 return _IMP_core.RigidBody_get_is_setup(*args)
7813 def get_coordinates(self):
7814 r"""get_coordinates(RigidBody self) -> Vector3D"""
7815 return _IMP_core.RigidBody_get_coordinates(self)
7817 def get_rotation(self):
7818 r"""get_rotation(RigidBody self) -> Rotation3D"""
7819 return _IMP_core.RigidBody_get_rotation(self)
7821 def get_reference_frame(self):
7822 r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7823 return _IMP_core.RigidBody_get_reference_frame(self)
7825 def set_reference_frame(self, tr):
7826 r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7827 return _IMP_core.RigidBody_set_reference_frame(self, tr)
7829 def set_reference_frame_lazy(self, tr):
7830 r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7831 return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7833 def set_reference_frame_from_members(self, members):
7834 r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7835 return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7837 def pull_back_members_adjoints(self, da):
7838 r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7839 return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7841 def pull_back_member_adjoints(self, pi, da):
7842 r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7843 return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7845 def pull_back_body_member_adjoints(self, pi, da):
7846 r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7847 return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7849 def add_to_derivatives(self, *args):
7851 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7852 add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7854 return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7856 def add_to_rotational_derivatives(self, *args):
7858 add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7859 add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7861 return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7863 def add_to_torque(self, torque_local, da):
7864 r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7865 return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7867 def get_torque(self):
7868 r"""get_torque(RigidBody self) -> Vector3D"""
7869 return _IMP_core.RigidBody_get_torque(self)
7871 def get_coordinates_are_optimized(self):
7872 r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7873 return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7875 def set_coordinates_are_optimized(self, tf):
7876 r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7877 return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7879 def normalize_rotation(self):
7880 r"""normalize_rotation(RigidBody self)"""
7881 return _IMP_core.RigidBody_normalize_rotation(self)
7883 def update_members(self):
7884 r"""update_members(RigidBody self)"""
7885 return _IMP_core.RigidBody_update_members(self)
7887 def get_rotational_derivatives(self):
7888 r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7889 return _IMP_core.RigidBody_get_rotational_derivatives(self)
7891 def get_number_of_members(self):
7892 r"""get_number_of_members(RigidBody self) -> unsigned int"""
7893 return _IMP_core.RigidBody_get_number_of_members(self)
7895 def get_member(self, i):
7896 r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7897 return _IMP_core.RigidBody_get_member(self, i)
7899 def add_member(self, p):
7900 r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7901 return _IMP_core.RigidBody_add_member(self, p)
7903 def add_non_rigid_member(self, p):
7904 r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7905 return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7907 def set_is_rigid_member(self, pi, tf):
7908 r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7909 return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7911 def remove_member(self, p):
7912 r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7913 return _IMP_core.RigidBody_remove_member(self, p)
7915 def add_attribute(self, *args):
7917 add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7918 add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7919 add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7920 add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7921 add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7922 add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7923 add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7924 add_attribute(RigidBody self, ObjectKey a0, Object a1)
7925 add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7926 add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7927 add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7928 add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7930 return _IMP_core.RigidBody_add_attribute(self, *args)
7932 def get_value(self, *args):
7934 get_value(RigidBody self, FloatKey a0) -> IMP::Float
7935 get_value(RigidBody self, IntKey a0) -> IMP::Int
7936 get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7937 get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7938 get_value(RigidBody self, StringKey a0) -> IMP::String
7939 get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7940 get_value(RigidBody self, ObjectKey a0) -> Object
7941 get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7942 get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7943 get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7944 get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7946 return _IMP_core.RigidBody_get_value(self, *args)
7948 def set_value(self, *args):
7950 set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7951 set_value(RigidBody self, IntKey a0, IMP::Int a1)
7952 set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7953 set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7954 set_value(RigidBody self, StringKey a0, IMP::String a1)
7955 set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7956 set_value(RigidBody self, ObjectKey a0, Object a1)
7957 set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7958 set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7959 set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7960 set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7962 return _IMP_core.RigidBody_set_value(self, *args)
7964 def remove_attribute(self, *args):
7966 remove_attribute(RigidBody self, FloatKey a0)
7967 remove_attribute(RigidBody self, IntKey a0)
7968 remove_attribute(RigidBody self, FloatsKey a0)
7969 remove_attribute(RigidBody self, IntsKey a0)
7970 remove_attribute(RigidBody self, StringKey a0)
7971 remove_attribute(RigidBody self, ParticleIndexKey a0)
7972 remove_attribute(RigidBody self, ObjectKey a0)
7973 remove_attribute(RigidBody self, SparseFloatKey a0)
7974 remove_attribute(RigidBody self, SparseIntKey a0)
7975 remove_attribute(RigidBody self, SparseStringKey a0)
7976 remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7978 return _IMP_core.RigidBody_remove_attribute(self, *args)
7980 def has_attribute(self, *args):
7982 has_attribute(RigidBody self, FloatKey a0) -> bool
7983 has_attribute(RigidBody self, IntKey a0) -> bool
7984 has_attribute(RigidBody self, FloatsKey a0) -> bool
7985 has_attribute(RigidBody self, IntsKey a0) -> bool
7986 has_attribute(RigidBody self, StringKey a0) -> bool
7987 has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7988 has_attribute(RigidBody self, ObjectKey a0) -> bool
7989 has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7990 has_attribute(RigidBody self, SparseIntKey a0) -> bool
7991 has_attribute(RigidBody self, SparseStringKey a0) -> bool
7992 has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7994 return _IMP_core.RigidBody_has_attribute(self, *args)
7996 def get_derivative(self, a0):
7997 r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7998 return _IMP_core.RigidBody_get_derivative(self, a0)
8001 r"""get_name(RigidBody self) -> std::string"""
8002 return _IMP_core.RigidBody_get_name(self)
8004 def clear_caches(self):
8005 r"""clear_caches(RigidBody self)"""
8006 return _IMP_core.RigidBody_clear_caches(self)
8008 def set_name(self, a0):
8009 r"""set_name(RigidBody self, std::string a0)"""
8010 return _IMP_core.RigidBody_set_name(self, a0)
8013 r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
8014 return _IMP_core.RigidBody_set_check_level(self, a0)
8016 def add_to_derivative(self, a0, a1, a2):
8017 r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8018 return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
8020 def set_is_optimized(self, a0, a1):
8021 r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
8022 return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
8024 def get_is_optimized(self, a0):
8025 r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
8026 return _IMP_core.RigidBody_get_is_optimized(self, a0)
8029 r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
8030 return _IMP_core.RigidBody_get_check_level(self)
8032 def __eq__(self, *args):
8034 __eq__(RigidBody self, RigidBody o) -> bool
8035 __eq__(RigidBody self, Particle d) -> bool
8037 return _IMP_core.RigidBody___eq__(self, *args)
8039 def __ne__(self, *args):
8041 __ne__(RigidBody self, RigidBody o) -> bool
8042 __ne__(RigidBody self, Particle d) -> bool
8044 return _IMP_core.RigidBody___ne__(self, *args)
8046 def __le__(self, *args):
8048 __le__(RigidBody self, RigidBody o) -> bool
8049 __le__(RigidBody self, Particle d) -> bool
8051 return _IMP_core.RigidBody___le__(self, *args)
8053 def __lt__(self, *args):
8055 __lt__(RigidBody self, RigidBody o) -> bool
8056 __lt__(RigidBody self, Particle d) -> bool
8058 return _IMP_core.RigidBody___lt__(self, *args)
8060 def __ge__(self, *args):
8062 __ge__(RigidBody self, RigidBody o) -> bool
8063 __ge__(RigidBody self, Particle d) -> bool
8065 return _IMP_core.RigidBody___ge__(self, *args)
8067 def __gt__(self, *args):
8069 __gt__(RigidBody self, RigidBody o) -> bool
8070 __gt__(RigidBody self, Particle d) -> bool
8072 return _IMP_core.RigidBody___gt__(self, *args)
8075 r"""__hash__(RigidBody self) -> std::size_t"""
8076 return _IMP_core.RigidBody___hash__(self)
8079 r"""__str__(RigidBody self) -> std::string"""
8080 return _IMP_core.RigidBody___str__(self)
8083 r"""__repr__(RigidBody self) -> std::string"""
8084 return _IMP_core.RigidBody___repr__(self)
8086 def _get_as_binary(self):
8087 r"""_get_as_binary(RigidBody self) -> PyObject *"""
8088 return _IMP_core.RigidBody__get_as_binary(self)
8090 def _set_from_binary(self, p):
8091 r"""_set_from_binary(RigidBody self, PyObject * p)"""
8092 return _IMP_core.RigidBody__set_from_binary(self, p)
8094 def __getstate__(self):
8095 p = self._get_as_binary()
8096 if len(self.__dict__) > 1:
8097 d = self.__dict__.copy()
8102 def __setstate__(self, p):
8103 if not hasattr(self,
'this'):
8105 if isinstance(p, tuple):
8107 self.__dict__.update(d)
8108 return self._set_from_binary(p)
8112 _IMP_core.RigidBody_swigregister(RigidBody)
8115 r"""add_rigid_body_cache_key(ObjectKey k)"""
8116 return _IMP_core.add_rigid_body_cache_key(k)
8117 class RigidBodyMember(XYZ):
8118 r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8120 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8122 def show(self, *args):
8123 r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8124 return _IMP_core.RigidBodyMember_show(self, *args)
8126 def get_rigid_body(self):
8127 r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8128 return _IMP_core.RigidBodyMember_get_rigid_body(self)
8130 def get_internal_coordinates(self):
8131 r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8132 return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8134 def set_internal_coordinates(self, v):
8135 r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8136 return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8138 def set_internal_transformation(self, v):
8139 r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8140 return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8142 def get_internal_transformation(self):
8143 r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8144 return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8145 __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8147 def set_coordinates(self, *args):
8149 set_coordinates(RigidBodyMember self, Vector3D center)
8150 set_coordinates(RigidBodyMember self, Transformation3D tr)
8152 return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8154 def __init__(self, *args):
8156 __init__(RigidBodyMember self) -> RigidBodyMember
8157 __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8158 __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8159 __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8161 _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8164 def get_is_setup(*args):
8166 get_is_setup(_ParticleAdaptor p) -> bool
8167 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8169 return _IMP_core.RigidBodyMember_get_is_setup(*args)
8172 def get_internal_coordinate_keys():
8173 r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8174 return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8177 def get_internal_rotation_keys():
8178 r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8179 return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8181 def add_attribute(self, *args):
8183 add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8184 add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8185 add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8186 add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8187 add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8188 add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8189 add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8190 add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8191 add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8192 add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8193 add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8194 add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8196 return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8198 def get_value(self, *args):
8200 get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8201 get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8202 get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8203 get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8204 get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8205 get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8206 get_value(RigidBodyMember self, ObjectKey a0) -> Object
8207 get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8208 get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8209 get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8210 get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8212 return _IMP_core.RigidBodyMember_get_value(self, *args)
8214 def set_value(self, *args):
8216 set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8217 set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8218 set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8219 set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8220 set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8221 set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8222 set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8223 set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8224 set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8225 set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8226 set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8228 return _IMP_core.RigidBodyMember_set_value(self, *args)
8230 def remove_attribute(self, *args):
8232 remove_attribute(RigidBodyMember self, FloatKey a0)
8233 remove_attribute(RigidBodyMember self, IntKey a0)
8234 remove_attribute(RigidBodyMember self, FloatsKey a0)
8235 remove_attribute(RigidBodyMember self, IntsKey a0)
8236 remove_attribute(RigidBodyMember self, StringKey a0)
8237 remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8238 remove_attribute(RigidBodyMember self, ObjectKey a0)
8239 remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8240 remove_attribute(RigidBodyMember self, SparseIntKey a0)
8241 remove_attribute(RigidBodyMember self, SparseStringKey a0)
8242 remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8244 return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8246 def has_attribute(self, *args):
8248 has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8249 has_attribute(RigidBodyMember self, IntKey a0) -> bool
8250 has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8251 has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8252 has_attribute(RigidBodyMember self, StringKey a0) -> bool
8253 has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8254 has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8255 has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8256 has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8257 has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8258 has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8260 return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8262 def get_derivative(self, a0):
8263 r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8264 return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8267 r"""get_name(RigidBodyMember self) -> std::string"""
8268 return _IMP_core.RigidBodyMember_get_name(self)
8270 def clear_caches(self):
8271 r"""clear_caches(RigidBodyMember self)"""
8272 return _IMP_core.RigidBodyMember_clear_caches(self)
8274 def set_name(self, a0):
8275 r"""set_name(RigidBodyMember self, std::string a0)"""
8276 return _IMP_core.RigidBodyMember_set_name(self, a0)
8279 r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8280 return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8282 def add_to_derivative(self, a0, a1, a2):
8283 r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8284 return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8286 def set_is_optimized(self, a0, a1):
8287 r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8288 return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8290 def get_is_optimized(self, a0):
8291 r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8292 return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8295 r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8296 return _IMP_core.RigidBodyMember_get_check_level(self)
8298 def __eq__(self, *args):
8300 __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8301 __eq__(RigidBodyMember self, Particle d) -> bool
8303 return _IMP_core.RigidBodyMember___eq__(self, *args)
8305 def __ne__(self, *args):
8307 __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8308 __ne__(RigidBodyMember self, Particle d) -> bool
8310 return _IMP_core.RigidBodyMember___ne__(self, *args)
8312 def __le__(self, *args):
8314 __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8315 __le__(RigidBodyMember self, Particle d) -> bool
8317 return _IMP_core.RigidBodyMember___le__(self, *args)
8319 def __lt__(self, *args):
8321 __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8322 __lt__(RigidBodyMember self, Particle d) -> bool
8324 return _IMP_core.RigidBodyMember___lt__(self, *args)
8326 def __ge__(self, *args):
8328 __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8329 __ge__(RigidBodyMember self, Particle d) -> bool
8331 return _IMP_core.RigidBodyMember___ge__(self, *args)
8333 def __gt__(self, *args):
8335 __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8336 __gt__(RigidBodyMember self, Particle d) -> bool
8338 return _IMP_core.RigidBodyMember___gt__(self, *args)
8341 r"""__hash__(RigidBodyMember self) -> std::size_t"""
8342 return _IMP_core.RigidBodyMember___hash__(self)
8345 r"""__str__(RigidBodyMember self) -> std::string"""
8346 return _IMP_core.RigidBodyMember___str__(self)
8349 r"""__repr__(RigidBodyMember self) -> std::string"""
8350 return _IMP_core.RigidBodyMember___repr__(self)
8352 def _get_as_binary(self):
8353 r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8354 return _IMP_core.RigidBodyMember__get_as_binary(self)
8356 def _set_from_binary(self, p):
8357 r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8358 return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8360 def __getstate__(self):
8361 p = self._get_as_binary()
8362 if len(self.__dict__) > 1:
8363 d = self.__dict__.copy()
8368 def __setstate__(self, p):
8369 if not hasattr(self,
'this'):
8371 if isinstance(p, tuple):
8373 self.__dict__.update(d)
8374 return self._set_from_binary(p)
8378 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8379 class RigidMember(RigidBodyMember):
8380 r"""Proxy of C++ IMP::core::RigidMember class."""
8382 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8384 def show(self, *args):
8385 r"""show(RigidMember self, _ostream out=std::cout)"""
8386 return _IMP_core.RigidMember_show(self, *args)
8388 def __init__(self, *args):
8390 __init__(RigidMember self) -> RigidMember
8391 __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8392 __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8393 __init__(RigidMember self, RigidMember arg2) -> RigidMember
8395 _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8396 __swig_destroy__ = _IMP_core.delete_RigidMember
8399 def get_is_setup(*args):
8401 get_is_setup(_ParticleAdaptor p) -> bool
8402 get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8404 return _IMP_core.RigidMember_get_is_setup(*args)
8406 def add_attribute(self, *args):
8408 add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8409 add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8410 add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8411 add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8412 add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8413 add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8414 add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8415 add_attribute(RigidMember self, ObjectKey a0, Object a1)
8416 add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8417 add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8418 add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8419 add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8421 return _IMP_core.RigidMember_add_attribute(self, *args)
8423 def get_value(self, *args):
8425 get_value(RigidMember self, FloatKey a0) -> IMP::Float
8426 get_value(RigidMember self, IntKey a0) -> IMP::Int
8427 get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8428 get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8429 get_value(RigidMember self, StringKey a0) -> IMP::String
8430 get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8431 get_value(RigidMember self, ObjectKey a0) -> Object
8432 get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8433 get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8434 get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8435 get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8437 return _IMP_core.RigidMember_get_value(self, *args)
8439 def set_value(self, *args):
8441 set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8442 set_value(RigidMember self, IntKey a0, IMP::Int a1)
8443 set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8444 set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8445 set_value(RigidMember self, StringKey a0, IMP::String a1)
8446 set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8447 set_value(RigidMember self, ObjectKey a0, Object a1)
8448 set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8449 set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8450 set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8451 set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8453 return _IMP_core.RigidMember_set_value(self, *args)
8455 def remove_attribute(self, *args):
8457 remove_attribute(RigidMember self, FloatKey a0)
8458 remove_attribute(RigidMember self, IntKey a0)
8459 remove_attribute(RigidMember self, FloatsKey a0)
8460 remove_attribute(RigidMember self, IntsKey a0)
8461 remove_attribute(RigidMember self, StringKey a0)
8462 remove_attribute(RigidMember self, ParticleIndexKey a0)
8463 remove_attribute(RigidMember self, ObjectKey a0)
8464 remove_attribute(RigidMember self, SparseFloatKey a0)
8465 remove_attribute(RigidMember self, SparseIntKey a0)
8466 remove_attribute(RigidMember self, SparseStringKey a0)
8467 remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8469 return _IMP_core.RigidMember_remove_attribute(self, *args)
8471 def has_attribute(self, *args):
8473 has_attribute(RigidMember self, FloatKey a0) -> bool
8474 has_attribute(RigidMember self, IntKey a0) -> bool
8475 has_attribute(RigidMember self, FloatsKey a0) -> bool
8476 has_attribute(RigidMember self, IntsKey a0) -> bool
8477 has_attribute(RigidMember self, StringKey a0) -> bool
8478 has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8479 has_attribute(RigidMember self, ObjectKey a0) -> bool
8480 has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8481 has_attribute(RigidMember self, SparseIntKey a0) -> bool
8482 has_attribute(RigidMember self, SparseStringKey a0) -> bool
8483 has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8485 return _IMP_core.RigidMember_has_attribute(self, *args)
8487 def get_derivative(self, a0):
8488 r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8489 return _IMP_core.RigidMember_get_derivative(self, a0)
8492 r"""get_name(RigidMember self) -> std::string"""
8493 return _IMP_core.RigidMember_get_name(self)
8495 def clear_caches(self):
8496 r"""clear_caches(RigidMember self)"""
8497 return _IMP_core.RigidMember_clear_caches(self)
8499 def set_name(self, a0):
8500 r"""set_name(RigidMember self, std::string a0)"""
8501 return _IMP_core.RigidMember_set_name(self, a0)
8504 r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8505 return _IMP_core.RigidMember_set_check_level(self, a0)
8507 def add_to_derivative(self, a0, a1, a2):
8508 r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8509 return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8511 def set_is_optimized(self, a0, a1):
8512 r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8513 return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8515 def get_is_optimized(self, a0):
8516 r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8517 return _IMP_core.RigidMember_get_is_optimized(self, a0)
8520 r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8521 return _IMP_core.RigidMember_get_check_level(self)
8523 def __eq__(self, *args):
8525 __eq__(RigidMember self, RigidMember o) -> bool
8526 __eq__(RigidMember self, Particle d) -> bool
8528 return _IMP_core.RigidMember___eq__(self, *args)
8530 def __ne__(self, *args):
8532 __ne__(RigidMember self, RigidMember o) -> bool
8533 __ne__(RigidMember self, Particle d) -> bool
8535 return _IMP_core.RigidMember___ne__(self, *args)
8537 def __le__(self, *args):
8539 __le__(RigidMember self, RigidMember o) -> bool
8540 __le__(RigidMember self, Particle d) -> bool
8542 return _IMP_core.RigidMember___le__(self, *args)
8544 def __lt__(self, *args):
8546 __lt__(RigidMember self, RigidMember o) -> bool
8547 __lt__(RigidMember self, Particle d) -> bool
8549 return _IMP_core.RigidMember___lt__(self, *args)
8551 def __ge__(self, *args):
8553 __ge__(RigidMember self, RigidMember o) -> bool
8554 __ge__(RigidMember self, Particle d) -> bool
8556 return _IMP_core.RigidMember___ge__(self, *args)
8558 def __gt__(self, *args):
8560 __gt__(RigidMember self, RigidMember o) -> bool
8561 __gt__(RigidMember self, Particle d) -> bool
8563 return _IMP_core.RigidMember___gt__(self, *args)
8566 r"""__hash__(RigidMember self) -> std::size_t"""
8567 return _IMP_core.RigidMember___hash__(self)
8570 r"""__str__(RigidMember self) -> std::string"""
8571 return _IMP_core.RigidMember___str__(self)
8574 r"""__repr__(RigidMember self) -> std::string"""
8575 return _IMP_core.RigidMember___repr__(self)
8577 def _get_as_binary(self):
8578 r"""_get_as_binary(RigidMember self) -> PyObject *"""
8579 return _IMP_core.RigidMember__get_as_binary(self)
8581 def _set_from_binary(self, p):
8582 r"""_set_from_binary(RigidMember self, PyObject * p)"""
8583 return _IMP_core.RigidMember__set_from_binary(self, p)
8585 def __getstate__(self):
8586 p = self._get_as_binary()
8587 if len(self.__dict__) > 1:
8588 d = self.__dict__.copy()
8593 def __setstate__(self, p):
8594 if not hasattr(self,
'this'):
8596 if isinstance(p, tuple):
8598 self.__dict__.update(d)
8599 return self._set_from_binary(p)
8603 _IMP_core.RigidMember_swigregister(RigidMember)
8604 class NonRigidMember(RigidBodyMember):
8605 r"""Proxy of C++ IMP::core::NonRigidMember class."""
8607 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8609 def show(self, *args):
8610 r"""show(NonRigidMember self, _ostream out=std::cout)"""
8611 return _IMP_core.NonRigidMember_show(self, *args)
8613 def __init__(self, *args):
8615 __init__(NonRigidMember self) -> NonRigidMember
8616 __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8617 __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8618 __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8620 _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8621 __swig_destroy__ = _IMP_core.delete_NonRigidMember
8624 def get_is_setup(*args):
8626 get_is_setup(_ParticleAdaptor p) -> bool
8627 get_is_setup(Model m, ParticleIndex p) -> bool
8629 return _IMP_core.NonRigidMember_get_is_setup(*args)
8631 def add_to_internal_derivatives(self, deriv_parent, da):
8632 r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8633 return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8635 def add_to_internal_rotational_derivatives(self, *args):
8637 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8638 add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8640 return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8642 def get_internal_derivatives(self):
8643 r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8644 return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8646 def get_internal_rotational_derivatives(self):
8647 r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8648 return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8650 def add_attribute(self, *args):
8652 add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8653 add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8654 add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8655 add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8656 add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8657 add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8658 add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8659 add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8660 add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8661 add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8662 add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8663 add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8665 return _IMP_core.NonRigidMember_add_attribute(self, *args)
8667 def get_value(self, *args):
8669 get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8670 get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8671 get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8672 get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8673 get_value(NonRigidMember self, StringKey a0) -> IMP::String
8674 get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8675 get_value(NonRigidMember self, ObjectKey a0) -> Object
8676 get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8677 get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8678 get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8679 get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8681 return _IMP_core.NonRigidMember_get_value(self, *args)
8683 def set_value(self, *args):
8685 set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8686 set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8687 set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8688 set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8689 set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8690 set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8691 set_value(NonRigidMember self, ObjectKey a0, Object a1)
8692 set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8693 set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8694 set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8695 set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8697 return _IMP_core.NonRigidMember_set_value(self, *args)
8699 def remove_attribute(self, *args):
8701 remove_attribute(NonRigidMember self, FloatKey a0)
8702 remove_attribute(NonRigidMember self, IntKey a0)
8703 remove_attribute(NonRigidMember self, FloatsKey a0)
8704 remove_attribute(NonRigidMember self, IntsKey a0)
8705 remove_attribute(NonRigidMember self, StringKey a0)
8706 remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8707 remove_attribute(NonRigidMember self, ObjectKey a0)
8708 remove_attribute(NonRigidMember self, SparseFloatKey a0)
8709 remove_attribute(NonRigidMember self, SparseIntKey a0)
8710 remove_attribute(NonRigidMember self, SparseStringKey a0)
8711 remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8713 return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8715 def has_attribute(self, *args):
8717 has_attribute(NonRigidMember self, FloatKey a0) -> bool
8718 has_attribute(NonRigidMember self, IntKey a0) -> bool
8719 has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8720 has_attribute(NonRigidMember self, IntsKey a0) -> bool
8721 has_attribute(NonRigidMember self, StringKey a0) -> bool
8722 has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8723 has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8724 has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8725 has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8726 has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8727 has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8729 return _IMP_core.NonRigidMember_has_attribute(self, *args)
8731 def get_derivative(self, a0):
8732 r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8733 return _IMP_core.NonRigidMember_get_derivative(self, a0)
8736 r"""get_name(NonRigidMember self) -> std::string"""
8737 return _IMP_core.NonRigidMember_get_name(self)
8739 def clear_caches(self):
8740 r"""clear_caches(NonRigidMember self)"""
8741 return _IMP_core.NonRigidMember_clear_caches(self)
8743 def set_name(self, a0):
8744 r"""set_name(NonRigidMember self, std::string a0)"""
8745 return _IMP_core.NonRigidMember_set_name(self, a0)
8748 r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8749 return _IMP_core.NonRigidMember_set_check_level(self, a0)
8751 def add_to_derivative(self, a0, a1, a2):
8752 r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8753 return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8755 def set_is_optimized(self, a0, a1):
8756 r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8757 return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8759 def get_is_optimized(self, a0):
8760 r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8761 return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8764 r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8765 return _IMP_core.NonRigidMember_get_check_level(self)
8767 def __eq__(self, *args):
8769 __eq__(NonRigidMember self, NonRigidMember o) -> bool
8770 __eq__(NonRigidMember self, Particle d) -> bool
8772 return _IMP_core.NonRigidMember___eq__(self, *args)
8774 def __ne__(self, *args):
8776 __ne__(NonRigidMember self, NonRigidMember o) -> bool
8777 __ne__(NonRigidMember self, Particle d) -> bool
8779 return _IMP_core.NonRigidMember___ne__(self, *args)
8781 def __le__(self, *args):
8783 __le__(NonRigidMember self, NonRigidMember o) -> bool
8784 __le__(NonRigidMember self, Particle d) -> bool
8786 return _IMP_core.NonRigidMember___le__(self, *args)
8788 def __lt__(self, *args):
8790 __lt__(NonRigidMember self, NonRigidMember o) -> bool
8791 __lt__(NonRigidMember self, Particle d) -> bool
8793 return _IMP_core.NonRigidMember___lt__(self, *args)
8795 def __ge__(self, *args):
8797 __ge__(NonRigidMember self, NonRigidMember o) -> bool
8798 __ge__(NonRigidMember self, Particle d) -> bool
8800 return _IMP_core.NonRigidMember___ge__(self, *args)
8802 def __gt__(self, *args):
8804 __gt__(NonRigidMember self, NonRigidMember o) -> bool
8805 __gt__(NonRigidMember self, Particle d) -> bool
8807 return _IMP_core.NonRigidMember___gt__(self, *args)
8810 r"""__hash__(NonRigidMember self) -> std::size_t"""
8811 return _IMP_core.NonRigidMember___hash__(self)
8814 r"""__str__(NonRigidMember self) -> std::string"""
8815 return _IMP_core.NonRigidMember___str__(self)
8818 r"""__repr__(NonRigidMember self) -> std::string"""
8819 return _IMP_core.NonRigidMember___repr__(self)
8821 def _get_as_binary(self):
8822 r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8823 return _IMP_core.NonRigidMember__get_as_binary(self)
8825 def _set_from_binary(self, p):
8826 r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8827 return _IMP_core.NonRigidMember__set_from_binary(self, p)
8829 def __getstate__(self):
8830 p = self._get_as_binary()
8831 if len(self.__dict__) > 1:
8832 d = self.__dict__.copy()
8837 def __setstate__(self, p):
8838 if not hasattr(self,
'this'):
8840 if isinstance(p, tuple):
8842 self.__dict__.update(d)
8843 return self._set_from_binary(p)
8847 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8849 r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8851 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8853 def __init__(self, *args):
8854 r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8855 _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8857 def do_get_inputs(self, m, pis):
8858 r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8859 return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8861 def get_version_info(self):
8862 r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8863 return _IMP_core.RigidMembersRefiner_get_version_info(self)
8864 __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8867 r"""__str__(RigidMembersRefiner self) -> std::string"""
8868 return _IMP_core.RigidMembersRefiner___str__(self)
8871 r"""__repr__(RigidMembersRefiner self) -> std::string"""
8872 return _IMP_core.RigidMembersRefiner___repr__(self)
8876 return _object_cast_to_RigidMembersRefiner(o)
8880 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8882 def get_rigid_members_refiner():
8883 r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8884 return _IMP_core.get_rigid_members_refiner()
8888 transform(XYZ a, Transformation3D tr)
8889 transform(RigidBody a, Transformation3D tr)
8891 return _IMP_core.transform(*args)
8895 get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8896 get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8898 return _IMP_core.get_initial_reference_frame(*args)
8901 r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8902 return _IMP_core.create_rigid_bodies(m, n, no_members)
8905 r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8906 return _IMP_core.show_rigid_body_hierarchy(*args)
8909 r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8910 return _IMP_core.get_root_rigid_body(m)
8912 r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8914 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8916 def __init__(self, rb, constituents):
8917 r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8918 _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8920 def get_version_info(self):
8921 r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8922 return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8923 __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8926 r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8927 return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8930 r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8931 return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8935 return _object_cast_to_RigidBodyHierarchyGeometry(o)
8939 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8941 r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8943 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8945 def __init__(self, *args):
8947 __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8948 __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8950 _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8952 def get_version_info(self):
8953 r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8954 return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8955 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8958 r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8959 return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8962 r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8963 return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8967 return _object_cast_to_RigidBodyDerivativeGeometry(o)
8971 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8973 r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8975 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8977 def __init__(self, sc):
8978 r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8979 _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8981 def get_version_info(self):
8982 r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8983 return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8984 __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8987 r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8988 return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8991 r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8992 return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8996 return _object_cast_to_RigidBodyDerivativesGeometry(o)
9000 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
9002 r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
9004 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9006 def __init__(self, *args):
9008 __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
9009 __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
9011 _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
9013 def get_version_info(self):
9014 r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
9015 return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
9016 __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
9019 r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
9020 return _IMP_core.RigidBodyFrameGeometry___str__(self)
9023 r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
9024 return _IMP_core.RigidBodyFrameGeometry___repr__(self)
9028 return _object_cast_to_RigidBodyFrameGeometry(o)
9032 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
9034 r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
9036 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9038 def __init__(self, sc):
9039 r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
9040 _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
9042 def get_version_info(self):
9043 r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
9044 return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
9045 __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
9048 r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
9049 return _IMP_core.RigidBodyFramesGeometry___str__(self)
9052 r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
9053 return _IMP_core.RigidBodyFramesGeometry___repr__(self)
9057 return _object_cast_to_RigidBodyFramesGeometry(o)
9061 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
9063 r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
9065 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9067 def __init__(self, p):
9068 r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
9069 _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
9072 r"""__str__(RigidBodyTorque self) -> std::string"""
9073 return _IMP_core.RigidBodyTorque___str__(self)
9076 r"""__repr__(RigidBodyTorque self) -> std::string"""
9077 return _IMP_core.RigidBodyTorque___repr__(self)
9081 return _object_cast_to_RigidBodyTorque(o)
9083 __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
9086 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
9087 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
9088 r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
9090 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9093 r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
9094 _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
9096 def get_close_pairs(self, *args):
9098 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9099 get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9100 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9101 get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9103 return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
9105 def do_get_inputs(self, m, pis):
9106 r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9107 return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
9109 def get_version_info(self):
9110 r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9111 return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9112 __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9115 r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9116 return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9119 r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9120 return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9124 return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9128 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9130 r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9132 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9134 def __init__(self, *args):
9136 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9137 __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9138 __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9140 _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9142 def do_add_score_and_derivatives(self, sa, ss):
9143 r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9144 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9146 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9147 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)"""
9148 return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9150 def do_get_inputs(self):
9151 r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9152 return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9154 def get_restraints(self):
9155 r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9156 return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9158 def set_restraints(self, d):
9159 r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9160 return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9162 def get_number_of_restraints(self):
9163 r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9164 return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9166 def clear_restraints(self):
9167 r"""clear_restraints(RestraintsScoringFunction self)"""
9168 return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9170 def get_restraint(self, i):
9171 r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9172 return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9174 def erase_restraint(self, i):
9175 r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9176 return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9179 r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9180 return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9183 r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9184 return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9186 def _python_index_restraint(self, r, start, stop):
9187 r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9188 return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9189 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)
9190 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9191 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9192 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##Restraints")
9194 def get_version_info(self):
9195 r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9196 return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9197 __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9200 r"""__str__(RestraintsScoringFunction self) -> std::string"""
9201 return _IMP_core.RestraintsScoringFunction___str__(self)
9204 r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9205 return _IMP_core.RestraintsScoringFunction___repr__(self)
9209 return _object_cast_to_RestraintsScoringFunction(o)
9212 def _get_as_binary(self):
9213 r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9214 return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9216 def _set_from_binary(self, p):
9217 r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9218 return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9220 def __getstate__(self):
9221 p = self._get_as_binary()
9222 if len(self.__dict__) > 1:
9223 d = self.__dict__.copy()
9228 def __setstate__(self, p):
9229 if not hasattr(self,
'this'):
9231 if isinstance(p, tuple):
9233 self.__dict__.update(d)
9234 return self._set_from_binary(p)
9238 import IMP._jax_util
9239 jis = [r.get_derived_object()._get_jax()
for r
in self.restraints]
9240 funcs = [j.score_func
for j
in jis]
9241 keys = frozenset(x
for j
in jis
for x
in j._keys)
9243 return sum(f(X)
for f
in funcs)
9244 return IMP._jax_util.JaxRestraintInfo(
9245 m=self.get_model(), score_func=jax_sf, weight=1.0, keys=keys)
9249 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9250 class RigidClosePairsFinder(ClosePairsFinder):
9251 r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9253 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9255 def __init__(self, cpf=None):
9256 r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9257 _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9259 def do_get_inputs(self, m, pis):
9260 r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9261 return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9263 def get_close_pairs(self, *args):
9265 get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9266 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9267 get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9268 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9269 get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9271 return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9273 def get_version_info(self):
9274 r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9275 return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9276 __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9279 r"""__str__(RigidClosePairsFinder self) -> std::string"""
9280 return _IMP_core.RigidClosePairsFinder___str__(self)
9283 r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9284 return _IMP_core.RigidClosePairsFinder___repr__(self)
9288 return _object_cast_to_RigidClosePairsFinder(o)
9291 def _get_as_binary(self):
9292 r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9293 return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9295 def _set_from_binary(self, p):
9296 r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9297 return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9299 def __getstate__(self):
9300 p = self._get_as_binary()
9301 if len(self.__dict__) > 1:
9302 d = self.__dict__.copy()
9307 def __setstate__(self, p):
9308 if not hasattr(self,
'this'):
9310 if isinstance(p, tuple):
9312 self.__dict__.update(d)
9313 return self._set_from_binary(p)
9317 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9319 r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9321 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9322 __repr__ = _swig_repr
9324 def __init__(self, *args):
9326 SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9327 __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9329 _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9331 def do_get_inputs(self, m, pis):
9332 r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9333 return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9335 def get_version_info(self):
9336 r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9337 return _IMP_core._SphereDistancePairScore_get_version_info(self)
9338 __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9342 return _object_cast_to__SphereDistancePairScore(o)
9345 def _get_as_binary(self):
9346 r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9347 return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9349 def _set_from_binary(self, p):
9350 r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9351 return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9353 def __getstate__(self):
9354 p = self._get_as_binary()
9355 if len(self.__dict__) > 1:
9356 d = self.__dict__.copy()
9361 def __setstate__(self, p):
9362 if not hasattr(self,
'this'):
9364 if isinstance(p, tuple):
9366 self.__dict__.update(d)
9367 return self._set_from_binary(p)
9371 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9372 class HarmonicUpperBoundSphereDistancePairScore(
IMP.PairScore):
9373 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9375 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9377 def __init__(self, *args):
9379 __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9380 __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9382 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9384 def do_get_inputs(self, m, pis):
9385 r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9386 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9388 def get_version_info(self):
9389 r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9390 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9391 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9394 r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9395 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9398 r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9399 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9403 return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9406 def _get_as_binary(self):
9407 r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9408 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9410 def _set_from_binary(self, p):
9411 r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9412 return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9414 def __getstate__(self):
9415 p = self._get_as_binary()
9416 if len(self.__dict__) > 1:
9417 d = self.__dict__.copy()
9422 def __setstate__(self, p):
9423 if not hasattr(self,
'this'):
9425 if isinstance(p, tuple):
9427 self.__dict__.update(d)
9428 return self._set_from_binary(p)
9432 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9433 class HarmonicUpperBoundSphereDiameterPairScore(
IMP.PairScore):
9434 r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9436 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9438 def __init__(self, d0, k):
9439 r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9440 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9442 def get_rest_length(self):
9443 r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9444 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9446 def get_stiffness(self):
9447 r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9448 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9450 def do_get_inputs(self, m, pis):
9451 r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9452 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9454 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9455 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"""
9456 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9458 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9459 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"""
9460 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9462 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9463 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"""
9464 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9466 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9467 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"""
9468 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9470 def get_version_info(self):
9471 r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9472 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9473 __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9476 r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9477 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9480 r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9481 return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9485 return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9489 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9491 r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9493 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9495 def __init__(self, *args):
9497 __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9498 __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9500 _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9502 def do_get_inputs(self, m, pis):
9503 r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9504 return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9507 r"""get_x0(HarmonicSphereDistancePairScore self) -> double"""
9508 return _IMP_core.HarmonicSphereDistancePairScore_get_x0(self)
9511 r"""get_k(HarmonicSphereDistancePairScore self) -> double"""
9512 return _IMP_core.HarmonicSphereDistancePairScore_get_k(self)
9514 def get_version_info(self):
9515 r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9516 return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9517 __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9520 r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9521 return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9524 r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9525 return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9529 return _object_cast_to_HarmonicSphereDistancePairScore(o)
9532 def _get_as_binary(self):
9533 r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9534 return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9536 def _set_from_binary(self, p):
9537 r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9538 return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9540 def __getstate__(self):
9541 p = self._get_as_binary()
9542 if len(self.__dict__) > 1:
9543 d = self.__dict__.copy()
9548 def __setstate__(self, p):
9549 if not hasattr(self,
'this'):
9551 if isinstance(p, tuple):
9553 self.__dict__.update(d)
9554 return self._set_from_binary(p)
9558 import jax.numpy
as jnp
9560 def jax_score(X, indexes, d, k):
9561 xyzs = X[
'xyz'][indexes]
9562 rs = X[
'r'][indexes]
9563 diff = xyzs[:,0] - xyzs[:,1]
9564 drs = jnp.linalg.norm(diff, axis=1) - rs.sum(axis=1)
9565 return 0.5 * k * (d - drs)**2
9566 f = functools.partial(jax_score, d=self.get_x0(), k=self.get_k())
9567 return self._wrap_jax(f)
9571 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9573 r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore 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__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9579 _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9581 def do_get_inputs(self, m, pis):
9582 r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9583 return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9585 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9586 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"""
9587 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9589 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9590 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"""
9591 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9593 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9594 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"""
9595 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9597 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9598 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"""
9599 return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9601 def get_version_info(self):
9602 r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9603 return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9604 __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9607 r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9608 return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9611 r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9612 return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9616 return _object_cast_to_NormalizedSphereDistancePairScore(o)
9620 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9622 r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9624 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9626 def __init__(self, *args):
9627 r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9628 _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9630 def do_get_inputs(self, m, pis):
9631 r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9632 return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9634 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9635 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"""
9636 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9638 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9639 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"""
9640 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9642 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9643 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"""
9644 return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9646 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9647 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"""
9648 return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9650 def get_version_info(self):
9651 r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9652 return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9653 __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9656 r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9657 return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9660 r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9661 return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9665 return _object_cast_to_WeightedSphereDistancePairScore(o)
9669 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9671 r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9673 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9675 def __init__(self, *args):
9677 __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9678 __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9680 _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9682 def do_get_inputs(self, m, pis):
9683 r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9684 return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9686 def get_version_info(self):
9687 r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9688 return _IMP_core.SoftSpherePairScore_get_version_info(self)
9689 __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9692 r"""__str__(SoftSpherePairScore self) -> std::string"""
9693 return _IMP_core.SoftSpherePairScore___str__(self)
9696 r"""__repr__(SoftSpherePairScore self) -> std::string"""
9697 return _IMP_core.SoftSpherePairScore___repr__(self)
9701 return _object_cast_to_SoftSpherePairScore(o)
9704 def _get_as_binary(self):
9705 r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9706 return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9708 def _set_from_binary(self, p):
9709 r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9710 return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9712 def __getstate__(self):
9713 p = self._get_as_binary()
9714 if len(self.__dict__) > 1:
9715 d = self.__dict__.copy()
9720 def __setstate__(self, p):
9721 if not hasattr(self,
'this'):
9723 if isinstance(p, tuple):
9725 self.__dict__.update(d)
9726 return self._set_from_binary(p)
9730 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9732 r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9736 def __init__(self, *args):
9737 r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9738 _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9740 def do_get_inputs(self, m, pis):
9741 r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9742 return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9744 def get_version_info(self):
9745 r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9746 return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9747 __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9750 r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9751 return _IMP_core.SurfaceDistancePairScore___str__(self)
9754 r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9755 return _IMP_core.SurfaceDistancePairScore___repr__(self)
9759 return _object_cast_to_SurfaceDistancePairScore(o)
9763 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9765 r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9767 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9769 def __init__(self, *args):
9770 r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9771 _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9773 def do_get_inputs(self, m, pis):
9774 r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9775 return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9777 def get_version_info(self):
9778 r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9779 return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9780 __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9783 r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9784 return _IMP_core.SurfaceHeightPairScore___str__(self)
9787 r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9788 return _IMP_core.SurfaceHeightPairScore___repr__(self)
9792 return _object_cast_to_SurfaceHeightPairScore(o)
9796 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9798 r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9800 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9802 def __init__(self, *args):
9803 r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9804 _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9806 def do_get_inputs(self, m, pis):
9807 r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9808 return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9810 def get_version_info(self):
9811 r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9812 return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9813 __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9816 r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9817 return _IMP_core.SurfaceDepthPairScore___str__(self)
9820 r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9821 return _IMP_core.SurfaceDepthPairScore___repr__(self)
9825 return _object_cast_to_SurfaceDepthPairScore(o)
9829 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9831 r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9833 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9835 def __init__(self, *args):
9836 r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9837 _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9839 def do_get_inputs(self, m, pis):
9840 r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9841 return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9843 def get_version_info(self):
9844 r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9845 return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9846 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9849 r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9850 return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9853 r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9854 return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9858 return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9862 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9864 r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9866 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9868 def __init__(self, *args):
9869 r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9870 _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9872 def do_get_inputs(self, m, pis):
9873 r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9874 return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9876 def get_version_info(self):
9877 r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9878 return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9879 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9882 r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9883 return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9886 r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9887 return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9891 return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9895 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9897 r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9899 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9901 def __init__(self, *args):
9902 r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9903 _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9905 def do_get_inputs(self, m, pis):
9906 r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9907 return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9909 def get_version_info(self):
9910 r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9911 return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9912 __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9915 r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9916 return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9919 r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9920 return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9924 return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9928 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9930 r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9932 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9934 def __init__(self, *args):
9935 r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9936 _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9938 def do_get_inputs(self, m, pis):
9939 r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9940 return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9942 def get_version_info(self):
9943 r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9944 return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9945 __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9948 r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9949 return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9952 r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9953 return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9957 return _object_cast_to_SoftSuperSurfacePairScore(o)
9961 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9963 r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9965 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9967 def __init__(self, *args):
9968 r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9969 _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9971 def do_get_inputs(self, m, pis):
9972 r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9973 return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9975 def get_version_info(self):
9976 r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9977 return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9978 __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9981 r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9982 return _IMP_core.SoftSubSurfacePairScore___str__(self)
9985 r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9986 return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9990 return _object_cast_to_SoftSubSurfacePairScore(o)
9994 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9996 r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9998 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10000 def __init__(self, link_num, link_length):
10001 r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
10002 _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
10004 def get_version_info(self):
10005 r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
10006 return _IMP_core.SurfaceTetheredChain_get_version_info(self)
10007 __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
10009 def get_link_number(self):
10010 r"""get_link_number(SurfaceTetheredChain self) -> int"""
10011 return _IMP_core.SurfaceTetheredChain_get_link_number(self)
10013 def get_link_length(self):
10014 r"""get_link_length(SurfaceTetheredChain self) -> double"""
10015 return _IMP_core.SurfaceTetheredChain_get_link_length(self)
10017 def set_link_number(self, N):
10018 r"""set_link_number(SurfaceTetheredChain self, int N)"""
10019 return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
10021 def set_link_length(self, b):
10022 r"""set_link_length(SurfaceTetheredChain self, double b)"""
10023 return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
10025 def get_distance_at_minimum(self):
10026 r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
10027 return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
10029 def get_average_distance(self):
10030 r"""get_average_distance(SurfaceTetheredChain self) -> double"""
10031 return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
10034 r"""__str__(SurfaceTetheredChain self) -> std::string"""
10035 return _IMP_core.SurfaceTetheredChain___str__(self)
10037 def __repr__(self):
10038 r"""__repr__(SurfaceTetheredChain self) -> std::string"""
10039 return _IMP_core.SurfaceTetheredChain___repr__(self)
10043 return _object_cast_to_SurfaceTetheredChain(o)
10047 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
10049 r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
10051 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10053 def __init__(self, m, ss, rbs):
10054 r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
10055 _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
10057 def do_get_inputs(self):
10058 r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
10059 return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
10061 def do_get_outputs(self):
10062 r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
10063 return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
10065 def get_version_info(self):
10066 r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
10067 return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
10068 __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
10071 r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
10072 return _IMP_core.SurfaceSymmetryConstraint___str__(self)
10074 def __repr__(self):
10075 r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
10076 return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
10080 return _object_cast_to_SurfaceSymmetryConstraint(o)
10084 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
10086 r"""Proxy of C++ IMP::core::SteepestDescent class."""
10088 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10090 def __init__(self, *args):
10091 r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
10092 _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
10094 def do_optimize(self, max_steps):
10095 r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
10096 return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
10098 def get_version_info(self):
10099 r"""get_version_info(SteepestDescent self) -> VersionInfo"""
10100 return _IMP_core.SteepestDescent_get_version_info(self)
10101 __swig_destroy__ = _IMP_core.delete_SteepestDescent
10103 def set_threshold(self, t):
10104 r"""set_threshold(SteepestDescent self, IMP::Float t)"""
10105 return _IMP_core.SteepestDescent_set_threshold(self, t)
10107 def set_step_size(self, t):
10108 r"""set_step_size(SteepestDescent self, IMP::Float t)"""
10109 return _IMP_core.SteepestDescent_set_step_size(self, t)
10111 def set_maximum_step_size(self, t):
10112 r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
10113 return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
10116 r"""__str__(SteepestDescent self) -> std::string"""
10117 return _IMP_core.SteepestDescent___str__(self)
10119 def __repr__(self):
10120 r"""__repr__(SteepestDescent self) -> std::string"""
10121 return _IMP_core.SteepestDescent___repr__(self)
10125 return _object_cast_to_SteepestDescent(o)
10129 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
10131 r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
10133 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10135 def __init__(self, f, transformation):
10136 r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
10137 _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
10139 def set_transformation(self, rot):
10140 r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
10141 return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
10143 def do_get_inputs(self, m, pis):
10144 r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10145 return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10147 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10148 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"""
10149 return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10151 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10152 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"""
10153 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10155 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10156 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"""
10157 return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10159 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10160 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"""
10161 return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10163 def get_version_info(self):
10164 r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10165 return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10166 __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10169 r"""__str__(TransformedDistancePairScore self) -> std::string"""
10170 return _IMP_core.TransformedDistancePairScore___str__(self)
10172 def __repr__(self):
10173 r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10174 return _IMP_core.TransformedDistancePairScore___repr__(self)
10178 return _object_cast_to_TransformedDistancePairScore(o)
10182 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10184 r"""Proxy of C++ IMP::core::TypedPairScore class."""
10186 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10188 def __init__(self, typekey, allow_invalid_types=True):
10189 r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10190 _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10192 def set_particle_type(self, arg2):
10193 r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10194 return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10196 def set_pair_score(self, ps, atype, btype):
10197 r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10198 return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10200 def do_get_inputs(self, m, pis):
10201 r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10202 return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10204 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10205 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"""
10206 return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10208 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10209 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"""
10210 return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10212 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10213 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"""
10214 return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10216 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10217 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"""
10218 return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10220 def get_version_info(self):
10221 r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10222 return _IMP_core.TypedPairScore_get_version_info(self)
10223 __swig_destroy__ = _IMP_core.delete_TypedPairScore
10226 r"""__str__(TypedPairScore self) -> std::string"""
10227 return _IMP_core.TypedPairScore___str__(self)
10229 def __repr__(self):
10230 r"""__repr__(TypedPairScore self) -> std::string"""
10231 return _IMP_core.TypedPairScore___repr__(self)
10235 return _object_cast_to_TypedPairScore(o)
10239 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10240 class RigidBodyDistancePairScore(KClosePairsPairScore):
10241 r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10243 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10245 def __init__(self, ps, r):
10246 r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10247 _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10250 r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10251 return _IMP_core.RigidBodyDistancePairScore___str__(self)
10253 def __repr__(self):
10254 r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10255 return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10259 return _object_cast_to_RigidBodyDistancePairScore(o)
10261 __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10264 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10266 r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10268 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10270 def __init__(self, f):
10271 r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10272 _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10274 def do_get_inputs(self, m, pis):
10275 r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10276 return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10278 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10279 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"""
10280 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10282 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10283 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"""
10284 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10286 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10287 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"""
10288 return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10290 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10291 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"""
10292 return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10294 def get_version_info(self):
10295 r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10296 return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10297 __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10300 r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10301 return _IMP_core.RigidBodyAnglePairScore___str__(self)
10303 def __repr__(self):
10304 r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10305 return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10309 return _object_cast_to_RigidBodyAnglePairScore(o)
10313 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10315 r"""Proxy of C++ IMP::core::TableRefiner class."""
10317 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10319 def __init__(self):
10320 r"""__init__(TableRefiner self) -> TableRefiner"""
10321 _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10324 r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10325 return _IMP_core.TableRefiner_add_particle(self, p, ps)
10327 def remove_particle(self, p):
10328 r"""remove_particle(TableRefiner self, Particle p)"""
10329 return _IMP_core.TableRefiner_remove_particle(self, p)
10331 def set_particle(self, p, ps):
10332 r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10333 return _IMP_core.TableRefiner_set_particle(self, p, ps)
10335 def do_get_inputs(self, m, pis):
10336 r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10337 return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10339 def get_version_info(self):
10340 r"""get_version_info(TableRefiner self) -> VersionInfo"""
10341 return _IMP_core.TableRefiner_get_version_info(self)
10342 __swig_destroy__ = _IMP_core.delete_TableRefiner
10345 r"""__str__(TableRefiner self) -> std::string"""
10346 return _IMP_core.TableRefiner___str__(self)
10348 def __repr__(self):
10349 r"""__repr__(TableRefiner self) -> std::string"""
10350 return _IMP_core.TableRefiner___repr__(self)
10354 return _object_cast_to_TableRefiner(o)
10358 _IMP_core.TableRefiner_swigregister(TableRefiner)
10359 LOWER = _IMP_core.LOWER
10361 BOTH = _IMP_core.BOTH
10363 UPPER = _IMP_core.UPPER
10366 r"""Proxy of C++ IMP::core::MCCGSampler class."""
10368 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10370 def __init__(self, *args):
10371 r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10372 _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10374 def set_bounding_box(self, bb):
10375 r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10376 return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10378 def set_number_of_attempts(self, att):
10379 r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10380 return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10382 def set_number_of_monte_carlo_steps(self, cg):
10383 r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10384 return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10386 def set_number_of_conjugate_gradient_steps(self, cg):
10387 r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10388 return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10390 def set_max_monte_carlo_step_size(self, *args):
10392 set_max_monte_carlo_step_size(MCCGSampler self, double d)
10393 set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10395 return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10397 def set_is_refining(self, tf):
10398 r"""set_is_refining(MCCGSampler self, bool tf)"""
10399 return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10401 def set_local_optimizer(self, opt):
10402 r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10403 return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10405 def set_save_rejected_configurations(self, tf):
10406 r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10407 return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10409 def get_rejected_configurations(self):
10410 r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10411 return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10412 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)
10413 def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10414 def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10415 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
10417 def remove_optimizer_state(self, d):
10418 r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10419 return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10421 def _python_index_optimizer_state(self, d, start, stop):
10422 r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10423 return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10425 def remove_optimizer_states(self, d):
10426 r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10427 return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10429 def set_optimizer_states(self, ps):
10430 r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10431 return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10433 def set_optimizer_states_order(self, objs):
10434 r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10435 return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10437 def add_optimizer_state(self, obj):
10438 r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10439 return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10441 def add_optimizer_states(self, objs):
10442 r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10443 return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10445 def clear_optimizer_states(self):
10446 r"""clear_optimizer_states(MCCGSampler self)"""
10447 return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10449 def get_number_of_optimizer_states(self):
10450 r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10451 return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10453 def get_has_optimizer_states(self):
10454 r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10455 return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10457 def get_optimizer_state(self, i):
10458 r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10459 return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10461 def get_optimizer_states(self):
10462 r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10463 return _IMP_core.MCCGSampler_get_optimizer_states(self)
10465 def erase_optimizer_state(self, i):
10466 r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10467 return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10469 def reserve_optimizer_states(self, sz):
10470 r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10471 return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10473 def do_sample(self):
10474 r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10475 return _IMP_core.MCCGSampler_do_sample(self)
10477 def get_version_info(self):
10478 r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10479 return _IMP_core.MCCGSampler_get_version_info(self)
10480 __swig_destroy__ = _IMP_core.delete_MCCGSampler
10483 r"""__str__(MCCGSampler self) -> std::string"""
10484 return _IMP_core.MCCGSampler___str__(self)
10486 def __repr__(self):
10487 r"""__repr__(MCCGSampler self) -> std::string"""
10488 return _IMP_core.MCCGSampler___repr__(self)
10492 return _object_cast_to_MCCGSampler(o)
10496 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10498 r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10500 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10502 def __init__(self, *args):
10503 r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10504 _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10506 def do_get_inputs(self):
10507 r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10508 return _IMP_core.MinimumRestraint_do_get_inputs(self)
10510 def get_version_info(self):
10511 r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10512 return _IMP_core.MinimumRestraint_get_version_info(self)
10513 __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10514 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)
10515 def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10516 def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10517 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
10519 def remove_restraint(self, d):
10520 r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10521 return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10523 def _python_index_restraint(self, d, start, stop):
10524 r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10525 return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10527 def remove_restraints(self, d):
10528 r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10529 return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10531 def set_restraints(self, ps):
10532 r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10533 return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10535 def set_restraints_order(self, objs):
10536 r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10537 return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10540 r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10541 return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10544 r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10545 return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10547 def clear_restraints(self):
10548 r"""clear_restraints(MinimumRestraint self)"""
10549 return _IMP_core.MinimumRestraint_clear_restraints(self)
10551 def get_number_of_restraints(self):
10552 r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10553 return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10555 def get_has_restraints(self):
10556 r"""get_has_restraints(MinimumRestraint self) -> bool"""
10557 return _IMP_core.MinimumRestraint_get_has_restraints(self)
10559 def get_restraint(self, i):
10560 r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10561 return _IMP_core.MinimumRestraint_get_restraint(self, i)
10563 def get_restraints(self):
10564 r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10565 return _IMP_core.MinimumRestraint_get_restraints(self)
10567 def erase_restraint(self, i):
10568 r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10569 return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10571 def reserve_restraints(self, sz):
10572 r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10573 return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10576 r"""__str__(MinimumRestraint self) -> std::string"""
10577 return _IMP_core.MinimumRestraint___str__(self)
10579 def __repr__(self):
10580 r"""__repr__(MinimumRestraint self) -> std::string"""
10581 return _IMP_core.MinimumRestraint___repr__(self)
10585 return _object_cast_to_MinimumRestraint(o)
10589 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10590 class Gaussian(RigidBody):
10591 r"""Proxy of C++ IMP::core::Gaussian class."""
10593 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10595 def __init__(self, *args):
10597 __init__(Gaussian self) -> Gaussian
10598 __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10599 __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10601 _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10603 def show(self, *args):
10604 r"""show(Gaussian self, _ostream out=std::cout)"""
10605 return _IMP_core.Gaussian_show(self, *args)
10608 def setup_particle(*args):
10610 setup_particle(Model m, ParticleIndex pi) -> Gaussian
10611 setup_particle(_ParticleAdaptor pa) -> Gaussian
10612 setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10613 setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10615 return _IMP_core.Gaussian_setup_particle(*args)
10618 def get_local_covariance_key():
10619 r"""get_local_covariance_key() -> ObjectKey"""
10620 return _IMP_core.Gaussian_get_local_covariance_key()
10623 def get_global_covariance_key():
10624 r"""get_global_covariance_key() -> ObjectKey"""
10625 return _IMP_core.Gaussian_get_global_covariance_key()
10628 def get_is_setup(*args):
10630 get_is_setup(_ParticleAdaptor p) -> bool
10631 get_is_setup(Model m, ParticleIndex pi) -> bool
10633 return _IMP_core.Gaussian_get_is_setup(*args)
10635 def get_local_covariance(self):
10636 r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10637 return _IMP_core.Gaussian_get_local_covariance(self)
10639 def get_variances(self):
10640 r"""get_variances(Gaussian self) -> Vector3D"""
10641 return _IMP_core.Gaussian_get_variances(self)
10643 def get_global_covariance(self):
10644 r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10645 return _IMP_core.Gaussian_get_global_covariance(self)
10647 def get_gaussian(self):
10648 r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10649 return _IMP_core.Gaussian_get_gaussian(self)
10651 def set_gaussian(self, g):
10652 r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10653 return _IMP_core.Gaussian_set_gaussian(self, g)
10655 def set_local_covariance(self, covar):
10656 r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10657 return _IMP_core.Gaussian_set_local_covariance(self, covar)
10659 def set_variances(self, v):
10660 r"""set_variances(Gaussian self, Vector3D v)"""
10661 return _IMP_core.Gaussian_set_variances(self, v)
10663 def set_global_covariance(self, covar):
10664 r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10665 return _IMP_core.Gaussian_set_global_covariance(self, covar)
10667 def update_global_covariance(self):
10668 r"""update_global_covariance(Gaussian self)"""
10669 return _IMP_core.Gaussian_update_global_covariance(self)
10671 def add_attribute(self, *args):
10673 add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10674 add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10675 add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10676 add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10677 add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10678 add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10679 add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10680 add_attribute(Gaussian self, ObjectKey a0, Object a1)
10681 add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10682 add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10683 add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10684 add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10686 return _IMP_core.Gaussian_add_attribute(self, *args)
10688 def get_value(self, *args):
10690 get_value(Gaussian self, FloatKey a0) -> IMP::Float
10691 get_value(Gaussian self, IntKey a0) -> IMP::Int
10692 get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10693 get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10694 get_value(Gaussian self, StringKey a0) -> IMP::String
10695 get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10696 get_value(Gaussian self, ObjectKey a0) -> Object
10697 get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10698 get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10699 get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10700 get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10702 return _IMP_core.Gaussian_get_value(self, *args)
10704 def set_value(self, *args):
10706 set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10707 set_value(Gaussian self, IntKey a0, IMP::Int a1)
10708 set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10709 set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10710 set_value(Gaussian self, StringKey a0, IMP::String a1)
10711 set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10712 set_value(Gaussian self, ObjectKey a0, Object a1)
10713 set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10714 set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10715 set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10716 set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10718 return _IMP_core.Gaussian_set_value(self, *args)
10720 def remove_attribute(self, *args):
10722 remove_attribute(Gaussian self, FloatKey a0)
10723 remove_attribute(Gaussian self, IntKey a0)
10724 remove_attribute(Gaussian self, FloatsKey a0)
10725 remove_attribute(Gaussian self, IntsKey a0)
10726 remove_attribute(Gaussian self, StringKey a0)
10727 remove_attribute(Gaussian self, ParticleIndexKey a0)
10728 remove_attribute(Gaussian self, ObjectKey a0)
10729 remove_attribute(Gaussian self, SparseFloatKey a0)
10730 remove_attribute(Gaussian self, SparseIntKey a0)
10731 remove_attribute(Gaussian self, SparseStringKey a0)
10732 remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10734 return _IMP_core.Gaussian_remove_attribute(self, *args)
10736 def has_attribute(self, *args):
10738 has_attribute(Gaussian self, FloatKey a0) -> bool
10739 has_attribute(Gaussian self, IntKey a0) -> bool
10740 has_attribute(Gaussian self, FloatsKey a0) -> bool
10741 has_attribute(Gaussian self, IntsKey a0) -> bool
10742 has_attribute(Gaussian self, StringKey a0) -> bool
10743 has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10744 has_attribute(Gaussian self, ObjectKey a0) -> bool
10745 has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10746 has_attribute(Gaussian self, SparseIntKey a0) -> bool
10747 has_attribute(Gaussian self, SparseStringKey a0) -> bool
10748 has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10750 return _IMP_core.Gaussian_has_attribute(self, *args)
10752 def get_derivative(self, a0):
10753 r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10754 return _IMP_core.Gaussian_get_derivative(self, a0)
10756 def get_name(self):
10757 r"""get_name(Gaussian self) -> std::string"""
10758 return _IMP_core.Gaussian_get_name(self)
10760 def clear_caches(self):
10761 r"""clear_caches(Gaussian self)"""
10762 return _IMP_core.Gaussian_clear_caches(self)
10764 def set_name(self, a0):
10765 r"""set_name(Gaussian self, std::string a0)"""
10766 return _IMP_core.Gaussian_set_name(self, a0)
10769 r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10770 return _IMP_core.Gaussian_set_check_level(self, a0)
10772 def add_to_derivative(self, a0, a1, a2):
10773 r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10774 return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10776 def set_is_optimized(self, a0, a1):
10777 r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10778 return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10780 def get_is_optimized(self, a0):
10781 r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10782 return _IMP_core.Gaussian_get_is_optimized(self, a0)
10785 r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10786 return _IMP_core.Gaussian_get_check_level(self)
10788 def __eq__(self, *args):
10790 __eq__(Gaussian self, Gaussian o) -> bool
10791 __eq__(Gaussian self, Particle d) -> bool
10793 return _IMP_core.Gaussian___eq__(self, *args)
10795 def __ne__(self, *args):
10797 __ne__(Gaussian self, Gaussian o) -> bool
10798 __ne__(Gaussian self, Particle d) -> bool
10800 return _IMP_core.Gaussian___ne__(self, *args)
10802 def __le__(self, *args):
10804 __le__(Gaussian self, Gaussian o) -> bool
10805 __le__(Gaussian self, Particle d) -> bool
10807 return _IMP_core.Gaussian___le__(self, *args)
10809 def __lt__(self, *args):
10811 __lt__(Gaussian self, Gaussian o) -> bool
10812 __lt__(Gaussian self, Particle d) -> bool
10814 return _IMP_core.Gaussian___lt__(self, *args)
10816 def __ge__(self, *args):
10818 __ge__(Gaussian self, Gaussian o) -> bool
10819 __ge__(Gaussian self, Particle d) -> bool
10821 return _IMP_core.Gaussian___ge__(self, *args)
10823 def __gt__(self, *args):
10825 __gt__(Gaussian self, Gaussian o) -> bool
10826 __gt__(Gaussian self, Particle d) -> bool
10828 return _IMP_core.Gaussian___gt__(self, *args)
10830 def __hash__(self):
10831 r"""__hash__(Gaussian self) -> std::size_t"""
10832 return _IMP_core.Gaussian___hash__(self)
10835 r"""__str__(Gaussian self) -> std::string"""
10836 return _IMP_core.Gaussian___str__(self)
10838 def __repr__(self):
10839 r"""__repr__(Gaussian self) -> std::string"""
10840 return _IMP_core.Gaussian___repr__(self)
10842 def _get_as_binary(self):
10843 r"""_get_as_binary(Gaussian self) -> PyObject *"""
10844 return _IMP_core.Gaussian__get_as_binary(self)
10846 def _set_from_binary(self, p):
10847 r"""_set_from_binary(Gaussian self, PyObject * p)"""
10848 return _IMP_core.Gaussian__set_from_binary(self, p)
10850 def __getstate__(self):
10851 p = self._get_as_binary()
10852 if len(self.__dict__) > 1:
10853 d = self.__dict__.copy()
10858 def __setstate__(self, p):
10859 if not hasattr(self,
'this'):
10861 if isinstance(p, tuple):
10863 self.__dict__.update(d)
10864 return self._set_from_binary(p)
10866 __swig_destroy__ = _IMP_core.delete_Gaussian
10869 _IMP_core.Gaussian_swigregister(Gaussian)
10871 r"""Proxy of C++ IMP::core::PairRestraint class."""
10873 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10875 def __init__(self, *args):
10877 __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10878 __init__(PairRestraint self) -> PairRestraint
10880 _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10882 def get_score_object(self):
10883 r"""get_score_object(PairRestraint self) -> PairScore"""
10884 return _IMP_core.PairRestraint_get_score_object(self)
10887 r"""get_index(PairRestraint self) -> IMP::PairScore::IndexArgument"""
10888 return _IMP_core.PairRestraint_get_index(self)
10890 def get_version_info(self):
10891 r"""get_version_info(PairRestraint self) -> VersionInfo"""
10892 return _IMP_core.PairRestraint_get_version_info(self)
10893 __swig_destroy__ = _IMP_core.delete_PairRestraint
10896 r"""__str__(PairRestraint self) -> std::string"""
10897 return _IMP_core.PairRestraint___str__(self)
10899 def __repr__(self):
10900 r"""__repr__(PairRestraint self) -> std::string"""
10901 return _IMP_core.PairRestraint___repr__(self)
10905 return _object_cast_to_PairRestraint(o)
10908 def _get_as_binary(self):
10909 r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10910 return _IMP_core.PairRestraint__get_as_binary(self)
10912 def _set_from_binary(self, p):
10913 r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10914 return _IMP_core.PairRestraint__set_from_binary(self, p)
10916 def __getstate__(self):
10917 p = self._get_as_binary()
10918 if len(self.__dict__) > 1:
10919 d = self.__dict__.copy()
10924 def __setstate__(self, p):
10925 if not hasattr(self,
'this'):
10927 if isinstance(p, tuple):
10929 self.__dict__.update(d)
10930 return self._set_from_binary(p)
10933 def _get_jax(self):
10934 from .
import _jax_util
10935 return _jax_util._get_jax_restraint(self)
10939 _IMP_core.PairRestraint_swigregister(PairRestraint)
10941 r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10943 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10945 def __init__(self, *args):
10947 __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10948 __init__(SingletonRestraint self) -> SingletonRestraint
10950 _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10952 def get_score_object(self):
10953 r"""get_score_object(SingletonRestraint self) -> SingletonScore"""
10954 return _IMP_core.SingletonRestraint_get_score_object(self)
10957 r"""get_index(SingletonRestraint self) -> ParticleIndex"""
10958 return _IMP_core.SingletonRestraint_get_index(self)
10960 def get_version_info(self):
10961 r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10962 return _IMP_core.SingletonRestraint_get_version_info(self)
10963 __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10966 r"""__str__(SingletonRestraint self) -> std::string"""
10967 return _IMP_core.SingletonRestraint___str__(self)
10969 def __repr__(self):
10970 r"""__repr__(SingletonRestraint self) -> std::string"""
10971 return _IMP_core.SingletonRestraint___repr__(self)
10975 return _object_cast_to_SingletonRestraint(o)
10978 def _get_as_binary(self):
10979 r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10980 return _IMP_core.SingletonRestraint__get_as_binary(self)
10982 def _set_from_binary(self, p):
10983 r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10984 return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10986 def __getstate__(self):
10987 p = self._get_as_binary()
10988 if len(self.__dict__) > 1:
10989 d = self.__dict__.copy()
10994 def __setstate__(self, p):
10995 if not hasattr(self,
'this'):
10997 if isinstance(p, tuple):
10999 self.__dict__.update(d)
11000 return self._set_from_binary(p)
11003 def _get_jax(self):
11004 from .
import _jax_util
11005 return _jax_util._get_jax_restraint(self)
11009 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
11011 r"""Proxy of C++ IMP::core::TripletRestraint class."""
11013 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11015 def __init__(self, *args):
11017 __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
11018 __init__(TripletRestraint self) -> TripletRestraint
11020 _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
11022 def get_score_object(self):
11023 r"""get_score_object(TripletRestraint self) -> TripletScore"""
11024 return _IMP_core.TripletRestraint_get_score_object(self)
11027 r"""get_index(TripletRestraint self) -> IMP::TripletScore::IndexArgument"""
11028 return _IMP_core.TripletRestraint_get_index(self)
11030 def get_version_info(self):
11031 r"""get_version_info(TripletRestraint self) -> VersionInfo"""
11032 return _IMP_core.TripletRestraint_get_version_info(self)
11033 __swig_destroy__ = _IMP_core.delete_TripletRestraint
11036 r"""__str__(TripletRestraint self) -> std::string"""
11037 return _IMP_core.TripletRestraint___str__(self)
11039 def __repr__(self):
11040 r"""__repr__(TripletRestraint self) -> std::string"""
11041 return _IMP_core.TripletRestraint___repr__(self)
11045 return _object_cast_to_TripletRestraint(o)
11048 def _get_as_binary(self):
11049 r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
11050 return _IMP_core.TripletRestraint__get_as_binary(self)
11052 def _set_from_binary(self, p):
11053 r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
11054 return _IMP_core.TripletRestraint__set_from_binary(self, p)
11056 def __getstate__(self):
11057 p = self._get_as_binary()
11058 if len(self.__dict__) > 1:
11059 d = self.__dict__.copy()
11064 def __setstate__(self, p):
11065 if not hasattr(self,
'this'):
11067 if isinstance(p, tuple):
11069 self.__dict__.update(d)
11070 return self._set_from_binary(p)
11074 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
11076 r"""Proxy of C++ IMP::core::QuadRestraint class."""
11078 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11080 def __init__(self, *args):
11082 __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
11083 __init__(QuadRestraint self) -> QuadRestraint
11085 _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
11087 def get_score_object(self):
11088 r"""get_score_object(QuadRestraint self) -> QuadScore"""
11089 return _IMP_core.QuadRestraint_get_score_object(self)
11092 r"""get_index(QuadRestraint self) -> IMP::QuadScore::IndexArgument"""
11093 return _IMP_core.QuadRestraint_get_index(self)
11095 def get_version_info(self):
11096 r"""get_version_info(QuadRestraint self) -> VersionInfo"""
11097 return _IMP_core.QuadRestraint_get_version_info(self)
11098 __swig_destroy__ = _IMP_core.delete_QuadRestraint
11101 r"""__str__(QuadRestraint self) -> std::string"""
11102 return _IMP_core.QuadRestraint___str__(self)
11104 def __repr__(self):
11105 r"""__repr__(QuadRestraint self) -> std::string"""
11106 return _IMP_core.QuadRestraint___repr__(self)
11110 return _object_cast_to_QuadRestraint(o)
11113 def _get_as_binary(self):
11114 r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
11115 return _IMP_core.QuadRestraint__get_as_binary(self)
11117 def _set_from_binary(self, p):
11118 r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
11119 return _IMP_core.QuadRestraint__set_from_binary(self, p)
11121 def __getstate__(self):
11122 p = self._get_as_binary()
11123 if len(self.__dict__) > 1:
11124 d = self.__dict__.copy()
11129 def __setstate__(self, p):
11130 if not hasattr(self,
'this'):
11132 if isinstance(p, tuple):
11134 self.__dict__.update(d)
11135 return self._set_from_binary(p)
11139 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
11141 r"""Proxy of C++ IMP::core::SingletonConstraint class."""
11143 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11145 def __init__(self, *args):
11147 __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
11148 __init__(SingletonConstraint self) -> SingletonConstraint
11150 _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
11152 def get_version_info(self):
11153 r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
11154 return _IMP_core.SingletonConstraint_get_version_info(self)
11155 __swig_destroy__ = _IMP_core.delete_SingletonConstraint
11158 r"""__str__(SingletonConstraint self) -> std::string"""
11159 return _IMP_core.SingletonConstraint___str__(self)
11161 def __repr__(self):
11162 r"""__repr__(SingletonConstraint self) -> std::string"""
11163 return _IMP_core.SingletonConstraint___repr__(self)
11167 return _object_cast_to_SingletonConstraint(o)
11170 def _get_as_binary(self):
11171 r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
11172 return _IMP_core.SingletonConstraint__get_as_binary(self)
11174 def _set_from_binary(self, p):
11175 r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
11176 return _IMP_core.SingletonConstraint__set_from_binary(self, p)
11178 def __getstate__(self):
11179 p = self._get_as_binary()
11180 if len(self.__dict__) > 1:
11181 d = self.__dict__.copy()
11186 def __setstate__(self, p):
11187 if not hasattr(self,
'this'):
11189 if isinstance(p, tuple):
11191 self.__dict__.update(d)
11192 return self._set_from_binary(p)
11196 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11198 r"""Proxy of C++ IMP::core::PairConstraint class."""
11200 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11202 def __init__(self, *args):
11204 __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11205 __init__(PairConstraint self) -> PairConstraint
11207 _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11209 def get_version_info(self):
11210 r"""get_version_info(PairConstraint self) -> VersionInfo"""
11211 return _IMP_core.PairConstraint_get_version_info(self)
11212 __swig_destroy__ = _IMP_core.delete_PairConstraint
11215 r"""__str__(PairConstraint self) -> std::string"""
11216 return _IMP_core.PairConstraint___str__(self)
11218 def __repr__(self):
11219 r"""__repr__(PairConstraint self) -> std::string"""
11220 return _IMP_core.PairConstraint___repr__(self)
11224 return _object_cast_to_PairConstraint(o)
11227 def _get_as_binary(self):
11228 r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11229 return _IMP_core.PairConstraint__get_as_binary(self)
11231 def _set_from_binary(self, p):
11232 r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11233 return _IMP_core.PairConstraint__set_from_binary(self, p)
11235 def __getstate__(self):
11236 p = self._get_as_binary()
11237 if len(self.__dict__) > 1:
11238 d = self.__dict__.copy()
11243 def __setstate__(self, p):
11244 if not hasattr(self,
'this'):
11246 if isinstance(p, tuple):
11248 self.__dict__.update(d)
11249 return self._set_from_binary(p)
11253 _IMP_core.PairConstraint_swigregister(PairConstraint)
11255 r"""Proxy of C++ IMP::core::TripletConstraint class."""
11257 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11259 def __init__(self, *args):
11261 __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11262 __init__(TripletConstraint self) -> TripletConstraint
11264 _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11266 def get_version_info(self):
11267 r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11268 return _IMP_core.TripletConstraint_get_version_info(self)
11269 __swig_destroy__ = _IMP_core.delete_TripletConstraint
11272 r"""__str__(TripletConstraint self) -> std::string"""
11273 return _IMP_core.TripletConstraint___str__(self)
11275 def __repr__(self):
11276 r"""__repr__(TripletConstraint self) -> std::string"""
11277 return _IMP_core.TripletConstraint___repr__(self)
11281 return _object_cast_to_TripletConstraint(o)
11284 def _get_as_binary(self):
11285 r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11286 return _IMP_core.TripletConstraint__get_as_binary(self)
11288 def _set_from_binary(self, p):
11289 r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11290 return _IMP_core.TripletConstraint__set_from_binary(self, p)
11292 def __getstate__(self):
11293 p = self._get_as_binary()
11294 if len(self.__dict__) > 1:
11295 d = self.__dict__.copy()
11300 def __setstate__(self, p):
11301 if not hasattr(self,
'this'):
11303 if isinstance(p, tuple):
11305 self.__dict__.update(d)
11306 return self._set_from_binary(p)
11310 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11312 r"""Proxy of C++ IMP::core::QuadConstraint class."""
11314 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11316 def __init__(self, *args):
11318 __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11319 __init__(QuadConstraint self) -> QuadConstraint
11321 _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11323 def get_version_info(self):
11324 r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11325 return _IMP_core.QuadConstraint_get_version_info(self)
11326 __swig_destroy__ = _IMP_core.delete_QuadConstraint
11329 r"""__str__(QuadConstraint self) -> std::string"""
11330 return _IMP_core.QuadConstraint___str__(self)
11332 def __repr__(self):
11333 r"""__repr__(QuadConstraint self) -> std::string"""
11334 return _IMP_core.QuadConstraint___repr__(self)
11338 return _object_cast_to_QuadConstraint(o)
11341 def _get_as_binary(self):
11342 r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11343 return _IMP_core.QuadConstraint__get_as_binary(self)
11345 def _set_from_binary(self, p):
11346 r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11347 return _IMP_core.QuadConstraint__set_from_binary(self, p)
11349 def __getstate__(self):
11350 p = self._get_as_binary()
11351 if len(self.__dict__) > 1:
11352 d = self.__dict__.copy()
11357 def __setstate__(self, p):
11358 if not hasattr(self,
'this'):
11360 if isinstance(p, tuple):
11362 self.__dict__.update(d)
11363 return self._set_from_binary(p)
11367 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11369 r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11371 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11373 def __init__(self, *args):
11375 __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11376 __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11378 _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11380 def do_get_inputs(self, arg2, arg3):
11381 r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11382 return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11384 def get_value(self, *args):
11386 get_value(ConstantSingletonPredicate self, Particle a) -> int
11387 get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11389 return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11391 def get_value_index(self, *args):
11393 get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11394 get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11396 return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11398 def get_version_info(self):
11399 r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11400 return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11401 __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11404 r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11405 return _IMP_core.ConstantSingletonPredicate___str__(self)
11407 def __repr__(self):
11408 r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11409 return _IMP_core.ConstantSingletonPredicate___repr__(self)
11413 return _object_cast_to_ConstantSingletonPredicate(o)
11416 def _get_as_binary(self):
11417 r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11418 return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11420 def _set_from_binary(self, p):
11421 r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11422 return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11424 def __getstate__(self):
11425 p = self._get_as_binary()
11426 if len(self.__dict__) > 1:
11427 d = self.__dict__.copy()
11432 def __setstate__(self, p):
11433 if not hasattr(self,
'this'):
11435 if isinstance(p, tuple):
11437 self.__dict__.update(d)
11438 return self._set_from_binary(p)
11442 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11444 r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11446 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11448 def __init__(self, *args):
11449 r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11450 _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11452 def do_get_inputs(self, m, pis):
11453 r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11454 return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11456 def get_value(self, *args):
11458 get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11459 get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11461 return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11463 def get_value_index(self, *args):
11465 get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11466 get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11468 return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11470 def get_version_info(self):
11471 r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11472 return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11473 __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11476 r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11477 return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11479 def __repr__(self):
11480 r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11481 return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11485 return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11488 def _get_as_binary(self):
11489 r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11490 return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11492 def _set_from_binary(self, p):
11493 r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11494 return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11496 def __getstate__(self):
11497 p = self._get_as_binary()
11498 if len(self.__dict__) > 1:
11499 d = self.__dict__.copy()
11504 def __setstate__(self, p):
11505 if not hasattr(self,
'this'):
11507 if isinstance(p, tuple):
11509 self.__dict__.update(d)
11510 return self._set_from_binary(p)
11514 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11516 r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11518 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11520 def __init__(self, *args):
11521 r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11522 _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11524 def do_get_inputs(self, m, pis):
11525 r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11526 return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11528 def get_value(self, *args):
11530 get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11531 get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11532 get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11534 return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11536 def get_value_index(self, *args):
11538 get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11539 get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11541 return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11543 def get_version_info(self):
11544 r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11545 return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11546 __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11549 r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11550 return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11552 def __repr__(self):
11553 r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11554 return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11558 return _object_cast_to_OrderedTypeSingletonPredicate(o)
11562 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11564 r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11566 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11568 def __init__(self, *args):
11569 r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11570 _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11572 def do_get_inputs(self, arg2, arg3):
11573 r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11574 return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11576 def get_value(self, *args):
11578 get_value(AllSameSingletonPredicate self, Particle a) -> int
11579 get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11581 return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11583 def get_value_index(self, *args):
11585 get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11586 get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11588 return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11590 def get_version_info(self):
11591 r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11592 return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11593 __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11596 r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11597 return _IMP_core.AllSameSingletonPredicate___str__(self)
11599 def __repr__(self):
11600 r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11601 return _IMP_core.AllSameSingletonPredicate___repr__(self)
11605 return _object_cast_to_AllSameSingletonPredicate(o)
11608 def _get_as_binary(self):
11609 r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11610 return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11612 def _set_from_binary(self, p):
11613 r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11614 return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11616 def __getstate__(self):
11617 p = self._get_as_binary()
11618 if len(self.__dict__) > 1:
11619 d = self.__dict__.copy()
11624 def __setstate__(self, p):
11625 if not hasattr(self,
'this'):
11627 if isinstance(p, tuple):
11629 self.__dict__.update(d)
11630 return self._set_from_binary(p)
11634 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11636 r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11638 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11640 def __init__(self, *args):
11641 r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11642 _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11644 def do_get_inputs(self, arg2, arg3):
11645 r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11646 return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11648 def get_value(self, *args):
11650 get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11651 get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11653 return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11655 def get_value_index(self, *args):
11657 get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11658 get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11660 return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11662 def get_version_info(self):
11663 r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11664 return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11665 __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11668 r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11669 return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11671 def __repr__(self):
11672 r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11673 return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11677 return _object_cast_to_CoinFlipSingletonPredicate(o)
11681 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11683 r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11685 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11687 def __init__(self, *args):
11689 __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11690 __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11692 _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11694 def do_get_inputs(self, arg2, arg3):
11695 r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11696 return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11698 def get_value(self, *args):
11700 get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11701 get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11703 return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11705 def get_value_index(self, *args):
11707 get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11708 get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11710 return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11712 def get_version_info(self):
11713 r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11714 return _IMP_core.ConstantPairPredicate_get_version_info(self)
11715 __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11718 r"""__str__(ConstantPairPredicate self) -> std::string"""
11719 return _IMP_core.ConstantPairPredicate___str__(self)
11721 def __repr__(self):
11722 r"""__repr__(ConstantPairPredicate self) -> std::string"""
11723 return _IMP_core.ConstantPairPredicate___repr__(self)
11727 return _object_cast_to_ConstantPairPredicate(o)
11730 def _get_as_binary(self):
11731 r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11732 return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11734 def _set_from_binary(self, p):
11735 r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11736 return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11738 def __getstate__(self):
11739 p = self._get_as_binary()
11740 if len(self.__dict__) > 1:
11741 d = self.__dict__.copy()
11746 def __setstate__(self, p):
11747 if not hasattr(self,
'this'):
11749 if isinstance(p, tuple):
11751 self.__dict__.update(d)
11752 return self._set_from_binary(p)
11756 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11758 r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11760 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11762 def __init__(self, *args):
11763 r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11764 _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11766 def do_get_inputs(self, m, pis):
11767 r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11768 return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11770 def get_value(self, *args):
11772 get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11773 get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11775 return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11777 def get_value_index(self, *args):
11779 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11780 get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11782 return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11784 def get_version_info(self):
11785 r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11786 return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11787 __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11790 r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11791 return _IMP_core.UnorderedTypePairPredicate___str__(self)
11793 def __repr__(self):
11794 r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11795 return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11799 return _object_cast_to_UnorderedTypePairPredicate(o)
11802 def _get_as_binary(self):
11803 r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11804 return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11806 def _set_from_binary(self, p):
11807 r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11808 return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11810 def __getstate__(self):
11811 p = self._get_as_binary()
11812 if len(self.__dict__) > 1:
11813 d = self.__dict__.copy()
11818 def __setstate__(self, p):
11819 if not hasattr(self,
'this'):
11821 if isinstance(p, tuple):
11823 self.__dict__.update(d)
11824 return self._set_from_binary(p)
11828 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11830 r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11832 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11834 def __init__(self, *args):
11835 r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11836 _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11838 def do_get_inputs(self, m, pis):
11839 r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11840 return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11842 def get_value(self, *args):
11844 get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11845 get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11846 get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11848 return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11850 def get_value_index(self, *args):
11852 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11853 get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11855 return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11857 def get_version_info(self):
11858 r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11859 return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11860 __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11863 r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11864 return _IMP_core.OrderedTypePairPredicate___str__(self)
11866 def __repr__(self):
11867 r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11868 return _IMP_core.OrderedTypePairPredicate___repr__(self)
11872 return _object_cast_to_OrderedTypePairPredicate(o)
11876 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11878 r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11880 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11882 def __init__(self, *args):
11883 r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11884 _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11886 def do_get_inputs(self, arg2, arg3):
11887 r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11888 return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11890 def get_value(self, *args):
11892 get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11893 get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11895 return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11897 def get_value_index(self, *args):
11899 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11900 get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11902 return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11904 def get_version_info(self):
11905 r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11906 return _IMP_core.AllSamePairPredicate_get_version_info(self)
11907 __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11910 r"""__str__(AllSamePairPredicate self) -> std::string"""
11911 return _IMP_core.AllSamePairPredicate___str__(self)
11913 def __repr__(self):
11914 r"""__repr__(AllSamePairPredicate self) -> std::string"""
11915 return _IMP_core.AllSamePairPredicate___repr__(self)
11919 return _object_cast_to_AllSamePairPredicate(o)
11922 def _get_as_binary(self):
11923 r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11924 return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11926 def _set_from_binary(self, p):
11927 r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11928 return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11930 def __getstate__(self):
11931 p = self._get_as_binary()
11932 if len(self.__dict__) > 1:
11933 d = self.__dict__.copy()
11938 def __setstate__(self, p):
11939 if not hasattr(self,
'this'):
11941 if isinstance(p, tuple):
11943 self.__dict__.update(d)
11944 return self._set_from_binary(p)
11948 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11950 r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11952 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11954 def __init__(self, *args):
11955 r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11956 _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11958 def do_get_inputs(self, arg2, arg3):
11959 r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11960 return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11962 def get_value(self, *args):
11964 get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11965 get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11967 return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11969 def get_value_index(self, *args):
11971 get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11972 get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11974 return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11976 def get_version_info(self):
11977 r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11978 return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11979 __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11982 r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11983 return _IMP_core.CoinFlipPairPredicate___str__(self)
11985 def __repr__(self):
11986 r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11987 return _IMP_core.CoinFlipPairPredicate___repr__(self)
11991 return _object_cast_to_CoinFlipPairPredicate(o)
11995 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11997 r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12001 def __init__(self, *args):
12003 __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
12004 __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
12006 _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
12008 def do_get_inputs(self, arg2, arg3):
12009 r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12010 return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
12012 def get_value(self, *args):
12014 get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12015 get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12017 return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
12019 def get_value_index(self, *args):
12021 get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12022 get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12024 return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
12026 def get_version_info(self):
12027 r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
12028 return _IMP_core.ConstantTripletPredicate_get_version_info(self)
12029 __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
12032 r"""__str__(ConstantTripletPredicate self) -> std::string"""
12033 return _IMP_core.ConstantTripletPredicate___str__(self)
12035 def __repr__(self):
12036 r"""__repr__(ConstantTripletPredicate self) -> std::string"""
12037 return _IMP_core.ConstantTripletPredicate___repr__(self)
12041 return _object_cast_to_ConstantTripletPredicate(o)
12044 def _get_as_binary(self):
12045 r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
12046 return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
12048 def _set_from_binary(self, p):
12049 r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
12050 return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
12052 def __getstate__(self):
12053 p = self._get_as_binary()
12054 if len(self.__dict__) > 1:
12055 d = self.__dict__.copy()
12060 def __setstate__(self, p):
12061 if not hasattr(self,
'this'):
12063 if isinstance(p, tuple):
12065 self.__dict__.update(d)
12066 return self._set_from_binary(p)
12070 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
12072 r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
12074 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12076 def __init__(self, *args):
12077 r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
12078 _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
12080 def do_get_inputs(self, m, pis):
12081 r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12082 return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
12084 def get_value(self, *args):
12086 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12087 get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12089 return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
12091 def get_value_index(self, *args):
12093 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12094 get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12096 return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
12098 def get_version_info(self):
12099 r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
12100 return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
12101 __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
12104 r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
12105 return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
12107 def __repr__(self):
12108 r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
12109 return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
12113 return _object_cast_to_UnorderedTypeTripletPredicate(o)
12116 def _get_as_binary(self):
12117 r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
12118 return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
12120 def _set_from_binary(self, p):
12121 r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
12122 return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
12124 def __getstate__(self):
12125 p = self._get_as_binary()
12126 if len(self.__dict__) > 1:
12127 d = self.__dict__.copy()
12132 def __setstate__(self, p):
12133 if not hasattr(self,
'this'):
12135 if isinstance(p, tuple):
12137 self.__dict__.update(d)
12138 return self._set_from_binary(p)
12142 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
12144 r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
12146 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12148 def __init__(self, *args):
12149 r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
12150 _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
12152 def do_get_inputs(self, m, pis):
12153 r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12154 return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
12156 def get_value(self, *args):
12158 get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
12159 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12160 get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12162 return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
12164 def get_value_index(self, *args):
12166 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12167 get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12169 return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
12171 def get_version_info(self):
12172 r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
12173 return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
12174 __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
12177 r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
12178 return _IMP_core.OrderedTypeTripletPredicate___str__(self)
12180 def __repr__(self):
12181 r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
12182 return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
12186 return _object_cast_to_OrderedTypeTripletPredicate(o)
12190 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12192 r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12194 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12196 def __init__(self, *args):
12197 r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12198 _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12200 def do_get_inputs(self, arg2, arg3):
12201 r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12202 return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12204 def get_value(self, *args):
12206 get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12207 get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12209 return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12211 def get_value_index(self, *args):
12213 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12214 get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12216 return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12218 def get_version_info(self):
12219 r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12220 return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12221 __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12224 r"""__str__(AllSameTripletPredicate self) -> std::string"""
12225 return _IMP_core.AllSameTripletPredicate___str__(self)
12227 def __repr__(self):
12228 r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12229 return _IMP_core.AllSameTripletPredicate___repr__(self)
12233 return _object_cast_to_AllSameTripletPredicate(o)
12236 def _get_as_binary(self):
12237 r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12238 return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12240 def _set_from_binary(self, p):
12241 r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12242 return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12244 def __getstate__(self):
12245 p = self._get_as_binary()
12246 if len(self.__dict__) > 1:
12247 d = self.__dict__.copy()
12252 def __setstate__(self, p):
12253 if not hasattr(self,
'this'):
12255 if isinstance(p, tuple):
12257 self.__dict__.update(d)
12258 return self._set_from_binary(p)
12262 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12264 r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12266 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12268 def __init__(self, *args):
12269 r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12270 _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12272 def do_get_inputs(self, arg2, arg3):
12273 r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12274 return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12276 def get_value(self, *args):
12278 get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12279 get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12281 return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12283 def get_value_index(self, *args):
12285 get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12286 get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12288 return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12290 def get_version_info(self):
12291 r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12292 return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12293 __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12296 r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12297 return _IMP_core.CoinFlipTripletPredicate___str__(self)
12299 def __repr__(self):
12300 r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12301 return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12305 return _object_cast_to_CoinFlipTripletPredicate(o)
12309 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12311 r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12313 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12315 def __init__(self, *args):
12317 __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12318 __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12320 _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12322 def do_get_inputs(self, arg2, arg3):
12323 r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12324 return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12326 def get_value(self, *args):
12328 get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12329 get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12331 return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12333 def get_value_index(self, *args):
12335 get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12336 get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12338 return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12340 def get_version_info(self):
12341 r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12342 return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12343 __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12346 r"""__str__(ConstantQuadPredicate self) -> std::string"""
12347 return _IMP_core.ConstantQuadPredicate___str__(self)
12349 def __repr__(self):
12350 r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12351 return _IMP_core.ConstantQuadPredicate___repr__(self)
12355 return _object_cast_to_ConstantQuadPredicate(o)
12358 def _get_as_binary(self):
12359 r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12360 return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12362 def _set_from_binary(self, p):
12363 r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12364 return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12366 def __getstate__(self):
12367 p = self._get_as_binary()
12368 if len(self.__dict__) > 1:
12369 d = self.__dict__.copy()
12374 def __setstate__(self, p):
12375 if not hasattr(self,
'this'):
12377 if isinstance(p, tuple):
12379 self.__dict__.update(d)
12380 return self._set_from_binary(p)
12384 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12386 r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12390 def __init__(self, *args):
12391 r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12392 _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12394 def do_get_inputs(self, m, pis):
12395 r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12396 return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12398 def get_value(self, *args):
12400 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12401 get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12403 return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12405 def get_value_index(self, *args):
12407 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12408 get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12410 return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12412 def get_version_info(self):
12413 r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12414 return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12415 __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12418 r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12419 return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12421 def __repr__(self):
12422 r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12423 return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12427 return _object_cast_to_UnorderedTypeQuadPredicate(o)
12430 def _get_as_binary(self):
12431 r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12432 return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12434 def _set_from_binary(self, p):
12435 r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12436 return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12438 def __getstate__(self):
12439 p = self._get_as_binary()
12440 if len(self.__dict__) > 1:
12441 d = self.__dict__.copy()
12446 def __setstate__(self, p):
12447 if not hasattr(self,
'this'):
12449 if isinstance(p, tuple):
12451 self.__dict__.update(d)
12452 return self._set_from_binary(p)
12456 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12458 r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12460 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12462 def __init__(self, *args):
12463 r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12464 _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12466 def do_get_inputs(self, m, pis):
12467 r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12468 return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12470 def get_value(self, *args):
12472 get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12473 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12474 get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12476 return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12478 def get_value_index(self, *args):
12480 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12481 get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12483 return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12485 def get_version_info(self):
12486 r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12487 return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12488 __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12491 r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12492 return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12494 def __repr__(self):
12495 r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12496 return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12500 return _object_cast_to_OrderedTypeQuadPredicate(o)
12504 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12506 r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12508 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12510 def __init__(self, *args):
12511 r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12512 _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12514 def do_get_inputs(self, arg2, arg3):
12515 r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12516 return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12518 def get_value(self, *args):
12520 get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12521 get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12523 return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12525 def get_value_index(self, *args):
12527 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12528 get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12530 return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12532 def get_version_info(self):
12533 r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12534 return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12535 __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12538 r"""__str__(AllSameQuadPredicate self) -> std::string"""
12539 return _IMP_core.AllSameQuadPredicate___str__(self)
12541 def __repr__(self):
12542 r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12543 return _IMP_core.AllSameQuadPredicate___repr__(self)
12547 return _object_cast_to_AllSameQuadPredicate(o)
12550 def _get_as_binary(self):
12551 r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12552 return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12554 def _set_from_binary(self, p):
12555 r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12556 return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12558 def __getstate__(self):
12559 p = self._get_as_binary()
12560 if len(self.__dict__) > 1:
12561 d = self.__dict__.copy()
12566 def __setstate__(self, p):
12567 if not hasattr(self,
'this'):
12569 if isinstance(p, tuple):
12571 self.__dict__.update(d)
12572 return self._set_from_binary(p)
12576 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12578 r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12580 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12582 def __init__(self, *args):
12583 r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12584 _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12586 def do_get_inputs(self, arg2, arg3):
12587 r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12588 return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12590 def get_value(self, *args):
12592 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12593 get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12595 return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12597 def get_value_index(self, *args):
12599 get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12600 get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12602 return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12604 def get_version_info(self):
12605 r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12606 return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12607 __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12610 r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12611 return _IMP_core.CoinFlipQuadPredicate___str__(self)
12613 def __repr__(self):
12614 r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12615 return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12619 return _object_cast_to_CoinFlipQuadPredicate(o)
12623 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12625 r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12627 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12629 def __init__(self, *args):
12630 r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12631 _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12633 def do_get_inputs(self, m, pi):
12634 r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12635 return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12637 def get_value(self, *args):
12639 get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12640 get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12642 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12644 def get_value_index(self, *args):
12646 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12647 get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12649 return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12651 def get_version_info(self):
12652 r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12653 return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12654 __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12657 r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12658 return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12660 def __repr__(self):
12661 r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12662 return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12666 return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12670 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12672 r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12674 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12676 def __init__(self, *args):
12677 r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12678 _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12680 def do_get_inputs(self, m, pi):
12681 r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12682 return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12684 def get_value(self, *args):
12686 get_value(AttributeSingletonPredicate self, Particle a) -> int
12687 get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12689 return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12691 def get_value_index(self, *args):
12693 get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12694 get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12696 return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12698 def get_version_info(self):
12699 r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12700 return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12701 __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12704 r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12705 return _IMP_core.AttributeSingletonPredicate___str__(self)
12707 def __repr__(self):
12708 r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12709 return _IMP_core.AttributeSingletonPredicate___repr__(self)
12713 return _object_cast_to_AttributeSingletonPredicate(o)
12717 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12719 r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12721 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12723 def __init__(self, *args):
12724 r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12725 _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12727 def do_get_inputs(self, m, pi):
12728 r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12729 return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12731 def get_value(self, *args):
12733 get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12734 get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12736 return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12738 def get_value_index(self, *args):
12740 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12741 get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12743 return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12745 def get_version_info(self):
12746 r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12747 return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12748 __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12751 r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12752 return _IMP_core.IsCollisionPairPredicate___str__(self)
12754 def __repr__(self):
12755 r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12756 return _IMP_core.IsCollisionPairPredicate___repr__(self)
12760 return _object_cast_to_IsCollisionPairPredicate(o)
12764 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12765 class AngleRestraint(TripletRestraint):
12766 r"""Proxy of C++ IMP::core::AngleRestraint class."""
12768 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12770 def __init__(self, *args):
12772 __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12773 __init__(AngleRestraint self) -> AngleRestraint
12775 _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12776 __swig_destroy__ = _IMP_core.delete_AngleRestraint
12779 r"""__str__(AngleRestraint self) -> std::string"""
12780 return _IMP_core.AngleRestraint___str__(self)
12782 def __repr__(self):
12783 r"""__repr__(AngleRestraint self) -> std::string"""
12784 return _IMP_core.AngleRestraint___repr__(self)
12788 return _object_cast_to_AngleRestraint(o)
12791 def _get_as_binary(self):
12792 r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12793 return _IMP_core.AngleRestraint__get_as_binary(self)
12795 def _set_from_binary(self, p):
12796 r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12797 return _IMP_core.AngleRestraint__set_from_binary(self, p)
12799 def __getstate__(self):
12800 p = self._get_as_binary()
12801 if len(self.__dict__) > 1:
12802 d = self.__dict__.copy()
12807 def __setstate__(self, p):
12808 if not hasattr(self,
'this'):
12810 if isinstance(p, tuple):
12812 self.__dict__.update(d)
12813 return self._set_from_binary(p)
12817 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12818 class RigidBodyMover(MonteCarloMover):
12819 r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12821 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12823 def __init__(self, *args):
12825 __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12826 __init__(RigidBodyMover self) -> RigidBodyMover
12828 _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12830 def set_maximum_translation(self, mt):
12831 r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12832 return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12834 def set_maximum_rotation(self, mr):
12835 r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12836 return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12838 def get_maximum_translation(self):
12839 r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12840 return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12842 def get_maximum_rotation(self):
12843 r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12844 return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12846 def get_version_info(self):
12847 r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12848 return _IMP_core.RigidBodyMover_get_version_info(self)
12849 __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12852 r"""__str__(RigidBodyMover self) -> std::string"""
12853 return _IMP_core.RigidBodyMover___str__(self)
12855 def __repr__(self):
12856 r"""__repr__(RigidBodyMover self) -> std::string"""
12857 return _IMP_core.RigidBodyMover___repr__(self)
12861 return _object_cast_to_RigidBodyMover(o)
12864 def _get_as_binary(self):
12865 r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12866 return _IMP_core.RigidBodyMover__get_as_binary(self)
12868 def _set_from_binary(self, p):
12869 r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12870 return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12872 def __getstate__(self):
12873 p = self._get_as_binary()
12874 if len(self.__dict__) > 1:
12875 d = self.__dict__.copy()
12880 def __setstate__(self, p):
12881 if not hasattr(self,
'this'):
12883 if isinstance(p, tuple):
12885 self.__dict__.update(d)
12886 return self._set_from_binary(p)
12890 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12891 class RigidBodyTunneler(MonteCarloMover):
12892 r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12894 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12896 def __init__(self, m, pis, ref, k, move_probability=1.):
12897 r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12898 _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12900 def add_entry_point(self, fl):
12901 r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12902 return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12904 def reset_stats(self):
12905 r"""reset_stats(RigidBodyTunneler self)"""
12906 return _IMP_core.RigidBodyTunneler_reset_stats(self)
12908 def get_number_of_rejected_moves(self):
12909 r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12910 return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12912 def get_number_of_proposed_moves(self):
12913 r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12914 return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12916 def get_number_of_impossible_moves(self):
12917 r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12918 return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12920 def get_number_of_calls(self):
12921 r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12922 return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12925 def get_reduced_coordinates(*args):
12927 get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12928 get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12930 return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12933 def set_reduced_coordinates(m, target, ref, coords):
12934 r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12935 return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12937 def get_version_info(self):
12938 r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12939 return _IMP_core.RigidBodyTunneler_get_version_info(self)
12940 __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12943 r"""__str__(RigidBodyTunneler self) -> std::string"""
12944 return _IMP_core.RigidBodyTunneler___str__(self)
12946 def __repr__(self):
12947 r"""__repr__(RigidBodyTunneler self) -> std::string"""
12948 return _IMP_core.RigidBodyTunneler___repr__(self)
12952 return _object_cast_to_RigidBodyTunneler(o)
12956 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12958 r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12962 def __init__(self, *args):
12964 __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12965 __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
12967 _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12969 def set_x0(self, *args):
12971 set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12972 set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12974 return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12977 r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12978 return _IMP_core.RigidBodyUmbrella_get_x0(self)
12981 r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12982 return _IMP_core.RigidBodyUmbrella_get_x(self)
12984 def set_alpha(self, alpha):
12985 r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12986 return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12988 def set_k(self, k):
12989 r"""set_k(RigidBodyUmbrella self, double k)"""
12990 return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12992 def get_version_info(self):
12993 r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12994 return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12995 __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12998 r"""__str__(RigidBodyUmbrella self) -> std::string"""
12999 return _IMP_core.RigidBodyUmbrella___str__(self)
13001 def __repr__(self):
13002 r"""__repr__(RigidBodyUmbrella self) -> std::string"""
13003 return _IMP_core.RigidBodyUmbrella___repr__(self)
13007 return _object_cast_to_RigidBodyUmbrella(o)
13011 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
13013 r"""Proxy of C++ IMP::core::VolumeRestraint class."""
13015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13017 def __init__(self, f, sc, volume):
13018 r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
13019 _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
13021 def do_get_inputs(self):
13022 r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
13023 return _IMP_core.VolumeRestraint_do_get_inputs(self)
13025 def get_version_info(self):
13026 r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
13027 return _IMP_core.VolumeRestraint_get_version_info(self)
13028 __swig_destroy__ = _IMP_core.delete_VolumeRestraint
13031 r"""__str__(VolumeRestraint self) -> std::string"""
13032 return _IMP_core.VolumeRestraint___str__(self)
13034 def __repr__(self):
13035 r"""__repr__(VolumeRestraint self) -> std::string"""
13036 return _IMP_core.VolumeRestraint___repr__(self)
13040 return _object_cast_to_VolumeRestraint(o)
13044 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
13047 r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
13048 return _IMP_core.get_centroid(ps)
13051 r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
13052 return _IMP_core.get_bounding_box(ps)
13054 r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
13056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13058 def __init__(self, ps):
13059 r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
13060 _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
13062 def show_statistics(self, *args):
13063 r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
13064 return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
13067 r"""reset(MoveStatisticsScoreState self)"""
13068 return _IMP_core.MoveStatisticsScoreState_reset(self)
13070 def do_before_evaluate(self):
13071 r"""do_before_evaluate(MoveStatisticsScoreState self)"""
13072 return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
13074 def do_after_evaluate(self, da):
13075 r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
13076 return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
13078 def do_get_inputs(self):
13079 r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
13080 return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
13082 def do_get_outputs(self):
13083 r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
13084 return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
13086 def get_version_info(self):
13087 r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
13088 return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
13089 __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
13092 r"""__str__(MoveStatisticsScoreState self) -> std::string"""
13093 return _IMP_core.MoveStatisticsScoreState___str__(self)
13095 def __repr__(self):
13096 r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
13097 return _IMP_core.MoveStatisticsScoreState___repr__(self)
13101 return _object_cast_to_MoveStatisticsScoreState(o)
13105 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
13106 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
13109 r"""Proxy of C++ IMP::core::Typed class."""
13111 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13114 def get_type_key():
13115 r"""get_type_key() -> IntKey"""
13116 return _IMP_core.Typed_get_type_key()
13118 def __init__(self, *args):
13120 __init__(Typed self) -> Typed
13121 __init__(Typed self, Model m, ParticleIndex id) -> Typed
13122 __init__(Typed self, _ParticleAdaptor d) -> Typed
13124 _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
13126 def show(self, *args):
13127 r"""show(Typed self, _ostream out=std::cout)"""
13128 return _IMP_core.Typed_show(self, *args)
13131 def setup_particle(*args):
13133 setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
13134 setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
13136 return _IMP_core.Typed_setup_particle(*args)
13139 def get_is_setup(*args):
13141 get_is_setup(_ParticleAdaptor p) -> bool
13142 get_is_setup(Model m, ParticleIndex pi) -> bool
13144 return _IMP_core.Typed_get_is_setup(*args)
13146 def get_type(self):
13147 r"""get_type(Typed self) -> ParticleType"""
13148 return _IMP_core.Typed_get_type(self)
13150 def set_type(self, pt):
13151 r"""set_type(Typed self, ParticleType pt)"""
13152 return _IMP_core.Typed_set_type(self, pt)
13154 def add_attribute(self, *args):
13156 add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
13157 add_attribute(Typed self, FloatKey a0, IMP::Float a1)
13158 add_attribute(Typed self, IntKey a0, IMP::Int a1)
13159 add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
13160 add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
13161 add_attribute(Typed self, StringKey a0, IMP::String a1)
13162 add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
13163 add_attribute(Typed self, ObjectKey a0, Object a1)
13164 add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
13165 add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
13166 add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
13167 add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13169 return _IMP_core.Typed_add_attribute(self, *args)
13171 def get_value(self, *args):
13173 get_value(Typed self, FloatKey a0) -> IMP::Float
13174 get_value(Typed self, IntKey a0) -> IMP::Int
13175 get_value(Typed self, FloatsKey a0) -> IMP::Floats
13176 get_value(Typed self, IntsKey a0) -> IMP::Ints
13177 get_value(Typed self, StringKey a0) -> IMP::String
13178 get_value(Typed self, ParticleIndexKey a0) -> Particle
13179 get_value(Typed self, ObjectKey a0) -> Object
13180 get_value(Typed self, SparseFloatKey a0) -> IMP::Float
13181 get_value(Typed self, SparseIntKey a0) -> IMP::Int
13182 get_value(Typed self, SparseStringKey a0) -> IMP::String
13183 get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
13185 return _IMP_core.Typed_get_value(self, *args)
13187 def set_value(self, *args):
13189 set_value(Typed self, FloatKey a0, IMP::Float a1)
13190 set_value(Typed self, IntKey a0, IMP::Int a1)
13191 set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13192 set_value(Typed self, IntsKey a0, IMP::Ints a1)
13193 set_value(Typed self, StringKey a0, IMP::String a1)
13194 set_value(Typed self, ParticleIndexKey a0, Particle a1)
13195 set_value(Typed self, ObjectKey a0, Object a1)
13196 set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13197 set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13198 set_value(Typed self, SparseStringKey a0, IMP::String a1)
13199 set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13201 return _IMP_core.Typed_set_value(self, *args)
13203 def remove_attribute(self, *args):
13205 remove_attribute(Typed self, FloatKey a0)
13206 remove_attribute(Typed self, IntKey a0)
13207 remove_attribute(Typed self, FloatsKey a0)
13208 remove_attribute(Typed self, IntsKey a0)
13209 remove_attribute(Typed self, StringKey a0)
13210 remove_attribute(Typed self, ParticleIndexKey a0)
13211 remove_attribute(Typed self, ObjectKey a0)
13212 remove_attribute(Typed self, SparseFloatKey a0)
13213 remove_attribute(Typed self, SparseIntKey a0)
13214 remove_attribute(Typed self, SparseStringKey a0)
13215 remove_attribute(Typed self, SparseParticleIndexKey a0)
13217 return _IMP_core.Typed_remove_attribute(self, *args)
13219 def has_attribute(self, *args):
13221 has_attribute(Typed self, FloatKey a0) -> bool
13222 has_attribute(Typed self, IntKey a0) -> bool
13223 has_attribute(Typed self, FloatsKey a0) -> bool
13224 has_attribute(Typed self, IntsKey a0) -> bool
13225 has_attribute(Typed self, StringKey a0) -> bool
13226 has_attribute(Typed self, ParticleIndexKey a0) -> bool
13227 has_attribute(Typed self, ObjectKey a0) -> bool
13228 has_attribute(Typed self, SparseFloatKey a0) -> bool
13229 has_attribute(Typed self, SparseIntKey a0) -> bool
13230 has_attribute(Typed self, SparseStringKey a0) -> bool
13231 has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13233 return _IMP_core.Typed_has_attribute(self, *args)
13235 def get_derivative(self, a0):
13236 r"""get_derivative(Typed self, FloatKey a0) -> double"""
13237 return _IMP_core.Typed_get_derivative(self, a0)
13239 def get_name(self):
13240 r"""get_name(Typed self) -> std::string"""
13241 return _IMP_core.Typed_get_name(self)
13243 def clear_caches(self):
13244 r"""clear_caches(Typed self)"""
13245 return _IMP_core.Typed_clear_caches(self)
13247 def set_name(self, a0):
13248 r"""set_name(Typed self, std::string a0)"""
13249 return _IMP_core.Typed_set_name(self, a0)
13252 r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13253 return _IMP_core.Typed_set_check_level(self, a0)
13255 def add_to_derivative(self, a0, a1, a2):
13256 r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13257 return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13259 def set_is_optimized(self, a0, a1):
13260 r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13261 return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13263 def get_is_optimized(self, a0):
13264 r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13265 return _IMP_core.Typed_get_is_optimized(self, a0)
13268 r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13269 return _IMP_core.Typed_get_check_level(self)
13271 def __eq__(self, *args):
13273 __eq__(Typed self, Typed o) -> bool
13274 __eq__(Typed self, Particle d) -> bool
13276 return _IMP_core.Typed___eq__(self, *args)
13278 def __ne__(self, *args):
13280 __ne__(Typed self, Typed o) -> bool
13281 __ne__(Typed self, Particle d) -> bool
13283 return _IMP_core.Typed___ne__(self, *args)
13285 def __le__(self, *args):
13287 __le__(Typed self, Typed o) -> bool
13288 __le__(Typed self, Particle d) -> bool
13290 return _IMP_core.Typed___le__(self, *args)
13292 def __lt__(self, *args):
13294 __lt__(Typed self, Typed o) -> bool
13295 __lt__(Typed self, Particle d) -> bool
13297 return _IMP_core.Typed___lt__(self, *args)
13299 def __ge__(self, *args):
13301 __ge__(Typed self, Typed o) -> bool
13302 __ge__(Typed self, Particle d) -> bool
13304 return _IMP_core.Typed___ge__(self, *args)
13306 def __gt__(self, *args):
13308 __gt__(Typed self, Typed o) -> bool
13309 __gt__(Typed self, Particle d) -> bool
13311 return _IMP_core.Typed___gt__(self, *args)
13313 def __hash__(self):
13314 r"""__hash__(Typed self) -> std::size_t"""
13315 return _IMP_core.Typed___hash__(self)
13318 r"""__str__(Typed self) -> std::string"""
13319 return _IMP_core.Typed___str__(self)
13321 def __repr__(self):
13322 r"""__repr__(Typed self) -> std::string"""
13323 return _IMP_core.Typed___repr__(self)
13325 def _get_as_binary(self):
13326 r"""_get_as_binary(Typed self) -> PyObject *"""
13327 return _IMP_core.Typed__get_as_binary(self)
13329 def _set_from_binary(self, p):
13330 r"""_set_from_binary(Typed self, PyObject * p)"""
13331 return _IMP_core.Typed__set_from_binary(self, p)
13333 def __getstate__(self):
13334 p = self._get_as_binary()
13335 if len(self.__dict__) > 1:
13336 d = self.__dict__.copy()
13341 def __setstate__(self, p):
13342 if not hasattr(self,
'this'):
13344 if isinstance(p, tuple):
13346 self.__dict__.update(d)
13347 return self._set_from_binary(p)
13349 __swig_destroy__ = _IMP_core.delete_Typed
13352 _IMP_core.Typed_swigregister(Typed)
13354 def __lshift__(*args):
13356 __lshift__(_ostream out, XYZ n) -> _ostream
13357 __lshift__(_ostream out, XYZR n) -> _ostream
13358 __lshift__(_ostream out, Direction n) -> _ostream
13359 __lshift__(_ostream out, DirectionAngle n) -> _ostream
13360 __lshift__(_ostream out, Surface n) -> _ostream
13361 __lshift__(_ostream out, Centroid n) -> _ostream
13362 __lshift__(_ostream out, Cover n) -> _ostream
13363 __lshift__(_ostream out, Reference n) -> _ostream
13364 __lshift__(_ostream out, RigidMember n) -> _ostream
13365 __lshift__(_ostream out, RigidBody n) -> _ostream
13366 __lshift__(_ostream out, Gaussian n) -> _ostream
13367 __lshift__(_ostream out, Typed n) -> _ostream
13369 return _IMP_core.__lshift__(*args)
13371 r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13373 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13375 def __init__(self, rs, out):
13376 r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13377 _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13379 def get_version_info(self):
13380 r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13381 return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13382 __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13385 r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13386 return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13388 def __repr__(self):
13389 r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13390 return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13394 return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13398 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13401 r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13402 return _IMP_core.assign_blame(rs, ps, attribute)
13405 r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13406 return _IMP_core.create_blame_geometries(*args)
13408 r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13410 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13412 def __init__(self, m, q1, q2):
13413 r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13414 _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13416 def add_term(self, term):
13417 r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13418 return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13420 def do_get_inputs(self):
13421 r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13422 return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13424 def get_version_info(self):
13425 r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13426 return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13427 __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13430 r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13431 return _IMP_core.MultipleBinormalRestraint___str__(self)
13433 def __repr__(self):
13434 r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13435 return _IMP_core.MultipleBinormalRestraint___repr__(self)
13439 return _object_cast_to_MultipleBinormalRestraint(o)
13443 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13444 class BinormalTerm(object):
13445 r"""Proxy of C++ IMP::core::BinormalTerm class."""
13447 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13449 def __init__(self):
13450 r"""__init__(BinormalTerm self) -> BinormalTerm"""
13451 _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13453 def set_correlation(self, correlation):
13454 r"""set_correlation(BinormalTerm self, double correlation)"""
13455 return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13457 def set_weight(self, weight):
13458 r"""set_weight(BinormalTerm self, double weight)"""
13459 return _IMP_core.BinormalTerm_set_weight(self, weight)
13461 def set_means(self, means):
13462 r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13463 return _IMP_core.BinormalTerm_set_means(self, means)
13465 def set_standard_deviations(self, stdevs):
13466 r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13467 return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13469 def show(self, *args):
13470 r"""show(BinormalTerm self, _ostream out=std::cout)"""
13471 return _IMP_core.BinormalTerm_show(self, *args)
13474 r"""__str__(BinormalTerm self) -> std::string"""
13475 return _IMP_core.BinormalTerm___str__(self)
13477 def __repr__(self):
13478 r"""__repr__(BinormalTerm self) -> std::string"""
13479 return _IMP_core.BinormalTerm___repr__(self)
13481 def _get_as_binary(self):
13482 r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13483 return _IMP_core.BinormalTerm__get_as_binary(self)
13485 def _set_from_binary(self, p):
13486 r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13487 return _IMP_core.BinormalTerm__set_from_binary(self, p)
13489 def __getstate__(self):
13490 p = self._get_as_binary()
13491 if len(self.__dict__) > 1:
13492 d = self.__dict__.copy()
13497 def __setstate__(self, p):
13498 if not hasattr(self,
'this'):
13500 if isinstance(p, tuple):
13502 self.__dict__.update(d)
13503 return self._set_from_binary(p)
13505 __swig_destroy__ = _IMP_core.delete_BinormalTerm
13508 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13510 r"""Proxy of C++ IMP::core::Provenance class."""
13512 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13514 def get_previous(self):
13515 r"""get_previous(Provenance self) -> Provenance"""
13516 return _IMP_core.Provenance_get_previous(self)
13518 def set_previous(self, p):
13519 r"""set_previous(Provenance self, Provenance p)"""
13520 return _IMP_core.Provenance_set_previous(self, p)
13522 def __init__(self, *args):
13524 __init__(Provenance self) -> Provenance
13525 __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13526 __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13528 _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13531 def get_is_setup(*args):
13533 get_is_setup(Model m, ParticleIndex pi) -> bool
13534 get_is_setup(_ParticleAdaptor p) -> bool
13536 return _IMP_core.Provenance_get_is_setup(*args)
13538 def show(self, *args):
13539 r"""show(Provenance self, _ostream out=std::cout)"""
13540 return _IMP_core.Provenance_show(self, *args)
13543 def setup_particle(*args):
13545 setup_particle(Model m, ParticleIndex pi) -> Provenance
13546 setup_particle(_ParticleAdaptor pa) -> Provenance
13548 return _IMP_core.Provenance_setup_particle(*args)
13550 def add_attribute(self, *args):
13552 add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13553 add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13554 add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13555 add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13556 add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13557 add_attribute(Provenance self, StringKey a0, IMP::String a1)
13558 add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13559 add_attribute(Provenance self, ObjectKey a0, Object a1)
13560 add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13561 add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13562 add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13563 add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13565 return _IMP_core.Provenance_add_attribute(self, *args)
13567 def get_value(self, *args):
13569 get_value(Provenance self, FloatKey a0) -> IMP::Float
13570 get_value(Provenance self, IntKey a0) -> IMP::Int
13571 get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13572 get_value(Provenance self, IntsKey a0) -> IMP::Ints
13573 get_value(Provenance self, StringKey a0) -> IMP::String
13574 get_value(Provenance self, ParticleIndexKey a0) -> Particle
13575 get_value(Provenance self, ObjectKey a0) -> Object
13576 get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13577 get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13578 get_value(Provenance self, SparseStringKey a0) -> IMP::String
13579 get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13581 return _IMP_core.Provenance_get_value(self, *args)
13583 def set_value(self, *args):
13585 set_value(Provenance self, FloatKey a0, IMP::Float a1)
13586 set_value(Provenance self, IntKey a0, IMP::Int a1)
13587 set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13588 set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13589 set_value(Provenance self, StringKey a0, IMP::String a1)
13590 set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13591 set_value(Provenance self, ObjectKey a0, Object a1)
13592 set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13593 set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13594 set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13595 set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13597 return _IMP_core.Provenance_set_value(self, *args)
13599 def remove_attribute(self, *args):
13601 remove_attribute(Provenance self, FloatKey a0)
13602 remove_attribute(Provenance self, IntKey a0)
13603 remove_attribute(Provenance self, FloatsKey a0)
13604 remove_attribute(Provenance self, IntsKey a0)
13605 remove_attribute(Provenance self, StringKey a0)
13606 remove_attribute(Provenance self, ParticleIndexKey a0)
13607 remove_attribute(Provenance self, ObjectKey a0)
13608 remove_attribute(Provenance self, SparseFloatKey a0)
13609 remove_attribute(Provenance self, SparseIntKey a0)
13610 remove_attribute(Provenance self, SparseStringKey a0)
13611 remove_attribute(Provenance self, SparseParticleIndexKey a0)
13613 return _IMP_core.Provenance_remove_attribute(self, *args)
13615 def has_attribute(self, *args):
13617 has_attribute(Provenance self, FloatKey a0) -> bool
13618 has_attribute(Provenance self, IntKey a0) -> bool
13619 has_attribute(Provenance self, FloatsKey a0) -> bool
13620 has_attribute(Provenance self, IntsKey a0) -> bool
13621 has_attribute(Provenance self, StringKey a0) -> bool
13622 has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13623 has_attribute(Provenance self, ObjectKey a0) -> bool
13624 has_attribute(Provenance self, SparseFloatKey a0) -> bool
13625 has_attribute(Provenance self, SparseIntKey a0) -> bool
13626 has_attribute(Provenance self, SparseStringKey a0) -> bool
13627 has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13629 return _IMP_core.Provenance_has_attribute(self, *args)
13631 def get_derivative(self, a0):
13632 r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13633 return _IMP_core.Provenance_get_derivative(self, a0)
13635 def get_name(self):
13636 r"""get_name(Provenance self) -> std::string"""
13637 return _IMP_core.Provenance_get_name(self)
13639 def clear_caches(self):
13640 r"""clear_caches(Provenance self)"""
13641 return _IMP_core.Provenance_clear_caches(self)
13643 def set_name(self, a0):
13644 r"""set_name(Provenance self, std::string a0)"""
13645 return _IMP_core.Provenance_set_name(self, a0)
13648 r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13649 return _IMP_core.Provenance_set_check_level(self, a0)
13651 def add_to_derivative(self, a0, a1, a2):
13652 r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13653 return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13655 def set_is_optimized(self, a0, a1):
13656 r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13657 return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13659 def get_is_optimized(self, a0):
13660 r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13661 return _IMP_core.Provenance_get_is_optimized(self, a0)
13664 r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13665 return _IMP_core.Provenance_get_check_level(self)
13667 def __eq__(self, *args):
13669 __eq__(Provenance self, Provenance o) -> bool
13670 __eq__(Provenance self, Particle d) -> bool
13672 return _IMP_core.Provenance___eq__(self, *args)
13674 def __ne__(self, *args):
13676 __ne__(Provenance self, Provenance o) -> bool
13677 __ne__(Provenance self, Particle d) -> bool
13679 return _IMP_core.Provenance___ne__(self, *args)
13681 def __le__(self, *args):
13683 __le__(Provenance self, Provenance o) -> bool
13684 __le__(Provenance self, Particle d) -> bool
13686 return _IMP_core.Provenance___le__(self, *args)
13688 def __lt__(self, *args):
13690 __lt__(Provenance self, Provenance o) -> bool
13691 __lt__(Provenance self, Particle d) -> bool
13693 return _IMP_core.Provenance___lt__(self, *args)
13695 def __ge__(self, *args):
13697 __ge__(Provenance self, Provenance o) -> bool
13698 __ge__(Provenance self, Particle d) -> bool
13700 return _IMP_core.Provenance___ge__(self, *args)
13702 def __gt__(self, *args):
13704 __gt__(Provenance self, Provenance o) -> bool
13705 __gt__(Provenance self, Particle d) -> bool
13707 return _IMP_core.Provenance___gt__(self, *args)
13709 def __hash__(self):
13710 r"""__hash__(Provenance self) -> std::size_t"""
13711 return _IMP_core.Provenance___hash__(self)
13714 r"""__str__(Provenance self) -> std::string"""
13715 return _IMP_core.Provenance___str__(self)
13717 def __repr__(self):
13718 r"""__repr__(Provenance self) -> std::string"""
13719 return _IMP_core.Provenance___repr__(self)
13721 def _get_as_binary(self):
13722 r"""_get_as_binary(Provenance self) -> PyObject *"""
13723 return _IMP_core.Provenance__get_as_binary(self)
13725 def _set_from_binary(self, p):
13726 r"""_set_from_binary(Provenance self, PyObject * p)"""
13727 return _IMP_core.Provenance__set_from_binary(self, p)
13729 def __getstate__(self):
13730 p = self._get_as_binary()
13731 if len(self.__dict__) > 1:
13732 d = self.__dict__.copy()
13737 def __setstate__(self, p):
13738 if not hasattr(self,
'this'):
13740 if isinstance(p, tuple):
13742 self.__dict__.update(d)
13743 return self._set_from_binary(p)
13745 __swig_destroy__ = _IMP_core.delete_Provenance
13748 _IMP_core.Provenance_swigregister(Provenance)
13749 class StructureProvenance(Provenance):
13750 r"""Proxy of C++ IMP::core::StructureProvenance class."""
13752 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13754 def set_filename(self, filename):
13755 r"""set_filename(StructureProvenance self, std::string filename)"""
13756 return _IMP_core.StructureProvenance_set_filename(self, filename)
13758 def get_filename(self):
13759 r"""get_filename(StructureProvenance self) -> std::string"""
13760 return _IMP_core.StructureProvenance_get_filename(self)
13762 def set_chain_id(self, chain_id):
13763 r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13764 return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13767 r"""get_chain_id(StructureProvenance self) -> std::string"""
13768 return _IMP_core.StructureProvenance_get_chain_id(self)
13770 def set_residue_offset(self, residue_offset):
13771 r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13772 return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13774 def get_residue_offset(self):
13775 r"""get_residue_offset(StructureProvenance self) -> int"""
13776 return _IMP_core.StructureProvenance_get_residue_offset(self)
13778 def __init__(self, *args):
13780 __init__(StructureProvenance self) -> StructureProvenance
13781 __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13782 __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13784 _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13787 def get_is_setup(*args):
13789 get_is_setup(Model m, ParticleIndex pi) -> bool
13790 get_is_setup(_ParticleAdaptor p) -> bool
13792 return _IMP_core.StructureProvenance_get_is_setup(*args)
13794 def show(self, *args):
13795 r"""show(StructureProvenance self, _ostream out=std::cout)"""
13796 return _IMP_core.StructureProvenance_show(self, *args)
13799 def setup_particle(*args):
13801 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13802 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13803 setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13804 setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13805 setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13806 setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13808 return _IMP_core.StructureProvenance_setup_particle(*args)
13810 def add_attribute(self, *args):
13812 add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13813 add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13814 add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13815 add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13816 add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13817 add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13818 add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13819 add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13820 add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13821 add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13822 add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13823 add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13825 return _IMP_core.StructureProvenance_add_attribute(self, *args)
13827 def get_value(self, *args):
13829 get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13830 get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13831 get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13832 get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13833 get_value(StructureProvenance self, StringKey a0) -> IMP::String
13834 get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13835 get_value(StructureProvenance self, ObjectKey a0) -> Object
13836 get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13837 get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13838 get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13839 get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13841 return _IMP_core.StructureProvenance_get_value(self, *args)
13843 def set_value(self, *args):
13845 set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13846 set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13847 set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13848 set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13849 set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13850 set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13851 set_value(StructureProvenance self, ObjectKey a0, Object a1)
13852 set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13853 set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13854 set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13855 set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13857 return _IMP_core.StructureProvenance_set_value(self, *args)
13859 def remove_attribute(self, *args):
13861 remove_attribute(StructureProvenance self, FloatKey a0)
13862 remove_attribute(StructureProvenance self, IntKey a0)
13863 remove_attribute(StructureProvenance self, FloatsKey a0)
13864 remove_attribute(StructureProvenance self, IntsKey a0)
13865 remove_attribute(StructureProvenance self, StringKey a0)
13866 remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13867 remove_attribute(StructureProvenance self, ObjectKey a0)
13868 remove_attribute(StructureProvenance self, SparseFloatKey a0)
13869 remove_attribute(StructureProvenance self, SparseIntKey a0)
13870 remove_attribute(StructureProvenance self, SparseStringKey a0)
13871 remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13873 return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13875 def has_attribute(self, *args):
13877 has_attribute(StructureProvenance self, FloatKey a0) -> bool
13878 has_attribute(StructureProvenance self, IntKey a0) -> bool
13879 has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13880 has_attribute(StructureProvenance self, IntsKey a0) -> bool
13881 has_attribute(StructureProvenance self, StringKey a0) -> bool
13882 has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13883 has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13884 has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13885 has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13886 has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13887 has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13889 return _IMP_core.StructureProvenance_has_attribute(self, *args)
13891 def get_derivative(self, a0):
13892 r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13893 return _IMP_core.StructureProvenance_get_derivative(self, a0)
13895 def get_name(self):
13896 r"""get_name(StructureProvenance self) -> std::string"""
13897 return _IMP_core.StructureProvenance_get_name(self)
13899 def clear_caches(self):
13900 r"""clear_caches(StructureProvenance self)"""
13901 return _IMP_core.StructureProvenance_clear_caches(self)
13903 def set_name(self, a0):
13904 r"""set_name(StructureProvenance self, std::string a0)"""
13905 return _IMP_core.StructureProvenance_set_name(self, a0)
13908 r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13909 return _IMP_core.StructureProvenance_set_check_level(self, a0)
13911 def add_to_derivative(self, a0, a1, a2):
13912 r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13913 return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13915 def set_is_optimized(self, a0, a1):
13916 r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13917 return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13919 def get_is_optimized(self, a0):
13920 r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13921 return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13924 r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13925 return _IMP_core.StructureProvenance_get_check_level(self)
13927 def __eq__(self, *args):
13929 __eq__(StructureProvenance self, StructureProvenance o) -> bool
13930 __eq__(StructureProvenance self, Particle d) -> bool
13932 return _IMP_core.StructureProvenance___eq__(self, *args)
13934 def __ne__(self, *args):
13936 __ne__(StructureProvenance self, StructureProvenance o) -> bool
13937 __ne__(StructureProvenance self, Particle d) -> bool
13939 return _IMP_core.StructureProvenance___ne__(self, *args)
13941 def __le__(self, *args):
13943 __le__(StructureProvenance self, StructureProvenance o) -> bool
13944 __le__(StructureProvenance self, Particle d) -> bool
13946 return _IMP_core.StructureProvenance___le__(self, *args)
13948 def __lt__(self, *args):
13950 __lt__(StructureProvenance self, StructureProvenance o) -> bool
13951 __lt__(StructureProvenance self, Particle d) -> bool
13953 return _IMP_core.StructureProvenance___lt__(self, *args)
13955 def __ge__(self, *args):
13957 __ge__(StructureProvenance self, StructureProvenance o) -> bool
13958 __ge__(StructureProvenance self, Particle d) -> bool
13960 return _IMP_core.StructureProvenance___ge__(self, *args)
13962 def __gt__(self, *args):
13964 __gt__(StructureProvenance self, StructureProvenance o) -> bool
13965 __gt__(StructureProvenance self, Particle d) -> bool
13967 return _IMP_core.StructureProvenance___gt__(self, *args)
13969 def __hash__(self):
13970 r"""__hash__(StructureProvenance self) -> std::size_t"""
13971 return _IMP_core.StructureProvenance___hash__(self)
13974 r"""__str__(StructureProvenance self) -> std::string"""
13975 return _IMP_core.StructureProvenance___str__(self)
13977 def __repr__(self):
13978 r"""__repr__(StructureProvenance self) -> std::string"""
13979 return _IMP_core.StructureProvenance___repr__(self)
13981 def _get_as_binary(self):
13982 r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13983 return _IMP_core.StructureProvenance__get_as_binary(self)
13985 def _set_from_binary(self, p):
13986 r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13987 return _IMP_core.StructureProvenance__set_from_binary(self, p)
13989 def __getstate__(self):
13990 p = self._get_as_binary()
13991 if len(self.__dict__) > 1:
13992 d = self.__dict__.copy()
13997 def __setstate__(self, p):
13998 if not hasattr(self,
'this'):
14000 if isinstance(p, tuple):
14002 self.__dict__.update(d)
14003 return self._set_from_binary(p)
14005 __swig_destroy__ = _IMP_core.delete_StructureProvenance
14008 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
14009 class SampleProvenance(Provenance):
14010 r"""Proxy of C++ IMP::core::SampleProvenance class."""
14012 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14014 def set_method(self, method):
14015 r"""set_method(SampleProvenance self, std::string method)"""
14016 return _IMP_core.SampleProvenance_set_method(self, method)
14018 def get_method(self):
14019 r"""get_method(SampleProvenance self) -> std::string"""
14020 return _IMP_core.SampleProvenance_get_method(self)
14022 def set_number_of_frames(self, frames):
14023 r"""set_number_of_frames(SampleProvenance self, int frames)"""
14024 return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
14027 r"""get_number_of_frames(SampleProvenance self) -> int"""
14028 return _IMP_core.SampleProvenance_get_number_of_frames(self)
14030 def set_number_of_iterations(self, iterations):
14031 r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
14032 return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
14034 def get_number_of_iterations(self):
14035 r"""get_number_of_iterations(SampleProvenance self) -> int"""
14036 return _IMP_core.SampleProvenance_get_number_of_iterations(self)
14038 def set_number_of_replicas(self, replicas):
14039 r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
14040 return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
14042 def get_number_of_replicas(self):
14043 r"""get_number_of_replicas(SampleProvenance self) -> int"""
14044 return _IMP_core.SampleProvenance_get_number_of_replicas(self)
14046 def __init__(self, *args):
14048 __init__(SampleProvenance self) -> SampleProvenance
14049 __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
14050 __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
14052 _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
14055 def get_is_setup(*args):
14057 get_is_setup(Model m, ParticleIndex pi) -> bool
14058 get_is_setup(_ParticleAdaptor p) -> bool
14060 return _IMP_core.SampleProvenance_get_is_setup(*args)
14062 def show(self, *args):
14063 r"""show(SampleProvenance self, _ostream out=std::cout)"""
14064 return _IMP_core.SampleProvenance_show(self, *args)
14067 def setup_particle(*args):
14069 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
14070 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
14071 setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
14072 setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
14073 setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
14074 setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
14076 return _IMP_core.SampleProvenance_setup_particle(*args)
14078 def add_attribute(self, *args):
14080 add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
14081 add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
14082 add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
14083 add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
14084 add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
14085 add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
14086 add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
14087 add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
14088 add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
14089 add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
14090 add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
14091 add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14093 return _IMP_core.SampleProvenance_add_attribute(self, *args)
14095 def get_value(self, *args):
14097 get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
14098 get_value(SampleProvenance self, IntKey a0) -> IMP::Int
14099 get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
14100 get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
14101 get_value(SampleProvenance self, StringKey a0) -> IMP::String
14102 get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
14103 get_value(SampleProvenance self, ObjectKey a0) -> Object
14104 get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
14105 get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
14106 get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
14107 get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14109 return _IMP_core.SampleProvenance_get_value(self, *args)
14111 def set_value(self, *args):
14113 set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
14114 set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
14115 set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
14116 set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
14117 set_value(SampleProvenance self, StringKey a0, IMP::String a1)
14118 set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
14119 set_value(SampleProvenance self, ObjectKey a0, Object a1)
14120 set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
14121 set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
14122 set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
14123 set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14125 return _IMP_core.SampleProvenance_set_value(self, *args)
14127 def remove_attribute(self, *args):
14129 remove_attribute(SampleProvenance self, FloatKey a0)
14130 remove_attribute(SampleProvenance self, IntKey a0)
14131 remove_attribute(SampleProvenance self, FloatsKey a0)
14132 remove_attribute(SampleProvenance self, IntsKey a0)
14133 remove_attribute(SampleProvenance self, StringKey a0)
14134 remove_attribute(SampleProvenance self, ParticleIndexKey a0)
14135 remove_attribute(SampleProvenance self, ObjectKey a0)
14136 remove_attribute(SampleProvenance self, SparseFloatKey a0)
14137 remove_attribute(SampleProvenance self, SparseIntKey a0)
14138 remove_attribute(SampleProvenance self, SparseStringKey a0)
14139 remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
14141 return _IMP_core.SampleProvenance_remove_attribute(self, *args)
14143 def has_attribute(self, *args):
14145 has_attribute(SampleProvenance self, FloatKey a0) -> bool
14146 has_attribute(SampleProvenance self, IntKey a0) -> bool
14147 has_attribute(SampleProvenance self, FloatsKey a0) -> bool
14148 has_attribute(SampleProvenance self, IntsKey a0) -> bool
14149 has_attribute(SampleProvenance self, StringKey a0) -> bool
14150 has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
14151 has_attribute(SampleProvenance self, ObjectKey a0) -> bool
14152 has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
14153 has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
14154 has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
14155 has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
14157 return _IMP_core.SampleProvenance_has_attribute(self, *args)
14159 def get_derivative(self, a0):
14160 r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
14161 return _IMP_core.SampleProvenance_get_derivative(self, a0)
14163 def get_name(self):
14164 r"""get_name(SampleProvenance self) -> std::string"""
14165 return _IMP_core.SampleProvenance_get_name(self)
14167 def clear_caches(self):
14168 r"""clear_caches(SampleProvenance self)"""
14169 return _IMP_core.SampleProvenance_clear_caches(self)
14171 def set_name(self, a0):
14172 r"""set_name(SampleProvenance self, std::string a0)"""
14173 return _IMP_core.SampleProvenance_set_name(self, a0)
14176 r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
14177 return _IMP_core.SampleProvenance_set_check_level(self, a0)
14179 def add_to_derivative(self, a0, a1, a2):
14180 r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14181 return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
14183 def set_is_optimized(self, a0, a1):
14184 r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14185 return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14187 def get_is_optimized(self, a0):
14188 r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14189 return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14192 r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14193 return _IMP_core.SampleProvenance_get_check_level(self)
14195 def __eq__(self, *args):
14197 __eq__(SampleProvenance self, SampleProvenance o) -> bool
14198 __eq__(SampleProvenance self, Particle d) -> bool
14200 return _IMP_core.SampleProvenance___eq__(self, *args)
14202 def __ne__(self, *args):
14204 __ne__(SampleProvenance self, SampleProvenance o) -> bool
14205 __ne__(SampleProvenance self, Particle d) -> bool
14207 return _IMP_core.SampleProvenance___ne__(self, *args)
14209 def __le__(self, *args):
14211 __le__(SampleProvenance self, SampleProvenance o) -> bool
14212 __le__(SampleProvenance self, Particle d) -> bool
14214 return _IMP_core.SampleProvenance___le__(self, *args)
14216 def __lt__(self, *args):
14218 __lt__(SampleProvenance self, SampleProvenance o) -> bool
14219 __lt__(SampleProvenance self, Particle d) -> bool
14221 return _IMP_core.SampleProvenance___lt__(self, *args)
14223 def __ge__(self, *args):
14225 __ge__(SampleProvenance self, SampleProvenance o) -> bool
14226 __ge__(SampleProvenance self, Particle d) -> bool
14228 return _IMP_core.SampleProvenance___ge__(self, *args)
14230 def __gt__(self, *args):
14232 __gt__(SampleProvenance self, SampleProvenance o) -> bool
14233 __gt__(SampleProvenance self, Particle d) -> bool
14235 return _IMP_core.SampleProvenance___gt__(self, *args)
14237 def __hash__(self):
14238 r"""__hash__(SampleProvenance self) -> std::size_t"""
14239 return _IMP_core.SampleProvenance___hash__(self)
14242 r"""__str__(SampleProvenance self) -> std::string"""
14243 return _IMP_core.SampleProvenance___str__(self)
14245 def __repr__(self):
14246 r"""__repr__(SampleProvenance self) -> std::string"""
14247 return _IMP_core.SampleProvenance___repr__(self)
14249 def _get_as_binary(self):
14250 r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14251 return _IMP_core.SampleProvenance__get_as_binary(self)
14253 def _set_from_binary(self, p):
14254 r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14255 return _IMP_core.SampleProvenance__set_from_binary(self, p)
14257 def __getstate__(self):
14258 p = self._get_as_binary()
14259 if len(self.__dict__) > 1:
14260 d = self.__dict__.copy()
14265 def __setstate__(self, p):
14266 if not hasattr(self,
'this'):
14268 if isinstance(p, tuple):
14270 self.__dict__.update(d)
14271 return self._set_from_binary(p)
14273 __swig_destroy__ = _IMP_core.delete_SampleProvenance
14276 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14277 class CombineProvenance(Provenance):
14278 r"""Proxy of C++ IMP::core::CombineProvenance class."""
14280 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14282 def set_number_of_frames(self, frames):
14283 r"""set_number_of_frames(CombineProvenance self, int frames)"""
14284 return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14287 r"""get_number_of_frames(CombineProvenance self) -> int"""
14288 return _IMP_core.CombineProvenance_get_number_of_frames(self)
14290 def set_number_of_runs(self, runs):
14291 r"""set_number_of_runs(CombineProvenance self, int runs)"""
14292 return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14294 def get_number_of_runs(self):
14295 r"""get_number_of_runs(CombineProvenance self) -> int"""
14296 return _IMP_core.CombineProvenance_get_number_of_runs(self)
14298 def __init__(self, *args):
14300 __init__(CombineProvenance self) -> CombineProvenance
14301 __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14302 __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14304 _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14307 def get_is_setup(*args):
14309 get_is_setup(Model m, ParticleIndex pi) -> bool
14310 get_is_setup(_ParticleAdaptor p) -> bool
14312 return _IMP_core.CombineProvenance_get_is_setup(*args)
14314 def show(self, *args):
14315 r"""show(CombineProvenance self, _ostream out=std::cout)"""
14316 return _IMP_core.CombineProvenance_show(self, *args)
14319 def setup_particle(*args):
14321 setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14322 setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14323 setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14324 setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14326 return _IMP_core.CombineProvenance_setup_particle(*args)
14328 def add_attribute(self, *args):
14330 add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14331 add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14332 add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14333 add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14334 add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14335 add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14336 add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14337 add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14338 add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14339 add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14340 add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14341 add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14343 return _IMP_core.CombineProvenance_add_attribute(self, *args)
14345 def get_value(self, *args):
14347 get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14348 get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14349 get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14350 get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14351 get_value(CombineProvenance self, StringKey a0) -> IMP::String
14352 get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14353 get_value(CombineProvenance self, ObjectKey a0) -> Object
14354 get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14355 get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14356 get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14357 get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14359 return _IMP_core.CombineProvenance_get_value(self, *args)
14361 def set_value(self, *args):
14363 set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14364 set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14365 set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14366 set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14367 set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14368 set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14369 set_value(CombineProvenance self, ObjectKey a0, Object a1)
14370 set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14371 set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14372 set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14373 set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14375 return _IMP_core.CombineProvenance_set_value(self, *args)
14377 def remove_attribute(self, *args):
14379 remove_attribute(CombineProvenance self, FloatKey a0)
14380 remove_attribute(CombineProvenance self, IntKey a0)
14381 remove_attribute(CombineProvenance self, FloatsKey a0)
14382 remove_attribute(CombineProvenance self, IntsKey a0)
14383 remove_attribute(CombineProvenance self, StringKey a0)
14384 remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14385 remove_attribute(CombineProvenance self, ObjectKey a0)
14386 remove_attribute(CombineProvenance self, SparseFloatKey a0)
14387 remove_attribute(CombineProvenance self, SparseIntKey a0)
14388 remove_attribute(CombineProvenance self, SparseStringKey a0)
14389 remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14391 return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14393 def has_attribute(self, *args):
14395 has_attribute(CombineProvenance self, FloatKey a0) -> bool
14396 has_attribute(CombineProvenance self, IntKey a0) -> bool
14397 has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14398 has_attribute(CombineProvenance self, IntsKey a0) -> bool
14399 has_attribute(CombineProvenance self, StringKey a0) -> bool
14400 has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14401 has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14402 has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14403 has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14404 has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14405 has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14407 return _IMP_core.CombineProvenance_has_attribute(self, *args)
14409 def get_derivative(self, a0):
14410 r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14411 return _IMP_core.CombineProvenance_get_derivative(self, a0)
14413 def get_name(self):
14414 r"""get_name(CombineProvenance self) -> std::string"""
14415 return _IMP_core.CombineProvenance_get_name(self)
14417 def clear_caches(self):
14418 r"""clear_caches(CombineProvenance self)"""
14419 return _IMP_core.CombineProvenance_clear_caches(self)
14421 def set_name(self, a0):
14422 r"""set_name(CombineProvenance self, std::string a0)"""
14423 return _IMP_core.CombineProvenance_set_name(self, a0)
14426 r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14427 return _IMP_core.CombineProvenance_set_check_level(self, a0)
14429 def add_to_derivative(self, a0, a1, a2):
14430 r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14431 return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14433 def set_is_optimized(self, a0, a1):
14434 r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14435 return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14437 def get_is_optimized(self, a0):
14438 r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14439 return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14442 r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14443 return _IMP_core.CombineProvenance_get_check_level(self)
14445 def __eq__(self, *args):
14447 __eq__(CombineProvenance self, CombineProvenance o) -> bool
14448 __eq__(CombineProvenance self, Particle d) -> bool
14450 return _IMP_core.CombineProvenance___eq__(self, *args)
14452 def __ne__(self, *args):
14454 __ne__(CombineProvenance self, CombineProvenance o) -> bool
14455 __ne__(CombineProvenance self, Particle d) -> bool
14457 return _IMP_core.CombineProvenance___ne__(self, *args)
14459 def __le__(self, *args):
14461 __le__(CombineProvenance self, CombineProvenance o) -> bool
14462 __le__(CombineProvenance self, Particle d) -> bool
14464 return _IMP_core.CombineProvenance___le__(self, *args)
14466 def __lt__(self, *args):
14468 __lt__(CombineProvenance self, CombineProvenance o) -> bool
14469 __lt__(CombineProvenance self, Particle d) -> bool
14471 return _IMP_core.CombineProvenance___lt__(self, *args)
14473 def __ge__(self, *args):
14475 __ge__(CombineProvenance self, CombineProvenance o) -> bool
14476 __ge__(CombineProvenance self, Particle d) -> bool
14478 return _IMP_core.CombineProvenance___ge__(self, *args)
14480 def __gt__(self, *args):
14482 __gt__(CombineProvenance self, CombineProvenance o) -> bool
14483 __gt__(CombineProvenance self, Particle d) -> bool
14485 return _IMP_core.CombineProvenance___gt__(self, *args)
14487 def __hash__(self):
14488 r"""__hash__(CombineProvenance self) -> std::size_t"""
14489 return _IMP_core.CombineProvenance___hash__(self)
14492 r"""__str__(CombineProvenance self) -> std::string"""
14493 return _IMP_core.CombineProvenance___str__(self)
14495 def __repr__(self):
14496 r"""__repr__(CombineProvenance self) -> std::string"""
14497 return _IMP_core.CombineProvenance___repr__(self)
14499 def _get_as_binary(self):
14500 r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14501 return _IMP_core.CombineProvenance__get_as_binary(self)
14503 def _set_from_binary(self, p):
14504 r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14505 return _IMP_core.CombineProvenance__set_from_binary(self, p)
14507 def __getstate__(self):
14508 p = self._get_as_binary()
14509 if len(self.__dict__) > 1:
14510 d = self.__dict__.copy()
14515 def __setstate__(self, p):
14516 if not hasattr(self,
'this'):
14518 if isinstance(p, tuple):
14520 self.__dict__.update(d)
14521 return self._set_from_binary(p)
14523 __swig_destroy__ = _IMP_core.delete_CombineProvenance
14526 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14527 class FilterProvenance(Provenance):
14528 r"""Proxy of C++ IMP::core::FilterProvenance class."""
14530 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14532 def set_method(self, method):
14533 r"""set_method(FilterProvenance self, std::string method)"""
14534 return _IMP_core.FilterProvenance_set_method(self, method)
14536 def get_method(self):
14537 r"""get_method(FilterProvenance self) -> std::string"""
14538 return _IMP_core.FilterProvenance_get_method(self)
14540 def set_number_of_frames(self, frames):
14541 r"""set_number_of_frames(FilterProvenance self, int frames)"""
14542 return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14545 r"""get_number_of_frames(FilterProvenance self) -> int"""
14546 return _IMP_core.FilterProvenance_get_number_of_frames(self)
14548 def set_threshold(self, threshold):
14549 r"""set_threshold(FilterProvenance self, double threshold)"""
14550 return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14552 def get_threshold(self):
14553 r"""get_threshold(FilterProvenance self) -> double"""
14554 return _IMP_core.FilterProvenance_get_threshold(self)
14556 def __init__(self, *args):
14558 __init__(FilterProvenance self) -> FilterProvenance
14559 __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14560 __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14562 _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14565 def get_is_setup(*args):
14567 get_is_setup(Model m, ParticleIndex pi) -> bool
14568 get_is_setup(_ParticleAdaptor p) -> bool
14570 return _IMP_core.FilterProvenance_get_is_setup(*args)
14572 def show(self, *args):
14573 r"""show(FilterProvenance self, _ostream out=std::cout)"""
14574 return _IMP_core.FilterProvenance_show(self, *args)
14577 def setup_particle(*args):
14579 setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14580 setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14581 setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14582 setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14584 return _IMP_core.FilterProvenance_setup_particle(*args)
14586 def add_attribute(self, *args):
14588 add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14589 add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14590 add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14591 add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14592 add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14593 add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14594 add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14595 add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14596 add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14597 add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14598 add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14599 add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14601 return _IMP_core.FilterProvenance_add_attribute(self, *args)
14603 def get_value(self, *args):
14605 get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14606 get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14607 get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14608 get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14609 get_value(FilterProvenance self, StringKey a0) -> IMP::String
14610 get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14611 get_value(FilterProvenance self, ObjectKey a0) -> Object
14612 get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14613 get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14614 get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14615 get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14617 return _IMP_core.FilterProvenance_get_value(self, *args)
14619 def set_value(self, *args):
14621 set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14622 set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14623 set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14624 set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14625 set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14626 set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14627 set_value(FilterProvenance self, ObjectKey a0, Object a1)
14628 set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14629 set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14630 set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14631 set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14633 return _IMP_core.FilterProvenance_set_value(self, *args)
14635 def remove_attribute(self, *args):
14637 remove_attribute(FilterProvenance self, FloatKey a0)
14638 remove_attribute(FilterProvenance self, IntKey a0)
14639 remove_attribute(FilterProvenance self, FloatsKey a0)
14640 remove_attribute(FilterProvenance self, IntsKey a0)
14641 remove_attribute(FilterProvenance self, StringKey a0)
14642 remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14643 remove_attribute(FilterProvenance self, ObjectKey a0)
14644 remove_attribute(FilterProvenance self, SparseFloatKey a0)
14645 remove_attribute(FilterProvenance self, SparseIntKey a0)
14646 remove_attribute(FilterProvenance self, SparseStringKey a0)
14647 remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14649 return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14651 def has_attribute(self, *args):
14653 has_attribute(FilterProvenance self, FloatKey a0) -> bool
14654 has_attribute(FilterProvenance self, IntKey a0) -> bool
14655 has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14656 has_attribute(FilterProvenance self, IntsKey a0) -> bool
14657 has_attribute(FilterProvenance self, StringKey a0) -> bool
14658 has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14659 has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14660 has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14661 has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14662 has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14663 has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14665 return _IMP_core.FilterProvenance_has_attribute(self, *args)
14667 def get_derivative(self, a0):
14668 r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14669 return _IMP_core.FilterProvenance_get_derivative(self, a0)
14671 def get_name(self):
14672 r"""get_name(FilterProvenance self) -> std::string"""
14673 return _IMP_core.FilterProvenance_get_name(self)
14675 def clear_caches(self):
14676 r"""clear_caches(FilterProvenance self)"""
14677 return _IMP_core.FilterProvenance_clear_caches(self)
14679 def set_name(self, a0):
14680 r"""set_name(FilterProvenance self, std::string a0)"""
14681 return _IMP_core.FilterProvenance_set_name(self, a0)
14684 r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14685 return _IMP_core.FilterProvenance_set_check_level(self, a0)
14687 def add_to_derivative(self, a0, a1, a2):
14688 r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14689 return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14691 def set_is_optimized(self, a0, a1):
14692 r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14693 return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14695 def get_is_optimized(self, a0):
14696 r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14697 return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14700 r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14701 return _IMP_core.FilterProvenance_get_check_level(self)
14703 def __eq__(self, *args):
14705 __eq__(FilterProvenance self, FilterProvenance o) -> bool
14706 __eq__(FilterProvenance self, Particle d) -> bool
14708 return _IMP_core.FilterProvenance___eq__(self, *args)
14710 def __ne__(self, *args):
14712 __ne__(FilterProvenance self, FilterProvenance o) -> bool
14713 __ne__(FilterProvenance self, Particle d) -> bool
14715 return _IMP_core.FilterProvenance___ne__(self, *args)
14717 def __le__(self, *args):
14719 __le__(FilterProvenance self, FilterProvenance o) -> bool
14720 __le__(FilterProvenance self, Particle d) -> bool
14722 return _IMP_core.FilterProvenance___le__(self, *args)
14724 def __lt__(self, *args):
14726 __lt__(FilterProvenance self, FilterProvenance o) -> bool
14727 __lt__(FilterProvenance self, Particle d) -> bool
14729 return _IMP_core.FilterProvenance___lt__(self, *args)
14731 def __ge__(self, *args):
14733 __ge__(FilterProvenance self, FilterProvenance o) -> bool
14734 __ge__(FilterProvenance self, Particle d) -> bool
14736 return _IMP_core.FilterProvenance___ge__(self, *args)
14738 def __gt__(self, *args):
14740 __gt__(FilterProvenance self, FilterProvenance o) -> bool
14741 __gt__(FilterProvenance self, Particle d) -> bool
14743 return _IMP_core.FilterProvenance___gt__(self, *args)
14745 def __hash__(self):
14746 r"""__hash__(FilterProvenance self) -> std::size_t"""
14747 return _IMP_core.FilterProvenance___hash__(self)
14750 r"""__str__(FilterProvenance self) -> std::string"""
14751 return _IMP_core.FilterProvenance___str__(self)
14753 def __repr__(self):
14754 r"""__repr__(FilterProvenance self) -> std::string"""
14755 return _IMP_core.FilterProvenance___repr__(self)
14757 def _get_as_binary(self):
14758 r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14759 return _IMP_core.FilterProvenance__get_as_binary(self)
14761 def _set_from_binary(self, p):
14762 r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14763 return _IMP_core.FilterProvenance__set_from_binary(self, p)
14765 def __getstate__(self):
14766 p = self._get_as_binary()
14767 if len(self.__dict__) > 1:
14768 d = self.__dict__.copy()
14773 def __setstate__(self, p):
14774 if not hasattr(self,
'this'):
14776 if isinstance(p, tuple):
14778 self.__dict__.update(d)
14779 return self._set_from_binary(p)
14781 __swig_destroy__ = _IMP_core.delete_FilterProvenance
14784 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14785 class ClusterProvenance(Provenance):
14786 r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14788 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
14790 def set_number_of_members(self, members):
14791 r"""set_number_of_members(ClusterProvenance self, int members)"""
14792 return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14794 def get_number_of_members(self):
14795 r"""get_number_of_members(ClusterProvenance self) -> int"""
14796 return _IMP_core.ClusterProvenance_get_number_of_members(self)
14798 def set_precision(self, precision):
14799 r"""set_precision(ClusterProvenance self, double precision)"""
14800 return _IMP_core.ClusterProvenance_set_precision(self, precision)
14802 def get_precision(self):
14803 r"""get_precision(ClusterProvenance self) -> double"""
14804 return _IMP_core.ClusterProvenance_get_precision(self)
14806 def set_density(self, density):
14807 r"""set_density(ClusterProvenance self, std::string density)"""
14808 return _IMP_core.ClusterProvenance_set_density(self, density)
14810 def get_density(self):
14811 r"""get_density(ClusterProvenance self) -> std::string"""
14812 return _IMP_core.ClusterProvenance_get_density(self)
14814 def __init__(self, *args):
14816 __init__(ClusterProvenance self) -> ClusterProvenance
14817 __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14818 __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14820 _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14823 def get_is_setup(*args):
14825 get_is_setup(Model m, ParticleIndex pi) -> bool
14826 get_is_setup(_ParticleAdaptor p) -> bool
14828 return _IMP_core.ClusterProvenance_get_is_setup(*args)
14830 def show(self, *args):
14831 r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14832 return _IMP_core.ClusterProvenance_show(self, *args)
14835 def setup_particle(*args):
14837 setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14838 setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14839 setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14840 setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14841 setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14842 setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14843 setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14844 setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14846 return _IMP_core.ClusterProvenance_setup_particle(*args)
14848 def add_attribute(self, *args):
14850 add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14851 add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14852 add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14853 add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14854 add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14855 add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14856 add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14857 add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14858 add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14859 add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14860 add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14861 add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14863 return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14865 def get_value(self, *args):
14867 get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14868 get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14869 get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14870 get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14871 get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14872 get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14873 get_value(ClusterProvenance self, ObjectKey a0) -> Object
14874 get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14875 get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14876 get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14877 get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14879 return _IMP_core.ClusterProvenance_get_value(self, *args)
14881 def set_value(self, *args):
14883 set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14884 set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14885 set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14886 set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14887 set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14888 set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14889 set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14890 set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14891 set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14892 set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14893 set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14895 return _IMP_core.ClusterProvenance_set_value(self, *args)
14897 def remove_attribute(self, *args):
14899 remove_attribute(ClusterProvenance self, FloatKey a0)
14900 remove_attribute(ClusterProvenance self, IntKey a0)
14901 remove_attribute(ClusterProvenance self, FloatsKey a0)
14902 remove_attribute(ClusterProvenance self, IntsKey a0)
14903 remove_attribute(ClusterProvenance self, StringKey a0)
14904 remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14905 remove_attribute(ClusterProvenance self, ObjectKey a0)
14906 remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14907 remove_attribute(ClusterProvenance self, SparseIntKey a0)
14908 remove_attribute(ClusterProvenance self, SparseStringKey a0)
14909 remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14911 return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14913 def has_attribute(self, *args):
14915 has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14916 has_attribute(ClusterProvenance self, IntKey a0) -> bool
14917 has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14918 has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14919 has_attribute(ClusterProvenance self, StringKey a0) -> bool
14920 has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14921 has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14922 has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14923 has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14924 has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14925 has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14927 return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14929 def get_derivative(self, a0):
14930 r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14931 return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14933 def get_name(self):
14934 r"""get_name(ClusterProvenance self) -> std::string"""
14935 return _IMP_core.ClusterProvenance_get_name(self)
14937 def clear_caches(self):
14938 r"""clear_caches(ClusterProvenance self)"""
14939 return _IMP_core.ClusterProvenance_clear_caches(self)
14941 def set_name(self, a0):
14942 r"""set_name(ClusterProvenance self, std::string a0)"""
14943 return _IMP_core.ClusterProvenance_set_name(self, a0)
14946 r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14947 return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14949 def add_to_derivative(self, a0, a1, a2):
14950 r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14951 return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14953 def set_is_optimized(self, a0, a1):
14954 r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14955 return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14957 def get_is_optimized(self, a0):
14958 r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14959 return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14962 r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14963 return _IMP_core.ClusterProvenance_get_check_level(self)
14965 def __eq__(self, *args):
14967 __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14968 __eq__(ClusterProvenance self, Particle d) -> bool
14970 return _IMP_core.ClusterProvenance___eq__(self, *args)
14972 def __ne__(self, *args):
14974 __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14975 __ne__(ClusterProvenance self, Particle d) -> bool
14977 return _IMP_core.ClusterProvenance___ne__(self, *args)
14979 def __le__(self, *args):
14981 __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14982 __le__(ClusterProvenance self, Particle d) -> bool
14984 return _IMP_core.ClusterProvenance___le__(self, *args)
14986 def __lt__(self, *args):
14988 __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14989 __lt__(ClusterProvenance self, Particle d) -> bool
14991 return _IMP_core.ClusterProvenance___lt__(self, *args)
14993 def __ge__(self, *args):
14995 __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14996 __ge__(ClusterProvenance self, Particle d) -> bool
14998 return _IMP_core.ClusterProvenance___ge__(self, *args)
15000 def __gt__(self, *args):
15002 __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
15003 __gt__(ClusterProvenance self, Particle d) -> bool
15005 return _IMP_core.ClusterProvenance___gt__(self, *args)
15007 def __hash__(self):
15008 r"""__hash__(ClusterProvenance self) -> std::size_t"""
15009 return _IMP_core.ClusterProvenance___hash__(self)
15012 r"""__str__(ClusterProvenance self) -> std::string"""
15013 return _IMP_core.ClusterProvenance___str__(self)
15015 def __repr__(self):
15016 r"""__repr__(ClusterProvenance self) -> std::string"""
15017 return _IMP_core.ClusterProvenance___repr__(self)
15019 def _get_as_binary(self):
15020 r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
15021 return _IMP_core.ClusterProvenance__get_as_binary(self)
15023 def _set_from_binary(self, p):
15024 r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
15025 return _IMP_core.ClusterProvenance__set_from_binary(self, p)
15027 def __getstate__(self):
15028 p = self._get_as_binary()
15029 if len(self.__dict__) > 1:
15030 d = self.__dict__.copy()
15035 def __setstate__(self, p):
15036 if not hasattr(self,
'this'):
15038 if isinstance(p, tuple):
15040 self.__dict__.update(d)
15041 return self._set_from_binary(p)
15043 __swig_destroy__ = _IMP_core.delete_ClusterProvenance
15046 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
15047 class ScriptProvenance(Provenance):
15048 r"""Proxy of C++ IMP::core::ScriptProvenance class."""
15050 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15052 def set_filename(self, filename):
15053 r"""set_filename(ScriptProvenance self, std::string filename)"""
15054 return _IMP_core.ScriptProvenance_set_filename(self, filename)
15056 def get_filename(self):
15057 r"""get_filename(ScriptProvenance self) -> std::string"""
15058 return _IMP_core.ScriptProvenance_get_filename(self)
15060 def __init__(self, *args):
15062 __init__(ScriptProvenance self) -> ScriptProvenance
15063 __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
15064 __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
15066 _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
15069 def get_is_setup(*args):
15071 get_is_setup(Model m, ParticleIndex pi) -> bool
15072 get_is_setup(_ParticleAdaptor p) -> bool
15074 return _IMP_core.ScriptProvenance_get_is_setup(*args)
15076 def show(self, *args):
15077 r"""show(ScriptProvenance self, _ostream out=std::cout)"""
15078 return _IMP_core.ScriptProvenance_show(self, *args)
15081 def setup_particle(*args):
15083 setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
15084 setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
15085 setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
15086 setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
15088 return _IMP_core.ScriptProvenance_setup_particle(*args)
15090 def add_attribute(self, *args):
15092 add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
15093 add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
15094 add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
15095 add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
15096 add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
15097 add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
15098 add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
15099 add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
15100 add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
15101 add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
15102 add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
15103 add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15105 return _IMP_core.ScriptProvenance_add_attribute(self, *args)
15107 def get_value(self, *args):
15109 get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
15110 get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
15111 get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
15112 get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
15113 get_value(ScriptProvenance self, StringKey a0) -> IMP::String
15114 get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
15115 get_value(ScriptProvenance self, ObjectKey a0) -> Object
15116 get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
15117 get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
15118 get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
15119 get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15121 return _IMP_core.ScriptProvenance_get_value(self, *args)
15123 def set_value(self, *args):
15125 set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
15126 set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
15127 set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
15128 set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
15129 set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
15130 set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
15131 set_value(ScriptProvenance self, ObjectKey a0, Object a1)
15132 set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
15133 set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
15134 set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
15135 set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15137 return _IMP_core.ScriptProvenance_set_value(self, *args)
15139 def remove_attribute(self, *args):
15141 remove_attribute(ScriptProvenance self, FloatKey a0)
15142 remove_attribute(ScriptProvenance self, IntKey a0)
15143 remove_attribute(ScriptProvenance self, FloatsKey a0)
15144 remove_attribute(ScriptProvenance self, IntsKey a0)
15145 remove_attribute(ScriptProvenance self, StringKey a0)
15146 remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
15147 remove_attribute(ScriptProvenance self, ObjectKey a0)
15148 remove_attribute(ScriptProvenance self, SparseFloatKey a0)
15149 remove_attribute(ScriptProvenance self, SparseIntKey a0)
15150 remove_attribute(ScriptProvenance self, SparseStringKey a0)
15151 remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
15153 return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
15155 def has_attribute(self, *args):
15157 has_attribute(ScriptProvenance self, FloatKey a0) -> bool
15158 has_attribute(ScriptProvenance self, IntKey a0) -> bool
15159 has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
15160 has_attribute(ScriptProvenance self, IntsKey a0) -> bool
15161 has_attribute(ScriptProvenance self, StringKey a0) -> bool
15162 has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
15163 has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
15164 has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
15165 has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
15166 has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
15167 has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
15169 return _IMP_core.ScriptProvenance_has_attribute(self, *args)
15171 def get_derivative(self, a0):
15172 r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
15173 return _IMP_core.ScriptProvenance_get_derivative(self, a0)
15175 def get_name(self):
15176 r"""get_name(ScriptProvenance self) -> std::string"""
15177 return _IMP_core.ScriptProvenance_get_name(self)
15179 def clear_caches(self):
15180 r"""clear_caches(ScriptProvenance self)"""
15181 return _IMP_core.ScriptProvenance_clear_caches(self)
15183 def set_name(self, a0):
15184 r"""set_name(ScriptProvenance self, std::string a0)"""
15185 return _IMP_core.ScriptProvenance_set_name(self, a0)
15188 r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15189 return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15191 def add_to_derivative(self, a0, a1, a2):
15192 r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15193 return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15195 def set_is_optimized(self, a0, a1):
15196 r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15197 return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15199 def get_is_optimized(self, a0):
15200 r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15201 return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15204 r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15205 return _IMP_core.ScriptProvenance_get_check_level(self)
15207 def __eq__(self, *args):
15209 __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15210 __eq__(ScriptProvenance self, Particle d) -> bool
15212 return _IMP_core.ScriptProvenance___eq__(self, *args)
15214 def __ne__(self, *args):
15216 __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15217 __ne__(ScriptProvenance self, Particle d) -> bool
15219 return _IMP_core.ScriptProvenance___ne__(self, *args)
15221 def __le__(self, *args):
15223 __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15224 __le__(ScriptProvenance self, Particle d) -> bool
15226 return _IMP_core.ScriptProvenance___le__(self, *args)
15228 def __lt__(self, *args):
15230 __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15231 __lt__(ScriptProvenance self, Particle d) -> bool
15233 return _IMP_core.ScriptProvenance___lt__(self, *args)
15235 def __ge__(self, *args):
15237 __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15238 __ge__(ScriptProvenance self, Particle d) -> bool
15240 return _IMP_core.ScriptProvenance___ge__(self, *args)
15242 def __gt__(self, *args):
15244 __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15245 __gt__(ScriptProvenance self, Particle d) -> bool
15247 return _IMP_core.ScriptProvenance___gt__(self, *args)
15249 def __hash__(self):
15250 r"""__hash__(ScriptProvenance self) -> std::size_t"""
15251 return _IMP_core.ScriptProvenance___hash__(self)
15254 r"""__str__(ScriptProvenance self) -> std::string"""
15255 return _IMP_core.ScriptProvenance___str__(self)
15257 def __repr__(self):
15258 r"""__repr__(ScriptProvenance self) -> std::string"""
15259 return _IMP_core.ScriptProvenance___repr__(self)
15261 def _get_as_binary(self):
15262 r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15263 return _IMP_core.ScriptProvenance__get_as_binary(self)
15265 def _set_from_binary(self, p):
15266 r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15267 return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15269 def __getstate__(self):
15270 p = self._get_as_binary()
15271 if len(self.__dict__) > 1:
15272 d = self.__dict__.copy()
15277 def __setstate__(self, p):
15278 if not hasattr(self,
'this'):
15280 if isinstance(p, tuple):
15282 self.__dict__.update(d)
15283 return self._set_from_binary(p)
15285 __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15288 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15289 class SoftwareProvenance(Provenance):
15290 r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15292 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15294 def set_software_name(self, name):
15295 r"""set_software_name(SoftwareProvenance self, std::string name)"""
15296 return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15298 def get_software_name(self):
15299 r"""get_software_name(SoftwareProvenance self) -> std::string"""
15300 return _IMP_core.SoftwareProvenance_get_software_name(self)
15302 def set_version(self, version):
15303 r"""set_version(SoftwareProvenance self, std::string version)"""
15304 return _IMP_core.SoftwareProvenance_set_version(self, version)
15306 def get_version(self):
15307 r"""get_version(SoftwareProvenance self) -> std::string"""
15308 return _IMP_core.SoftwareProvenance_get_version(self)
15310 def set_location(self, location):
15311 r"""set_location(SoftwareProvenance self, std::string location)"""
15312 return _IMP_core.SoftwareProvenance_set_location(self, location)
15314 def get_location(self):
15315 r"""get_location(SoftwareProvenance self) -> std::string"""
15316 return _IMP_core.SoftwareProvenance_get_location(self)
15318 def __init__(self, *args):
15320 __init__(SoftwareProvenance self) -> SoftwareProvenance
15321 __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15322 __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15324 _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15327 def get_is_setup(*args):
15329 get_is_setup(Model m, ParticleIndex pi) -> bool
15330 get_is_setup(_ParticleAdaptor p) -> bool
15332 return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15334 def show(self, *args):
15335 r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15336 return _IMP_core.SoftwareProvenance_show(self, *args)
15339 def setup_particle(*args):
15341 setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15342 setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15343 setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15344 setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15346 return _IMP_core.SoftwareProvenance_setup_particle(*args)
15348 def add_attribute(self, *args):
15350 add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15351 add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15352 add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15353 add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15354 add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15355 add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15356 add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15357 add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15358 add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15359 add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15360 add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15361 add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15363 return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15365 def get_value(self, *args):
15367 get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15368 get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15369 get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15370 get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15371 get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15372 get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15373 get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15374 get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15375 get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15376 get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15377 get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15379 return _IMP_core.SoftwareProvenance_get_value(self, *args)
15381 def set_value(self, *args):
15383 set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15384 set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15385 set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15386 set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15387 set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15388 set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15389 set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15390 set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15391 set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15392 set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15393 set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15395 return _IMP_core.SoftwareProvenance_set_value(self, *args)
15397 def remove_attribute(self, *args):
15399 remove_attribute(SoftwareProvenance self, FloatKey a0)
15400 remove_attribute(SoftwareProvenance self, IntKey a0)
15401 remove_attribute(SoftwareProvenance self, FloatsKey a0)
15402 remove_attribute(SoftwareProvenance self, IntsKey a0)
15403 remove_attribute(SoftwareProvenance self, StringKey a0)
15404 remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15405 remove_attribute(SoftwareProvenance self, ObjectKey a0)
15406 remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15407 remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15408 remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15409 remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15411 return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15413 def has_attribute(self, *args):
15415 has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15416 has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15417 has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15418 has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15419 has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15420 has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15421 has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15422 has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15423 has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15424 has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15425 has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15427 return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15429 def get_derivative(self, a0):
15430 r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15431 return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15433 def get_name(self):
15434 r"""get_name(SoftwareProvenance self) -> std::string"""
15435 return _IMP_core.SoftwareProvenance_get_name(self)
15437 def clear_caches(self):
15438 r"""clear_caches(SoftwareProvenance self)"""
15439 return _IMP_core.SoftwareProvenance_clear_caches(self)
15441 def set_name(self, a0):
15442 r"""set_name(SoftwareProvenance self, std::string a0)"""
15443 return _IMP_core.SoftwareProvenance_set_name(self, a0)
15446 r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15447 return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15449 def add_to_derivative(self, a0, a1, a2):
15450 r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15451 return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15453 def set_is_optimized(self, a0, a1):
15454 r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15455 return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15457 def get_is_optimized(self, a0):
15458 r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15459 return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15462 r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15463 return _IMP_core.SoftwareProvenance_get_check_level(self)
15465 def __eq__(self, *args):
15467 __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15468 __eq__(SoftwareProvenance self, Particle d) -> bool
15470 return _IMP_core.SoftwareProvenance___eq__(self, *args)
15472 def __ne__(self, *args):
15474 __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15475 __ne__(SoftwareProvenance self, Particle d) -> bool
15477 return _IMP_core.SoftwareProvenance___ne__(self, *args)
15479 def __le__(self, *args):
15481 __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15482 __le__(SoftwareProvenance self, Particle d) -> bool
15484 return _IMP_core.SoftwareProvenance___le__(self, *args)
15486 def __lt__(self, *args):
15488 __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15489 __lt__(SoftwareProvenance self, Particle d) -> bool
15491 return _IMP_core.SoftwareProvenance___lt__(self, *args)
15493 def __ge__(self, *args):
15495 __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15496 __ge__(SoftwareProvenance self, Particle d) -> bool
15498 return _IMP_core.SoftwareProvenance___ge__(self, *args)
15500 def __gt__(self, *args):
15502 __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15503 __gt__(SoftwareProvenance self, Particle d) -> bool
15505 return _IMP_core.SoftwareProvenance___gt__(self, *args)
15507 def __hash__(self):
15508 r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15509 return _IMP_core.SoftwareProvenance___hash__(self)
15512 r"""__str__(SoftwareProvenance self) -> std::string"""
15513 return _IMP_core.SoftwareProvenance___str__(self)
15515 def __repr__(self):
15516 r"""__repr__(SoftwareProvenance self) -> std::string"""
15517 return _IMP_core.SoftwareProvenance___repr__(self)
15519 def _get_as_binary(self):
15520 r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15521 return _IMP_core.SoftwareProvenance__get_as_binary(self)
15523 def _set_from_binary(self, p):
15524 r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15525 return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15527 def __getstate__(self):
15528 p = self._get_as_binary()
15529 if len(self.__dict__) > 1:
15530 d = self.__dict__.copy()
15535 def __setstate__(self, p):
15536 if not hasattr(self,
'this'):
15538 if isinstance(p, tuple):
15540 self.__dict__.update(d)
15541 return self._set_from_binary(p)
15543 __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15546 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15548 r"""Proxy of C++ IMP::core::Provenanced class."""
15550 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15552 def get_provenance(self):
15553 r"""get_provenance(Provenanced self) -> Provenance"""
15554 return _IMP_core.Provenanced_get_provenance(self)
15556 def set_provenance(self, p):
15557 r"""set_provenance(Provenanced self, Provenance p)"""
15558 return _IMP_core.Provenanced_set_provenance(self, p)
15560 def __init__(self, *args):
15562 __init__(Provenanced self) -> Provenanced
15563 __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15564 __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15566 _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15569 def get_is_setup(*args):
15571 get_is_setup(Model m, ParticleIndex pi) -> bool
15572 get_is_setup(_ParticleAdaptor p) -> bool
15574 return _IMP_core.Provenanced_get_is_setup(*args)
15576 def show(self, *args):
15577 r"""show(Provenanced self, _ostream out=std::cout)"""
15578 return _IMP_core.Provenanced_show(self, *args)
15581 def setup_particle(*args):
15583 setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15584 setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15586 return _IMP_core.Provenanced_setup_particle(*args)
15588 def add_attribute(self, *args):
15590 add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15591 add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15592 add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15593 add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15594 add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15595 add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15596 add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15597 add_attribute(Provenanced self, ObjectKey a0, Object a1)
15598 add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15599 add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15600 add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15601 add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15603 return _IMP_core.Provenanced_add_attribute(self, *args)
15605 def get_value(self, *args):
15607 get_value(Provenanced self, FloatKey a0) -> IMP::Float
15608 get_value(Provenanced self, IntKey a0) -> IMP::Int
15609 get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15610 get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15611 get_value(Provenanced self, StringKey a0) -> IMP::String
15612 get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15613 get_value(Provenanced self, ObjectKey a0) -> Object
15614 get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15615 get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15616 get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15617 get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15619 return _IMP_core.Provenanced_get_value(self, *args)
15621 def set_value(self, *args):
15623 set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15624 set_value(Provenanced self, IntKey a0, IMP::Int a1)
15625 set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15626 set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15627 set_value(Provenanced self, StringKey a0, IMP::String a1)
15628 set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15629 set_value(Provenanced self, ObjectKey a0, Object a1)
15630 set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15631 set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15632 set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15633 set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15635 return _IMP_core.Provenanced_set_value(self, *args)
15637 def remove_attribute(self, *args):
15639 remove_attribute(Provenanced self, FloatKey a0)
15640 remove_attribute(Provenanced self, IntKey a0)
15641 remove_attribute(Provenanced self, FloatsKey a0)
15642 remove_attribute(Provenanced self, IntsKey a0)
15643 remove_attribute(Provenanced self, StringKey a0)
15644 remove_attribute(Provenanced self, ParticleIndexKey a0)
15645 remove_attribute(Provenanced self, ObjectKey a0)
15646 remove_attribute(Provenanced self, SparseFloatKey a0)
15647 remove_attribute(Provenanced self, SparseIntKey a0)
15648 remove_attribute(Provenanced self, SparseStringKey a0)
15649 remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15651 return _IMP_core.Provenanced_remove_attribute(self, *args)
15653 def has_attribute(self, *args):
15655 has_attribute(Provenanced self, FloatKey a0) -> bool
15656 has_attribute(Provenanced self, IntKey a0) -> bool
15657 has_attribute(Provenanced self, FloatsKey a0) -> bool
15658 has_attribute(Provenanced self, IntsKey a0) -> bool
15659 has_attribute(Provenanced self, StringKey a0) -> bool
15660 has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15661 has_attribute(Provenanced self, ObjectKey a0) -> bool
15662 has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15663 has_attribute(Provenanced self, SparseIntKey a0) -> bool
15664 has_attribute(Provenanced self, SparseStringKey a0) -> bool
15665 has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15667 return _IMP_core.Provenanced_has_attribute(self, *args)
15669 def get_derivative(self, a0):
15670 r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15671 return _IMP_core.Provenanced_get_derivative(self, a0)
15673 def get_name(self):
15674 r"""get_name(Provenanced self) -> std::string"""
15675 return _IMP_core.Provenanced_get_name(self)
15677 def clear_caches(self):
15678 r"""clear_caches(Provenanced self)"""
15679 return _IMP_core.Provenanced_clear_caches(self)
15681 def set_name(self, a0):
15682 r"""set_name(Provenanced self, std::string a0)"""
15683 return _IMP_core.Provenanced_set_name(self, a0)
15686 r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15687 return _IMP_core.Provenanced_set_check_level(self, a0)
15689 def add_to_derivative(self, a0, a1, a2):
15690 r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15691 return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15693 def set_is_optimized(self, a0, a1):
15694 r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15695 return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15697 def get_is_optimized(self, a0):
15698 r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15699 return _IMP_core.Provenanced_get_is_optimized(self, a0)
15702 r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15703 return _IMP_core.Provenanced_get_check_level(self)
15705 def __eq__(self, *args):
15707 __eq__(Provenanced self, Provenanced o) -> bool
15708 __eq__(Provenanced self, Particle d) -> bool
15710 return _IMP_core.Provenanced___eq__(self, *args)
15712 def __ne__(self, *args):
15714 __ne__(Provenanced self, Provenanced o) -> bool
15715 __ne__(Provenanced self, Particle d) -> bool
15717 return _IMP_core.Provenanced___ne__(self, *args)
15719 def __le__(self, *args):
15721 __le__(Provenanced self, Provenanced o) -> bool
15722 __le__(Provenanced self, Particle d) -> bool
15724 return _IMP_core.Provenanced___le__(self, *args)
15726 def __lt__(self, *args):
15728 __lt__(Provenanced self, Provenanced o) -> bool
15729 __lt__(Provenanced self, Particle d) -> bool
15731 return _IMP_core.Provenanced___lt__(self, *args)
15733 def __ge__(self, *args):
15735 __ge__(Provenanced self, Provenanced o) -> bool
15736 __ge__(Provenanced self, Particle d) -> bool
15738 return _IMP_core.Provenanced___ge__(self, *args)
15740 def __gt__(self, *args):
15742 __gt__(Provenanced self, Provenanced o) -> bool
15743 __gt__(Provenanced self, Particle d) -> bool
15745 return _IMP_core.Provenanced___gt__(self, *args)
15747 def __hash__(self):
15748 r"""__hash__(Provenanced self) -> std::size_t"""
15749 return _IMP_core.Provenanced___hash__(self)
15752 r"""__str__(Provenanced self) -> std::string"""
15753 return _IMP_core.Provenanced___str__(self)
15755 def __repr__(self):
15756 r"""__repr__(Provenanced self) -> std::string"""
15757 return _IMP_core.Provenanced___repr__(self)
15759 def _get_as_binary(self):
15760 r"""_get_as_binary(Provenanced self) -> PyObject *"""
15761 return _IMP_core.Provenanced__get_as_binary(self)
15763 def _set_from_binary(self, p):
15764 r"""_set_from_binary(Provenanced self, PyObject * p)"""
15765 return _IMP_core.Provenanced__set_from_binary(self, p)
15767 def __getstate__(self):
15768 p = self._get_as_binary()
15769 if len(self.__dict__) > 1:
15770 d = self.__dict__.copy()
15775 def __setstate__(self, p):
15776 if not hasattr(self,
'this'):
15778 if isinstance(p, tuple):
15780 self.__dict__.update(d)
15781 return self._set_from_binary(p)
15783 __swig_destroy__ = _IMP_core.delete_Provenanced
15786 _IMP_core.Provenanced_swigregister(Provenanced)
15789 r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15790 return _IMP_core.add_provenance(m, pi, p)
15793 r"""create_clone(Provenance p) -> Provenance"""
15794 return _IMP_core.create_clone(p)
15798 get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15799 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
15800 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
15802 return _IMP_core.get_transformation_aligning_first_to_second(*args)
15805 r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15806 return _IMP_core.create_restraint(ps, pp)
15808 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15810 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15812 def __init__(self, *args):
15814 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15815 __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15817 _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15819 def get_version_info(self):
15820 r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15821 return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15822 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15825 r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15826 return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15828 def __repr__(self):
15829 r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15830 return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15834 return _object_cast_to_TruncatedHarmonic(o)
15838 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15840 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15842 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15844 def __init__(self, *args):
15846 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15847 __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15849 _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15851 def get_version_info(self):
15852 r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15853 return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15854 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15857 r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15858 return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15860 def __repr__(self):
15861 r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15862 return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15866 return _object_cast_to_TruncatedHarmonic(o)
15870 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15872 r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15876 def __init__(self, *args):
15878 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15879 __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15881 _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15883 def get_version_info(self):
15884 r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15885 return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15886 __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15889 r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15890 return _IMP_core.TruncatedHarmonicBound___str__(self)
15892 def __repr__(self):
15893 r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15894 return _IMP_core.TruncatedHarmonicBound___repr__(self)
15898 return _object_cast_to_TruncatedHarmonic(o)
15902 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15904 r"""Proxy of C++ IMP::Key< 34897493 > class."""
15906 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
15908 def __init__(self, *args):
15910 __init__(ParticleType self) -> ParticleType
15911 __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15912 __init__(ParticleType self, unsigned int i) -> ParticleType
15914 _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15918 r"""add_key(std::string sc) -> unsigned int"""
15919 return _IMP_core.ParticleType_add_key(sc)
15922 def get_key_exists(sc):
15923 r"""get_key_exists(std::string sc) -> bool"""
15924 return _IMP_core.ParticleType_get_key_exists(sc)
15926 def get_string(self):
15927 r"""get_string(ParticleType self) -> std::string const"""
15928 return _IMP_core.ParticleType_get_string(self)
15930 def __cmp__(self, o):
15931 r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15932 return _IMP_core.ParticleType___cmp__(self, o)
15934 def __eq__(self, o):
15935 r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15936 return _IMP_core.ParticleType___eq__(self, o)
15938 def __ne__(self, o):
15939 r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15940 return _IMP_core.ParticleType___ne__(self, o)
15942 def __lt__(self, o):
15943 r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15944 return _IMP_core.ParticleType___lt__(self, o)
15946 def __gt__(self, o):
15947 r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15948 return _IMP_core.ParticleType___gt__(self, o)
15950 def __ge__(self, o):
15951 r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15952 return _IMP_core.ParticleType___ge__(self, o)
15954 def __le__(self, o):
15955 r"""__le__(ParticleType self, ParticleType o) -> bool"""
15956 return _IMP_core.ParticleType___le__(self, o)
15958 def __hash__(self):
15959 r"""__hash__(ParticleType self) -> std::size_t"""
15960 return _IMP_core.ParticleType___hash__(self)
15962 def show(self, *args):
15963 r"""show(ParticleType self, _ostream out=std::cout)"""
15964 return _IMP_core.ParticleType_show(self, *args)
15967 def add_alias(old_key, new_name):
15968 r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15969 return _IMP_core.ParticleType_add_alias(old_key, new_name)
15972 def get_number_of_keys():
15973 r"""get_number_of_keys() -> unsigned int"""
15974 return _IMP_core.ParticleType_get_number_of_keys()
15977 r"""get_index(ParticleType self) -> unsigned int"""
15978 return _IMP_core.ParticleType_get_index(self)
15982 r"""show_all(_ostream out)"""
15983 return _IMP_core.ParticleType_show_all(out)
15986 def get_all_strings():
15987 r"""get_all_strings() -> IMP::Vector< std::string >"""
15988 return _IMP_core.ParticleType_get_all_strings()
15991 def get_number_unique():
15992 r"""get_number_unique() -> unsigned int"""
15993 return _IMP_core.ParticleType_get_number_unique()
15996 r"""__str__(ParticleType self) -> std::string"""
15997 return _IMP_core.ParticleType___str__(self)
15999 def __repr__(self):
16000 r"""__repr__(ParticleType self) -> std::string"""
16001 return _IMP_core.ParticleType___repr__(self)
16002 __swig_destroy__ = _IMP_core.delete_ParticleType
16005 _IMP_core.ParticleType_swigregister(ParticleType)
16007 r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
16009 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
16010 __repr__ = _swig_repr
16012 def __init__(self, f, k):
16013 r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
16014 _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
16016 def do_get_inputs(self, m, pis):
16017 r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16018 return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
16020 def get_unary_function(self):
16021 r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
16022 return _IMP_core.AttributeSingletonScore_get_unary_function(self)
16024 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16025 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"""
16026 return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16028 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16029 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"""
16030 return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16032 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16033 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"""
16034 return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16036 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16037 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"""
16038 return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16040 def get_version_info(self):
16041 r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
16042 return _IMP_core.AttributeSingletonScore_get_version_info(self)
16043 __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
16047 return _object_cast_to_AttributeSingletonScore(o)
16051 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
16054 r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
16055 return _IMP_core.create_generic_attribute_singleton_score(uf, k)
16057 r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
16059 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
16060 __repr__ = _swig_repr
16062 def __init__(self, f, bb):
16063 r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
16064 _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
16066 def do_get_inputs(self, m, pis):
16067 r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16068 return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
16070 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16071 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"""
16072 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16074 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16075 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"""
16076 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16078 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16079 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"""
16080 return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16082 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16083 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"""
16084 return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16086 def get_version_info(self):
16087 r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
16088 return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
16089 __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
16093 return _object_cast_to_BoundingBox3DSingletonScore(o)
16097 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
16099 def create_bounding_box_3d_singleton_score(f, bb):
16100 r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
16101 return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
16103 r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
16105 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
16106 __repr__ = _swig_repr
16108 def __init__(self, f, sphere):
16109 r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
16110 _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
16112 def do_get_inputs(self, m, pis):
16113 r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16114 return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
16116 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16117 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"""
16118 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16120 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16121 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"""
16122 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16124 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16125 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"""
16126 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16128 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16129 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"""
16130 return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16132 def get_version_info(self):
16133 r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
16134 return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
16135 __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
16139 return _object_cast_to_BoundingSphere3DSingletonScore(o)
16143 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
16145 def create_bounding_sphere_3d_singleton_score(f, sphere):
16146 r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
16147 return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
16149 r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
16151 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
16152 __repr__ = _swig_repr
16154 def __init__(self, *args):
16156 __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
16157 __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
16159 _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
16161 def do_get_inputs(self, m, pis):
16162 r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
16163 return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
16165 def get_unary_function(self):
16166 r"""get_unary_function(DistanceToSingletonScore self) -> UnaryFunction"""
16167 return _IMP_core.DistanceToSingletonScore_get_unary_function(self)
16169 def get_point(self):
16170 r"""get_point(DistanceToSingletonScore self) -> Vector3D"""
16171 return _IMP_core.DistanceToSingletonScore_get_point(self)
16173 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
16174 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"""
16175 return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
16177 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
16178 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"""
16179 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
16181 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
16182 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"""
16183 return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
16185 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
16186 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"""
16187 return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
16189 def get_version_info(self):
16190 r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
16191 return _IMP_core.DistanceToSingletonScore_get_version_info(self)
16192 __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
16196 return _object_cast_to_DistanceToSingletonScore(o)
16199 def _get_as_binary(self):
16200 r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
16201 return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
16203 def _set_from_binary(self, p):
16204 r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
16205 return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
16207 def __getstate__(self):
16208 p = self._get_as_binary()
16209 if len(self.__dict__) > 1:
16210 d = self.__dict__.copy()
16215 def __setstate__(self, p):
16216 if not hasattr(self,
'this'):
16218 if isinstance(p, tuple):
16220 self.__dict__.update(d)
16221 return self._set_from_binary(p)
16224 def _get_jax(self):
16225 import jax.numpy
as jnp
16227 def score(X, indexes, point, uf):
16228 xyzs = X[
'xyz'][indexes]
16229 drs = jnp.linalg.norm(xyzs - point, axis=1)
16231 uf = self.get_unary_function().get_derived_object()
16232 f = functools.partial(score, point=jnp.array(self.get_point()),
16234 return self._wrap_jax(f)
16238 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16240 def create_distance_to_singleton_score(f, pt):
16241 r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16242 return _IMP_core.create_distance_to_singleton_score(f, pt)
16244 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16245 def __init__(self, uf):
16246 if isinstance(uf, HarmonicUpperBound):
16247 p = HarmonicUpperBoundSphereDistancePairScore(
16248 uf.get_mean(), uf.get_k())
16249 elif isinstance(uf, HarmonicLowerBound):
16250 if uf.get_mean() == 0.0:
16251 p = SoftSpherePairScore(uf.get_k())
16253 p = _SphereDistancePairScore(uf)
16254 elif isinstance(uf, Harmonic):
16255 p = HarmonicSphereDistancePairScore(
16256 uf.get_mean(), uf.get_k())
16258 p = _SphereDistancePairScore(uf)
16259 self.__dict__[
'_proxied'] = p
16260 def __getattr__(self, key):
16261 return getattr(self._proxied, key)
16262 def __setattr__(self, key, val):
16263 return setattr(self._proxied, key, val)
16265 def __getstate__(self):
16266 return self.__dict__[
'_proxied']
16268 def __setstate__(self, p):
16269 self.__dict__[
'_proxied'] = p
16274 p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16277 p = HarmonicSphereDistancePairScore.get_from(o)
16280 p = SoftSpherePairScore.get_from(o)
16282 p = _SphereDistancePairScore.get_from(o)
16283 obj = object.__new__(SphereDistancePairScore)
16284 obj.__dict__[
'_proxied'] = p
16290 CombineProvenance, FilterProvenance,
16291 ClusterProvenance, ScriptProvenance,
16292 SoftwareProvenance]):
16293 """Yield all provenance decorators of the given types for the particle.
16294 By default, all provenance types are returned. Provenance is returned
16295 in order, most recent first. If the particle has no provenance
16296 information, an empty generator is returned."""
16297 if Provenanced.get_is_setup(p):
16301 if c.get_is_setup(prov):
16303 prov = prov.get_previous()
16306 """Tag the given particle with the current Python script.
16307 This is a noop if the particle is already so tagged."""
16308 main = sys.modules[
'__main__']
16310 if not hasattr(main,
'__file__'):
16314 if prov.get_filename() == f:
16318 provp.set_name(
'script')
16319 prov = ScriptProvenance.setup_particle(provp, f)
16323 """Tag the given particle with the software used to create it.
16324 This is a noop if the particle is already so tagged."""
16326 if prov.get_software_name() == name
and prov.get_version() == version \
16327 and prov.get_location() == location:
16331 provp.set_name(
'software')
16332 prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16336 """Tag the given particle as being created by the current version of IMP."""
16339 location=
"https://integrativemodeling.org")
16342 def get_module_name():
16343 r"""get_module_name() -> std::string const"""
16344 return _IMP_core.get_module_name()
16347 r"""get_module_version() -> std::string const"""
16348 return _IMP_core.get_module_version()
16351 r"""get_example_path(std::string fname) -> std::string"""
16352 return _IMP_core.get_example_path(fname)
16355 r"""get_data_path(std::string fname) -> std::string"""
16356 return _IMP_core.get_data_path(fname)
16358 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
static const FloatKeys & get_xyz_keys()
Get a vector containing the keys for x,y,z.
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.