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_kernel', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_kernel', fp, pathname, description)
34 _IMP_kernel = 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_KERNEL_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_KERNEL_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_kernel.delete_IMP_KERNEL_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
127 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
132 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
133 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
135 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
140 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
141 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
143 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
152 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
153 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
157 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
158 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
162 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
163 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
167 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
168 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
172 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
173 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
178 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
183 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
188 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
193 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
198 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
203 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
209 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
215 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
216 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
225 _IMP_kernel.IMP_DEBUG_swigconstant(_IMP_kernel)
226 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
228 _IMP_kernel.IMP_RELEASE_swigconstant(_IMP_kernel)
229 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
231 _IMP_kernel.IMP_SILENT_swigconstant(_IMP_kernel)
232 IMP_SILENT = _IMP_kernel.IMP_SILENT
234 _IMP_kernel.IMP_PROGRESS_swigconstant(_IMP_kernel)
235 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
237 _IMP_kernel.IMP_TERSE_swigconstant(_IMP_kernel)
238 IMP_TERSE = _IMP_kernel.IMP_TERSE
240 _IMP_kernel.IMP_VERBOSE_swigconstant(_IMP_kernel)
241 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
243 _IMP_kernel.IMP_MEMORY_swigconstant(_IMP_kernel)
244 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
246 _IMP_kernel.IMP_NONE_swigconstant(_IMP_kernel)
247 IMP_NONE = _IMP_kernel.IMP_NONE
249 _IMP_kernel.IMP_USAGE_swigconstant(_IMP_kernel)
250 IMP_USAGE = _IMP_kernel.IMP_USAGE
252 _IMP_kernel.IMP_INTERNAL_swigconstant(_IMP_kernel)
253 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
255 _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_kernel)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_kernel)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_kernel.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_kernel)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_kernel.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_kernel.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_kernel)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_kernel.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_kernel)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_kernel.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_kernel)
271 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
273 _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_kernel)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.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()
312 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
313 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
315 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
316 NONE = _IMP_kernel.NONE
318 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
319 USAGE = _IMP_kernel.USAGE
321 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
322 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
325 """set_check_level(IMP::CheckLevel tf)"""
326 return _IMP_kernel.set_check_level(tf)
329 """get_check_level() -> IMP::CheckLevel"""
330 return _IMP_kernel.get_check_level()
332 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
333 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
334 from _IMP_kernel
import TypeException
336 class _ostream(object):
337 """Proxy of C++ std::ostream class"""
338 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
340 def __init__(self, *args, **kwargs):
341 raise AttributeError(
"No constructor defined")
342 __repr__ = _swig_repr
344 def write(self, osa_buf):
345 """write(_ostream self, char const * osa_buf)"""
346 return _IMP_kernel._ostream_write(self, osa_buf)
348 _ostream_swigregister = _IMP_kernel._ostream_swigregister
349 _ostream_swigregister(_ostream)
352 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
353 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
355 _IMP_kernel.IMP_C_OPEN_BINARY_swigconstant(_IMP_kernel)
356 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
358 from .
import _list_util
361 _raii_types.append(
"SetLogState")
364 _raii_types.append(
"SetNumberOfThreads")
367 _raii_types.append(
"SetCheckState")
370 _object_types.append(
"Object")
373 def _object_cast_to_Object(o):
374 """_object_cast_to_Object(Object * o) -> Object"""
375 return _IMP_kernel._object_cast_to_Object(o)
377 _object_types.append(
"_TestObject")
380 def _object_cast_to__TestObject(o):
381 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
382 return _IMP_kernel._object_cast_to__TestObject(o)
385 _plural_types.append(
"VersionInfos")
386 _value_types.append(
"VersionInfo")
389 _raii_types.append(
"CreateLogContext")
392 _raii_types.append(
"WarningContext")
395 _raii_types.append(
"SetLogTarget")
399 _plural_types.append(
"_TestValues")
400 _value_types.append(
"_TestValue")
404 _plural_types.append(
"Floats")
405 _value_types.append(
"Float")
409 _plural_types.append(
"Ints")
410 _value_types.append(
"Int")
414 _plural_types.append(
"Strings")
415 _value_types.append(
"String")
419 _plural_types.append(
"_Protections")
420 _value_types.append(
"_Protection")
422 class _InputAdaptor(object):
423 """Proxy of C++ IMP::InputAdaptor class"""
424 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
426 def __init__(self, *args, **kwargs):
427 raise AttributeError(
"No constructor defined")
428 __repr__ = _swig_repr
429 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
430 __del__ =
lambda self:
None
431 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
432 _InputAdaptor_swigregister(_InputAdaptor)
434 class _NonCopyable(object):
435 """Proxy of C++ IMP::NonCopyable class"""
436 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
438 def __init__(self, *args, **kwargs):
439 raise AttributeError(
"No constructor defined")
440 __repr__ = _swig_repr
441 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
442 __del__ =
lambda self:
None
443 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
444 _NonCopyable_swigregister(_NonCopyable)
446 class _RAII(_NonCopyable):
447 """Proxy of C++ IMP::RAII class"""
448 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
450 def __init__(self, *args, **kwargs):
451 raise AttributeError(
"No constructor defined")
452 __repr__ = _swig_repr
453 __swig_destroy__ = _IMP_kernel.delete__RAII
454 __del__ =
lambda self:
None
455 _RAII_swigregister = _IMP_kernel._RAII_swigregister
456 _RAII_swigregister(_RAII)
458 class _Value(object):
459 """Proxy of C++ IMP::Value class"""
460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
462 def __init__(self, *args, **kwargs):
463 raise AttributeError(
"No constructor defined")
464 __repr__ = _swig_repr
465 __swig_destroy__ = _IMP_kernel.delete__Value
466 __del__ =
lambda self:
None
467 _Value_swigregister = _IMP_kernel._Value_swigregister
468 _Value_swigregister(_Value)
472 """get_executable_name() -> std::string"""
473 return _IMP_kernel.get_executable_name()
477 setup_from_argv(IMP::Strings const & argv, std::string description)
478 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
480 return _IMP_kernel.setup_from_argv(*args)
483 """add_string_flag(std::string name, std::string default_value, std::string description)"""
484 return _IMP_kernel.add_string_flag(name, default_value, description)
487 """get_string_flag(std::string name) -> std::string"""
488 return _IMP_kernel.get_string_flag(name)
491 """add_int_flag(std::string name, size_t default_value, std::string description)"""
492 return _IMP_kernel.add_int_flag(name, default_value, description)
495 """get_int_flag(std::string name) -> size_t"""
496 return _IMP_kernel.get_int_flag(name)
499 """add_bool_flag(std::string name, std::string description)"""
500 return _IMP_kernel.add_bool_flag(name, description)
503 """get_bool_flag(std::string name) -> bool"""
504 return _IMP_kernel.get_bool_flag(name)
507 """add_float_flag(std::string name, double default_value, std::string description)"""
508 return _IMP_kernel.add_float_flag(name, default_value, description)
511 """get_float_flag(std::string name) -> double"""
512 return _IMP_kernel.get_float_flag(name)
516 write_help(_ostream out)
519 return _IMP_kernel.write_help(*args)
522 """get_is_quick_test() -> bool"""
523 return _IMP_kernel.get_is_quick_test()
525 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
526 DEFAULT = _IMP_kernel.DEFAULT
528 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
529 SILENT = _IMP_kernel.SILENT
531 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
532 WARNING = _IMP_kernel.WARNING
534 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
535 PROGRESS = _IMP_kernel.PROGRESS
537 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
538 TERSE = _IMP_kernel.TERSE
540 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
541 VERBOSE = _IMP_kernel.VERBOSE
543 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
544 MEMORY = _IMP_kernel.MEMORY
546 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
547 ALL_LOG = _IMP_kernel.ALL_LOG
548 class VersionInfo(_Value):
549 """Proxy of C++ IMP::VersionInfo class"""
550 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
552 def __init__(self, *args):
554 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
555 __init__(IMP::VersionInfo self) -> VersionInfo
557 this = _IMP_kernel.new_VersionInfo(*args)
559 self.this.append(this)
563 def get_module(self):
564 """get_module(VersionInfo self) -> std::string"""
565 return _IMP_kernel.VersionInfo_get_module(self)
568 def get_version(self):
569 """get_version(VersionInfo self) -> std::string"""
570 return _IMP_kernel.VersionInfo_get_version(self)
573 def show(self, *args):
575 show(VersionInfo self, _ostream out)
576 show(VersionInfo self)
578 return _IMP_kernel.VersionInfo_show(self, *args)
581 def __cmp__(self, o):
582 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
583 return _IMP_kernel.VersionInfo___cmp__(self, o)
587 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
588 return _IMP_kernel.VersionInfo___eq__(self, o)
592 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
593 return _IMP_kernel.VersionInfo___ne__(self, o)
597 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
598 return _IMP_kernel.VersionInfo___lt__(self, o)
602 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
603 return _IMP_kernel.VersionInfo___gt__(self, o)
607 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
608 return _IMP_kernel.VersionInfo___ge__(self, o)
612 """__le__(VersionInfo self, VersionInfo o) -> bool"""
613 return _IMP_kernel.VersionInfo___le__(self, o)
617 """__str__(VersionInfo self) -> std::string"""
618 return _IMP_kernel.VersionInfo___str__(self)
622 """__repr__(VersionInfo self) -> std::string"""
623 return _IMP_kernel.VersionInfo___repr__(self)
626 def _get_as_binary(self):
627 """_get_as_binary(VersionInfo self) -> PyObject *"""
628 return _IMP_kernel.VersionInfo__get_as_binary(self)
631 def _set_from_binary(self, p):
632 """_set_from_binary(VersionInfo self, PyObject * p)"""
633 return _IMP_kernel.VersionInfo__set_from_binary(self, p)
636 def __getstate__(self):
637 p = self._get_as_binary()
638 if len(self.__dict__) > 1:
639 d = self.__dict__.copy()
644 def __setstate__(self, p):
645 if not hasattr(self,
'this'):
647 if isinstance(p, tuple):
649 self.__dict__.update(d)
650 return self._set_from_binary(p)
652 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
653 __del__ =
lambda self:
None
654 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
655 VersionInfo_swigregister(VersionInfo)
657 class TextOutput(_InputAdaptor):
658 """Proxy of C++ IMP::TextOutput class"""
659 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
660 __repr__ = _swig_repr
662 def __init__(self, *args):
664 __init__(IMP::TextOutput self, int arg2) -> TextOutput
665 __init__(IMP::TextOutput self, double arg2) -> TextOutput
666 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
667 __init__(IMP::TextOutput self, char const * c) -> TextOutput
668 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
669 __init__(IMP::TextOutput self) -> TextOutput
670 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
671 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
673 this = _IMP_kernel.new_TextOutput(*args)
675 self.this.append(this)
679 def show(self, *args):
681 show(TextOutput self, _ostream out)
682 show(TextOutput self)
684 return _IMP_kernel.TextOutput_show(self, *args)
688 """get_name(TextOutput self) -> std::string"""
689 return _IMP_kernel.TextOutput_get_name(self)
691 __swig_destroy__ = _IMP_kernel.delete_TextOutput
692 __del__ =
lambda self:
None
693 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
694 TextOutput_swigregister(TextOutput)
696 class TextInput(_InputAdaptor):
697 """Proxy of C++ IMP::TextInput class"""
698 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
699 __repr__ = _swig_repr
701 def __init__(self, *args):
703 __init__(IMP::TextInput self, int arg2) -> TextInput
704 __init__(IMP::TextInput self, double arg2) -> TextInput
705 __init__(IMP::TextInput self, char const * c) -> TextInput
706 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
707 __init__(IMP::TextInput self) -> TextInput
708 __init__(IMP::TextInput self, std::string file_name) -> TextInput
710 this = _IMP_kernel.new_TextInput(*args)
712 self.this.append(this)
716 def show(self, *args):
718 show(TextInput self, _ostream out)
721 return _IMP_kernel.TextInput_show(self, *args)
725 """get_name(TextInput self) -> std::string"""
726 return _IMP_kernel.TextInput_get_name(self)
728 __swig_destroy__ = _IMP_kernel.delete_TextInput
729 __del__ =
lambda self:
None
730 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
731 TextInput_swigregister(TextInput)
733 class SetLogTarget(_RAII):
734 """Proxy of C++ IMP::SetLogTarget class"""
735 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
737 def __init__(self, *args):
739 __init__(IMP::SetLogTarget self) -> SetLogTarget
740 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
742 this = _IMP_kernel.new_SetLogTarget(*args)
744 self.this.append(this)
749 """set(SetLogTarget self, TextOutput to)"""
750 return _IMP_kernel.SetLogTarget_set(self, to)
754 """reset(SetLogTarget self)"""
755 return _IMP_kernel.SetLogTarget_reset(self)
757 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
758 __del__ =
lambda self:
None
760 def show(self, *args):
762 show(SetLogTarget self, _ostream out)
763 show(SetLogTarget self)
765 return _IMP_kernel.SetLogTarget_show(self, *args)
770 def __exit__(self, exc_type, exc_val, exc_tb):
776 """__str__(SetLogTarget self) -> std::string"""
777 return _IMP_kernel.SetLogTarget___str__(self)
781 """__repr__(SetLogTarget self) -> std::string"""
782 return _IMP_kernel.SetLogTarget___repr__(self)
784 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
785 SetLogTarget_swigregister(SetLogTarget)
790 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
791 create_temporary_file(std::string prefix) -> TextOutput
792 create_temporary_file() -> TextOutput
794 return _IMP_kernel.create_temporary_file(*args)
798 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
799 create_temporary_file_name(std::string prefix) -> std::string
800 create_temporary_file_name() -> std::string
802 return _IMP_kernel.create_temporary_file_name(*args)
805 """get_relative_path(std::string base, std::string relative) -> std::string"""
806 return _IMP_kernel.get_relative_path(base, relative)
809 """get_absolute_path(std::string file) -> std::string"""
810 return _IMP_kernel.get_absolute_path(file)
812 def push_log_context(functionname, object):
813 """push_log_context(char const * functionname, void const * object)"""
814 return _IMP_kernel.push_log_context(functionname, object)
816 def pop_log_context():
817 """pop_log_context()"""
818 return _IMP_kernel.pop_log_context()
822 add_to_log(std::string to_write)
823 add_to_log(IMP::LogLevel level, std::string to_write)
825 return _IMP_kernel.add_to_log(*args)
828 """set_log_level(IMP::LogLevel l)"""
829 return _IMP_kernel.set_log_level(l)
832 """set_log_timer(bool tb)"""
833 return _IMP_kernel.set_log_timer(tb)
836 """reset_log_timer()"""
837 return _IMP_kernel.reset_log_timer()
840 """get_log_level() -> IMP::LogLevel"""
841 return _IMP_kernel.get_log_level()
844 """set_progress_display(std::string description, unsigned int steps)"""
845 return _IMP_kernel.set_progress_display(description, steps)
849 add_to_progress_display(unsigned int step=1)
850 add_to_progress_display()
852 return _IMP_kernel.add_to_progress_display(step)
853 class Object(_NonCopyable):
854 """Proxy of C++ IMP::Object class"""
855 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
857 def __init__(self, name):
858 """__init__(IMP::Object self, std::string name) -> Object"""
859 if self.__class__ == Object:
863 this = _IMP_kernel.new_Object(_self, name)
865 self.this.append(this)
869 if self.__class__ != Object:
870 _director_objects.register(self)
874 __swig_destroy__ = _IMP_kernel.delete_Object
875 __del__ =
lambda self:
None
878 """__hash__(Object self) -> std::size_t"""
879 return _IMP_kernel.Object___hash__(self)
883 """set_log_level(Object self, IMP::LogLevel l)"""
884 return _IMP_kernel.Object_set_log_level(self, l)
888 """set_check_level(Object self, IMP::CheckLevel l)"""
889 return _IMP_kernel.Object_set_check_level(self, l)
893 """get_log_level(Object self) -> IMP::LogLevel"""
894 return _IMP_kernel.Object_get_log_level(self)
898 """get_check_level(Object self) -> IMP::CheckLevel"""
899 return _IMP_kernel.Object_get_check_level(self)
902 def get_version_info(self):
903 """get_version_info(Object self) -> VersionInfo"""
904 return _IMP_kernel.Object_get_version_info(self)
908 """get_name(Object self) -> std::string const &"""
909 return _IMP_kernel.Object_get_name(self)
912 def set_name(self, name):
913 """set_name(Object self, std::string name)"""
914 return _IMP_kernel.Object_set_name(self, name)
917 def get_type_name(self):
918 """get_type_name(Object self) -> std::string"""
919 return _IMP_kernel.Object_get_type_name(self)
922 def set_was_used(self, tf):
923 """set_was_used(Object self, bool tf)"""
924 return _IMP_kernel.Object_set_was_used(self, tf)
927 def show(self, *args):
929 show(Object self, _ostream out)
932 return _IMP_kernel.Object_show(self, *args)
935 def get_string(self):
936 """get_string(Object self) -> std::string"""
937 return _IMP_kernel.Object_get_string(self)
940 def _on_destruction(self):
941 """_on_destruction(Object self)"""
942 return _IMP_kernel.Object__on_destruction(self)
945 def get_is_valid(self):
946 """get_is_valid(Object self) -> bool"""
947 return _IMP_kernel.Object_get_is_valid(self)
950 def get_ref_count(self):
951 """get_ref_count(Object self) -> unsigned int"""
952 return _IMP_kernel.Object_get_ref_count(self)
955 def get_number_of_live_objects():
956 """get_number_of_live_objects() -> unsigned int"""
957 return _IMP_kernel.Object_get_number_of_live_objects()
959 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
961 def get_is_shared(self):
962 """get_is_shared(Object self) -> bool"""
963 return _IMP_kernel.Object_get_is_shared(self)
966 def clear_caches(self):
967 """clear_caches(Object self)"""
968 return _IMP_kernel.Object_clear_caches(self)
971 def do_destroy(self):
972 """do_destroy(Object self)"""
973 return _IMP_kernel.Object_do_destroy(self)
977 """__eq__(Object self, Object o) -> bool"""
978 return _IMP_kernel.Object___eq__(self, o)
982 """__ne__(Object self, Object o) -> bool"""
983 return _IMP_kernel.Object___ne__(self, o)
987 """__le__(Object self, Object o) -> bool"""
988 return _IMP_kernel.Object___le__(self, o)
992 """__lt__(Object self, Object o) -> bool"""
993 return _IMP_kernel.Object___lt__(self, o)
997 """__ge__(Object self, Object o) -> bool"""
998 return _IMP_kernel.Object___ge__(self, o)
1001 def __gt__(self, o):
1002 """__gt__(Object self, Object o) -> bool"""
1003 return _IMP_kernel.Object___gt__(self, o)
1007 """__str__(Object self) -> std::string"""
1008 return _IMP_kernel.Object___str__(self)
1012 """__repr__(Object self) -> std::string"""
1013 return _IMP_kernel.Object___repr__(self)
1018 return _object_cast_to_Object(o)
1020 def __disown__(self):
1022 _IMP_kernel.disown_Object(self)
1023 return weakref_proxy(self)
1024 Object_swigregister = _IMP_kernel.Object_swigregister
1025 Object_swigregister(Object)
1027 def Object_get_number_of_live_objects():
1028 """Object_get_number_of_live_objects() -> unsigned int"""
1029 return _IMP_kernel.Object_get_number_of_live_objects()
1031 class SetLogState(_RAII):
1032 """Proxy of C++ IMP::SetLogState class"""
1033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1036 """reset(SetLogState self)"""
1037 return _IMP_kernel.SetLogState_reset(self)
1039 __swig_destroy__ = _IMP_kernel.delete_SetLogState
1040 __del__ =
lambda self:
None
1042 def show(self, *args):
1044 show(SetLogState self, _ostream out)
1045 show(SetLogState self)
1047 return _IMP_kernel.SetLogState_show(self, *args)
1050 def __init__(self, *args):
1052 __init__(IMP::SetLogState self) -> SetLogState
1053 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1054 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1056 this = _IMP_kernel.new_SetLogState(*args)
1058 self.this.append(this)
1062 def set(self, *args):
1064 set(SetLogState self, Object o, IMP::LogLevel l)
1065 set(SetLogState self, IMP::LogLevel l)
1067 return _IMP_kernel.SetLogState_set(self, *args)
1070 def __enter__(self):
1072 def __exit__(self, exc_type, exc_val, exc_tb):
1078 """__str__(SetLogState self) -> std::string"""
1079 return _IMP_kernel.SetLogState___str__(self)
1083 """__repr__(SetLogState self) -> std::string"""
1084 return _IMP_kernel.SetLogState___repr__(self)
1086 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1087 SetLogState_swigregister(SetLogState)
1089 class WarningContext(object):
1090 """Proxy of C++ IMP::WarningContext class"""
1091 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1092 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1094 def add_warning(self, key, warning):
1095 """add_warning(WarningContext self, std::string key, std::string warning)"""
1096 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1099 def clear_warnings(self):
1100 """clear_warnings(WarningContext self)"""
1101 return _IMP_kernel.WarningContext_clear_warnings(self)
1104 def dump_warnings(self):
1105 """dump_warnings(WarningContext self)"""
1106 return _IMP_kernel.WarningContext_dump_warnings(self)
1108 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1109 __del__ =
lambda self:
None
1111 def show(self, *args):
1113 show(WarningContext self, _ostream out)
1114 show(WarningContext self)
1116 return _IMP_kernel.WarningContext_show(self, *args)
1119 def __enter__(self):
1121 def __exit__(self, exc_type, exc_val, exc_tb):
1127 """__str__(WarningContext self) -> std::string"""
1128 return _IMP_kernel.WarningContext___str__(self)
1132 """__repr__(WarningContext self) -> std::string"""
1133 return _IMP_kernel.WarningContext___repr__(self)
1137 """__init__(IMP::WarningContext self) -> WarningContext"""
1138 this = _IMP_kernel.new_WarningContext()
1140 self.this.append(this)
1143 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1144 WarningContext_swigregister(WarningContext)
1146 class CreateLogContext(_RAII):
1147 """Proxy of C++ IMP::CreateLogContext class"""
1148 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1150 def __init__(self, *args):
1152 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1153 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1154 __init__(IMP::CreateLogContext self) -> CreateLogContext
1155 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1156 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1158 this = _IMP_kernel.new_CreateLogContext(*args)
1160 self.this.append(this)
1164 def set(self, fname, object=None):
1166 set(CreateLogContext self, char const * fname, Object object=None)
1167 set(CreateLogContext self, char const * fname)
1169 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1173 """reset(CreateLogContext self)"""
1174 return _IMP_kernel.CreateLogContext_reset(self)
1176 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1177 __del__ =
lambda self:
None
1179 def show(self, *args):
1181 show(CreateLogContext self, _ostream out)
1182 show(CreateLogContext self)
1184 return _IMP_kernel.CreateLogContext_show(self, *args)
1187 def __enter__(self):
1189 def __exit__(self, exc_type, exc_val, exc_tb):
1195 """__str__(CreateLogContext self) -> std::string"""
1196 return _IMP_kernel.CreateLogContext___str__(self)
1200 """__repr__(CreateLogContext self) -> std::string"""
1201 return _IMP_kernel.CreateLogContext___repr__(self)
1203 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1204 CreateLogContext_swigregister(CreateLogContext)
1206 class SetCheckState(_RAII):
1207 """Proxy of C++ IMP::SetCheckState class"""
1208 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1211 """reset(SetCheckState self)"""
1212 return _IMP_kernel.SetCheckState_reset(self)
1214 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1215 __del__ =
lambda self:
None
1217 def show(self, *args):
1219 show(SetCheckState self, _ostream out)
1220 show(SetCheckState self)
1222 return _IMP_kernel.SetCheckState_show(self, *args)
1225 def __init__(self, *args):
1227 __init__(IMP::SetCheckState self) -> SetCheckState
1228 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1229 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1231 this = _IMP_kernel.new_SetCheckState(*args)
1233 self.this.append(this)
1237 def set(self, *args):
1239 set(SetCheckState self, Object o, IMP::CheckLevel l)
1240 set(SetCheckState self, IMP::CheckLevel l)
1242 return _IMP_kernel.SetCheckState_set(self, *args)
1245 def __enter__(self):
1247 def __exit__(self, exc_type, exc_val, exc_tb):
1253 """__str__(SetCheckState self) -> std::string"""
1254 return _IMP_kernel.SetCheckState___str__(self)
1258 """__repr__(SetCheckState self) -> std::string"""
1259 return _IMP_kernel.SetCheckState___repr__(self)
1261 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1262 SetCheckState_swigregister(SetCheckState)
1266 """get_unique_name(std::string templ) -> std::string"""
1267 return _IMP_kernel.get_unique_name(templ)
1268 class _Protection(object):
1269 """Proxy of C++ IMP::internal::_Protection class"""
1270 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1272 def __init__(self, *args, **kwargs):
1273 raise AttributeError(
"No constructor defined")
1275 def show(self, *args):
1277 show(_Protection self, _ostream out)
1278 show(_Protection self)
1280 return _IMP_kernel._Protection_show(self, *args)
1284 """__str__(_Protection self) -> std::string"""
1285 return _IMP_kernel._Protection___str__(self)
1289 """__repr__(_Protection self) -> std::string"""
1290 return _IMP_kernel._Protection___repr__(self)
1292 __swig_destroy__ = _IMP_kernel.delete__Protection
1293 __del__ =
lambda self:
None
1294 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1295 _Protection_swigregister(_Protection)
1300 return _IMP_kernel._test_log()
1302 def _test_intranges(ips):
1303 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1304 return _IMP_kernel._test_intranges(ips)
1306 def _test_intrange(*args):
1308 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1309 _test_intrange() -> IMP::IntRange
1311 return _IMP_kernel._test_intrange(*args)
1314 """_test_ifile(TextInput a) -> std::string"""
1315 return _IMP_kernel._test_ifile(a)
1318 """_test_ofile(TextOutput a) -> std::string"""
1319 return _IMP_kernel._test_ofile(a)
1321 def _test_ifile_overloaded(*args):
1323 _test_ifile_overloaded(TextInput a, int i) -> std::string
1324 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1326 return _IMP_kernel._test_ifile_overloaded(*args)
1328 def _test_ofile_overloaded(*args):
1330 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1331 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1333 return _IMP_kernel._test_ofile_overloaded(*args)
1334 class _TestValue(object):
1335 """Proxy of C++ IMP::internal::_TestValue 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, i):
1339 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1340 this = _IMP_kernel.new__TestValue(i)
1342 self.this.append(this)
1346 def show(self, *args):
1348 show(_TestValue self, _ostream out)
1349 show(_TestValue self)
1351 return _IMP_kernel._TestValue_show(self, *args)
1354 def __cmp__(self, o):
1355 """__cmp__(_TestValue self, _TestValue o) -> int"""
1356 return _IMP_kernel._TestValue___cmp__(self, o)
1359 def __eq__(self, o):
1360 """__eq__(_TestValue self, _TestValue o) -> bool"""
1361 return _IMP_kernel._TestValue___eq__(self, o)
1364 def __ne__(self, o):
1365 """__ne__(_TestValue self, _TestValue o) -> bool"""
1366 return _IMP_kernel._TestValue___ne__(self, o)
1369 def __lt__(self, o):
1370 """__lt__(_TestValue self, _TestValue o) -> bool"""
1371 return _IMP_kernel._TestValue___lt__(self, o)
1374 def __gt__(self, o):
1375 """__gt__(_TestValue self, _TestValue o) -> bool"""
1376 return _IMP_kernel._TestValue___gt__(self, o)
1379 def __ge__(self, o):
1380 """__ge__(_TestValue self, _TestValue o) -> bool"""
1381 return _IMP_kernel._TestValue___ge__(self, o)
1384 def __le__(self, o):
1385 """__le__(_TestValue self, _TestValue o) -> bool"""
1386 return _IMP_kernel._TestValue___le__(self, o)
1390 """get(_TestValue self) -> int"""
1391 return _IMP_kernel._TestValue_get(self)
1394 def get_float(self):
1395 """get_float(_TestValue self) -> float const &"""
1396 return _IMP_kernel._TestValue_get_float(self)
1399 def get_double(self):
1400 """get_double(_TestValue self) -> double const &"""
1401 return _IMP_kernel._TestValue_get_double(self)
1404 def get_Float(self):
1405 """get_Float(_TestValue self) -> IMP::Float const &"""
1406 return _IMP_kernel._TestValue_get_Float(self)
1410 """get_int(_TestValue self) -> int const &"""
1411 return _IMP_kernel._TestValue_get_int(self)
1415 """get_Int(_TestValue self) -> IMP::Int const &"""
1416 return _IMP_kernel._TestValue_get_Int(self)
1419 def get_string(self):
1420 """get_string(_TestValue self) -> std::string const &"""
1421 return _IMP_kernel._TestValue_get_string(self)
1424 def get_String(self):
1425 """get_String(_TestValue self) -> IMP::String const &"""
1426 return _IMP_kernel._TestValue_get_String(self)
1430 """__str__(_TestValue self) -> std::string"""
1431 return _IMP_kernel._TestValue___str__(self)
1435 """__repr__(_TestValue self) -> std::string"""
1436 return _IMP_kernel._TestValue___repr__(self)
1438 __swig_destroy__ = _IMP_kernel.delete__TestValue
1439 __del__ =
lambda self:
None
1440 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1441 _TestValue_swigregister(_TestValue)
1444 def _pass_plain_pair(p):
1445 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1446 return _IMP_kernel._pass_plain_pair(p)
1448 def _pass_overloaded_strings(*args):
1450 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1451 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1453 return _IMP_kernel._pass_overloaded_strings(*args)
1456 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1457 return _IMP_kernel._pass_pair(p)
1459 def _pass_floats(input):
1460 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1461 return _IMP_kernel._pass_floats(input)
1463 def _pass_ints(input):
1464 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1465 return _IMP_kernel._pass_ints(input)
1467 def _pass_ints_list(input):
1468 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1469 return _IMP_kernel._pass_ints_list(input)
1471 def _pass_ints_lists(input):
1472 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1473 return _IMP_kernel._pass_ints_lists(input)
1475 def _pass_strings(input):
1476 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1477 return _IMP_kernel._pass_strings(input)
1478 class _TestObject(Object):
1479 """Proxy of C++ IMP::internal::_TestObject class"""
1480 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1483 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1484 this = _IMP_kernel.new__TestObject()
1486 self.this.append(this)
1490 def get_version_info(self):
1491 """get_version_info(_TestObject self) -> VersionInfo"""
1492 return _IMP_kernel._TestObject_get_version_info(self)
1496 """__str__(_TestObject self) -> std::string"""
1497 return _IMP_kernel._TestObject___str__(self)
1501 """__repr__(_TestObject self) -> std::string"""
1502 return _IMP_kernel._TestObject___repr__(self)
1507 return _object_cast_to__TestObject(o)
1509 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1510 _TestObject_swigregister(_TestObject)
1514 """get_live_object_names() -> IMP::Strings"""
1515 return _IMP_kernel.get_live_object_names()
1518 """get_live_objects() -> IMP::Objects"""
1519 return _IMP_kernel.get_live_objects()
1522 """set_show_leaked_objects(bool tf)"""
1523 return _IMP_kernel.set_show_leaked_objects(tf)
1526 """set_deprecation_warnings(bool tf)"""
1527 return _IMP_kernel.set_deprecation_warnings(tf)
1530 """set_deprecation_exceptions(bool tf)"""
1531 return _IMP_kernel.set_deprecation_exceptions(tf)
1534 """get_deprecation_exceptions() -> bool"""
1535 return _IMP_kernel.get_deprecation_exceptions()
1538 """handle_use_deprecated(std::string message)"""
1539 return _IMP_kernel.handle_use_deprecated(message)
1542 """get_number_of_threads() -> unsigned int"""
1543 return _IMP_kernel.get_number_of_threads()
1546 """set_number_of_threads(unsigned int n)"""
1547 return _IMP_kernel.set_number_of_threads(n)
1548 class SetNumberOfThreads(_RAII):
1549 """Proxy of C++ IMP::SetNumberOfThreads class"""
1550 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1552 def __init__(self, *args):
1554 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1555 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1557 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1559 self.this.append(this)
1564 """set(SetNumberOfThreads self, unsigned int n)"""
1565 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1569 """reset(SetNumberOfThreads self)"""
1570 return _IMP_kernel.SetNumberOfThreads_reset(self)
1572 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1573 __del__ =
lambda self:
None
1575 def show(self, *args):
1577 show(SetNumberOfThreads self, _ostream out)
1578 show(SetNumberOfThreads self)
1580 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1583 def __enter__(self):
1585 def __exit__(self, exc_type, exc_val, exc_tb):
1591 """__str__(SetNumberOfThreads self) -> std::string"""
1592 return _IMP_kernel.SetNumberOfThreads___str__(self)
1596 """__repr__(SetNumberOfThreads self) -> std::string"""
1597 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1599 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1600 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1604 i_m_p=
"IMP_MODULE_PATH"
1605 if i_m_p
in os.environ.keys():
1606 __path__.insert(0, os.environ[i_m_p])
1608 def _forward_add_attribute(self, name, value, opt=None):
1610 self.get_particle().add_attribute(name, value, opt)
1612 self.get_particle().add_attribute(name, value)
1613 def _forward_get_value(self, name):
1614 self.get_particle().get_value(name)
1615 def _forward_set_value(self, name, value):
1616 self.get_particle().set_value(name, value)
1622 _object_types.append(
"Constraint")
1625 def _object_cast_to_Constraint(o):
1626 """_object_cast_to_Constraint(Object o) -> Constraint"""
1627 return _IMP_kernel._object_cast_to_Constraint(o)
1629 _object_types.append(
"Undecorator")
1632 def _object_cast_to_Undecorator(o):
1633 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1634 return _IMP_kernel._object_cast_to_Undecorator(o)
1636 _object_types.append(
"Container")
1639 def _object_cast_to_Container(o):
1640 """_object_cast_to_Container(Object o) -> Container"""
1641 return _IMP_kernel._object_cast_to_Container(o)
1643 _object_types.append(
"Optimizer")
1646 def _object_cast_to_Optimizer(o):
1647 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1648 return _IMP_kernel._object_cast_to_Optimizer(o)
1650 _object_types.append(
"AttributeOptimizer")
1653 def _object_cast_to_AttributeOptimizer(o):
1654 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1655 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1657 _object_types.append(
"OptimizerState")
1660 def _object_cast_to_OptimizerState(o):
1661 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1662 return _IMP_kernel._object_cast_to_OptimizerState(o)
1664 _object_types.append(
"PairContainer")
1667 def _object_cast_to_PairContainer(o):
1668 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1669 return _IMP_kernel._object_cast_to_PairContainer(o)
1671 _object_types.append(
"PairModifier")
1674 def _object_cast_to_PairModifier(o):
1675 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1676 return _IMP_kernel._object_cast_to_PairModifier(o)
1678 _object_types.append(
"PairScore")
1681 def _object_cast_to_PairScore(o):
1682 """_object_cast_to_PairScore(Object o) -> PairScore"""
1683 return _IMP_kernel._object_cast_to_PairScore(o)
1685 _object_types.append(
"QuadContainer")
1688 def _object_cast_to_QuadContainer(o):
1689 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1690 return _IMP_kernel._object_cast_to_QuadContainer(o)
1692 _object_types.append(
"QuadModifier")
1695 def _object_cast_to_QuadModifier(o):
1696 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1697 return _IMP_kernel._object_cast_to_QuadModifier(o)
1699 _object_types.append(
"QuadScore")
1702 def _object_cast_to_QuadScore(o):
1703 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1704 return _IMP_kernel._object_cast_to_QuadScore(o)
1706 _object_types.append(
"Refiner")
1709 def _object_cast_to_Refiner(o):
1710 """_object_cast_to_Refiner(Object o) -> Refiner"""
1711 return _IMP_kernel._object_cast_to_Refiner(o)
1713 _object_types.append(
"Restraint")
1716 def _object_cast_to_Restraint(o):
1717 """_object_cast_to_Restraint(Object o) -> Restraint"""
1718 return _IMP_kernel._object_cast_to_Restraint(o)
1720 _object_types.append(
"Sampler")
1723 def _object_cast_to_Sampler(o):
1724 """_object_cast_to_Sampler(Object o) -> Sampler"""
1725 return _IMP_kernel._object_cast_to_Sampler(o)
1727 _object_types.append(
"ScoreState")
1730 def _object_cast_to_ScoreState(o):
1731 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1732 return _IMP_kernel._object_cast_to_ScoreState(o)
1734 _object_types.append(
"SingletonContainer")
1737 def _object_cast_to_SingletonContainer(o):
1738 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1739 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1741 _object_types.append(
"SingletonModifier")
1744 def _object_cast_to_SingletonModifier(o):
1745 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1746 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1748 _object_types.append(
"SingletonScore")
1751 def _object_cast_to_SingletonScore(o):
1752 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1753 return _IMP_kernel._object_cast_to_SingletonScore(o)
1755 _object_types.append(
"TripletContainer")
1758 def _object_cast_to_TripletContainer(o):
1759 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1760 return _IMP_kernel._object_cast_to_TripletContainer(o)
1762 _object_types.append(
"TripletModifier")
1765 def _object_cast_to_TripletModifier(o):
1766 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1767 return _IMP_kernel._object_cast_to_TripletModifier(o)
1769 _object_types.append(
"TripletScore")
1772 def _object_cast_to_TripletScore(o):
1773 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1774 return _IMP_kernel._object_cast_to_TripletScore(o)
1776 _object_types.append(
"UnaryFunction")
1779 def _object_cast_to_UnaryFunction(o):
1780 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1781 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1783 _object_types.append(
"RestraintInfo")
1786 def _object_cast_to_RestraintInfo(o):
1787 """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1788 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1790 _object_types.append(
"ConfigurationSet")
1793 def _object_cast_to_ConfigurationSet(o):
1794 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1795 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1797 _object_types.append(
"Configuration")
1800 def _object_cast_to_Configuration(o):
1801 """_object_cast_to_Configuration(Object o) -> Configuration"""
1802 return _IMP_kernel._object_cast_to_Configuration(o)
1804 _object_types.append(
"Model")
1807 def _object_cast_to_Model(o):
1808 """_object_cast_to_Model(Object o) -> Model"""
1809 return _IMP_kernel._object_cast_to_Model(o)
1811 _object_types.append(
"Particle")
1814 def _object_cast_to_Particle(o):
1815 """_object_cast_to_Particle(Object o) -> Particle"""
1816 return _IMP_kernel._object_cast_to_Particle(o)
1818 _object_types.append(
"RestraintSet")
1821 def _object_cast_to_RestraintSet(o):
1822 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1823 return _IMP_kernel._object_cast_to_RestraintSet(o)
1825 ParticlePairsTemp=list
1826 _plural_types.append(
"ParticlePairsTemp")
1827 _value_types.append(
"ParticlePair")
1830 ParticleTripletsTemp=list
1831 _plural_types.append(
"ParticleTripletsTemp")
1832 _value_types.append(
"ParticleTriplet")
1835 ParticleQuadsTemp=list
1836 _plural_types.append(
"ParticleQuadsTemp")
1837 _value_types.append(
"ParticleQuad")
1840 ParticleIndexPairs=list
1841 _plural_types.append(
"ParticleIndexPairs")
1842 _value_types.append(
"ParticleIndexPair")
1845 ParticleIndexTriplets=list
1846 _plural_types.append(
"ParticleIndexTriplets")
1847 _value_types.append(
"ParticleIndexTriplet")
1850 ParticleIndexQuads=list
1851 _plural_types.append(
"ParticleIndexQuads")
1852 _value_types.append(
"ParticleIndexQuad")
1855 _object_types.append(
"SingletonPredicate")
1858 def _object_cast_to_SingletonPredicate(o):
1859 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1860 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1862 _object_types.append(
"PairPredicate")
1865 def _object_cast_to_PairPredicate(o):
1866 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1867 return _IMP_kernel._object_cast_to_PairPredicate(o)
1869 _object_types.append(
"TripletPredicate")
1872 def _object_cast_to_TripletPredicate(o):
1873 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1874 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1876 _object_types.append(
"QuadPredicate")
1879 def _object_cast_to_QuadPredicate(o):
1880 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1881 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1883 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1886 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1887 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1888 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1890 EvaluationStates=list
1891 _plural_types.append(
"EvaluationStates")
1892 _value_types.append(
"EvaluationState")
1895 ScoreAccumulators=list
1896 _plural_types.append(
"ScoreAccumulators")
1897 _value_types.append(
"ScoreAccumulator")
1900 ParticleIndexes=list
1901 _plural_types.append(
"ParticleIndexes")
1902 _value_types.append(
"ParticleIndex")
1906 _plural_types.append(
"FloatIndexes")
1907 _value_types.append(
"FloatIndex")
1911 _plural_types.append(
"FloatKeys")
1912 _value_types.append(
"FloatKey")
1916 _plural_types.append(
"FloatsKeys")
1917 _value_types.append(
"FloatsKey")
1921 _plural_types.append(
"IntKeys")
1922 _value_types.append(
"IntKey")
1926 _plural_types.append(
"IntsKeys")
1927 _value_types.append(
"IntsKey")
1931 _plural_types.append(
"StringKeys")
1932 _value_types.append(
"StringKey")
1935 ParticleIndexKeys=list
1936 _plural_types.append(
"ParticleIndexKeys")
1937 _value_types.append(
"ParticleIndexKey")
1940 ParticleIndexesKeys=list
1941 _plural_types.append(
"ParticleIndexesKeys")
1942 _value_types.append(
"ParticleIndexesKey")
1946 _plural_types.append(
"ObjectKeys")
1947 _value_types.append(
"ObjectKey")
1951 _plural_types.append(
"ModelKeys")
1952 _value_types.append(
"ModelKey")
1956 _plural_types.append(
"TriggerKeys")
1957 _value_types.append(
"TriggerKey")
1960 _raii_types.append(
"ScopedSetFloatAttribute")
1963 _object_types.append(
"ScoringFunction")
1966 def _object_cast_to_ScoringFunction(o):
1967 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1968 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1970 _object_types.append(
"ModelObject")
1973 def _object_cast_to_ModelObject(o):
1974 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1975 return _IMP_kernel._object_cast_to_ModelObject(o)
1977 def _TrivialDecorators(l=[]):
1978 return [_TrivialDecorator(x)
for x
in l]
1979 _plural_types.append(
"_TrivialDecorators")
1982 _value_types.append(
"_TrivialDecorator")
1985 def _TrivialDerivedDecorators(l=[]):
1986 return [_TrivialDerivedDecorator(x)
for x
in l]
1987 _plural_types.append(
"_TrivialDerivedDecorators")
1990 _value_types.append(
"_TrivialDerivedDecorator")
1993 def _TrivialTraitsDecorators(l=[]):
1994 return [_TrivialTraitsDecorator(x)
for x
in l]
1995 _plural_types.append(
"_TrivialTraitsDecorators")
1998 _value_types.append(
"_TrivialTraitsDecorator")
2001 _object_types.append(
"_ConstRestraint")
2004 def _object_cast_to__ConstRestraint(o):
2005 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
2006 return _IMP_kernel._object_cast_to__ConstRestraint(o)
2008 _object_types.append(
"_ConstOptimizer")
2011 def _object_cast_to__ConstOptimizer(o):
2012 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
2013 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
2015 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
2016 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2017 __repr__ = _swig_repr
2020 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
2021 this = _IMP_kernel.new_DependencyGraph()
2023 self.this.append(this)
2027 def get_graph(self):
2028 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
2029 return _IMP_kernel.DependencyGraph_get_graph(self)
2033 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2034 return _IMP_kernel.DependencyGraph_get_vertices(self)
2037 def get_vertex_name(self, i):
2038 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
2039 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
2042 def get_in_neighbors(self, v):
2043 """get_in_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2044 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
2047 def get_out_neighbors(self, v):
2048 """get_out_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2049 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
2054 show_graphviz(DependencyGraph self, _ostream out)
2055 show_graphviz(DependencyGraph self)
2057 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
2060 def get_graphviz_string(self):
2061 """get_graphviz_string(DependencyGraph self) -> std::string"""
2062 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
2065 def add_edge(self, v0, v1):
2066 """add_edge(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v1)"""
2067 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
2070 def add_vertex(self, l):
2071 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
2072 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
2075 def remove_vertex(self, l):
2076 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
2077 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
2079 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
2080 __del__ =
lambda self:
None
2081 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
2082 DependencyGraph_swigregister(DependencyGraph)
2085 _value_types.append(
"DependencyGraph")
2088 """Proxy of C++ IMP::Key<(0)> class"""
2089 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2091 def __init__(self, *args):
2093 __init__(IMP::Key<(0)> self) -> FloatKey
2094 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2095 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2096 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2098 this = _IMP_kernel.new_FloatKey(*args)
2100 self.this.append(this)
2105 """add_key(std::string sc) -> unsigned int"""
2106 return _IMP_kernel.FloatKey_add_key(sc)
2108 add_key = staticmethod(add_key)
2110 def get_key_exists(sc):
2111 """get_key_exists(std::string sc) -> bool"""
2112 return _IMP_kernel.FloatKey_get_key_exists(sc)
2114 get_key_exists = staticmethod(get_key_exists)
2116 def get_string(self):
2117 """get_string(FloatKey self) -> std::string const"""
2118 return _IMP_kernel.FloatKey_get_string(self)
2121 def __cmp__(self, o):
2122 """__cmp__(FloatKey self, FloatKey o) -> int"""
2123 return _IMP_kernel.FloatKey___cmp__(self, o)
2126 def __eq__(self, o):
2127 """__eq__(FloatKey self, FloatKey o) -> bool"""
2128 return _IMP_kernel.FloatKey___eq__(self, o)
2131 def __ne__(self, o):
2132 """__ne__(FloatKey self, FloatKey o) -> bool"""
2133 return _IMP_kernel.FloatKey___ne__(self, o)
2136 def __lt__(self, o):
2137 """__lt__(FloatKey self, FloatKey o) -> bool"""
2138 return _IMP_kernel.FloatKey___lt__(self, o)
2141 def __gt__(self, o):
2142 """__gt__(FloatKey self, FloatKey o) -> bool"""
2143 return _IMP_kernel.FloatKey___gt__(self, o)
2146 def __ge__(self, o):
2147 """__ge__(FloatKey self, FloatKey o) -> bool"""
2148 return _IMP_kernel.FloatKey___ge__(self, o)
2151 def __le__(self, o):
2152 """__le__(FloatKey self, FloatKey o) -> bool"""
2153 return _IMP_kernel.FloatKey___le__(self, o)
2157 """__hash__(FloatKey self) -> std::size_t"""
2158 return _IMP_kernel.FloatKey___hash__(self)
2161 def show(self, *args):
2163 show(FloatKey self, _ostream out)
2166 return _IMP_kernel.FloatKey_show(self, *args)
2169 def add_alias(old_key, new_name):
2170 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2171 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2173 add_alias = staticmethod(add_alias)
2175 def get_number_of_keys():
2176 """get_number_of_keys() -> unsigned int"""
2177 return _IMP_kernel.FloatKey_get_number_of_keys()
2179 get_number_of_keys = staticmethod(get_number_of_keys)
2182 """get_index(FloatKey self) -> unsigned int"""
2183 return _IMP_kernel.FloatKey_get_index(self)
2187 """show_all(_ostream out)"""
2188 return _IMP_kernel.FloatKey_show_all(out)
2190 show_all = staticmethod(show_all)
2192 def get_all_strings():
2193 """get_all_strings() -> IMP::Vector< std::string >"""
2194 return _IMP_kernel.FloatKey_get_all_strings()
2196 get_all_strings = staticmethod(get_all_strings)
2198 def get_number_unique():
2199 """get_number_unique() -> unsigned int"""
2200 return _IMP_kernel.FloatKey_get_number_unique()
2202 get_number_unique = staticmethod(get_number_unique)
2205 """__str__(FloatKey self) -> std::string"""
2206 return _IMP_kernel.FloatKey___str__(self)
2210 """__repr__(FloatKey self) -> std::string"""
2211 return _IMP_kernel.FloatKey___repr__(self)
2213 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2214 __del__ =
lambda self:
None
2215 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2216 FloatKey_swigregister(FloatKey)
2218 def FloatKey_add_key(sc):
2219 """FloatKey_add_key(std::string sc) -> unsigned int"""
2220 return _IMP_kernel.FloatKey_add_key(sc)
2222 def FloatKey_get_key_exists(sc):
2223 """FloatKey_get_key_exists(std::string sc) -> bool"""
2224 return _IMP_kernel.FloatKey_get_key_exists(sc)
2226 def FloatKey_add_alias(old_key, new_name):
2227 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2228 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2230 def FloatKey_get_number_of_keys():
2231 """FloatKey_get_number_of_keys() -> unsigned int"""
2232 return _IMP_kernel.FloatKey_get_number_of_keys()
2234 def FloatKey_show_all(out):
2235 """FloatKey_show_all(_ostream out)"""
2236 return _IMP_kernel.FloatKey_show_all(out)
2238 def FloatKey_get_all_strings():
2239 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2240 return _IMP_kernel.FloatKey_get_all_strings()
2242 def FloatKey_get_number_unique():
2243 """FloatKey_get_number_unique() -> unsigned int"""
2244 return _IMP_kernel.FloatKey_get_number_unique()
2247 """Proxy of C++ IMP::Key<(1)> class"""
2248 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2250 def __init__(self, *args):
2252 __init__(IMP::Key<(1)> self) -> IntKey
2253 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2254 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2255 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2257 this = _IMP_kernel.new_IntKey(*args)
2259 self.this.append(this)
2264 """add_key(std::string sc) -> unsigned int"""
2265 return _IMP_kernel.IntKey_add_key(sc)
2267 add_key = staticmethod(add_key)
2269 def get_key_exists(sc):
2270 """get_key_exists(std::string sc) -> bool"""
2271 return _IMP_kernel.IntKey_get_key_exists(sc)
2273 get_key_exists = staticmethod(get_key_exists)
2275 def get_string(self):
2276 """get_string(IntKey self) -> std::string const"""
2277 return _IMP_kernel.IntKey_get_string(self)
2280 def __cmp__(self, o):
2281 """__cmp__(IntKey self, IntKey o) -> int"""
2282 return _IMP_kernel.IntKey___cmp__(self, o)
2285 def __eq__(self, o):
2286 """__eq__(IntKey self, IntKey o) -> bool"""
2287 return _IMP_kernel.IntKey___eq__(self, o)
2290 def __ne__(self, o):
2291 """__ne__(IntKey self, IntKey o) -> bool"""
2292 return _IMP_kernel.IntKey___ne__(self, o)
2295 def __lt__(self, o):
2296 """__lt__(IntKey self, IntKey o) -> bool"""
2297 return _IMP_kernel.IntKey___lt__(self, o)
2300 def __gt__(self, o):
2301 """__gt__(IntKey self, IntKey o) -> bool"""
2302 return _IMP_kernel.IntKey___gt__(self, o)
2305 def __ge__(self, o):
2306 """__ge__(IntKey self, IntKey o) -> bool"""
2307 return _IMP_kernel.IntKey___ge__(self, o)
2310 def __le__(self, o):
2311 """__le__(IntKey self, IntKey o) -> bool"""
2312 return _IMP_kernel.IntKey___le__(self, o)
2316 """__hash__(IntKey self) -> std::size_t"""
2317 return _IMP_kernel.IntKey___hash__(self)
2320 def show(self, *args):
2322 show(IntKey self, _ostream out)
2325 return _IMP_kernel.IntKey_show(self, *args)
2328 def add_alias(old_key, new_name):
2329 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2330 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2332 add_alias = staticmethod(add_alias)
2334 def get_number_of_keys():
2335 """get_number_of_keys() -> unsigned int"""
2336 return _IMP_kernel.IntKey_get_number_of_keys()
2338 get_number_of_keys = staticmethod(get_number_of_keys)
2341 """get_index(IntKey self) -> unsigned int"""
2342 return _IMP_kernel.IntKey_get_index(self)
2346 """show_all(_ostream out)"""
2347 return _IMP_kernel.IntKey_show_all(out)
2349 show_all = staticmethod(show_all)
2351 def get_all_strings():
2352 """get_all_strings() -> IMP::Vector< std::string >"""
2353 return _IMP_kernel.IntKey_get_all_strings()
2355 get_all_strings = staticmethod(get_all_strings)
2357 def get_number_unique():
2358 """get_number_unique() -> unsigned int"""
2359 return _IMP_kernel.IntKey_get_number_unique()
2361 get_number_unique = staticmethod(get_number_unique)
2364 """__str__(IntKey self) -> std::string"""
2365 return _IMP_kernel.IntKey___str__(self)
2369 """__repr__(IntKey self) -> std::string"""
2370 return _IMP_kernel.IntKey___repr__(self)
2372 __swig_destroy__ = _IMP_kernel.delete_IntKey
2373 __del__ =
lambda self:
None
2374 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2375 IntKey_swigregister(IntKey)
2377 def IntKey_add_key(sc):
2378 """IntKey_add_key(std::string sc) -> unsigned int"""
2379 return _IMP_kernel.IntKey_add_key(sc)
2381 def IntKey_get_key_exists(sc):
2382 """IntKey_get_key_exists(std::string sc) -> bool"""
2383 return _IMP_kernel.IntKey_get_key_exists(sc)
2385 def IntKey_add_alias(old_key, new_name):
2386 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2387 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2389 def IntKey_get_number_of_keys():
2390 """IntKey_get_number_of_keys() -> unsigned int"""
2391 return _IMP_kernel.IntKey_get_number_of_keys()
2393 def IntKey_show_all(out):
2394 """IntKey_show_all(_ostream out)"""
2395 return _IMP_kernel.IntKey_show_all(out)
2397 def IntKey_get_all_strings():
2398 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2399 return _IMP_kernel.IntKey_get_all_strings()
2401 def IntKey_get_number_unique():
2402 """IntKey_get_number_unique() -> unsigned int"""
2403 return _IMP_kernel.IntKey_get_number_unique()
2406 """Proxy of C++ IMP::Key<(2)> class"""
2407 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2409 def __init__(self, *args):
2411 __init__(IMP::Key<(2)> self) -> StringKey
2412 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2413 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2414 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2416 this = _IMP_kernel.new_StringKey(*args)
2418 self.this.append(this)
2423 """add_key(std::string sc) -> unsigned int"""
2424 return _IMP_kernel.StringKey_add_key(sc)
2426 add_key = staticmethod(add_key)
2428 def get_key_exists(sc):
2429 """get_key_exists(std::string sc) -> bool"""
2430 return _IMP_kernel.StringKey_get_key_exists(sc)
2432 get_key_exists = staticmethod(get_key_exists)
2434 def get_string(self):
2435 """get_string(StringKey self) -> std::string const"""
2436 return _IMP_kernel.StringKey_get_string(self)
2439 def __cmp__(self, o):
2440 """__cmp__(StringKey self, StringKey o) -> int"""
2441 return _IMP_kernel.StringKey___cmp__(self, o)
2444 def __eq__(self, o):
2445 """__eq__(StringKey self, StringKey o) -> bool"""
2446 return _IMP_kernel.StringKey___eq__(self, o)
2449 def __ne__(self, o):
2450 """__ne__(StringKey self, StringKey o) -> bool"""
2451 return _IMP_kernel.StringKey___ne__(self, o)
2454 def __lt__(self, o):
2455 """__lt__(StringKey self, StringKey o) -> bool"""
2456 return _IMP_kernel.StringKey___lt__(self, o)
2459 def __gt__(self, o):
2460 """__gt__(StringKey self, StringKey o) -> bool"""
2461 return _IMP_kernel.StringKey___gt__(self, o)
2464 def __ge__(self, o):
2465 """__ge__(StringKey self, StringKey o) -> bool"""
2466 return _IMP_kernel.StringKey___ge__(self, o)
2469 def __le__(self, o):
2470 """__le__(StringKey self, StringKey o) -> bool"""
2471 return _IMP_kernel.StringKey___le__(self, o)
2475 """__hash__(StringKey self) -> std::size_t"""
2476 return _IMP_kernel.StringKey___hash__(self)
2479 def show(self, *args):
2481 show(StringKey self, _ostream out)
2482 show(StringKey self)
2484 return _IMP_kernel.StringKey_show(self, *args)
2487 def add_alias(old_key, new_name):
2488 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2489 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2491 add_alias = staticmethod(add_alias)
2493 def get_number_of_keys():
2494 """get_number_of_keys() -> unsigned int"""
2495 return _IMP_kernel.StringKey_get_number_of_keys()
2497 get_number_of_keys = staticmethod(get_number_of_keys)
2500 """get_index(StringKey self) -> unsigned int"""
2501 return _IMP_kernel.StringKey_get_index(self)
2505 """show_all(_ostream out)"""
2506 return _IMP_kernel.StringKey_show_all(out)
2508 show_all = staticmethod(show_all)
2510 def get_all_strings():
2511 """get_all_strings() -> IMP::Vector< std::string >"""
2512 return _IMP_kernel.StringKey_get_all_strings()
2514 get_all_strings = staticmethod(get_all_strings)
2516 def get_number_unique():
2517 """get_number_unique() -> unsigned int"""
2518 return _IMP_kernel.StringKey_get_number_unique()
2520 get_number_unique = staticmethod(get_number_unique)
2523 """__str__(StringKey self) -> std::string"""
2524 return _IMP_kernel.StringKey___str__(self)
2528 """__repr__(StringKey self) -> std::string"""
2529 return _IMP_kernel.StringKey___repr__(self)
2531 __swig_destroy__ = _IMP_kernel.delete_StringKey
2532 __del__ =
lambda self:
None
2533 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2534 StringKey_swigregister(StringKey)
2536 def StringKey_add_key(sc):
2537 """StringKey_add_key(std::string sc) -> unsigned int"""
2538 return _IMP_kernel.StringKey_add_key(sc)
2540 def StringKey_get_key_exists(sc):
2541 """StringKey_get_key_exists(std::string sc) -> bool"""
2542 return _IMP_kernel.StringKey_get_key_exists(sc)
2544 def StringKey_add_alias(old_key, new_name):
2545 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2546 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2548 def StringKey_get_number_of_keys():
2549 """StringKey_get_number_of_keys() -> unsigned int"""
2550 return _IMP_kernel.StringKey_get_number_of_keys()
2552 def StringKey_show_all(out):
2553 """StringKey_show_all(_ostream out)"""
2554 return _IMP_kernel.StringKey_show_all(out)
2556 def StringKey_get_all_strings():
2557 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2558 return _IMP_kernel.StringKey_get_all_strings()
2560 def StringKey_get_number_unique():
2561 """StringKey_get_number_unique() -> unsigned int"""
2562 return _IMP_kernel.StringKey_get_number_unique()
2565 """Proxy of C++ IMP::Key<(3)> class"""
2566 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2568 def __init__(self, *args):
2570 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2571 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2572 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2573 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2575 this = _IMP_kernel.new_ParticleIndexKey(*args)
2577 self.this.append(this)
2582 """add_key(std::string sc) -> unsigned int"""
2583 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2585 add_key = staticmethod(add_key)
2587 def get_key_exists(sc):
2588 """get_key_exists(std::string sc) -> bool"""
2589 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2591 get_key_exists = staticmethod(get_key_exists)
2593 def get_string(self):
2594 """get_string(ParticleIndexKey self) -> std::string const"""
2595 return _IMP_kernel.ParticleIndexKey_get_string(self)
2598 def __cmp__(self, o):
2599 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2600 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2603 def __eq__(self, o):
2604 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2605 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2608 def __ne__(self, o):
2609 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2610 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2613 def __lt__(self, o):
2614 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2615 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2618 def __gt__(self, o):
2619 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2620 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2623 def __ge__(self, o):
2624 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2625 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2628 def __le__(self, o):
2629 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2630 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2634 """__hash__(ParticleIndexKey self) -> std::size_t"""
2635 return _IMP_kernel.ParticleIndexKey___hash__(self)
2638 def show(self, *args):
2640 show(ParticleIndexKey self, _ostream out)
2641 show(ParticleIndexKey self)
2643 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2646 def add_alias(old_key, new_name):
2647 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2648 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2650 add_alias = staticmethod(add_alias)
2652 def get_number_of_keys():
2653 """get_number_of_keys() -> unsigned int"""
2654 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2656 get_number_of_keys = staticmethod(get_number_of_keys)
2659 """get_index(ParticleIndexKey self) -> unsigned int"""
2660 return _IMP_kernel.ParticleIndexKey_get_index(self)
2664 """show_all(_ostream out)"""
2665 return _IMP_kernel.ParticleIndexKey_show_all(out)
2667 show_all = staticmethod(show_all)
2669 def get_all_strings():
2670 """get_all_strings() -> IMP::Vector< std::string >"""
2671 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2673 get_all_strings = staticmethod(get_all_strings)
2675 def get_number_unique():
2676 """get_number_unique() -> unsigned int"""
2677 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2679 get_number_unique = staticmethod(get_number_unique)
2682 """__str__(ParticleIndexKey self) -> std::string"""
2683 return _IMP_kernel.ParticleIndexKey___str__(self)
2687 """__repr__(ParticleIndexKey self) -> std::string"""
2688 return _IMP_kernel.ParticleIndexKey___repr__(self)
2690 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2691 __del__ =
lambda self:
None
2692 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2693 ParticleIndexKey_swigregister(ParticleIndexKey)
2695 def ParticleIndexKey_add_key(sc):
2696 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2697 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2699 def ParticleIndexKey_get_key_exists(sc):
2700 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2701 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2703 def ParticleIndexKey_add_alias(old_key, new_name):
2704 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2705 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2707 def ParticleIndexKey_get_number_of_keys():
2708 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2709 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2711 def ParticleIndexKey_show_all(out):
2712 """ParticleIndexKey_show_all(_ostream out)"""
2713 return _IMP_kernel.ParticleIndexKey_show_all(out)
2715 def ParticleIndexKey_get_all_strings():
2716 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2717 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2719 def ParticleIndexKey_get_number_unique():
2720 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2721 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2724 """Proxy of C++ IMP::Key<(4)> class"""
2725 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2727 def __init__(self, *args):
2729 __init__(IMP::Key<(4)> self) -> ObjectKey
2730 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2731 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2732 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2734 this = _IMP_kernel.new_ObjectKey(*args)
2736 self.this.append(this)
2741 """add_key(std::string sc) -> unsigned int"""
2742 return _IMP_kernel.ObjectKey_add_key(sc)
2744 add_key = staticmethod(add_key)
2746 def get_key_exists(sc):
2747 """get_key_exists(std::string sc) -> bool"""
2748 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2750 get_key_exists = staticmethod(get_key_exists)
2752 def get_string(self):
2753 """get_string(ObjectKey self) -> std::string const"""
2754 return _IMP_kernel.ObjectKey_get_string(self)
2757 def __cmp__(self, o):
2758 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2759 return _IMP_kernel.ObjectKey___cmp__(self, o)
2762 def __eq__(self, o):
2763 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2764 return _IMP_kernel.ObjectKey___eq__(self, o)
2767 def __ne__(self, o):
2768 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2769 return _IMP_kernel.ObjectKey___ne__(self, o)
2772 def __lt__(self, o):
2773 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2774 return _IMP_kernel.ObjectKey___lt__(self, o)
2777 def __gt__(self, o):
2778 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2779 return _IMP_kernel.ObjectKey___gt__(self, o)
2782 def __ge__(self, o):
2783 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2784 return _IMP_kernel.ObjectKey___ge__(self, o)
2787 def __le__(self, o):
2788 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2789 return _IMP_kernel.ObjectKey___le__(self, o)
2793 """__hash__(ObjectKey self) -> std::size_t"""
2794 return _IMP_kernel.ObjectKey___hash__(self)
2797 def show(self, *args):
2799 show(ObjectKey self, _ostream out)
2800 show(ObjectKey self)
2802 return _IMP_kernel.ObjectKey_show(self, *args)
2805 def add_alias(old_key, new_name):
2806 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2807 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2809 add_alias = staticmethod(add_alias)
2811 def get_number_of_keys():
2812 """get_number_of_keys() -> unsigned int"""
2813 return _IMP_kernel.ObjectKey_get_number_of_keys()
2815 get_number_of_keys = staticmethod(get_number_of_keys)
2818 """get_index(ObjectKey self) -> unsigned int"""
2819 return _IMP_kernel.ObjectKey_get_index(self)
2823 """show_all(_ostream out)"""
2824 return _IMP_kernel.ObjectKey_show_all(out)
2826 show_all = staticmethod(show_all)
2828 def get_all_strings():
2829 """get_all_strings() -> IMP::Vector< std::string >"""
2830 return _IMP_kernel.ObjectKey_get_all_strings()
2832 get_all_strings = staticmethod(get_all_strings)
2834 def get_number_unique():
2835 """get_number_unique() -> unsigned int"""
2836 return _IMP_kernel.ObjectKey_get_number_unique()
2838 get_number_unique = staticmethod(get_number_unique)
2841 """__str__(ObjectKey self) -> std::string"""
2842 return _IMP_kernel.ObjectKey___str__(self)
2846 """__repr__(ObjectKey self) -> std::string"""
2847 return _IMP_kernel.ObjectKey___repr__(self)
2849 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2850 __del__ =
lambda self:
None
2851 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2852 ObjectKey_swigregister(ObjectKey)
2854 def ObjectKey_add_key(sc):
2855 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2856 return _IMP_kernel.ObjectKey_add_key(sc)
2858 def ObjectKey_get_key_exists(sc):
2859 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2860 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2862 def ObjectKey_add_alias(old_key, new_name):
2863 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2864 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2866 def ObjectKey_get_number_of_keys():
2867 """ObjectKey_get_number_of_keys() -> unsigned int"""
2868 return _IMP_kernel.ObjectKey_get_number_of_keys()
2870 def ObjectKey_show_all(out):
2871 """ObjectKey_show_all(_ostream out)"""
2872 return _IMP_kernel.ObjectKey_show_all(out)
2874 def ObjectKey_get_all_strings():
2875 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2876 return _IMP_kernel.ObjectKey_get_all_strings()
2878 def ObjectKey_get_number_unique():
2879 """ObjectKey_get_number_unique() -> unsigned int"""
2880 return _IMP_kernel.ObjectKey_get_number_unique()
2883 """Proxy of C++ IMP::Key<(5)> class"""
2884 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2886 def __init__(self, *args):
2888 __init__(IMP::Key<(5)> self) -> IntsKey
2889 __init__(IMP::Key<(5)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2890 __init__(IMP::Key<(5)> self, std::string const & c) -> IntsKey
2891 __init__(IMP::Key<(5)> self, unsigned int i) -> IntsKey
2893 this = _IMP_kernel.new_IntsKey(*args)
2895 self.this.append(this)
2900 """add_key(std::string sc) -> unsigned int"""
2901 return _IMP_kernel.IntsKey_add_key(sc)
2903 add_key = staticmethod(add_key)
2905 def get_key_exists(sc):
2906 """get_key_exists(std::string sc) -> bool"""
2907 return _IMP_kernel.IntsKey_get_key_exists(sc)
2909 get_key_exists = staticmethod(get_key_exists)
2911 def get_string(self):
2912 """get_string(IntsKey self) -> std::string const"""
2913 return _IMP_kernel.IntsKey_get_string(self)
2916 def __cmp__(self, o):
2917 """__cmp__(IntsKey self, IntsKey o) -> int"""
2918 return _IMP_kernel.IntsKey___cmp__(self, o)
2921 def __eq__(self, o):
2922 """__eq__(IntsKey self, IntsKey o) -> bool"""
2923 return _IMP_kernel.IntsKey___eq__(self, o)
2926 def __ne__(self, o):
2927 """__ne__(IntsKey self, IntsKey o) -> bool"""
2928 return _IMP_kernel.IntsKey___ne__(self, o)
2931 def __lt__(self, o):
2932 """__lt__(IntsKey self, IntsKey o) -> bool"""
2933 return _IMP_kernel.IntsKey___lt__(self, o)
2936 def __gt__(self, o):
2937 """__gt__(IntsKey self, IntsKey o) -> bool"""
2938 return _IMP_kernel.IntsKey___gt__(self, o)
2941 def __ge__(self, o):
2942 """__ge__(IntsKey self, IntsKey o) -> bool"""
2943 return _IMP_kernel.IntsKey___ge__(self, o)
2946 def __le__(self, o):
2947 """__le__(IntsKey self, IntsKey o) -> bool"""
2948 return _IMP_kernel.IntsKey___le__(self, o)
2952 """__hash__(IntsKey self) -> std::size_t"""
2953 return _IMP_kernel.IntsKey___hash__(self)
2956 def show(self, *args):
2958 show(IntsKey self, _ostream out)
2961 return _IMP_kernel.IntsKey_show(self, *args)
2964 def add_alias(old_key, new_name):
2965 """add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2966 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2968 add_alias = staticmethod(add_alias)
2970 def get_number_of_keys():
2971 """get_number_of_keys() -> unsigned int"""
2972 return _IMP_kernel.IntsKey_get_number_of_keys()
2974 get_number_of_keys = staticmethod(get_number_of_keys)
2977 """get_index(IntsKey self) -> unsigned int"""
2978 return _IMP_kernel.IntsKey_get_index(self)
2982 """show_all(_ostream out)"""
2983 return _IMP_kernel.IntsKey_show_all(out)
2985 show_all = staticmethod(show_all)
2987 def get_all_strings():
2988 """get_all_strings() -> IMP::Vector< std::string >"""
2989 return _IMP_kernel.IntsKey_get_all_strings()
2991 get_all_strings = staticmethod(get_all_strings)
2993 def get_number_unique():
2994 """get_number_unique() -> unsigned int"""
2995 return _IMP_kernel.IntsKey_get_number_unique()
2997 get_number_unique = staticmethod(get_number_unique)
3000 """__str__(IntsKey self) -> std::string"""
3001 return _IMP_kernel.IntsKey___str__(self)
3005 """__repr__(IntsKey self) -> std::string"""
3006 return _IMP_kernel.IntsKey___repr__(self)
3008 __swig_destroy__ = _IMP_kernel.delete_IntsKey
3009 __del__ =
lambda self:
None
3010 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
3011 IntsKey_swigregister(IntsKey)
3013 def IntsKey_add_key(sc):
3014 """IntsKey_add_key(std::string sc) -> unsigned int"""
3015 return _IMP_kernel.IntsKey_add_key(sc)
3017 def IntsKey_get_key_exists(sc):
3018 """IntsKey_get_key_exists(std::string sc) -> bool"""
3019 return _IMP_kernel.IntsKey_get_key_exists(sc)
3021 def IntsKey_add_alias(old_key, new_name):
3022 """IntsKey_add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
3023 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
3025 def IntsKey_get_number_of_keys():
3026 """IntsKey_get_number_of_keys() -> unsigned int"""
3027 return _IMP_kernel.IntsKey_get_number_of_keys()
3029 def IntsKey_show_all(out):
3030 """IntsKey_show_all(_ostream out)"""
3031 return _IMP_kernel.IntsKey_show_all(out)
3033 def IntsKey_get_all_strings():
3034 """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
3035 return _IMP_kernel.IntsKey_get_all_strings()
3037 def IntsKey_get_number_unique():
3038 """IntsKey_get_number_unique() -> unsigned int"""
3039 return _IMP_kernel.IntsKey_get_number_unique()
3042 """Proxy of C++ IMP::Key<(6)> class"""
3043 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3045 def __init__(self, *args):
3047 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
3048 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
3049 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
3050 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
3052 this = _IMP_kernel.new_ParticleIndexesKey(*args)
3054 self.this.append(this)
3059 """add_key(std::string sc) -> unsigned int"""
3060 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3062 add_key = staticmethod(add_key)
3064 def get_key_exists(sc):
3065 """get_key_exists(std::string sc) -> bool"""
3066 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3068 get_key_exists = staticmethod(get_key_exists)
3070 def get_string(self):
3071 """get_string(ParticleIndexesKey self) -> std::string const"""
3072 return _IMP_kernel.ParticleIndexesKey_get_string(self)
3075 def __cmp__(self, o):
3076 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3077 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3080 def __eq__(self, o):
3081 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3082 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3085 def __ne__(self, o):
3086 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3087 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3090 def __lt__(self, o):
3091 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3092 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3095 def __gt__(self, o):
3096 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3097 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3100 def __ge__(self, o):
3101 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3102 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3105 def __le__(self, o):
3106 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3107 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3111 """__hash__(ParticleIndexesKey self) -> std::size_t"""
3112 return _IMP_kernel.ParticleIndexesKey___hash__(self)
3115 def show(self, *args):
3117 show(ParticleIndexesKey self, _ostream out)
3118 show(ParticleIndexesKey self)
3120 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3123 def add_alias(old_key, new_name):
3124 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3125 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3127 add_alias = staticmethod(add_alias)
3129 def get_number_of_keys():
3130 """get_number_of_keys() -> unsigned int"""
3131 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3133 get_number_of_keys = staticmethod(get_number_of_keys)
3136 """get_index(ParticleIndexesKey self) -> unsigned int"""
3137 return _IMP_kernel.ParticleIndexesKey_get_index(self)
3141 """show_all(_ostream out)"""
3142 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3144 show_all = staticmethod(show_all)
3146 def get_all_strings():
3147 """get_all_strings() -> IMP::Vector< std::string >"""
3148 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3150 get_all_strings = staticmethod(get_all_strings)
3152 def get_number_unique():
3153 """get_number_unique() -> unsigned int"""
3154 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3156 get_number_unique = staticmethod(get_number_unique)
3159 """__str__(ParticleIndexesKey self) -> std::string"""
3160 return _IMP_kernel.ParticleIndexesKey___str__(self)
3164 """__repr__(ParticleIndexesKey self) -> std::string"""
3165 return _IMP_kernel.ParticleIndexesKey___repr__(self)
3167 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3168 __del__ =
lambda self:
None
3169 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3170 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3172 def ParticleIndexesKey_add_key(sc):
3173 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3174 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3176 def ParticleIndexesKey_get_key_exists(sc):
3177 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
3178 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3180 def ParticleIndexesKey_add_alias(old_key, new_name):
3181 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3182 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3184 def ParticleIndexesKey_get_number_of_keys():
3185 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3186 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3188 def ParticleIndexesKey_show_all(out):
3189 """ParticleIndexesKey_show_all(_ostream out)"""
3190 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3192 def ParticleIndexesKey_get_all_strings():
3193 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3194 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3196 def ParticleIndexesKey_get_number_unique():
3197 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3198 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3201 """Proxy of C++ IMP::Key<(8)> class"""
3202 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3204 def __init__(self, *args):
3206 __init__(IMP::Key<(8)> self) -> ModelKey
3207 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
3208 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
3209 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
3211 this = _IMP_kernel.new_ModelKey(*args)
3213 self.this.append(this)
3218 """add_key(std::string sc) -> unsigned int"""
3219 return _IMP_kernel.ModelKey_add_key(sc)
3221 add_key = staticmethod(add_key)
3223 def get_key_exists(sc):
3224 """get_key_exists(std::string sc) -> bool"""
3225 return _IMP_kernel.ModelKey_get_key_exists(sc)
3227 get_key_exists = staticmethod(get_key_exists)
3229 def get_string(self):
3230 """get_string(ModelKey self) -> std::string const"""
3231 return _IMP_kernel.ModelKey_get_string(self)
3234 def __cmp__(self, o):
3235 """__cmp__(ModelKey self, ModelKey o) -> int"""
3236 return _IMP_kernel.ModelKey___cmp__(self, o)
3239 def __eq__(self, o):
3240 """__eq__(ModelKey self, ModelKey o) -> bool"""
3241 return _IMP_kernel.ModelKey___eq__(self, o)
3244 def __ne__(self, o):
3245 """__ne__(ModelKey self, ModelKey o) -> bool"""
3246 return _IMP_kernel.ModelKey___ne__(self, o)
3249 def __lt__(self, o):
3250 """__lt__(ModelKey self, ModelKey o) -> bool"""
3251 return _IMP_kernel.ModelKey___lt__(self, o)
3254 def __gt__(self, o):
3255 """__gt__(ModelKey self, ModelKey o) -> bool"""
3256 return _IMP_kernel.ModelKey___gt__(self, o)
3259 def __ge__(self, o):
3260 """__ge__(ModelKey self, ModelKey o) -> bool"""
3261 return _IMP_kernel.ModelKey___ge__(self, o)
3264 def __le__(self, o):
3265 """__le__(ModelKey self, ModelKey o) -> bool"""
3266 return _IMP_kernel.ModelKey___le__(self, o)
3270 """__hash__(ModelKey self) -> std::size_t"""
3271 return _IMP_kernel.ModelKey___hash__(self)
3274 def show(self, *args):
3276 show(ModelKey self, _ostream out)
3279 return _IMP_kernel.ModelKey_show(self, *args)
3282 def add_alias(old_key, new_name):
3283 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3284 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3286 add_alias = staticmethod(add_alias)
3288 def get_number_of_keys():
3289 """get_number_of_keys() -> unsigned int"""
3290 return _IMP_kernel.ModelKey_get_number_of_keys()
3292 get_number_of_keys = staticmethod(get_number_of_keys)
3295 """get_index(ModelKey self) -> unsigned int"""
3296 return _IMP_kernel.ModelKey_get_index(self)
3300 """show_all(_ostream out)"""
3301 return _IMP_kernel.ModelKey_show_all(out)
3303 show_all = staticmethod(show_all)
3305 def get_all_strings():
3306 """get_all_strings() -> IMP::Vector< std::string >"""
3307 return _IMP_kernel.ModelKey_get_all_strings()
3309 get_all_strings = staticmethod(get_all_strings)
3311 def get_number_unique():
3312 """get_number_unique() -> unsigned int"""
3313 return _IMP_kernel.ModelKey_get_number_unique()
3315 get_number_unique = staticmethod(get_number_unique)
3318 """__str__(ModelKey self) -> std::string"""
3319 return _IMP_kernel.ModelKey___str__(self)
3323 """__repr__(ModelKey self) -> std::string"""
3324 return _IMP_kernel.ModelKey___repr__(self)
3326 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3327 __del__ =
lambda self:
None
3328 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3329 ModelKey_swigregister(ModelKey)
3331 def ModelKey_add_key(sc):
3332 """ModelKey_add_key(std::string sc) -> unsigned int"""
3333 return _IMP_kernel.ModelKey_add_key(sc)
3335 def ModelKey_get_key_exists(sc):
3336 """ModelKey_get_key_exists(std::string sc) -> bool"""
3337 return _IMP_kernel.ModelKey_get_key_exists(sc)
3339 def ModelKey_add_alias(old_key, new_name):
3340 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3341 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3343 def ModelKey_get_number_of_keys():
3344 """ModelKey_get_number_of_keys() -> unsigned int"""
3345 return _IMP_kernel.ModelKey_get_number_of_keys()
3347 def ModelKey_show_all(out):
3348 """ModelKey_show_all(_ostream out)"""
3349 return _IMP_kernel.ModelKey_show_all(out)
3351 def ModelKey_get_all_strings():
3352 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3353 return _IMP_kernel.ModelKey_get_all_strings()
3355 def ModelKey_get_number_unique():
3356 """ModelKey_get_number_unique() -> unsigned int"""
3357 return _IMP_kernel.ModelKey_get_number_unique()
3360 """Proxy of C++ IMP::Key<(11)> class"""
3361 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3363 def __init__(self, *args):
3365 __init__(IMP::Key<(11)> self) -> TriggerKey
3366 __init__(IMP::Key<(11)> self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
3367 __init__(IMP::Key<(11)> self, std::string const & c) -> TriggerKey
3368 __init__(IMP::Key<(11)> self, unsigned int i) -> TriggerKey
3370 this = _IMP_kernel.new_TriggerKey(*args)
3372 self.this.append(this)
3377 """add_key(std::string sc) -> unsigned int"""
3378 return _IMP_kernel.TriggerKey_add_key(sc)
3380 add_key = staticmethod(add_key)
3382 def get_key_exists(sc):
3383 """get_key_exists(std::string sc) -> bool"""
3384 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3386 get_key_exists = staticmethod(get_key_exists)
3388 def get_string(self):
3389 """get_string(TriggerKey self) -> std::string const"""
3390 return _IMP_kernel.TriggerKey_get_string(self)
3393 def __cmp__(self, o):
3394 """__cmp__(TriggerKey self, TriggerKey o) -> int"""
3395 return _IMP_kernel.TriggerKey___cmp__(self, o)
3398 def __eq__(self, o):
3399 """__eq__(TriggerKey self, TriggerKey o) -> bool"""
3400 return _IMP_kernel.TriggerKey___eq__(self, o)
3403 def __ne__(self, o):
3404 """__ne__(TriggerKey self, TriggerKey o) -> bool"""
3405 return _IMP_kernel.TriggerKey___ne__(self, o)
3408 def __lt__(self, o):
3409 """__lt__(TriggerKey self, TriggerKey o) -> bool"""
3410 return _IMP_kernel.TriggerKey___lt__(self, o)
3413 def __gt__(self, o):
3414 """__gt__(TriggerKey self, TriggerKey o) -> bool"""
3415 return _IMP_kernel.TriggerKey___gt__(self, o)
3418 def __ge__(self, o):
3419 """__ge__(TriggerKey self, TriggerKey o) -> bool"""
3420 return _IMP_kernel.TriggerKey___ge__(self, o)
3423 def __le__(self, o):
3424 """__le__(TriggerKey self, TriggerKey o) -> bool"""
3425 return _IMP_kernel.TriggerKey___le__(self, o)
3429 """__hash__(TriggerKey self) -> std::size_t"""
3430 return _IMP_kernel.TriggerKey___hash__(self)
3433 def show(self, *args):
3435 show(TriggerKey self, _ostream out)
3436 show(TriggerKey self)
3438 return _IMP_kernel.TriggerKey_show(self, *args)
3441 def add_alias(old_key, new_name):
3442 """add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3443 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3445 add_alias = staticmethod(add_alias)
3447 def get_number_of_keys():
3448 """get_number_of_keys() -> unsigned int"""
3449 return _IMP_kernel.TriggerKey_get_number_of_keys()
3451 get_number_of_keys = staticmethod(get_number_of_keys)
3454 """get_index(TriggerKey self) -> unsigned int"""
3455 return _IMP_kernel.TriggerKey_get_index(self)
3459 """show_all(_ostream out)"""
3460 return _IMP_kernel.TriggerKey_show_all(out)
3462 show_all = staticmethod(show_all)
3464 def get_all_strings():
3465 """get_all_strings() -> IMP::Vector< std::string >"""
3466 return _IMP_kernel.TriggerKey_get_all_strings()
3468 get_all_strings = staticmethod(get_all_strings)
3470 def get_number_unique():
3471 """get_number_unique() -> unsigned int"""
3472 return _IMP_kernel.TriggerKey_get_number_unique()
3474 get_number_unique = staticmethod(get_number_unique)
3477 """__str__(TriggerKey self) -> std::string"""
3478 return _IMP_kernel.TriggerKey___str__(self)
3482 """__repr__(TriggerKey self) -> std::string"""
3483 return _IMP_kernel.TriggerKey___repr__(self)
3485 __swig_destroy__ = _IMP_kernel.delete_TriggerKey
3486 __del__ =
lambda self:
None
3487 TriggerKey_swigregister = _IMP_kernel.TriggerKey_swigregister
3488 TriggerKey_swigregister(TriggerKey)
3490 def TriggerKey_add_key(sc):
3491 """TriggerKey_add_key(std::string sc) -> unsigned int"""
3492 return _IMP_kernel.TriggerKey_add_key(sc)
3494 def TriggerKey_get_key_exists(sc):
3495 """TriggerKey_get_key_exists(std::string sc) -> bool"""
3496 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3498 def TriggerKey_add_alias(old_key, new_name):
3499 """TriggerKey_add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3500 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3502 def TriggerKey_get_number_of_keys():
3503 """TriggerKey_get_number_of_keys() -> unsigned int"""
3504 return _IMP_kernel.TriggerKey_get_number_of_keys()
3506 def TriggerKey_show_all(out):
3507 """TriggerKey_show_all(_ostream out)"""
3508 return _IMP_kernel.TriggerKey_show_all(out)
3510 def TriggerKey_get_all_strings():
3511 """TriggerKey_get_all_strings() -> IMP::Vector< std::string >"""
3512 return _IMP_kernel.TriggerKey_get_all_strings()
3514 def TriggerKey_get_number_unique():
3515 """TriggerKey_get_number_unique() -> unsigned int"""
3516 return _IMP_kernel.TriggerKey_get_number_unique()
3519 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3520 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3522 def __init__(self, *args):
3524 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3525 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3527 this = _IMP_kernel.new_ParticleIndex(*args)
3529 self.this.append(this)
3534 """get_index(ParticleIndex self) -> int"""
3535 return _IMP_kernel.ParticleIndex_get_index(self)
3538 def __cmp__(self, o):
3539 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3540 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3543 def __eq__(self, o):
3544 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3545 return _IMP_kernel.ParticleIndex___eq__(self, o)
3548 def __ne__(self, o):
3549 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3550 return _IMP_kernel.ParticleIndex___ne__(self, o)
3553 def __lt__(self, o):
3554 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3555 return _IMP_kernel.ParticleIndex___lt__(self, o)
3558 def __gt__(self, o):
3559 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3560 return _IMP_kernel.ParticleIndex___gt__(self, o)
3563 def __ge__(self, o):
3564 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3565 return _IMP_kernel.ParticleIndex___ge__(self, o)
3568 def __le__(self, o):
3569 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3570 return _IMP_kernel.ParticleIndex___le__(self, o)
3573 def show(self, *args):
3575 show(ParticleIndex self, _ostream out)
3576 show(ParticleIndex self)
3578 return _IMP_kernel.ParticleIndex_show(self, *args)
3582 """__hash__(ParticleIndex self) -> std::size_t"""
3583 return _IMP_kernel.ParticleIndex___hash__(self)
3587 """__str__(ParticleIndex self) -> std::string"""
3588 return _IMP_kernel.ParticleIndex___str__(self)
3592 """__repr__(ParticleIndex self) -> std::string"""
3593 return _IMP_kernel.ParticleIndex___repr__(self)
3595 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3596 __del__ =
lambda self:
None
3597 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3598 ParticleIndex_swigregister(ParticleIndex)
3601 """Proxy of C++ IMP::Key<(10)> class"""
3602 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3604 def __init__(self, *args):
3606 __init__(IMP::Key<(10)> self) -> FloatsKey
3607 __init__(IMP::Key<(10)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
3608 __init__(IMP::Key<(10)> self, std::string const & c) -> FloatsKey
3609 __init__(IMP::Key<(10)> self, unsigned int i) -> FloatsKey
3611 this = _IMP_kernel.new_FloatsKey(*args)
3613 self.this.append(this)
3618 """add_key(std::string sc) -> unsigned int"""
3619 return _IMP_kernel.FloatsKey_add_key(sc)
3621 add_key = staticmethod(add_key)
3623 def get_key_exists(sc):
3624 """get_key_exists(std::string sc) -> bool"""
3625 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3627 get_key_exists = staticmethod(get_key_exists)
3629 def get_string(self):
3630 """get_string(FloatsKey self) -> std::string const"""
3631 return _IMP_kernel.FloatsKey_get_string(self)
3634 def __cmp__(self, o):
3635 """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3636 return _IMP_kernel.FloatsKey___cmp__(self, o)
3639 def __eq__(self, o):
3640 """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3641 return _IMP_kernel.FloatsKey___eq__(self, o)
3644 def __ne__(self, o):
3645 """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3646 return _IMP_kernel.FloatsKey___ne__(self, o)
3649 def __lt__(self, o):
3650 """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3651 return _IMP_kernel.FloatsKey___lt__(self, o)
3654 def __gt__(self, o):
3655 """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3656 return _IMP_kernel.FloatsKey___gt__(self, o)
3659 def __ge__(self, o):
3660 """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3661 return _IMP_kernel.FloatsKey___ge__(self, o)
3664 def __le__(self, o):
3665 """__le__(FloatsKey self, FloatsKey o) -> bool"""
3666 return _IMP_kernel.FloatsKey___le__(self, o)
3670 """__hash__(FloatsKey self) -> std::size_t"""
3671 return _IMP_kernel.FloatsKey___hash__(self)
3674 def show(self, *args):
3676 show(FloatsKey self, _ostream out)
3677 show(FloatsKey self)
3679 return _IMP_kernel.FloatsKey_show(self, *args)
3682 def add_alias(old_key, new_name):
3683 """add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3684 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3686 add_alias = staticmethod(add_alias)
3688 def get_number_of_keys():
3689 """get_number_of_keys() -> unsigned int"""
3690 return _IMP_kernel.FloatsKey_get_number_of_keys()
3692 get_number_of_keys = staticmethod(get_number_of_keys)
3695 """get_index(FloatsKey self) -> unsigned int"""
3696 return _IMP_kernel.FloatsKey_get_index(self)
3700 """show_all(_ostream out)"""
3701 return _IMP_kernel.FloatsKey_show_all(out)
3703 show_all = staticmethod(show_all)
3705 def get_all_strings():
3706 """get_all_strings() -> IMP::Vector< std::string >"""
3707 return _IMP_kernel.FloatsKey_get_all_strings()
3709 get_all_strings = staticmethod(get_all_strings)
3711 def get_number_unique():
3712 """get_number_unique() -> unsigned int"""
3713 return _IMP_kernel.FloatsKey_get_number_unique()
3715 get_number_unique = staticmethod(get_number_unique)
3718 """__str__(FloatsKey self) -> std::string"""
3719 return _IMP_kernel.FloatsKey___str__(self)
3723 """__repr__(FloatsKey self) -> std::string"""
3724 return _IMP_kernel.FloatsKey___repr__(self)
3726 __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3727 __del__ =
lambda self:
None
3728 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3729 FloatsKey_swigregister(FloatsKey)
3731 def FloatsKey_add_key(sc):
3732 """FloatsKey_add_key(std::string sc) -> unsigned int"""
3733 return _IMP_kernel.FloatsKey_add_key(sc)
3735 def FloatsKey_get_key_exists(sc):
3736 """FloatsKey_get_key_exists(std::string sc) -> bool"""
3737 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3739 def FloatsKey_add_alias(old_key, new_name):
3740 """FloatsKey_add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3741 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3743 def FloatsKey_get_number_of_keys():
3744 """FloatsKey_get_number_of_keys() -> unsigned int"""
3745 return _IMP_kernel.FloatsKey_get_number_of_keys()
3747 def FloatsKey_show_all(out):
3748 """FloatsKey_show_all(_ostream out)"""
3749 return _IMP_kernel.FloatsKey_show_all(out)
3751 def FloatsKey_get_all_strings():
3752 """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3753 return _IMP_kernel.FloatsKey_get_all_strings()
3755 def FloatsKey_get_number_unique():
3756 """FloatsKey_get_number_unique() -> unsigned int"""
3757 return _IMP_kernel.FloatsKey_get_number_unique()
3767 class FloatIndex(_Value):
3768 """Proxy of C++ IMP::FloatIndex class"""
3769 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3771 def __init__(self, *args):
3773 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3774 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3775 __init__(IMP::FloatIndex self) -> FloatIndex
3777 this = _IMP_kernel.new_FloatIndex(*args)
3779 self.this.append(this)
3784 """__hash__(FloatIndex self) -> std::size_t"""
3785 return _IMP_kernel.FloatIndex___hash__(self)
3788 def show(self, *args):
3790 show(FloatIndex self, _ostream out)
3791 show(FloatIndex self)
3793 return _IMP_kernel.FloatIndex_show(self, *args)
3796 def __cmp__(self, o):
3797 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3798 return _IMP_kernel.FloatIndex___cmp__(self, o)
3801 def __eq__(self, o):
3802 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3803 return _IMP_kernel.FloatIndex___eq__(self, o)
3806 def __ne__(self, o):
3807 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3808 return _IMP_kernel.FloatIndex___ne__(self, o)
3811 def __lt__(self, o):
3812 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3813 return _IMP_kernel.FloatIndex___lt__(self, o)
3816 def __gt__(self, o):
3817 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3818 return _IMP_kernel.FloatIndex___gt__(self, o)
3821 def __ge__(self, o):
3822 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3823 return _IMP_kernel.FloatIndex___ge__(self, o)
3826 def __le__(self, o):
3827 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3828 return _IMP_kernel.FloatIndex___le__(self, o)
3831 def get_particle(self):
3832 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3833 return _IMP_kernel.FloatIndex_get_particle(self)
3836 def set_particle(self, v):
3837 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3838 return _IMP_kernel.FloatIndex_set_particle(self, v)
3842 """get_key(FloatIndex self) -> FloatKey const &"""
3843 return _IMP_kernel.FloatIndex_get_key(self)
3846 def set_key(self, v):
3847 """set_key(FloatIndex self, FloatKey const & v)"""
3848 return _IMP_kernel.FloatIndex_set_key(self, v)
3852 """__str__(FloatIndex self) -> std::string"""
3853 return _IMP_kernel.FloatIndex___str__(self)
3857 """__repr__(FloatIndex self) -> std::string"""
3858 return _IMP_kernel.FloatIndex___repr__(self)
3860 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3861 __del__ =
lambda self:
None
3862 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3863 FloatIndex_swigregister(FloatIndex)
3865 class _ParticleIndexTag(object):
3866 """Proxy of C++ IMP::ParticleIndexTag class"""
3867 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3868 __repr__ = _swig_repr
3871 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3872 this = _IMP_kernel.new__ParticleIndexTag()
3874 self.this.append(this)
3877 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3878 __del__ =
lambda self:
None
3879 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3880 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3882 class ModelObject(Object):
3883 """Proxy of C++ IMP::ModelObject class"""
3884 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3886 def __init__(self, m, name):
3887 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3888 if self.__class__ == ModelObject:
3892 this = _IMP_kernel.new_ModelObject(_self, m, name)
3894 self.this.append(this)
3898 if self.__class__ != ModelObject:
3899 _director_objects.register(self)
3903 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3904 __del__ =
lambda self:
None
3906 def get_model(self):
3907 """get_model(ModelObject self) -> Model"""
3908 return _IMP_kernel.ModelObject_get_model(self)
3911 def get_inputs(self):
3912 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3913 return _IMP_kernel.ModelObject_get_inputs(self)
3916 def get_outputs(self):
3917 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3918 return _IMP_kernel.ModelObject_get_outputs(self)
3921 def get_interactions(self):
3922 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3923 return _IMP_kernel.ModelObject_get_interactions(self)
3926 def get_has_dependencies(self):
3927 """get_has_dependencies(ModelObject self) -> bool"""
3928 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3931 def set_has_dependencies(self, tf):
3932 """set_has_dependencies(ModelObject self, bool tf)"""
3933 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3936 def set_has_required_score_states(self, tf):
3937 """set_has_required_score_states(ModelObject self, bool tf)"""
3938 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3941 def get_has_required_score_states(self):
3942 """get_has_required_score_states(ModelObject self) -> bool"""
3943 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3946 def get_required_score_states(self):
3947 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3948 return _IMP_kernel.ModelObject_get_required_score_states(self)
3951 def handle_set_has_required_score_states(self, arg0):
3952 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3953 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3956 def do_get_inputs(self):
3957 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3958 return _IMP_kernel.ModelObject_do_get_inputs(self)
3961 def do_get_outputs(self):
3962 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3963 return _IMP_kernel.ModelObject_do_get_outputs(self)
3966 def do_get_interactions(self):
3967 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3968 return _IMP_kernel.ModelObject_do_get_interactions(self)
3972 """__str__(ModelObject self) -> std::string"""
3973 return _IMP_kernel.ModelObject___str__(self)
3977 """__repr__(ModelObject self) -> std::string"""
3978 return _IMP_kernel.ModelObject___repr__(self)
3983 return _object_cast_to_ModelObject(o)
3986 def get_type_name(self):
3987 return self.__class__.__name__
3988 def do_show(self, out):
3990 def get_version_info(self):
3992 return VersionInfo(self.__module__,
3999 return _object_cast_to_ModelObject(o)
4001 def __disown__(self):
4003 _IMP_kernel.disown_ModelObject(self)
4004 return weakref_proxy(self)
4006 def do_destroy(self):
4007 """do_destroy(ModelObject self)"""
4008 return _IMP_kernel.ModelObject_do_destroy(self)
4010 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
4011 ModelObject_swigregister(ModelObject)
4012 cvar = _IMP_kernel.cvar
4013 NO_MAX = cvar.NO_MAX
4014 BAD_SCORE = cvar.BAD_SCORE
4016 class _ParticleInputs(object):
4017 """Proxy of C++ IMP::ParticleInputs class"""
4018 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4020 def __init__(self, *args, **kwargs):
4021 raise AttributeError(
"No constructor defined - class is abstract")
4022 __repr__ = _swig_repr
4024 def get_inputs(self, m, pis):
4025 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4026 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
4028 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
4029 _ParticleInputs_swigregister(_ParticleInputs)
4031 class _ParticleOutputs(object):
4032 """Proxy of C++ IMP::ParticleOutputs class"""
4033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4035 def __init__(self, *args, **kwargs):
4036 raise AttributeError(
"No constructor defined - class is abstract")
4037 __repr__ = _swig_repr
4039 def get_outputs(self, m, pis):
4040 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4041 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
4043 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
4044 _ParticleOutputs_swigregister(_ParticleOutputs)
4048 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4049 return _IMP_kernel.get_input_particles(mos)
4052 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4053 return _IMP_kernel.get_input_containers(mos)
4056 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4057 return _IMP_kernel.get_output_particles(mos)
4060 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4061 return _IMP_kernel.get_output_containers(mos)
4062 class DerivativeAccumulator(object):
4063 """Proxy of C++ IMP::DerivativeAccumulator class"""
4064 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4065 __repr__ = _swig_repr
4067 def __init__(self, *args):
4069 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
4070 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
4071 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
4073 this = _IMP_kernel.new_DerivativeAccumulator(*args)
4075 self.this.append(this)
4079 def __call__(self, value):
4080 """__call__(DerivativeAccumulator self, double const value) -> double"""
4081 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
4084 def get_weight(self):
4085 """get_weight(DerivativeAccumulator self) -> double"""
4086 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
4089 def show(self, *args):
4091 show(DerivativeAccumulator self, _ostream out)
4092 show(DerivativeAccumulator self)
4094 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
4096 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
4097 __del__ =
lambda self:
None
4098 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
4099 DerivativeAccumulator_swigregister(DerivativeAccumulator)
4101 class EvaluationState(object):
4102 """Proxy of C++ IMP::EvaluationState class"""
4103 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4104 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
4105 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
4107 def __init__(self, *args):
4109 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
4110 __init__(IMP::EvaluationState self) -> EvaluationState
4112 this = _IMP_kernel.new_EvaluationState(*args)
4114 self.this.append(this)
4118 def show(self, *args):
4120 show(EvaluationState self, _ostream out)
4121 show(EvaluationState self)
4123 return _IMP_kernel.EvaluationState_show(self, *args)
4127 """__str__(EvaluationState self) -> std::string"""
4128 return _IMP_kernel.EvaluationState___str__(self)
4132 """__repr__(EvaluationState self) -> std::string"""
4133 return _IMP_kernel.EvaluationState___repr__(self)
4135 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
4136 __del__ =
lambda self:
None
4137 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
4138 EvaluationState_swigregister(EvaluationState)
4140 class ScoreAccumulator(_Value):
4141 """Proxy of C++ IMP::ScoreAccumulator class"""
4142 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4144 def __init__(self, *args):
4146 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
4147 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
4148 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
4150 this = _IMP_kernel.new_ScoreAccumulator(*args)
4152 self.this.append(this)
4156 def add_score(self, score):
4157 """add_score(ScoreAccumulator self, double score)"""
4158 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
4161 def get_abort_evaluation(self):
4162 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
4163 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
4166 def get_is_evaluate_if_below(self):
4167 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
4168 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
4171 def get_is_evaluate_if_good(self):
4172 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
4173 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
4176 def get_maximum(self):
4177 """get_maximum(ScoreAccumulator self) -> double"""
4178 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
4181 def get_derivative_accumulator(self):
4182 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
4183 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
4186 def show(self, *args):
4188 show(ScoreAccumulator self, _ostream out)
4189 show(ScoreAccumulator self)
4191 return _IMP_kernel.ScoreAccumulator_show(self, *args)
4195 """__str__(ScoreAccumulator self) -> std::string"""
4196 return _IMP_kernel.ScoreAccumulator___str__(self)
4200 """__repr__(ScoreAccumulator self) -> std::string"""
4201 return _IMP_kernel.ScoreAccumulator___repr__(self)
4203 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
4204 __del__ =
lambda self:
None
4205 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
4206 ScoreAccumulator_swigregister(ScoreAccumulator)
4208 class ScoreState(ModelObject):
4209 """Proxy of C++ IMP::ScoreState class"""
4210 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4212 def set_can_skip(self, can_skip):
4213 """set_can_skip(ScoreState self, bool can_skip)"""
4214 return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
4217 def __init__(self, m, name):
4218 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
4219 if self.__class__ == ScoreState:
4223 this = _IMP_kernel.new_ScoreState(_self, m, name)
4225 self.this.append(this)
4229 if self.__class__ != ScoreState:
4230 _director_objects.register(self)
4235 def before_evaluate(self):
4236 """before_evaluate(ScoreState self)"""
4237 return _IMP_kernel.ScoreState_before_evaluate(self)
4240 def after_evaluate(self, accpt):
4241 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4242 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4245 def get_can_skip(self):
4246 """get_can_skip(ScoreState self) -> bool"""
4247 return _IMP_kernel.ScoreState_get_can_skip(self)
4250 def get_has_update_order(self):
4251 """get_has_update_order(ScoreState self) -> bool"""
4252 return _IMP_kernel.ScoreState_get_has_update_order(self)
4256 """get_update_order(ScoreState self) -> unsigned int"""
4257 return _IMP_kernel.ScoreState_get_update_order(self)
4260 def handle_set_has_required_score_states(self, tf):
4261 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
4262 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
4265 def do_before_evaluate(self):
4266 """do_before_evaluate(ScoreState self)"""
4267 return _IMP_kernel.ScoreState_do_before_evaluate(self)
4270 def do_after_evaluate(self, accpt):
4271 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4272 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
4274 __swig_destroy__ = _IMP_kernel.delete_ScoreState
4275 __del__ =
lambda self:
None
4278 """__str__(ScoreState self) -> std::string"""
4279 return _IMP_kernel.ScoreState___str__(self)
4283 """__repr__(ScoreState self) -> std::string"""
4284 return _IMP_kernel.ScoreState___repr__(self)
4289 return _object_cast_to_ScoreState(o)
4292 def get_type_name(self):
4293 return self.__class__.__name__
4294 def do_show(self, out):
4296 def get_version_info(self):
4298 return VersionInfo(self.__module__,
4305 return _object_cast_to_ScoreState(o)
4307 def __disown__(self):
4309 _IMP_kernel.disown_ScoreState(self)
4310 return weakref_proxy(self)
4312 def do_destroy(self):
4313 """do_destroy(ScoreState self)"""
4314 return _IMP_kernel.ScoreState_do_destroy(self)
4317 def do_get_inputs(self):
4318 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4319 return _IMP_kernel.ScoreState_do_get_inputs(self)
4322 def do_get_outputs(self):
4323 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4324 return _IMP_kernel.ScoreState_do_get_outputs(self)
4327 def do_get_interactions(self):
4328 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4329 return _IMP_kernel.ScoreState_do_get_interactions(self)
4331 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4332 ScoreState_swigregister(ScoreState)
4336 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
4337 return _IMP_kernel.get_update_order(input)
4338 class Constraint(ScoreState):
4339 """Proxy of C++ IMP::Constraint class"""
4340 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4342 def __init__(self, *args):
4344 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4345 __init__(IMP::Constraint self, Model m) -> Constraint
4347 if self.__class__ == Constraint:
4351 this = _IMP_kernel.new_Constraint(_self, *args)
4353 self.this.append(this)
4357 if self.__class__ != Constraint:
4358 _director_objects.register(self)
4363 def do_update_attributes(self):
4364 """do_update_attributes(Constraint self)"""
4365 return _IMP_kernel.Constraint_do_update_attributes(self)
4368 def do_update_derivatives(self, da):
4369 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
4370 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
4373 def do_before_evaluate(self):
4374 """do_before_evaluate(Constraint self)"""
4375 return _IMP_kernel.Constraint_do_before_evaluate(self)
4378 def do_after_evaluate(self, da):
4379 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
4380 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
4382 __swig_destroy__ = _IMP_kernel.delete_Constraint
4383 __del__ =
lambda self:
None
4386 """__str__(Constraint self) -> std::string"""
4387 return _IMP_kernel.Constraint___str__(self)
4391 """__repr__(Constraint self) -> std::string"""
4392 return _IMP_kernel.Constraint___repr__(self)
4397 return _object_cast_to_Constraint(o)
4400 def get_type_name(self):
4401 return self.__class__.__name__
4402 def do_show(self, out):
4404 def get_version_info(self):
4406 return VersionInfo(self.__module__,
4413 return _object_cast_to_Constraint(o)
4415 def __disown__(self):
4417 _IMP_kernel.disown_Constraint(self)
4418 return weakref_proxy(self)
4420 def do_destroy(self):
4421 """do_destroy(Constraint self)"""
4422 return _IMP_kernel.Constraint_do_destroy(self)
4425 def do_get_inputs(self):
4426 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4427 return _IMP_kernel.Constraint_do_get_inputs(self)
4430 def do_get_outputs(self):
4431 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4432 return _IMP_kernel.Constraint_do_get_outputs(self)
4435 def do_get_interactions(self):
4436 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4437 return _IMP_kernel.Constraint_do_get_interactions(self)
4439 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4440 Constraint_swigregister(Constraint)
4442 class Container(ModelObject):
4443 """Proxy of C++ IMP::Container class"""
4444 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4446 def __init__(self, *args):
4448 __init__(IMP::Container self, Model m, std::string name) -> Container
4449 __init__(IMP::Container self, Model m) -> Container
4451 if self.__class__ == Container:
4455 this = _IMP_kernel.new_Container(_self, *args)
4457 self.this.append(this)
4461 if self.__class__ != Container:
4462 _director_objects.register(self)
4467 def do_get_contents_hash(self):
4468 """do_get_contents_hash(Container self) -> std::size_t"""
4469 return _IMP_kernel.Container_do_get_contents_hash(self)
4472 def get_all_possible_indexes(self):
4473 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
4474 return _IMP_kernel.Container_get_all_possible_indexes(self)
4477 def get_contents_hash(self):
4478 """get_contents_hash(Container self) -> std::size_t"""
4479 return _IMP_kernel.Container_get_contents_hash(self)
4482 def do_get_outputs(self):
4483 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4484 return _IMP_kernel.Container_do_get_outputs(self)
4487 def get_is_decomposable(self):
4488 """get_is_decomposable(Container self) -> bool"""
4489 return _IMP_kernel.Container_get_is_decomposable(self)
4492 def validate_readable(self):
4493 """validate_readable(Container self)"""
4494 return _IMP_kernel.Container_validate_readable(self)
4497 def validate_writable(self):
4498 """validate_writable(Container self)"""
4499 return _IMP_kernel.Container_validate_writable(self)
4502 def set_is_readable(self, tf):
4503 """set_is_readable(Container self, bool tf)"""
4504 return _IMP_kernel.Container_set_is_readable(self, tf)
4507 def set_is_writable(self, tf):
4508 """set_is_writable(Container self, bool tf)"""
4509 return _IMP_kernel.Container_set_is_writable(self, tf)
4511 __swig_destroy__ = _IMP_kernel.delete_Container
4512 __del__ =
lambda self:
None
4515 """__str__(Container self) -> std::string"""
4516 return _IMP_kernel.Container___str__(self)
4520 """__repr__(Container self) -> std::string"""
4521 return _IMP_kernel.Container___repr__(self)
4526 return _object_cast_to_Container(o)
4529 def get_type_name(self):
4530 return self.__class__.__name__
4531 def do_show(self, out):
4533 def get_version_info(self):
4535 return VersionInfo(self.__module__,
4542 return _object_cast_to_Container(o)
4544 def __disown__(self):
4546 _IMP_kernel.disown_Container(self)
4547 return weakref_proxy(self)
4549 def do_destroy(self):
4550 """do_destroy(Container self)"""
4551 return _IMP_kernel.Container_do_destroy(self)
4554 def handle_set_has_required_score_states(self, arg0):
4555 """handle_set_has_required_score_states(Container self, bool arg0)"""
4556 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4559 def do_get_inputs(self):
4560 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4561 return _IMP_kernel.Container_do_get_inputs(self)
4564 def do_get_interactions(self):
4565 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4566 return _IMP_kernel.Container_do_get_interactions(self)
4568 Container_swigregister = _IMP_kernel.Container_swigregister
4569 Container_swigregister(Container)
4571 class RestraintInfo(Object):
4572 """Proxy of C++ IMP::RestraintInfo class"""
4573 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4575 def __init__(self, *args):
4577 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4578 __init__(IMP::RestraintInfo self) -> RestraintInfo
4580 this = _IMP_kernel.new_RestraintInfo(*args)
4582 self.this.append(this)
4586 def add_int(self, key, value):
4587 """add_int(RestraintInfo self, std::string key, int value)"""
4588 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4591 def get_number_of_int(self):
4592 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4593 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4596 def get_int_key(self, i):
4597 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4598 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4601 def get_int_value(self, i):
4602 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4603 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4606 def add_float(self, key, value):
4607 """add_float(RestraintInfo self, std::string key, double value)"""
4608 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4611 def get_number_of_float(self):
4612 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4613 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4616 def get_float_key(self, i):
4617 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4618 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4621 def get_float_value(self, i):
4622 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4623 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4626 def add_string(self, key, value):
4627 """add_string(RestraintInfo self, std::string key, std::string value)"""
4628 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4631 def get_number_of_string(self):
4632 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4633 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4636 def get_string_key(self, i):
4637 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4638 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4641 def get_string_value(self, i):
4642 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4643 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4646 def add_filename(self, key, value):
4647 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4648 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4651 def get_number_of_filename(self):
4652 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4653 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4656 def get_filename_key(self, i):
4657 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4658 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4661 def get_filename_value(self, i):
4662 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4663 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4666 def add_floats(self, key, value):
4667 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4668 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4671 def get_number_of_floats(self):
4672 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4673 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4676 def get_floats_key(self, i):
4677 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4678 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4681 def get_floats_value(self, i):
4682 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4683 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4686 def add_ints(self, key, value):
4687 """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4688 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4691 def get_number_of_ints(self):
4692 """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4693 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4696 def get_ints_key(self, i):
4697 """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4698 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4701 def get_ints_value(self, i):
4702 """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4703 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4706 def add_strings(self, key, value):
4707 """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4708 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4711 def get_number_of_strings(self):
4712 """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4713 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4716 def get_strings_key(self, i):
4717 """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4718 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4721 def get_strings_value(self, i):
4722 """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4723 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4726 def add_filenames(self, key, value):
4727 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4728 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4731 def get_number_of_filenames(self):
4732 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4733 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4736 def get_filenames_key(self, i):
4737 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4738 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4741 def get_filenames_value(self, i):
4742 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4743 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4746 def add_particle_indexes(self, key, value):
4747 """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4748 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4751 def get_number_of_particle_indexes(self):
4752 """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4753 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4756 def get_particle_indexes_key(self, i):
4757 """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4758 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4761 def get_particle_indexes_value(self, i):
4762 """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4763 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4766 def get_version_info(self):
4767 """get_version_info(RestraintInfo self) -> VersionInfo"""
4768 return _IMP_kernel.RestraintInfo_get_version_info(self)
4772 """__str__(RestraintInfo self) -> std::string"""
4773 return _IMP_kernel.RestraintInfo___str__(self)
4777 """__repr__(RestraintInfo self) -> std::string"""
4778 return _IMP_kernel.RestraintInfo___repr__(self)
4783 return _object_cast_to_RestraintInfo(o)
4785 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4786 RestraintInfo_swigregister(RestraintInfo)
4788 class Restraint(ModelObject):
4789 """Proxy of C++ IMP::Restraint class"""
4790 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4792 def __init__(self, m, name):
4793 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4794 if self.__class__ == Restraint:
4798 this = _IMP_kernel.new_Restraint(_self, m, name)
4800 self.this.append(this)
4804 if self.__class__ != Restraint:
4805 _director_objects.register(self)
4810 def get_score(self):
4811 """get_score(Restraint self) -> double"""
4812 return _IMP_kernel.Restraint_get_score(self)
4815 def evaluate(self, calc_derivs):
4816 """evaluate(Restraint self, bool calc_derivs) -> double"""
4817 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4820 def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
4821 """evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4822 return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
4825 def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
4826 """evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4827 return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
4830 def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
4831 """evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4832 return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
4835 def evaluate_if_good(self, calc_derivatives):
4836 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4837 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4840 def evaluate_if_below(self, calc_derivatives, max):
4841 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4842 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4845 def unprotected_evaluate(self, da):
4846 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4847 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4850 def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
4851 """unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4852 return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
4855 def unprotected_evaluate_if_good(self, da, max):
4856 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4857 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4860 def unprotected_evaluate_if_below(self, da, max):
4861 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4862 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4865 def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
4866 """unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4867 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
4870 def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
4871 """unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4872 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
4875 def get_static_info(self):
4876 """get_static_info(Restraint self) -> RestraintInfo"""
4877 return _IMP_kernel.Restraint_get_static_info(self)
4880 def get_dynamic_info(self):
4881 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4882 return _IMP_kernel.Restraint_get_dynamic_info(self)
4885 def add_score_and_derivatives(self, sa):
4886 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4887 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4890 def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4891 """add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4892 return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4896 """create_decomposition(Restraint self) -> Restraint"""
4897 return _IMP_kernel.Restraint_create_decomposition(self)
4900 def create_current_decomposition(self):
4901 """create_current_decomposition(Restraint self) -> Restraint"""
4902 return _IMP_kernel.Restraint_create_current_decomposition(self)
4905 def set_weight(self, weight):
4906 """set_weight(Restraint self, IMP::Float weight)"""
4907 return _IMP_kernel.Restraint_set_weight(self, weight)
4910 def get_weight(self):
4911 """get_weight(Restraint self) -> IMP::Float"""
4912 return _IMP_kernel.Restraint_get_weight(self)
4915 def get_maximum_score(self):
4916 """get_maximum_score(Restraint self) -> double"""
4917 return _IMP_kernel.Restraint_get_maximum_score(self)
4920 def set_maximum_score(self, s):
4921 """set_maximum_score(Restraint self, double s)"""
4922 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4927 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4928 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4929 create_scoring_function(Restraint self) -> ScoringFunction
4931 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4934 def set_last_score(self, s):
4935 """set_last_score(Restraint self, double s)"""
4936 return _IMP_kernel.Restraint_set_last_score(self, s)
4939 def set_last_last_score(self, s):
4940 """set_last_last_score(Restraint self, double s)"""
4941 return _IMP_kernel.Restraint_set_last_last_score(self, s)
4944 def get_last_score(self):
4945 """get_last_score(Restraint self) -> double"""
4946 return _IMP_kernel.Restraint_get_last_score(self)
4949 def get_last_last_score(self):
4950 """get_last_last_score(Restraint self) -> double"""
4951 return _IMP_kernel.Restraint_get_last_last_score(self)
4954 def get_is_aggregate(self):
4955 """get_is_aggregate(Restraint self) -> bool"""
4956 return _IMP_kernel.Restraint_get_is_aggregate(self)
4959 def get_was_good(self):
4960 """get_was_good(Restraint self) -> bool"""
4961 return _IMP_kernel.Restraint_get_was_good(self)
4963 __swig_destroy__ = _IMP_kernel.delete_Restraint
4964 __del__ =
lambda self:
None
4966 def do_create_decomposition(self):
4967 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4968 return _IMP_kernel.Restraint_do_create_decomposition(self)
4971 def do_create_current_decomposition(self):
4972 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4973 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4976 def do_add_score_and_derivatives(self, sa):
4977 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4978 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4981 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4982 """do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4983 return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4986 def do_get_outputs(self):
4987 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4988 return _IMP_kernel.Restraint_do_get_outputs(self)
4990 is_aggregate_ = _swig_property(_IMP_kernel.Restraint_is_aggregate__get, _IMP_kernel.Restraint_is_aggregate__set)
4993 """__str__(Restraint self) -> std::string"""
4994 return _IMP_kernel.Restraint___str__(self)
4998 """__repr__(Restraint self) -> std::string"""
4999 return _IMP_kernel.Restraint___repr__(self)
5004 return _object_cast_to_Restraint(o)
5007 def get_type_name(self):
5008 return self.__class__.__name__
5009 def do_show(self, out):
5011 def get_version_info(self):
5013 return VersionInfo(self.__module__,
5020 return _object_cast_to_Restraint(o)
5022 def __disown__(self):
5024 _IMP_kernel.disown_Restraint(self)
5025 return weakref_proxy(self)
5027 def do_destroy(self):
5028 """do_destroy(Restraint self)"""
5029 return _IMP_kernel.Restraint_do_destroy(self)
5032 def handle_set_has_required_score_states(self, arg0):
5033 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
5034 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
5037 def do_get_inputs(self):
5038 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
5039 return _IMP_kernel.Restraint_do_get_inputs(self)
5042 def do_get_interactions(self):
5043 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
5044 return _IMP_kernel.Restraint_do_get_interactions(self)
5046 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
5047 Restraint_swigregister(Restraint)
5049 class _RestraintsAdaptor(_InputAdaptor):
5050 """Proxy of C++ IMP::RestraintsAdaptor class"""
5051 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5052 __repr__ = _swig_repr
5054 def __init__(self, *args):
5056 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
5057 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
5058 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
5059 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
5061 this = _IMP_kernel.new__RestraintsAdaptor(*args)
5063 self.this.append(this)
5066 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
5067 __del__ =
lambda self:
None
5068 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
5069 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
5071 class RestraintSet(Restraint):
5072 """Proxy of C++ IMP::RestraintSet class"""
5073 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5075 def __init__(self, *args):
5077 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
5078 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
5079 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
5080 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
5081 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
5082 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
5084 if self.__class__ == RestraintSet:
5088 this = _IMP_kernel.new_RestraintSet(_self, *args)
5090 self.this.append(this)
5094 if self.__class__ != RestraintSet:
5095 _director_objects.register(self)
5100 def unprotected_evaluate(self, da):
5101 """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
5102 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
5105 def get_type_name(self):
5106 """get_type_name(RestraintSet self) -> std::string"""
5107 return _IMP_kernel.RestraintSet_get_type_name(self)
5110 def get_version_info(self):
5111 """get_version_info(RestraintSet self) -> VersionInfo"""
5112 return _IMP_kernel.RestraintSet_get_version_info(self)
5114 def __get_restraints(self):
return _list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
5115 def __set_restraints(self, obj): _list_util.set_varlist(self.restraints, obj)
5116 def __del_restraints(self): _list_util.del_varlist(self.restraints)
5117 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
5119 def remove_restraint(self, d):
5120 """remove_restraint(RestraintSet self, Restraint d)"""
5121 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
5124 def _python_index_restraint(self, d, start, stop):
5125 """_python_index_restraint(RestraintSet self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
5126 return _IMP_kernel.RestraintSet__python_index_restraint(self, d, start, stop)
5129 def remove_restraints(self, d):
5130 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
5131 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
5134 def set_restraints(self, ps):
5135 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
5136 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
5139 def set_restraints_order(self, objs):
5140 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
5141 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
5145 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
5146 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
5150 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
5151 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
5154 def clear_restraints(self):
5155 """clear_restraints(RestraintSet self)"""
5156 return _IMP_kernel.RestraintSet_clear_restraints(self)
5159 def get_number_of_restraints(self):
5160 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
5161 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
5164 def get_has_restraints(self):
5165 """get_has_restraints(RestraintSet self) -> bool"""
5166 return _IMP_kernel.RestraintSet_get_has_restraints(self)
5169 def get_restraint(self, i):
5170 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
5171 return _IMP_kernel.RestraintSet_get_restraint(self, i)
5174 def get_restraints(self):
5175 """get_restraints(RestraintSet self) -> IMP::Restraints"""
5176 return _IMP_kernel.RestraintSet_get_restraints(self)
5179 def erase_restraint(self, i):
5180 """erase_restraint(RestraintSet self, unsigned int i)"""
5181 return _IMP_kernel.RestraintSet_erase_restraint(self, i)
5184 def reserve_restraints(self, sz):
5185 """reserve_restraints(RestraintSet self, unsigned int sz)"""
5186 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
5189 def get_non_sets_and_sets(self):
5190 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
5191 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
5194 def do_get_inputs(self):
5195 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5196 return _IMP_kernel.RestraintSet_do_get_inputs(self)
5201 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
5202 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
5203 create_scoring_function(RestraintSet self) -> ScoringFunction
5205 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
5208 def get_last_score(self):
5209 """get_last_score(RestraintSet self) -> double"""
5210 return _IMP_kernel.RestraintSet_get_last_score(self)
5214 """__str__(RestraintSet self) -> std::string"""
5215 return _IMP_kernel.RestraintSet___str__(self)
5219 """__repr__(RestraintSet self) -> std::string"""
5220 return _IMP_kernel.RestraintSet___repr__(self)
5225 return _object_cast_to_RestraintSet(o)
5228 def get_type_name(self):
5229 return self.__class__.__name__
5230 def do_show(self, out):
5232 def get_version_info(self):
5234 return VersionInfo(self.__module__,
5241 return _object_cast_to_RestraintSet(o)
5243 def __disown__(self):
5245 _IMP_kernel.disown_RestraintSet(self)
5246 return weakref_proxy(self)
5248 def do_destroy(self):
5249 """do_destroy(RestraintSet self)"""
5250 return _IMP_kernel.RestraintSet_do_destroy(self)
5253 def handle_set_has_required_score_states(self, arg0):
5254 """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
5255 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
5258 def do_get_outputs(self):
5259 """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5260 return _IMP_kernel.RestraintSet_do_get_outputs(self)
5263 def do_get_interactions(self):
5264 """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
5265 return _IMP_kernel.RestraintSet_do_get_interactions(self)
5268 def do_create_decomposition(self):
5269 """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
5270 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
5273 def do_create_current_decomposition(self):
5274 """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
5275 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
5278 def do_add_score_and_derivatives(self, sa):
5279 """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
5280 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
5283 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
5284 """do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
5285 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
5287 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
5288 RestraintSet_swigregister(RestraintSet)
5291 def get_restraints(rs):
5292 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
5293 return _IMP_kernel.get_restraints(rs)
5295 def _check_particle(p, a):
5296 if (
not p.get_is_active()):
5297 raise ValueError(
"Inactive Particle")
5298 if (type(a)() == a):
5299 raise IndexError(
"Cannot use default Index")
5300 if (
not p.has_attribute(a)):
5301 raise IndexError(
"Particle does not have attribute")
5303 class Particle(ModelObject):
5304 """Proxy of C++ IMP::Particle class"""
5305 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5307 def get_version_info(self):
5308 """get_version_info(Particle self) -> VersionInfo"""
5309 return _IMP_kernel.Particle_get_version_info(self)
5312 def __init__(self, *args):
5314 __init__(IMP::Particle self, Model m, std::string name) -> Particle
5315 __init__(IMP::Particle self, Model m) -> Particle
5317 this = _IMP_kernel.new_Particle(*args)
5319 self.this.append(this)
5323 def get_float_keys(self):
5324 """get_float_keys(Particle self) -> IMP::FloatKeys"""
5325 return _IMP_kernel.Particle_get_float_keys(self)
5328 def get_floats_keys(self):
5329 """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5330 return _IMP_kernel.Particle_get_floats_keys(self)
5333 def get_int_keys(self):
5334 """get_int_keys(Particle self) -> IMP::IntKeys"""
5335 return _IMP_kernel.Particle_get_int_keys(self)
5338 def get_ints_keys(self):
5339 """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5340 return _IMP_kernel.Particle_get_ints_keys(self)
5343 def get_string_keys(self):
5344 """get_string_keys(Particle self) -> IMP::StringKeys"""
5345 return _IMP_kernel.Particle_get_string_keys(self)
5348 def get_object_keys(self):
5349 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5350 return _IMP_kernel.Particle_get_object_keys(self)
5353 def add_cache_attribute(self, *args):
5355 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
5356 add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
5357 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
5358 add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
5359 add_cache_attribute(Particle self, StringKey name, IMP::String value)
5360 add_cache_attribute(Particle self, ObjectKey name, Object value)
5361 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
5363 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5366 def get_weak_object_keys(self):
5367 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
5368 return _IMP_kernel.Particle_get_weak_object_keys(self)
5371 def add_to_derivative(self, key, value, da):
5372 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
5373 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
5376 def set_is_optimized(self, k, tf):
5377 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
5378 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
5381 def get_is_optimized(self, k):
5382 """get_is_optimized(Particle self, FloatKey k) -> bool"""
5383 return _IMP_kernel.Particle_get_is_optimized(self, k)
5386 def get_derivative(self, k):
5387 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5388 return _IMP_kernel.Particle_get_derivative(self, k)
5391 def add_attribute(self, *args):
5393 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
5394 add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
5395 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
5396 add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
5397 add_attribute(Particle self, StringKey name, IMP::String initial_value)
5398 add_attribute(Particle self, ObjectKey name, Object initial_value)
5399 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
5400 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
5401 add_attribute(Particle self, ParticleIndexKey k, Particle v)
5403 return _IMP_kernel.Particle_add_attribute(self, *args)
5406 def has_attribute(self, *args):
5408 has_attribute(Particle self, FloatKey name) -> bool
5409 has_attribute(Particle self, FloatsKey name) -> bool
5410 has_attribute(Particle self, IntKey name) -> bool
5411 has_attribute(Particle self, IntsKey name) -> bool
5412 has_attribute(Particle self, StringKey name) -> bool
5413 has_attribute(Particle self, ObjectKey name) -> bool
5414 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
5415 has_attribute(Particle self, ParticleIndexKey k) -> bool
5417 return _IMP_kernel.Particle_has_attribute(self, *args)
5420 def set_value(self, *args):
5422 set_value(Particle self, FloatKey name, IMP::Float value)
5423 set_value(Particle self, FloatsKey name, IMP::Floats value)
5424 set_value(Particle self, IntKey name, IMP::Int value)
5425 set_value(Particle self, IntsKey name, IMP::Ints value)
5426 set_value(Particle self, StringKey name, IMP::String value)
5427 set_value(Particle self, ObjectKey name, Object value)
5428 set_value(Particle self, IMP::WeakObjectKey name, Object value)
5429 set_value(Particle self, ParticleIndexKey k, Particle v)
5431 return _IMP_kernel.Particle_set_value(self, *args)
5434 def get_value(self, *args):
5436 get_value(Particle self, FloatKey name) -> IMP::Float
5437 get_value(Particle self, FloatsKey name) -> IMP::Floats
5438 get_value(Particle self, IntKey name) -> IMP::Int
5439 get_value(Particle self, IntsKey name) -> IMP::Ints
5440 get_value(Particle self, StringKey name) -> IMP::String
5441 get_value(Particle self, ObjectKey name) -> Object
5442 get_value(Particle self, IMP::WeakObjectKey name) -> Object
5443 get_value(Particle self, ParticleIndexKey k) -> Particle
5445 return _IMP_kernel.Particle_get_value(self, *args)
5448 def remove_attribute(self, *args):
5450 remove_attribute(Particle self, FloatKey name)
5451 remove_attribute(Particle self, FloatsKey name)
5452 remove_attribute(Particle self, IntKey name)
5453 remove_attribute(Particle self, IntsKey name)
5454 remove_attribute(Particle self, StringKey name)
5455 remove_attribute(Particle self, ObjectKey name)
5456 remove_attribute(Particle self, IMP::WeakObjectKey name)
5457 remove_attribute(Particle self, ParticleIndexKey k)
5459 return _IMP_kernel.Particle_remove_attribute(self, *args)
5462 def get_particle_keys(self):
5463 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5464 return _IMP_kernel.Particle_get_particle_keys(self)
5467 def show(self, *args):
5469 show(Particle self, _ostream out)
5472 return _IMP_kernel.Particle_show(self, *args)
5475 def get_is_active(self):
5476 """get_is_active(Particle self) -> bool"""
5477 return _IMP_kernel.Particle_get_is_active(self)
5481 """get_index(Particle self) -> ParticleIndex"""
5482 return _IMP_kernel.Particle_get_index(self)
5485 def __eq__(self, *args):
5487 __eq__(Particle self, Particle o) -> bool
5488 __eq__(Particle self, Decorator d) -> bool
5490 return _IMP_kernel.Particle___eq__(self, *args)
5493 def __ne__(self, *args):
5495 __ne__(Particle self, Particle o) -> bool
5496 __ne__(Particle self, Decorator d) -> bool
5498 return _IMP_kernel.Particle___ne__(self, *args)
5501 def __le__(self, *args):
5503 __le__(Particle self, Particle o) -> bool
5504 __le__(Particle self, Decorator d) -> bool
5506 return _IMP_kernel.Particle___le__(self, *args)
5509 def __lt__(self, *args):
5511 __lt__(Particle self, Particle o) -> bool
5512 __lt__(Particle self, Decorator d) -> bool
5514 return _IMP_kernel.Particle___lt__(self, *args)
5517 def __ge__(self, *args):
5519 __ge__(Particle self, Particle o) -> bool
5520 __ge__(Particle self, Decorator d) -> bool
5522 return _IMP_kernel.Particle___ge__(self, *args)
5525 def __gt__(self, *args):
5527 __gt__(Particle self, Particle o) -> bool
5528 __gt__(Particle self, Decorator d) -> bool
5530 return _IMP_kernel.Particle___gt__(self, *args)
5533 __hash__ = ModelObject.__hash__
5537 """__str__(Particle self) -> std::string"""
5538 return _IMP_kernel.Particle___str__(self)
5542 """__repr__(Particle self) -> std::string"""
5543 return _IMP_kernel.Particle___repr__(self)
5548 return _object_cast_to_Particle(o)
5550 Particle_swigregister = _IMP_kernel.Particle_swigregister
5551 Particle_swigregister(Particle)
5553 class _ParticleAdaptor(_InputAdaptor):
5554 """Proxy of C++ IMP::ParticleAdaptor class"""
5555 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5556 __repr__ = _swig_repr
5558 def __init__(self, *args):
5560 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5561 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5562 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5564 this = _IMP_kernel.new__ParticleAdaptor(*args)
5566 self.this.append(this)
5570 def get_model(self):
5571 """get_model(_ParticleAdaptor self) -> Model"""
5572 return _IMP_kernel._ParticleAdaptor_get_model(self)
5575 def get_particle_index(self):
5576 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5577 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5579 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5580 __del__ =
lambda self:
None
5581 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5582 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5584 class _DependencyGraphVertexIndex(object):
5585 """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
5586 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5587 __repr__ = _swig_repr
5590 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5591 this = _IMP_kernel.new__DependencyGraphVertexIndex()
5593 self.this.append(this)
5596 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5597 __del__ =
lambda self:
None
5598 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5599 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5602 def show_as_graphviz(name, out):
5603 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
5604 return _IMP_kernel.show_as_graphviz(name, out)
5606 def get_vertex_index(g):
5607 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5608 return _IMP_kernel.get_vertex_index(g)
5611 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5612 return _IMP_kernel.get_dependency_graph(m)
5615 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5616 return _IMP_kernel.get_pruned_dependency_graph(m)
5618 def get_dependent_restraints(m, pi):
5619 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
5620 return _IMP_kernel.get_dependent_restraints(m, pi)
5622 def get_dependent_score_states(m, pi):
5623 """get_dependent_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5624 return _IMP_kernel.get_dependent_score_states(m, pi)
5626 def get_required_score_states(*args):
5628 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
5629 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
5630 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
5631 get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
5633 return _IMP_kernel.get_required_score_states(*args)
5635 def get_dependent_particles(*args):
5637 get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp
5638 get_dependent_particles(Model m, ParticleIndex pi) -> IMP::ParticlesTemp
5640 return _IMP_kernel.get_dependent_particles(*args)
5641 class ScoringFunction(ModelObject):
5642 """Proxy of C++ IMP::ScoringFunction class"""
5643 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5645 def do_add_score_and_derivatives(self, sa, ss):
5646 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
5647 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
5650 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
5651 """do_add_score_and_derivatives_moved(ScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
5652 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
5655 def get_score_accumulator_if_below(self, deriv, max):
5656 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
5657 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
5660 def get_score_accumulator_if_good(self, deriv):
5661 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5662 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5665 def get_score_accumulator(self, deriv):
5666 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5667 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5670 def __init__(self, m, name):
5671 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5672 if self.__class__ == ScoringFunction:
5676 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5678 self.this.append(this)
5682 if self.__class__ != ScoringFunction:
5683 _director_objects.register(self)
5688 def do_get_outputs(self):
5689 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5690 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5693 def evaluate_if_good(self, derivatives):
5694 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5695 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5698 def evaluate(self, derivatives):
5699 """evaluate(ScoringFunction self, bool derivatives) -> double"""
5700 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5703 def evaluate_moved(self, derivatives, moved_pis, reset_pis):
5704 """evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5705 return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
5708 def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
5709 """evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
5710 return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
5713 def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
5714 """evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5715 return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
5718 def evaluate_if_below(self, derivatives, max):
5719 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5720 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5723 def get_had_good_score(self):
5724 """get_had_good_score(ScoringFunction self) -> bool"""
5725 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5728 def get_last_score(self):
5729 """get_last_score(ScoringFunction self) -> double"""
5730 return _IMP_kernel.ScoringFunction_get_last_score(self)
5734 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5735 return _IMP_kernel.ScoringFunction_create_restraints(self)
5739 """__str__(ScoringFunction self) -> std::string"""
5740 return _IMP_kernel.ScoringFunction___str__(self)
5744 """__repr__(ScoringFunction self) -> std::string"""
5745 return _IMP_kernel.ScoringFunction___repr__(self)
5750 return _object_cast_to_ScoringFunction(o)
5753 def get_type_name(self):
5754 return self.__class__.__name__
5755 def do_show(self, out):
5757 def get_version_info(self):
5759 return VersionInfo(self.__module__,
5766 return _object_cast_to_ScoringFunction(o)
5768 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5769 __del__ =
lambda self:
None
5770 def __disown__(self):
5772 _IMP_kernel.disown_ScoringFunction(self)
5773 return weakref_proxy(self)
5775 def do_destroy(self):
5776 """do_destroy(ScoringFunction self)"""
5777 return _IMP_kernel.ScoringFunction_do_destroy(self)
5780 def handle_set_has_required_score_states(self, arg0):
5781 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5782 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5785 def do_get_inputs(self):
5786 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5787 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5790 def do_get_interactions(self):
5791 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5792 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5794 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5795 ScoringFunction_swigregister(ScoringFunction)
5800 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5801 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5803 return _IMP_kernel.create_decomposition(*args)
5804 class _ScoringFunctionAdaptor(_InputAdaptor):
5805 """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
5806 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5807 __repr__ = _swig_repr
5809 def __init__(self, *args):
5811 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5812 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5813 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5814 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5815 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5817 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5819 self.this.append(this)
5822 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5823 __del__ =
lambda self:
None
5824 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5825 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5830 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5831 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5833 return _IMP_kernel.show_restraint_hierarchy(*args)
5834 class Undecorator(Object):
5835 """Proxy of C++ IMP::Undecorator class"""
5836 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5838 def __init__(self, m, name):
5839 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5840 if self.__class__ == Undecorator:
5844 this = _IMP_kernel.new_Undecorator(_self, m, name)
5846 self.this.append(this)
5850 if self.__class__ != Undecorator:
5851 _director_objects.register(self)
5856 def teardown(self, pi):
5857 """teardown(Undecorator self, ParticleIndex pi)"""
5858 return _IMP_kernel.Undecorator_teardown(self, pi)
5862 """__str__(Undecorator self) -> std::string"""
5863 return _IMP_kernel.Undecorator___str__(self)
5867 """__repr__(Undecorator self) -> std::string"""
5868 return _IMP_kernel.Undecorator___repr__(self)
5873 return _object_cast_to_Undecorator(o)
5876 def get_type_name(self):
5877 return self.__class__.__name__
5878 def do_show(self, out):
5880 def get_version_info(self):
5882 return VersionInfo(self.__module__,
5889 return _object_cast_to_Undecorator(o)
5891 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5892 __del__ =
lambda self:
None
5893 def __disown__(self):
5895 _IMP_kernel.disown_Undecorator(self)
5896 return weakref_proxy(self)
5898 def do_destroy(self):
5899 """do_destroy(Undecorator self)"""
5900 return _IMP_kernel.Undecorator_do_destroy(self)
5902 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5903 Undecorator_swigregister(Undecorator)
5905 class Model(Object):
5906 """Proxy of C++ IMP::Model class"""
5907 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5909 def __init__(self, *args):
5911 __init__(IMP::Model self, std::string name) -> Model
5912 __init__(IMP::Model self) -> Model
5914 this = _IMP_kernel.new_Model(*args)
5916 self.this.append(this)
5920 def clear_particle_caches(self, pi):
5921 """clear_particle_caches(Model self, ParticleIndex pi)"""
5922 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5926 """add_particle(Model self, std::string name) -> ParticleIndex"""
5927 return _IMP_kernel.Model_add_particle(self, name)
5930 def get_particle_name(self, pi):
5931 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5932 return _IMP_kernel.Model_get_particle_name(self, pi)
5935 def add_undecorator(self, pi, d):
5936 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5937 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5940 def get_dependent_restraints_uncached(self, pi):
5941 """get_dependent_restraints_uncached(Model self, ParticleIndex pi) -> IMP::RestraintsTemp"""
5942 return _IMP_kernel.Model_get_dependent_restraints_uncached(self, pi)
5945 def get_dependent_particles_uncached(self, pi):
5946 """get_dependent_particles_uncached(Model self, ParticleIndex pi) -> IMP::ParticlesTemp"""
5947 return _IMP_kernel.Model_get_dependent_particles_uncached(self, pi)
5950 def get_dependent_score_states_uncached(self, pi):
5951 """get_dependent_score_states_uncached(Model self, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5952 return _IMP_kernel.Model_get_dependent_score_states_uncached(self, pi)
5954 def __get_score_states(self):
return _list_util.VarList(getdimfunc=self.get_number_of_score_states, getfunc=self.get_score_state, erasefunc=self.erase_score_state, appendfunc=self.add_score_state, extendfunc=self.add_score_states, clearfunc=self.clear_score_states, indexfunc=self._python_index_score_state)
5955 def __set_score_states(self, obj): _list_util.set_varlist(self.score_states, obj)
5956 def __del_score_states(self): _list_util.del_varlist(self.score_states)
5957 score_states = property(__get_score_states, __set_score_states, __del_score_states, doc=
"List of ##ucnames")
5959 def remove_score_state(self, d):
5960 """remove_score_state(Model self, ScoreState d)"""
5961 return _IMP_kernel.Model_remove_score_state(self, d)
5964 def _python_index_score_state(self, d, start, stop):
5965 """_python_index_score_state(Model self, ScoreState d, unsigned int start, unsigned int stop) -> unsigned int"""
5966 return _IMP_kernel.Model__python_index_score_state(self, d, start, stop)
5969 def remove_score_states(self, d):
5970 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5971 return _IMP_kernel.Model_remove_score_states(self, d)
5974 def set_score_states(self, ps):
5975 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5976 return _IMP_kernel.Model_set_score_states(self, ps)
5979 def set_score_states_order(self, objs):
5980 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5981 return _IMP_kernel.Model_set_score_states_order(self, objs)
5984 def add_score_state(self, obj):
5985 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5986 return _IMP_kernel.Model_add_score_state(self, obj)
5989 def add_score_states(self, objs):
5990 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5991 return _IMP_kernel.Model_add_score_states(self, objs)
5994 def clear_score_states(self):
5995 """clear_score_states(Model self)"""
5996 return _IMP_kernel.Model_clear_score_states(self)
5999 def get_number_of_score_states(self):
6000 """get_number_of_score_states(Model self) -> unsigned int"""
6001 return _IMP_kernel.Model_get_number_of_score_states(self)
6004 def get_has_score_states(self):
6005 """get_has_score_states(Model self) -> bool"""
6006 return _IMP_kernel.Model_get_has_score_states(self)
6009 def get_score_state(self, i):
6010 """get_score_state(Model self, unsigned int i) -> ScoreState"""
6011 return _IMP_kernel.Model_get_score_state(self, i)
6014 def get_score_states(self):
6015 """get_score_states(Model self) -> IMP::ScoreStates"""
6016 return _IMP_kernel.Model_get_score_states(self)
6019 def erase_score_state(self, i):
6020 """erase_score_state(Model self, unsigned int i)"""
6021 return _IMP_kernel.Model_erase_score_state(self, i)
6024 def reserve_score_states(self, sz):
6025 """reserve_score_states(Model self, unsigned int sz)"""
6026 return _IMP_kernel.Model_reserve_score_states(self, sz)
6030 """update(Model self)"""
6031 return _IMP_kernel.Model_update(self)
6034 def add_attribute(self, *args):
6036 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6037 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6038 add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6039 add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6040 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6041 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6042 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6043 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6044 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6046 return _IMP_kernel.Model_add_attribute(self, *args)
6049 def remove_attribute(self, *args):
6051 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
6052 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
6053 remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
6054 remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
6055 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
6056 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
6057 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
6058 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
6059 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
6061 return _IMP_kernel.Model_remove_attribute(self, *args)
6064 def get_has_attribute(self, *args):
6066 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
6067 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
6068 get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
6069 get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
6070 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
6071 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
6072 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
6073 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
6074 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
6076 return _IMP_kernel.Model_get_has_attribute(self, *args)
6079 def set_attribute(self, *args):
6081 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6082 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6083 set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6084 set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6085 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6086 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6087 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6088 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6089 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6091 return _IMP_kernel.Model_set_attribute(self, *args)
6094 def get_attribute(self, *args):
6096 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
6097 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
6098 get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
6099 get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
6100 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
6101 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
6102 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
6103 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
6104 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
6106 return _IMP_kernel.Model_get_attribute(self, *args)
6109 def add_cache_attribute(self, *args):
6111 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6112 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6113 add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6114 add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6115 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6116 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6117 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6118 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6119 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6121 return _IMP_kernel.Model_add_cache_attribute(self, *args)
6124 def set_is_optimized(self, arg2, arg3, arg4):
6125 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
6126 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
6129 def add_to_derivative(self, k, particle, v, da):
6130 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
6131 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
6134 def get_particle(self, p):
6135 """get_particle(Model self, ParticleIndex p) -> Particle"""
6136 return _IMP_kernel.Model_get_particle(self, p)
6139 def get_has_particle(self, p):
6140 """get_has_particle(Model self, ParticleIndex p) -> bool"""
6141 return _IMP_kernel.Model_get_has_particle(self, p)
6145 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
6146 return _IMP_kernel.Model_get_particle_indexes(self)
6149 def get_model_objects(self):
6150 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
6151 return _IMP_kernel.Model_get_model_objects(self)
6154 def remove_particle(self, pi):
6155 """remove_particle(Model self, ParticleIndex pi)"""
6156 return _IMP_kernel.Model_remove_particle(self, pi)
6159 def add_data(self, mk, o):
6160 """add_data(Model self, ModelKey mk, Object o)"""
6161 return _IMP_kernel.Model_add_data(self, mk, o)
6164 def get_data(self, mk):
6165 """get_data(Model self, ModelKey mk) -> Object"""
6166 return _IMP_kernel.Model_get_data(self, mk)
6169 def remove_data(self, mk):
6170 """remove_data(Model self, ModelKey mk)"""
6171 return _IMP_kernel.Model_remove_data(self, mk)
6174 def get_has_data(self, mk):
6175 """get_has_data(Model self, ModelKey mk) -> bool"""
6176 return _IMP_kernel.Model_get_has_data(self, mk)
6180 """get_age(Model self) -> unsigned int"""
6181 return _IMP_kernel.Model_get_age(self)
6184 def get_trigger_last_updated(self, tk):
6185 """get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
6186 return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
6189 def set_trigger_updated(self, tk):
6190 """set_trigger_updated(Model self, TriggerKey tk)"""
6191 return _IMP_kernel.Model_set_trigger_updated(self, tk)
6194 def get_dependencies_updated(self):
6195 """get_dependencies_updated(Model self) -> unsigned int"""
6196 return _IMP_kernel.Model_get_dependencies_updated(self)
6199 def save_dependencies(self):
6200 """save_dependencies(Model self)"""
6201 return _IMP_kernel.Model_save_dependencies(self)
6204 def restore_dependencies(self):
6205 """restore_dependencies(Model self)"""
6206 return _IMP_kernel.Model_restore_dependencies(self)
6209 def get_particles_size(self):
6210 """get_particles_size(Model self) -> unsigned int"""
6211 return _IMP_kernel.Model_get_particles_size(self)
6214 def get_version_info(self):
6215 """get_version_info(Model self) -> VersionInfo"""
6216 return _IMP_kernel.Model_get_version_info(self)
6219 def do_destroy(self):
6220 """do_destroy(Model self)"""
6221 return _IMP_kernel.Model_do_destroy(self)
6225 """__str__(Model self) -> std::string"""
6226 return _IMP_kernel.Model___str__(self)
6230 """__repr__(Model self) -> std::string"""
6231 return _IMP_kernel.Model___repr__(self)
6236 return _object_cast_to_Model(o)
6240 """Get the model's attribute array for IntKey k as a NumPy array.
6241 The array is indexed by ParticleIndex; particles that don't have
6242 this attribute will either be off the end of the array or will have
6244 This is a NumPy view that shares memory with the Model. Thus,
6245 any changes to values in this list will be reflected in the Model.
6246 Also, if the Model attribute array moves in memory (e.g. if particles
6247 or attributes are added) this array will be invalidated, so it is
6248 unsafe to keep it around long term.
6250 return _get_ints_numpy(self, k, self)
6253 """Get the model's attribute array for FloatKey k as a NumPy array.
6254 See Model::get_ints_numpy() for more details."""
6255 return _get_floats_numpy(self, k, self)
6258 """Get the model's attribute derivatives array for FloatKey k
6259 as a NumPy array. See Model::get_ints_numpy() for more details."""
6260 return _get_derivatives_numpy(self, k, self)
6263 """Get the model's XYZR attribute arrays as NumPy arrays.
6264 The attribute arrays for Cartesian coordinates and radii are
6265 stored separately from those for other FloatKeys. This function
6266 returns a tuple of two NumPy arrays, the first of coordinates and
6267 the second of radii. See Model::get_ints_numpy() for more details."""
6268 return _get_spheres_numpy(self, self)
6271 """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
6272 See Model::get_ints_numpy() for more details."""
6273 return _get_sphere_derivatives_numpy(self, self)
6275 Model_swigregister = _IMP_kernel.Model_swigregister
6276 Model_swigregister(Model)
6279 """Proxy of C++ IMP::Decorator class"""
6280 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6281 __repr__ = _swig_repr
6283 def __init__(self, p):
6284 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
6285 this = _IMP_kernel.new_Decorator(p)
6287 self.this.append(this)
6291 def __ne__(self, o):
6292 """__ne__(Decorator self, Object o) -> bool"""
6293 return _IMP_kernel.Decorator___ne__(self, o)
6296 def __lt__(self, o):
6297 """__lt__(Decorator self, Object o) -> bool"""
6298 return _IMP_kernel.Decorator___lt__(self, o)
6301 def __gt__(self, o):
6302 """__gt__(Decorator self, Object o) -> bool"""
6303 return _IMP_kernel.Decorator___gt__(self, o)
6306 def __ge__(self, o):
6307 """__ge__(Decorator self, Object o) -> bool"""
6308 return _IMP_kernel.Decorator___ge__(self, o)
6311 def __le__(self, o):
6312 """__le__(Decorator self, Object o) -> bool"""
6313 return _IMP_kernel.Decorator___le__(self, o)
6317 """get_particle(Decorator self) -> Particle"""
6318 return _IMP_kernel.Decorator_get_particle(self)
6321 def get_particle_index(self):
6322 """get_particle_index(Decorator self) -> ParticleIndex"""
6323 return _IMP_kernel.Decorator_get_particle_index(self)
6326 def get_model(self):
6327 """get_model(Decorator self) -> Model"""
6328 return _IMP_kernel.Decorator_get_model(self)
6331 def get_is_valid(self):
6332 """get_is_valid(Decorator self) -> bool"""
6333 return _IMP_kernel.Decorator_get_is_valid(self)
6337 """__hash__(Decorator self) -> std::size_t"""
6338 return _IMP_kernel.Decorator___hash__(self)
6341 def __eq__(self, *args):
6343 __eq__(Decorator self, Object o) -> bool
6344 __eq__(Decorator self, Decorator o) -> bool
6345 __eq__(Decorator self, Particle o) -> bool
6347 return _IMP_kernel.Decorator___eq__(self, *args)
6351 """__bool__(Decorator self) -> bool"""
6352 return _IMP_kernel.Decorator___bool__(self)
6355 __nonzero__ = __bool__
6357 __swig_destroy__ = _IMP_kernel.delete_Decorator
6358 __del__ =
lambda self:
None
6359 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
6360 Decorator_swigregister(Decorator)
6363 def check_particle(m, pi):
6364 """check_particle(Model m, ParticleIndex pi)"""
6365 return _IMP_kernel.check_particle(m, pi)
6367 """Proxy of C++ IMP::UnaryFunction class"""
6368 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6370 def __init__(self, *args):
6372 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
6373 __init__(IMP::UnaryFunction self) -> UnaryFunction
6375 if self.__class__ == UnaryFunction:
6379 this = _IMP_kernel.new_UnaryFunction(_self, *args)
6381 self.this.append(this)
6385 if self.__class__ != UnaryFunction:
6386 _director_objects.register(self)
6391 def evaluate(self, feature):
6392 """evaluate(UnaryFunction self, double feature) -> double"""
6393 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
6396 def evaluate_with_derivative(self, feature):
6397 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
6398 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
6400 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
6401 __del__ =
lambda self:
None
6404 """__str__(UnaryFunction self) -> std::string"""
6405 return _IMP_kernel.UnaryFunction___str__(self)
6409 """__repr__(UnaryFunction self) -> std::string"""
6410 return _IMP_kernel.UnaryFunction___repr__(self)
6415 return _object_cast_to_UnaryFunction(o)
6418 def get_type_name(self):
6419 return self.__class__.__name__
6420 def do_show(self, out):
6424 return VersionInfo(self.__module__,
6431 return _object_cast_to_UnaryFunction(o)
6433 def __disown__(self):
6435 _IMP_kernel.disown_UnaryFunction(self)
6436 return weakref_proxy(self)
6439 """do_destroy(UnaryFunction self)"""
6440 return _IMP_kernel.UnaryFunction_do_destroy(self)
6442 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6443 UnaryFunction_swigregister(UnaryFunction)
6445 class OptimizerState(ModelObject):
6446 """Proxy of C++ IMP::OptimizerState class"""
6447 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6449 def __init__(self, m, name):
6450 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6451 if self.__class__ == OptimizerState:
6455 this = _IMP_kernel.new_OptimizerState(_self, m, name)
6457 self.this.append(this)
6461 if self.__class__ != OptimizerState:
6462 _director_objects.register(self)
6468 """update(OptimizerState self)"""
6469 return _IMP_kernel.OptimizerState_update(self)
6472 def set_is_optimizing(self, arg0):
6473 """set_is_optimizing(OptimizerState self, bool arg0)"""
6474 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
6477 def get_optimizer(self):
6478 """get_optimizer(OptimizerState self) -> Optimizer"""
6479 return _IMP_kernel.OptimizerState_get_optimizer(self)
6482 def set_period(self, p):
6483 """set_period(OptimizerState self, unsigned int p)"""
6484 return _IMP_kernel.OptimizerState_set_period(self, p)
6487 def get_period(self):
6488 """get_period(OptimizerState self) -> unsigned int"""
6489 return _IMP_kernel.OptimizerState_get_period(self)
6493 """reset(OptimizerState self)"""
6494 return _IMP_kernel.OptimizerState_reset(self)
6497 def update_always(self):
6498 """update_always(OptimizerState self)"""
6499 return _IMP_kernel.OptimizerState_update_always(self)
6502 def get_number_of_updates(self):
6503 """get_number_of_updates(OptimizerState self) -> unsigned int"""
6504 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
6507 def set_number_of_updates(self, n):
6508 """set_number_of_updates(OptimizerState self, unsigned int n)"""
6509 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
6511 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6512 __del__ =
lambda self:
None
6514 def do_update(self, arg0):
6515 """do_update(OptimizerState self, unsigned int arg0)"""
6516 return _IMP_kernel.OptimizerState_do_update(self, arg0)
6519 def do_set_is_optimizing(self, arg0):
6520 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
6521 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
6524 def do_get_inputs(self):
6525 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6526 return _IMP_kernel.OptimizerState_do_get_inputs(self)
6529 def do_get_outputs(self):
6530 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6531 return _IMP_kernel.OptimizerState_do_get_outputs(self)
6535 """__str__(OptimizerState self) -> std::string"""
6536 return _IMP_kernel.OptimizerState___str__(self)
6540 """__repr__(OptimizerState self) -> std::string"""
6541 return _IMP_kernel.OptimizerState___repr__(self)
6546 return _object_cast_to_OptimizerState(o)
6549 def get_type_name(self):
6550 return self.__class__.__name__
6551 def do_show(self, out):
6555 return VersionInfo(self.__module__,
6562 return _object_cast_to_OptimizerState(o)
6564 def __disown__(self):
6566 _IMP_kernel.disown_OptimizerState(self)
6567 return weakref_proxy(self)
6570 """do_destroy(OptimizerState self)"""
6571 return _IMP_kernel.OptimizerState_do_destroy(self)
6574 def handle_set_has_required_score_states(self, arg0):
6575 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
6576 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
6579 def do_get_interactions(self):
6580 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6581 return _IMP_kernel.OptimizerState_do_get_interactions(self)
6583 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6584 OptimizerState_swigregister(OptimizerState)
6586 class Refiner(_ParticleInputs,
Object):
6587 """Proxy of C++ IMP::Refiner class"""
6588 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6590 def __init__(self, *args):
6592 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
6593 __init__(IMP::Refiner self, std::string name) -> Refiner
6594 __init__(IMP::Refiner self) -> Refiner
6596 if self.__class__ == Refiner:
6600 this = _IMP_kernel.new_Refiner(_self, *args)
6602 self.this.append(this)
6606 if self.__class__ != Refiner:
6607 _director_objects.register(self)
6612 def get_can_refine(self, arg0):
6613 """get_can_refine(Refiner self, Particle arg0) -> bool"""
6614 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
6617 def get_refined_indexes(self, m, pi):
6618 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
6619 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
6622 def get_refined_indexes_by_ref(self, m, pi):
6623 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
6624 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
6627 def get_is_by_ref_supported(self):
6628 """get_is_by_ref_supported(Refiner self) -> bool"""
6629 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
6632 def get_refined(self, *args):
6634 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6635 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6637 return _IMP_kernel.Refiner_get_refined(self, *args)
6640 def get_number_of_refined(self, a):
6641 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
6642 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
6646 """__str__(Refiner self) -> std::string"""
6647 return _IMP_kernel.Refiner___str__(self)
6651 """__repr__(Refiner self) -> std::string"""
6652 return _IMP_kernel.Refiner___repr__(self)
6657 return _object_cast_to_Refiner(o)
6660 def get_type_name(self):
6661 return self.__class__.__name__
6662 def do_show(self, out):
6666 return VersionInfo(self.__module__,
6673 return _object_cast_to_Refiner(o)
6675 __swig_destroy__ = _IMP_kernel.delete_Refiner
6676 __del__ =
lambda self:
None
6677 def __disown__(self):
6679 _IMP_kernel.disown_Refiner(self)
6680 return weakref_proxy(self)
6682 def do_get_inputs(self, m, pis):
6683 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6684 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
6688 """do_destroy(Refiner self)"""
6689 return _IMP_kernel.Refiner_do_destroy(self)
6691 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6692 Refiner_swigregister(Refiner)
6694 class Optimizer(ModelObject):
6695 """Proxy of C++ IMP::Optimizer class"""
6696 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6698 def set_is_optimizing_states(self, tf):
6699 """set_is_optimizing_states(Optimizer self, bool tf)"""
6700 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
6703 def get_optimizer_state_inputs(self):
6704 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6705 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
6708 def do_get_inputs(self):
6709 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6710 return _IMP_kernel.Optimizer_do_get_inputs(self)
6713 def do_get_outputs(self):
6714 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6715 return _IMP_kernel.Optimizer_do_get_outputs(self)
6718 def __init__(self, *args):
6720 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6721 __init__(IMP::Optimizer self, Model m) -> Optimizer
6723 if self.__class__ == Optimizer:
6727 this = _IMP_kernel.new_Optimizer(_self, *args)
6729 self.this.append(this)
6733 if self.__class__ != Optimizer:
6734 _director_objects.register(self)
6739 def optimize(self, max_steps):
6740 """optimize(Optimizer self, unsigned int max_steps) -> double"""
6741 return _IMP_kernel.Optimizer_optimize(self, max_steps)
6744 def set_stop_on_good_score(self, tf):
6745 """set_stop_on_good_score(Optimizer self, bool tf)"""
6746 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
6749 def get_stop_on_good_score(self):
6750 """get_stop_on_good_score(Optimizer self) -> bool"""
6751 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
6754 def get_last_score(self):
6755 """get_last_score(Optimizer self) -> double"""
6756 return _IMP_kernel.Optimizer_get_last_score(self)
6759 def get_scoring_function(self):
6760 """get_scoring_function(Optimizer self) -> ScoringFunction"""
6761 return _IMP_kernel.Optimizer_get_scoring_function(self)
6763 def __get_optimizer_states(self):
return _list_util.VarList(getdimfunc=self.get_number_of_optimizer_states, getfunc=self.get_optimizer_state, erasefunc=self.erase_optimizer_state, appendfunc=self.add_optimizer_state, extendfunc=self.add_optimizer_states, clearfunc=self.clear_optimizer_states, indexfunc=self._python_index_optimizer_state)
6764 def __set_optimizer_states(self, obj): _list_util.set_varlist(self.optimizer_states, obj)
6765 def __del_optimizer_states(self): _list_util.del_varlist(self.optimizer_states)
6766 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
6768 def remove_optimizer_state(self, d):
6769 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6770 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6773 def _python_index_optimizer_state(self, d, start, stop):
6774 """_python_index_optimizer_state(Optimizer self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
6775 return _IMP_kernel.Optimizer__python_index_optimizer_state(self, d, start, stop)
6778 def remove_optimizer_states(self, d):
6779 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6780 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6783 def set_optimizer_states(self, ps):
6784 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6785 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6788 def set_optimizer_states_order(self, objs):
6789 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6790 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6793 def add_optimizer_state(self, obj):
6794 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6795 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6798 def add_optimizer_states(self, objs):
6799 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6800 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6803 def clear_optimizer_states(self):
6804 """clear_optimizer_states(Optimizer self)"""
6805 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6808 def get_number_of_optimizer_states(self):
6809 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6810 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6813 def get_has_optimizer_states(self):
6814 """get_has_optimizer_states(Optimizer self) -> bool"""
6815 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6818 def get_optimizer_state(self, i):
6819 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6820 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6823 def get_optimizer_states(self):
6824 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6825 return _IMP_kernel.Optimizer_get_optimizer_states(self)
6828 def erase_optimizer_state(self, i):
6829 """erase_optimizer_state(Optimizer self, unsigned int i)"""
6830 return _IMP_kernel.Optimizer_erase_optimizer_state(self, i)
6833 def reserve_optimizer_states(self, sz):
6834 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6835 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6838 def set_scoring_function(self, sf):
6839 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6840 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6842 __swig_destroy__ = _IMP_kernel.delete_Optimizer
6844 """__del__(IMP::Optimizer self)"""
6846 _director_objects.cleanup()
6852 def do_optimize(self, ns):
6853 """do_optimize(Optimizer self, unsigned int ns) -> double"""
6854 return _IMP_kernel.Optimizer_do_optimize(self, ns)
6857 def update_states(self):
6858 """update_states(Optimizer self)"""
6859 return _IMP_kernel.Optimizer_update_states(self)
6863 """__str__(Optimizer self) -> std::string"""
6864 return _IMP_kernel.Optimizer___str__(self)
6868 """__repr__(Optimizer self) -> std::string"""
6869 return _IMP_kernel.Optimizer___repr__(self)
6874 return _object_cast_to_Optimizer(o)
6877 def get_type_name(self):
6878 return self.__class__.__name__
6879 def do_show(self, out):
6883 return VersionInfo(self.__module__,
6890 return _object_cast_to_Optimizer(o)
6892 def __disown__(self):
6894 _IMP_kernel.disown_Optimizer(self)
6895 return weakref_proxy(self)
6898 """do_destroy(Optimizer self)"""
6899 return _IMP_kernel.Optimizer_do_destroy(self)
6902 def handle_set_has_required_score_states(self, arg0):
6903 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6904 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6907 def do_get_interactions(self):
6908 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6909 return _IMP_kernel.Optimizer_do_get_interactions(self)
6911 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6912 Optimizer_swigregister(Optimizer)
6914 class AttributeOptimizer(Optimizer):
6915 """Proxy of C++ IMP::AttributeOptimizer class"""
6916 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6918 def __init__(self, *args):
6920 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6921 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6923 if self.__class__ == AttributeOptimizer:
6927 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6929 self.this.append(this)
6933 if self.__class__ != AttributeOptimizer:
6934 _director_objects.register(self)
6939 def get_optimized_attributes(self):
6940 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6941 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6944 def set_value(self, fi, v):
6945 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6946 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6949 def get_value(self, fi):
6950 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6951 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6954 def get_derivative(self, fi):
6955 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6956 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6959 def get_width(self, k):
6960 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6961 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6964 def set_scaled_value(self, fi, v):
6965 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6966 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6969 def get_scaled_value(self, fi):
6970 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6971 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6974 def get_scaled_derivative(self, fi):
6975 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6976 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6979 def clear_range_cache(self):
6980 """clear_range_cache(AttributeOptimizer self)"""
6981 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6985 """__str__(AttributeOptimizer self) -> std::string"""
6986 return _IMP_kernel.AttributeOptimizer___str__(self)
6990 """__repr__(AttributeOptimizer self) -> std::string"""
6991 return _IMP_kernel.AttributeOptimizer___repr__(self)
6996 return _object_cast_to_AttributeOptimizer(o)
6999 def get_type_name(self):
7000 return self.__class__.__name__
7001 def do_show(self, out):
7005 return VersionInfo(self.__module__,
7012 return _object_cast_to_AttributeOptimizer(o)
7014 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
7015 __del__ =
lambda self:
None
7016 def __disown__(self):
7018 _IMP_kernel.disown_AttributeOptimizer(self)
7019 return weakref_proxy(self)
7022 """do_destroy(AttributeOptimizer self)"""
7023 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
7026 def handle_set_has_required_score_states(self, arg0):
7027 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
7028 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
7031 def do_get_inputs(self):
7032 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
7033 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
7036 def do_get_outputs(self):
7037 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
7038 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
7041 def do_get_interactions(self):
7042 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
7043 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
7046 def do_optimize(self, ns):
7047 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
7048 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
7050 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
7051 AttributeOptimizer_swigregister(AttributeOptimizer)
7053 class ConfigurationSet(
Object):
7054 """Proxy of C++ IMP::ConfigurationSet class"""
7055 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7057 def __init__(self, *args):
7059 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
7060 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
7062 this = _IMP_kernel.new_ConfigurationSet(*args)
7064 self.this.append(this)
7068 def save_configuration(self):
7069 """save_configuration(ConfigurationSet self)"""
7070 return _IMP_kernel.ConfigurationSet_save_configuration(self)
7073 def get_number_of_configurations(self):
7074 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
7075 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
7078 def load_configuration(self, i):
7079 """load_configuration(ConfigurationSet self, int i)"""
7080 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
7083 def remove_configuration(self, i):
7084 """remove_configuration(ConfigurationSet self, unsigned int i)"""
7085 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
7088 def get_model(self):
7089 """get_model(ConfigurationSet self) -> Model"""
7090 return _IMP_kernel.ConfigurationSet_get_model(self)
7094 """get_version_info(ConfigurationSet self) -> VersionInfo"""
7095 return _IMP_kernel.ConfigurationSet_get_version_info(self)
7099 """__str__(ConfigurationSet self) -> std::string"""
7100 return _IMP_kernel.ConfigurationSet___str__(self)
7104 """__repr__(ConfigurationSet self) -> std::string"""
7105 return _IMP_kernel.ConfigurationSet___repr__(self)
7110 return _object_cast_to_ConfigurationSet(o)
7112 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
7113 ConfigurationSet_swigregister(ConfigurationSet)
7115 class SaveToConfigurationSetOptimizerState(OptimizerState):
7116 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
7117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7119 def __init__(self, cs):
7120 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
7121 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
7123 self.this.append(this)
7128 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
7129 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
7133 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7134 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
7138 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7139 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
7144 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
7146 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
7147 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
7149 class Configuration(
Object):
7150 """Proxy of C++ IMP::Configuration class"""
7151 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7153 def __init__(self, *args):
7155 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
7156 __init__(IMP::Configuration self, Model m) -> Configuration
7157 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
7158 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
7160 this = _IMP_kernel.new_Configuration(*args)
7162 self.this.append(this)
7166 def load_configuration(self):
7167 """load_configuration(Configuration self)"""
7168 return _IMP_kernel.Configuration_load_configuration(self)
7171 def swap_configuration(self):
7172 """swap_configuration(Configuration self)"""
7173 return _IMP_kernel.Configuration_swap_configuration(self)
7177 """get_version_info(Configuration self) -> VersionInfo"""
7178 return _IMP_kernel.Configuration_get_version_info(self)
7182 """__str__(Configuration self) -> std::string"""
7183 return _IMP_kernel.Configuration___str__(self)
7187 """__repr__(Configuration self) -> std::string"""
7188 return _IMP_kernel.Configuration___repr__(self)
7193 return _object_cast_to_Configuration(o)
7195 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
7196 Configuration_swigregister(Configuration)
7199 """Proxy of C++ IMP::Sampler class"""
7200 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7202 def __init__(self, *args):
7204 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
7205 __init__(IMP::Sampler self, Model m) -> Sampler
7207 if self.__class__ == Sampler:
7211 this = _IMP_kernel.new_Sampler(_self, *args)
7213 self.this.append(this)
7217 if self.__class__ != Sampler:
7218 _director_objects.register(self)
7223 def create_sample(self):
7224 """create_sample(Sampler self) -> ConfigurationSet"""
7225 return _IMP_kernel.Sampler_create_sample(self)
7228 def get_scoring_function(self):
7229 """get_scoring_function(Sampler self) -> ScoringFunction"""
7230 return _IMP_kernel.Sampler_get_scoring_function(self)
7233 def set_scoring_function(self, sf):
7234 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
7235 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
7238 def get_model(self):
7239 """get_model(Sampler self) -> Model"""
7240 return _IMP_kernel.Sampler_get_model(self)
7243 def do_sample(self):
7244 """do_sample(Sampler self) -> ConfigurationSet"""
7245 return _IMP_kernel.Sampler_do_sample(self)
7247 __swig_destroy__ = _IMP_kernel.delete_Sampler
7248 __del__ =
lambda self:
None
7251 """__str__(Sampler self) -> std::string"""
7252 return _IMP_kernel.Sampler___str__(self)
7256 """__repr__(Sampler self) -> std::string"""
7257 return _IMP_kernel.Sampler___repr__(self)
7262 return _object_cast_to_Sampler(o)
7265 def get_type_name(self):
7266 return self.__class__.__name__
7267 def do_show(self, out):
7271 return VersionInfo(self.__module__,
7278 return _object_cast_to_Sampler(o)
7280 def __disown__(self):
7282 _IMP_kernel.disown_Sampler(self)
7283 return weakref_proxy(self)
7286 """do_destroy(Sampler self)"""
7287 return _IMP_kernel.Sampler_do_destroy(self)
7289 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
7290 Sampler_swigregister(Sampler)
7292 class PairModifier(_ParticleInputs, _ParticleOutputs,
Object):
7293 """Proxy of C++ IMP::PairModifier class"""
7294 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7296 def __init__(self, *args):
7298 __init__(IMP::PairModifier self, std::string name) -> PairModifier
7299 __init__(IMP::PairModifier self) -> PairModifier
7301 if self.__class__ == PairModifier:
7305 this = _IMP_kernel.new_PairModifier(_self, *args)
7307 self.this.append(this)
7311 if self.__class__ != PairModifier:
7312 _director_objects.register(self)
7317 def apply_index(self, m, v):
7318 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
7319 return _IMP_kernel.PairModifier_apply_index(self, m, v)
7322 def apply_indexes(self, m, o, lower_bound, upper_bound):
7323 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7324 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7327 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7328 """apply_indexes_moved(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7329 return _IMP_kernel.PairModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7333 """__str__(PairModifier self) -> std::string"""
7334 return _IMP_kernel.PairModifier___str__(self)
7338 """__repr__(PairModifier self) -> std::string"""
7339 return _IMP_kernel.PairModifier___repr__(self)
7344 return _object_cast_to_PairModifier(o)
7347 def get_type_name(self):
7348 return self.__class__.__name__
7349 def do_show(self, out):
7353 return VersionInfo(self.__module__,
7360 return _object_cast_to_PairModifier(o)
7362 __swig_destroy__ = _IMP_kernel.delete_PairModifier
7363 __del__ =
lambda self:
None
7364 def __disown__(self):
7366 _IMP_kernel.disown_PairModifier(self)
7367 return weakref_proxy(self)
7369 def do_get_inputs(self, m, pis):
7370 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7371 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
7374 def do_get_outputs(self, m, pis):
7375 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7376 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
7380 """do_destroy(PairModifier self)"""
7381 return _IMP_kernel.PairModifier_do_destroy(self)
7383 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
7384 PairModifier_swigregister(PairModifier)
7386 class PairScore(_ParticleInputs,
Object):
7387 """Proxy of C++ IMP::PairScore class"""
7388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7390 def __init__(self, *args):
7392 __init__(IMP::PairScore self, std::string name) -> PairScore
7393 __init__(IMP::PairScore self) -> PairScore
7395 if self.__class__ == PairScore:
7399 this = _IMP_kernel.new_PairScore(_self, *args)
7401 self.this.append(this)
7405 if self.__class__ != PairScore:
7406 _director_objects.register(self)
7411 def evaluate_index(self, m, vt, da):
7412 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
7413 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
7416 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7417 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7418 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7421 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7422 """evaluate_indexes_scores(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
7423 return _IMP_kernel.PairScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7426 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7427 """evaluate_indexes_delta(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
7428 return _IMP_kernel.PairScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7431 def evaluate_if_good_index(self, m, vt, da, max):
7432 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
7433 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
7436 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7437 """evaluate_if_good_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7438 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7441 def create_current_decomposition(self, m, vt):
7442 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7443 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
7446 def do_create_current_decomposition(self, m, vt):
7447 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7448 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
7450 __swig_destroy__ = _IMP_kernel.delete_PairScore
7451 __del__ =
lambda self:
None
7454 """__str__(PairScore self) -> std::string"""
7455 return _IMP_kernel.PairScore___str__(self)
7459 """__repr__(PairScore self) -> std::string"""
7460 return _IMP_kernel.PairScore___repr__(self)
7465 return _object_cast_to_PairScore(o)
7468 def get_type_name(self):
7469 return self.__class__.__name__
7470 def do_show(self, out):
7474 return VersionInfo(self.__module__,
7481 return _object_cast_to_PairScore(o)
7483 def __disown__(self):
7485 _IMP_kernel.disown_PairScore(self)
7486 return weakref_proxy(self)
7488 def do_get_inputs(self, m, pis):
7489 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7490 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
7494 """do_destroy(PairScore self)"""
7495 return _IMP_kernel.PairScore_do_destroy(self)
7497 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
7498 PairScore_swigregister(PairScore)
7500 class PairPredicate(_ParticleInputs,
Object):
7501 """Proxy of C++ IMP::PairPredicate class"""
7502 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7504 def __init__(self, *args):
7506 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
7507 __init__(IMP::PairPredicate self) -> PairPredicate
7509 if self.__class__ == PairPredicate:
7513 this = _IMP_kernel.new_PairPredicate(_self, *args)
7515 self.this.append(this)
7519 if self.__class__ != PairPredicate:
7520 _director_objects.register(self)
7525 def setup_for_get_value_index_in_batch(self, arg0):
7526 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
7527 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
7530 def get_value_index_in_batch(self, m, vt):
7531 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7532 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
7535 def __call__(self, m, vt):
7536 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7537 return _IMP_kernel.PairPredicate___call__(self, m, vt)
7540 def get_value_index(self, *args):
7542 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
7543 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
7545 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
7547 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
7548 __del__ =
lambda self:
None
7551 """__str__(PairPredicate self) -> std::string"""
7552 return _IMP_kernel.PairPredicate___str__(self)
7556 """__repr__(PairPredicate self) -> std::string"""
7557 return _IMP_kernel.PairPredicate___repr__(self)
7562 return _object_cast_to_PairPredicate(o)
7565 def get_type_name(self):
7566 return self.__class__.__name__
7567 def do_show(self, out):
7571 return VersionInfo(self.__module__,
7578 return _object_cast_to_PairPredicate(o)
7580 def __disown__(self):
7582 _IMP_kernel.disown_PairPredicate(self)
7583 return weakref_proxy(self)
7585 def do_get_inputs(self, m, pis):
7586 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7587 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
7591 """do_destroy(PairPredicate self)"""
7592 return _IMP_kernel.PairPredicate_do_destroy(self)
7594 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
7595 PairPredicate_swigregister(PairPredicate)
7597 class PairContainer(Container):
7598 """Proxy of C++ IMP::PairContainer class"""
7599 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7601 def apply_generic(self, m):
7602 """apply_generic(PairContainer self, PairModifier m)"""
7603 return _IMP_kernel.PairContainer_apply_generic(self, m)
7606 def apply_generic_moved(self, m, moved_pis, reset_pis):
7607 """apply_generic_moved(PairContainer self, PairModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7608 return _IMP_kernel.PairContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7611 def apply(self, sm):
7612 """apply(PairContainer self, PairModifier sm)"""
7613 return _IMP_kernel.PairContainer_apply(self, sm)
7616 def apply_moved(self, sm, moved_pis, reset_pis):
7617 """apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7618 return _IMP_kernel.PairContainer_apply_moved(self, sm, moved_pis, reset_pis)
7621 def get_range_indexes(self):
7622 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7623 return _IMP_kernel.PairContainer_get_range_indexes(self)
7626 def get_contents(self):
7627 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
7628 return _IMP_kernel.PairContainer_get_contents(self)
7632 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7633 return _IMP_kernel.PairContainer_get_indexes(self)
7636 def get(self, *args):
7638 get(PairContainer self) -> IMP::ParticlePairsTemp
7639 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
7641 return _IMP_kernel.PairContainer_get(self, *args)
7644 def get_number(self):
7645 """get_number(PairContainer self) -> unsigned int"""
7646 return _IMP_kernel.PairContainer_get_number(self)
7649 def __init__(self, *args):
7651 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
7652 __init__(IMP::PairContainer self, Model m) -> PairContainer
7654 if self.__class__ == PairContainer:
7658 this = _IMP_kernel.new_PairContainer(_self, *args)
7660 self.this.append(this)
7664 if self.__class__ != PairContainer:
7665 _director_objects.register(self)
7670 def do_apply(self, sm):
7671 """do_apply(PairContainer self, PairModifier sm)"""
7672 return _IMP_kernel.PairContainer_do_apply(self, sm)
7675 def do_apply_moved(self, sm, moved_pis, reset_pis):
7676 """do_apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7677 return _IMP_kernel.PairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7680 def do_get_provides_access(self):
7681 """do_get_provides_access(PairContainer self) -> bool"""
7682 return _IMP_kernel.PairContainer_do_get_provides_access(self)
7684 __swig_destroy__ = _IMP_kernel.delete_PairContainer
7685 __del__ =
lambda self:
None
7688 """__str__(PairContainer self) -> std::string"""
7689 return _IMP_kernel.PairContainer___str__(self)
7693 """__repr__(PairContainer self) -> std::string"""
7694 return _IMP_kernel.PairContainer___repr__(self)
7699 return _object_cast_to_PairContainer(o)
7702 def get_type_name(self):
7703 return self.__class__.__name__
7704 def do_show(self, out):
7708 return VersionInfo(self.__module__,
7715 return _object_cast_to_PairContainer(o)
7717 def __disown__(self):
7719 _IMP_kernel.disown_PairContainer(self)
7720 return weakref_proxy(self)
7723 """do_destroy(PairContainer self)"""
7724 return _IMP_kernel.PairContainer_do_destroy(self)
7727 def handle_set_has_required_score_states(self, arg0):
7728 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
7729 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
7732 def do_get_inputs(self):
7733 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
7734 return _IMP_kernel.PairContainer_do_get_inputs(self)
7737 def do_get_interactions(self):
7738 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
7739 return _IMP_kernel.PairContainer_do_get_interactions(self)
7742 def do_get_contents_hash(self):
7743 """do_get_contents_hash(PairContainer self) -> std::size_t"""
7744 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
7746 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
7747 PairContainer_swigregister(PairContainer)
7749 class _PairContainerAdaptor(_InputAdaptor):
7750 """Proxy of C++ IMP::PairContainerAdaptor class"""
7751 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7752 __repr__ = _swig_repr
7754 def __init__(self, *args):
7756 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
7757 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
7758 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
7760 this = _IMP_kernel.new__PairContainerAdaptor(*args)
7762 self.this.append(this)
7766 def set_name_if_default(self, name):
7767 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
7768 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
7770 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
7771 __del__ =
lambda self:
None
7772 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
7773 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
7775 class QuadModifier(_ParticleInputs, _ParticleOutputs,
Object):
7776 """Proxy of C++ IMP::QuadModifier class"""
7777 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7779 def __init__(self, *args):
7781 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7782 __init__(IMP::QuadModifier self) -> QuadModifier
7784 if self.__class__ == QuadModifier:
7788 this = _IMP_kernel.new_QuadModifier(_self, *args)
7790 self.this.append(this)
7794 if self.__class__ != QuadModifier:
7795 _director_objects.register(self)
7800 def apply_index(self, m, v):
7801 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7802 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7805 def apply_indexes(self, m, o, lower_bound, upper_bound):
7806 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7807 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7810 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7811 """apply_indexes_moved(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7812 return _IMP_kernel.QuadModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7816 """__str__(QuadModifier self) -> std::string"""
7817 return _IMP_kernel.QuadModifier___str__(self)
7821 """__repr__(QuadModifier self) -> std::string"""
7822 return _IMP_kernel.QuadModifier___repr__(self)
7827 return _object_cast_to_QuadModifier(o)
7830 def get_type_name(self):
7831 return self.__class__.__name__
7832 def do_show(self, out):
7836 return VersionInfo(self.__module__,
7843 return _object_cast_to_QuadModifier(o)
7845 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7846 __del__ =
lambda self:
None
7847 def __disown__(self):
7849 _IMP_kernel.disown_QuadModifier(self)
7850 return weakref_proxy(self)
7852 def do_get_inputs(self, m, pis):
7853 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7854 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7857 def do_get_outputs(self, m, pis):
7858 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7859 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7863 """do_destroy(QuadModifier self)"""
7864 return _IMP_kernel.QuadModifier_do_destroy(self)
7866 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7867 QuadModifier_swigregister(QuadModifier)
7869 class QuadScore(_ParticleInputs,
Object):
7870 """Proxy of C++ IMP::QuadScore class"""
7871 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7873 def __init__(self, *args):
7875 __init__(IMP::QuadScore self, std::string name) -> QuadScore
7876 __init__(IMP::QuadScore self) -> QuadScore
7878 if self.__class__ == QuadScore:
7882 this = _IMP_kernel.new_QuadScore(_self, *args)
7884 self.this.append(this)
7888 if self.__class__ != QuadScore:
7889 _director_objects.register(self)
7894 def evaluate_index(self, m, vt, da):
7895 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7896 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7899 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7900 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7901 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7904 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7905 """evaluate_indexes_scores(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
7906 return _IMP_kernel.QuadScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7909 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7910 """evaluate_indexes_delta(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
7911 return _IMP_kernel.QuadScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7914 def evaluate_if_good_index(self, m, vt, da, max):
7915 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7916 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7919 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7920 """evaluate_if_good_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7921 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7924 def create_current_decomposition(self, m, vt):
7925 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7926 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7929 def do_create_current_decomposition(self, m, vt):
7930 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7931 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7933 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7934 __del__ =
lambda self:
None
7937 """__str__(QuadScore self) -> std::string"""
7938 return _IMP_kernel.QuadScore___str__(self)
7942 """__repr__(QuadScore self) -> std::string"""
7943 return _IMP_kernel.QuadScore___repr__(self)
7948 return _object_cast_to_QuadScore(o)
7951 def get_type_name(self):
7952 return self.__class__.__name__
7953 def do_show(self, out):
7957 return VersionInfo(self.__module__,
7964 return _object_cast_to_QuadScore(o)
7966 def __disown__(self):
7968 _IMP_kernel.disown_QuadScore(self)
7969 return weakref_proxy(self)
7971 def do_get_inputs(self, m, pis):
7972 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7973 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7977 """do_destroy(QuadScore self)"""
7978 return _IMP_kernel.QuadScore_do_destroy(self)
7980 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7981 QuadScore_swigregister(QuadScore)
7983 class QuadPredicate(_ParticleInputs,
Object):
7984 """Proxy of C++ IMP::QuadPredicate class"""
7985 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7987 def __init__(self, *args):
7989 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7990 __init__(IMP::QuadPredicate self) -> QuadPredicate
7992 if self.__class__ == QuadPredicate:
7996 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7998 self.this.append(this)
8002 if self.__class__ != QuadPredicate:
8003 _director_objects.register(self)
8008 def setup_for_get_value_index_in_batch(self, arg0):
8009 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
8010 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
8013 def get_value_index_in_batch(self, m, vt):
8014 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
8015 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
8018 def __call__(self, m, vt):
8019 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
8020 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
8023 def get_value_index(self, *args):
8025 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
8026 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
8028 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
8030 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
8031 __del__ =
lambda self:
None
8034 """__str__(QuadPredicate self) -> std::string"""
8035 return _IMP_kernel.QuadPredicate___str__(self)
8039 """__repr__(QuadPredicate self) -> std::string"""
8040 return _IMP_kernel.QuadPredicate___repr__(self)
8045 return _object_cast_to_QuadPredicate(o)
8048 def get_type_name(self):
8049 return self.__class__.__name__
8050 def do_show(self, out):
8054 return VersionInfo(self.__module__,
8061 return _object_cast_to_QuadPredicate(o)
8063 def __disown__(self):
8065 _IMP_kernel.disown_QuadPredicate(self)
8066 return weakref_proxy(self)
8068 def do_get_inputs(self, m, pis):
8069 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8070 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
8074 """do_destroy(QuadPredicate self)"""
8075 return _IMP_kernel.QuadPredicate_do_destroy(self)
8077 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
8078 QuadPredicate_swigregister(QuadPredicate)
8080 class QuadContainer(Container):
8081 """Proxy of C++ IMP::QuadContainer class"""
8082 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8084 def apply_generic(self, m):
8085 """apply_generic(QuadContainer self, QuadModifier m)"""
8086 return _IMP_kernel.QuadContainer_apply_generic(self, m)
8089 def apply_generic_moved(self, m, moved_pis, reset_pis):
8090 """apply_generic_moved(QuadContainer self, QuadModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8091 return _IMP_kernel.QuadContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8094 def apply(self, sm):
8095 """apply(QuadContainer self, QuadModifier sm)"""
8096 return _IMP_kernel.QuadContainer_apply(self, sm)
8099 def apply_moved(self, sm, moved_pis, reset_pis):
8100 """apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8101 return _IMP_kernel.QuadContainer_apply_moved(self, sm, moved_pis, reset_pis)
8104 def get_range_indexes(self):
8105 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8106 return _IMP_kernel.QuadContainer_get_range_indexes(self)
8109 def get_contents(self):
8110 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
8111 return _IMP_kernel.QuadContainer_get_contents(self)
8115 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8116 return _IMP_kernel.QuadContainer_get_indexes(self)
8119 def get(self, *args):
8121 get(QuadContainer self) -> IMP::ParticleQuadsTemp
8122 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
8124 return _IMP_kernel.QuadContainer_get(self, *args)
8127 def get_number(self):
8128 """get_number(QuadContainer self) -> unsigned int"""
8129 return _IMP_kernel.QuadContainer_get_number(self)
8132 def __init__(self, *args):
8134 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
8135 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
8137 if self.__class__ == QuadContainer:
8141 this = _IMP_kernel.new_QuadContainer(_self, *args)
8143 self.this.append(this)
8147 if self.__class__ != QuadContainer:
8148 _director_objects.register(self)
8153 def do_apply(self, sm):
8154 """do_apply(QuadContainer self, QuadModifier sm)"""
8155 return _IMP_kernel.QuadContainer_do_apply(self, sm)
8158 def do_apply_moved(self, sm, moved_pis, reset_pis):
8159 """do_apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8160 return _IMP_kernel.QuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8163 def do_get_provides_access(self):
8164 """do_get_provides_access(QuadContainer self) -> bool"""
8165 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
8167 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
8168 __del__ =
lambda self:
None
8171 """__str__(QuadContainer self) -> std::string"""
8172 return _IMP_kernel.QuadContainer___str__(self)
8176 """__repr__(QuadContainer self) -> std::string"""
8177 return _IMP_kernel.QuadContainer___repr__(self)
8182 return _object_cast_to_QuadContainer(o)
8185 def get_type_name(self):
8186 return self.__class__.__name__
8187 def do_show(self, out):
8191 return VersionInfo(self.__module__,
8198 return _object_cast_to_QuadContainer(o)
8200 def __disown__(self):
8202 _IMP_kernel.disown_QuadContainer(self)
8203 return weakref_proxy(self)
8206 """do_destroy(QuadContainer self)"""
8207 return _IMP_kernel.QuadContainer_do_destroy(self)
8210 def handle_set_has_required_score_states(self, arg0):
8211 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
8212 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
8215 def do_get_inputs(self):
8216 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
8217 return _IMP_kernel.QuadContainer_do_get_inputs(self)
8220 def do_get_interactions(self):
8221 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
8222 return _IMP_kernel.QuadContainer_do_get_interactions(self)
8225 def do_get_contents_hash(self):
8226 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
8227 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
8229 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
8230 QuadContainer_swigregister(QuadContainer)
8232 class _QuadContainerAdaptor(_InputAdaptor):
8233 """Proxy of C++ IMP::QuadContainerAdaptor class"""
8234 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8235 __repr__ = _swig_repr
8237 def __init__(self, *args):
8239 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
8240 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
8241 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
8243 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
8245 self.this.append(this)
8249 def set_name_if_default(self, name):
8250 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
8251 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
8253 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
8254 __del__ =
lambda self:
None
8255 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
8256 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
8258 class SingletonModifier(_ParticleInputs, _ParticleOutputs,
Object):
8259 """Proxy of C++ IMP::SingletonModifier class"""
8260 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8262 def __init__(self, *args):
8264 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
8265 __init__(IMP::SingletonModifier self) -> SingletonModifier
8267 if self.__class__ == SingletonModifier:
8271 this = _IMP_kernel.new_SingletonModifier(_self, *args)
8273 self.this.append(this)
8277 if self.__class__ != SingletonModifier:
8278 _director_objects.register(self)
8283 def apply_index(self, m, v):
8284 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
8285 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
8288 def apply_indexes(self, m, o, lower_bound, upper_bound):
8289 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8290 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8293 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8294 """apply_indexes_moved(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8295 return _IMP_kernel.SingletonModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8299 """__str__(SingletonModifier self) -> std::string"""
8300 return _IMP_kernel.SingletonModifier___str__(self)
8304 """__repr__(SingletonModifier self) -> std::string"""
8305 return _IMP_kernel.SingletonModifier___repr__(self)
8310 return _object_cast_to_SingletonModifier(o)
8313 def get_type_name(self):
8314 return self.__class__.__name__
8315 def do_show(self, out):
8319 return VersionInfo(self.__module__,
8326 return _object_cast_to_SingletonModifier(o)
8328 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
8329 __del__ =
lambda self:
None
8330 def __disown__(self):
8332 _IMP_kernel.disown_SingletonModifier(self)
8333 return weakref_proxy(self)
8335 def do_get_inputs(self, m, pis):
8336 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8337 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
8340 def do_get_outputs(self, m, pis):
8341 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8342 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
8346 """do_destroy(SingletonModifier self)"""
8347 return _IMP_kernel.SingletonModifier_do_destroy(self)
8349 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
8350 SingletonModifier_swigregister(SingletonModifier)
8352 class SingletonScore(_ParticleInputs,
Object):
8353 """Proxy of C++ IMP::SingletonScore class"""
8354 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8356 def __init__(self, *args):
8358 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
8359 __init__(IMP::SingletonScore self) -> SingletonScore
8361 if self.__class__ == SingletonScore:
8365 this = _IMP_kernel.new_SingletonScore(_self, *args)
8367 self.this.append(this)
8371 if self.__class__ != SingletonScore:
8372 _director_objects.register(self)
8377 def evaluate_index(self, m, vt, da):
8378 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
8379 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
8382 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8383 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8384 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8387 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8388 """evaluate_indexes_scores(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
8389 return _IMP_kernel.SingletonScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8392 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8393 """evaluate_indexes_delta(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
8394 return _IMP_kernel.SingletonScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8397 def evaluate_if_good_index(self, m, vt, da, max):
8398 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
8399 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
8402 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8403 """evaluate_if_good_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8404 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8407 def create_current_decomposition(self, m, vt):
8408 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8409 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
8412 def do_create_current_decomposition(self, m, vt):
8413 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8414 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
8416 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
8417 __del__ =
lambda self:
None
8420 """__str__(SingletonScore self) -> std::string"""
8421 return _IMP_kernel.SingletonScore___str__(self)
8425 """__repr__(SingletonScore self) -> std::string"""
8426 return _IMP_kernel.SingletonScore___repr__(self)
8431 return _object_cast_to_SingletonScore(o)
8434 def get_type_name(self):
8435 return self.__class__.__name__
8436 def do_show(self, out):
8440 return VersionInfo(self.__module__,
8447 return _object_cast_to_SingletonScore(o)
8449 def __disown__(self):
8451 _IMP_kernel.disown_SingletonScore(self)
8452 return weakref_proxy(self)
8454 def do_get_inputs(self, m, pis):
8455 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8456 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
8460 """do_destroy(SingletonScore self)"""
8461 return _IMP_kernel.SingletonScore_do_destroy(self)
8463 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
8464 SingletonScore_swigregister(SingletonScore)
8466 class SingletonPredicate(_ParticleInputs,
Object):
8467 """Proxy of C++ IMP::SingletonPredicate class"""
8468 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8470 def __init__(self, *args):
8472 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
8473 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
8475 if self.__class__ == SingletonPredicate:
8479 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
8481 self.this.append(this)
8485 if self.__class__ != SingletonPredicate:
8486 _director_objects.register(self)
8491 def setup_for_get_value_index_in_batch(self, arg0):
8492 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
8493 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
8496 def get_value_index_in_batch(self, m, vt):
8497 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8498 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
8501 def __call__(self, m, vt):
8502 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8503 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
8506 def get_value_index(self, *args):
8508 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
8509 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
8511 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
8513 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
8514 __del__ =
lambda self:
None
8517 """__str__(SingletonPredicate self) -> std::string"""
8518 return _IMP_kernel.SingletonPredicate___str__(self)
8522 """__repr__(SingletonPredicate self) -> std::string"""
8523 return _IMP_kernel.SingletonPredicate___repr__(self)
8528 return _object_cast_to_SingletonPredicate(o)
8531 def get_type_name(self):
8532 return self.__class__.__name__
8533 def do_show(self, out):
8537 return VersionInfo(self.__module__,
8544 return _object_cast_to_SingletonPredicate(o)
8546 def __disown__(self):
8548 _IMP_kernel.disown_SingletonPredicate(self)
8549 return weakref_proxy(self)
8551 def do_get_inputs(self, m, pis):
8552 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8553 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
8557 """do_destroy(SingletonPredicate self)"""
8558 return _IMP_kernel.SingletonPredicate_do_destroy(self)
8560 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
8561 SingletonPredicate_swigregister(SingletonPredicate)
8563 class SingletonContainer(Container):
8564 """Proxy of C++ IMP::SingletonContainer class"""
8565 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8567 def apply_generic(self, m):
8568 """apply_generic(SingletonContainer self, SingletonModifier m)"""
8569 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
8572 def apply_generic_moved(self, m, moved_pis, reset_pis):
8573 """apply_generic_moved(SingletonContainer self, SingletonModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8574 return _IMP_kernel.SingletonContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8577 def apply(self, sm):
8578 """apply(SingletonContainer self, SingletonModifier sm)"""
8579 return _IMP_kernel.SingletonContainer_apply(self, sm)
8582 def apply_moved(self, sm, moved_pis, reset_pis):
8583 """apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8584 return _IMP_kernel.SingletonContainer_apply_moved(self, sm, moved_pis, reset_pis)
8587 def get_range_indexes(self):
8588 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8589 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
8592 def get_contents(self):
8593 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
8594 return _IMP_kernel.SingletonContainer_get_contents(self)
8598 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8599 return _IMP_kernel.SingletonContainer_get_indexes(self)
8602 def get(self, *args):
8604 get(SingletonContainer self) -> IMP::ParticlesTemp
8605 get(SingletonContainer self, unsigned int i) -> Particle
8607 return _IMP_kernel.SingletonContainer_get(self, *args)
8610 def get_number(self):
8611 """get_number(SingletonContainer self) -> unsigned int"""
8612 return _IMP_kernel.SingletonContainer_get_number(self)
8615 def __init__(self, *args):
8617 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
8618 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
8620 if self.__class__ == SingletonContainer:
8624 this = _IMP_kernel.new_SingletonContainer(_self, *args)
8626 self.this.append(this)
8630 if self.__class__ != SingletonContainer:
8631 _director_objects.register(self)
8636 def do_apply(self, sm):
8637 """do_apply(SingletonContainer self, SingletonModifier sm)"""
8638 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
8641 def do_apply_moved(self, sm, moved_pis, reset_pis):
8642 """do_apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8643 return _IMP_kernel.SingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8646 def do_get_provides_access(self):
8647 """do_get_provides_access(SingletonContainer self) -> bool"""
8648 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
8650 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
8651 __del__ =
lambda self:
None
8654 """__str__(SingletonContainer self) -> std::string"""
8655 return _IMP_kernel.SingletonContainer___str__(self)
8659 """__repr__(SingletonContainer self) -> std::string"""
8660 return _IMP_kernel.SingletonContainer___repr__(self)
8665 return _object_cast_to_SingletonContainer(o)
8668 def get_type_name(self):
8669 return self.__class__.__name__
8670 def do_show(self, out):
8674 return VersionInfo(self.__module__,
8681 return _object_cast_to_SingletonContainer(o)
8683 def __disown__(self):
8685 _IMP_kernel.disown_SingletonContainer(self)
8686 return weakref_proxy(self)
8689 """do_destroy(SingletonContainer self)"""
8690 return _IMP_kernel.SingletonContainer_do_destroy(self)
8693 def handle_set_has_required_score_states(self, arg0):
8694 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
8695 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
8698 def do_get_inputs(self):
8699 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
8700 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
8703 def do_get_interactions(self):
8704 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
8705 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
8708 def do_get_contents_hash(self):
8709 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
8710 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
8712 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
8713 SingletonContainer_swigregister(SingletonContainer)
8715 class _SingletonContainerAdaptor(_InputAdaptor):
8716 """Proxy of C++ IMP::SingletonContainerAdaptor class"""
8717 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8718 __repr__ = _swig_repr
8720 def __init__(self, *args):
8722 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
8723 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
8724 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
8726 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
8728 self.this.append(this)
8732 def set_name_if_default(self, name):
8733 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
8734 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
8736 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
8737 __del__ =
lambda self:
None
8738 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
8739 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
8741 class TripletModifier(_ParticleInputs, _ParticleOutputs,
Object):
8742 """Proxy of C++ IMP::TripletModifier class"""
8743 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8745 def __init__(self, *args):
8747 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
8748 __init__(IMP::TripletModifier self) -> TripletModifier
8750 if self.__class__ == TripletModifier:
8754 this = _IMP_kernel.new_TripletModifier(_self, *args)
8756 self.this.append(this)
8760 if self.__class__ != TripletModifier:
8761 _director_objects.register(self)
8766 def apply_index(self, m, v):
8767 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
8768 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
8771 def apply_indexes(self, m, o, lower_bound, upper_bound):
8772 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8773 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8776 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8777 """apply_indexes_moved(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8778 return _IMP_kernel.TripletModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8782 """__str__(TripletModifier self) -> std::string"""
8783 return _IMP_kernel.TripletModifier___str__(self)
8787 """__repr__(TripletModifier self) -> std::string"""
8788 return _IMP_kernel.TripletModifier___repr__(self)
8793 return _object_cast_to_TripletModifier(o)
8796 def get_type_name(self):
8797 return self.__class__.__name__
8798 def do_show(self, out):
8802 return VersionInfo(self.__module__,
8809 return _object_cast_to_TripletModifier(o)
8811 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8812 __del__ =
lambda self:
None
8813 def __disown__(self):
8815 _IMP_kernel.disown_TripletModifier(self)
8816 return weakref_proxy(self)
8818 def do_get_inputs(self, m, pis):
8819 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8820 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8823 def do_get_outputs(self, m, pis):
8824 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8825 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8829 """do_destroy(TripletModifier self)"""
8830 return _IMP_kernel.TripletModifier_do_destroy(self)
8832 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8833 TripletModifier_swigregister(TripletModifier)
8835 class TripletScore(_ParticleInputs,
Object):
8836 """Proxy of C++ IMP::TripletScore class"""
8837 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8839 def __init__(self, *args):
8841 __init__(IMP::TripletScore self, std::string name) -> TripletScore
8842 __init__(IMP::TripletScore self) -> TripletScore
8844 if self.__class__ == TripletScore:
8848 this = _IMP_kernel.new_TripletScore(_self, *args)
8850 self.this.append(this)
8854 if self.__class__ != TripletScore:
8855 _director_objects.register(self)
8860 def evaluate_index(self, m, vt, da):
8861 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8862 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8865 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8866 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8867 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8870 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8871 """evaluate_indexes_scores(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
8872 return _IMP_kernel.TripletScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8875 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8876 """evaluate_indexes_delta(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
8877 return _IMP_kernel.TripletScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8880 def evaluate_if_good_index(self, m, vt, da, max):
8881 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8882 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8885 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8886 """evaluate_if_good_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8887 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8890 def create_current_decomposition(self, m, vt):
8891 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8892 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8895 def do_create_current_decomposition(self, m, vt):
8896 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8897 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8899 __swig_destroy__ = _IMP_kernel.delete_TripletScore
8900 __del__ =
lambda self:
None
8903 """__str__(TripletScore self) -> std::string"""
8904 return _IMP_kernel.TripletScore___str__(self)
8908 """__repr__(TripletScore self) -> std::string"""
8909 return _IMP_kernel.TripletScore___repr__(self)
8914 return _object_cast_to_TripletScore(o)
8917 def get_type_name(self):
8918 return self.__class__.__name__
8919 def do_show(self, out):
8923 return VersionInfo(self.__module__,
8930 return _object_cast_to_TripletScore(o)
8932 def __disown__(self):
8934 _IMP_kernel.disown_TripletScore(self)
8935 return weakref_proxy(self)
8937 def do_get_inputs(self, m, pis):
8938 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8939 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8943 """do_destroy(TripletScore self)"""
8944 return _IMP_kernel.TripletScore_do_destroy(self)
8946 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8947 TripletScore_swigregister(TripletScore)
8949 class TripletPredicate(_ParticleInputs,
Object):
8950 """Proxy of C++ IMP::TripletPredicate class"""
8951 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8953 def __init__(self, *args):
8955 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8956 __init__(IMP::TripletPredicate self) -> TripletPredicate
8958 if self.__class__ == TripletPredicate:
8962 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8964 self.this.append(this)
8968 if self.__class__ != TripletPredicate:
8969 _director_objects.register(self)
8974 def setup_for_get_value_index_in_batch(self, arg0):
8975 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8976 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8979 def get_value_index_in_batch(self, m, vt):
8980 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8981 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8984 def __call__(self, m, vt):
8985 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8986 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8989 def get_value_index(self, *args):
8991 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8992 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8994 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8996 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8997 __del__ =
lambda self:
None
9000 """__str__(TripletPredicate self) -> std::string"""
9001 return _IMP_kernel.TripletPredicate___str__(self)
9005 """__repr__(TripletPredicate self) -> std::string"""
9006 return _IMP_kernel.TripletPredicate___repr__(self)
9011 return _object_cast_to_TripletPredicate(o)
9014 def get_type_name(self):
9015 return self.__class__.__name__
9016 def do_show(self, out):
9020 return VersionInfo(self.__module__,
9027 return _object_cast_to_TripletPredicate(o)
9029 def __disown__(self):
9031 _IMP_kernel.disown_TripletPredicate(self)
9032 return weakref_proxy(self)
9034 def do_get_inputs(self, m, pis):
9035 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9036 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
9040 """do_destroy(TripletPredicate self)"""
9041 return _IMP_kernel.TripletPredicate_do_destroy(self)
9043 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
9044 TripletPredicate_swigregister(TripletPredicate)
9046 class TripletContainer(Container):
9047 """Proxy of C++ IMP::TripletContainer class"""
9048 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9050 def apply_generic(self, m):
9051 """apply_generic(TripletContainer self, TripletModifier m)"""
9052 return _IMP_kernel.TripletContainer_apply_generic(self, m)
9055 def apply_generic_moved(self, m, moved_pis, reset_pis):
9056 """apply_generic_moved(TripletContainer self, TripletModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
9057 return _IMP_kernel.TripletContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
9060 def apply(self, sm):
9061 """apply(TripletContainer self, TripletModifier sm)"""
9062 return _IMP_kernel.TripletContainer_apply(self, sm)
9065 def apply_moved(self, sm, moved_pis, reset_pis):
9066 """apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
9067 return _IMP_kernel.TripletContainer_apply_moved(self, sm, moved_pis, reset_pis)
9070 def get_range_indexes(self):
9071 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
9072 return _IMP_kernel.TripletContainer_get_range_indexes(self)
9075 def get_contents(self):
9076 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
9077 return _IMP_kernel.TripletContainer_get_contents(self)
9081 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
9082 return _IMP_kernel.TripletContainer_get_indexes(self)
9085 def get(self, *args):
9087 get(TripletContainer self) -> IMP::ParticleTripletsTemp
9088 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
9090 return _IMP_kernel.TripletContainer_get(self, *args)
9093 def get_number(self):
9094 """get_number(TripletContainer self) -> unsigned int"""
9095 return _IMP_kernel.TripletContainer_get_number(self)
9098 def __init__(self, *args):
9100 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
9101 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
9103 if self.__class__ == TripletContainer:
9107 this = _IMP_kernel.new_TripletContainer(_self, *args)
9109 self.this.append(this)
9113 if self.__class__ != TripletContainer:
9114 _director_objects.register(self)
9119 def do_apply(self, sm):
9120 """do_apply(TripletContainer self, TripletModifier sm)"""
9121 return _IMP_kernel.TripletContainer_do_apply(self, sm)
9124 def do_apply_moved(self, sm, moved_pis, reset_pis):
9125 """do_apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
9126 return _IMP_kernel.TripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
9129 def do_get_provides_access(self):
9130 """do_get_provides_access(TripletContainer self) -> bool"""
9131 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
9133 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
9134 __del__ =
lambda self:
None
9137 """__str__(TripletContainer self) -> std::string"""
9138 return _IMP_kernel.TripletContainer___str__(self)
9142 """__repr__(TripletContainer self) -> std::string"""
9143 return _IMP_kernel.TripletContainer___repr__(self)
9148 return _object_cast_to_TripletContainer(o)
9151 def get_type_name(self):
9152 return self.__class__.__name__
9153 def do_show(self, out):
9157 return VersionInfo(self.__module__,
9164 return _object_cast_to_TripletContainer(o)
9166 def __disown__(self):
9168 _IMP_kernel.disown_TripletContainer(self)
9169 return weakref_proxy(self)
9172 """do_destroy(TripletContainer self)"""
9173 return _IMP_kernel.TripletContainer_do_destroy(self)
9176 def handle_set_has_required_score_states(self, arg0):
9177 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
9178 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
9181 def do_get_inputs(self):
9182 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
9183 return _IMP_kernel.TripletContainer_do_get_inputs(self)
9186 def do_get_interactions(self):
9187 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
9188 return _IMP_kernel.TripletContainer_do_get_interactions(self)
9191 def do_get_contents_hash(self):
9192 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
9193 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
9195 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
9196 TripletContainer_swigregister(TripletContainer)
9198 class _TripletContainerAdaptor(_InputAdaptor):
9199 """Proxy of C++ IMP::TripletContainerAdaptor class"""
9200 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9201 __repr__ = _swig_repr
9203 def __init__(self, *args):
9205 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
9206 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
9207 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
9209 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
9211 self.this.append(this)
9215 def set_name_if_default(self, name):
9216 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
9217 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
9219 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
9220 __del__ =
lambda self:
None
9221 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
9222 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
9226 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
9227 return _IMP_kernel.write_particles_to_buffer(particles, keys)
9230 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
9231 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
9234 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
9235 return _IMP_kernel.get_particles(m, ps)
9239 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
9240 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
9242 return _IMP_kernel.get_indexes(*args)
9243 class _ParticleIndexAdaptor(object):
9244 """Proxy of C++ IMP::ParticleIndexAdaptor class"""
9245 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9246 __repr__ = _swig_repr
9248 def __init__(self, *args):
9250 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
9251 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
9252 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
9254 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
9256 self.this.append(this)
9259 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
9260 __del__ =
lambda self:
None
9261 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
9262 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
9264 class _ParticleIndexesAdaptor(_InputAdaptor):
9265 """Proxy of C++ IMP::ParticleIndexesAdaptor class"""
9266 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9267 __repr__ = _swig_repr
9269 def __init__(self, *args):
9271 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
9272 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
9273 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
9275 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
9277 self.this.append(this)
9280 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
9281 __del__ =
lambda self:
None
9282 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
9283 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
9285 class _ParticleIndexPairsAdaptor(object):
9286 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class"""
9287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9288 __repr__ = _swig_repr
9290 def __init__(self, *args):
9292 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
9293 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
9294 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
9296 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
9298 self.this.append(this)
9301 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
9302 __del__ =
lambda self:
None
9303 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
9304 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
9306 class _ConstRestraint(Restraint):
9307 """Proxy of C++ IMP::internal::_ConstRestraint class"""
9308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9310 def __init__(self, *args):
9312 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
9313 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
9315 this = _IMP_kernel.new__ConstRestraint(*args)
9317 self.this.append(this)
9321 def get_value(self):
9322 """get_value(_ConstRestraint self) -> double"""
9323 return _IMP_kernel._ConstRestraint_get_value(self)
9326 def do_create_decomposition(self):
9327 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
9328 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
9331 def do_get_inputs(self):
9332 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
9333 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
9337 """get_version_info(_ConstRestraint self) -> VersionInfo"""
9338 return _IMP_kernel._ConstRestraint_get_version_info(self)
9342 """__str__(_ConstRestraint self) -> std::string"""
9343 return _IMP_kernel._ConstRestraint___str__(self)
9347 """__repr__(_ConstRestraint self) -> std::string"""
9348 return _IMP_kernel._ConstRestraint___repr__(self)
9353 return _object_cast_to__ConstRestraint(o)
9355 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
9356 _ConstRestraint_swigregister(_ConstRestraint)
9358 class _ConstSingletonScore(SingletonScore):
9359 """Proxy of C++ IMP::internal::_ConstSingletonScore class"""
9360 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9361 __repr__ = _swig_repr
9363 def __init__(self, v):
9364 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
9365 this = _IMP_kernel.new__ConstSingletonScore(v)
9367 self.this.append(this)
9371 def do_get_inputs(self, arg2, arg3):
9372 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9373 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
9377 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
9378 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
9380 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
9381 _ConstSingletonScore_swigregister(_ConstSingletonScore)
9383 class _ConstPairScore(PairScore):
9384 """Proxy of C++ IMP::internal::_ConstPairScore class"""
9385 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9386 __repr__ = _swig_repr
9388 def __init__(self, v):
9389 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
9390 this = _IMP_kernel.new__ConstPairScore(v)
9392 self.this.append(this)
9396 def do_get_inputs(self, arg2, arg3):
9397 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9398 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
9402 """get_version_info(_ConstPairScore self) -> VersionInfo"""
9403 return _IMP_kernel._ConstPairScore_get_version_info(self)
9405 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
9406 _ConstPairScore_swigregister(_ConstPairScore)
9408 class _TrivialDecorator(Decorator):
9409 """Proxy of C++ IMP::internal::_TrivialDecorator class"""
9410 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9412 def __init__(self, *args):
9414 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
9415 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
9416 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
9418 this = _IMP_kernel.new__TrivialDecorator(*args)
9420 self.this.append(this)
9424 def show(self, *args):
9426 show(_TrivialDecorator self, _ostream out)
9427 show(_TrivialDecorator self)
9429 return _IMP_kernel._TrivialDecorator_show(self, *args)
9432 def setup_particle(*args):
9434 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9435 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9437 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9439 setup_particle = staticmethod(setup_particle)
9441 def get_is_setup(*args):
9443 get_is_setup(_ParticleAdaptor p) -> bool
9444 get_is_setup(Model m, ParticleIndex pi) -> bool
9446 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9448 get_is_setup = staticmethod(get_is_setup)
9452 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
9453 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9454 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9455 add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9456 add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9457 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
9458 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9459 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
9461 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
9464 def get_value(self, *args):
9466 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
9467 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
9468 get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
9469 get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
9470 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
9471 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
9472 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
9474 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
9477 def set_value(self, *args):
9479 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9480 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9481 set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9482 set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9483 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
9484 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9485 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
9487 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
9492 remove_attribute(_TrivialDecorator self, FloatKey a0)
9493 remove_attribute(_TrivialDecorator self, IntKey a0)
9494 remove_attribute(_TrivialDecorator self, FloatsKey a0)
9495 remove_attribute(_TrivialDecorator self, IntsKey a0)
9496 remove_attribute(_TrivialDecorator self, StringKey a0)
9497 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
9498 remove_attribute(_TrivialDecorator self, ObjectKey a0)
9500 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
9503 def has_attribute(self, *args):
9505 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
9506 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
9507 has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
9508 has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
9509 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
9510 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
9511 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
9513 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
9516 def get_derivative(self, a0):
9517 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
9518 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
9522 """get_name(_TrivialDecorator self) -> std::string"""
9523 return _IMP_kernel._TrivialDecorator_get_name(self)
9527 """clear_caches(_TrivialDecorator self)"""
9528 return _IMP_kernel._TrivialDecorator_clear_caches(self)
9531 def set_name(self, a0):
9532 """set_name(_TrivialDecorator self, std::string a0)"""
9533 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
9537 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
9538 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
9541 def add_to_derivative(self, a0, a1, a2):
9542 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9543 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
9547 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
9548 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
9551 def get_is_optimized(self, a0):
9552 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
9553 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
9556 def get_check_level(self):
9557 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
9558 return _IMP_kernel._TrivialDecorator_get_check_level(self)
9561 def __eq__(self, *args):
9563 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9564 __eq__(_TrivialDecorator self, Particle d) -> bool
9566 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
9569 def __ne__(self, *args):
9571 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9572 __ne__(_TrivialDecorator self, Particle d) -> bool
9574 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
9577 def __le__(self, *args):
9579 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9580 __le__(_TrivialDecorator self, Particle d) -> bool
9582 return _IMP_kernel._TrivialDecorator___le__(self, *args)
9585 def __lt__(self, *args):
9587 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9588 __lt__(_TrivialDecorator self, Particle d) -> bool
9590 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
9593 def __ge__(self, *args):
9595 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9596 __ge__(_TrivialDecorator self, Particle d) -> bool
9598 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
9601 def __gt__(self, *args):
9603 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9604 __gt__(_TrivialDecorator self, Particle d) -> bool
9606 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
9610 """__hash__(_TrivialDecorator self) -> std::size_t"""
9611 return _IMP_kernel._TrivialDecorator___hash__(self)
9615 """__str__(_TrivialDecorator self) -> std::string"""
9616 return _IMP_kernel._TrivialDecorator___str__(self)
9620 """__repr__(_TrivialDecorator self) -> std::string"""
9621 return _IMP_kernel._TrivialDecorator___repr__(self)
9623 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
9624 __del__ =
lambda self:
None
9625 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
9626 _TrivialDecorator_swigregister(_TrivialDecorator)
9628 def _TrivialDecorator_setup_particle(*args):
9630 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9631 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9633 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9635 def _TrivialDecorator_get_is_setup(*args):
9637 get_is_setup(_ParticleAdaptor p) -> bool
9638 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9640 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9642 class _TrivialDerivedDecorator(_TrivialDecorator):
9643 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class"""
9644 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9646 def __init__(self, *args):
9648 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
9649 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
9650 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
9652 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
9654 self.this.append(this)
9658 def show(self, *args):
9660 show(_TrivialDerivedDecorator self, _ostream out)
9661 show(_TrivialDerivedDecorator self)
9663 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
9666 def setup_particle(*args):
9668 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9669 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9671 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9673 setup_particle = staticmethod(setup_particle)
9675 def get_is_setup(*args):
9677 get_is_setup(_ParticleAdaptor p) -> bool
9678 get_is_setup(Model m, ParticleIndex pi) -> bool
9680 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9682 get_is_setup = staticmethod(get_is_setup)
9686 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
9687 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9688 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9689 add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9690 add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9691 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9692 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9693 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9695 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
9698 def get_value(self, *args):
9700 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
9701 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
9702 get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
9703 get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
9704 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
9705 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
9706 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
9708 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
9711 def set_value(self, *args):
9713 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9714 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9715 set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9716 set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9717 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9718 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9719 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9721 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
9726 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
9727 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
9728 remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
9729 remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
9730 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
9731 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
9732 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
9734 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
9737 def has_attribute(self, *args):
9739 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
9740 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
9741 has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
9742 has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
9743 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
9744 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
9745 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
9747 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
9750 def get_derivative(self, a0):
9751 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
9752 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
9756 """get_name(_TrivialDerivedDecorator self) -> std::string"""
9757 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
9761 """clear_caches(_TrivialDerivedDecorator self)"""
9762 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
9765 def set_name(self, a0):
9766 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
9767 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
9771 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
9772 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
9775 def add_to_derivative(self, a0, a1, a2):
9776 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9777 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
9781 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
9782 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
9785 def get_is_optimized(self, a0):
9786 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
9787 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
9790 def get_check_level(self):
9791 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
9792 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
9795 def __eq__(self, *args):
9797 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9798 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
9800 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
9803 def __ne__(self, *args):
9805 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9806 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
9808 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9811 def __le__(self, *args):
9813 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9814 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9816 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9819 def __lt__(self, *args):
9821 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9822 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9824 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9827 def __ge__(self, *args):
9829 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9830 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9832 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9835 def __gt__(self, *args):
9837 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9838 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9840 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9844 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9845 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9849 """__str__(_TrivialDerivedDecorator self) -> std::string"""
9850 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9854 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9855 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9857 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9858 __del__ =
lambda self:
None
9859 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9860 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9862 def _TrivialDerivedDecorator_setup_particle(*args):
9864 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9865 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9867 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9869 def _TrivialDerivedDecorator_get_is_setup(*args):
9871 get_is_setup(_ParticleAdaptor p) -> bool
9872 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9874 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9876 class _TrivialTraitsDecorator(Decorator):
9877 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class"""
9878 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9880 def get_decorator_traits(self):
9881 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9882 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9885 def get_default_decorator_traits():
9886 """get_default_decorator_traits() -> StringKey"""
9887 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9889 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9891 def __init__(self, *args):
9893 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9894 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9895 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9896 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9897 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9899 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9901 self.this.append(this)
9905 def show(self, *args):
9907 show(_TrivialTraitsDecorator self, _ostream out)
9908 show(_TrivialTraitsDecorator self)
9910 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9913 def setup_particle(*args):
9915 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9916 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9917 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9918 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9920 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9922 setup_particle = staticmethod(setup_particle)
9924 def get_is_setup(*args):
9926 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9927 get_is_setup(_ParticleAdaptor p) -> bool
9928 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9929 get_is_setup(Model m, ParticleIndex pi) -> bool
9931 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9933 get_is_setup = staticmethod(get_is_setup)
9935 def get_default_key():
9936 """get_default_key() -> StringKey"""
9937 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9939 get_default_key = staticmethod(get_default_key)
9943 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9944 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9945 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9946 add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9947 add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9948 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9949 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9950 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9952 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9955 def get_value(self, *args):
9957 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9958 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9959 get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
9960 get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
9961 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9962 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9963 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9965 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9968 def set_value(self, *args):
9970 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9971 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9972 set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9973 set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9974 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9975 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9976 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9978 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9983 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9984 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9985 remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
9986 remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
9987 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9988 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9989 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9991 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9994 def has_attribute(self, *args):
9996 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9997 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9998 has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
9999 has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
10000 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
10001 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
10002 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
10004 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
10007 def get_derivative(self, a0):
10008 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
10009 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
10012 def get_name(self):
10013 """get_name(_TrivialTraitsDecorator self) -> std::string"""
10014 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
10018 """clear_caches(_TrivialTraitsDecorator self)"""
10019 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
10022 def set_name(self, a0):
10023 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
10024 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
10028 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
10029 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
10032 def add_to_derivative(self, a0, a1, a2):
10033 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10034 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
10038 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
10039 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
10042 def get_is_optimized(self, a0):
10043 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
10044 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
10047 def get_check_level(self):
10048 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
10049 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
10052 def __eq__(self, *args):
10054 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10055 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
10057 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
10060 def __ne__(self, *args):
10062 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10063 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
10065 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
10068 def __le__(self, *args):
10070 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10071 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
10073 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
10076 def __lt__(self, *args):
10078 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10079 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
10081 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
10084 def __ge__(self, *args):
10086 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10087 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
10089 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
10092 def __gt__(self, *args):
10094 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10095 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
10097 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
10100 def __hash__(self):
10101 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
10102 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
10106 """__str__(_TrivialTraitsDecorator self) -> std::string"""
10107 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
10110 def __repr__(self):
10111 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
10112 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
10114 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
10115 __del__ =
lambda self:
None
10116 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
10117 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
10119 def _TrivialTraitsDecorator_get_default_decorator_traits():
10120 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
10121 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
10123 def _TrivialTraitsDecorator_setup_particle(*args):
10125 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
10126 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
10127 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
10128 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
10130 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
10132 def _TrivialTraitsDecorator_get_is_setup(*args):
10134 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
10135 get_is_setup(_ParticleAdaptor p) -> bool
10136 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
10137 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
10139 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
10141 def _TrivialTraitsDecorator_get_default_key():
10142 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
10143 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
10146 def __lshift__(*args):
10148 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
10149 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
10150 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
10152 return _IMP_kernel.__lshift__(*args)
10153 class _ConstOptimizer(Optimizer):
10154 """Proxy of C++ IMP::internal::_ConstOptimizer class"""
10155 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10157 def __init__(self, m):
10158 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
10159 this = _IMP_kernel.new__ConstOptimizer(m)
10161 self.this.append(this)
10165 def do_optimize(self, max_steps):
10166 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
10167 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
10171 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
10172 return _IMP_kernel._ConstOptimizer_get_version_info(self)
10176 """__str__(_ConstOptimizer self) -> std::string"""
10177 return _IMP_kernel._ConstOptimizer___str__(self)
10180 def __repr__(self):
10181 """__repr__(_ConstOptimizer self) -> std::string"""
10182 return _IMP_kernel._ConstOptimizer___repr__(self)
10187 return _object_cast_to__ConstOptimizer(o)
10189 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
10190 _ConstOptimizer_swigregister(_ConstOptimizer)
10194 """get_particle(Particle p) -> Particle"""
10195 return _IMP_kernel.get_particle(p)
10197 def _decorator_test(p):
10198 """_decorator_test(Particle p)"""
10199 return _IMP_kernel._decorator_test(p)
10201 def _overloaded_decorator(*args):
10203 _overloaded_decorator(_TrivialDecorator a) -> int
10204 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
10206 return _IMP_kernel._overloaded_decorator(*args)
10208 def _take_particles(*args):
10210 _take_particles(IMP::Particles const & ps) -> unsigned int
10211 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
10212 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
10214 return _IMP_kernel._take_particles(*args)
10216 def _give_particles(m):
10217 """_give_particles(Model m) -> IMP::Particles const &"""
10218 return _IMP_kernel._give_particles(m)
10220 def _pass_particles(ps):
10221 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
10222 return _IMP_kernel._pass_particles(ps)
10224 def _pass_particle(ps):
10225 """_pass_particle(Particle ps) -> Particle"""
10226 return _IMP_kernel._pass_particle(ps)
10228 def _pass_particle_pair(pp):
10229 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
10230 return _IMP_kernel._pass_particle_pair(pp)
10232 def _give_particles_copy(m):
10233 """_give_particles_copy(Model m) -> IMP::Particles"""
10234 return _IMP_kernel._give_particles_copy(m)
10236 def _pass_float_keys(input):
10237 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
10238 return _IMP_kernel._pass_float_keys(input)
10242 _pass(IMP::Particles const & p) -> IMP::Particles const
10243 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
10245 return _IMP_kernel._pass(*args)
10247 def _pass_decorators(p):
10248 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
10249 return _IMP_kernel._pass_decorators(p)
10251 def _pass_decorator_traits(p):
10252 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
10253 return _IMP_kernel._pass_decorator_traits(p)
10255 def _pass_particle_pairs(p):
10256 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
10257 return _IMP_kernel._pass_particle_pairs(p)
10259 def _pass_particle_index_pairs(p):
10260 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
10261 return _IMP_kernel._pass_particle_index_pairs(p)
10263 def _pass_model_objects(p):
10264 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
10265 return _IMP_kernel._pass_model_objects(p)
10267 def _pass_particles_temps(ps):
10268 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
10269 return _IMP_kernel._pass_particles_temps(ps)
10271 def _test_overload(*args):
10273 _test_overload(IMP::Particles const & ps) -> int
10274 _test_overload(IMP::Restraints const & ps) -> int
10276 return _IMP_kernel._test_overload(*args)
10278 def _get_range(m, k):
10279 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
10280 return _IMP_kernel._get_range(m, k)
10282 def _create_particles_from_pdb(name, m):
10283 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
10284 return _IMP_kernel._create_particles_from_pdb(name, m)
10285 class _LogPairScore(PairScore):
10286 """Proxy of C++ IMP::internal::_LogPairScore class"""
10287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10288 __repr__ = _swig_repr
10290 def __init__(self):
10291 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
10292 this = _IMP_kernel.new__LogPairScore()
10294 self.this.append(this)
10298 def do_get_inputs(self, arg2, arg3):
10299 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10300 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
10304 """get_version_info(_LogPairScore self) -> VersionInfo"""
10305 return _IMP_kernel._LogPairScore_get_version_info(self)
10308 def get_particle_pairs(self):
10309 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
10310 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
10314 """clear(_LogPairScore self)"""
10315 return _IMP_kernel._LogPairScore_clear(self)
10318 def get_contains(self, pp):
10319 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
10320 return _IMP_kernel._LogPairScore_get_contains(self, pp)
10322 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
10323 _LogPairScore_swigregister(_LogPairScore)
10326 def _overloaded_particles(*args):
10328 _overloaded_particles(Particle arg1)
10329 _overloaded_particles(IMP::Particles const & arg1)
10330 _overloaded_particles(IMP::ParticlesTemp const & arg1)
10331 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
10332 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
10333 _overloaded_particles(_TrivialDecorator arg1)
10335 return _IMP_kernel._overloaded_particles(*args)
10336 class _ImplicitParticles(object):
10337 """Proxy of C++ IMP::internal::_ImplicitParticles class"""
10338 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10339 __repr__ = _swig_repr
10341 def __init__(self, *args):
10343 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
10344 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
10345 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
10346 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
10347 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
10348 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
10350 this = _IMP_kernel.new__ImplicitParticles(*args)
10352 self.this.append(this)
10355 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
10356 __del__ =
lambda self:
None
10357 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
10358 _ImplicitParticles_swigregister(_ImplicitParticles)
10361 def _implicit_particles(arg1):
10362 """_implicit_particles(_ImplicitParticles arg1)"""
10363 return _IMP_kernel._implicit_particles(arg1)
10365 def _take_particle_adaptor(pa):
10366 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
10367 return _IMP_kernel._take_particle_adaptor(pa)
10369 def _take_particle_indexes_adaptor(pa):
10370 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
10371 return _IMP_kernel._take_particle_indexes_adaptor(pa)
10372 class ScopedSetFloatAttribute(_RAII):
10373 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
10374 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10376 def __init__(self, *args):
10378 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
10379 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
10381 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
10383 self.this.append(this)
10387 def set(self, p, key, value):
10388 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
10389 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
10393 """reset(ScopedSetFloatAttribute self)"""
10394 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
10396 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
10397 __del__ =
lambda self:
None
10399 def show(self, *args):
10401 show(ScopedSetFloatAttribute self, _ostream out)
10402 show(ScopedSetFloatAttribute self)
10404 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
10408 """__str__(ScopedSetFloatAttribute self) -> std::string"""
10409 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
10412 def __repr__(self):
10413 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
10414 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
10416 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
10417 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
10420 def _get_module_data_path(module, file_name):
10421 """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
10422 return _IMP_kernel._get_module_data_path(module, file_name)
10424 def _get_module_example_path(module, file_name):
10425 """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
10426 return _IMP_kernel._get_module_example_path(module, file_name)
10435 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
10436 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
10437 pathcomps = os.environ[
'PATH'].split(
";")
10439 if d
not in pathcomps:
10440 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
10448 """Allow command line tools to easily implement multiple commands.
10449 Typically, an IMP command line tool will use an instance of this class
10450 to provide a consistent interface to multiple distinct commands
10451 from a single binary, rather than providing a potentially large
10452 number of binaries. This is similar to the way a number of common
10453 command line tools outside of IMP function (e.g. Git provides a single
10454 `git` tool which implements multiple commands - `git add`, `git commit`,
10455 `git push` and so on).
10457 Each command is implemented with a Python module of the same name
10458 that can be imported from the module (for example, if `module_name`
10459 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
10460 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
10461 Each such module should have a docstring and a `%main()` method
10462 that takes no arguments (the module should also call its `%main()` method
10463 if it is run directly, i.e. with something like
10464 `if __name__=="__main__": %main()`). The encompassing module
10465 (`IMP.foo` in the example) should define `_all_commands` as a Python
10466 list of all valid commands.
10468 See the `multifit` and `cnmultifit` command line tools for example
10474 @param short_help A few words that describe the command line tool.
10475 @param long_help Longer text, used in the `help` command.
10476 @param module_name Name of the module (e.g. `IMP.foo`) that
10477 implements the commands.
10479 self.short_help = short_help
10480 self.long_help = long_help
10481 self.module_name = module_name
10482 self._all_commands = self.import_module()._all_commands
10483 self._progname = os.path.basename(sys.argv[0])
10486 """Call this method to act upon the user-provided command line"""
10487 if len(sys.argv) <= 1:
10488 print(self.short_help +
" Use '%s help' for help." % self._progname)
10490 command = sys.argv[1]
10491 if command
in (
'help',
'--help',
'-h'):
10492 if len(sys.argv) == 3:
10493 self.show_command_help(sys.argv[2])
10496 elif command ==
'--version':
10497 self.show_version()
10498 elif command
in self._all_commands:
10499 self.do_command(command)
10501 self.unknown_command(command)
10503 def import_module(self, mod=None):
10504 modname = self.module_name
10505 if mod
is not None:
10506 modname +=
"." + mod
10507 return __import__(modname, {}, {}, [
''])
10509 def unknown_command(self, command):
10510 print(
"Unknown command: '%s'" % command)
10511 print(
"Use '%s help' for help." % self._progname)
10514 def _get_version(self):
10517 def show_version(self):
10518 print(self._progname +
' ' + self._get_version())
10520 def show_help(self):
10521 ver = self._get_version()
10522 print(
"%s, version %s." % (self._progname, ver))
10523 print(self.long_help +
"""
10525 This program is part of IMP, the Integrative Modeling Platform,
10526 which is Copyright 2007-2022 IMP Inventors.
10527 For additional information about IMP, see <https://integrativemodeling.org>.
10529 Usage: %s <command> [options] [args]
10531 Commands:""" % self._progname)
10532 commands = self._all_commands[:] + [
'help']
10534 cmdlen = max([len(c)
for c
in commands])
10537 doc =
'Get help on using %s.' % self._progname
10539 doc = self.import_module(c).__doc__
or "<no help>"
10540 c +=
' ' * (cmdlen - len(c))
10541 print(
' ' + c +
' ' + doc)
10543 Use "%s help <command>" for detailed help on any command
10544 or "%s --version" to see the version number.""" % (self._progname,
10547 def do_command(self, command):
10548 mod = self.import_module(command)
10549 sys.argv[0] = self._progname +
' ' + command
10553 def show_command_help(self, command):
10554 if command ==
'help':
10556 elif command
in self._all_commands
or command ==
'help':
10557 mod = self.import_module(command)
10558 sys.argv = [self._progname +
' ' + command,
'--help']
10561 self.unknown_command(command)
10568 g = networkx.DiGraph()
10569 if len(ig.get_vertices()) == 0:
10578 return self.p.get_name()
10580 def __call__(self, name):
10581 return self.p.__call__(name)
10583 for vi
in ig.get_vertices():
10584 n = ig.get_vertex_name(vi)
10585 g.add_node(NodeWrapper(n))
10586 for vi
in ig.get_vertices():
10587 n = ig.get_vertex_name(vi)
10588 for ni
in ig.get_out_neighbors(vi):
10589 nn = ig.get_vertex_name(ni)
10590 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
10597 n0 = name.get_name()
10600 n1 = str(n0).replace(
'"',
'')
10601 n2 = n1.replace(
"\n",
'')
10604 from altgraph
import Graph, Dot
10605 graph = Graph.Graph()
10606 for i, v
in enumerate(g.get_vertices()):
10608 for i, v
in enumerate(g.get_vertices()):
10609 for n
in g.get_out_neighbors(v):
10610 graph.add_edge(v, n)
10611 dot = Dot.Dot(graph)
10612 for i, v
in enumerate(g.get_vertices()):
10613 dot.node_style(i, label=clean(g.get_vertex_name(v)))
10621 st = g.get_graphviz_string()
10622 with open(tfn,
"w")
as fh:
10625 print(
"running dot")
10626 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
10630 sys.stderr.write(
"The dot command from the graphviz package was not found. Please make sure it is in the PATH passed to IMP.\n")
10633 if platform.system() ==
"Darwin":
10636 cmd = [
"gv",
"acroread",
"xpdf"]
10639 print(
"launching viewer " + c)
10641 subprocess.check_call([c, tfon])
10647 print(
"Could not display file. It is saved at " + tfon)
10657 """Mark a Python module as deprecated.
10658 @note The `module` argument would normally be `__name__`.
10659 @see [deprecation support](@ref deprecation)."""
10661 "Module %s is deprecated. %s\n" % (module, help_message))
10664 """Python decorator to mark a class as deprecated.
10665 @see [deprecation support](@ref deprecation)."""
10667 orig_init = obj.__init__
10670 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
10671 def __init__(obj, *args, **keys):
10673 % (type(obj), help_message))
10674 orig_init(obj, *args, **keys)
10675 obj.__init__ = __init__
10680 """Python decorator to mark a method as deprecated.
10681 @see [deprecation support](@ref deprecation)."""
10682 def out_wrapper(obj):
10683 @functools.wraps(obj)
10684 def wrapper(cls, *args, **keys):
10686 % (obj.__name__, type(cls), help_message))
10687 return obj(cls, *args, **keys)
10692 """Python decorator to mark a function as deprecated.
10693 @see [deprecation support](@ref deprecation)."""
10694 def out_wrapper(obj):
10695 @functools.wraps(obj)
10696 def wrapper(*args, **keys):
10698 % (obj.__name__, help_message))
10699 return obj(*args, **keys)
10703 @contextlib.contextmanager
10705 """Context manager to temporarily allow (or disallow) deprecated code.
10706 @see [deprecation support](@ref deprecation)."""
10713 def _get_all_flags(ntokens):
10714 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
10715 return _IMP_kernel._get_all_flags(ntokens)
10717 def _print_internal_help(out, description):
10718 """_print_internal_help(_ostream out, std::string description)"""
10719 return _IMP_kernel._print_internal_help(out, description)
10725 class _PassThroughAction(argparse.Action):
10726 """Pass an argument through to the IMP Boost parser"""
10727 def __call__(self, parser, namespace, values, option_string=None):
10728 parser._boost_command_line.append(option_string)
10730 parser._boost_command_line.append(values)
10733 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
10734 parser._handle_boost()
10738 """IMP-specific subclass of argparse.ArgumentParser.
10739 This adds options common to all IMP applications
10740 (see IMP::setup_from_argv()).
10743 def __init__(self, *args, **kwargs):
10745 kwargs[
'add_help'] =
False
10746 super(ArgumentParser, self).__init__(*args, **kwargs)
10747 for ntoken
in (0, 1):
10748 flags = _get_all_flags(ntoken)
10750 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
10751 self.add_argument(*arg, help=argparse.SUPPRESS,
10752 nargs=
None if ntoken
else 0,
10753 action=_PassThroughAction,
10754 default=argparse.SUPPRESS)
10757 """Parse the command line and return optional and positional arguments.
10758 This functions in the same way as the method in the base class
10759 argparse.ArgumentParser, except that it also processes optional
10760 arguments common to all IMP applications (these are not returned
10761 in `args`, but can be obtained in the usual way, e.g. by calling
10762 IMP::get_string_flag()).
10765 self._boost_command_line = [sys.argv[0]]
10766 ret = super(ArgumentParser, self).
parse_args(args, namespace)
10767 if len(self._boost_command_line) > 1:
10768 self._handle_boost()
10771 def _get_description(self):
10772 return self.format_help() +
"\nOptions common to all IMP applications:"
10774 def print_help(self, file=None):
10775 _print_internal_help(file
if file
else sys.stdout,
10776 self._get_description())
10778 def _handle_boost(self):
10780 self._get_description(),
10783 class RandomNumberGenerator(object):
10784 """Proxy of C++ IMP::RandomNumberGenerator class"""
10785 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10786 __repr__ = _swig_repr
10789 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
10790 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
10793 def __call__(self):
10794 """__call__(RandomNumberGenerator self) -> int"""
10795 return _IMP_kernel.RandomNumberGenerator___call__(self)
10798 def __init__(self):
10799 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
10800 this = _IMP_kernel.new_RandomNumberGenerator()
10802 self.this.append(this)
10805 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
10806 __del__ =
lambda self:
None
10807 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10808 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10813 get_random_float_uniform() -> float
10814 get_random_float_uniform(float min, float max) -> float
10816 return _IMP_kernel.get_random_float_uniform(*args)
10820 get_random_double_uniform() -> double
10821 get_random_double_uniform(double min, double max) -> double
10823 return _IMP_kernel.get_random_double_uniform(*args)
10825 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10827 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10828 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10829 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10831 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10833 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10835 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10836 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10837 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10839 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10841 def get_random_floats_uniform(n):
10842 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10843 return _IMP_kernel.get_random_floats_uniform(n)
10845 def get_random_doubles_uniform(n):
10846 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10847 return _IMP_kernel.get_random_doubles_uniform(n)
10850 """get_random_seed() -> boost::uint64_t"""
10851 return _IMP_kernel.get_random_seed()
10853 def _get_derivatives_numpy(m, k, m_pyobj):
10854 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10855 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10857 def _get_floats_numpy(m, k, m_pyobj):
10858 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10859 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10861 def _get_ints_numpy(m, k, m_pyobj):
10862 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10863 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10865 def _get_spheres_numpy(m, m_pyobj):
10866 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10867 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10869 def _get_sphere_derivatives_numpy(m, m_pyobj):
10870 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10871 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10875 ParticleIndex = numpy.int32
10876 except ImportError:
10881 """get_module_version() -> std::string const"""
10882 return _IMP_kernel.get_module_version()
10885 """get_example_path(std::string fname) -> std::string"""
10886 return _IMP_kernel.get_example_path(fname)
10889 """get_data_path(std::string fname) -> std::string"""
10890 return _IMP_kernel.get_data_path(fname)
10892 from .
import _version_check
10897 random_number_generator = cvar.random_number_generator
Particle * get_particle(ParticleIndex p) const
Get the particle from an index.
def get_ints_numpy
Get the model's attribute array for IntKey k as a NumPy array.
void add_int_flag(std::string name, size_t default_value, std::string description)
Allow command line tools to easily implement multiple commands.
CheckLevel get_check_level()
Get the current audit mode.
Key< 11 > TriggerKey
The type used to identify changed model properties.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
def allow_deprecated
Context manager to temporarily allow (or disallow) deprecated code.
std::string get_unique_name(std::string templ)
Return a unique name produced from the string.
DependencyGraph get_dependency_graph(Model *m)
def get_floats_numpy
Get the model's attribute array for FloatKey k as a NumPy array.
Objects get_live_objects()
Return pointers to all live objects.
Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
def main
Call this method to act upon the user-provided command line.
boost::graph DependencyGraph
Directed graph on the interactions between the various objects in the model.
ContainersTemp get_input_containers(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
def deprecated_module
Mark a Python module as deprecated.
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
Array< 4, WeakPointer< Particle >, Particle * > ParticleQuad
bool get_bool_flag(std::string name)
void handle_use_deprecated(std::string message)
Break in this method in gdb to find deprecated uses at runtime.
void set_progress_display(std::string description, unsigned int steps)
Set up the progress bar with the passed description.
def deprecated_function
Python decorator to mark a function as deprecated.
virtual ::IMP::VersionInfo get_version_info() const override
Get information about the module and version of the object.
void remove_attribute(TypeKey attribute_key, ParticleIndex particle)
remove particle attribute with the specied key
Index< ParticleIndexTag > ParticleIndex
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
Key< 6 > ParticleIndexesKey
The type used to identify a particle attribute in the Particles.
Array< 3, WeakPointer< Particle >, Particle * > ParticleTriplet
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
void add_particle(RMF::FileHandle fh, Particle *hs)
virtual void clear_caches()
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_string_flag(std::string name, std::string default_value, std::string description)
LogLevel get_log_level()
Get the currently active global log level.
def get_sphere_derivatives_numpy
Get the model's XYZR attribute derivatives arrays as NumPy arrays.
void set_deprecation_warnings(bool tf)
Toggle printing of warnings on using deprecated classes.
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file. The path can be extracted from the TextOutput.
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
Create a ScoringFunction on a single restraint.
void write_help(std::ostream &out=std::cerr)
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
size_t get_int_flag(std::string name)
Key< 10 > FloatsKey
The type used to identify float vector attributes in the Particles.
void add_restraint(RMF::FileHandle fh, Restraint *hs)
boost::uint64_t get_random_seed()
Return the initial random seed.
Key< 3 > ParticleIndexKey
The type used to identify a particle attribute in the Particles.
Strings get_live_object_names()
Return the names of all live objects.
void add_to_progress_display(unsigned int step=1)
Set the current progress.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
add particle atribute with the specied key and initial value
void add_float_flag(std::string name, double default_value, std::string description)
virtual void do_destroy()
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
ParticleIndexes get_particle_indexes(ParticlesTemp const &particles)
def deprecated_method
Python decorator to mark a method as deprecated.
void reset_log_timer()
Reset the log timer.
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for Python.
def parse_args
Parse the command line and return optional and positional arguments.
void set_is_optimized(TypeKey attribute_key, ParticleIndex particle, bool true_or_false)
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
Version and module information for Objects.
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
std::string get_relative_path(std::string base, std::string relative)
Return a path to a file relative to another file.
void set_deprecation_exceptions(bool tf)
Toggle whether an exception is thrown when a deprecated method is used.
def get_spheres_numpy
Get the model's XYZR attribute arrays as NumPy arrays.
Key< 4 > ObjectKey
The type used to identify an Object attribute.
Interface to specialized Particle types (e.g. atoms)
IMP-specific subclass of argparse.ArgumentParser.
def get_derivatives_numpy
Get the model's attribute derivatives array for FloatKey k as a NumPy array.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_absolute_path(std::string file)
Convert a possibly relative path to an absolute path.
std::string get_executable_name()
Return the name of the current executable.
void set_log_level(LogLevel l)
Set the current global log level.
unsigned int get_number_of_threads()
float get_random_float_uniform()
Return a uniformly distributed float number in range [0..1)
def deprecated_object
Python decorator to mark a class as deprecated.
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
void set_show_leaked_objects(bool tf)
Set whether to complain about objects not being properly cleaned up.
bool get_deprecation_exceptions()
Get whether an exception is thrown when a deprecated method is used.
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
DependencyGraph get_pruned_dependency_graph(Model *m)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Object(std::string name)
Construct an object with the given name.
Array< 2, WeakPointer< Particle >, Particle * > ParticlePair
Key< 5 > IntsKey
The type used to identify int attributes in the Particles.
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
std::string show_graphviz(Graph g)
void set_check_level(CheckLevel l)
std::string get_string_flag(std::string name)
networkx::DiGraph get_networkx_graph(Graph g)
double get_random_double_uniform()
Return a uniformly distributed double number in range [0..1)
Key< 8 > ModelKey
The type used to identify data stored directly in the model.
void show_altgraph(Graph g)
void update()
Sometimes it is useful to be able to make sure the model is up to date.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
void add_bool_flag(std::string name, std::string description)
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
void read_particles_from_buffer(const Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
Abstract single variable functor class for score functions.
void set_number_of_threads(unsigned int n)
double get_float_flag(std::string name)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
ScoreStatesTemp get_update_order(ScoreStatesTemp input)
std::string get_module_version()
Return the version of this module, as a string.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.