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_MISC_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_MISC_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_misc.delete_IMP_MISC_SwigPyIterator
77 r"""value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
78 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
81 r"""incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator"""
82 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator"""
86 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
94 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
98 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
101 r"""next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
102 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
105 r"""__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
106 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
109 r"""previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
110 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
114 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
118 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
122 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
126 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
130 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
134 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
139 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
146 _IMP_misc.IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
153 IMP_DEBUG = _IMP_misc.IMP_DEBUG
155 IMP_RELEASE = _IMP_misc.IMP_RELEASE
157 IMP_SILENT = _IMP_misc.IMP_SILENT
159 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
161 IMP_TERSE = _IMP_misc.IMP_TERSE
163 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
165 IMP_MEMORY = _IMP_misc.IMP_MEMORY
167 IMP_NONE = _IMP_misc.IMP_NONE
169 IMP_USAGE = _IMP_misc.IMP_USAGE
171 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_misc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_misc.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_misc.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_misc._ostream_write(self, osa_buf)
236 _IMP_misc._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_misc.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_misc.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_misc.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_misc.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_misc.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
329 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
331 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
337 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
339 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
341 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
343 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
345 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
349 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
351 IMP_CONTAINER_HAS_NUMPY = _IMP_misc.IMP_CONTAINER_HAS_NUMPY
353 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM
355 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
357 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP
359 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
362 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
364 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
366 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
368 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
370 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
372 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
374 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
376 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
378 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
380 IMP_ATOM_HAS_NUMPY = _IMP_misc.IMP_ATOM_HAS_NUMPY
382 IMP_ATOM_HAS_PYTHON_IHM = _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM
384 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
386 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
388 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
390 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
392 IMP_CHAIN_TYPE_INDEX = _IMP_misc.IMP_CHAIN_TYPE_INDEX
395 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
397 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
399 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
401 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
403 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
405 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
407 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
409 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
411 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
413 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
415 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
417 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
419 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
421 IMP_MISC_HAS_NUMPY = _IMP_misc.IMP_MISC_HAS_NUMPY
423 IMP_MISC_HAS_PYTHON_IHM = _IMP_misc.IMP_MISC_HAS_PYTHON_IHM
425 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
428 _object_types.append(
"WormLikeChain")
431 def _object_cast_to_WormLikeChain(o):
432 r"""_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
433 return _IMP_misc._object_cast_to_WormLikeChain(o)
435 _object_types.append(
"FreelyJointedChain")
438 def _object_cast_to_FreelyJointedChain(o):
439 r"""_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
440 return _IMP_misc._object_cast_to_FreelyJointedChain(o)
442 _object_types.append(
"StateAdaptor")
445 def _object_cast_to_StateAdaptor(o):
446 r"""_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
447 return _IMP_misc._object_cast_to_StateAdaptor(o)
449 _object_types.append(
"CommonEndpointPairFilter")
452 def _object_cast_to_CommonEndpointPairFilter(o):
453 r"""_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
454 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
456 _object_types.append(
"LogPairScore")
459 def _object_cast_to_LogPairScore(o):
460 r"""_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
461 return _IMP_misc._object_cast_to_LogPairScore(o)
463 _object_types.append(
"LowestRefinedPairScore")
466 def _object_cast_to_LowestRefinedPairScore(o):
467 r"""_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
468 return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
470 _object_types.append(
"SoftCylinderPairScore")
473 def _object_cast_to_SoftCylinderPairScore(o):
474 r"""_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
475 return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
477 _object_types.append(
"DecayPairContainerOptimizerState")
480 def _object_cast_to_DecayPairContainerOptimizerState(o):
481 r"""_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
482 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
484 def CustomXYZRs(l=[]):
485 return [CustomXYZR(x)
for x
in l]
486 _plural_types.append(
"CustomXYZRs")
489 _value_types.append(
"CustomXYZR")
492 r"""Proxy of C++ IMP::misc::WormLikeChain class."""
494 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
496 def __init__(self, l_max, lp):
497 r"""__init__(WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
498 _IMP_misc.WormLikeChain_swiginit(self, _IMP_misc.new_WormLikeChain(l_max, lp))
501 r"""get_version_info(WormLikeChain self) -> VersionInfo"""
502 return _IMP_misc.WormLikeChain_get_version_info(self)
503 __swig_destroy__ = _IMP_misc.delete_WormLikeChain
505 def do_show(self, out):
506 r"""do_show(WormLikeChain self, _ostream out)"""
507 return _IMP_misc.WormLikeChain_do_show(self, out)
510 r"""__str__(WormLikeChain self) -> std::string"""
511 return _IMP_misc.WormLikeChain___str__(self)
514 r"""__repr__(WormLikeChain self) -> std::string"""
515 return _IMP_misc.WormLikeChain___repr__(self)
519 return _object_cast_to_WormLikeChain(o)
523 _IMP_misc.WormLikeChain_swigregister(WormLikeChain)
525 r"""Proxy of C++ IMP::misc::FreelyJointedChain class."""
527 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
529 def __init__(self, link_num, link_length):
530 r"""__init__(FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
531 _IMP_misc.FreelyJointedChain_swiginit(self, _IMP_misc.new_FreelyJointedChain(link_num, link_length))
534 r"""get_version_info(FreelyJointedChain self) -> VersionInfo"""
535 return _IMP_misc.FreelyJointedChain_get_version_info(self)
536 __swig_destroy__ = _IMP_misc.delete_FreelyJointedChain
538 def get_link_number(self):
539 r"""get_link_number(FreelyJointedChain self) -> int"""
540 return _IMP_misc.FreelyJointedChain_get_link_number(self)
542 def get_link_length(self):
543 r"""get_link_length(FreelyJointedChain self) -> double"""
544 return _IMP_misc.FreelyJointedChain_get_link_length(self)
546 def set_link_number(self, N):
547 r"""set_link_number(FreelyJointedChain self, int N)"""
548 return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
550 def set_link_length(self, b):
551 r"""set_link_length(FreelyJointedChain self, double b)"""
552 return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
554 def get_distance_at_minimum(self):
555 r"""get_distance_at_minimum(FreelyJointedChain self) -> double"""
556 return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
558 def get_average_distance(self):
559 r"""get_average_distance(FreelyJointedChain self) -> double"""
560 return _IMP_misc.FreelyJointedChain_get_average_distance(self)
563 r"""__str__(FreelyJointedChain self) -> std::string"""
564 return _IMP_misc.FreelyJointedChain___str__(self)
567 r"""__repr__(FreelyJointedChain self) -> std::string"""
568 return _IMP_misc.FreelyJointedChain___repr__(self)
572 return _object_cast_to_FreelyJointedChain(o)
576 _IMP_misc.FreelyJointedChain_swigregister(FreelyJointedChain)
578 r"""Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
580 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
582 def __init__(self, r, f):
583 r"""__init__(LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
584 _IMP_misc.LowestRefinedPairScore_swiginit(self, _IMP_misc.new_LowestRefinedPairScore(r, f))
587 r"""do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
588 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
591 r"""get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
592 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
593 __swig_destroy__ = _IMP_misc.delete_LowestRefinedPairScore
596 r"""__str__(LowestRefinedPairScore self) -> std::string"""
597 return _IMP_misc.LowestRefinedPairScore___str__(self)
600 r"""__repr__(LowestRefinedPairScore self) -> std::string"""
601 return _IMP_misc.LowestRefinedPairScore___repr__(self)
605 return _object_cast_to_LowestRefinedPairScore(o)
609 _IMP_misc.LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
611 r"""Proxy of C++ IMP::misc::LogPairScore class."""
613 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
616 r"""__init__(LogPairScore self) -> LogPairScore"""
617 _IMP_misc.LogPairScore_swiginit(self, _IMP_misc.new_LogPairScore())
620 r"""do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
621 return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
624 r"""get_version_info(LogPairScore self) -> VersionInfo"""
625 return _IMP_misc.LogPairScore_get_version_info(self)
626 __swig_destroy__ = _IMP_misc.delete_LogPairScore
628 def get_particle_pairs(self):
629 r"""get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
630 return _IMP_misc.LogPairScore_get_particle_pairs(self)
633 r"""clear(LogPairScore self)"""
634 return _IMP_misc.LogPairScore_clear(self)
636 def get_contains(self, pp):
637 r"""get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
638 return _IMP_misc.LogPairScore_get_contains(self, pp)
641 r"""__str__(LogPairScore self) -> std::string"""
642 return _IMP_misc.LogPairScore___str__(self)
645 r"""__repr__(LogPairScore self) -> std::string"""
646 return _IMP_misc.LogPairScore___repr__(self)
650 return _object_cast_to_LogPairScore(o)
654 _IMP_misc.LogPairScore_swigregister(LogPairScore)
656 r"""Proxy of C++ IMP::misc::StateAdaptor class."""
658 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
660 def __init__(self, m, before, after):
661 r"""__init__(StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
662 _IMP_misc.StateAdaptor_swiginit(self, _IMP_misc.new_StateAdaptor(m, before, after))
664 def do_before_evaluate(self):
665 r"""do_before_evaluate(StateAdaptor self)"""
666 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
668 def do_after_evaluate(self, da):
669 r"""do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
670 return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
673 r"""do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
674 return _IMP_misc.StateAdaptor_do_get_inputs(self)
677 r"""do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
678 return _IMP_misc.StateAdaptor_do_get_outputs(self)
681 r"""get_version_info(StateAdaptor self) -> VersionInfo"""
682 return _IMP_misc.StateAdaptor_get_version_info(self)
683 __swig_destroy__ = _IMP_misc.delete_StateAdaptor
686 r"""__str__(StateAdaptor self) -> std::string"""
687 return _IMP_misc.StateAdaptor___str__(self)
690 r"""__repr__(StateAdaptor self) -> std::string"""
691 return _IMP_misc.StateAdaptor___repr__(self)
695 return _object_cast_to_StateAdaptor(o)
699 _IMP_misc.StateAdaptor_swigregister(StateAdaptor)
701 r"""Proxy of C++ IMP::misc::CommonEndpointPairFilter class."""
703 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
706 r"""__init__(CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
707 _IMP_misc.CommonEndpointPairFilter_swiginit(self, _IMP_misc.new_CommonEndpointPairFilter())
710 r"""do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
711 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
713 def get_value(self, *args):
715 get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
716 get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
718 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
720 def get_value_index(self, *args):
722 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
723 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
725 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
728 r"""get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
729 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
730 __swig_destroy__ = _IMP_misc.delete_CommonEndpointPairFilter
733 r"""__str__(CommonEndpointPairFilter self) -> std::string"""
734 return _IMP_misc.CommonEndpointPairFilter___str__(self)
737 r"""__repr__(CommonEndpointPairFilter self) -> std::string"""
738 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
742 return _object_cast_to_CommonEndpointPairFilter(o)
746 _IMP_misc.CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
748 r"""Proxy of C++ IMP::misc::CustomXYZR class."""
750 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
752 def get_decorator_traits(self):
753 r"""get_decorator_traits(CustomXYZR self) -> FloatKey"""
754 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
757 def get_default_decorator_traits():
758 r"""get_default_decorator_traits() -> FloatKey"""
759 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
761 def __init__(self, *args):
763 __init__(CustomXYZR self) -> CustomXYZR
764 __init__(CustomXYZR self, Model m, ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
765 __init__(CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
767 _IMP_misc.CustomXYZR_swiginit(self, _IMP_misc.new_CustomXYZR(*args))
769 def show(self, *args):
770 r"""show(CustomXYZR self, _ostream out=std::cout)"""
771 return _IMP_misc.CustomXYZR_show(self, *args)
774 def setup_particle(*args):
776 setup_particle(Model m, ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
777 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
778 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
779 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
780 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
781 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
783 return _IMP_misc.CustomXYZR_setup_particle(*args)
786 def get_is_setup(*args):
788 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
789 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
791 return _IMP_misc.CustomXYZR_get_is_setup(*args)
793 def get_radius(self):
794 r"""get_radius(CustomXYZR self) -> IMP::Float"""
795 return _IMP_misc.CustomXYZR_get_radius(self)
797 def set_radius(self, t):
798 r"""set_radius(CustomXYZR self, IMP::Float t)"""
799 return _IMP_misc.CustomXYZR_set_radius(self, t)
801 def get_sphere(self):
802 r"""get_sphere(CustomXYZR self) -> Sphere3D"""
803 return _IMP_misc.CustomXYZR_get_sphere(self)
805 def set_sphere(self, s):
806 r"""set_sphere(CustomXYZR self, Sphere3D s)"""
807 return _IMP_misc.CustomXYZR_set_sphere(self, s)
810 def get_default_radius_key():
811 r"""get_default_radius_key() -> FloatKey"""
812 return _IMP_misc.CustomXYZR_get_default_radius_key()
814 def add_to_radius_derivative(self, v, d):
815 r"""add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
816 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
818 def get_traits(self):
819 r"""get_traits(CustomXYZR self) -> FloatKey"""
820 return _IMP_misc.CustomXYZR_get_traits(self)
822 def add_attribute(self, *args):
824 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
825 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
826 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
827 add_attribute(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
828 add_attribute(CustomXYZR self, IntsKey a0, IMP::Ints a1)
829 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
830 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
831 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
832 add_attribute(CustomXYZR self, SparseFloatKey a0, IMP::Float a1)
833 add_attribute(CustomXYZR self, SparseIntKey a0, IMP::Int a1)
834 add_attribute(CustomXYZR self, SparseStringKey a0, IMP::String a1)
835 add_attribute(CustomXYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
837 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
839 def get_value(self, *args):
841 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
842 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
843 get_value(CustomXYZR self, FloatsKey a0) -> IMP::Floats
844 get_value(CustomXYZR self, IntsKey a0) -> IMP::Ints
845 get_value(CustomXYZR self, StringKey a0) -> IMP::String
846 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
847 get_value(CustomXYZR self, ObjectKey a0) -> Object
848 get_value(CustomXYZR self, SparseFloatKey a0) -> IMP::Float
849 get_value(CustomXYZR self, SparseIntKey a0) -> IMP::Int
850 get_value(CustomXYZR self, SparseStringKey a0) -> IMP::String
851 get_value(CustomXYZR self, SparseParticleIndexKey a0) -> ParticleIndex
853 return _IMP_misc.CustomXYZR_get_value(self, *args)
855 def set_value(self, *args):
857 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
858 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
859 set_value(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
860 set_value(CustomXYZR self, IntsKey a0, IMP::Ints a1)
861 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
862 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
863 set_value(CustomXYZR self, ObjectKey a0, Object a1)
864 set_value(CustomXYZR self, SparseFloatKey a0, IMP::Float a1)
865 set_value(CustomXYZR self, SparseIntKey a0, IMP::Int a1)
866 set_value(CustomXYZR self, SparseStringKey a0, IMP::String a1)
867 set_value(CustomXYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
869 return _IMP_misc.CustomXYZR_set_value(self, *args)
871 def remove_attribute(self, *args):
873 remove_attribute(CustomXYZR self, FloatKey a0)
874 remove_attribute(CustomXYZR self, IntKey a0)
875 remove_attribute(CustomXYZR self, FloatsKey a0)
876 remove_attribute(CustomXYZR self, IntsKey a0)
877 remove_attribute(CustomXYZR self, StringKey a0)
878 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
879 remove_attribute(CustomXYZR self, ObjectKey a0)
880 remove_attribute(CustomXYZR self, SparseFloatKey a0)
881 remove_attribute(CustomXYZR self, SparseIntKey a0)
882 remove_attribute(CustomXYZR self, SparseStringKey a0)
883 remove_attribute(CustomXYZR self, SparseParticleIndexKey a0)
885 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
887 def has_attribute(self, *args):
889 has_attribute(CustomXYZR self, FloatKey a0) -> bool
890 has_attribute(CustomXYZR self, IntKey a0) -> bool
891 has_attribute(CustomXYZR self, FloatsKey a0) -> bool
892 has_attribute(CustomXYZR self, IntsKey a0) -> bool
893 has_attribute(CustomXYZR self, StringKey a0) -> bool
894 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
895 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
896 has_attribute(CustomXYZR self, SparseFloatKey a0) -> bool
897 has_attribute(CustomXYZR self, SparseIntKey a0) -> bool
898 has_attribute(CustomXYZR self, SparseStringKey a0) -> bool
899 has_attribute(CustomXYZR self, SparseParticleIndexKey a0) -> bool
901 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
903 def get_derivative(self, a0):
904 r"""get_derivative(CustomXYZR self, FloatKey a0) -> double"""
905 return _IMP_misc.CustomXYZR_get_derivative(self, a0)
908 r"""get_name(CustomXYZR self) -> std::string"""
909 return _IMP_misc.CustomXYZR_get_name(self)
912 r"""clear_caches(CustomXYZR self)"""
913 return _IMP_misc.CustomXYZR_clear_caches(self)
915 def set_name(self, a0):
916 r"""set_name(CustomXYZR self, std::string a0)"""
917 return _IMP_misc.CustomXYZR_set_name(self, a0)
920 r"""set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
921 return _IMP_misc.CustomXYZR_set_check_level(self, a0)
923 def add_to_derivative(self, a0, a1, a2):
924 r"""add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
925 return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
927 def set_is_optimized(self, a0, a1):
928 r"""set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
929 return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
931 def get_is_optimized(self, a0):
932 r"""get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
933 return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
935 def get_check_level(self):
936 r"""get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
937 return _IMP_misc.CustomXYZR_get_check_level(self)
939 def __eq__(self, *args):
941 __eq__(CustomXYZR self, CustomXYZR o) -> bool
942 __eq__(CustomXYZR self, Particle d) -> bool
944 return _IMP_misc.CustomXYZR___eq__(self, *args)
946 def __ne__(self, *args):
948 __ne__(CustomXYZR self, CustomXYZR o) -> bool
949 __ne__(CustomXYZR self, Particle d) -> bool
951 return _IMP_misc.CustomXYZR___ne__(self, *args)
953 def __le__(self, *args):
955 __le__(CustomXYZR self, CustomXYZR o) -> bool
956 __le__(CustomXYZR self, Particle d) -> bool
958 return _IMP_misc.CustomXYZR___le__(self, *args)
960 def __lt__(self, *args):
962 __lt__(CustomXYZR self, CustomXYZR o) -> bool
963 __lt__(CustomXYZR self, Particle d) -> bool
965 return _IMP_misc.CustomXYZR___lt__(self, *args)
967 def __ge__(self, *args):
969 __ge__(CustomXYZR self, CustomXYZR o) -> bool
970 __ge__(CustomXYZR self, Particle d) -> bool
972 return _IMP_misc.CustomXYZR___ge__(self, *args)
974 def __gt__(self, *args):
976 __gt__(CustomXYZR self, CustomXYZR o) -> bool
977 __gt__(CustomXYZR self, Particle d) -> bool
979 return _IMP_misc.CustomXYZR___gt__(self, *args)
982 r"""__hash__(CustomXYZR self) -> std::size_t"""
983 return _IMP_misc.CustomXYZR___hash__(self)
986 r"""__str__(CustomXYZR self) -> std::string"""
987 return _IMP_misc.CustomXYZR___str__(self)
990 r"""__repr__(CustomXYZR self) -> std::string"""
991 return _IMP_misc.CustomXYZR___repr__(self)
992 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
995 _IMP_misc.CustomXYZR_swigregister(CustomXYZR)
997 def __lshift__(out, n):
998 r"""__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
999 return _IMP_misc.__lshift__(out, n)
1002 r"""get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1003 return _IMP_misc.get_distance(a, b)
1006 r"""get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1007 return _IMP_misc.get_sphere_d_geometry(d)
1010 r"""set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1011 return _IMP_misc.set_sphere_d_geometry(d, v)
1013 r"""Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1017 def __init__(self, k):
1018 r"""__init__(SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1019 _IMP_misc.SoftCylinderPairScore_swiginit(self, _IMP_misc.new_SoftCylinderPairScore(k))
1022 r"""do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1023 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1026 r"""get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1027 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1028 __swig_destroy__ = _IMP_misc.delete_SoftCylinderPairScore
1031 r"""__str__(SoftCylinderPairScore self) -> std::string"""
1032 return _IMP_misc.SoftCylinderPairScore___str__(self)
1035 r"""__repr__(SoftCylinderPairScore self) -> std::string"""
1036 return _IMP_misc.SoftCylinderPairScore___repr__(self)
1040 return _object_cast_to_SoftCylinderPairScore(o)
1044 _IMP_misc.SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1046 r"""Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1048 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1050 def __init__(self, *args):
1051 r"""__init__(DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState"""
1052 _IMP_misc.DecayPairContainerOptimizerState_swiginit(self, _IMP_misc.new_DecayPairContainerOptimizerState(*args))
1054 def get_output_container(self):
1055 r"""get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1056 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1058 def do_update(self, call_num):
1059 r"""do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1060 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1063 r"""get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1064 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1065 __swig_destroy__ = _IMP_misc.delete_DecayPairContainerOptimizerState
1068 r"""__str__(DecayPairContainerOptimizerState self) -> std::string"""
1069 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1072 r"""__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1073 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1077 return _object_cast_to_DecayPairContainerOptimizerState(o)
1081 _IMP_misc.DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1084 r"""get_module_version() -> std::string const"""
1085 return _IMP_misc.get_module_version()
1088 r"""get_example_path(std::string fname) -> std::string"""
1089 return _IMP_misc.get_example_path(fname)
1092 r"""get_data_path(std::string fname) -> std::string"""
1093 return _IMP_misc.get_data_path(fname)
1095 from .
import _version_check
Abstract class for scoring object(s) of type ParticleIndexPair.
Various classes to hold sets of particles.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Make CGAL functionality available to IMP.
virtual void clear_caches()
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
ScoreStates maintain invariants in the Model.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
A decorator for a particle with x,y,z coordinates.
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
Shared optimizer state that is invoked upon commitment of new coordinates.
void set_check_level(CheckLevel l)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract single variable functor class for score functions.
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.