11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_misc', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_misc', fp, pathname, description)
34 _IMP_misc = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_MISC_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_MISC_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
127 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
132 incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
133 incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
135 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
140 decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
141 decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
143 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
152 """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
153 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
157 """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
158 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
162 """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
163 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
167 """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
168 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
172 """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
173 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
178 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
183 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
188 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
193 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
198 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
203 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
209 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
215 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
216 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
225 _IMP_misc.IMP_DEBUG_swigconstant(_IMP_misc)
226 IMP_DEBUG = _IMP_misc.IMP_DEBUG
228 _IMP_misc.IMP_RELEASE_swigconstant(_IMP_misc)
229 IMP_RELEASE = _IMP_misc.IMP_RELEASE
231 _IMP_misc.IMP_SILENT_swigconstant(_IMP_misc)
232 IMP_SILENT = _IMP_misc.IMP_SILENT
234 _IMP_misc.IMP_PROGRESS_swigconstant(_IMP_misc)
235 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
237 _IMP_misc.IMP_TERSE_swigconstant(_IMP_misc)
238 IMP_TERSE = _IMP_misc.IMP_TERSE
240 _IMP_misc.IMP_VERBOSE_swigconstant(_IMP_misc)
241 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
243 _IMP_misc.IMP_MEMORY_swigconstant(_IMP_misc)
244 IMP_MEMORY = _IMP_misc.IMP_MEMORY
246 _IMP_misc.IMP_NONE_swigconstant(_IMP_misc)
247 IMP_NONE = _IMP_misc.IMP_NONE
249 _IMP_misc.IMP_USAGE_swigconstant(_IMP_misc)
250 IMP_USAGE = _IMP_misc.IMP_USAGE
252 _IMP_misc.IMP_INTERNAL_swigconstant(_IMP_misc)
253 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
255 _IMP_misc.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_misc)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_misc)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_misc)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_misc.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_misc)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_misc.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_misc.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_misc)
271 IMP_KERNEL_HAS_NUMPY = _IMP_misc.IMP_KERNEL_HAS_NUMPY
273 _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_misc)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_misc)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_misc)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_misc.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_misc)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_misc._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_misc._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_misc.IMP_HAS_NOEXCEPT_swigconstant(_IMP_misc)
328 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
330 _IMP_misc.IMP_C_OPEN_BINARY_swigconstant(_IMP_misc)
331 IMP_C_OPEN_BINARY = _IMP_misc.IMP_C_OPEN_BINARY
334 _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_misc.IMP_CGAL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
344 IMP_CGAL_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_CGAL_HAS_BOOST_SERIALIZATION
346 _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
347 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
349 _IMP_misc.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_misc)
350 IMP_CGAL_HAS_NUMPY = _IMP_misc.IMP_CGAL_HAS_NUMPY
352 _IMP_misc.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_misc)
353 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
356 _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_misc)
357 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
359 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
360 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
362 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
363 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
365 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
366 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
368 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
369 IMP_ALGEBRA_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION
371 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
372 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
374 _IMP_misc.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_misc)
375 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
377 _IMP_misc.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_misc)
378 IMP_ALGEBRA_HAS_NUMPY = _IMP_misc.IMP_ALGEBRA_HAS_NUMPY
380 _IMP_misc.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_misc)
381 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
383 _IMP_misc.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_misc)
384 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
387 _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_misc)
388 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
390 _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
391 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
393 _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
394 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
396 _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
397 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
399 _IMP_misc.IMP_DISPLAY_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
400 IMP_DISPLAY_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SERIALIZATION
402 _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
403 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
405 _IMP_misc.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_misc)
406 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
408 _IMP_misc.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_misc)
409 IMP_DISPLAY_HAS_NUMPY = _IMP_misc.IMP_DISPLAY_HAS_NUMPY
411 _IMP_misc.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_misc)
412 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
415 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_misc)
416 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
418 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
421 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
422 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
424 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
425 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
427 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
428 IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION
430 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
431 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
433 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_misc)
434 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
436 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_misc)
437 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
439 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_misc)
440 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY
442 _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_misc)
443 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
446 _IMP_misc.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_misc)
447 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
449 _IMP_misc.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
450 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
452 _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
453 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
455 _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
456 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
458 _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
459 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
461 _IMP_misc.IMP_CORE_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
462 IMP_CORE_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_CORE_HAS_BOOST_SERIALIZATION
464 _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
465 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
467 _IMP_misc.IMP_CORE_HAS_CGAL_swigconstant(_IMP_misc)
468 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
470 _IMP_misc.IMP_CORE_HAS_HDF5_swigconstant(_IMP_misc)
471 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
473 _IMP_misc.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_misc)
474 IMP_CORE_HAS_NUMPY = _IMP_misc.IMP_CORE_HAS_NUMPY
476 _IMP_misc.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_misc)
477 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
480 _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
481 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
483 _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_misc)
484 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
486 _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
487 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
489 _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
490 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
492 _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
493 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
495 _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
496 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
498 _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
499 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
501 _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
502 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
504 _IMP_misc.IMP_CONTAINER_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
505 IMP_CONTAINER_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SERIALIZATION
507 _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
508 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
510 _IMP_misc.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_misc)
511 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
513 _IMP_misc.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_misc)
514 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
516 _IMP_misc.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_misc)
517 IMP_CONTAINER_HAS_NUMPY = _IMP_misc.IMP_CONTAINER_HAS_NUMPY
519 _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
520 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM
522 _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_misc)
523 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
525 _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_misc)
526 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP
528 _IMP_misc.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_misc)
529 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
532 _IMP_misc.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_misc)
533 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
535 _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
536 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
538 _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
539 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
541 _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
542 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
544 _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
545 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
547 _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
548 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
550 _IMP_misc.IMP_ATOM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
551 IMP_ATOM_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_ATOM_HAS_BOOST_SERIALIZATION
553 _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
554 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
556 _IMP_misc.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_misc)
557 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
559 _IMP_misc.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_misc)
560 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
562 _IMP_misc.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_misc)
563 IMP_ATOM_HAS_NUMPY = _IMP_misc.IMP_ATOM_HAS_NUMPY
565 _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
566 IMP_ATOM_HAS_PYTHON_IHM = _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM
568 _IMP_misc.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_misc)
569 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
571 _IMP_misc.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_misc)
572 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
574 _IMP_misc.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_misc)
575 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
577 _IMP_misc.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_misc)
578 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
580 _IMP_misc.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_misc)
581 IMP_CHAIN_TYPE_INDEX = _IMP_misc.IMP_CHAIN_TYPE_INDEX
584 _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
585 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
587 _IMP_misc.IMP_MISC_HAS_IMP_CGAL_swigconstant(_IMP_misc)
588 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
590 _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER_swigconstant(_IMP_misc)
591 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
593 _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
594 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
596 _IMP_misc.IMP_MISC_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
597 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
599 _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
600 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
602 _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
603 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
605 _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
606 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
608 _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
609 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
611 _IMP_misc.IMP_MISC_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
612 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
614 _IMP_misc.IMP_MISC_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_misc)
615 IMP_MISC_HAS_BOOST_SERIALIZATION = _IMP_misc.IMP_MISC_HAS_BOOST_SERIALIZATION
617 _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
618 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
620 _IMP_misc.IMP_MISC_HAS_CGAL_swigconstant(_IMP_misc)
621 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
623 _IMP_misc.IMP_MISC_HAS_HDF5_swigconstant(_IMP_misc)
624 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
626 _IMP_misc.IMP_MISC_HAS_NUMPY_swigconstant(_IMP_misc)
627 IMP_MISC_HAS_NUMPY = _IMP_misc.IMP_MISC_HAS_NUMPY
629 _IMP_misc.IMP_MISC_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
630 IMP_MISC_HAS_PYTHON_IHM = _IMP_misc.IMP_MISC_HAS_PYTHON_IHM
632 _IMP_misc.IMPMISC_SHOW_WARNINGS_swigconstant(_IMP_misc)
633 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
635 _object_types.append(
"WormLikeChain")
638 def _object_cast_to_WormLikeChain(o):
639 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
640 return _IMP_misc._object_cast_to_WormLikeChain(o)
642 _object_types.append(
"FreelyJointedChain")
645 def _object_cast_to_FreelyJointedChain(o):
646 """_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
647 return _IMP_misc._object_cast_to_FreelyJointedChain(o)
649 _object_types.append(
"StateAdaptor")
652 def _object_cast_to_StateAdaptor(o):
653 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
654 return _IMP_misc._object_cast_to_StateAdaptor(o)
656 _object_types.append(
"CommonEndpointPairFilter")
659 def _object_cast_to_CommonEndpointPairFilter(o):
660 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
661 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
663 _object_types.append(
"LogPairScore")
666 def _object_cast_to_LogPairScore(o):
667 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
668 return _IMP_misc._object_cast_to_LogPairScore(o)
670 _object_types.append(
"LowestRefinedPairScore")
673 def _object_cast_to_LowestRefinedPairScore(o):
674 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
675 return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
677 _object_types.append(
"SoftCylinderPairScore")
680 def _object_cast_to_SoftCylinderPairScore(o):
681 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
682 return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
684 _object_types.append(
"DecayPairContainerOptimizerState")
687 def _object_cast_to_DecayPairContainerOptimizerState(o):
688 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
689 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
691 def CustomXYZRs(l=[]):
692 return [CustomXYZR(x)
for x
in l]
693 _plural_types.append(
"CustomXYZRs")
696 _value_types.append(
"CustomXYZR")
699 """Proxy of C++ IMP::misc::WormLikeChain class"""
700 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
702 def __init__(self, l_max, lp):
703 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
704 this = _IMP_misc.new_WormLikeChain(l_max, lp)
706 self.this.append(this)
711 """get_version_info(WormLikeChain self) -> VersionInfo"""
712 return _IMP_misc.WormLikeChain_get_version_info(self)
715 def do_show(self, out):
716 """do_show(WormLikeChain self, _ostream out)"""
717 return _IMP_misc.WormLikeChain_do_show(self, out)
721 """__str__(WormLikeChain self) -> std::string"""
722 return _IMP_misc.WormLikeChain___str__(self)
726 """__repr__(WormLikeChain self) -> std::string"""
727 return _IMP_misc.WormLikeChain___repr__(self)
732 return _object_cast_to_WormLikeChain(o)
734 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
735 WormLikeChain_swigregister(WormLikeChain)
738 """Proxy of C++ IMP::misc::FreelyJointedChain class"""
739 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
741 def __init__(self, link_num, link_length):
742 """__init__(IMP::misc::FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
743 this = _IMP_misc.new_FreelyJointedChain(link_num, link_length)
745 self.this.append(this)
750 """get_version_info(FreelyJointedChain self) -> VersionInfo"""
751 return _IMP_misc.FreelyJointedChain_get_version_info(self)
754 def get_link_number(self):
755 """get_link_number(FreelyJointedChain self) -> int"""
756 return _IMP_misc.FreelyJointedChain_get_link_number(self)
759 def get_link_length(self):
760 """get_link_length(FreelyJointedChain self) -> double"""
761 return _IMP_misc.FreelyJointedChain_get_link_length(self)
764 def set_link_number(self, N):
765 """set_link_number(FreelyJointedChain self, int N)"""
766 return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
769 def set_link_length(self, b):
770 """set_link_length(FreelyJointedChain self, double b)"""
771 return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
774 def get_distance_at_minimum(self):
775 """get_distance_at_minimum(FreelyJointedChain self) -> double"""
776 return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
779 def get_average_distance(self):
780 """get_average_distance(FreelyJointedChain self) -> double"""
781 return _IMP_misc.FreelyJointedChain_get_average_distance(self)
785 """__str__(FreelyJointedChain self) -> std::string"""
786 return _IMP_misc.FreelyJointedChain___str__(self)
790 """__repr__(FreelyJointedChain self) -> std::string"""
791 return _IMP_misc.FreelyJointedChain___repr__(self)
796 return _object_cast_to_FreelyJointedChain(o)
798 FreelyJointedChain_swigregister = _IMP_misc.FreelyJointedChain_swigregister
799 FreelyJointedChain_swigregister(FreelyJointedChain)
802 """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
803 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
805 def __init__(self, r, f):
806 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
807 this = _IMP_misc.new_LowestRefinedPairScore(r, f)
809 self.this.append(this)
814 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
815 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
819 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
820 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
824 """__str__(LowestRefinedPairScore self) -> std::string"""
825 return _IMP_misc.LowestRefinedPairScore___str__(self)
829 """__repr__(LowestRefinedPairScore self) -> std::string"""
830 return _IMP_misc.LowestRefinedPairScore___repr__(self)
835 return _object_cast_to_LowestRefinedPairScore(o)
837 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
838 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
841 """Proxy of C++ IMP::misc::LogPairScore class"""
842 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
845 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
846 this = _IMP_misc.new_LogPairScore()
848 self.this.append(this)
853 """do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
854 return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
858 """get_version_info(LogPairScore self) -> VersionInfo"""
859 return _IMP_misc.LogPairScore_get_version_info(self)
862 def get_particle_pairs(self):
863 """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
864 return _IMP_misc.LogPairScore_get_particle_pairs(self)
868 """clear(LogPairScore self)"""
869 return _IMP_misc.LogPairScore_clear(self)
872 def get_contains(self, pp):
873 """get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
874 return _IMP_misc.LogPairScore_get_contains(self, pp)
878 """__str__(LogPairScore self) -> std::string"""
879 return _IMP_misc.LogPairScore___str__(self)
883 """__repr__(LogPairScore self) -> std::string"""
884 return _IMP_misc.LogPairScore___repr__(self)
889 return _object_cast_to_LogPairScore(o)
891 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
892 LogPairScore_swigregister(LogPairScore)
895 """Proxy of C++ IMP::misc::StateAdaptor class"""
896 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
898 def __init__(self, m, before, after):
899 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
900 this = _IMP_misc.new_StateAdaptor(m, before, after)
902 self.this.append(this)
906 def do_before_evaluate(self):
907 """do_before_evaluate(StateAdaptor self)"""
908 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
911 def do_after_evaluate(self, da):
912 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
913 return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
917 """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
918 return _IMP_misc.StateAdaptor_do_get_inputs(self)
922 """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
923 return _IMP_misc.StateAdaptor_do_get_outputs(self)
927 """get_version_info(StateAdaptor self) -> VersionInfo"""
928 return _IMP_misc.StateAdaptor_get_version_info(self)
932 """__str__(StateAdaptor self) -> std::string"""
933 return _IMP_misc.StateAdaptor___str__(self)
937 """__repr__(StateAdaptor self) -> std::string"""
938 return _IMP_misc.StateAdaptor___repr__(self)
943 return _object_cast_to_StateAdaptor(o)
945 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
946 StateAdaptor_swigregister(StateAdaptor)
949 """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
950 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
953 """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
954 this = _IMP_misc.new_CommonEndpointPairFilter()
956 self.this.append(this)
961 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
962 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
965 def get_value(self, *args):
967 get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
968 get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
970 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
973 def get_value_index(self, *args):
975 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
976 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
978 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
982 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
983 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
987 """__str__(CommonEndpointPairFilter self) -> std::string"""
988 return _IMP_misc.CommonEndpointPairFilter___str__(self)
992 """__repr__(CommonEndpointPairFilter self) -> std::string"""
993 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
998 return _object_cast_to_CommonEndpointPairFilter(o)
1000 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
1001 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
1004 """Proxy of C++ IMP::misc::CustomXYZR class"""
1005 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1007 def get_decorator_traits(self):
1008 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
1009 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
1012 def get_default_decorator_traits():
1013 """get_default_decorator_traits() -> FloatKey"""
1014 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1016 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
1018 def __init__(self, *args):
1020 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
1021 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id, FloatKey tr) -> CustomXYZR
1022 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id) -> CustomXYZR
1023 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1024 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
1026 this = _IMP_misc.new_CustomXYZR(*args)
1028 self.this.append(this)
1032 def show(self, *args):
1034 show(CustomXYZR self, _ostream out)
1035 show(CustomXYZR self)
1037 return _IMP_misc.CustomXYZR_show(self, *args)
1040 def setup_particle(*args):
1042 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1043 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1044 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1045 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1046 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1047 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1048 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1049 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1050 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1051 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1052 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1053 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1055 return _IMP_misc.CustomXYZR_setup_particle(*args)
1057 setup_particle = staticmethod(setup_particle)
1059 def get_is_setup(*args):
1061 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1062 get_is_setup(_ParticleAdaptor p) -> bool
1063 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1064 get_is_setup(Model m, ParticleIndex pi) -> bool
1066 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1068 get_is_setup = staticmethod(get_is_setup)
1070 def get_radius(self):
1071 """get_radius(CustomXYZR self) -> IMP::Float"""
1072 return _IMP_misc.CustomXYZR_get_radius(self)
1075 def set_radius(self, t):
1076 """set_radius(CustomXYZR self, IMP::Float t)"""
1077 return _IMP_misc.CustomXYZR_set_radius(self, t)
1080 def get_sphere(self):
1081 """get_sphere(CustomXYZR self) -> Sphere3D"""
1082 return _IMP_misc.CustomXYZR_get_sphere(self)
1085 def set_sphere(self, s):
1086 """set_sphere(CustomXYZR self, Sphere3D s)"""
1087 return _IMP_misc.CustomXYZR_set_sphere(self, s)
1090 def get_default_radius_key():
1091 """get_default_radius_key() -> FloatKey"""
1092 return _IMP_misc.CustomXYZR_get_default_radius_key()
1094 get_default_radius_key = staticmethod(get_default_radius_key)
1096 def add_to_radius_derivative(self, v, d):
1097 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
1098 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
1101 def get_traits(self):
1102 """get_traits(CustomXYZR self) -> FloatKey"""
1103 return _IMP_misc.CustomXYZR_get_traits(self)
1106 def add_attribute(self, *args):
1108 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
1109 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
1110 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
1111 add_attribute(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
1112 add_attribute(CustomXYZR self, IntsKey a0, IMP::Ints a1)
1113 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
1114 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
1115 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
1117 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
1120 def get_value(self, *args):
1122 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
1123 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
1124 get_value(CustomXYZR self, FloatsKey a0) -> IMP::Floats
1125 get_value(CustomXYZR self, IntsKey a0) -> IMP::Ints
1126 get_value(CustomXYZR self, StringKey a0) -> IMP::String
1127 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
1128 get_value(CustomXYZR self, ObjectKey a0) -> Object
1130 return _IMP_misc.CustomXYZR_get_value(self, *args)
1133 def set_value(self, *args):
1135 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
1136 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
1137 set_value(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
1138 set_value(CustomXYZR self, IntsKey a0, IMP::Ints a1)
1139 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
1140 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
1141 set_value(CustomXYZR self, ObjectKey a0, Object a1)
1143 return _IMP_misc.CustomXYZR_set_value(self, *args)
1146 def remove_attribute(self, *args):
1148 remove_attribute(CustomXYZR self, FloatKey a0)
1149 remove_attribute(CustomXYZR self, IntKey a0)
1150 remove_attribute(CustomXYZR self, FloatsKey a0)
1151 remove_attribute(CustomXYZR self, IntsKey a0)
1152 remove_attribute(CustomXYZR self, StringKey a0)
1153 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
1154 remove_attribute(CustomXYZR self, ObjectKey a0)
1156 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
1159 def has_attribute(self, *args):
1161 has_attribute(CustomXYZR self, FloatKey a0) -> bool
1162 has_attribute(CustomXYZR self, IntKey a0) -> bool
1163 has_attribute(CustomXYZR self, FloatsKey a0) -> bool
1164 has_attribute(CustomXYZR self, IntsKey a0) -> bool
1165 has_attribute(CustomXYZR self, StringKey a0) -> bool
1166 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
1167 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
1169 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
1172 def get_derivative(self, a0):
1173 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
1174 return _IMP_misc.CustomXYZR_get_derivative(self, a0)
1178 """get_name(CustomXYZR self) -> std::string"""
1179 return _IMP_misc.CustomXYZR_get_name(self)
1183 """clear_caches(CustomXYZR self)"""
1184 return _IMP_misc.CustomXYZR_clear_caches(self)
1187 def set_name(self, a0):
1188 """set_name(CustomXYZR self, std::string a0)"""
1189 return _IMP_misc.CustomXYZR_set_name(self, a0)
1193 """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
1194 return _IMP_misc.CustomXYZR_set_check_level(self, a0)
1197 def add_to_derivative(self, a0, a1, a2):
1198 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1199 return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
1202 def set_is_optimized(self, a0, a1):
1203 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
1204 return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
1207 def get_is_optimized(self, a0):
1208 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
1209 return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
1212 def get_check_level(self):
1213 """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
1214 return _IMP_misc.CustomXYZR_get_check_level(self)
1217 def __eq__(self, *args):
1219 __eq__(CustomXYZR self, CustomXYZR o) -> bool
1220 __eq__(CustomXYZR self, Particle d) -> bool
1222 return _IMP_misc.CustomXYZR___eq__(self, *args)
1225 def __ne__(self, *args):
1227 __ne__(CustomXYZR self, CustomXYZR o) -> bool
1228 __ne__(CustomXYZR self, Particle d) -> bool
1230 return _IMP_misc.CustomXYZR___ne__(self, *args)
1233 def __le__(self, *args):
1235 __le__(CustomXYZR self, CustomXYZR o) -> bool
1236 __le__(CustomXYZR self, Particle d) -> bool
1238 return _IMP_misc.CustomXYZR___le__(self, *args)
1241 def __lt__(self, *args):
1243 __lt__(CustomXYZR self, CustomXYZR o) -> bool
1244 __lt__(CustomXYZR self, Particle d) -> bool
1246 return _IMP_misc.CustomXYZR___lt__(self, *args)
1249 def __ge__(self, *args):
1251 __ge__(CustomXYZR self, CustomXYZR o) -> bool
1252 __ge__(CustomXYZR self, Particle d) -> bool
1254 return _IMP_misc.CustomXYZR___ge__(self, *args)
1257 def __gt__(self, *args):
1259 __gt__(CustomXYZR self, CustomXYZR o) -> bool
1260 __gt__(CustomXYZR self, Particle d) -> bool
1262 return _IMP_misc.CustomXYZR___gt__(self, *args)
1266 """__hash__(CustomXYZR self) -> std::size_t"""
1267 return _IMP_misc.CustomXYZR___hash__(self)
1271 """__str__(CustomXYZR self) -> std::string"""
1272 return _IMP_misc.CustomXYZR___str__(self)
1276 """__repr__(CustomXYZR self) -> std::string"""
1277 return _IMP_misc.CustomXYZR___repr__(self)
1279 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1280 __del__ =
lambda self:
None
1281 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1282 CustomXYZR_swigregister(CustomXYZR)
1284 def CustomXYZR_get_default_decorator_traits():
1285 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1286 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1288 def CustomXYZR_setup_particle(*args):
1290 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1291 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1292 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1293 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1294 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1295 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1296 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1297 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1298 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1299 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1300 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1301 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1303 return _IMP_misc.CustomXYZR_setup_particle(*args)
1305 def CustomXYZR_get_is_setup(*args):
1307 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1308 get_is_setup(_ParticleAdaptor p) -> bool
1309 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1310 CustomXYZR_get_is_setup(Model m, ParticleIndex pi) -> bool
1312 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1314 def CustomXYZR_get_default_radius_key():
1315 """CustomXYZR_get_default_radius_key() -> FloatKey"""
1316 return _IMP_misc.CustomXYZR_get_default_radius_key()
1319 def __lshift__(out, n):
1320 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1321 return _IMP_misc.__lshift__(out, n)
1324 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1325 return _IMP_misc.get_distance(a, b)
1328 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1329 return _IMP_misc.get_sphere_d_geometry(d)
1332 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1333 return _IMP_misc.set_sphere_d_geometry(d, v)
1335 """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
1336 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1338 def __init__(self, k):
1339 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1340 this = _IMP_misc.new_SoftCylinderPairScore(k)
1342 self.this.append(this)
1347 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1348 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1352 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1353 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1357 """__str__(SoftCylinderPairScore self) -> std::string"""
1358 return _IMP_misc.SoftCylinderPairScore___str__(self)
1362 """__repr__(SoftCylinderPairScore self) -> std::string"""
1363 return _IMP_misc.SoftCylinderPairScore___repr__(self)
1368 return _object_cast_to_SoftCylinderPairScore(o)
1370 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1371 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1374 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
1375 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1377 def __init__(self, *args):
1379 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name) -> DecayPairContainerOptimizerState
1380 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list) -> DecayPairContainerOptimizerState
1382 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1384 self.this.append(this)
1388 def get_output_container(self):
1389 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1390 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1393 def do_update(self, call_num):
1394 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1395 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1399 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1400 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1404 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1405 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1409 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1410 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1415 return _object_cast_to_DecayPairContainerOptimizerState(o)
1417 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1418 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1422 """get_module_version() -> std::string const"""
1423 return _IMP_misc.get_module_version()
1426 """get_example_path(std::string fname) -> std::string"""
1427 return _IMP_misc.get_example_path(fname)
1430 """get_data_path(std::string fname) -> std::string"""
1431 return _IMP_misc.get_data_path(fname)
1433 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.