10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_misc')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_misc')
25 _IMP_misc = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_misc', [dirname(__file__)])
39 _mod = imp.load_module(
'_IMP_misc', fp, pathname, description)
43 _IMP_misc = swig_import_helper()
44 del swig_import_helper
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_MISC_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_MISC_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
126 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
131 incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
132 incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
134 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
139 decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
140 decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
142 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
151 """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
152 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
156 """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
157 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
161 """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
162 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
166 """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
167 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
171 """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
172 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
177 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
182 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
187 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
192 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
197 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
202 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
208 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
214 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
215 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
223 IMP_DEBUG = _IMP_misc.IMP_DEBUG
224 IMP_RELEASE = _IMP_misc.IMP_RELEASE
225 IMP_SILENT = _IMP_misc.IMP_SILENT
226 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
227 IMP_TERSE = _IMP_misc.IMP_TERSE
228 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
229 IMP_MEMORY = _IMP_misc.IMP_MEMORY
230 IMP_NONE = _IMP_misc.IMP_NONE
231 IMP_USAGE = _IMP_misc.IMP_USAGE
232 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
239 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
240 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
241 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
244 class _DirectorObjects(object):
245 """@internal Simple class to keep references to director objects
246 to prevent premature deletion."""
249 def register(self, obj):
250 """Take a reference to a director object; will only work for
251 refcounted C++ classes"""
252 if hasattr(obj,
'get_ref_count'):
253 self._objects.append(obj)
255 """Only drop our reference and allow cleanup by Python if no other
256 Python references exist (we hold 3 references: one in self._objects,
257 one in x, and one in the argument list for getrefcount) *and* no
258 other C++ references exist (the Python object always holds one)"""
259 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
260 or x.get_ref_count() > 1]
264 def get_object_count(self):
265 """Get number of director objects (useful for testing only)"""
266 return len(self._objects)
267 _director_objects = _DirectorObjects()
269 class _ostream(object):
270 """Proxy of C++ std::ostream class."""
272 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
274 def __init__(self, *args, **kwargs):
275 raise AttributeError(
"No constructor defined")
276 __repr__ = _swig_repr
278 def write(self, osa_buf):
279 """write(_ostream self, char const * osa_buf)"""
280 return _IMP_misc._ostream_write(self, osa_buf)
282 _ostream_swigregister = _IMP_misc._ostream_swigregister
283 _ostream_swigregister(_ostream)
285 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
286 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
287 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
289 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
290 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
292 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
293 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
295 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
296 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
297 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
298 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
299 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
300 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
301 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
302 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
304 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
305 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
306 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
307 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
308 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
309 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
310 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
312 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
313 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
314 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
315 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
316 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
317 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
318 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
319 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
321 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
322 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
323 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
324 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
325 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
326 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
327 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
328 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
329 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
331 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
332 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
334 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
335 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
336 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
337 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
338 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
339 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
340 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
341 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
342 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
344 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
345 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
346 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
347 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
348 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
349 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
350 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
351 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
352 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
353 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
354 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
355 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
356 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
358 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
359 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
360 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
361 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
362 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
363 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
364 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
365 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
366 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
367 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
368 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
369 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
370 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
371 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
373 _object_types.append(
"WormLikeChain")
376 def _object_cast_to_WormLikeChain(o):
377 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
378 return _IMP_misc._object_cast_to_WormLikeChain(o)
380 _object_types.append(
"FreelyJointedChain")
383 def _object_cast_to_FreelyJointedChain(o):
384 """_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
385 return _IMP_misc._object_cast_to_FreelyJointedChain(o)
387 _object_types.append(
"StateAdaptor")
390 def _object_cast_to_StateAdaptor(o):
391 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
392 return _IMP_misc._object_cast_to_StateAdaptor(o)
394 _object_types.append(
"CommonEndpointPairFilter")
397 def _object_cast_to_CommonEndpointPairFilter(o):
398 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
399 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
401 _object_types.append(
"LogPairScore")
404 def _object_cast_to_LogPairScore(o):
405 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
406 return _IMP_misc._object_cast_to_LogPairScore(o)
408 _object_types.append(
"LowestRefinedPairScore")
411 def _object_cast_to_LowestRefinedPairScore(o):
412 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
413 return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
415 _object_types.append(
"SoftCylinderPairScore")
418 def _object_cast_to_SoftCylinderPairScore(o):
419 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
420 return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
422 _object_types.append(
"DecayPairContainerOptimizerState")
425 def _object_cast_to_DecayPairContainerOptimizerState(o):
426 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
427 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
429 def CustomXYZRs(l=[]):
430 return [CustomXYZR(x)
for x
in l]
431 _plural_types.append(
"CustomXYZRs")
434 _value_types.append(
"CustomXYZR")
437 """Proxy of C++ IMP::misc::WormLikeChain class."""
439 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
441 def __init__(self, l_max, lp):
442 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
443 this = _IMP_misc.new_WormLikeChain(l_max, lp)
445 self.this.append(this)
446 except __builtin__.Exception:
450 """get_version_info(WormLikeChain self) -> VersionInfo"""
451 return _IMP_misc.WormLikeChain_get_version_info(self)
454 def do_show(self, out):
455 """do_show(WormLikeChain self, _ostream out)"""
456 return _IMP_misc.WormLikeChain_do_show(self, out)
460 """__str__(WormLikeChain self) -> std::string"""
461 return _IMP_misc.WormLikeChain___str__(self)
465 """__repr__(WormLikeChain self) -> std::string"""
466 return _IMP_misc.WormLikeChain___repr__(self)
471 return _object_cast_to_WormLikeChain(o)
473 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
474 WormLikeChain_swigregister(WormLikeChain)
477 """Proxy of C++ IMP::misc::FreelyJointedChain class."""
479 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
481 def __init__(self, link_num, link_length):
482 """__init__(IMP::misc::FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
483 this = _IMP_misc.new_FreelyJointedChain(link_num, link_length)
485 self.this.append(this)
486 except __builtin__.Exception:
490 """get_version_info(FreelyJointedChain self) -> VersionInfo"""
491 return _IMP_misc.FreelyJointedChain_get_version_info(self)
494 def get_link_number(self):
495 """get_link_number(FreelyJointedChain self) -> int"""
496 return _IMP_misc.FreelyJointedChain_get_link_number(self)
499 def get_link_length(self):
500 """get_link_length(FreelyJointedChain self) -> double"""
501 return _IMP_misc.FreelyJointedChain_get_link_length(self)
504 def set_link_number(self, N):
505 """set_link_number(FreelyJointedChain self, int N)"""
506 return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
509 def set_link_length(self, b):
510 """set_link_length(FreelyJointedChain self, double b)"""
511 return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
514 def get_distance_at_minimum(self):
515 """get_distance_at_minimum(FreelyJointedChain self) -> double"""
516 return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
519 def get_average_distance(self):
520 """get_average_distance(FreelyJointedChain self) -> double"""
521 return _IMP_misc.FreelyJointedChain_get_average_distance(self)
525 """__str__(FreelyJointedChain self) -> std::string"""
526 return _IMP_misc.FreelyJointedChain___str__(self)
530 """__repr__(FreelyJointedChain self) -> std::string"""
531 return _IMP_misc.FreelyJointedChain___repr__(self)
536 return _object_cast_to_FreelyJointedChain(o)
538 FreelyJointedChain_swigregister = _IMP_misc.FreelyJointedChain_swigregister
539 FreelyJointedChain_swigregister(FreelyJointedChain)
542 """Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
544 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
546 def __init__(self, r, f):
547 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
548 this = _IMP_misc.new_LowestRefinedPairScore(r, f)
550 self.this.append(this)
551 except __builtin__.Exception:
555 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
556 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
560 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
561 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
565 """__str__(LowestRefinedPairScore self) -> std::string"""
566 return _IMP_misc.LowestRefinedPairScore___str__(self)
570 """__repr__(LowestRefinedPairScore self) -> std::string"""
571 return _IMP_misc.LowestRefinedPairScore___repr__(self)
576 return _object_cast_to_LowestRefinedPairScore(o)
578 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
579 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
582 """Proxy of C++ IMP::misc::LogPairScore class."""
584 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
587 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
588 this = _IMP_misc.new_LogPairScore()
590 self.this.append(this)
591 except __builtin__.Exception:
595 """do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
596 return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
600 """get_version_info(LogPairScore self) -> VersionInfo"""
601 return _IMP_misc.LogPairScore_get_version_info(self)
604 def get_particle_pairs(self):
605 """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
606 return _IMP_misc.LogPairScore_get_particle_pairs(self)
610 """clear(LogPairScore self)"""
611 return _IMP_misc.LogPairScore_clear(self)
614 def get_contains(self, pp):
615 """get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
616 return _IMP_misc.LogPairScore_get_contains(self, pp)
620 """__str__(LogPairScore self) -> std::string"""
621 return _IMP_misc.LogPairScore___str__(self)
625 """__repr__(LogPairScore self) -> std::string"""
626 return _IMP_misc.LogPairScore___repr__(self)
631 return _object_cast_to_LogPairScore(o)
633 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
634 LogPairScore_swigregister(LogPairScore)
637 """Proxy of C++ IMP::misc::StateAdaptor class."""
639 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
641 def __init__(self, m, before, after):
642 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
643 this = _IMP_misc.new_StateAdaptor(m, before, after)
645 self.this.append(this)
646 except __builtin__.Exception:
649 def do_before_evaluate(self):
650 """do_before_evaluate(StateAdaptor self)"""
651 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
654 def do_after_evaluate(self, da):
655 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
656 return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
660 """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
661 return _IMP_misc.StateAdaptor_do_get_inputs(self)
665 """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
666 return _IMP_misc.StateAdaptor_do_get_outputs(self)
670 """get_version_info(StateAdaptor self) -> VersionInfo"""
671 return _IMP_misc.StateAdaptor_get_version_info(self)
675 """__str__(StateAdaptor self) -> std::string"""
676 return _IMP_misc.StateAdaptor___str__(self)
680 """__repr__(StateAdaptor self) -> std::string"""
681 return _IMP_misc.StateAdaptor___repr__(self)
686 return _object_cast_to_StateAdaptor(o)
688 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
689 StateAdaptor_swigregister(StateAdaptor)
692 """Proxy of C++ IMP::misc::CommonEndpointPairFilter class."""
694 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
697 """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
698 this = _IMP_misc.new_CommonEndpointPairFilter()
700 self.this.append(this)
701 except __builtin__.Exception:
705 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
706 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
709 def get_value(self, *args):
711 get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
712 get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
714 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
717 def get_value_index(self, *args):
719 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
720 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
722 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
726 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
727 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
731 """__str__(CommonEndpointPairFilter self) -> std::string"""
732 return _IMP_misc.CommonEndpointPairFilter___str__(self)
736 """__repr__(CommonEndpointPairFilter self) -> std::string"""
737 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
742 return _object_cast_to_CommonEndpointPairFilter(o)
744 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
745 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
748 """Proxy of C++ IMP::misc::CustomXYZR class."""
750 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
752 def get_decorator_traits(self):
753 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
754 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
757 def get_default_decorator_traits():
758 """get_default_decorator_traits() -> FloatKey"""
759 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
761 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
763 def __init__(self, *args):
765 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
766 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id, FloatKey tr) -> CustomXYZR
767 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id) -> CustomXYZR
768 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr) -> CustomXYZR
769 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
771 this = _IMP_misc.new_CustomXYZR(*args)
773 self.this.append(this)
774 except __builtin__.Exception:
777 def show(self, *args):
779 show(CustomXYZR self, _ostream out)
780 show(CustomXYZR self)
782 return _IMP_misc.CustomXYZR_show(self, *args)
785 def setup_particle(*args):
787 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
788 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
789 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
790 setup_particle(_ParticleAdaptor d) -> CustomXYZR
791 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
792 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
793 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
794 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
795 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
796 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
797 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
798 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
800 return _IMP_misc.CustomXYZR_setup_particle(*args)
802 setup_particle = staticmethod(setup_particle)
804 def get_is_setup(*args):
806 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
807 get_is_setup(_ParticleAdaptor p) -> bool
808 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
809 get_is_setup(Model m, ParticleIndex pi) -> bool
811 return _IMP_misc.CustomXYZR_get_is_setup(*args)
813 get_is_setup = staticmethod(get_is_setup)
815 def get_radius(self):
816 """get_radius(CustomXYZR self) -> IMP::Float"""
817 return _IMP_misc.CustomXYZR_get_radius(self)
820 def set_radius(self, t):
821 """set_radius(CustomXYZR self, IMP::Float t)"""
822 return _IMP_misc.CustomXYZR_set_radius(self, t)
825 def get_sphere(self):
826 """get_sphere(CustomXYZR self) -> Sphere3D"""
827 return _IMP_misc.CustomXYZR_get_sphere(self)
830 def set_sphere(self, s):
831 """set_sphere(CustomXYZR self, Sphere3D s)"""
832 return _IMP_misc.CustomXYZR_set_sphere(self, s)
835 def get_default_radius_key():
836 """get_default_radius_key() -> FloatKey"""
837 return _IMP_misc.CustomXYZR_get_default_radius_key()
839 get_default_radius_key = staticmethod(get_default_radius_key)
841 def add_to_radius_derivative(self, v, d):
842 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
843 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
846 def get_traits(self):
847 """get_traits(CustomXYZR self) -> FloatKey"""
848 return _IMP_misc.CustomXYZR_get_traits(self)
851 def add_attribute(self, *args):
853 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
854 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
855 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
856 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
857 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
858 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
860 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
863 def get_value(self, *args):
865 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
866 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
867 get_value(CustomXYZR self, StringKey a0) -> IMP::String
868 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
869 get_value(CustomXYZR self, ObjectKey a0) -> Object
871 return _IMP_misc.CustomXYZR_get_value(self, *args)
874 def set_value(self, *args):
876 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
877 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
878 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
879 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
880 set_value(CustomXYZR self, ObjectKey a0, Object a1)
882 return _IMP_misc.CustomXYZR_set_value(self, *args)
885 def remove_attribute(self, *args):
887 remove_attribute(CustomXYZR self, FloatKey a0)
888 remove_attribute(CustomXYZR self, IntKey a0)
889 remove_attribute(CustomXYZR self, StringKey a0)
890 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
891 remove_attribute(CustomXYZR self, ObjectKey a0)
893 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
896 def has_attribute(self, *args):
898 has_attribute(CustomXYZR self, FloatKey a0) -> bool
899 has_attribute(CustomXYZR self, IntKey a0) -> bool
900 has_attribute(CustomXYZR self, StringKey a0) -> bool
901 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
902 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
904 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
907 def get_derivative(self, a0):
908 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
909 return _IMP_misc.CustomXYZR_get_derivative(self, a0)
913 """get_name(CustomXYZR self) -> std::string"""
914 return _IMP_misc.CustomXYZR_get_name(self)
918 """clear_caches(CustomXYZR self)"""
919 return _IMP_misc.CustomXYZR_clear_caches(self)
922 def set_name(self, a0):
923 """set_name(CustomXYZR self, std::string a0)"""
924 return _IMP_misc.CustomXYZR_set_name(self, a0)
928 """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
929 return _IMP_misc.CustomXYZR_set_check_level(self, a0)
932 def add_to_derivative(self, a0, a1, a2):
933 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
934 return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
937 def set_is_optimized(self, a0, a1):
938 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
939 return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
942 def get_is_optimized(self, a0):
943 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
944 return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
947 def get_check_level(self):
948 """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
949 return _IMP_misc.CustomXYZR_get_check_level(self)
952 def __eq__(self, *args):
954 __eq__(CustomXYZR self, CustomXYZR o) -> bool
955 __eq__(CustomXYZR self, Particle d) -> bool
957 return _IMP_misc.CustomXYZR___eq__(self, *args)
960 def __ne__(self, *args):
962 __ne__(CustomXYZR self, CustomXYZR o) -> bool
963 __ne__(CustomXYZR self, Particle d) -> bool
965 return _IMP_misc.CustomXYZR___ne__(self, *args)
968 def __le__(self, *args):
970 __le__(CustomXYZR self, CustomXYZR o) -> bool
971 __le__(CustomXYZR self, Particle d) -> bool
973 return _IMP_misc.CustomXYZR___le__(self, *args)
976 def __lt__(self, *args):
978 __lt__(CustomXYZR self, CustomXYZR o) -> bool
979 __lt__(CustomXYZR self, Particle d) -> bool
981 return _IMP_misc.CustomXYZR___lt__(self, *args)
984 def __ge__(self, *args):
986 __ge__(CustomXYZR self, CustomXYZR o) -> bool
987 __ge__(CustomXYZR self, Particle d) -> bool
989 return _IMP_misc.CustomXYZR___ge__(self, *args)
992 def __gt__(self, *args):
994 __gt__(CustomXYZR self, CustomXYZR o) -> bool
995 __gt__(CustomXYZR self, Particle d) -> bool
997 return _IMP_misc.CustomXYZR___gt__(self, *args)
1001 """__hash__(CustomXYZR self) -> std::size_t"""
1002 return _IMP_misc.CustomXYZR___hash__(self)
1006 """__str__(CustomXYZR self) -> std::string"""
1007 return _IMP_misc.CustomXYZR___str__(self)
1011 """__repr__(CustomXYZR self) -> std::string"""
1012 return _IMP_misc.CustomXYZR___repr__(self)
1014 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1015 __del__ =
lambda self:
None
1016 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1017 CustomXYZR_swigregister(CustomXYZR)
1019 def CustomXYZR_get_default_decorator_traits():
1020 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1021 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1023 def CustomXYZR_setup_particle(*args):
1025 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1026 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1027 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1028 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1029 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1030 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1031 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1032 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1033 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1034 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1035 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1036 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1038 return _IMP_misc.CustomXYZR_setup_particle(*args)
1040 def CustomXYZR_get_is_setup(*args):
1042 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1043 get_is_setup(_ParticleAdaptor p) -> bool
1044 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1045 CustomXYZR_get_is_setup(Model m, ParticleIndex pi) -> bool
1047 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1049 def CustomXYZR_get_default_radius_key():
1050 """CustomXYZR_get_default_radius_key() -> FloatKey"""
1051 return _IMP_misc.CustomXYZR_get_default_radius_key()
1054 def __lshift__(out, n):
1055 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1056 return _IMP_misc.__lshift__(out, n)
1059 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1060 return _IMP_misc.get_distance(a, b)
1063 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1064 return _IMP_misc.get_sphere_d_geometry(d)
1067 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1068 return _IMP_misc.set_sphere_d_geometry(d, v)
1070 """Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1072 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1074 def __init__(self, k):
1075 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1076 this = _IMP_misc.new_SoftCylinderPairScore(k)
1078 self.this.append(this)
1079 except __builtin__.Exception:
1083 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1084 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1088 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1089 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1093 """__str__(SoftCylinderPairScore self) -> std::string"""
1094 return _IMP_misc.SoftCylinderPairScore___str__(self)
1098 """__repr__(SoftCylinderPairScore self) -> std::string"""
1099 return _IMP_misc.SoftCylinderPairScore___repr__(self)
1104 return _object_cast_to_SoftCylinderPairScore(o)
1106 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1107 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1110 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1112 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1114 def __init__(self, *args):
1116 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name) -> DecayPairContainerOptimizerState
1117 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list) -> DecayPairContainerOptimizerState
1119 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1121 self.this.append(this)
1122 except __builtin__.Exception:
1125 def get_output_container(self):
1126 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1127 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1130 def do_update(self, call_num):
1131 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1132 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1136 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1137 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1141 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1142 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1146 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1147 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1152 return _object_cast_to_DecayPairContainerOptimizerState(o)
1154 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1155 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1158 def get_module_version():
1159 """get_module_version() -> std::string const"""
1160 return _IMP_misc.get_module_version()
1163 """get_example_path(std::string fname) -> std::string"""
1164 return _IMP_misc.get_example_path(fname)
1167 """get_data_path(std::string fname) -> std::string"""
1168 return _IMP_misc.get_data_path(fname)
1170 from .
import _version_check
1171 _version_check.check_version(get_module_version())
1172 __version__ = get_module_version()
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...
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.