11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
44 def _swig_setattr_nondynamic_class_variable(set):
45 def set_class_attr(cls, name, value):
46 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
53 def _swig_add_metaclass(metaclass):
54 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
60 class _SwigNonDynamicMeta(type):
61 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
67 class IMP_KERNEL_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
72 def __init__(self, *args, **kwargs):
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
78 r"""value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
79 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
82 r"""incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator"""
83 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator"""
87 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
89 def distance(self, x):
90 r"""distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
91 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
94 r"""equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
95 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
99 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
102 r"""next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
103 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
106 r"""__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
107 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
110 r"""previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
111 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
113 def advance(self, n):
114 r"""advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
115 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
118 r"""__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
119 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
123 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
125 def __iadd__(self, n):
126 r"""__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
127 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
129 def __isub__(self, n):
130 r"""__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
131 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
133 def __add__(self, n):
134 r"""__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
135 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
137 def __sub__(self, *args):
139 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
140 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
147 _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
154 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
156 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
158 IMP_SILENT = _IMP_kernel.IMP_SILENT
160 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
162 IMP_TERSE = _IMP_kernel.IMP_TERSE
164 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
166 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
168 IMP_NONE = _IMP_kernel.IMP_NONE
170 IMP_USAGE = _IMP_kernel.IMP_USAGE
172 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_kernel.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_kernel.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_kernel.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
203 def register(self, obj):
204 """Take a reference to a director object; will only work for
205 refcounted C++ classes"""
206 if hasattr(obj,
'get_ref_count'):
207 self._objects.append(obj)
209 """Only drop our reference and allow cleanup by Python if no other
210 Python references exist (we hold 3 references: one in self._objects,
211 one in x, and one in the argument list for getrefcount) *and* no
212 other C++ references exist (the Python object always holds one)"""
213 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
214 or x.get_ref_count() > 1]
218 def get_object_count(self):
219 """Get number of director objects (useful for testing only)"""
220 return len(self._objects)
221 _director_objects = _DirectorObjects()
223 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
225 NONE = _IMP_kernel.NONE
227 USAGE = _IMP_kernel.USAGE
229 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
233 r"""set_check_level(IMP::CheckLevel tf)"""
234 return _IMP_kernel.set_check_level(tf)
237 r"""get_check_level() -> IMP::CheckLevel"""
238 return _IMP_kernel.get_check_level()
240 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
241 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
242 from _IMP_kernel
import TypeException
244 class _ostream(object):
245 r"""Proxy of C++ std::ostream class."""
247 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
249 def __init__(self, *args, **kwargs):
250 raise AttributeError(
"No constructor defined")
251 __repr__ = _swig_repr
253 def write(self, osa_buf):
254 r"""write(_ostream self, char const * osa_buf)"""
255 return _IMP_kernel._ostream_write(self, osa_buf)
258 _IMP_kernel._ostream_swigregister(_ostream)
259 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
262 from .
import _list_util
265 _models_set = weakref.WeakSet()
267 def _models_set_get(m):
268 for x
in _models_set:
273 _raii_types.append(
"SetLogState")
276 _raii_types.append(
"SetNumberOfThreads")
279 _raii_types.append(
"SetCheckState")
282 _object_types.append(
"Object")
285 def _object_cast_to_Object(o):
286 r"""_object_cast_to_Object(Object * o) -> Object"""
287 return _IMP_kernel._object_cast_to_Object(o)
289 _object_types.append(
"_TestObject")
292 def _object_cast_to__TestObject(o):
293 r"""_object_cast_to__TestObject(Object * o) -> _TestObject"""
294 return _IMP_kernel._object_cast_to__TestObject(o)
297 _plural_types.append(
"VersionInfos")
298 _value_types.append(
"VersionInfo")
301 _raii_types.append(
"CreateLogContext")
304 _raii_types.append(
"WarningContext")
307 _raii_types.append(
"SetLogTarget")
311 _plural_types.append(
"_TestValues")
312 _value_types.append(
"_TestValue")
316 _plural_types.append(
"Floats")
317 _value_types.append(
"Float")
321 _plural_types.append(
"Ints")
322 _value_types.append(
"Int")
326 _plural_types.append(
"Strings")
327 _value_types.append(
"String")
331 _plural_types.append(
"_Protections")
332 _value_types.append(
"_Protection")
334 class _InputAdaptor(object):
335 r"""Proxy of C++ IMP::InputAdaptor class."""
337 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
339 def __init__(self, *args, **kwargs):
340 raise AttributeError(
"No constructor defined")
341 __repr__ = _swig_repr
343 def __getstate__(self):
344 raise NotImplementedError(str(self.__class__)
345 +
" does not support serialization")
347 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
350 _IMP_kernel._InputAdaptor_swigregister(_InputAdaptor)
351 class _NonCopyable(object):
352 r"""Proxy of C++ IMP::NonCopyable class."""
354 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
356 def __init__(self, *args, **kwargs):
357 raise AttributeError(
"No constructor defined")
358 __repr__ = _swig_repr
359 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
362 _IMP_kernel._NonCopyable_swigregister(_NonCopyable)
363 class _RAII(_NonCopyable):
364 r"""Proxy of C++ IMP::RAII class."""
366 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
368 def __init__(self, *args, **kwargs):
369 raise AttributeError(
"No constructor defined")
370 __repr__ = _swig_repr
371 __swig_destroy__ = _IMP_kernel.delete__RAII
374 _IMP_kernel._RAII_swigregister(_RAII)
375 class _Value(object):
376 r"""Proxy of C++ IMP::Value class."""
378 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
380 def __init__(self, *args, **kwargs):
381 raise AttributeError(
"No constructor defined")
382 __repr__ = _swig_repr
384 def __getstate__(self):
385 raise NotImplementedError(str(self.__class__)
386 +
" does not support serialization")
388 __swig_destroy__ = _IMP_kernel.delete__Value
391 _IMP_kernel._Value_swigregister(_Value)
394 r"""get_executable_name() -> std::string"""
395 return _IMP_kernel.get_executable_name()
399 setup_from_argv(IMP::Strings const & argv, std::string description)
400 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
402 return _IMP_kernel.setup_from_argv(*args)
405 r"""add_string_flag(std::string name, std::string default_value, std::string description)"""
406 return _IMP_kernel.add_string_flag(name, default_value, description)
409 r"""get_string_flag(std::string name) -> std::string"""
410 return _IMP_kernel.get_string_flag(name)
413 r"""add_int_flag(std::string name, size_t default_value, std::string description)"""
414 return _IMP_kernel.add_int_flag(name, default_value, description)
417 r"""get_int_flag(std::string name) -> size_t"""
418 return _IMP_kernel.get_int_flag(name)
421 r"""add_bool_flag(std::string name, std::string description)"""
422 return _IMP_kernel.add_bool_flag(name, description)
425 r"""get_bool_flag(std::string name) -> bool"""
426 return _IMP_kernel.get_bool_flag(name)
429 r"""add_float_flag(std::string name, double default_value, std::string description)"""
430 return _IMP_kernel.add_float_flag(name, default_value, description)
433 r"""get_float_flag(std::string name) -> double"""
434 return _IMP_kernel.get_float_flag(name)
437 r"""write_help(_ostream out=std::cerr)"""
438 return _IMP_kernel.write_help(*args)
441 r"""get_is_quick_test() -> bool"""
442 return _IMP_kernel.get_is_quick_test()
443 DEFAULT = _IMP_kernel.DEFAULT
445 SILENT = _IMP_kernel.SILENT
447 WARNING = _IMP_kernel.WARNING
449 PROGRESS = _IMP_kernel.PROGRESS
451 TERSE = _IMP_kernel.TERSE
453 VERBOSE = _IMP_kernel.VERBOSE
455 MEMORY = _IMP_kernel.MEMORY
457 ALL_LOG = _IMP_kernel.ALL_LOG
459 class VersionInfo(_Value):
460 r"""Proxy of C++ IMP::VersionInfo class."""
462 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
464 def __init__(self, *args):
466 __init__(VersionInfo self, std::string module, std::string version) -> VersionInfo
467 __init__(VersionInfo self) -> VersionInfo
469 _IMP_kernel.VersionInfo_swiginit(self, _IMP_kernel.new_VersionInfo(*args))
471 def get_module(self):
472 r"""get_module(VersionInfo self) -> std::string"""
473 return _IMP_kernel.VersionInfo_get_module(self)
475 def get_version(self):
476 r"""get_version(VersionInfo self) -> std::string"""
477 return _IMP_kernel.VersionInfo_get_version(self)
479 def show(self, *args):
480 r"""show(VersionInfo self, _ostream out=std::cout)"""
481 return _IMP_kernel.VersionInfo_show(self, *args)
483 def __cmp__(self, o):
484 r"""__cmp__(VersionInfo self, VersionInfo o) -> int"""
485 return _IMP_kernel.VersionInfo___cmp__(self, o)
488 r"""__eq__(VersionInfo self, VersionInfo o) -> bool"""
489 return _IMP_kernel.VersionInfo___eq__(self, o)
492 r"""__ne__(VersionInfo self, VersionInfo o) -> bool"""
493 return _IMP_kernel.VersionInfo___ne__(self, o)
496 r"""__lt__(VersionInfo self, VersionInfo o) -> bool"""
497 return _IMP_kernel.VersionInfo___lt__(self, o)
500 r"""__gt__(VersionInfo self, VersionInfo o) -> bool"""
501 return _IMP_kernel.VersionInfo___gt__(self, o)
504 r"""__ge__(VersionInfo self, VersionInfo o) -> bool"""
505 return _IMP_kernel.VersionInfo___ge__(self, o)
508 r"""__le__(VersionInfo self, VersionInfo o) -> bool"""
509 return _IMP_kernel.VersionInfo___le__(self, o)
512 r"""__str__(VersionInfo self) -> std::string"""
513 return _IMP_kernel.VersionInfo___str__(self)
516 r"""__repr__(VersionInfo self) -> std::string"""
517 return _IMP_kernel.VersionInfo___repr__(self)
519 def _get_as_binary(self):
520 r"""_get_as_binary(VersionInfo self) -> PyObject *"""
521 return _IMP_kernel.VersionInfo__get_as_binary(self)
523 def _set_from_binary(self, p):
524 r"""_set_from_binary(VersionInfo self, PyObject * p)"""
525 return _IMP_kernel.VersionInfo__set_from_binary(self, p)
527 def __getstate__(self):
528 p = self._get_as_binary()
529 if len(self.__dict__) > 1:
530 d = self.__dict__.copy()
535 def __setstate__(self, p):
536 if not hasattr(self,
'this'):
538 if isinstance(p, tuple):
540 self.__dict__.update(d)
541 return self._set_from_binary(p)
543 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
546 _IMP_kernel.VersionInfo_swigregister(VersionInfo)
547 class TextOutput(_InputAdaptor):
548 r"""Proxy of C++ IMP::TextOutput class."""
550 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
551 __repr__ = _swig_repr
553 def __init__(self, *args):
555 __init__(TextOutput self, int arg2) -> TextOutput
556 __init__(TextOutput self, double arg2) -> TextOutput
557 __init__(TextOutput self, char const * c, bool append=False) -> TextOutput
558 __init__(TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
559 __init__(TextOutput self) -> TextOutput
560 __init__(TextOutput self, std::string file_name, bool append=False) -> TextOutput
562 _IMP_kernel.TextOutput_swiginit(self, _IMP_kernel.new_TextOutput(*args))
564 def show(self, *args):
565 r"""show(TextOutput self, _ostream out=std::cout)"""
566 return _IMP_kernel.TextOutput_show(self, *args)
569 r"""get_name(TextOutput self) -> std::string"""
570 return _IMP_kernel.TextOutput_get_name(self)
571 __swig_destroy__ = _IMP_kernel.delete_TextOutput
574 _IMP_kernel.TextOutput_swigregister(TextOutput)
575 class TextInput(_InputAdaptor):
576 r"""Proxy of C++ IMP::TextInput class."""
578 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
579 __repr__ = _swig_repr
581 def __init__(self, *args):
583 __init__(TextInput self, int arg2) -> TextInput
584 __init__(TextInput self, double arg2) -> TextInput
585 __init__(TextInput self, char const * c) -> TextInput
586 __init__(TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
587 __init__(TextInput self) -> TextInput
588 __init__(TextInput self, std::string file_name) -> TextInput
590 _IMP_kernel.TextInput_swiginit(self, _IMP_kernel.new_TextInput(*args))
592 def show(self, *args):
593 r"""show(TextInput self, _ostream out=std::cout)"""
594 return _IMP_kernel.TextInput_show(self, *args)
597 r"""get_name(TextInput self) -> std::string"""
598 return _IMP_kernel.TextInput_get_name(self)
599 __swig_destroy__ = _IMP_kernel.delete_TextInput
602 _IMP_kernel.TextInput_swigregister(TextInput)
603 class SetLogTarget(_RAII):
604 r"""Proxy of C++ IMP::SetLogTarget class."""
606 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
608 def __init__(self, *args):
610 __init__(SetLogTarget self) -> SetLogTarget
611 __init__(SetLogTarget self, TextOutput to) -> SetLogTarget
613 _IMP_kernel.SetLogTarget_swiginit(self, _IMP_kernel.new_SetLogTarget(*args))
616 r"""set(SetLogTarget self, TextOutput to)"""
617 return _IMP_kernel.SetLogTarget_set(self, to)
620 r"""reset(SetLogTarget self)"""
621 return _IMP_kernel.SetLogTarget_reset(self)
622 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
624 def show(self, *args):
625 r"""show(SetLogTarget self, _ostream out=std::cout)"""
626 return _IMP_kernel.SetLogTarget_show(self, *args)
630 def __exit__(self, exc_type, exc_val, exc_tb):
636 r"""__str__(SetLogTarget self) -> std::string"""
637 return _IMP_kernel.SetLogTarget___str__(self)
640 r"""__repr__(SetLogTarget self) -> std::string"""
641 return _IMP_kernel.SetLogTarget___repr__(self)
644 _IMP_kernel.SetLogTarget_swigregister(SetLogTarget)
647 r"""create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput"""
648 return _IMP_kernel.create_temporary_file(*args)
651 r"""create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string"""
652 return _IMP_kernel.create_temporary_file_name(*args)
655 r"""get_relative_path(std::string base, std::string relative) -> std::string"""
656 return _IMP_kernel.get_relative_path(base, relative)
659 r"""get_absolute_path(std::string file) -> std::string"""
660 return _IMP_kernel.get_absolute_path(file)
662 def push_log_context(functionname, object):
663 r"""push_log_context(char const * functionname, void const * object)"""
664 return _IMP_kernel.push_log_context(functionname, object)
666 def pop_log_context():
667 r"""pop_log_context()"""
668 return _IMP_kernel.pop_log_context()
672 add_to_log(std::string to_write)
673 add_to_log(IMP::LogLevel level, std::string to_write)
675 return _IMP_kernel.add_to_log(*args)
678 r"""set_log_level(IMP::LogLevel l)"""
679 return _IMP_kernel.set_log_level(l)
682 r"""set_log_timer(bool tb)"""
683 return _IMP_kernel.set_log_timer(tb)
686 r"""reset_log_timer()"""
687 return _IMP_kernel.reset_log_timer()
690 r"""get_log_level() -> IMP::LogLevel"""
691 return _IMP_kernel.get_log_level()
694 r"""set_progress_display(std::string description, unsigned int steps)"""
695 return _IMP_kernel.set_progress_display(description, steps)
698 r"""add_to_progress_display(unsigned int step=1)"""
699 return _IMP_kernel.add_to_progress_display(step)
700 class Object(_NonCopyable):
701 r"""Proxy of C++ IMP::Object class."""
703 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
705 def __init__(self, name):
706 r"""__init__(Object self, std::string name) -> Object"""
707 if self.__class__ == Object:
711 _IMP_kernel.Object_swiginit(self, _IMP_kernel.new_Object(_self, name))
713 if self.__class__ != Object:
714 _director_objects.register(self)
718 __swig_destroy__ = _IMP_kernel.delete_Object
721 r"""__hash__(Object self) -> std::size_t"""
722 return _IMP_kernel.Object___hash__(self)
725 r"""set_log_level(Object self, IMP::LogLevel l)"""
726 return _IMP_kernel.Object_set_log_level(self, l)
729 r"""set_check_level(Object self, IMP::CheckLevel l)"""
730 return _IMP_kernel.Object_set_check_level(self, l)
733 r"""get_log_level(Object self) -> IMP::LogLevel"""
734 return _IMP_kernel.Object_get_log_level(self)
737 r"""get_check_level(Object self) -> IMP::CheckLevel"""
738 return _IMP_kernel.Object_get_check_level(self)
740 def get_version_info(self):
741 r"""get_version_info(Object self) -> VersionInfo"""
742 return _IMP_kernel.Object_get_version_info(self)
745 r"""get_name(Object self) -> std::string const &"""
746 return _IMP_kernel.Object_get_name(self)
748 def set_name(self, name):
749 r"""set_name(Object self, std::string name)"""
750 return _IMP_kernel.Object_set_name(self, name)
752 def get_type_name(self):
753 r"""get_type_name(Object self) -> std::string"""
754 return _IMP_kernel.Object_get_type_name(self)
756 def set_was_used(self, tf):
757 r"""set_was_used(Object self, bool tf)"""
758 return _IMP_kernel.Object_set_was_used(self, tf)
760 def show(self, *args):
761 r"""show(Object self, _ostream out=std::cout)"""
762 return _IMP_kernel.Object_show(self, *args)
764 def get_string(self):
765 r"""get_string(Object self) -> std::string"""
766 return _IMP_kernel.Object_get_string(self)
768 def _on_destruction(self):
769 r"""_on_destruction(Object self)"""
770 return _IMP_kernel.Object__on_destruction(self)
772 def get_is_valid(self):
773 r"""get_is_valid(Object self) -> bool"""
774 return _IMP_kernel.Object_get_is_valid(self)
776 def get_ref_count(self):
777 r"""get_ref_count(Object self) -> unsigned int"""
778 return _IMP_kernel.Object_get_ref_count(self)
781 def get_number_of_live_objects():
782 r"""get_number_of_live_objects() -> unsigned int"""
783 return _IMP_kernel.Object_get_number_of_live_objects()
785 def get_is_shared(self):
786 r"""get_is_shared(Object self) -> bool"""
787 return _IMP_kernel.Object_get_is_shared(self)
789 def clear_caches(self):
790 r"""clear_caches(Object self)"""
791 return _IMP_kernel.Object_clear_caches(self)
793 def do_destroy(self):
794 r"""do_destroy(Object self)"""
795 return _IMP_kernel.Object_do_destroy(self)
797 def __getstate__(self):
798 raise NotImplementedError(str(self.__class__)
799 +
" does not support serialization")
803 r"""__eq__(Object self, Object o) -> bool"""
804 return _IMP_kernel.Object___eq__(self, o)
807 r"""__ne__(Object self, Object o) -> bool"""
808 return _IMP_kernel.Object___ne__(self, o)
811 r"""__le__(Object self, Object o) -> bool"""
812 return _IMP_kernel.Object___le__(self, o)
815 r"""__lt__(Object self, Object o) -> bool"""
816 return _IMP_kernel.Object___lt__(self, o)
819 r"""__ge__(Object self, Object o) -> bool"""
820 return _IMP_kernel.Object___ge__(self, o)
823 r"""__gt__(Object self, Object o) -> bool"""
824 return _IMP_kernel.Object___gt__(self, o)
827 r"""__str__(Object self) -> std::string"""
828 return _IMP_kernel.Object___str__(self)
831 r"""__repr__(Object self) -> std::string"""
832 return _IMP_kernel.Object___repr__(self)
836 return _object_cast_to_Object(o)
838 def __disown__(self):
840 _IMP_kernel.disown_Object(self)
841 return weakref.proxy(self)
844 _IMP_kernel.Object_swigregister(Object)
845 class SetLogState(_RAII):
846 r"""Proxy of C++ IMP::SetLogState class."""
848 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
851 r"""reset(SetLogState self)"""
852 return _IMP_kernel.SetLogState_reset(self)
853 __swig_destroy__ = _IMP_kernel.delete_SetLogState
855 def show(self, *args):
856 r"""show(SetLogState self, _ostream out=std::cout)"""
857 return _IMP_kernel.SetLogState_show(self, *args)
859 def __init__(self, *args):
861 __init__(SetLogState self) -> SetLogState
862 __init__(SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
863 __init__(SetLogState self, IMP::LogLevel l) -> SetLogState
865 _IMP_kernel.SetLogState_swiginit(self, _IMP_kernel.new_SetLogState(*args))
867 def set(self, *args):
869 set(SetLogState self, Object o, IMP::LogLevel l)
870 set(SetLogState self, IMP::LogLevel l)
872 return _IMP_kernel.SetLogState_set(self, *args)
876 def __exit__(self, exc_type, exc_val, exc_tb):
882 r"""__str__(SetLogState self) -> std::string"""
883 return _IMP_kernel.SetLogState___str__(self)
886 r"""__repr__(SetLogState self) -> std::string"""
887 return _IMP_kernel.SetLogState___repr__(self)
890 _IMP_kernel.SetLogState_swigregister(SetLogState)
891 class WarningContext(object):
892 r"""Proxy of C++ IMP::WarningContext class."""
894 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
895 data_ = property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set, doc=
r"""data_ : boost::unordered_set<(std::string)>""")
897 def add_warning(self, key, warning):
898 r"""add_warning(WarningContext self, std::string key, std::string warning)"""
899 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
901 def clear_warnings(self):
902 r"""clear_warnings(WarningContext self)"""
903 return _IMP_kernel.WarningContext_clear_warnings(self)
905 def dump_warnings(self):
906 r"""dump_warnings(WarningContext self)"""
907 return _IMP_kernel.WarningContext_dump_warnings(self)
908 __swig_destroy__ = _IMP_kernel.delete_WarningContext
910 def show(self, *args):
911 r"""show(WarningContext self, _ostream out=std::cout)"""
912 return _IMP_kernel.WarningContext_show(self, *args)
916 def __exit__(self, exc_type, exc_val, exc_tb):
922 r"""__str__(WarningContext self) -> std::string"""
923 return _IMP_kernel.WarningContext___str__(self)
926 r"""__repr__(WarningContext self) -> std::string"""
927 return _IMP_kernel.WarningContext___repr__(self)
930 r"""__init__(WarningContext self) -> WarningContext"""
931 _IMP_kernel.WarningContext_swiginit(self, _IMP_kernel.new_WarningContext())
934 _IMP_kernel.WarningContext_swigregister(WarningContext)
935 class CreateLogContext(_RAII):
936 r"""Proxy of C++ IMP::CreateLogContext class."""
938 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
940 def __init__(self, *args):
942 __init__(CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
943 __init__(CreateLogContext self) -> CreateLogContext
944 __init__(CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
946 _IMP_kernel.CreateLogContext_swiginit(self, _IMP_kernel.new_CreateLogContext(*args))
948 def set(self, fname, object=None):
949 r"""set(CreateLogContext self, char const * fname, Object object=None)"""
950 return _IMP_kernel.CreateLogContext_set(self, fname, object)
953 r"""reset(CreateLogContext self)"""
954 return _IMP_kernel.CreateLogContext_reset(self)
955 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
957 def show(self, *args):
958 r"""show(CreateLogContext self, _ostream out=std::cout)"""
959 return _IMP_kernel.CreateLogContext_show(self, *args)
963 def __exit__(self, exc_type, exc_val, exc_tb):
969 r"""__str__(CreateLogContext self) -> std::string"""
970 return _IMP_kernel.CreateLogContext___str__(self)
973 r"""__repr__(CreateLogContext self) -> std::string"""
974 return _IMP_kernel.CreateLogContext___repr__(self)
977 _IMP_kernel.CreateLogContext_swigregister(CreateLogContext)
978 class SetCheckState(_RAII):
979 r"""Proxy of C++ IMP::SetCheckState class."""
981 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
984 r"""reset(SetCheckState self)"""
985 return _IMP_kernel.SetCheckState_reset(self)
986 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
988 def show(self, *args):
989 r"""show(SetCheckState self, _ostream out=std::cout)"""
990 return _IMP_kernel.SetCheckState_show(self, *args)
992 def __init__(self, *args):
994 __init__(SetCheckState self) -> SetCheckState
995 __init__(SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
996 __init__(SetCheckState self, IMP::CheckLevel l) -> SetCheckState
998 _IMP_kernel.SetCheckState_swiginit(self, _IMP_kernel.new_SetCheckState(*args))
1000 def set(self, *args):
1002 set(SetCheckState self, Object o, IMP::CheckLevel l)
1003 set(SetCheckState self, IMP::CheckLevel l)
1005 return _IMP_kernel.SetCheckState_set(self, *args)
1007 def __enter__(self):
1009 def __exit__(self, exc_type, exc_val, exc_tb):
1015 r"""__str__(SetCheckState self) -> std::string"""
1016 return _IMP_kernel.SetCheckState___str__(self)
1019 r"""__repr__(SetCheckState self) -> std::string"""
1020 return _IMP_kernel.SetCheckState___repr__(self)
1023 _IMP_kernel.SetCheckState_swigregister(SetCheckState)
1026 r"""get_unique_name(std::string templ) -> std::string"""
1027 return _IMP_kernel.get_unique_name(templ)
1030 r"""get_copyright() -> std::string"""
1031 return _IMP_kernel.get_copyright()
1032 class _Protection(object):
1033 r"""Proxy of C++ IMP::internal::_Protection class."""
1035 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1037 def __init__(self, *args, **kwargs):
1038 raise AttributeError(
"No constructor defined")
1040 def show(self, *args):
1041 r"""show(_Protection self, _ostream out=std::cout)"""
1042 return _IMP_kernel._Protection_show(self, *args)
1045 r"""__str__(_Protection self) -> std::string"""
1046 return _IMP_kernel._Protection___str__(self)
1049 r"""__repr__(_Protection self) -> std::string"""
1050 return _IMP_kernel._Protection___repr__(self)
1051 __swig_destroy__ = _IMP_kernel.delete__Protection
1054 _IMP_kernel._Protection_swigregister(_Protection)
1058 return _IMP_kernel._test_log()
1060 def _test_intranges(ips):
1061 r"""_test_intranges(IMP::IntRanges const & ips) -> int"""
1062 return _IMP_kernel._test_intranges(ips)
1064 def _test_intrange(*args):
1066 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1067 _test_intrange() -> IMP::IntRange
1069 return _IMP_kernel._test_intrange(*args)
1072 r"""_test_ifile(TextInput a) -> std::string"""
1073 return _IMP_kernel._test_ifile(a)
1076 r"""_test_ofile(TextOutput a) -> std::string"""
1077 return _IMP_kernel._test_ofile(a)
1079 def _test_ifile_overloaded(*args):
1081 _test_ifile_overloaded(TextInput a, int i) -> std::string
1082 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1084 return _IMP_kernel._test_ifile_overloaded(*args)
1086 def _test_ofile_overloaded(*args):
1088 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1089 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1091 return _IMP_kernel._test_ofile_overloaded(*args)
1092 class _TestValue(object):
1093 r"""Proxy of C++ IMP::internal::_TestValue class."""
1095 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1097 def __init__(self, i):
1098 r"""__init__(_TestValue self, int i) -> _TestValue"""
1099 _IMP_kernel._TestValue_swiginit(self, _IMP_kernel.new__TestValue(i))
1101 def show(self, *args):
1102 r"""show(_TestValue self, _ostream out=std::cout)"""
1103 return _IMP_kernel._TestValue_show(self, *args)
1105 def __cmp__(self, o):
1106 r"""__cmp__(_TestValue self, _TestValue o) -> int"""
1107 return _IMP_kernel._TestValue___cmp__(self, o)
1109 def __eq__(self, o):
1110 r"""__eq__(_TestValue self, _TestValue o) -> bool"""
1111 return _IMP_kernel._TestValue___eq__(self, o)
1113 def __ne__(self, o):
1114 r"""__ne__(_TestValue self, _TestValue o) -> bool"""
1115 return _IMP_kernel._TestValue___ne__(self, o)
1117 def __lt__(self, o):
1118 r"""__lt__(_TestValue self, _TestValue o) -> bool"""
1119 return _IMP_kernel._TestValue___lt__(self, o)
1121 def __gt__(self, o):
1122 r"""__gt__(_TestValue self, _TestValue o) -> bool"""
1123 return _IMP_kernel._TestValue___gt__(self, o)
1125 def __ge__(self, o):
1126 r"""__ge__(_TestValue self, _TestValue o) -> bool"""
1127 return _IMP_kernel._TestValue___ge__(self, o)
1129 def __le__(self, o):
1130 r"""__le__(_TestValue self, _TestValue o) -> bool"""
1131 return _IMP_kernel._TestValue___le__(self, o)
1134 r"""get(_TestValue self) -> int"""
1135 return _IMP_kernel._TestValue_get(self)
1137 def get_float(self):
1138 r"""get_float(_TestValue self) -> float const &"""
1139 return _IMP_kernel._TestValue_get_float(self)
1141 def get_double(self):
1142 r"""get_double(_TestValue self) -> double const &"""
1143 return _IMP_kernel._TestValue_get_double(self)
1145 def get_Float(self):
1146 r"""get_Float(_TestValue self) -> IMP::Float const &"""
1147 return _IMP_kernel._TestValue_get_Float(self)
1150 r"""get_int(_TestValue self) -> int const &"""
1151 return _IMP_kernel._TestValue_get_int(self)
1154 r"""get_Int(_TestValue self) -> IMP::Int const &"""
1155 return _IMP_kernel._TestValue_get_Int(self)
1157 def get_string(self):
1158 r"""get_string(_TestValue self) -> std::string const &"""
1159 return _IMP_kernel._TestValue_get_string(self)
1161 def get_String(self):
1162 r"""get_String(_TestValue self) -> IMP::String const &"""
1163 return _IMP_kernel._TestValue_get_String(self)
1166 r"""__str__(_TestValue self) -> std::string"""
1167 return _IMP_kernel._TestValue___str__(self)
1170 r"""__repr__(_TestValue self) -> std::string"""
1171 return _IMP_kernel._TestValue___repr__(self)
1172 __swig_destroy__ = _IMP_kernel.delete__TestValue
1175 _IMP_kernel._TestValue_swigregister(_TestValue)
1177 def _pass_plain_pair(p):
1178 r"""_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1179 return _IMP_kernel._pass_plain_pair(p)
1181 def _pass_overloaded_strings(*args):
1183 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1184 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1186 return _IMP_kernel._pass_overloaded_strings(*args)
1189 r"""_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1190 return _IMP_kernel._pass_pair(p)
1192 def _pass_floats(input):
1193 r"""_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1194 return _IMP_kernel._pass_floats(input)
1196 def _pass_ints(input):
1197 r"""_pass_ints(IMP::Ints input) -> IMP::Ints"""
1198 return _IMP_kernel._pass_ints(input)
1200 def _pass_ints_list(input):
1201 r"""_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1202 return _IMP_kernel._pass_ints_list(input)
1204 def _pass_ints_lists(input):
1205 r"""_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1206 return _IMP_kernel._pass_ints_lists(input)
1208 def _pass_strings(input):
1209 r"""_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1210 return _IMP_kernel._pass_strings(input)
1211 class _TestObject(Object):
1212 r"""Proxy of C++ IMP::internal::_TestObject class."""
1214 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1217 r"""__init__(_TestObject self) -> _TestObject"""
1218 _IMP_kernel._TestObject_swiginit(self, _IMP_kernel.new__TestObject())
1220 def get_version_info(self):
1221 r"""get_version_info(_TestObject self) -> VersionInfo"""
1222 return _IMP_kernel._TestObject_get_version_info(self)
1223 __swig_destroy__ = _IMP_kernel.delete__TestObject
1226 r"""__str__(_TestObject self) -> std::string"""
1227 return _IMP_kernel._TestObject___str__(self)
1230 r"""__repr__(_TestObject self) -> std::string"""
1231 return _IMP_kernel._TestObject___repr__(self)
1235 return _object_cast_to__TestObject(o)
1239 _IMP_kernel._TestObject_swigregister(_TestObject)
1242 r"""get_live_object_names() -> IMP::Strings"""
1243 return _IMP_kernel.get_live_object_names()
1246 r"""get_live_objects() -> IMP::Objects"""
1247 return _IMP_kernel.get_live_objects()
1250 r"""set_show_leaked_objects(bool tf)"""
1251 return _IMP_kernel.set_show_leaked_objects(tf)
1254 r"""set_deprecation_warnings(bool tf)"""
1255 return _IMP_kernel.set_deprecation_warnings(tf)
1258 r"""set_deprecation_exceptions(bool tf)"""
1259 return _IMP_kernel.set_deprecation_exceptions(tf)
1262 r"""get_deprecation_exceptions() -> bool"""
1263 return _IMP_kernel.get_deprecation_exceptions()
1266 r"""handle_use_deprecated(std::string message)"""
1267 return _IMP_kernel.handle_use_deprecated(message)
1270 r"""get_number_of_threads() -> unsigned int"""
1271 return _IMP_kernel.get_number_of_threads()
1274 r"""set_number_of_threads(unsigned int n)"""
1275 return _IMP_kernel.set_number_of_threads(n)
1276 class SetNumberOfThreads(_RAII):
1277 r"""Proxy of C++ IMP::SetNumberOfThreads class."""
1279 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1281 def __init__(self, *args):
1283 __init__(SetNumberOfThreads self) -> SetNumberOfThreads
1284 __init__(SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1286 _IMP_kernel.SetNumberOfThreads_swiginit(self, _IMP_kernel.new_SetNumberOfThreads(*args))
1289 r"""set(SetNumberOfThreads self, unsigned int n)"""
1290 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1293 r"""reset(SetNumberOfThreads self)"""
1294 return _IMP_kernel.SetNumberOfThreads_reset(self)
1295 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1297 def show(self, *args):
1298 r"""show(SetNumberOfThreads self, _ostream out=std::cout)"""
1299 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1301 def __enter__(self):
1303 def __exit__(self, exc_type, exc_val, exc_tb):
1309 r"""__str__(SetNumberOfThreads self) -> std::string"""
1310 return _IMP_kernel.SetNumberOfThreads___str__(self)
1313 r"""__repr__(SetNumberOfThreads self) -> std::string"""
1314 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1317 _IMP_kernel.SetNumberOfThreads_swigregister(SetNumberOfThreads)
1320 i_m_p=
"IMP_MODULE_PATH"
1321 if i_m_p
in os.environ.keys():
1322 __path__.insert(0, os.environ[i_m_p])
1324 def _forward_add_attribute(self, name, value, opt=None):
1326 self.get_particle().add_attribute(name, value, opt)
1328 self.get_particle().add_attribute(name, value)
1329 def _forward_get_value(self, name):
1330 self.get_particle().get_value(name)
1331 def _forward_set_value(self, name, value):
1332 self.get_particle().set_value(name, value)
1338 _object_types.append(
"Constraint")
1341 def _object_cast_to_Constraint(o):
1342 r"""_object_cast_to_Constraint(Object o) -> Constraint"""
1343 return _IMP_kernel._object_cast_to_Constraint(o)
1345 _object_types.append(
"Undecorator")
1348 def _object_cast_to_Undecorator(o):
1349 r"""_object_cast_to_Undecorator(Object o) -> Undecorator"""
1350 return _IMP_kernel._object_cast_to_Undecorator(o)
1352 _object_types.append(
"Container")
1355 def _object_cast_to_Container(o):
1356 r"""_object_cast_to_Container(Object o) -> Container"""
1357 return _IMP_kernel._object_cast_to_Container(o)
1359 _object_types.append(
"Optimizer")
1362 def _object_cast_to_Optimizer(o):
1363 r"""_object_cast_to_Optimizer(Object o) -> Optimizer"""
1364 return _IMP_kernel._object_cast_to_Optimizer(o)
1366 _object_types.append(
"AttributeOptimizer")
1369 def _object_cast_to_AttributeOptimizer(o):
1370 r"""_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1371 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1373 _object_types.append(
"OptimizerState")
1376 def _object_cast_to_OptimizerState(o):
1377 r"""_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1378 return _IMP_kernel._object_cast_to_OptimizerState(o)
1380 _object_types.append(
"PairContainer")
1383 def _object_cast_to_PairContainer(o):
1384 r"""_object_cast_to_PairContainer(Object o) -> PairContainer"""
1385 return _IMP_kernel._object_cast_to_PairContainer(o)
1387 _object_types.append(
"PairModifier")
1390 def _object_cast_to_PairModifier(o):
1391 r"""_object_cast_to_PairModifier(Object o) -> PairModifier"""
1392 return _IMP_kernel._object_cast_to_PairModifier(o)
1394 _object_types.append(
"PairScore")
1397 def _object_cast_to_PairScore(o):
1398 r"""_object_cast_to_PairScore(Object o) -> PairScore"""
1399 return _IMP_kernel._object_cast_to_PairScore(o)
1401 _object_types.append(
"QuadContainer")
1404 def _object_cast_to_QuadContainer(o):
1405 r"""_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1406 return _IMP_kernel._object_cast_to_QuadContainer(o)
1408 _object_types.append(
"QuadModifier")
1411 def _object_cast_to_QuadModifier(o):
1412 r"""_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1413 return _IMP_kernel._object_cast_to_QuadModifier(o)
1415 _object_types.append(
"QuadScore")
1418 def _object_cast_to_QuadScore(o):
1419 r"""_object_cast_to_QuadScore(Object o) -> QuadScore"""
1420 return _IMP_kernel._object_cast_to_QuadScore(o)
1422 _object_types.append(
"Refiner")
1425 def _object_cast_to_Refiner(o):
1426 r"""_object_cast_to_Refiner(Object o) -> Refiner"""
1427 return _IMP_kernel._object_cast_to_Refiner(o)
1429 _object_types.append(
"Restraint")
1432 def _object_cast_to_Restraint(o):
1433 r"""_object_cast_to_Restraint(Object o) -> Restraint"""
1434 return _IMP_kernel._object_cast_to_Restraint(o)
1436 _object_types.append(
"Sampler")
1439 def _object_cast_to_Sampler(o):
1440 r"""_object_cast_to_Sampler(Object o) -> Sampler"""
1441 return _IMP_kernel._object_cast_to_Sampler(o)
1443 _object_types.append(
"ScoreState")
1446 def _object_cast_to_ScoreState(o):
1447 r"""_object_cast_to_ScoreState(Object o) -> ScoreState"""
1448 return _IMP_kernel._object_cast_to_ScoreState(o)
1450 _object_types.append(
"SingletonContainer")
1453 def _object_cast_to_SingletonContainer(o):
1454 r"""_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1455 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1457 _object_types.append(
"SingletonModifier")
1460 def _object_cast_to_SingletonModifier(o):
1461 r"""_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1462 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1464 _object_types.append(
"SingletonScore")
1467 def _object_cast_to_SingletonScore(o):
1468 r"""_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1469 return _IMP_kernel._object_cast_to_SingletonScore(o)
1471 _object_types.append(
"TripletContainer")
1474 def _object_cast_to_TripletContainer(o):
1475 r"""_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1476 return _IMP_kernel._object_cast_to_TripletContainer(o)
1478 _object_types.append(
"TripletModifier")
1481 def _object_cast_to_TripletModifier(o):
1482 r"""_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1483 return _IMP_kernel._object_cast_to_TripletModifier(o)
1485 _object_types.append(
"TripletScore")
1488 def _object_cast_to_TripletScore(o):
1489 r"""_object_cast_to_TripletScore(Object o) -> TripletScore"""
1490 return _IMP_kernel._object_cast_to_TripletScore(o)
1492 _object_types.append(
"UnaryFunction")
1495 def _object_cast_to_UnaryFunction(o):
1496 r"""_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1497 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1499 _object_types.append(
"RestraintInfo")
1502 def _object_cast_to_RestraintInfo(o):
1503 r"""_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1504 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1506 _object_types.append(
"ConfigurationSet")
1509 def _object_cast_to_ConfigurationSet(o):
1510 r"""_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1511 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1513 _object_types.append(
"Configuration")
1516 def _object_cast_to_Configuration(o):
1517 r"""_object_cast_to_Configuration(Object o) -> Configuration"""
1518 return _IMP_kernel._object_cast_to_Configuration(o)
1520 _object_types.append(
"Model")
1523 def _object_cast_to_Model(o):
1524 r"""_object_cast_to_Model(Object o) -> Model"""
1525 return _IMP_kernel._object_cast_to_Model(o)
1527 _object_types.append(
"Particle")
1530 def _object_cast_to_Particle(o):
1531 r"""_object_cast_to_Particle(Object o) -> Particle"""
1532 return _IMP_kernel._object_cast_to_Particle(o)
1534 _object_types.append(
"RestraintSet")
1537 def _object_cast_to_RestraintSet(o):
1538 r"""_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1539 return _IMP_kernel._object_cast_to_RestraintSet(o)
1541 ParticlePairsTemp=list
1542 _plural_types.append(
"ParticlePairsTemp")
1543 _value_types.append(
"ParticlePair")
1546 ParticleTripletsTemp=list
1547 _plural_types.append(
"ParticleTripletsTemp")
1548 _value_types.append(
"ParticleTriplet")
1551 ParticleQuadsTemp=list
1552 _plural_types.append(
"ParticleQuadsTemp")
1553 _value_types.append(
"ParticleQuad")
1556 ParticleIndexPairs=list
1557 _plural_types.append(
"ParticleIndexPairs")
1558 _value_types.append(
"ParticleIndexPair")
1561 ParticleIndexTriplets=list
1562 _plural_types.append(
"ParticleIndexTriplets")
1563 _value_types.append(
"ParticleIndexTriplet")
1566 ParticleIndexQuads=list
1567 _plural_types.append(
"ParticleIndexQuads")
1568 _value_types.append(
"ParticleIndexQuad")
1571 _object_types.append(
"SingletonPredicate")
1574 def _object_cast_to_SingletonPredicate(o):
1575 r"""_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1576 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1578 _object_types.append(
"PairPredicate")
1581 def _object_cast_to_PairPredicate(o):
1582 r"""_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1583 return _IMP_kernel._object_cast_to_PairPredicate(o)
1585 _object_types.append(
"TripletPredicate")
1588 def _object_cast_to_TripletPredicate(o):
1589 r"""_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1590 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1592 _object_types.append(
"QuadPredicate")
1595 def _object_cast_to_QuadPredicate(o):
1596 r"""_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1597 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1599 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1602 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1603 r"""_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1604 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1606 EvaluationStates=list
1607 _plural_types.append(
"EvaluationStates")
1608 _value_types.append(
"EvaluationState")
1611 ScoreAccumulators=list
1612 _plural_types.append(
"ScoreAccumulators")
1613 _value_types.append(
"ScoreAccumulator")
1616 ParticleIndexes=list
1617 _plural_types.append(
"ParticleIndexes")
1618 _value_types.append(
"ParticleIndex")
1622 _plural_types.append(
"FloatIndexes")
1623 _value_types.append(
"FloatIndex")
1627 _plural_types.append(
"FloatKeys")
1628 _value_types.append(
"FloatKey")
1632 _plural_types.append(
"FloatsKeys")
1633 _value_types.append(
"FloatsKey")
1637 _plural_types.append(
"IntKeys")
1638 _value_types.append(
"IntKey")
1642 _plural_types.append(
"IntsKeys")
1643 _value_types.append(
"IntsKey")
1647 _plural_types.append(
"StringKeys")
1648 _value_types.append(
"StringKey")
1651 ParticleIndexKeys=list
1652 _plural_types.append(
"ParticleIndexKeys")
1653 _value_types.append(
"ParticleIndexKey")
1656 ParticleIndexesKeys=list
1657 _plural_types.append(
"ParticleIndexesKeys")
1658 _value_types.append(
"ParticleIndexesKey")
1662 _plural_types.append(
"ObjectKeys")
1663 _value_types.append(
"ObjectKey")
1667 _plural_types.append(
"ModelKeys")
1668 _value_types.append(
"ModelKey")
1672 _plural_types.append(
"TriggerKeys")
1673 _value_types.append(
"TriggerKey")
1676 _raii_types.append(
"ScopedSetFloatAttribute")
1679 _object_types.append(
"ScoringFunction")
1682 def _object_cast_to_ScoringFunction(o):
1683 r"""_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1684 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1686 _object_types.append(
"ModelObject")
1689 def _object_cast_to_ModelObject(o):
1690 r"""_object_cast_to_ModelObject(Object o) -> ModelObject"""
1691 return _IMP_kernel._object_cast_to_ModelObject(o)
1693 def _TrivialDecorators(l=[]):
1694 return [_TrivialDecorator(x)
for x
in l]
1695 _plural_types.append(
"_TrivialDecorators")
1698 _value_types.append(
"_TrivialDecorator")
1701 def _TrivialDerivedDecorators(l=[]):
1702 return [_TrivialDerivedDecorator(x)
for x
in l]
1703 _plural_types.append(
"_TrivialDerivedDecorators")
1706 _value_types.append(
"_TrivialDerivedDecorator")
1709 def _TrivialTraitsDecorators(l=[]):
1710 return [_TrivialTraitsDecorator(x)
for x
in l]
1711 _plural_types.append(
"_TrivialTraitsDecorators")
1714 _value_types.append(
"_TrivialTraitsDecorator")
1717 _object_types.append(
"_ConstRestraint")
1720 def _object_cast_to__ConstRestraint(o):
1721 r"""_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1722 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1724 _object_types.append(
"_ConstOptimizer")
1727 def _object_cast_to__ConstOptimizer(o):
1728 r"""_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1729 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1731 _object_types.append(
"_ConstSingletonScore")
1734 def _object_cast_to__ConstSingletonScore(o):
1735 r"""_object_cast_to__ConstSingletonScore(Object o) -> _ConstSingletonScore"""
1736 return _IMP_kernel._object_cast_to__ConstSingletonScore(o)
1738 _object_types.append(
"_ConstPairScore")
1741 def _object_cast_to__ConstPairScore(o):
1742 r"""_object_cast_to__ConstPairScore(Object o) -> _ConstPairScore"""
1743 return _IMP_kernel._object_cast_to__ConstPairScore(o)
1745 r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex > class."""
1747 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1748 __repr__ = _swig_repr
1751 r"""__init__(DependencyGraph self) -> DependencyGraph"""
1752 _IMP_kernel.DependencyGraph_swiginit(self, _IMP_kernel.new_DependencyGraph())
1754 def get_graph(self):
1755 r"""get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1756 return _IMP_kernel.DependencyGraph_get_graph(self)
1759 r"""get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1760 return _IMP_kernel.DependencyGraph_get_vertices(self)
1762 def get_vertex_name(self, i):
1763 r"""get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1764 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1766 def get_in_neighbors(self, v):
1767 r"""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"""
1768 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1770 def get_out_neighbors(self, v):
1771 r"""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"""
1772 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1775 r"""show_graphviz(DependencyGraph self, _ostream out=std::cout)"""
1776 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1778 def get_graphviz_string(self):
1779 r"""get_graphviz_string(DependencyGraph self) -> std::string"""
1780 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1782 def add_edge(self, v0, v1):
1783 r"""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)"""
1784 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1786 def add_vertex(self, l):
1787 r"""add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1788 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1790 def remove_vertex(self, l):
1791 r"""remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1792 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1793 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1796 _IMP_kernel.DependencyGraph_swigregister(DependencyGraph)
1798 _value_types.append(
"DependencyGraph")
1801 r"""Proxy of C++ IMP::Key< 0 > class."""
1803 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1805 def __init__(self, *args):
1807 __init__(FloatKey self) -> FloatKey
1808 __init__(FloatKey self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
1809 __init__(FloatKey self, unsigned int i) -> FloatKey
1811 _IMP_kernel.FloatKey_swiginit(self, _IMP_kernel.new_FloatKey(*args))
1815 r"""add_key(std::string sc) -> unsigned int"""
1816 return _IMP_kernel.FloatKey_add_key(sc)
1819 def get_key_exists(sc):
1820 r"""get_key_exists(std::string sc) -> bool"""
1821 return _IMP_kernel.FloatKey_get_key_exists(sc)
1823 def get_string(self):
1824 r"""get_string(FloatKey self) -> std::string const"""
1825 return _IMP_kernel.FloatKey_get_string(self)
1827 def __cmp__(self, o):
1828 r"""__cmp__(FloatKey self, FloatKey o) -> int"""
1829 return _IMP_kernel.FloatKey___cmp__(self, o)
1831 def __eq__(self, o):
1832 r"""__eq__(FloatKey self, FloatKey o) -> bool"""
1833 return _IMP_kernel.FloatKey___eq__(self, o)
1835 def __ne__(self, o):
1836 r"""__ne__(FloatKey self, FloatKey o) -> bool"""
1837 return _IMP_kernel.FloatKey___ne__(self, o)
1839 def __lt__(self, o):
1840 r"""__lt__(FloatKey self, FloatKey o) -> bool"""
1841 return _IMP_kernel.FloatKey___lt__(self, o)
1843 def __gt__(self, o):
1844 r"""__gt__(FloatKey self, FloatKey o) -> bool"""
1845 return _IMP_kernel.FloatKey___gt__(self, o)
1847 def __ge__(self, o):
1848 r"""__ge__(FloatKey self, FloatKey o) -> bool"""
1849 return _IMP_kernel.FloatKey___ge__(self, o)
1851 def __le__(self, o):
1852 r"""__le__(FloatKey self, FloatKey o) -> bool"""
1853 return _IMP_kernel.FloatKey___le__(self, o)
1856 r"""__hash__(FloatKey self) -> std::size_t"""
1857 return _IMP_kernel.FloatKey___hash__(self)
1859 def show(self, *args):
1860 r"""show(FloatKey self, _ostream out=std::cout)"""
1861 return _IMP_kernel.FloatKey_show(self, *args)
1864 def add_alias(old_key, new_name):
1865 r"""add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
1866 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
1869 def get_number_of_keys():
1870 r"""get_number_of_keys() -> unsigned int"""
1871 return _IMP_kernel.FloatKey_get_number_of_keys()
1874 r"""get_index(FloatKey self) -> unsigned int"""
1875 return _IMP_kernel.FloatKey_get_index(self)
1879 r"""show_all(_ostream out)"""
1880 return _IMP_kernel.FloatKey_show_all(out)
1883 def get_all_strings():
1884 r"""get_all_strings() -> IMP::Vector< std::string >"""
1885 return _IMP_kernel.FloatKey_get_all_strings()
1888 def get_number_unique():
1889 r"""get_number_unique() -> unsigned int"""
1890 return _IMP_kernel.FloatKey_get_number_unique()
1893 r"""__str__(FloatKey self) -> std::string"""
1894 return _IMP_kernel.FloatKey___str__(self)
1897 r"""__repr__(FloatKey self) -> std::string"""
1898 return _IMP_kernel.FloatKey___repr__(self)
1899 __swig_destroy__ = _IMP_kernel.delete_FloatKey
1902 _IMP_kernel.FloatKey_swigregister(FloatKey)
1904 r"""Proxy of C++ IMP::Key< 1 > class."""
1906 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1908 def __init__(self, *args):
1910 __init__(IntKey self) -> IntKey
1911 __init__(IntKey self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
1912 __init__(IntKey self, unsigned int i) -> IntKey
1914 _IMP_kernel.IntKey_swiginit(self, _IMP_kernel.new_IntKey(*args))
1918 r"""add_key(std::string sc) -> unsigned int"""
1919 return _IMP_kernel.IntKey_add_key(sc)
1922 def get_key_exists(sc):
1923 r"""get_key_exists(std::string sc) -> bool"""
1924 return _IMP_kernel.IntKey_get_key_exists(sc)
1926 def get_string(self):
1927 r"""get_string(IntKey self) -> std::string const"""
1928 return _IMP_kernel.IntKey_get_string(self)
1930 def __cmp__(self, o):
1931 r"""__cmp__(IntKey self, IntKey o) -> int"""
1932 return _IMP_kernel.IntKey___cmp__(self, o)
1934 def __eq__(self, o):
1935 r"""__eq__(IntKey self, IntKey o) -> bool"""
1936 return _IMP_kernel.IntKey___eq__(self, o)
1938 def __ne__(self, o):
1939 r"""__ne__(IntKey self, IntKey o) -> bool"""
1940 return _IMP_kernel.IntKey___ne__(self, o)
1942 def __lt__(self, o):
1943 r"""__lt__(IntKey self, IntKey o) -> bool"""
1944 return _IMP_kernel.IntKey___lt__(self, o)
1946 def __gt__(self, o):
1947 r"""__gt__(IntKey self, IntKey o) -> bool"""
1948 return _IMP_kernel.IntKey___gt__(self, o)
1950 def __ge__(self, o):
1951 r"""__ge__(IntKey self, IntKey o) -> bool"""
1952 return _IMP_kernel.IntKey___ge__(self, o)
1954 def __le__(self, o):
1955 r"""__le__(IntKey self, IntKey o) -> bool"""
1956 return _IMP_kernel.IntKey___le__(self, o)
1959 r"""__hash__(IntKey self) -> std::size_t"""
1960 return _IMP_kernel.IntKey___hash__(self)
1962 def show(self, *args):
1963 r"""show(IntKey self, _ostream out=std::cout)"""
1964 return _IMP_kernel.IntKey_show(self, *args)
1967 def add_alias(old_key, new_name):
1968 r"""add_alias(IntKey old_key, std::string new_name) -> IntKey"""
1969 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
1972 def get_number_of_keys():
1973 r"""get_number_of_keys() -> unsigned int"""
1974 return _IMP_kernel.IntKey_get_number_of_keys()
1977 r"""get_index(IntKey self) -> unsigned int"""
1978 return _IMP_kernel.IntKey_get_index(self)
1982 r"""show_all(_ostream out)"""
1983 return _IMP_kernel.IntKey_show_all(out)
1986 def get_all_strings():
1987 r"""get_all_strings() -> IMP::Vector< std::string >"""
1988 return _IMP_kernel.IntKey_get_all_strings()
1991 def get_number_unique():
1992 r"""get_number_unique() -> unsigned int"""
1993 return _IMP_kernel.IntKey_get_number_unique()
1996 r"""__str__(IntKey self) -> std::string"""
1997 return _IMP_kernel.IntKey___str__(self)
2000 r"""__repr__(IntKey self) -> std::string"""
2001 return _IMP_kernel.IntKey___repr__(self)
2002 __swig_destroy__ = _IMP_kernel.delete_IntKey
2005 _IMP_kernel.IntKey_swigregister(IntKey)
2007 r"""Proxy of C++ IMP::Key< 2 > class."""
2009 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2011 def __init__(self, *args):
2013 __init__(StringKey self) -> StringKey
2014 __init__(StringKey self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2015 __init__(StringKey self, unsigned int i) -> StringKey
2017 _IMP_kernel.StringKey_swiginit(self, _IMP_kernel.new_StringKey(*args))
2021 r"""add_key(std::string sc) -> unsigned int"""
2022 return _IMP_kernel.StringKey_add_key(sc)
2025 def get_key_exists(sc):
2026 r"""get_key_exists(std::string sc) -> bool"""
2027 return _IMP_kernel.StringKey_get_key_exists(sc)
2029 def get_string(self):
2030 r"""get_string(StringKey self) -> std::string const"""
2031 return _IMP_kernel.StringKey_get_string(self)
2033 def __cmp__(self, o):
2034 r"""__cmp__(StringKey self, StringKey o) -> int"""
2035 return _IMP_kernel.StringKey___cmp__(self, o)
2037 def __eq__(self, o):
2038 r"""__eq__(StringKey self, StringKey o) -> bool"""
2039 return _IMP_kernel.StringKey___eq__(self, o)
2041 def __ne__(self, o):
2042 r"""__ne__(StringKey self, StringKey o) -> bool"""
2043 return _IMP_kernel.StringKey___ne__(self, o)
2045 def __lt__(self, o):
2046 r"""__lt__(StringKey self, StringKey o) -> bool"""
2047 return _IMP_kernel.StringKey___lt__(self, o)
2049 def __gt__(self, o):
2050 r"""__gt__(StringKey self, StringKey o) -> bool"""
2051 return _IMP_kernel.StringKey___gt__(self, o)
2053 def __ge__(self, o):
2054 r"""__ge__(StringKey self, StringKey o) -> bool"""
2055 return _IMP_kernel.StringKey___ge__(self, o)
2057 def __le__(self, o):
2058 r"""__le__(StringKey self, StringKey o) -> bool"""
2059 return _IMP_kernel.StringKey___le__(self, o)
2062 r"""__hash__(StringKey self) -> std::size_t"""
2063 return _IMP_kernel.StringKey___hash__(self)
2065 def show(self, *args):
2066 r"""show(StringKey self, _ostream out=std::cout)"""
2067 return _IMP_kernel.StringKey_show(self, *args)
2070 def add_alias(old_key, new_name):
2071 r"""add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2072 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2075 def get_number_of_keys():
2076 r"""get_number_of_keys() -> unsigned int"""
2077 return _IMP_kernel.StringKey_get_number_of_keys()
2080 r"""get_index(StringKey self) -> unsigned int"""
2081 return _IMP_kernel.StringKey_get_index(self)
2085 r"""show_all(_ostream out)"""
2086 return _IMP_kernel.StringKey_show_all(out)
2089 def get_all_strings():
2090 r"""get_all_strings() -> IMP::Vector< std::string >"""
2091 return _IMP_kernel.StringKey_get_all_strings()
2094 def get_number_unique():
2095 r"""get_number_unique() -> unsigned int"""
2096 return _IMP_kernel.StringKey_get_number_unique()
2099 r"""__str__(StringKey self) -> std::string"""
2100 return _IMP_kernel.StringKey___str__(self)
2103 r"""__repr__(StringKey self) -> std::string"""
2104 return _IMP_kernel.StringKey___repr__(self)
2105 __swig_destroy__ = _IMP_kernel.delete_StringKey
2108 _IMP_kernel.StringKey_swigregister(StringKey)
2110 r"""Proxy of C++ IMP::Key< 3 > class."""
2112 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2114 def __init__(self, *args):
2116 __init__(ParticleIndexKey self) -> ParticleIndexKey
2117 __init__(ParticleIndexKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2118 __init__(ParticleIndexKey self, unsigned int i) -> ParticleIndexKey
2120 _IMP_kernel.ParticleIndexKey_swiginit(self, _IMP_kernel.new_ParticleIndexKey(*args))
2124 r"""add_key(std::string sc) -> unsigned int"""
2125 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2128 def get_key_exists(sc):
2129 r"""get_key_exists(std::string sc) -> bool"""
2130 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2132 def get_string(self):
2133 r"""get_string(ParticleIndexKey self) -> std::string const"""
2134 return _IMP_kernel.ParticleIndexKey_get_string(self)
2136 def __cmp__(self, o):
2137 r"""__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2138 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2140 def __eq__(self, o):
2141 r"""__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2142 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2144 def __ne__(self, o):
2145 r"""__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2146 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2148 def __lt__(self, o):
2149 r"""__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2150 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2152 def __gt__(self, o):
2153 r"""__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2154 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2156 def __ge__(self, o):
2157 r"""__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2158 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2160 def __le__(self, o):
2161 r"""__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2162 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2165 r"""__hash__(ParticleIndexKey self) -> std::size_t"""
2166 return _IMP_kernel.ParticleIndexKey___hash__(self)
2168 def show(self, *args):
2169 r"""show(ParticleIndexKey self, _ostream out=std::cout)"""
2170 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2173 def add_alias(old_key, new_name):
2174 r"""add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2175 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2178 def get_number_of_keys():
2179 r"""get_number_of_keys() -> unsigned int"""
2180 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2183 r"""get_index(ParticleIndexKey self) -> unsigned int"""
2184 return _IMP_kernel.ParticleIndexKey_get_index(self)
2188 r"""show_all(_ostream out)"""
2189 return _IMP_kernel.ParticleIndexKey_show_all(out)
2192 def get_all_strings():
2193 r"""get_all_strings() -> IMP::Vector< std::string >"""
2194 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2197 def get_number_unique():
2198 r"""get_number_unique() -> unsigned int"""
2199 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2202 r"""__str__(ParticleIndexKey self) -> std::string"""
2203 return _IMP_kernel.ParticleIndexKey___str__(self)
2206 r"""__repr__(ParticleIndexKey self) -> std::string"""
2207 return _IMP_kernel.ParticleIndexKey___repr__(self)
2208 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2211 _IMP_kernel.ParticleIndexKey_swigregister(ParticleIndexKey)
2213 r"""Proxy of C++ IMP::Key< 4 > class."""
2215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2217 def __init__(self, *args):
2219 __init__(ObjectKey self) -> ObjectKey
2220 __init__(ObjectKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2221 __init__(ObjectKey self, unsigned int i) -> ObjectKey
2223 _IMP_kernel.ObjectKey_swiginit(self, _IMP_kernel.new_ObjectKey(*args))
2227 r"""add_key(std::string sc) -> unsigned int"""
2228 return _IMP_kernel.ObjectKey_add_key(sc)
2231 def get_key_exists(sc):
2232 r"""get_key_exists(std::string sc) -> bool"""
2233 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2235 def get_string(self):
2236 r"""get_string(ObjectKey self) -> std::string const"""
2237 return _IMP_kernel.ObjectKey_get_string(self)
2239 def __cmp__(self, o):
2240 r"""__cmp__(ObjectKey self, ObjectKey o) -> int"""
2241 return _IMP_kernel.ObjectKey___cmp__(self, o)
2243 def __eq__(self, o):
2244 r"""__eq__(ObjectKey self, ObjectKey o) -> bool"""
2245 return _IMP_kernel.ObjectKey___eq__(self, o)
2247 def __ne__(self, o):
2248 r"""__ne__(ObjectKey self, ObjectKey o) -> bool"""
2249 return _IMP_kernel.ObjectKey___ne__(self, o)
2251 def __lt__(self, o):
2252 r"""__lt__(ObjectKey self, ObjectKey o) -> bool"""
2253 return _IMP_kernel.ObjectKey___lt__(self, o)
2255 def __gt__(self, o):
2256 r"""__gt__(ObjectKey self, ObjectKey o) -> bool"""
2257 return _IMP_kernel.ObjectKey___gt__(self, o)
2259 def __ge__(self, o):
2260 r"""__ge__(ObjectKey self, ObjectKey o) -> bool"""
2261 return _IMP_kernel.ObjectKey___ge__(self, o)
2263 def __le__(self, o):
2264 r"""__le__(ObjectKey self, ObjectKey o) -> bool"""
2265 return _IMP_kernel.ObjectKey___le__(self, o)
2268 r"""__hash__(ObjectKey self) -> std::size_t"""
2269 return _IMP_kernel.ObjectKey___hash__(self)
2271 def show(self, *args):
2272 r"""show(ObjectKey self, _ostream out=std::cout)"""
2273 return _IMP_kernel.ObjectKey_show(self, *args)
2276 def add_alias(old_key, new_name):
2277 r"""add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2278 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2281 def get_number_of_keys():
2282 r"""get_number_of_keys() -> unsigned int"""
2283 return _IMP_kernel.ObjectKey_get_number_of_keys()
2286 r"""get_index(ObjectKey self) -> unsigned int"""
2287 return _IMP_kernel.ObjectKey_get_index(self)
2291 r"""show_all(_ostream out)"""
2292 return _IMP_kernel.ObjectKey_show_all(out)
2295 def get_all_strings():
2296 r"""get_all_strings() -> IMP::Vector< std::string >"""
2297 return _IMP_kernel.ObjectKey_get_all_strings()
2300 def get_number_unique():
2301 r"""get_number_unique() -> unsigned int"""
2302 return _IMP_kernel.ObjectKey_get_number_unique()
2305 r"""__str__(ObjectKey self) -> std::string"""
2306 return _IMP_kernel.ObjectKey___str__(self)
2309 r"""__repr__(ObjectKey self) -> std::string"""
2310 return _IMP_kernel.ObjectKey___repr__(self)
2311 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2314 _IMP_kernel.ObjectKey_swigregister(ObjectKey)
2316 r"""Proxy of C++ IMP::Key< 5 > class."""
2318 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2320 def __init__(self, *args):
2322 __init__(IntsKey self) -> IntsKey
2323 __init__(IntsKey self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2324 __init__(IntsKey self, unsigned int i) -> IntsKey
2326 _IMP_kernel.IntsKey_swiginit(self, _IMP_kernel.new_IntsKey(*args))
2330 r"""add_key(std::string sc) -> unsigned int"""
2331 return _IMP_kernel.IntsKey_add_key(sc)
2334 def get_key_exists(sc):
2335 r"""get_key_exists(std::string sc) -> bool"""
2336 return _IMP_kernel.IntsKey_get_key_exists(sc)
2338 def get_string(self):
2339 r"""get_string(IntsKey self) -> std::string const"""
2340 return _IMP_kernel.IntsKey_get_string(self)
2342 def __cmp__(self, o):
2343 r"""__cmp__(IntsKey self, IntsKey o) -> int"""
2344 return _IMP_kernel.IntsKey___cmp__(self, o)
2346 def __eq__(self, o):
2347 r"""__eq__(IntsKey self, IntsKey o) -> bool"""
2348 return _IMP_kernel.IntsKey___eq__(self, o)
2350 def __ne__(self, o):
2351 r"""__ne__(IntsKey self, IntsKey o) -> bool"""
2352 return _IMP_kernel.IntsKey___ne__(self, o)
2354 def __lt__(self, o):
2355 r"""__lt__(IntsKey self, IntsKey o) -> bool"""
2356 return _IMP_kernel.IntsKey___lt__(self, o)
2358 def __gt__(self, o):
2359 r"""__gt__(IntsKey self, IntsKey o) -> bool"""
2360 return _IMP_kernel.IntsKey___gt__(self, o)
2362 def __ge__(self, o):
2363 r"""__ge__(IntsKey self, IntsKey o) -> bool"""
2364 return _IMP_kernel.IntsKey___ge__(self, o)
2366 def __le__(self, o):
2367 r"""__le__(IntsKey self, IntsKey o) -> bool"""
2368 return _IMP_kernel.IntsKey___le__(self, o)
2371 r"""__hash__(IntsKey self) -> std::size_t"""
2372 return _IMP_kernel.IntsKey___hash__(self)
2374 def show(self, *args):
2375 r"""show(IntsKey self, _ostream out=std::cout)"""
2376 return _IMP_kernel.IntsKey_show(self, *args)
2379 def add_alias(old_key, new_name):
2380 r"""add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2381 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2384 def get_number_of_keys():
2385 r"""get_number_of_keys() -> unsigned int"""
2386 return _IMP_kernel.IntsKey_get_number_of_keys()
2389 r"""get_index(IntsKey self) -> unsigned int"""
2390 return _IMP_kernel.IntsKey_get_index(self)
2394 r"""show_all(_ostream out)"""
2395 return _IMP_kernel.IntsKey_show_all(out)
2398 def get_all_strings():
2399 r"""get_all_strings() -> IMP::Vector< std::string >"""
2400 return _IMP_kernel.IntsKey_get_all_strings()
2403 def get_number_unique():
2404 r"""get_number_unique() -> unsigned int"""
2405 return _IMP_kernel.IntsKey_get_number_unique()
2408 r"""__str__(IntsKey self) -> std::string"""
2409 return _IMP_kernel.IntsKey___str__(self)
2412 r"""__repr__(IntsKey self) -> std::string"""
2413 return _IMP_kernel.IntsKey___repr__(self)
2414 __swig_destroy__ = _IMP_kernel.delete_IntsKey
2417 _IMP_kernel.IntsKey_swigregister(IntsKey)
2419 r"""Proxy of C++ IMP::Key< 6 > class."""
2421 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2423 def __init__(self, *args):
2425 __init__(ParticleIndexesKey self) -> ParticleIndexesKey
2426 __init__(ParticleIndexesKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2427 __init__(ParticleIndexesKey self, unsigned int i) -> ParticleIndexesKey
2429 _IMP_kernel.ParticleIndexesKey_swiginit(self, _IMP_kernel.new_ParticleIndexesKey(*args))
2433 r"""add_key(std::string sc) -> unsigned int"""
2434 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2437 def get_key_exists(sc):
2438 r"""get_key_exists(std::string sc) -> bool"""
2439 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2441 def get_string(self):
2442 r"""get_string(ParticleIndexesKey self) -> std::string const"""
2443 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2445 def __cmp__(self, o):
2446 r"""__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2447 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2449 def __eq__(self, o):
2450 r"""__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2451 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2453 def __ne__(self, o):
2454 r"""__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2455 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2457 def __lt__(self, o):
2458 r"""__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2459 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2461 def __gt__(self, o):
2462 r"""__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2463 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2465 def __ge__(self, o):
2466 r"""__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2467 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2469 def __le__(self, o):
2470 r"""__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2471 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2474 r"""__hash__(ParticleIndexesKey self) -> std::size_t"""
2475 return _IMP_kernel.ParticleIndexesKey___hash__(self)
2477 def show(self, *args):
2478 r"""show(ParticleIndexesKey self, _ostream out=std::cout)"""
2479 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2482 def add_alias(old_key, new_name):
2483 r"""add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2484 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2487 def get_number_of_keys():
2488 r"""get_number_of_keys() -> unsigned int"""
2489 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2492 r"""get_index(ParticleIndexesKey self) -> unsigned int"""
2493 return _IMP_kernel.ParticleIndexesKey_get_index(self)
2497 r"""show_all(_ostream out)"""
2498 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2501 def get_all_strings():
2502 r"""get_all_strings() -> IMP::Vector< std::string >"""
2503 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2506 def get_number_unique():
2507 r"""get_number_unique() -> unsigned int"""
2508 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2511 r"""__str__(ParticleIndexesKey self) -> std::string"""
2512 return _IMP_kernel.ParticleIndexesKey___str__(self)
2515 r"""__repr__(ParticleIndexesKey self) -> std::string"""
2516 return _IMP_kernel.ParticleIndexesKey___repr__(self)
2517 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2520 _IMP_kernel.ParticleIndexesKey_swigregister(ParticleIndexesKey)
2522 r"""Proxy of C++ IMP::Key< 8 > class."""
2524 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2526 def __init__(self, *args):
2528 __init__(ModelKey self) -> ModelKey
2529 __init__(ModelKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2530 __init__(ModelKey self, unsigned int i) -> ModelKey
2532 _IMP_kernel.ModelKey_swiginit(self, _IMP_kernel.new_ModelKey(*args))
2536 r"""add_key(std::string sc) -> unsigned int"""
2537 return _IMP_kernel.ModelKey_add_key(sc)
2540 def get_key_exists(sc):
2541 r"""get_key_exists(std::string sc) -> bool"""
2542 return _IMP_kernel.ModelKey_get_key_exists(sc)
2544 def get_string(self):
2545 r"""get_string(ModelKey self) -> std::string const"""
2546 return _IMP_kernel.ModelKey_get_string(self)
2548 def __cmp__(self, o):
2549 r"""__cmp__(ModelKey self, ModelKey o) -> int"""
2550 return _IMP_kernel.ModelKey___cmp__(self, o)
2552 def __eq__(self, o):
2553 r"""__eq__(ModelKey self, ModelKey o) -> bool"""
2554 return _IMP_kernel.ModelKey___eq__(self, o)
2556 def __ne__(self, o):
2557 r"""__ne__(ModelKey self, ModelKey o) -> bool"""
2558 return _IMP_kernel.ModelKey___ne__(self, o)
2560 def __lt__(self, o):
2561 r"""__lt__(ModelKey self, ModelKey o) -> bool"""
2562 return _IMP_kernel.ModelKey___lt__(self, o)
2564 def __gt__(self, o):
2565 r"""__gt__(ModelKey self, ModelKey o) -> bool"""
2566 return _IMP_kernel.ModelKey___gt__(self, o)
2568 def __ge__(self, o):
2569 r"""__ge__(ModelKey self, ModelKey o) -> bool"""
2570 return _IMP_kernel.ModelKey___ge__(self, o)
2572 def __le__(self, o):
2573 r"""__le__(ModelKey self, ModelKey o) -> bool"""
2574 return _IMP_kernel.ModelKey___le__(self, o)
2577 r"""__hash__(ModelKey self) -> std::size_t"""
2578 return _IMP_kernel.ModelKey___hash__(self)
2580 def show(self, *args):
2581 r"""show(ModelKey self, _ostream out=std::cout)"""
2582 return _IMP_kernel.ModelKey_show(self, *args)
2585 def add_alias(old_key, new_name):
2586 r"""add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
2587 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
2590 def get_number_of_keys():
2591 r"""get_number_of_keys() -> unsigned int"""
2592 return _IMP_kernel.ModelKey_get_number_of_keys()
2595 r"""get_index(ModelKey self) -> unsigned int"""
2596 return _IMP_kernel.ModelKey_get_index(self)
2600 r"""show_all(_ostream out)"""
2601 return _IMP_kernel.ModelKey_show_all(out)
2604 def get_all_strings():
2605 r"""get_all_strings() -> IMP::Vector< std::string >"""
2606 return _IMP_kernel.ModelKey_get_all_strings()
2609 def get_number_unique():
2610 r"""get_number_unique() -> unsigned int"""
2611 return _IMP_kernel.ModelKey_get_number_unique()
2614 r"""__str__(ModelKey self) -> std::string"""
2615 return _IMP_kernel.ModelKey___str__(self)
2618 r"""__repr__(ModelKey self) -> std::string"""
2619 return _IMP_kernel.ModelKey___repr__(self)
2620 __swig_destroy__ = _IMP_kernel.delete_ModelKey
2623 _IMP_kernel.ModelKey_swigregister(ModelKey)
2625 r"""Proxy of C++ IMP::Key< 11 > class."""
2627 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2629 def __init__(self, *args):
2631 __init__(TriggerKey self) -> TriggerKey
2632 __init__(TriggerKey self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
2633 __init__(TriggerKey self, unsigned int i) -> TriggerKey
2635 _IMP_kernel.TriggerKey_swiginit(self, _IMP_kernel.new_TriggerKey(*args))
2639 r"""add_key(std::string sc) -> unsigned int"""
2640 return _IMP_kernel.TriggerKey_add_key(sc)
2643 def get_key_exists(sc):
2644 r"""get_key_exists(std::string sc) -> bool"""
2645 return _IMP_kernel.TriggerKey_get_key_exists(sc)
2647 def get_string(self):
2648 r"""get_string(TriggerKey self) -> std::string const"""
2649 return _IMP_kernel.TriggerKey_get_string(self)
2651 def __cmp__(self, o):
2652 r"""__cmp__(TriggerKey self, TriggerKey o) -> int"""
2653 return _IMP_kernel.TriggerKey___cmp__(self, o)
2655 def __eq__(self, o):
2656 r"""__eq__(TriggerKey self, TriggerKey o) -> bool"""
2657 return _IMP_kernel.TriggerKey___eq__(self, o)
2659 def __ne__(self, o):
2660 r"""__ne__(TriggerKey self, TriggerKey o) -> bool"""
2661 return _IMP_kernel.TriggerKey___ne__(self, o)
2663 def __lt__(self, o):
2664 r"""__lt__(TriggerKey self, TriggerKey o) -> bool"""
2665 return _IMP_kernel.TriggerKey___lt__(self, o)
2667 def __gt__(self, o):
2668 r"""__gt__(TriggerKey self, TriggerKey o) -> bool"""
2669 return _IMP_kernel.TriggerKey___gt__(self, o)
2671 def __ge__(self, o):
2672 r"""__ge__(TriggerKey self, TriggerKey o) -> bool"""
2673 return _IMP_kernel.TriggerKey___ge__(self, o)
2675 def __le__(self, o):
2676 r"""__le__(TriggerKey self, TriggerKey o) -> bool"""
2677 return _IMP_kernel.TriggerKey___le__(self, o)
2680 r"""__hash__(TriggerKey self) -> std::size_t"""
2681 return _IMP_kernel.TriggerKey___hash__(self)
2683 def show(self, *args):
2684 r"""show(TriggerKey self, _ostream out=std::cout)"""
2685 return _IMP_kernel.TriggerKey_show(self, *args)
2688 def add_alias(old_key, new_name):
2689 r"""add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
2690 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
2693 def get_number_of_keys():
2694 r"""get_number_of_keys() -> unsigned int"""
2695 return _IMP_kernel.TriggerKey_get_number_of_keys()
2698 r"""get_index(TriggerKey self) -> unsigned int"""
2699 return _IMP_kernel.TriggerKey_get_index(self)
2703 r"""show_all(_ostream out)"""
2704 return _IMP_kernel.TriggerKey_show_all(out)
2707 def get_all_strings():
2708 r"""get_all_strings() -> IMP::Vector< std::string >"""
2709 return _IMP_kernel.TriggerKey_get_all_strings()
2712 def get_number_unique():
2713 r"""get_number_unique() -> unsigned int"""
2714 return _IMP_kernel.TriggerKey_get_number_unique()
2717 r"""__str__(TriggerKey self) -> std::string"""
2718 return _IMP_kernel.TriggerKey___str__(self)
2721 r"""__repr__(TriggerKey self) -> std::string"""
2722 return _IMP_kernel.TriggerKey___repr__(self)
2723 __swig_destroy__ = _IMP_kernel.delete_TriggerKey
2726 _IMP_kernel.TriggerKey_swigregister(TriggerKey)
2728 r"""Proxy of C++ IMP::Index< IMP::ParticleIndexTag > class."""
2730 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2732 def __init__(self, *args):
2734 __init__(ParticleIndex self, int i) -> ParticleIndex
2735 __init__(ParticleIndex self) -> ParticleIndex
2737 _IMP_kernel.ParticleIndex_swiginit(self, _IMP_kernel.new_ParticleIndex(*args))
2740 r"""get_index(ParticleIndex self) -> int"""
2741 return _IMP_kernel.ParticleIndex_get_index(self)
2743 def __cmp__(self, o):
2744 r"""__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
2745 return _IMP_kernel.ParticleIndex___cmp__(self, o)
2747 def __eq__(self, o):
2748 r"""__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
2749 return _IMP_kernel.ParticleIndex___eq__(self, o)
2751 def __ne__(self, o):
2752 r"""__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
2753 return _IMP_kernel.ParticleIndex___ne__(self, o)
2755 def __lt__(self, o):
2756 r"""__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
2757 return _IMP_kernel.ParticleIndex___lt__(self, o)
2759 def __gt__(self, o):
2760 r"""__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
2761 return _IMP_kernel.ParticleIndex___gt__(self, o)
2763 def __ge__(self, o):
2764 r"""__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
2765 return _IMP_kernel.ParticleIndex___ge__(self, o)
2767 def __le__(self, o):
2768 r"""__le__(ParticleIndex self, ParticleIndex o) -> bool"""
2769 return _IMP_kernel.ParticleIndex___le__(self, o)
2771 def show(self, *args):
2772 r"""show(ParticleIndex self, _ostream out=std::cout)"""
2773 return _IMP_kernel.ParticleIndex_show(self, *args)
2776 r"""__hash__(ParticleIndex self) -> std::size_t"""
2777 return _IMP_kernel.ParticleIndex___hash__(self)
2780 r"""__str__(ParticleIndex self) -> std::string"""
2781 return _IMP_kernel.ParticleIndex___str__(self)
2784 r"""__repr__(ParticleIndex self) -> std::string"""
2785 return _IMP_kernel.ParticleIndex___repr__(self)
2786 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
2789 _IMP_kernel.ParticleIndex_swigregister(ParticleIndex)
2791 r"""Proxy of C++ IMP::Key< 10 > class."""
2793 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2795 def __init__(self, *args):
2797 __init__(FloatsKey self) -> FloatsKey
2798 __init__(FloatsKey self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
2799 __init__(FloatsKey self, unsigned int i) -> FloatsKey
2801 _IMP_kernel.FloatsKey_swiginit(self, _IMP_kernel.new_FloatsKey(*args))
2805 r"""add_key(std::string sc) -> unsigned int"""
2806 return _IMP_kernel.FloatsKey_add_key(sc)
2809 def get_key_exists(sc):
2810 r"""get_key_exists(std::string sc) -> bool"""
2811 return _IMP_kernel.FloatsKey_get_key_exists(sc)
2813 def get_string(self):
2814 r"""get_string(FloatsKey self) -> std::string const"""
2815 return _IMP_kernel.FloatsKey_get_string(self)
2817 def __cmp__(self, o):
2818 r"""__cmp__(FloatsKey self, FloatsKey o) -> int"""
2819 return _IMP_kernel.FloatsKey___cmp__(self, o)
2821 def __eq__(self, o):
2822 r"""__eq__(FloatsKey self, FloatsKey o) -> bool"""
2823 return _IMP_kernel.FloatsKey___eq__(self, o)
2825 def __ne__(self, o):
2826 r"""__ne__(FloatsKey self, FloatsKey o) -> bool"""
2827 return _IMP_kernel.FloatsKey___ne__(self, o)
2829 def __lt__(self, o):
2830 r"""__lt__(FloatsKey self, FloatsKey o) -> bool"""
2831 return _IMP_kernel.FloatsKey___lt__(self, o)
2833 def __gt__(self, o):
2834 r"""__gt__(FloatsKey self, FloatsKey o) -> bool"""
2835 return _IMP_kernel.FloatsKey___gt__(self, o)
2837 def __ge__(self, o):
2838 r"""__ge__(FloatsKey self, FloatsKey o) -> bool"""
2839 return _IMP_kernel.FloatsKey___ge__(self, o)
2841 def __le__(self, o):
2842 r"""__le__(FloatsKey self, FloatsKey o) -> bool"""
2843 return _IMP_kernel.FloatsKey___le__(self, o)
2846 r"""__hash__(FloatsKey self) -> std::size_t"""
2847 return _IMP_kernel.FloatsKey___hash__(self)
2849 def show(self, *args):
2850 r"""show(FloatsKey self, _ostream out=std::cout)"""
2851 return _IMP_kernel.FloatsKey_show(self, *args)
2854 def add_alias(old_key, new_name):
2855 r"""add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
2856 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
2859 def get_number_of_keys():
2860 r"""get_number_of_keys() -> unsigned int"""
2861 return _IMP_kernel.FloatsKey_get_number_of_keys()
2864 r"""get_index(FloatsKey self) -> unsigned int"""
2865 return _IMP_kernel.FloatsKey_get_index(self)
2869 r"""show_all(_ostream out)"""
2870 return _IMP_kernel.FloatsKey_show_all(out)
2873 def get_all_strings():
2874 r"""get_all_strings() -> IMP::Vector< std::string >"""
2875 return _IMP_kernel.FloatsKey_get_all_strings()
2878 def get_number_unique():
2879 r"""get_number_unique() -> unsigned int"""
2880 return _IMP_kernel.FloatsKey_get_number_unique()
2883 r"""__str__(FloatsKey self) -> std::string"""
2884 return _IMP_kernel.FloatsKey___str__(self)
2887 r"""__repr__(FloatsKey self) -> std::string"""
2888 return _IMP_kernel.FloatsKey___repr__(self)
2889 __swig_destroy__ = _IMP_kernel.delete_FloatsKey
2892 _IMP_kernel.FloatsKey_swigregister(FloatsKey)
2901 class FloatIndex(_Value):
2902 r"""Proxy of C++ IMP::FloatIndex class."""
2904 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2906 def __init__(self, *args):
2907 r"""__init__(FloatIndex self, ParticleIndex i0=ParticleIndex(), FloatKey i1=FloatKey()) -> FloatIndex"""
2908 _IMP_kernel.FloatIndex_swiginit(self, _IMP_kernel.new_FloatIndex(*args))
2911 r"""__hash__(FloatIndex self) -> std::size_t"""
2912 return _IMP_kernel.FloatIndex___hash__(self)
2914 def show(self, *args):
2915 r"""show(FloatIndex self, _ostream out=std::cout)"""
2916 return _IMP_kernel.FloatIndex_show(self, *args)
2918 def __cmp__(self, o):
2919 r"""__cmp__(FloatIndex self, FloatIndex o) -> int"""
2920 return _IMP_kernel.FloatIndex___cmp__(self, o)
2922 def __eq__(self, o):
2923 r"""__eq__(FloatIndex self, FloatIndex o) -> bool"""
2924 return _IMP_kernel.FloatIndex___eq__(self, o)
2926 def __ne__(self, o):
2927 r"""__ne__(FloatIndex self, FloatIndex o) -> bool"""
2928 return _IMP_kernel.FloatIndex___ne__(self, o)
2930 def __lt__(self, o):
2931 r"""__lt__(FloatIndex self, FloatIndex o) -> bool"""
2932 return _IMP_kernel.FloatIndex___lt__(self, o)
2934 def __gt__(self, o):
2935 r"""__gt__(FloatIndex self, FloatIndex o) -> bool"""
2936 return _IMP_kernel.FloatIndex___gt__(self, o)
2938 def __ge__(self, o):
2939 r"""__ge__(FloatIndex self, FloatIndex o) -> bool"""
2940 return _IMP_kernel.FloatIndex___ge__(self, o)
2942 def __le__(self, o):
2943 r"""__le__(FloatIndex self, FloatIndex o) -> bool"""
2944 return _IMP_kernel.FloatIndex___le__(self, o)
2946 def get_particle(self):
2947 r"""get_particle(FloatIndex self) -> ParticleIndex const &"""
2948 return _IMP_kernel.FloatIndex_get_particle(self)
2950 def set_particle(self, v):
2951 r"""set_particle(FloatIndex self, ParticleIndex const & v)"""
2952 return _IMP_kernel.FloatIndex_set_particle(self, v)
2955 r"""get_key(FloatIndex self) -> FloatKey const &"""
2956 return _IMP_kernel.FloatIndex_get_key(self)
2958 def set_key(self, v):
2959 r"""set_key(FloatIndex self, FloatKey const & v)"""
2960 return _IMP_kernel.FloatIndex_set_key(self, v)
2963 r"""__str__(FloatIndex self) -> std::string"""
2964 return _IMP_kernel.FloatIndex___str__(self)
2967 r"""__repr__(FloatIndex self) -> std::string"""
2968 return _IMP_kernel.FloatIndex___repr__(self)
2969 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
2972 _IMP_kernel.FloatIndex_swigregister(FloatIndex)
2973 class _ParticleIndexTag(object):
2974 r"""Proxy of C++ IMP::ParticleIndexTag class."""
2976 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2977 __repr__ = _swig_repr
2980 r"""__init__(_ParticleIndexTag self) -> _ParticleIndexTag"""
2981 _IMP_kernel._ParticleIndexTag_swiginit(self, _IMP_kernel.new__ParticleIndexTag())
2982 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
2985 _IMP_kernel._ParticleIndexTag_swigregister(_ParticleIndexTag)
2986 class ModelObject(Object):
2987 r"""Proxy of C++ IMP::ModelObject class."""
2989 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2991 def __init__(self, *args):
2993 __init__(ModelObject self, Model m, std::string name) -> ModelObject
2994 __init__(ModelObject self) -> ModelObject
2996 if self.__class__ == ModelObject:
3000 _IMP_kernel.ModelObject_swiginit(self, _IMP_kernel.new_ModelObject(_self, *args))
3002 if self.__class__ != ModelObject:
3003 _director_objects.register(self)
3007 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3009 def get_model(self):
3010 m = _IMP_kernel.ModelObject_get_model(self)
3011 if m
in _models_set:
3012 m = _models_set_get(m)
3017 def get_inputs(self):
3018 r"""get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3019 return _IMP_kernel.ModelObject_get_inputs(self)
3021 def get_outputs(self):
3022 r"""get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3023 return _IMP_kernel.ModelObject_get_outputs(self)
3025 def get_interactions(self):
3026 r"""get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3027 return _IMP_kernel.ModelObject_get_interactions(self)
3029 def get_has_dependencies(self):
3030 r"""get_has_dependencies(ModelObject self) -> bool"""
3031 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3033 def set_has_dependencies(self, tf):
3034 r"""set_has_dependencies(ModelObject self, bool tf)"""
3035 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3037 def set_has_required_score_states(self, tf):
3038 r"""set_has_required_score_states(ModelObject self, bool tf)"""
3039 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3041 def get_has_required_score_states(self):
3042 r"""get_has_required_score_states(ModelObject self) -> bool"""
3043 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3045 def get_required_score_states(self):
3046 r"""get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3047 return _IMP_kernel.ModelObject_get_required_score_states(self)
3049 def handle_set_has_required_score_states(self, arg0):
3050 r"""handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3051 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3053 def do_get_inputs(self):
3054 r"""do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3055 return _IMP_kernel.ModelObject_do_get_inputs(self)
3057 def do_get_outputs(self):
3058 r"""do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3059 return _IMP_kernel.ModelObject_do_get_outputs(self)
3061 def do_get_interactions(self):
3062 r"""do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3063 return _IMP_kernel.ModelObject_do_get_interactions(self)
3066 r"""__str__(ModelObject self) -> std::string"""
3067 return _IMP_kernel.ModelObject___str__(self)
3070 r"""__repr__(ModelObject self) -> std::string"""
3071 return _IMP_kernel.ModelObject___repr__(self)
3075 return _object_cast_to_ModelObject(o)
3078 def get_type_name(self):
3079 return self.__class__.__name__
3080 def do_show(self, out):
3082 def get_version_info(self):
3084 return VersionInfo(self.__module__,
3091 return _object_cast_to_ModelObject(o)
3093 def __disown__(self):
3095 _IMP_kernel.disown_ModelObject(self)
3096 return weakref.proxy(self)
3098 def do_destroy(self):
3099 r"""do_destroy(ModelObject self)"""
3100 return _IMP_kernel.ModelObject_do_destroy(self)
3103 _IMP_kernel.ModelObject_swigregister(ModelObject)
3104 cvar = _IMP_kernel.cvar
3105 NO_MAX = cvar.NO_MAX
3106 BAD_SCORE = cvar.BAD_SCORE
3108 class _ParticleInputs(object):
3109 r"""Proxy of C++ IMP::ParticleInputs class."""
3111 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3113 def __init__(self, *args, **kwargs):
3114 raise AttributeError(
"No constructor defined - class is abstract")
3115 __repr__ = _swig_repr
3117 def get_inputs(self, m, pis):
3118 r"""get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3119 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3122 _IMP_kernel._ParticleInputs_swigregister(_ParticleInputs)
3123 class _ParticleOutputs(object):
3124 r"""Proxy of C++ IMP::ParticleOutputs class."""
3126 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3128 def __init__(self, *args, **kwargs):
3129 raise AttributeError(
"No constructor defined - class is abstract")
3130 __repr__ = _swig_repr
3132 def get_outputs(self, m, pis):
3133 r"""get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3134 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3137 _IMP_kernel._ParticleOutputs_swigregister(_ParticleOutputs)
3140 r"""get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3141 return _IMP_kernel.get_input_particles(mos)
3144 r"""get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3145 return _IMP_kernel.get_input_containers(mos)
3148 r"""get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3149 return _IMP_kernel.get_output_particles(mos)
3152 r"""get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3153 return _IMP_kernel.get_output_containers(mos)
3154 class DerivativeAccumulator(object):
3155 r"""Proxy of C++ IMP::DerivativeAccumulator class."""
3157 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3158 __repr__ = _swig_repr
3160 def __init__(self, *args):
3162 __init__(DerivativeAccumulator self, DerivativeAccumulator arg2) -> DerivativeAccumulator
3163 __init__(DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3164 __init__(DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3166 _IMP_kernel.DerivativeAccumulator_swiginit(self, _IMP_kernel.new_DerivativeAccumulator(*args))
3168 def __call__(self, value):
3169 r"""__call__(DerivativeAccumulator self, double const value) -> double"""
3170 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3172 def get_weight(self):
3173 r"""get_weight(DerivativeAccumulator self) -> double"""
3174 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3176 def show(self, *args):
3177 r"""show(DerivativeAccumulator self, _ostream out=std::cout)"""
3178 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3179 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3182 _IMP_kernel.DerivativeAccumulator_swigregister(DerivativeAccumulator)
3183 class EvaluationState(object):
3184 r"""Proxy of C++ IMP::EvaluationState class."""
3186 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3187 score = property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set, doc=
r"""score : double""")
3188 good = property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set, doc=
r"""good : bool""")
3190 def __init__(self, *args):
3192 __init__(EvaluationState self, double oscore, bool ogood) -> EvaluationState
3193 __init__(EvaluationState self) -> EvaluationState
3195 _IMP_kernel.EvaluationState_swiginit(self, _IMP_kernel.new_EvaluationState(*args))
3197 def show(self, *args):
3198 r"""show(EvaluationState self, _ostream out=std::cout)"""
3199 return _IMP_kernel.EvaluationState_show(self, *args)
3202 r"""__str__(EvaluationState self) -> std::string"""
3203 return _IMP_kernel.EvaluationState___str__(self)
3206 r"""__repr__(EvaluationState self) -> std::string"""
3207 return _IMP_kernel.EvaluationState___repr__(self)
3208 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3211 _IMP_kernel.EvaluationState_swigregister(EvaluationState)
3212 class ScoreAccumulator(_Value):
3213 r"""Proxy of C++ IMP::ScoreAccumulator class."""
3215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3217 def __init__(self, *args):
3219 __init__(ScoreAccumulator self, ScoreAccumulator arg2) -> ScoreAccumulator
3220 __init__(ScoreAccumulator self) -> ScoreAccumulator
3221 __init__(ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3222 __init__(ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3224 _IMP_kernel.ScoreAccumulator_swiginit(self, _IMP_kernel.new_ScoreAccumulator(*args))
3226 def add_score(self, score):
3227 r"""add_score(ScoreAccumulator self, double score)"""
3228 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3230 def get_abort_evaluation(self):
3231 r"""get_abort_evaluation(ScoreAccumulator self) -> bool"""
3232 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3234 def get_is_evaluate_if_below(self):
3235 r"""get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3236 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3238 def get_is_evaluate_if_good(self):
3239 r"""get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3240 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3242 def get_maximum(self):
3243 r"""get_maximum(ScoreAccumulator self) -> double"""
3244 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3246 def get_derivative_accumulator(self):
3247 r"""get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3248 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3250 def show(self, *args):
3251 r"""show(ScoreAccumulator self, _ostream out=std::cout)"""
3252 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3255 r"""__str__(ScoreAccumulator self) -> std::string"""
3256 return _IMP_kernel.ScoreAccumulator___str__(self)
3259 r"""__repr__(ScoreAccumulator self) -> std::string"""
3260 return _IMP_kernel.ScoreAccumulator___repr__(self)
3261 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3264 _IMP_kernel.ScoreAccumulator_swigregister(ScoreAccumulator)
3265 class ScoreState(ModelObject):
3266 r"""Proxy of C++ IMP::ScoreState class."""
3268 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3270 def set_can_skip(self, can_skip):
3271 r"""set_can_skip(ScoreState self, bool can_skip)"""
3272 return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
3274 def __init__(self, *args):
3276 __init__(ScoreState self, Model m, std::string name) -> ScoreState
3277 __init__(ScoreState self) -> ScoreState
3279 if self.__class__ == ScoreState:
3283 _IMP_kernel.ScoreState_swiginit(self, _IMP_kernel.new_ScoreState(_self, *args))
3285 if self.__class__ != ScoreState:
3286 _director_objects.register(self)
3291 def before_evaluate(self):
3292 r"""before_evaluate(ScoreState self)"""
3293 return _IMP_kernel.ScoreState_before_evaluate(self)
3295 def after_evaluate(self, accpt):
3296 r"""after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3297 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3299 def get_can_skip(self):
3300 r"""get_can_skip(ScoreState self) -> bool"""
3301 return _IMP_kernel.ScoreState_get_can_skip(self)
3303 def get_has_update_order(self):
3304 r"""get_has_update_order(ScoreState self) -> bool"""
3305 return _IMP_kernel.ScoreState_get_has_update_order(self)
3308 r"""get_update_order(ScoreState self) -> unsigned int"""
3309 return _IMP_kernel.ScoreState_get_update_order(self)
3311 def handle_set_has_required_score_states(self, tf):
3312 r"""handle_set_has_required_score_states(ScoreState self, bool tf)"""
3313 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3315 def do_before_evaluate(self):
3316 r"""do_before_evaluate(ScoreState self)"""
3317 return _IMP_kernel.ScoreState_do_before_evaluate(self)
3319 def do_after_evaluate(self, accpt):
3320 r"""do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3321 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3322 __swig_destroy__ = _IMP_kernel.delete_ScoreState
3325 r"""__str__(ScoreState self) -> std::string"""
3326 return _IMP_kernel.ScoreState___str__(self)
3329 r"""__repr__(ScoreState self) -> std::string"""
3330 return _IMP_kernel.ScoreState___repr__(self)
3334 return _object_cast_to_ScoreState(o)
3337 def get_type_name(self):
3338 return self.__class__.__name__
3339 def do_show(self, out):
3341 def get_version_info(self):
3343 return VersionInfo(self.__module__,
3350 return _object_cast_to_ScoreState(o)
3352 def __disown__(self):
3354 _IMP_kernel.disown_ScoreState(self)
3355 return weakref.proxy(self)
3357 def do_destroy(self):
3358 r"""do_destroy(ScoreState self)"""
3359 return _IMP_kernel.ScoreState_do_destroy(self)
3361 def do_get_inputs(self):
3362 r"""do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3363 return _IMP_kernel.ScoreState_do_get_inputs(self)
3365 def do_get_outputs(self):
3366 r"""do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3367 return _IMP_kernel.ScoreState_do_get_outputs(self)
3369 def do_get_interactions(self):
3370 r"""do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3371 return _IMP_kernel.ScoreState_do_get_interactions(self)
3374 _IMP_kernel.ScoreState_swigregister(ScoreState)
3377 r"""get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3378 return _IMP_kernel.get_update_order(input)
3379 class Constraint(ScoreState):
3380 r"""Proxy of C++ IMP::Constraint class."""
3382 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3384 def __init__(self, *args):
3386 __init__(Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
3387 __init__(Constraint self) -> Constraint
3389 if self.__class__ == Constraint:
3393 _IMP_kernel.Constraint_swiginit(self, _IMP_kernel.new_Constraint(_self, *args))
3395 if self.__class__ != Constraint:
3396 _director_objects.register(self)
3401 def do_update_attributes(self):
3402 r"""do_update_attributes(Constraint self)"""
3403 return _IMP_kernel.Constraint_do_update_attributes(self)
3405 def do_update_derivatives(self, da):
3406 r"""do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3407 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3409 def do_before_evaluate(self):
3410 r"""do_before_evaluate(Constraint self)"""
3411 return _IMP_kernel.Constraint_do_before_evaluate(self)
3413 def do_after_evaluate(self, da):
3414 r"""do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3415 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3416 __swig_destroy__ = _IMP_kernel.delete_Constraint
3419 r"""__str__(Constraint self) -> std::string"""
3420 return _IMP_kernel.Constraint___str__(self)
3423 r"""__repr__(Constraint self) -> std::string"""
3424 return _IMP_kernel.Constraint___repr__(self)
3428 return _object_cast_to_Constraint(o)
3431 def get_type_name(self):
3432 return self.__class__.__name__
3433 def do_show(self, out):
3435 def get_version_info(self):
3437 return VersionInfo(self.__module__,
3444 return _object_cast_to_Constraint(o)
3446 def __disown__(self):
3448 _IMP_kernel.disown_Constraint(self)
3449 return weakref.proxy(self)
3451 def do_destroy(self):
3452 r"""do_destroy(Constraint self)"""
3453 return _IMP_kernel.Constraint_do_destroy(self)
3455 def do_get_inputs(self):
3456 r"""do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3457 return _IMP_kernel.Constraint_do_get_inputs(self)
3459 def do_get_outputs(self):
3460 r"""do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3461 return _IMP_kernel.Constraint_do_get_outputs(self)
3463 def do_get_interactions(self):
3464 r"""do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3465 return _IMP_kernel.Constraint_do_get_interactions(self)
3468 _IMP_kernel.Constraint_swigregister(Constraint)
3469 class Container(ModelObject):
3470 r"""Proxy of C++ IMP::Container class."""
3472 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3474 def __init__(self, *args):
3476 __init__(Container self, Model m, std::string name="Container %1%") -> Container
3477 __init__(Container self) -> Container
3479 if self.__class__ == Container:
3483 _IMP_kernel.Container_swiginit(self, _IMP_kernel.new_Container(_self, *args))
3485 if self.__class__ != Container:
3486 _director_objects.register(self)
3491 def do_get_contents_hash(self):
3492 r"""do_get_contents_hash(Container self) -> std::size_t"""
3493 return _IMP_kernel.Container_do_get_contents_hash(self)
3495 def get_all_possible_indexes(self):
3496 r"""get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3497 return _IMP_kernel.Container_get_all_possible_indexes(self)
3499 def get_contents_hash(self):
3500 r"""get_contents_hash(Container self) -> std::size_t"""
3501 return _IMP_kernel.Container_get_contents_hash(self)
3503 def do_get_outputs(self):
3504 r"""do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3505 return _IMP_kernel.Container_do_get_outputs(self)
3507 def get_is_decomposable(self):
3508 r"""get_is_decomposable(Container self) -> bool"""
3509 return _IMP_kernel.Container_get_is_decomposable(self)
3511 def validate_readable(self):
3512 r"""validate_readable(Container self)"""
3513 return _IMP_kernel.Container_validate_readable(self)
3515 def validate_writable(self):
3516 r"""validate_writable(Container self)"""
3517 return _IMP_kernel.Container_validate_writable(self)
3519 def set_is_readable(self, tf):
3520 r"""set_is_readable(Container self, bool tf)"""
3521 return _IMP_kernel.Container_set_is_readable(self, tf)
3523 def set_is_writable(self, tf):
3524 r"""set_is_writable(Container self, bool tf)"""
3525 return _IMP_kernel.Container_set_is_writable(self, tf)
3526 __swig_destroy__ = _IMP_kernel.delete_Container
3529 r"""__str__(Container self) -> std::string"""
3530 return _IMP_kernel.Container___str__(self)
3533 r"""__repr__(Container self) -> std::string"""
3534 return _IMP_kernel.Container___repr__(self)
3538 return _object_cast_to_Container(o)
3541 def get_type_name(self):
3542 return self.__class__.__name__
3543 def do_show(self, out):
3545 def get_version_info(self):
3547 return VersionInfo(self.__module__,
3554 return _object_cast_to_Container(o)
3556 def __disown__(self):
3558 _IMP_kernel.disown_Container(self)
3559 return weakref.proxy(self)
3561 def do_destroy(self):
3562 r"""do_destroy(Container self)"""
3563 return _IMP_kernel.Container_do_destroy(self)
3565 def handle_set_has_required_score_states(self, arg0):
3566 r"""handle_set_has_required_score_states(Container self, bool arg0)"""
3567 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3569 def do_get_inputs(self):
3570 r"""do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
3571 return _IMP_kernel.Container_do_get_inputs(self)
3573 def do_get_interactions(self):
3574 r"""do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
3575 return _IMP_kernel.Container_do_get_interactions(self)
3578 _IMP_kernel.Container_swigregister(Container)
3579 class RestraintInfo(Object):
3580 r"""Proxy of C++ IMP::RestraintInfo class."""
3582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3584 def __init__(self, *args):
3585 r"""__init__(RestraintInfo self, std::string name="RestraintInfo %1%") -> RestraintInfo"""
3586 _IMP_kernel.RestraintInfo_swiginit(self, _IMP_kernel.new_RestraintInfo(*args))
3588 def add_int(self, key, value):
3589 r"""add_int(RestraintInfo self, std::string key, int value)"""
3590 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
3592 def get_number_of_int(self):
3593 r"""get_number_of_int(RestraintInfo self) -> unsigned int"""
3594 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
3596 def get_int_key(self, i):
3597 r"""get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
3598 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
3600 def get_int_value(self, i):
3601 r"""get_int_value(RestraintInfo self, unsigned int i) -> int"""
3602 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
3604 def add_float(self, key, value):
3605 r"""add_float(RestraintInfo self, std::string key, double value)"""
3606 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
3608 def get_number_of_float(self):
3609 r"""get_number_of_float(RestraintInfo self) -> unsigned int"""
3610 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
3612 def get_float_key(self, i):
3613 r"""get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
3614 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
3616 def get_float_value(self, i):
3617 r"""get_float_value(RestraintInfo self, unsigned int i) -> double"""
3618 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
3620 def add_string(self, key, value):
3621 r"""add_string(RestraintInfo self, std::string key, std::string value)"""
3622 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
3624 def get_number_of_string(self):
3625 r"""get_number_of_string(RestraintInfo self) -> unsigned int"""
3626 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
3628 def get_string_key(self, i):
3629 r"""get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
3630 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
3632 def get_string_value(self, i):
3633 r"""get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
3634 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
3636 def add_filename(self, key, value):
3637 r"""add_filename(RestraintInfo self, std::string key, std::string value)"""
3638 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
3640 def get_number_of_filename(self):
3641 r"""get_number_of_filename(RestraintInfo self) -> unsigned int"""
3642 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
3644 def get_filename_key(self, i):
3645 r"""get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
3646 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
3648 def get_filename_value(self, i):
3649 r"""get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
3650 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
3652 def add_floats(self, key, value):
3653 r"""add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
3654 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
3656 def get_number_of_floats(self):
3657 r"""get_number_of_floats(RestraintInfo self) -> unsigned int"""
3658 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
3660 def get_floats_key(self, i):
3661 r"""get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
3662 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
3664 def get_floats_value(self, i):
3665 r"""get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
3666 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
3668 def add_ints(self, key, value):
3669 r"""add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
3670 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
3672 def get_number_of_ints(self):
3673 r"""get_number_of_ints(RestraintInfo self) -> unsigned int"""
3674 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
3676 def get_ints_key(self, i):
3677 r"""get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
3678 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
3680 def get_ints_value(self, i):
3681 r"""get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
3682 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
3684 def add_strings(self, key, value):
3685 r"""add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
3686 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
3688 def get_number_of_strings(self):
3689 r"""get_number_of_strings(RestraintInfo self) -> unsigned int"""
3690 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
3692 def get_strings_key(self, i):
3693 r"""get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
3694 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
3696 def get_strings_value(self, i):
3697 r"""get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
3698 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
3700 def add_filenames(self, key, value):
3701 r"""add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
3702 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
3704 def get_number_of_filenames(self):
3705 r"""get_number_of_filenames(RestraintInfo self) -> unsigned int"""
3706 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
3708 def get_filenames_key(self, i):
3709 r"""get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
3710 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
3712 def get_filenames_value(self, i):
3713 r"""get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
3714 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
3716 def add_particle_indexes(self, key, value):
3717 r"""add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
3718 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
3720 def get_number_of_particle_indexes(self):
3721 r"""get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
3722 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
3724 def get_particle_indexes_key(self, i):
3725 r"""get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
3726 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
3728 def get_particle_indexes_value(self, i):
3729 r"""get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
3730 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
3732 def get_version_info(self):
3733 r"""get_version_info(RestraintInfo self) -> VersionInfo"""
3734 return _IMP_kernel.RestraintInfo_get_version_info(self)
3735 __swig_destroy__ = _IMP_kernel.delete_RestraintInfo
3738 r"""__str__(RestraintInfo self) -> std::string"""
3739 return _IMP_kernel.RestraintInfo___str__(self)
3742 r"""__repr__(RestraintInfo self) -> std::string"""
3743 return _IMP_kernel.RestraintInfo___repr__(self)
3747 return _object_cast_to_RestraintInfo(o)
3751 _IMP_kernel.RestraintInfo_swigregister(RestraintInfo)
3752 class Restraint(ModelObject):
3753 r"""Proxy of C++ IMP::Restraint class."""
3755 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3757 def __init__(self, *args):
3759 __init__(Restraint self, Model m, std::string name) -> Restraint
3760 __init__(Restraint self) -> Restraint
3762 if self.__class__ == Restraint:
3766 _IMP_kernel.Restraint_swiginit(self, _IMP_kernel.new_Restraint(_self, *args))
3768 if self.__class__ != Restraint:
3769 _director_objects.register(self)
3774 def get_score(self):
3775 r"""get_score(Restraint self) -> double"""
3776 return _IMP_kernel.Restraint_get_score(self)
3778 def evaluate(self, calc_derivs):
3779 r"""evaluate(Restraint self, bool calc_derivs) -> double"""
3780 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
3782 def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
3783 r"""evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
3784 return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
3786 def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
3787 r"""evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
3788 return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
3790 def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
3791 r"""evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
3792 return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
3794 def evaluate_if_good(self, calc_derivatives):
3795 r"""evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
3796 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
3798 def evaluate_if_below(self, calc_derivatives, max):
3799 r"""evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
3800 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
3802 def unprotected_evaluate(self, da):
3803 r"""unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
3804 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
3806 def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
3807 r"""unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
3808 return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
3810 def unprotected_evaluate_if_good(self, da, max):
3811 r"""unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
3812 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
3814 def unprotected_evaluate_if_below(self, da, max):
3815 r"""unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
3816 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
3818 def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
3819 r"""unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
3820 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
3822 def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
3823 r"""unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
3824 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
3826 def get_static_info(self):
3827 r"""get_static_info(Restraint self) -> RestraintInfo"""
3828 return _IMP_kernel.Restraint_get_static_info(self)
3830 def get_dynamic_info(self):
3831 r"""get_dynamic_info(Restraint self) -> RestraintInfo"""
3832 return _IMP_kernel.Restraint_get_dynamic_info(self)
3834 def add_score_and_derivatives(self, sa):
3835 r"""add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
3836 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
3838 def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
3839 r"""add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3840 return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
3843 r"""create_decomposition(Restraint self) -> Restraint"""
3844 return _IMP_kernel.Restraint_create_decomposition(self)
3846 def create_current_decomposition(self):
3847 r"""create_current_decomposition(Restraint self) -> Restraint"""
3848 return _IMP_kernel.Restraint_create_current_decomposition(self)
3850 def set_weight(self, weight):
3851 r"""set_weight(Restraint self, IMP::Float weight)"""
3852 return _IMP_kernel.Restraint_set_weight(self, weight)
3854 def get_weight(self):
3855 r"""get_weight(Restraint self) -> IMP::Float"""
3856 return _IMP_kernel.Restraint_get_weight(self)
3858 def get_maximum_score(self):
3859 r"""get_maximum_score(Restraint self) -> double"""
3860 return _IMP_kernel.Restraint_get_maximum_score(self)
3862 def set_maximum_score(self, s):
3863 r"""set_maximum_score(Restraint self, double s)"""
3864 return _IMP_kernel.Restraint_set_maximum_score(self, s)
3867 r"""create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction"""
3868 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
3870 def set_last_score(self, s):
3871 r"""set_last_score(Restraint self, double s)"""
3872 return _IMP_kernel.Restraint_set_last_score(self, s)
3874 def set_last_last_score(self, s):
3875 r"""set_last_last_score(Restraint self, double s)"""
3876 return _IMP_kernel.Restraint_set_last_last_score(self, s)
3878 def get_last_score(self):
3879 r"""get_last_score(Restraint self) -> double"""
3880 return _IMP_kernel.Restraint_get_last_score(self)
3882 def get_last_last_score(self):
3883 r"""get_last_last_score(Restraint self) -> double"""
3884 return _IMP_kernel.Restraint_get_last_last_score(self)
3886 def get_is_aggregate(self):
3887 r"""get_is_aggregate(Restraint self) -> bool"""
3888 return _IMP_kernel.Restraint_get_is_aggregate(self)
3890 def get_was_good(self):
3891 r"""get_was_good(Restraint self) -> bool"""
3892 return _IMP_kernel.Restraint_get_was_good(self)
3893 __swig_destroy__ = _IMP_kernel.delete_Restraint
3895 def do_create_decomposition(self):
3896 r"""do_create_decomposition(Restraint self) -> IMP::Restraints"""
3897 return _IMP_kernel.Restraint_do_create_decomposition(self)
3899 def do_create_current_decomposition(self):
3900 r"""do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
3901 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
3903 def do_add_score_and_derivatives(self, sa):
3904 r"""do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
3905 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
3907 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
3908 r"""do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3909 return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
3911 def do_get_outputs(self):
3912 r"""do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
3913 return _IMP_kernel.Restraint_do_get_outputs(self)
3914 is_aggregate_ = property(_IMP_kernel.Restraint_is_aggregate__get, _IMP_kernel.Restraint_is_aggregate__set, doc=
r"""is_aggregate_ : bool""")
3917 r"""__str__(Restraint self) -> std::string"""
3918 return _IMP_kernel.Restraint___str__(self)
3921 r"""__repr__(Restraint self) -> std::string"""
3922 return _IMP_kernel.Restraint___repr__(self)
3926 return _object_cast_to_Restraint(o)
3929 def get_type_name(self):
3930 return self.__class__.__name__
3931 def do_show(self, out):
3933 def get_version_info(self):
3935 return VersionInfo(self.__module__,
3942 return _object_cast_to_Restraint(o)
3944 def __disown__(self):
3946 _IMP_kernel.disown_Restraint(self)
3947 return weakref.proxy(self)
3949 def do_destroy(self):
3950 r"""do_destroy(Restraint self)"""
3951 return _IMP_kernel.Restraint_do_destroy(self)
3953 def handle_set_has_required_score_states(self, arg0):
3954 r"""handle_set_has_required_score_states(Restraint self, bool arg0)"""
3955 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
3957 def do_get_inputs(self):
3958 r"""do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
3959 return _IMP_kernel.Restraint_do_get_inputs(self)
3961 def do_get_interactions(self):
3962 r"""do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
3963 return _IMP_kernel.Restraint_do_get_interactions(self)
3966 _IMP_kernel.Restraint_swigregister(Restraint)
3967 class _RestraintsAdaptor(_InputAdaptor):
3968 r"""Proxy of C++ IMP::RestraintsAdaptor class."""
3970 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3971 __repr__ = _swig_repr
3973 def __init__(self, *args):
3975 __init__(_RestraintsAdaptor self) -> _RestraintsAdaptor
3976 __init__(_RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
3977 __init__(_RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
3978 __init__(_RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
3980 _IMP_kernel._RestraintsAdaptor_swiginit(self, _IMP_kernel.new__RestraintsAdaptor(*args))
3981 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
3984 _IMP_kernel._RestraintsAdaptor_swigregister(_RestraintsAdaptor)
3985 class RestraintSet(Restraint):
3986 r"""Proxy of C++ IMP::RestraintSet class."""
3988 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3990 def __init__(self, *args):
3992 __init__(RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
3993 __init__(RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
3994 __init__(RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
3995 __init__(RestraintSet self) -> RestraintSet
3997 if self.__class__ == RestraintSet:
4001 _IMP_kernel.RestraintSet_swiginit(self, _IMP_kernel.new_RestraintSet(_self, *args))
4003 if self.__class__ != RestraintSet:
4004 _director_objects.register(self)
4009 def unprotected_evaluate(self, da):
4010 r"""unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4011 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4013 def get_type_name(self):
4014 r"""get_type_name(RestraintSet self) -> std::string"""
4015 return _IMP_kernel.RestraintSet_get_type_name(self)
4017 def get_version_info(self):
4018 r"""get_version_info(RestraintSet self) -> VersionInfo"""
4019 return _IMP_kernel.RestraintSet_get_version_info(self)
4020 __swig_destroy__ = _IMP_kernel.delete_RestraintSet
4021 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)
4022 def __set_restraints(self, obj): _list_util.set_varlist(self.restraints, obj)
4023 def __del_restraints(self): _list_util.del_varlist(self.restraints)
4024 restraints = property(__get_restraints, __set_restraints, __del_restraints, doc=
"List of ##ucnames")
4026 def remove_restraint(self, d):
4027 r"""remove_restraint(RestraintSet self, Restraint d)"""
4028 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4030 def _python_index_restraint(self, d, start, stop):
4031 r"""_python_index_restraint(RestraintSet self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
4032 return _IMP_kernel.RestraintSet__python_index_restraint(self, d, start, stop)
4034 def remove_restraints(self, d):
4035 r"""remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4036 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4038 def set_restraints(self, ps):
4039 r"""set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4040 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4042 def set_restraints_order(self, objs):
4043 r"""set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4044 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4047 r"""add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4048 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4051 r"""add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4052 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4054 def clear_restraints(self):
4055 r"""clear_restraints(RestraintSet self)"""
4056 return _IMP_kernel.RestraintSet_clear_restraints(self)
4058 def get_number_of_restraints(self):
4059 r"""get_number_of_restraints(RestraintSet self) -> unsigned int"""
4060 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4062 def get_has_restraints(self):
4063 r"""get_has_restraints(RestraintSet self) -> bool"""
4064 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4066 def get_restraint(self, i):
4067 r"""get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4068 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4070 def get_restraints(self):
4071 r"""get_restraints(RestraintSet self) -> IMP::Restraints"""
4072 return _IMP_kernel.RestraintSet_get_restraints(self)
4074 def erase_restraint(self, i):
4075 r"""erase_restraint(RestraintSet self, unsigned int i)"""
4076 return _IMP_kernel.RestraintSet_erase_restraint(self, i)
4078 def reserve_restraints(self, sz):
4079 r"""reserve_restraints(RestraintSet self, unsigned int sz)"""
4080 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4082 def get_non_sets_and_sets(self):
4083 r"""get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4084 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4086 def do_get_inputs(self):
4087 r"""do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4088 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4091 r"""create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction"""
4092 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4094 def get_last_score(self):
4095 r"""get_last_score(RestraintSet self) -> double"""
4096 return _IMP_kernel.RestraintSet_get_last_score(self)
4099 r"""__str__(RestraintSet self) -> std::string"""
4100 return _IMP_kernel.RestraintSet___str__(self)
4103 r"""__repr__(RestraintSet self) -> std::string"""
4104 return _IMP_kernel.RestraintSet___repr__(self)
4108 return _object_cast_to_RestraintSet(o)
4111 def get_type_name(self):
4112 return self.__class__.__name__
4113 def do_show(self, out):
4115 def get_version_info(self):
4117 return VersionInfo(self.__module__,
4124 return _object_cast_to_RestraintSet(o)
4127 def _get_as_binary(self):
4128 r"""_get_as_binary(RestraintSet self) -> PyObject *"""
4129 return _IMP_kernel.RestraintSet__get_as_binary(self)
4131 def _set_from_binary(self, p):
4132 r"""_set_from_binary(RestraintSet self, PyObject * p)"""
4133 return _IMP_kernel.RestraintSet__set_from_binary(self, p)
4135 def __getstate__(self):
4136 p = self._get_as_binary()
4137 if len(self.__dict__) > 1:
4138 d = self.__dict__.copy()
4143 def __setstate__(self, p):
4144 if not hasattr(self,
'this'):
4146 if isinstance(p, tuple):
4148 self.__dict__.update(d)
4149 return self._set_from_binary(p)
4151 def __disown__(self):
4153 _IMP_kernel.disown_RestraintSet(self)
4154 return weakref.proxy(self)
4156 def do_destroy(self):
4157 r"""do_destroy(RestraintSet self)"""
4158 return _IMP_kernel.RestraintSet_do_destroy(self)
4160 def handle_set_has_required_score_states(self, arg0):
4161 r"""handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4162 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4164 def do_get_outputs(self):
4165 r"""do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4166 return _IMP_kernel.RestraintSet_do_get_outputs(self)
4168 def do_get_interactions(self):
4169 r"""do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4170 return _IMP_kernel.RestraintSet_do_get_interactions(self)
4172 def do_create_decomposition(self):
4173 r"""do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4174 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4176 def do_create_current_decomposition(self):
4177 r"""do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4178 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4180 def do_add_score_and_derivatives(self, sa):
4181 r"""do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4182 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4184 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4185 r"""do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4186 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4189 _IMP_kernel.RestraintSet_swigregister(RestraintSet)
4191 def get_restraints(rs):
4192 r"""get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4193 return _IMP_kernel.get_restraints(rs)
4195 def _check_particle(p, a):
4196 if (
not p.get_is_active()):
4197 raise ValueError(
"Inactive Particle")
4198 if (type(a)() == a):
4199 raise IndexError(
"Cannot use default Index")
4200 if (
not p.has_attribute(a)):
4201 raise IndexError(
"Particle does not have attribute")
4203 class Particle(ModelObject):
4204 r"""Proxy of C++ IMP::Particle class."""
4206 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4208 def get_version_info(self):
4209 r"""get_version_info(Particle self) -> VersionInfo"""
4210 return _IMP_kernel.Particle_get_version_info(self)
4211 __swig_destroy__ = _IMP_kernel.delete_Particle
4213 def __init__(self, *args):
4215 __init__(Particle self, Model m, std::string name) -> Particle
4216 __init__(Particle self, Model m) -> Particle
4217 __init__(Particle self) -> Particle
4219 _IMP_kernel.Particle_swiginit(self, _IMP_kernel.new_Particle(*args))
4221 def get_float_keys(self):
4222 r"""get_float_keys(Particle self) -> IMP::FloatKeys"""
4223 return _IMP_kernel.Particle_get_float_keys(self)
4225 def get_floats_keys(self):
4226 r"""get_floats_keys(Particle self) -> IMP::FloatsKeys"""
4227 return _IMP_kernel.Particle_get_floats_keys(self)
4229 def get_int_keys(self):
4230 r"""get_int_keys(Particle self) -> IMP::IntKeys"""
4231 return _IMP_kernel.Particle_get_int_keys(self)
4233 def get_ints_keys(self):
4234 r"""get_ints_keys(Particle self) -> IMP::IntsKeys"""
4235 return _IMP_kernel.Particle_get_ints_keys(self)
4237 def get_string_keys(self):
4238 r"""get_string_keys(Particle self) -> IMP::StringKeys"""
4239 return _IMP_kernel.Particle_get_string_keys(self)
4241 def get_object_keys(self):
4242 r"""get_object_keys(Particle self) -> IMP::ObjectKeys"""
4243 return _IMP_kernel.Particle_get_object_keys(self)
4245 def add_cache_attribute(self, *args):
4247 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4248 add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
4249 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4250 add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
4251 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4252 add_cache_attribute(Particle self, ObjectKey name, Object value)
4253 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4255 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4257 def get_weak_object_keys(self):
4258 r"""get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4259 return _IMP_kernel.Particle_get_weak_object_keys(self)
4261 def add_to_derivative(self, key, value, da):
4262 r"""add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4263 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4265 def set_is_optimized(self, k, tf):
4266 r"""set_is_optimized(Particle self, FloatKey k, bool tf)"""
4267 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4269 def get_is_optimized(self, k):
4270 r"""get_is_optimized(Particle self, FloatKey k) -> bool"""
4271 return _IMP_kernel.Particle_get_is_optimized(self, k)
4273 def get_derivative(self, k):
4274 r"""get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4275 return _IMP_kernel.Particle_get_derivative(self, k)
4277 def add_attribute(self, *args):
4279 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4280 add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
4281 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4282 add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
4283 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4284 add_attribute(Particle self, ObjectKey name, Object initial_value)
4285 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4286 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4287 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4289 return _IMP_kernel.Particle_add_attribute(self, *args)
4291 def has_attribute(self, *args):
4293 has_attribute(Particle self, FloatKey name) -> bool
4294 has_attribute(Particle self, FloatsKey name) -> bool
4295 has_attribute(Particle self, IntKey name) -> bool
4296 has_attribute(Particle self, IntsKey name) -> bool
4297 has_attribute(Particle self, StringKey name) -> bool
4298 has_attribute(Particle self, ObjectKey name) -> bool
4299 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4300 has_attribute(Particle self, ParticleIndexKey k) -> bool
4302 return _IMP_kernel.Particle_has_attribute(self, *args)
4304 def set_value(self, *args):
4306 set_value(Particle self, FloatKey name, IMP::Float value)
4307 set_value(Particle self, FloatsKey name, IMP::Floats value)
4308 set_value(Particle self, IntKey name, IMP::Int value)
4309 set_value(Particle self, IntsKey name, IMP::Ints value)
4310 set_value(Particle self, StringKey name, IMP::String value)
4311 set_value(Particle self, ObjectKey name, Object value)
4312 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4313 set_value(Particle self, ParticleIndexKey k, Particle v)
4315 return _IMP_kernel.Particle_set_value(self, *args)
4317 def get_value(self, *args):
4319 get_value(Particle self, FloatKey name) -> IMP::Float
4320 get_value(Particle self, FloatsKey name) -> IMP::Floats
4321 get_value(Particle self, IntKey name) -> IMP::Int
4322 get_value(Particle self, IntsKey name) -> IMP::Ints
4323 get_value(Particle self, StringKey name) -> IMP::String
4324 get_value(Particle self, ObjectKey name) -> Object
4325 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4326 get_value(Particle self, ParticleIndexKey k) -> Particle
4328 return _IMP_kernel.Particle_get_value(self, *args)
4330 def remove_attribute(self, *args):
4332 remove_attribute(Particle self, FloatKey name)
4333 remove_attribute(Particle self, FloatsKey name)
4334 remove_attribute(Particle self, IntKey name)
4335 remove_attribute(Particle self, IntsKey name)
4336 remove_attribute(Particle self, StringKey name)
4337 remove_attribute(Particle self, ObjectKey name)
4338 remove_attribute(Particle self, IMP::WeakObjectKey name)
4339 remove_attribute(Particle self, ParticleIndexKey k)
4341 return _IMP_kernel.Particle_remove_attribute(self, *args)
4343 def get_particle_keys(self):
4344 r"""get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4345 return _IMP_kernel.Particle_get_particle_keys(self)
4347 def show(self, *args):
4348 r"""show(Particle self, _ostream out=std::cout)"""
4349 return _IMP_kernel.Particle_show(self, *args)
4351 def get_is_active(self):
4352 r"""get_is_active(Particle self) -> bool"""
4353 return _IMP_kernel.Particle_get_is_active(self)
4356 r"""get_index(Particle self) -> ParticleIndex"""
4357 return _IMP_kernel.Particle_get_index(self)
4359 def __eq__(self, *args):
4361 __eq__(Particle self, Particle o) -> bool
4362 __eq__(Particle self, Decorator d) -> bool
4364 return _IMP_kernel.Particle___eq__(self, *args)
4366 def __ne__(self, *args):
4368 __ne__(Particle self, Particle o) -> bool
4369 __ne__(Particle self, Decorator d) -> bool
4371 return _IMP_kernel.Particle___ne__(self, *args)
4373 def __le__(self, *args):
4375 __le__(Particle self, Particle o) -> bool
4376 __le__(Particle self, Decorator d) -> bool
4378 return _IMP_kernel.Particle___le__(self, *args)
4380 def __lt__(self, *args):
4382 __lt__(Particle self, Particle o) -> bool
4383 __lt__(Particle self, Decorator d) -> bool
4385 return _IMP_kernel.Particle___lt__(self, *args)
4387 def __ge__(self, *args):
4389 __ge__(Particle self, Particle o) -> bool
4390 __ge__(Particle self, Decorator d) -> bool
4392 return _IMP_kernel.Particle___ge__(self, *args)
4394 def __gt__(self, *args):
4396 __gt__(Particle self, Particle o) -> bool
4397 __gt__(Particle self, Decorator d) -> bool
4399 return _IMP_kernel.Particle___gt__(self, *args)
4401 __hash__ = ModelObject.__hash__
4405 r"""__str__(Particle self) -> std::string"""
4406 return _IMP_kernel.Particle___str__(self)
4409 r"""__repr__(Particle self) -> std::string"""
4410 return _IMP_kernel.Particle___repr__(self)
4414 return _object_cast_to_Particle(o)
4417 def _get_as_binary(self):
4418 r"""_get_as_binary(Particle self) -> PyObject *"""
4419 return _IMP_kernel.Particle__get_as_binary(self)
4421 def _set_from_binary(self, p):
4422 r"""_set_from_binary(Particle self, PyObject * p)"""
4423 return _IMP_kernel.Particle__set_from_binary(self, p)
4425 def __getstate__(self):
4426 p = self._get_as_binary()
4427 if len(self.__dict__) > 1:
4428 d = self.__dict__.copy()
4433 def __setstate__(self, p):
4434 if not hasattr(self,
'this'):
4436 if isinstance(p, tuple):
4438 self.__dict__.update(d)
4439 return self._set_from_binary(p)
4443 _IMP_kernel.Particle_swigregister(Particle)
4444 class _ParticleAdaptor(_InputAdaptor):
4445 r"""Proxy of C++ IMP::ParticleAdaptor class."""
4447 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4448 __repr__ = _swig_repr
4450 def __init__(self, *args):
4452 __init__(_ParticleAdaptor self) -> _ParticleAdaptor
4453 __init__(_ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4454 __init__(_ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4456 _IMP_kernel._ParticleAdaptor_swiginit(self, _IMP_kernel.new__ParticleAdaptor(*args))
4458 def get_model(self):
4459 r"""get_model(_ParticleAdaptor self) -> Model"""
4460 return _IMP_kernel._ParticleAdaptor_get_model(self)
4462 def get_particle_index(self):
4463 r"""get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4464 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4465 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4468 _IMP_kernel._ParticleAdaptor_swigregister(_ParticleAdaptor)
4469 class _DependencyGraphVertexIndex(object):
4470 r"""Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4472 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4473 __repr__ = _swig_repr
4476 r"""__init__(_DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4477 _IMP_kernel._DependencyGraphVertexIndex_swiginit(self, _IMP_kernel.new__DependencyGraphVertexIndex())
4478 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4481 _IMP_kernel._DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4483 def show_as_graphviz(name, out):
4484 r"""show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4485 return _IMP_kernel.show_as_graphviz(name, out)
4487 def get_vertex_index(g):
4488 r"""get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4489 return _IMP_kernel.get_vertex_index(g)
4492 r"""get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4493 return _IMP_kernel.get_dependency_graph(m)
4496 r"""get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4497 return _IMP_kernel.get_pruned_dependency_graph(m)
4499 def get_dependent_particles(p, all, dg, index):
4500 r"""get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4501 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4503 def get_required_score_states(*args):
4505 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude=IMP::ScoreStatesTemp()) -> IMP::ScoreStatesTemp
4506 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4507 get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
4509 return _IMP_kernel.get_required_score_states(*args)
4510 class ScoringFunction(ModelObject):
4511 r"""Proxy of C++ IMP::ScoringFunction class."""
4513 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4515 def do_add_score_and_derivatives(self, sa, ss):
4516 r"""do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4517 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4519 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
4520 r"""do_add_score_and_derivatives_moved(ScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
4521 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
4523 def get_score_accumulator_if_below(self, deriv, max):
4524 r"""get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4525 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4527 def get_score_accumulator_if_good(self, deriv):
4528 r"""get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4529 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4531 def get_score_accumulator(self, deriv):
4532 r"""get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4533 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4535 def __init__(self, *args):
4537 __init__(ScoringFunction self, Model m, std::string name) -> ScoringFunction
4538 __init__(ScoringFunction self) -> ScoringFunction
4540 if self.__class__ == ScoringFunction:
4544 _IMP_kernel.ScoringFunction_swiginit(self, _IMP_kernel.new_ScoringFunction(_self, *args))
4546 if self.__class__ != ScoringFunction:
4547 _director_objects.register(self)
4552 def do_get_outputs(self):
4553 r"""do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4554 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4556 def evaluate(self, derivatives):
4557 r"""evaluate(ScoringFunction self, bool derivatives) -> double"""
4558 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4560 def evaluate_if_good(self, derivatives):
4561 r"""evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4562 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4564 def evaluate_if_below(self, derivatives, max):
4565 r"""evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4566 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4568 def evaluate_moved(self, derivatives, moved_pis, reset_pis):
4569 r"""evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4570 return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
4572 def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
4573 r"""evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4574 return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
4576 def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
4577 r"""evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4578 return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
4580 def get_had_good_score(self):
4581 r"""get_had_good_score(ScoringFunction self) -> bool"""
4582 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4584 def get_last_score(self):
4585 r"""get_last_score(ScoringFunction self) -> double"""
4586 return _IMP_kernel.ScoringFunction_get_last_score(self)
4589 r"""create_restraints(ScoringFunction self) -> IMP::Restraints"""
4590 return _IMP_kernel.ScoringFunction_create_restraints(self)
4593 r"""__str__(ScoringFunction self) -> std::string"""
4594 return _IMP_kernel.ScoringFunction___str__(self)
4597 r"""__repr__(ScoringFunction self) -> std::string"""
4598 return _IMP_kernel.ScoringFunction___repr__(self)
4602 return _object_cast_to_ScoringFunction(o)
4605 def get_type_name(self):
4606 return self.__class__.__name__
4607 def do_show(self, out):
4609 def get_version_info(self):
4611 return VersionInfo(self.__module__,
4618 return _object_cast_to_ScoringFunction(o)
4620 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4621 def __disown__(self):
4623 _IMP_kernel.disown_ScoringFunction(self)
4624 return weakref.proxy(self)
4626 def do_destroy(self):
4627 r"""do_destroy(ScoringFunction self)"""
4628 return _IMP_kernel.ScoringFunction_do_destroy(self)
4630 def handle_set_has_required_score_states(self, arg0):
4631 r"""handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4632 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4634 def do_get_inputs(self):
4635 r"""do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4636 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4638 def do_get_interactions(self):
4639 r"""do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4640 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4643 _IMP_kernel.ScoringFunction_swigregister(ScoringFunction)
4647 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4648 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4650 return _IMP_kernel.create_decomposition(*args)
4651 class _ScoringFunctionAdaptor(_InputAdaptor):
4652 r"""Proxy of C++ IMP::ScoringFunctionAdaptor class."""
4654 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4655 __repr__ = _swig_repr
4657 def __init__(self, *args):
4659 __init__(_ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4660 __init__(_ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4661 __init__(_ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4662 __init__(_ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4663 __init__(_ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
4665 _IMP_kernel._ScoringFunctionAdaptor_swiginit(self, _IMP_kernel.new__ScoringFunctionAdaptor(*args))
4666 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
4669 _IMP_kernel._ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
4672 r"""show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)"""
4673 return _IMP_kernel.show_restraint_hierarchy(*args)
4674 class Undecorator(Object):
4675 r"""Proxy of C++ IMP::Undecorator class."""
4677 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4679 def __init__(self, m, name):
4680 r"""__init__(Undecorator self, Model m, std::string name) -> Undecorator"""
4681 if self.__class__ == Undecorator:
4685 _IMP_kernel.Undecorator_swiginit(self, _IMP_kernel.new_Undecorator(_self, m, name))
4687 if self.__class__ != Undecorator:
4688 _director_objects.register(self)
4693 def teardown(self, pi):
4694 r"""teardown(Undecorator self, ParticleIndex pi)"""
4695 return _IMP_kernel.Undecorator_teardown(self, pi)
4698 r"""__str__(Undecorator self) -> std::string"""
4699 return _IMP_kernel.Undecorator___str__(self)
4702 r"""__repr__(Undecorator self) -> std::string"""
4703 return _IMP_kernel.Undecorator___repr__(self)
4707 return _object_cast_to_Undecorator(o)
4710 def get_type_name(self):
4711 return self.__class__.__name__
4712 def do_show(self, out):
4714 def get_version_info(self):
4716 return VersionInfo(self.__module__,
4723 return _object_cast_to_Undecorator(o)
4725 __swig_destroy__ = _IMP_kernel.delete_Undecorator
4726 def __disown__(self):
4728 _IMP_kernel.disown_Undecorator(self)
4729 return weakref.proxy(self)
4731 def do_destroy(self):
4732 r"""do_destroy(Undecorator self)"""
4733 return _IMP_kernel.Undecorator_do_destroy(self)
4736 _IMP_kernel.Undecorator_swigregister(Undecorator)
4737 class Model(Object):
4738 r"""Proxy of C++ IMP::Model class."""
4740 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4742 def __init__(self, *args):
4743 r"""__init__(Model self, std::string name="Model %1%") -> Model"""
4744 _IMP_kernel.Model_swiginit(self, _IMP_kernel.new_Model(*args))
4746 if self
not in _models_set:
4747 _models_set.add(self)
4752 def clear_particle_caches(self, pi):
4753 r"""clear_particle_caches(Model self, ParticleIndex pi)"""
4754 return _IMP_kernel.Model_clear_particle_caches(self, pi)
4757 r"""add_particle(Model self, std::string name) -> ParticleIndex"""
4758 return _IMP_kernel.Model_add_particle(self, name)
4760 def get_particle_name(self, pi):
4761 r"""get_particle_name(Model self, ParticleIndex pi) -> std::string"""
4762 return _IMP_kernel.Model_get_particle_name(self, pi)
4764 def add_undecorator(self, pi, d):
4765 r"""add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
4766 return _IMP_kernel.Model_add_undecorator(self, pi, d)
4768 def get_dependent_restraints_uncached(self, pi):
4769 r"""get_dependent_restraints_uncached(Model self, ParticleIndex pi) -> IMP::RestraintsTemp"""
4770 return _IMP_kernel.Model_get_dependent_restraints_uncached(self, pi)
4772 def get_dependent_particles_uncached(self, pi):
4773 r"""get_dependent_particles_uncached(Model self, ParticleIndex pi) -> IMP::ParticlesTemp"""
4774 return _IMP_kernel.Model_get_dependent_particles_uncached(self, pi)
4776 def get_dependent_score_states_uncached(self, pi):
4777 r"""get_dependent_score_states_uncached(Model self, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
4778 return _IMP_kernel.Model_get_dependent_score_states_uncached(self, pi)
4779 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)
4780 def __set_score_states(self, obj): _list_util.set_varlist(self.score_states, obj)
4781 def __del_score_states(self): _list_util.del_varlist(self.score_states)
4782 score_states = property(__get_score_states, __set_score_states, __del_score_states, doc=
"List of ##ucnames")
4784 def remove_score_state(self, d):
4785 r"""remove_score_state(Model self, ScoreState d)"""
4786 return _IMP_kernel.Model_remove_score_state(self, d)
4788 def _python_index_score_state(self, d, start, stop):
4789 r"""_python_index_score_state(Model self, ScoreState d, unsigned int start, unsigned int stop) -> unsigned int"""
4790 return _IMP_kernel.Model__python_index_score_state(self, d, start, stop)
4792 def remove_score_states(self, d):
4793 r"""remove_score_states(Model self, IMP::ScoreStates const & d)"""
4794 return _IMP_kernel.Model_remove_score_states(self, d)
4796 def set_score_states(self, ps):
4797 r"""set_score_states(Model self, IMP::ScoreStates const & ps)"""
4798 return _IMP_kernel.Model_set_score_states(self, ps)
4800 def set_score_states_order(self, objs):
4801 r"""set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
4802 return _IMP_kernel.Model_set_score_states_order(self, objs)
4804 def add_score_state(self, obj):
4805 r"""add_score_state(Model self, ScoreState obj) -> unsigned int"""
4806 return _IMP_kernel.Model_add_score_state(self, obj)
4808 def add_score_states(self, objs):
4809 r"""add_score_states(Model self, IMP::ScoreStates const & objs)"""
4810 return _IMP_kernel.Model_add_score_states(self, objs)
4812 def clear_score_states(self):
4813 r"""clear_score_states(Model self)"""
4814 return _IMP_kernel.Model_clear_score_states(self)
4816 def get_number_of_score_states(self):
4817 r"""get_number_of_score_states(Model self) -> unsigned int"""
4818 return _IMP_kernel.Model_get_number_of_score_states(self)
4820 def get_has_score_states(self):
4821 r"""get_has_score_states(Model self) -> bool"""
4822 return _IMP_kernel.Model_get_has_score_states(self)
4824 def get_score_state(self, i):
4825 r"""get_score_state(Model self, unsigned int i) -> ScoreState"""
4826 return _IMP_kernel.Model_get_score_state(self, i)
4828 def get_score_states(self):
4829 r"""get_score_states(Model self) -> IMP::ScoreStates"""
4830 return _IMP_kernel.Model_get_score_states(self)
4832 def erase_score_state(self, i):
4833 r"""erase_score_state(Model self, unsigned int i)"""
4834 return _IMP_kernel.Model_erase_score_state(self, i)
4836 def reserve_score_states(self, sz):
4837 r"""reserve_score_states(Model self, unsigned int sz)"""
4838 return _IMP_kernel.Model_reserve_score_states(self, sz)
4841 r"""update(Model self)"""
4842 return _IMP_kernel.Model_update(self)
4844 def add_attribute(self, *args):
4846 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4847 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4848 add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
4849 add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4850 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4851 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4852 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4853 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4854 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4856 return _IMP_kernel.Model_add_attribute(self, *args)
4858 def remove_attribute(self, *args):
4860 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
4861 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
4862 remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
4863 remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
4864 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
4865 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
4866 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
4867 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
4868 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
4870 return _IMP_kernel.Model_remove_attribute(self, *args)
4872 def get_has_attribute(self, *args):
4874 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
4875 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
4876 get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
4877 get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
4878 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
4879 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
4880 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
4881 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
4882 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
4884 return _IMP_kernel.Model_get_has_attribute(self, *args)
4886 def set_attribute(self, *args):
4888 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4889 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4890 set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
4891 set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4892 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4893 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4894 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4895 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4896 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4898 return _IMP_kernel.Model_set_attribute(self, *args)
4900 def get_attribute(self, *args):
4902 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
4903 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
4904 get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
4905 get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
4906 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
4907 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
4908 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
4909 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
4910 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
4912 return _IMP_kernel.Model_get_attribute(self, *args)
4914 def add_cache_attribute(self, *args):
4916 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4917 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4918 add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
4919 add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4920 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4921 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4922 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4923 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4924 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4926 return _IMP_kernel.Model_add_cache_attribute(self, *args)
4928 def set_is_optimized(self, arg2, arg3, arg4):
4929 r"""set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
4930 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
4932 def add_to_derivative(self, k, particle, v, da):
4933 r"""add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
4934 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
4936 def get_particle(self, p):
4937 r"""get_particle(Model self, ParticleIndex p) -> Particle"""
4938 return _IMP_kernel.Model_get_particle(self, p)
4940 def get_has_particle(self, p):
4941 r"""get_has_particle(Model self, ParticleIndex p) -> bool"""
4942 return _IMP_kernel.Model_get_has_particle(self, p)
4945 r"""get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
4946 return _IMP_kernel.Model_get_particle_indexes(self)
4948 def get_model_objects(self):
4949 r"""get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
4950 return _IMP_kernel.Model_get_model_objects(self)
4952 def remove_particle(self, pi):
4953 r"""remove_particle(Model self, ParticleIndex pi)"""
4954 return _IMP_kernel.Model_remove_particle(self, pi)
4956 def add_data(self, mk, o):
4957 r"""add_data(Model self, ModelKey mk, Object o)"""
4958 return _IMP_kernel.Model_add_data(self, mk, o)
4960 def get_data(self, mk):
4961 r"""get_data(Model self, ModelKey mk) -> Object"""
4962 return _IMP_kernel.Model_get_data(self, mk)
4964 def remove_data(self, mk):
4965 r"""remove_data(Model self, ModelKey mk)"""
4966 return _IMP_kernel.Model_remove_data(self, mk)
4968 def get_has_data(self, mk):
4969 r"""get_has_data(Model self, ModelKey mk) -> bool"""
4970 return _IMP_kernel.Model_get_has_data(self, mk)
4973 r"""get_age(Model self) -> unsigned int"""
4974 return _IMP_kernel.Model_get_age(self)
4976 def get_trigger_last_updated(self, tk):
4977 r"""get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
4978 return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
4980 def set_trigger_updated(self, tk):
4981 r"""set_trigger_updated(Model self, TriggerKey tk)"""
4982 return _IMP_kernel.Model_set_trigger_updated(self, tk)
4984 def get_dependencies_updated(self):
4985 r"""get_dependencies_updated(Model self) -> unsigned int"""
4986 return _IMP_kernel.Model_get_dependencies_updated(self)
4988 def save_dependencies(self):
4989 r"""save_dependencies(Model self)"""
4990 return _IMP_kernel.Model_save_dependencies(self)
4992 def restore_dependencies(self):
4993 r"""restore_dependencies(Model self)"""
4994 return _IMP_kernel.Model_restore_dependencies(self)
4996 def get_particles_size(self):
4997 r"""get_particles_size(Model self) -> unsigned int"""
4998 return _IMP_kernel.Model_get_particles_size(self)
5000 def get_unique_id(self):
5001 r"""get_unique_id(Model self) -> uint32_t"""
5002 return _IMP_kernel.Model_get_unique_id(self)
5005 def get_by_unique_id(id):
5006 r"""get_by_unique_id(uint32_t id) -> Model"""
5007 return _IMP_kernel.Model_get_by_unique_id(id)
5009 def get_version_info(self):
5010 r"""get_version_info(Model self) -> VersionInfo"""
5011 return _IMP_kernel.Model_get_version_info(self)
5012 __swig_destroy__ = _IMP_kernel.delete_Model
5014 r"""__del__(Model self)"""
5016 _director_objects.cleanup()
5022 def do_destroy(self):
5023 r"""do_destroy(Model self)"""
5024 return _IMP_kernel.Model_do_destroy(self)
5027 r"""__str__(Model self) -> std::string"""
5028 return _IMP_kernel.Model___str__(self)
5031 r"""__repr__(Model self) -> std::string"""
5032 return _IMP_kernel.Model___repr__(self)
5036 return _object_cast_to_Model(o)
5039 def _get_as_binary(self):
5040 r"""_get_as_binary(Model self) -> PyObject *"""
5041 return _IMP_kernel.Model__get_as_binary(self)
5043 def _set_from_binary(self, p):
5044 r"""_set_from_binary(Model self, PyObject * p)"""
5045 return _IMP_kernel.Model__set_from_binary(self, p)
5047 def __getstate__(self):
5048 p = self._get_as_binary()
5049 if len(self.__dict__) > 1:
5050 d = self.__dict__.copy()
5055 def __setstate__(self, p):
5056 if not hasattr(self,
'this'):
5058 if isinstance(p, tuple):
5060 self.__dict__.update(d)
5061 return self._set_from_binary(p)
5065 """Get the model's attribute array for IntKey k as a NumPy array.
5066 The array is indexed by ParticleIndex; particles that don't have
5067 this attribute will either be off the end of the array or will have
5069 This is a NumPy view that shares memory with the Model. Thus,
5070 any changes to values in this list will be reflected in the Model.
5071 Also, if the Model attribute array moves in memory (e.g. if particles
5072 or attributes are added) this array will be invalidated, so it is
5073 unsafe to keep it around long term.
5075 return _get_ints_numpy(self, k, self)
5078 """Get the model's attribute array for FloatKey k as a NumPy array.
5079 See Model::get_ints_numpy() for more details."""
5080 return _get_floats_numpy(self, k, self)
5083 """Get the model's attribute derivatives array for FloatKey k
5084 as a NumPy array. See Model::get_ints_numpy() for more details."""
5085 return _get_derivatives_numpy(self, k, self)
5088 """Get the model's XYZR attribute arrays as NumPy arrays.
5089 The attribute arrays for Cartesian coordinates and radii are
5090 stored separately from those for other FloatKeys. This function
5091 returns a tuple of two NumPy arrays, the first of coordinates and
5092 the second of radii. See Model::get_ints_numpy() for more details."""
5093 return _get_spheres_numpy(self, self)
5096 """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
5097 See Model::get_ints_numpy() for more details."""
5098 return _get_sphere_derivatives_numpy(self, self)
5102 _IMP_kernel.Model_swigregister(Model)
5104 r"""Proxy of C++ IMP::Decorator class."""
5106 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5107 __repr__ = _swig_repr
5109 def __init__(self, p):
5110 r"""__init__(Decorator self, _ParticleAdaptor p) -> Decorator"""
5111 _IMP_kernel.Decorator_swiginit(self, _IMP_kernel.new_Decorator(p))
5113 def __ne__(self, o):
5114 r"""__ne__(Decorator self, Object o) -> bool"""
5115 return _IMP_kernel.Decorator___ne__(self, o)
5117 def __lt__(self, o):
5118 r"""__lt__(Decorator self, Object o) -> bool"""
5119 return _IMP_kernel.Decorator___lt__(self, o)
5121 def __gt__(self, o):
5122 r"""__gt__(Decorator self, Object o) -> bool"""
5123 return _IMP_kernel.Decorator___gt__(self, o)
5125 def __ge__(self, o):
5126 r"""__ge__(Decorator self, Object o) -> bool"""
5127 return _IMP_kernel.Decorator___ge__(self, o)
5129 def __le__(self, o):
5130 r"""__le__(Decorator self, Object o) -> bool"""
5131 return _IMP_kernel.Decorator___le__(self, o)
5134 r"""get_particle(Decorator self) -> Particle"""
5135 return _IMP_kernel.Decorator_get_particle(self)
5137 def get_particle_index(self):
5138 r"""get_particle_index(Decorator self) -> ParticleIndex"""
5139 return _IMP_kernel.Decorator_get_particle_index(self)
5141 def get_model(self):
5142 m = _IMP_kernel.Decorator_get_model(self)
5143 if m
in _models_set:
5144 m = _models_set_get(m)
5149 def get_is_valid(self):
5150 r"""get_is_valid(Decorator self) -> bool"""
5151 return _IMP_kernel.Decorator_get_is_valid(self)
5154 r"""__hash__(Decorator self) -> std::size_t"""
5155 return _IMP_kernel.Decorator___hash__(self)
5157 def __eq__(self, *args):
5159 __eq__(Decorator self, Object o) -> bool
5160 __eq__(Decorator self, Decorator o) -> bool
5161 __eq__(Decorator self, Particle o) -> bool
5163 return _IMP_kernel.Decorator___eq__(self, *args)
5166 r"""__bool__(Decorator self) -> bool"""
5167 return _IMP_kernel.Decorator___bool__(self)
5169 __nonzero__ = __bool__
5171 __swig_destroy__ = _IMP_kernel.delete_Decorator
5174 _IMP_kernel.Decorator_swigregister(Decorator)
5176 def check_particle(m, pi):
5177 r"""check_particle(Model m, ParticleIndex pi)"""
5178 return _IMP_kernel.check_particle(m, pi)
5180 r"""Proxy of C++ IMP::UnaryFunction class."""
5182 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5184 def __init__(self, *args):
5185 r"""__init__(UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction"""
5186 if self.__class__ == UnaryFunction:
5190 _IMP_kernel.UnaryFunction_swiginit(self, _IMP_kernel.new_UnaryFunction(_self, *args))
5192 if self.__class__ != UnaryFunction:
5193 _director_objects.register(self)
5198 def evaluate(self, feature):
5199 r"""evaluate(UnaryFunction self, double feature) -> double"""
5200 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5202 def evaluate_with_derivative(self, feature):
5203 r"""evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5204 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5205 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5208 r"""__str__(UnaryFunction self) -> std::string"""
5209 return _IMP_kernel.UnaryFunction___str__(self)
5212 r"""__repr__(UnaryFunction self) -> std::string"""
5213 return _IMP_kernel.UnaryFunction___repr__(self)
5217 return _object_cast_to_UnaryFunction(o)
5220 def get_type_name(self):
5221 return self.__class__.__name__
5222 def do_show(self, out):
5226 return VersionInfo(self.__module__,
5233 return _object_cast_to_UnaryFunction(o)
5235 def __disown__(self):
5237 _IMP_kernel.disown_UnaryFunction(self)
5238 return weakref.proxy(self)
5241 r"""do_destroy(UnaryFunction self)"""
5242 return _IMP_kernel.UnaryFunction_do_destroy(self)
5245 _IMP_kernel.UnaryFunction_swigregister(UnaryFunction)
5246 class OptimizerState(ModelObject):
5247 r"""Proxy of C++ IMP::OptimizerState class."""
5249 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5251 def __init__(self, *args):
5253 __init__(OptimizerState self, Model m, std::string name) -> OptimizerState
5254 __init__(OptimizerState self) -> OptimizerState
5256 if self.__class__ == OptimizerState:
5260 _IMP_kernel.OptimizerState_swiginit(self, _IMP_kernel.new_OptimizerState(_self, *args))
5262 if self.__class__ != OptimizerState:
5263 _director_objects.register(self)
5269 r"""update(OptimizerState self)"""
5270 return _IMP_kernel.OptimizerState_update(self)
5272 def set_is_optimizing(self, arg0):
5273 r"""set_is_optimizing(OptimizerState self, bool arg0)"""
5274 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5276 def get_optimizer(self):
5277 r"""get_optimizer(OptimizerState self) -> Optimizer"""
5278 return _IMP_kernel.OptimizerState_get_optimizer(self)
5280 def set_period(self, p):
5281 r"""set_period(OptimizerState self, unsigned int p)"""
5282 return _IMP_kernel.OptimizerState_set_period(self, p)
5284 def get_period(self):
5285 r"""get_period(OptimizerState self) -> unsigned int"""
5286 return _IMP_kernel.OptimizerState_get_period(self)
5289 r"""reset(OptimizerState self)"""
5290 return _IMP_kernel.OptimizerState_reset(self)
5292 def update_always(self):
5293 r"""update_always(OptimizerState self)"""
5294 return _IMP_kernel.OptimizerState_update_always(self)
5296 def get_number_of_updates(self):
5297 r"""get_number_of_updates(OptimizerState self) -> unsigned int"""
5298 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5300 def set_number_of_updates(self, n):
5301 r"""set_number_of_updates(OptimizerState self, unsigned int n)"""
5302 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5303 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5305 def do_update(self, arg0):
5306 r"""do_update(OptimizerState self, unsigned int arg0)"""
5307 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5309 def do_set_is_optimizing(self, arg0):
5310 r"""do_set_is_optimizing(OptimizerState self, bool arg0)"""
5311 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5313 def do_get_inputs(self):
5314 r"""do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5315 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5317 def do_get_outputs(self):
5318 r"""do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5319 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5322 r"""__str__(OptimizerState self) -> std::string"""
5323 return _IMP_kernel.OptimizerState___str__(self)
5326 r"""__repr__(OptimizerState self) -> std::string"""
5327 return _IMP_kernel.OptimizerState___repr__(self)
5331 return _object_cast_to_OptimizerState(o)
5334 def get_type_name(self):
5335 return self.__class__.__name__
5336 def do_show(self, out):
5340 return VersionInfo(self.__module__,
5347 return _object_cast_to_OptimizerState(o)
5349 def __disown__(self):
5351 _IMP_kernel.disown_OptimizerState(self)
5352 return weakref.proxy(self)
5355 r"""do_destroy(OptimizerState self)"""
5356 return _IMP_kernel.OptimizerState_do_destroy(self)
5358 def handle_set_has_required_score_states(self, arg0):
5359 r"""handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5360 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5362 def do_get_interactions(self):
5363 r"""do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5364 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5367 _IMP_kernel.OptimizerState_swigregister(OptimizerState)
5368 class Refiner(_ParticleInputs,
Object):
5369 r"""Proxy of C++ IMP::Refiner class."""
5371 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5373 def __init__(self, *args):
5374 r"""__init__(Refiner self, std::string name="Refiner %1%", bool is_by_ref=False) -> Refiner"""
5375 if self.__class__ == Refiner:
5379 _IMP_kernel.Refiner_swiginit(self, _IMP_kernel.new_Refiner(_self, *args))
5381 if self.__class__ != Refiner:
5382 _director_objects.register(self)
5387 def get_can_refine(self, arg0):
5388 r"""get_can_refine(Refiner self, Particle arg0) -> bool"""
5389 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5391 def get_refined_indexes(self, m, pi):
5392 r"""get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5393 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5395 def get_refined_indexes_by_ref(self, m, pi):
5396 r"""get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5397 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5399 def get_is_by_ref_supported(self):
5400 r"""get_is_by_ref_supported(Refiner self) -> bool"""
5401 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5403 def get_refined(self, *args):
5405 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5406 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5408 return _IMP_kernel.Refiner_get_refined(self, *args)
5410 def get_number_of_refined(self, a):
5411 r"""get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5412 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5415 r"""__str__(Refiner self) -> std::string"""
5416 return _IMP_kernel.Refiner___str__(self)
5419 r"""__repr__(Refiner self) -> std::string"""
5420 return _IMP_kernel.Refiner___repr__(self)
5424 return _object_cast_to_Refiner(o)
5427 def get_type_name(self):
5428 return self.__class__.__name__
5429 def do_show(self, out):
5433 return VersionInfo(self.__module__,
5440 return _object_cast_to_Refiner(o)
5442 __swig_destroy__ = _IMP_kernel.delete_Refiner
5443 def __disown__(self):
5445 _IMP_kernel.disown_Refiner(self)
5446 return weakref.proxy(self)
5448 def do_get_inputs(self, m, pis):
5449 r"""do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5450 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5453 r"""do_destroy(Refiner self)"""
5454 return _IMP_kernel.Refiner_do_destroy(self)
5457 _IMP_kernel.Refiner_swigregister(Refiner)
5458 class Optimizer(ModelObject):
5459 r"""Proxy of C++ IMP::Optimizer class."""
5461 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5463 def set_is_optimizing_states(self, tf):
5464 r"""set_is_optimizing_states(Optimizer self, bool tf)"""
5465 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5467 def get_optimizer_state_inputs(self):
5468 r"""get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5469 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5471 def do_get_inputs(self):
5472 r"""do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5473 return _IMP_kernel.Optimizer_do_get_inputs(self)
5475 def do_get_outputs(self):
5476 r"""do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5477 return _IMP_kernel.Optimizer_do_get_outputs(self)
5479 def __init__(self, *args):
5481 __init__(Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
5482 __init__(Optimizer self) -> Optimizer
5484 if self.__class__ == Optimizer:
5488 _IMP_kernel.Optimizer_swiginit(self, _IMP_kernel.new_Optimizer(_self, *args))
5490 if self.__class__ != Optimizer:
5491 _director_objects.register(self)
5496 def optimize(self, max_steps):
5497 r"""optimize(Optimizer self, unsigned int max_steps) -> double"""
5498 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5500 def set_stop_on_good_score(self, tf):
5501 r"""set_stop_on_good_score(Optimizer self, bool tf)"""
5502 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5504 def get_stop_on_good_score(self):
5505 r"""get_stop_on_good_score(Optimizer self) -> bool"""
5506 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5508 def get_last_score(self):
5509 r"""get_last_score(Optimizer self) -> double"""
5510 return _IMP_kernel.Optimizer_get_last_score(self)
5512 def get_scoring_function(self):
5513 r"""get_scoring_function(Optimizer self) -> ScoringFunction"""
5514 return _IMP_kernel.Optimizer_get_scoring_function(self)
5515 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)
5516 def __set_optimizer_states(self, obj): _list_util.set_varlist(self.optimizer_states, obj)
5517 def __del_optimizer_states(self): _list_util.del_varlist(self.optimizer_states)
5518 optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc=
"List of ##ucnames")
5520 def remove_optimizer_state(self, d):
5521 r"""remove_optimizer_state(Optimizer self, OptimizerState d)"""
5522 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5524 def _python_index_optimizer_state(self, d, start, stop):
5525 r"""_python_index_optimizer_state(Optimizer self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
5526 return _IMP_kernel.Optimizer__python_index_optimizer_state(self, d, start, stop)
5528 def remove_optimizer_states(self, d):
5529 r"""remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5530 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5532 def set_optimizer_states(self, ps):
5533 r"""set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5534 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5536 def set_optimizer_states_order(self, objs):
5537 r"""set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5538 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5540 def add_optimizer_state(self, obj):
5541 r"""add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5542 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5544 def add_optimizer_states(self, objs):
5545 r"""add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5546 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5548 def clear_optimizer_states(self):
5549 r"""clear_optimizer_states(Optimizer self)"""
5550 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5552 def get_number_of_optimizer_states(self):
5553 r"""get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5554 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5556 def get_has_optimizer_states(self):
5557 r"""get_has_optimizer_states(Optimizer self) -> bool"""
5558 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5560 def get_optimizer_state(self, i):
5561 r"""get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5562 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5564 def get_optimizer_states(self):
5565 r"""get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5566 return _IMP_kernel.Optimizer_get_optimizer_states(self)
5568 def erase_optimizer_state(self, i):
5569 r"""erase_optimizer_state(Optimizer self, unsigned int i)"""
5570 return _IMP_kernel.Optimizer_erase_optimizer_state(self, i)
5572 def reserve_optimizer_states(self, sz):
5573 r"""reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5574 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5576 def set_scoring_function(self, sf):
5577 r"""set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5578 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5579 __swig_destroy__ = _IMP_kernel.delete_Optimizer
5581 r"""__del__(Optimizer self)"""
5583 _director_objects.cleanup()
5589 def do_optimize(self, ns):
5590 r"""do_optimize(Optimizer self, unsigned int ns) -> double"""
5591 return _IMP_kernel.Optimizer_do_optimize(self, ns)
5593 def update_states(self):
5594 r"""update_states(Optimizer self)"""
5595 return _IMP_kernel.Optimizer_update_states(self)
5598 r"""__str__(Optimizer self) -> std::string"""
5599 return _IMP_kernel.Optimizer___str__(self)
5602 r"""__repr__(Optimizer self) -> std::string"""
5603 return _IMP_kernel.Optimizer___repr__(self)
5607 return _object_cast_to_Optimizer(o)
5610 def get_type_name(self):
5611 return self.__class__.__name__
5612 def do_show(self, out):
5616 return VersionInfo(self.__module__,
5623 return _object_cast_to_Optimizer(o)
5625 def __disown__(self):
5627 _IMP_kernel.disown_Optimizer(self)
5628 return weakref.proxy(self)
5631 r"""do_destroy(Optimizer self)"""
5632 return _IMP_kernel.Optimizer_do_destroy(self)
5634 def handle_set_has_required_score_states(self, arg0):
5635 r"""handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5636 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5638 def do_get_interactions(self):
5639 r"""do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5640 return _IMP_kernel.Optimizer_do_get_interactions(self)
5643 _IMP_kernel.Optimizer_swigregister(Optimizer)
5644 class AttributeOptimizer(Optimizer):
5645 r"""Proxy of C++ IMP::AttributeOptimizer class."""
5647 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5649 def __init__(self, *args):
5651 __init__(AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
5652 __init__(AttributeOptimizer self) -> AttributeOptimizer
5654 if self.__class__ == AttributeOptimizer:
5658 _IMP_kernel.AttributeOptimizer_swiginit(self, _IMP_kernel.new_AttributeOptimizer(_self, *args))
5660 if self.__class__ != AttributeOptimizer:
5661 _director_objects.register(self)
5666 def get_optimized_attributes(self):
5667 r"""get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
5668 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
5670 def set_value(self, fi, v):
5671 r"""set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
5672 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
5674 def get_value(self, fi):
5675 r"""get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5676 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
5678 def get_derivative(self, fi):
5679 r"""get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5680 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
5682 def get_width(self, k):
5683 r"""get_width(AttributeOptimizer self, FloatKey k) -> double"""
5684 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
5686 def set_scaled_value(self, fi, v):
5687 r"""set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
5688 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
5690 def get_scaled_value(self, fi):
5691 r"""get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
5692 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
5694 def get_scaled_derivative(self, fi):
5695 r"""get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
5696 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
5698 def clear_range_cache(self):
5699 r"""clear_range_cache(AttributeOptimizer self)"""
5700 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
5703 r"""__str__(AttributeOptimizer self) -> std::string"""
5704 return _IMP_kernel.AttributeOptimizer___str__(self)
5707 r"""__repr__(AttributeOptimizer self) -> std::string"""
5708 return _IMP_kernel.AttributeOptimizer___repr__(self)
5712 return _object_cast_to_AttributeOptimizer(o)
5715 def get_type_name(self):
5716 return self.__class__.__name__
5717 def do_show(self, out):
5721 return VersionInfo(self.__module__,
5728 return _object_cast_to_AttributeOptimizer(o)
5730 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
5731 def __disown__(self):
5733 _IMP_kernel.disown_AttributeOptimizer(self)
5734 return weakref.proxy(self)
5737 r"""do_destroy(AttributeOptimizer self)"""
5738 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
5740 def handle_set_has_required_score_states(self, arg0):
5741 r"""handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
5742 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
5744 def do_get_inputs(self):
5745 r"""do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5746 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
5748 def do_get_outputs(self):
5749 r"""do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5750 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
5752 def do_get_interactions(self):
5753 r"""do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
5754 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
5756 def do_optimize(self, ns):
5757 r"""do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
5758 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
5761 _IMP_kernel.AttributeOptimizer_swigregister(AttributeOptimizer)
5762 class ConfigurationSet(
Object):
5763 r"""Proxy of C++ IMP::ConfigurationSet class."""
5765 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5767 def __init__(self, *args):
5768 r"""__init__(ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet"""
5769 _IMP_kernel.ConfigurationSet_swiginit(self, _IMP_kernel.new_ConfigurationSet(*args))
5771 def save_configuration(self):
5772 r"""save_configuration(ConfigurationSet self)"""
5773 return _IMP_kernel.ConfigurationSet_save_configuration(self)
5775 def get_number_of_configurations(self):
5776 r"""get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
5777 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
5779 def load_configuration(self, i):
5780 r"""load_configuration(ConfigurationSet self, int i)"""
5781 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
5783 def remove_configuration(self, i):
5784 r"""remove_configuration(ConfigurationSet self, unsigned int i)"""
5785 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
5787 def get_model(self):
5788 r"""get_model(ConfigurationSet self) -> Model"""
5789 return _IMP_kernel.ConfigurationSet_get_model(self)
5792 r"""get_version_info(ConfigurationSet self) -> VersionInfo"""
5793 return _IMP_kernel.ConfigurationSet_get_version_info(self)
5794 __swig_destroy__ = _IMP_kernel.delete_ConfigurationSet
5797 r"""__str__(ConfigurationSet self) -> std::string"""
5798 return _IMP_kernel.ConfigurationSet___str__(self)
5801 r"""__repr__(ConfigurationSet self) -> std::string"""
5802 return _IMP_kernel.ConfigurationSet___repr__(self)
5806 return _object_cast_to_ConfigurationSet(o)
5810 _IMP_kernel.ConfigurationSet_swigregister(ConfigurationSet)
5811 class SaveToConfigurationSetOptimizerState(OptimizerState):
5812 r"""Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
5814 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5816 def __init__(self, cs):
5817 r"""__init__(SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
5818 _IMP_kernel.SaveToConfigurationSetOptimizerState_swiginit(self, _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs))
5821 r"""get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
5822 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
5823 __swig_destroy__ = _IMP_kernel.delete_SaveToConfigurationSetOptimizerState
5826 r"""__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
5827 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
5830 r"""__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
5831 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
5835 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
5839 _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
5840 class Configuration(
Object):
5841 r"""Proxy of C++ IMP::Configuration class."""
5843 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5845 def __init__(self, *args):
5847 __init__(Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
5848 __init__(Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
5850 _IMP_kernel.Configuration_swiginit(self, _IMP_kernel.new_Configuration(*args))
5852 def load_configuration(self):
5853 r"""load_configuration(Configuration self)"""
5854 return _IMP_kernel.Configuration_load_configuration(self)
5856 def swap_configuration(self):
5857 r"""swap_configuration(Configuration self)"""
5858 return _IMP_kernel.Configuration_swap_configuration(self)
5861 r"""get_version_info(Configuration self) -> VersionInfo"""
5862 return _IMP_kernel.Configuration_get_version_info(self)
5863 __swig_destroy__ = _IMP_kernel.delete_Configuration
5866 r"""__str__(Configuration self) -> std::string"""
5867 return _IMP_kernel.Configuration___str__(self)
5870 r"""__repr__(Configuration self) -> std::string"""
5871 return _IMP_kernel.Configuration___repr__(self)
5875 return _object_cast_to_Configuration(o)
5879 _IMP_kernel.Configuration_swigregister(Configuration)
5881 r"""Proxy of C++ IMP::Sampler class."""
5883 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5885 def __init__(self, *args):
5886 r"""__init__(Sampler self, Model m, std::string name="Sampler %1%") -> Sampler"""
5887 if self.__class__ == Sampler:
5891 _IMP_kernel.Sampler_swiginit(self, _IMP_kernel.new_Sampler(_self, *args))
5893 if self.__class__ != Sampler:
5894 _director_objects.register(self)
5899 def create_sample(self):
5900 r"""create_sample(Sampler self) -> ConfigurationSet"""
5901 return _IMP_kernel.Sampler_create_sample(self)
5903 def get_scoring_function(self):
5904 r"""get_scoring_function(Sampler self) -> ScoringFunction"""
5905 return _IMP_kernel.Sampler_get_scoring_function(self)
5907 def set_scoring_function(self, sf):
5908 r"""set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
5909 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
5911 def get_model(self):
5912 r"""get_model(Sampler self) -> Model"""
5913 return _IMP_kernel.Sampler_get_model(self)
5915 def do_sample(self):
5916 r"""do_sample(Sampler self) -> ConfigurationSet"""
5917 return _IMP_kernel.Sampler_do_sample(self)
5918 __swig_destroy__ = _IMP_kernel.delete_Sampler
5921 r"""__str__(Sampler self) -> std::string"""
5922 return _IMP_kernel.Sampler___str__(self)
5925 r"""__repr__(Sampler self) -> std::string"""
5926 return _IMP_kernel.Sampler___repr__(self)
5930 return _object_cast_to_Sampler(o)
5933 def get_type_name(self):
5934 return self.__class__.__name__
5935 def do_show(self, out):
5939 return VersionInfo(self.__module__,
5946 return _object_cast_to_Sampler(o)
5948 def __disown__(self):
5950 _IMP_kernel.disown_Sampler(self)
5951 return weakref.proxy(self)
5954 r"""do_destroy(Sampler self)"""
5955 return _IMP_kernel.Sampler_do_destroy(self)
5958 _IMP_kernel.Sampler_swigregister(Sampler)
5959 class PairModifier(_ParticleInputs, _ParticleOutputs,
Object):
5960 r"""Proxy of C++ IMP::PairModifier class."""
5962 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5964 def __init__(self, *args):
5965 r"""__init__(PairModifier self, std::string name="PairModifier %1%") -> PairModifier"""
5966 if self.__class__ == PairModifier:
5970 _IMP_kernel.PairModifier_swiginit(self, _IMP_kernel.new_PairModifier(_self, *args))
5972 if self.__class__ != PairModifier:
5973 _director_objects.register(self)
5978 def apply_index(self, m, v):
5979 r"""apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
5980 return _IMP_kernel.PairModifier_apply_index(self, m, v)
5982 def apply_indexes(self, m, o, lower_bound, upper_bound):
5983 r"""apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
5984 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
5986 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
5987 r"""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)"""
5988 return _IMP_kernel.PairModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
5991 r"""__str__(PairModifier self) -> std::string"""
5992 return _IMP_kernel.PairModifier___str__(self)
5995 r"""__repr__(PairModifier self) -> std::string"""
5996 return _IMP_kernel.PairModifier___repr__(self)
6000 return _object_cast_to_PairModifier(o)
6003 def get_type_name(self):
6004 return self.__class__.__name__
6005 def do_show(self, out):
6009 return VersionInfo(self.__module__,
6016 return _object_cast_to_PairModifier(o)
6018 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6019 def __disown__(self):
6021 _IMP_kernel.disown_PairModifier(self)
6022 return weakref.proxy(self)
6024 def do_get_inputs(self, m, pis):
6025 r"""do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6026 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6028 def do_get_outputs(self, m, pis):
6029 r"""do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6030 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6033 r"""do_destroy(PairModifier self)"""
6034 return _IMP_kernel.PairModifier_do_destroy(self)
6037 _IMP_kernel.PairModifier_swigregister(PairModifier)
6038 class PairScore(_ParticleInputs,
Object):
6039 r"""Proxy of C++ IMP::PairScore class."""
6041 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6043 def __init__(self, *args):
6044 r"""__init__(PairScore self, std::string name="PairScore %1%") -> PairScore"""
6045 if self.__class__ == PairScore:
6049 _IMP_kernel.PairScore_swiginit(self, _IMP_kernel.new_PairScore(_self, *args))
6051 if self.__class__ != PairScore:
6052 _director_objects.register(self)
6057 def evaluate_index(self, m, vt, da):
6058 r"""evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6059 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6061 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6062 r"""evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6063 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6065 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
6066 r"""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"""
6067 return _IMP_kernel.PairScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
6069 def evaluate_indexes_delta(self, m, o, da, indexes, score):
6070 r"""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"""
6071 return _IMP_kernel.PairScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
6073 def evaluate_if_good_index(self, m, vt, da, max):
6074 r"""evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6075 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6077 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6078 r"""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"""
6079 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6081 def create_current_decomposition(self, m, vt):
6082 r"""create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6083 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6085 def do_create_current_decomposition(self, m, vt):
6086 r"""do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6087 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6088 __swig_destroy__ = _IMP_kernel.delete_PairScore
6091 r"""__str__(PairScore self) -> std::string"""
6092 return _IMP_kernel.PairScore___str__(self)
6095 r"""__repr__(PairScore self) -> std::string"""
6096 return _IMP_kernel.PairScore___repr__(self)
6100 return _object_cast_to_PairScore(o)
6103 def get_type_name(self):
6104 return self.__class__.__name__
6105 def do_show(self, out):
6109 return VersionInfo(self.__module__,
6116 return _object_cast_to_PairScore(o)
6118 def __disown__(self):
6120 _IMP_kernel.disown_PairScore(self)
6121 return weakref.proxy(self)
6123 def do_get_inputs(self, m, pis):
6124 r"""do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6125 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6128 r"""do_destroy(PairScore self)"""
6129 return _IMP_kernel.PairScore_do_destroy(self)
6132 _IMP_kernel.PairScore_swigregister(PairScore)
6133 class PairPredicate(_ParticleInputs,
Object):
6134 r"""Proxy of C++ IMP::PairPredicate class."""
6136 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6138 def __init__(self, *args):
6139 r"""__init__(PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate"""
6140 if self.__class__ == PairPredicate:
6144 _IMP_kernel.PairPredicate_swiginit(self, _IMP_kernel.new_PairPredicate(_self, *args))
6146 if self.__class__ != PairPredicate:
6147 _director_objects.register(self)
6152 def setup_for_get_value_index_in_batch(self, arg0):
6153 r"""setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6154 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6156 def get_value_index_in_batch(self, m, vt):
6157 r"""get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6158 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6160 def __call__(self, m, vt):
6161 r"""__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6162 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6164 def get_value_index(self, *args):
6166 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6167 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6169 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6170 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6173 r"""__str__(PairPredicate self) -> std::string"""
6174 return _IMP_kernel.PairPredicate___str__(self)
6177 r"""__repr__(PairPredicate self) -> std::string"""
6178 return _IMP_kernel.PairPredicate___repr__(self)
6182 return _object_cast_to_PairPredicate(o)
6185 def get_type_name(self):
6186 return self.__class__.__name__
6187 def do_show(self, out):
6191 return VersionInfo(self.__module__,
6198 return _object_cast_to_PairPredicate(o)
6200 def __disown__(self):
6202 _IMP_kernel.disown_PairPredicate(self)
6203 return weakref.proxy(self)
6205 def do_get_inputs(self, m, pis):
6206 r"""do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6207 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6210 r"""do_destroy(PairPredicate self)"""
6211 return _IMP_kernel.PairPredicate_do_destroy(self)
6214 _IMP_kernel.PairPredicate_swigregister(PairPredicate)
6215 class PairContainer(Container):
6216 r"""Proxy of C++ IMP::PairContainer class."""
6218 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6220 def apply_generic(self, m):
6221 r"""apply_generic(PairContainer self, PairModifier m)"""
6222 return _IMP_kernel.PairContainer_apply_generic(self, m)
6224 def apply_generic_moved(self, m, moved_pis, reset_pis):
6225 r"""apply_generic_moved(PairContainer self, PairModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6226 return _IMP_kernel.PairContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
6228 def apply(self, sm):
6229 r"""apply(PairContainer self, PairModifier sm)"""
6230 return _IMP_kernel.PairContainer_apply(self, sm)
6232 def apply_moved(self, sm, moved_pis, reset_pis):
6233 r"""apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6234 return _IMP_kernel.PairContainer_apply_moved(self, sm, moved_pis, reset_pis)
6236 def get_range_indexes(self):
6237 r"""get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6238 return _IMP_kernel.PairContainer_get_range_indexes(self)
6240 def get_contents(self):
6241 r"""get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6242 return _IMP_kernel.PairContainer_get_contents(self)
6245 r"""get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6246 return _IMP_kernel.PairContainer_get_indexes(self)
6248 def get(self, *args):
6250 get(PairContainer self) -> IMP::ParticlePairsTemp
6251 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6253 return _IMP_kernel.PairContainer_get(self, *args)
6255 def get_number(self):
6256 r"""get_number(PairContainer self) -> unsigned int"""
6257 return _IMP_kernel.PairContainer_get_number(self)
6259 def __init__(self, *args):
6261 __init__(PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
6262 __init__(PairContainer self) -> PairContainer
6264 if self.__class__ == PairContainer:
6268 _IMP_kernel.PairContainer_swiginit(self, _IMP_kernel.new_PairContainer(_self, *args))
6270 if self.__class__ != PairContainer:
6271 _director_objects.register(self)
6276 def do_apply(self, sm):
6277 r"""do_apply(PairContainer self, PairModifier sm)"""
6278 return _IMP_kernel.PairContainer_do_apply(self, sm)
6280 def do_apply_moved(self, sm, moved_pis, reset_pis):
6281 r"""do_apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6282 return _IMP_kernel.PairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
6284 def do_get_provides_access(self):
6285 r"""do_get_provides_access(PairContainer self) -> bool"""
6286 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6287 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6290 r"""__str__(PairContainer self) -> std::string"""
6291 return _IMP_kernel.PairContainer___str__(self)
6294 r"""__repr__(PairContainer self) -> std::string"""
6295 return _IMP_kernel.PairContainer___repr__(self)
6299 return _object_cast_to_PairContainer(o)
6302 def get_type_name(self):
6303 return self.__class__.__name__
6304 def do_show(self, out):
6308 return VersionInfo(self.__module__,
6315 return _object_cast_to_PairContainer(o)
6317 def __disown__(self):
6319 _IMP_kernel.disown_PairContainer(self)
6320 return weakref.proxy(self)
6323 r"""do_destroy(PairContainer self)"""
6324 return _IMP_kernel.PairContainer_do_destroy(self)
6326 def handle_set_has_required_score_states(self, arg0):
6327 r"""handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6328 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6330 def do_get_inputs(self):
6331 r"""do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6332 return _IMP_kernel.PairContainer_do_get_inputs(self)
6334 def do_get_interactions(self):
6335 r"""do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6336 return _IMP_kernel.PairContainer_do_get_interactions(self)
6338 def do_get_contents_hash(self):
6339 r"""do_get_contents_hash(PairContainer self) -> std::size_t"""
6340 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6343 _IMP_kernel.PairContainer_swigregister(PairContainer)
6344 class _PairContainerAdaptor(_InputAdaptor):
6345 r"""Proxy of C++ IMP::PairContainerAdaptor class."""
6347 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6348 __repr__ = _swig_repr
6350 def __init__(self, *args):
6352 __init__(_PairContainerAdaptor self) -> _PairContainerAdaptor
6353 __init__(_PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6354 __init__(_PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6356 _IMP_kernel._PairContainerAdaptor_swiginit(self, _IMP_kernel.new__PairContainerAdaptor(*args))
6358 def set_name_if_default(self, name):
6359 r"""set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6360 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6361 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6364 _IMP_kernel._PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6365 class QuadModifier(_ParticleInputs, _ParticleOutputs,
Object):
6366 r"""Proxy of C++ IMP::QuadModifier class."""
6368 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6370 def __init__(self, *args):
6371 r"""__init__(QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier"""
6372 if self.__class__ == QuadModifier:
6376 _IMP_kernel.QuadModifier_swiginit(self, _IMP_kernel.new_QuadModifier(_self, *args))
6378 if self.__class__ != QuadModifier:
6379 _director_objects.register(self)
6384 def apply_index(self, m, v):
6385 r"""apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6386 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6388 def apply_indexes(self, m, o, lower_bound, upper_bound):
6389 r"""apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6390 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6392 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
6393 r"""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)"""
6394 return _IMP_kernel.QuadModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
6397 r"""__str__(QuadModifier self) -> std::string"""
6398 return _IMP_kernel.QuadModifier___str__(self)
6401 r"""__repr__(QuadModifier self) -> std::string"""
6402 return _IMP_kernel.QuadModifier___repr__(self)
6406 return _object_cast_to_QuadModifier(o)
6409 def get_type_name(self):
6410 return self.__class__.__name__
6411 def do_show(self, out):
6415 return VersionInfo(self.__module__,
6422 return _object_cast_to_QuadModifier(o)
6424 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6425 def __disown__(self):
6427 _IMP_kernel.disown_QuadModifier(self)
6428 return weakref.proxy(self)
6430 def do_get_inputs(self, m, pis):
6431 r"""do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6432 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6434 def do_get_outputs(self, m, pis):
6435 r"""do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6436 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6439 r"""do_destroy(QuadModifier self)"""
6440 return _IMP_kernel.QuadModifier_do_destroy(self)
6443 _IMP_kernel.QuadModifier_swigregister(QuadModifier)
6444 class QuadScore(_ParticleInputs,
Object):
6445 r"""Proxy of C++ IMP::QuadScore class."""
6447 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6449 def __init__(self, *args):
6450 r"""__init__(QuadScore self, std::string name="QuadScore %1%") -> QuadScore"""
6451 if self.__class__ == QuadScore:
6455 _IMP_kernel.QuadScore_swiginit(self, _IMP_kernel.new_QuadScore(_self, *args))
6457 if self.__class__ != QuadScore:
6458 _director_objects.register(self)
6463 def evaluate_index(self, m, vt, da):
6464 r"""evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6465 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6467 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6468 r"""evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6469 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6471 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
6472 r"""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"""
6473 return _IMP_kernel.QuadScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
6475 def evaluate_indexes_delta(self, m, o, da, indexes, score):
6476 r"""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"""
6477 return _IMP_kernel.QuadScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
6479 def evaluate_if_good_index(self, m, vt, da, max):
6480 r"""evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6481 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6483 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6484 r"""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"""
6485 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6487 def create_current_decomposition(self, m, vt):
6488 r"""create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6489 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6491 def do_create_current_decomposition(self, m, vt):
6492 r"""do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6493 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
6494 __swig_destroy__ = _IMP_kernel.delete_QuadScore
6497 r"""__str__(QuadScore self) -> std::string"""
6498 return _IMP_kernel.QuadScore___str__(self)
6501 r"""__repr__(QuadScore self) -> std::string"""
6502 return _IMP_kernel.QuadScore___repr__(self)
6506 return _object_cast_to_QuadScore(o)
6509 def get_type_name(self):
6510 return self.__class__.__name__
6511 def do_show(self, out):
6515 return VersionInfo(self.__module__,
6522 return _object_cast_to_QuadScore(o)
6524 def __disown__(self):
6526 _IMP_kernel.disown_QuadScore(self)
6527 return weakref.proxy(self)
6529 def do_get_inputs(self, m, pis):
6530 r"""do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6531 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
6534 r"""do_destroy(QuadScore self)"""
6535 return _IMP_kernel.QuadScore_do_destroy(self)
6538 _IMP_kernel.QuadScore_swigregister(QuadScore)
6539 class QuadPredicate(_ParticleInputs,
Object):
6540 r"""Proxy of C++ IMP::QuadPredicate class."""
6542 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6544 def __init__(self, *args):
6545 r"""__init__(QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate"""
6546 if self.__class__ == QuadPredicate:
6550 _IMP_kernel.QuadPredicate_swiginit(self, _IMP_kernel.new_QuadPredicate(_self, *args))
6552 if self.__class__ != QuadPredicate:
6553 _director_objects.register(self)
6558 def setup_for_get_value_index_in_batch(self, arg0):
6559 r"""setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
6560 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
6562 def get_value_index_in_batch(self, m, vt):
6563 r"""get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
6564 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
6566 def __call__(self, m, vt):
6567 r"""__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
6568 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
6570 def get_value_index(self, *args):
6572 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
6573 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
6575 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
6576 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
6579 r"""__str__(QuadPredicate self) -> std::string"""
6580 return _IMP_kernel.QuadPredicate___str__(self)
6583 r"""__repr__(QuadPredicate self) -> std::string"""
6584 return _IMP_kernel.QuadPredicate___repr__(self)
6588 return _object_cast_to_QuadPredicate(o)
6591 def get_type_name(self):
6592 return self.__class__.__name__
6593 def do_show(self, out):
6597 return VersionInfo(self.__module__,
6604 return _object_cast_to_QuadPredicate(o)
6606 def __disown__(self):
6608 _IMP_kernel.disown_QuadPredicate(self)
6609 return weakref.proxy(self)
6611 def do_get_inputs(self, m, pis):
6612 r"""do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6613 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
6616 r"""do_destroy(QuadPredicate self)"""
6617 return _IMP_kernel.QuadPredicate_do_destroy(self)
6620 _IMP_kernel.QuadPredicate_swigregister(QuadPredicate)
6621 class QuadContainer(Container):
6622 r"""Proxy of C++ IMP::QuadContainer class."""
6624 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6626 def apply_generic(self, m):
6627 r"""apply_generic(QuadContainer self, QuadModifier m)"""
6628 return _IMP_kernel.QuadContainer_apply_generic(self, m)
6630 def apply_generic_moved(self, m, moved_pis, reset_pis):
6631 r"""apply_generic_moved(QuadContainer self, QuadModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6632 return _IMP_kernel.QuadContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
6634 def apply(self, sm):
6635 r"""apply(QuadContainer self, QuadModifier sm)"""
6636 return _IMP_kernel.QuadContainer_apply(self, sm)
6638 def apply_moved(self, sm, moved_pis, reset_pis):
6639 r"""apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6640 return _IMP_kernel.QuadContainer_apply_moved(self, sm, moved_pis, reset_pis)
6642 def get_range_indexes(self):
6643 r"""get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6644 return _IMP_kernel.QuadContainer_get_range_indexes(self)
6646 def get_contents(self):
6647 r"""get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
6648 return _IMP_kernel.QuadContainer_get_contents(self)
6651 r"""get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6652 return _IMP_kernel.QuadContainer_get_indexes(self)
6654 def get(self, *args):
6656 get(QuadContainer self) -> IMP::ParticleQuadsTemp
6657 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
6659 return _IMP_kernel.QuadContainer_get(self, *args)
6661 def get_number(self):
6662 r"""get_number(QuadContainer self) -> unsigned int"""
6663 return _IMP_kernel.QuadContainer_get_number(self)
6665 def __init__(self, *args):
6667 __init__(QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
6668 __init__(QuadContainer self) -> QuadContainer
6670 if self.__class__ == QuadContainer:
6674 _IMP_kernel.QuadContainer_swiginit(self, _IMP_kernel.new_QuadContainer(_self, *args))
6676 if self.__class__ != QuadContainer:
6677 _director_objects.register(self)
6682 def do_apply(self, sm):
6683 r"""do_apply(QuadContainer self, QuadModifier sm)"""
6684 return _IMP_kernel.QuadContainer_do_apply(self, sm)
6686 def do_apply_moved(self, sm, moved_pis, reset_pis):
6687 r"""do_apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6688 return _IMP_kernel.QuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
6690 def do_get_provides_access(self):
6691 r"""do_get_provides_access(QuadContainer self) -> bool"""
6692 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
6693 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
6696 r"""__str__(QuadContainer self) -> std::string"""
6697 return _IMP_kernel.QuadContainer___str__(self)
6700 r"""__repr__(QuadContainer self) -> std::string"""
6701 return _IMP_kernel.QuadContainer___repr__(self)
6705 return _object_cast_to_QuadContainer(o)
6708 def get_type_name(self):
6709 return self.__class__.__name__
6710 def do_show(self, out):
6714 return VersionInfo(self.__module__,
6721 return _object_cast_to_QuadContainer(o)
6723 def __disown__(self):
6725 _IMP_kernel.disown_QuadContainer(self)
6726 return weakref.proxy(self)
6729 r"""do_destroy(QuadContainer self)"""
6730 return _IMP_kernel.QuadContainer_do_destroy(self)
6732 def handle_set_has_required_score_states(self, arg0):
6733 r"""handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
6734 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
6736 def do_get_inputs(self):
6737 r"""do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
6738 return _IMP_kernel.QuadContainer_do_get_inputs(self)
6740 def do_get_interactions(self):
6741 r"""do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
6742 return _IMP_kernel.QuadContainer_do_get_interactions(self)
6744 def do_get_contents_hash(self):
6745 r"""do_get_contents_hash(QuadContainer self) -> std::size_t"""
6746 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
6749 _IMP_kernel.QuadContainer_swigregister(QuadContainer)
6750 class _QuadContainerAdaptor(_InputAdaptor):
6751 r"""Proxy of C++ IMP::QuadContainerAdaptor class."""
6753 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6754 __repr__ = _swig_repr
6756 def __init__(self, *args):
6758 __init__(_QuadContainerAdaptor self) -> _QuadContainerAdaptor
6759 __init__(_QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
6760 __init__(_QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
6762 _IMP_kernel._QuadContainerAdaptor_swiginit(self, _IMP_kernel.new__QuadContainerAdaptor(*args))
6764 def set_name_if_default(self, name):
6765 r"""set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
6766 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
6767 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
6770 _IMP_kernel._QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
6771 class SingletonModifier(_ParticleInputs, _ParticleOutputs,
Object):
6772 r"""Proxy of C++ IMP::SingletonModifier class."""
6774 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6776 def __init__(self, *args):
6777 r"""__init__(SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier"""
6778 if self.__class__ == SingletonModifier:
6782 _IMP_kernel.SingletonModifier_swiginit(self, _IMP_kernel.new_SingletonModifier(_self, *args))
6784 if self.__class__ != SingletonModifier:
6785 _director_objects.register(self)
6790 def apply_index(self, m, v):
6791 r"""apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
6792 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
6794 def apply_indexes(self, m, o, lower_bound, upper_bound):
6795 r"""apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6796 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6798 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
6799 r"""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)"""
6800 return _IMP_kernel.SingletonModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
6803 r"""__str__(SingletonModifier self) -> std::string"""
6804 return _IMP_kernel.SingletonModifier___str__(self)
6807 r"""__repr__(SingletonModifier self) -> std::string"""
6808 return _IMP_kernel.SingletonModifier___repr__(self)
6812 return _object_cast_to_SingletonModifier(o)
6815 def get_type_name(self):
6816 return self.__class__.__name__
6817 def do_show(self, out):
6821 return VersionInfo(self.__module__,
6828 return _object_cast_to_SingletonModifier(o)
6830 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
6831 def __disown__(self):
6833 _IMP_kernel.disown_SingletonModifier(self)
6834 return weakref.proxy(self)
6836 def do_get_inputs(self, m, pis):
6837 r"""do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6838 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
6840 def do_get_outputs(self, m, pis):
6841 r"""do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6842 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
6845 r"""do_destroy(SingletonModifier self)"""
6846 return _IMP_kernel.SingletonModifier_do_destroy(self)
6849 _IMP_kernel.SingletonModifier_swigregister(SingletonModifier)
6850 class SingletonScore(_ParticleInputs,
Object):
6851 r"""Proxy of C++ IMP::SingletonScore class."""
6853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6855 def __init__(self, *args):
6856 r"""__init__(SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore"""
6857 if self.__class__ == SingletonScore:
6861 _IMP_kernel.SingletonScore_swiginit(self, _IMP_kernel.new_SingletonScore(_self, *args))
6863 if self.__class__ != SingletonScore:
6864 _director_objects.register(self)
6869 def evaluate_index(self, m, vt, da):
6870 r"""evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
6871 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
6873 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6874 r"""evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6875 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6877 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
6878 r"""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"""
6879 return _IMP_kernel.SingletonScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
6881 def evaluate_indexes_delta(self, m, o, da, indexes, score):
6882 r"""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"""
6883 return _IMP_kernel.SingletonScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
6885 def evaluate_if_good_index(self, m, vt, da, max):
6886 r"""evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
6887 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
6889 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6890 r"""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"""
6891 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6893 def create_current_decomposition(self, m, vt):
6894 r"""create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
6895 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
6897 def do_create_current_decomposition(self, m, vt):
6898 r"""do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
6899 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
6900 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
6903 r"""__str__(SingletonScore self) -> std::string"""
6904 return _IMP_kernel.SingletonScore___str__(self)
6907 r"""__repr__(SingletonScore self) -> std::string"""
6908 return _IMP_kernel.SingletonScore___repr__(self)
6912 return _object_cast_to_SingletonScore(o)
6915 def get_type_name(self):
6916 return self.__class__.__name__
6917 def do_show(self, out):
6921 return VersionInfo(self.__module__,
6928 return _object_cast_to_SingletonScore(o)
6930 def __disown__(self):
6932 _IMP_kernel.disown_SingletonScore(self)
6933 return weakref.proxy(self)
6935 def do_get_inputs(self, m, pis):
6936 r"""do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6937 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
6940 r"""do_destroy(SingletonScore self)"""
6941 return _IMP_kernel.SingletonScore_do_destroy(self)
6944 _IMP_kernel.SingletonScore_swigregister(SingletonScore)
6945 class SingletonPredicate(_ParticleInputs,
Object):
6946 r"""Proxy of C++ IMP::SingletonPredicate class."""
6948 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6950 def __init__(self, *args):
6951 r"""__init__(SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate"""
6952 if self.__class__ == SingletonPredicate:
6956 _IMP_kernel.SingletonPredicate_swiginit(self, _IMP_kernel.new_SingletonPredicate(_self, *args))
6958 if self.__class__ != SingletonPredicate:
6959 _director_objects.register(self)
6964 def setup_for_get_value_index_in_batch(self, arg0):
6965 r"""setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
6966 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
6968 def get_value_index_in_batch(self, m, vt):
6969 r"""get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
6970 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
6972 def __call__(self, m, vt):
6973 r"""__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
6974 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
6976 def get_value_index(self, *args):
6978 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
6979 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
6981 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
6982 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
6985 r"""__str__(SingletonPredicate self) -> std::string"""
6986 return _IMP_kernel.SingletonPredicate___str__(self)
6989 r"""__repr__(SingletonPredicate self) -> std::string"""
6990 return _IMP_kernel.SingletonPredicate___repr__(self)
6994 return _object_cast_to_SingletonPredicate(o)
6997 def get_type_name(self):
6998 return self.__class__.__name__
6999 def do_show(self, out):
7003 return VersionInfo(self.__module__,
7010 return _object_cast_to_SingletonPredicate(o)
7012 def __disown__(self):
7014 _IMP_kernel.disown_SingletonPredicate(self)
7015 return weakref.proxy(self)
7017 def do_get_inputs(self, m, pis):
7018 r"""do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7019 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7022 r"""do_destroy(SingletonPredicate self)"""
7023 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7026 _IMP_kernel.SingletonPredicate_swigregister(SingletonPredicate)
7027 class SingletonContainer(Container):
7028 r"""Proxy of C++ IMP::SingletonContainer class."""
7030 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7032 def apply_generic(self, m):
7033 r"""apply_generic(SingletonContainer self, SingletonModifier m)"""
7034 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7036 def apply_generic_moved(self, m, moved_pis, reset_pis):
7037 r"""apply_generic_moved(SingletonContainer self, SingletonModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7038 return _IMP_kernel.SingletonContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7040 def apply(self, sm):
7041 r"""apply(SingletonContainer self, SingletonModifier sm)"""
7042 return _IMP_kernel.SingletonContainer_apply(self, sm)
7044 def apply_moved(self, sm, moved_pis, reset_pis):
7045 r"""apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7046 return _IMP_kernel.SingletonContainer_apply_moved(self, sm, moved_pis, reset_pis)
7048 def get_range_indexes(self):
7049 r"""get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7050 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7052 def get_contents(self):
7053 r"""get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7054 return _IMP_kernel.SingletonContainer_get_contents(self)
7057 r"""get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7058 return _IMP_kernel.SingletonContainer_get_indexes(self)
7060 def get(self, *args):
7062 get(SingletonContainer self) -> IMP::ParticlesTemp
7063 get(SingletonContainer self, unsigned int i) -> Particle
7065 return _IMP_kernel.SingletonContainer_get(self, *args)
7067 def get_number(self):
7068 r"""get_number(SingletonContainer self) -> unsigned int"""
7069 return _IMP_kernel.SingletonContainer_get_number(self)
7071 def __init__(self, *args):
7073 __init__(SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
7074 __init__(SingletonContainer self) -> SingletonContainer
7076 if self.__class__ == SingletonContainer:
7080 _IMP_kernel.SingletonContainer_swiginit(self, _IMP_kernel.new_SingletonContainer(_self, *args))
7082 if self.__class__ != SingletonContainer:
7083 _director_objects.register(self)
7088 def do_apply(self, sm):
7089 r"""do_apply(SingletonContainer self, SingletonModifier sm)"""
7090 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7092 def do_apply_moved(self, sm, moved_pis, reset_pis):
7093 r"""do_apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7094 return _IMP_kernel.SingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7096 def do_get_provides_access(self):
7097 r"""do_get_provides_access(SingletonContainer self) -> bool"""
7098 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7099 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7102 r"""__str__(SingletonContainer self) -> std::string"""
7103 return _IMP_kernel.SingletonContainer___str__(self)
7106 r"""__repr__(SingletonContainer self) -> std::string"""
7107 return _IMP_kernel.SingletonContainer___repr__(self)
7111 return _object_cast_to_SingletonContainer(o)
7114 def get_type_name(self):
7115 return self.__class__.__name__
7116 def do_show(self, out):
7120 return VersionInfo(self.__module__,
7127 return _object_cast_to_SingletonContainer(o)
7129 def __disown__(self):
7131 _IMP_kernel.disown_SingletonContainer(self)
7132 return weakref.proxy(self)
7135 r"""do_destroy(SingletonContainer self)"""
7136 return _IMP_kernel.SingletonContainer_do_destroy(self)
7138 def handle_set_has_required_score_states(self, arg0):
7139 r"""handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7140 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7142 def do_get_inputs(self):
7143 r"""do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7144 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7146 def do_get_interactions(self):
7147 r"""do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7148 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7150 def do_get_contents_hash(self):
7151 r"""do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7152 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7155 _IMP_kernel.SingletonContainer_swigregister(SingletonContainer)
7156 class _SingletonContainerAdaptor(_InputAdaptor):
7157 r"""Proxy of C++ IMP::SingletonContainerAdaptor class."""
7159 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7160 __repr__ = _swig_repr
7162 def __init__(self, *args):
7164 __init__(_SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7165 __init__(_SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7166 __init__(_SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7168 _IMP_kernel._SingletonContainerAdaptor_swiginit(self, _IMP_kernel.new__SingletonContainerAdaptor(*args))
7170 def set_name_if_default(self, name):
7171 r"""set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7172 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7173 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7176 _IMP_kernel._SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7177 class TripletModifier(_ParticleInputs, _ParticleOutputs,
Object):
7178 r"""Proxy of C++ IMP::TripletModifier class."""
7180 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7182 def __init__(self, *args):
7183 r"""__init__(TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier"""
7184 if self.__class__ == TripletModifier:
7188 _IMP_kernel.TripletModifier_swiginit(self, _IMP_kernel.new_TripletModifier(_self, *args))
7190 if self.__class__ != TripletModifier:
7191 _director_objects.register(self)
7196 def apply_index(self, m, v):
7197 r"""apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7198 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7200 def apply_indexes(self, m, o, lower_bound, upper_bound):
7201 r"""apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7202 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7204 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7205 r"""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)"""
7206 return _IMP_kernel.TripletModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7209 r"""__str__(TripletModifier self) -> std::string"""
7210 return _IMP_kernel.TripletModifier___str__(self)
7213 r"""__repr__(TripletModifier self) -> std::string"""
7214 return _IMP_kernel.TripletModifier___repr__(self)
7218 return _object_cast_to_TripletModifier(o)
7221 def get_type_name(self):
7222 return self.__class__.__name__
7223 def do_show(self, out):
7227 return VersionInfo(self.__module__,
7234 return _object_cast_to_TripletModifier(o)
7236 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7237 def __disown__(self):
7239 _IMP_kernel.disown_TripletModifier(self)
7240 return weakref.proxy(self)
7242 def do_get_inputs(self, m, pis):
7243 r"""do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7244 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7246 def do_get_outputs(self, m, pis):
7247 r"""do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7248 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7251 r"""do_destroy(TripletModifier self)"""
7252 return _IMP_kernel.TripletModifier_do_destroy(self)
7255 _IMP_kernel.TripletModifier_swigregister(TripletModifier)
7256 class TripletScore(_ParticleInputs,
Object):
7257 r"""Proxy of C++ IMP::TripletScore class."""
7259 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7261 def __init__(self, *args):
7262 r"""__init__(TripletScore self, std::string name="TripletScore %1%") -> TripletScore"""
7263 if self.__class__ == TripletScore:
7267 _IMP_kernel.TripletScore_swiginit(self, _IMP_kernel.new_TripletScore(_self, *args))
7269 if self.__class__ != TripletScore:
7270 _director_objects.register(self)
7275 def evaluate_index(self, m, vt, da):
7276 r"""evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7277 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7279 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7280 r"""evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7281 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7283 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7284 r"""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"""
7285 return _IMP_kernel.TripletScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7287 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7288 r"""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"""
7289 return _IMP_kernel.TripletScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7291 def evaluate_if_good_index(self, m, vt, da, max):
7292 r"""evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7293 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7295 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7296 r"""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"""
7297 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7299 def create_current_decomposition(self, m, vt):
7300 r"""create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7301 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7303 def do_create_current_decomposition(self, m, vt):
7304 r"""do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7305 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7306 __swig_destroy__ = _IMP_kernel.delete_TripletScore
7309 r"""__str__(TripletScore self) -> std::string"""
7310 return _IMP_kernel.TripletScore___str__(self)
7313 r"""__repr__(TripletScore self) -> std::string"""
7314 return _IMP_kernel.TripletScore___repr__(self)
7318 return _object_cast_to_TripletScore(o)
7321 def get_type_name(self):
7322 return self.__class__.__name__
7323 def do_show(self, out):
7327 return VersionInfo(self.__module__,
7334 return _object_cast_to_TripletScore(o)
7336 def __disown__(self):
7338 _IMP_kernel.disown_TripletScore(self)
7339 return weakref.proxy(self)
7341 def do_get_inputs(self, m, pis):
7342 r"""do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7343 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7346 r"""do_destroy(TripletScore self)"""
7347 return _IMP_kernel.TripletScore_do_destroy(self)
7350 _IMP_kernel.TripletScore_swigregister(TripletScore)
7351 class TripletPredicate(_ParticleInputs,
Object):
7352 r"""Proxy of C++ IMP::TripletPredicate class."""
7354 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7356 def __init__(self, *args):
7357 r"""__init__(TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate"""
7358 if self.__class__ == TripletPredicate:
7362 _IMP_kernel.TripletPredicate_swiginit(self, _IMP_kernel.new_TripletPredicate(_self, *args))
7364 if self.__class__ != TripletPredicate:
7365 _director_objects.register(self)
7370 def setup_for_get_value_index_in_batch(self, arg0):
7371 r"""setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
7372 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
7374 def get_value_index_in_batch(self, m, vt):
7375 r"""get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7376 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
7378 def __call__(self, m, vt):
7379 r"""__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7380 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
7382 def get_value_index(self, *args):
7384 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
7385 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
7387 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
7388 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
7391 r"""__str__(TripletPredicate self) -> std::string"""
7392 return _IMP_kernel.TripletPredicate___str__(self)
7395 r"""__repr__(TripletPredicate self) -> std::string"""
7396 return _IMP_kernel.TripletPredicate___repr__(self)
7400 return _object_cast_to_TripletPredicate(o)
7403 def get_type_name(self):
7404 return self.__class__.__name__
7405 def do_show(self, out):
7409 return VersionInfo(self.__module__,
7416 return _object_cast_to_TripletPredicate(o)
7418 def __disown__(self):
7420 _IMP_kernel.disown_TripletPredicate(self)
7421 return weakref.proxy(self)
7423 def do_get_inputs(self, m, pis):
7424 r"""do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7425 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
7428 r"""do_destroy(TripletPredicate self)"""
7429 return _IMP_kernel.TripletPredicate_do_destroy(self)
7432 _IMP_kernel.TripletPredicate_swigregister(TripletPredicate)
7433 class TripletContainer(Container):
7434 r"""Proxy of C++ IMP::TripletContainer class."""
7436 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7438 def apply_generic(self, m):
7439 r"""apply_generic(TripletContainer self, TripletModifier m)"""
7440 return _IMP_kernel.TripletContainer_apply_generic(self, m)
7442 def apply_generic_moved(self, m, moved_pis, reset_pis):
7443 r"""apply_generic_moved(TripletContainer self, TripletModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7444 return _IMP_kernel.TripletContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7446 def apply(self, sm):
7447 r"""apply(TripletContainer self, TripletModifier sm)"""
7448 return _IMP_kernel.TripletContainer_apply(self, sm)
7450 def apply_moved(self, sm, moved_pis, reset_pis):
7451 r"""apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7452 return _IMP_kernel.TripletContainer_apply_moved(self, sm, moved_pis, reset_pis)
7454 def get_range_indexes(self):
7455 r"""get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7456 return _IMP_kernel.TripletContainer_get_range_indexes(self)
7458 def get_contents(self):
7459 r"""get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
7460 return _IMP_kernel.TripletContainer_get_contents(self)
7463 r"""get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7464 return _IMP_kernel.TripletContainer_get_indexes(self)
7466 def get(self, *args):
7468 get(TripletContainer self) -> IMP::ParticleTripletsTemp
7469 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
7471 return _IMP_kernel.TripletContainer_get(self, *args)
7473 def get_number(self):
7474 r"""get_number(TripletContainer self) -> unsigned int"""
7475 return _IMP_kernel.TripletContainer_get_number(self)
7477 def __init__(self, *args):
7479 __init__(TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
7480 __init__(TripletContainer self) -> TripletContainer
7482 if self.__class__ == TripletContainer:
7486 _IMP_kernel.TripletContainer_swiginit(self, _IMP_kernel.new_TripletContainer(_self, *args))
7488 if self.__class__ != TripletContainer:
7489 _director_objects.register(self)
7494 def do_apply(self, sm):
7495 r"""do_apply(TripletContainer self, TripletModifier sm)"""
7496 return _IMP_kernel.TripletContainer_do_apply(self, sm)
7498 def do_apply_moved(self, sm, moved_pis, reset_pis):
7499 r"""do_apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7500 return _IMP_kernel.TripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7502 def do_get_provides_access(self):
7503 r"""do_get_provides_access(TripletContainer self) -> bool"""
7504 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
7505 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
7508 r"""__str__(TripletContainer self) -> std::string"""
7509 return _IMP_kernel.TripletContainer___str__(self)
7512 r"""__repr__(TripletContainer self) -> std::string"""
7513 return _IMP_kernel.TripletContainer___repr__(self)
7517 return _object_cast_to_TripletContainer(o)
7520 def get_type_name(self):
7521 return self.__class__.__name__
7522 def do_show(self, out):
7526 return VersionInfo(self.__module__,
7533 return _object_cast_to_TripletContainer(o)
7535 def __disown__(self):
7537 _IMP_kernel.disown_TripletContainer(self)
7538 return weakref.proxy(self)
7541 r"""do_destroy(TripletContainer self)"""
7542 return _IMP_kernel.TripletContainer_do_destroy(self)
7544 def handle_set_has_required_score_states(self, arg0):
7545 r"""handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
7546 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
7548 def do_get_inputs(self):
7549 r"""do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
7550 return _IMP_kernel.TripletContainer_do_get_inputs(self)
7552 def do_get_interactions(self):
7553 r"""do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
7554 return _IMP_kernel.TripletContainer_do_get_interactions(self)
7556 def do_get_contents_hash(self):
7557 r"""do_get_contents_hash(TripletContainer self) -> std::size_t"""
7558 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
7561 _IMP_kernel.TripletContainer_swigregister(TripletContainer)
7562 class _TripletContainerAdaptor(_InputAdaptor):
7563 r"""Proxy of C++ IMP::TripletContainerAdaptor class."""
7565 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7566 __repr__ = _swig_repr
7568 def __init__(self, *args):
7570 __init__(_TripletContainerAdaptor self) -> _TripletContainerAdaptor
7571 __init__(_TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
7572 __init__(_TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
7574 _IMP_kernel._TripletContainerAdaptor_swiginit(self, _IMP_kernel.new__TripletContainerAdaptor(*args))
7576 def set_name_if_default(self, name):
7577 r"""set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
7578 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
7579 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
7582 _IMP_kernel._TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
7585 r"""write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
7586 return _IMP_kernel.write_particles_to_buffer(particles, keys)
7589 r"""read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
7590 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
7593 r"""get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
7594 return _IMP_kernel.get_particles(m, ps)
7598 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
7599 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
7601 return _IMP_kernel.get_indexes(*args)
7602 class _ParticleIndexAdaptor(object):
7603 r"""Proxy of C++ IMP::ParticleIndexAdaptor class."""
7605 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7606 __repr__ = _swig_repr
7608 def __init__(self, *args):
7610 __init__(_ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
7611 __init__(_ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
7612 __init__(_ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
7614 _IMP_kernel._ParticleIndexAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexAdaptor(*args))
7615 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
7618 _IMP_kernel._ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
7619 class _ParticleIndexesAdaptor(_InputAdaptor):
7620 r"""Proxy of C++ IMP::ParticleIndexesAdaptor class."""
7622 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7623 __repr__ = _swig_repr
7625 def __init__(self, *args):
7627 __init__(_ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
7628 __init__(_ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
7629 __init__(_ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
7631 _IMP_kernel._ParticleIndexesAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexesAdaptor(*args))
7632 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
7635 _IMP_kernel._ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
7636 class _ParticleIndexPairsAdaptor(object):
7637 r"""Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
7639 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7640 __repr__ = _swig_repr
7642 def __init__(self, *args):
7644 __init__(_ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
7645 __init__(_ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
7646 __init__(_ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
7648 _IMP_kernel._ParticleIndexPairsAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexPairsAdaptor(*args))
7649 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
7652 _IMP_kernel._ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
7653 class _ConstRestraint(Restraint):
7654 r"""Proxy of C++ IMP::internal::_ConstRestraint class."""
7656 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7658 def __init__(self, *args):
7660 __init__(_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
7661 __init__(_ConstRestraint self) -> _ConstRestraint
7663 _IMP_kernel._ConstRestraint_swiginit(self, _IMP_kernel.new__ConstRestraint(*args))
7665 def get_value(self):
7666 r"""get_value(_ConstRestraint self) -> double"""
7667 return _IMP_kernel._ConstRestraint_get_value(self)
7669 def do_create_decomposition(self):
7670 r"""do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
7671 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
7673 def do_get_inputs(self):
7674 r"""do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
7675 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
7678 r"""get_version_info(_ConstRestraint self) -> VersionInfo"""
7679 return _IMP_kernel._ConstRestraint_get_version_info(self)
7680 __swig_destroy__ = _IMP_kernel.delete__ConstRestraint
7683 r"""__str__(_ConstRestraint self) -> std::string"""
7684 return _IMP_kernel._ConstRestraint___str__(self)
7687 r"""__repr__(_ConstRestraint self) -> std::string"""
7688 return _IMP_kernel._ConstRestraint___repr__(self)
7692 return _object_cast_to__ConstRestraint(o)
7695 def _get_as_binary(self):
7696 r"""_get_as_binary(_ConstRestraint self) -> PyObject *"""
7697 return _IMP_kernel._ConstRestraint__get_as_binary(self)
7699 def _set_from_binary(self, p):
7700 r"""_set_from_binary(_ConstRestraint self, PyObject * p)"""
7701 return _IMP_kernel._ConstRestraint__set_from_binary(self, p)
7703 def __getstate__(self):
7704 p = self._get_as_binary()
7705 if len(self.__dict__) > 1:
7706 d = self.__dict__.copy()
7711 def __setstate__(self, p):
7712 if not hasattr(self,
'this'):
7714 if isinstance(p, tuple):
7716 self.__dict__.update(d)
7717 return self._set_from_binary(p)
7721 _IMP_kernel._ConstRestraint_swigregister(_ConstRestraint)
7722 class _ConstSingletonScore(SingletonScore):
7723 r"""Proxy of C++ IMP::internal::_ConstSingletonScore class."""
7725 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7727 def __init__(self, *args):
7729 __init__(_ConstSingletonScore self, double v) -> _ConstSingletonScore
7730 __init__(_ConstSingletonScore self) -> _ConstSingletonScore
7732 _IMP_kernel._ConstSingletonScore_swiginit(self, _IMP_kernel.new__ConstSingletonScore(*args))
7734 def do_get_inputs(self, arg2, arg3):
7735 r"""do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
7736 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
7739 r"""get_version_info(_ConstSingletonScore self) -> VersionInfo"""
7740 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
7741 __swig_destroy__ = _IMP_kernel.delete__ConstSingletonScore
7744 r"""__str__(_ConstSingletonScore self) -> std::string"""
7745 return _IMP_kernel._ConstSingletonScore___str__(self)
7748 r"""__repr__(_ConstSingletonScore self) -> std::string"""
7749 return _IMP_kernel._ConstSingletonScore___repr__(self)
7753 return _object_cast_to__ConstSingletonScore(o)
7756 def _get_as_binary(self):
7757 r"""_get_as_binary(_ConstSingletonScore self) -> PyObject *"""
7758 return _IMP_kernel._ConstSingletonScore__get_as_binary(self)
7760 def _set_from_binary(self, p):
7761 r"""_set_from_binary(_ConstSingletonScore self, PyObject * p)"""
7762 return _IMP_kernel._ConstSingletonScore__set_from_binary(self, p)
7764 def __getstate__(self):
7765 p = self._get_as_binary()
7766 if len(self.__dict__) > 1:
7767 d = self.__dict__.copy()
7772 def __setstate__(self, p):
7773 if not hasattr(self,
'this'):
7775 if isinstance(p, tuple):
7777 self.__dict__.update(d)
7778 return self._set_from_binary(p)
7782 _IMP_kernel._ConstSingletonScore_swigregister(_ConstSingletonScore)
7783 class _ConstPairScore(PairScore):
7784 r"""Proxy of C++ IMP::internal::_ConstPairScore class."""
7786 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7788 def __init__(self, *args):
7790 __init__(_ConstPairScore self, double v) -> _ConstPairScore
7791 __init__(_ConstPairScore self) -> _ConstPairScore
7793 _IMP_kernel._ConstPairScore_swiginit(self, _IMP_kernel.new__ConstPairScore(*args))
7795 def do_get_inputs(self, arg2, arg3):
7796 r"""do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
7797 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
7800 r"""get_version_info(_ConstPairScore self) -> VersionInfo"""
7801 return _IMP_kernel._ConstPairScore_get_version_info(self)
7802 __swig_destroy__ = _IMP_kernel.delete__ConstPairScore
7805 r"""__str__(_ConstPairScore self) -> std::string"""
7806 return _IMP_kernel._ConstPairScore___str__(self)
7809 r"""__repr__(_ConstPairScore self) -> std::string"""
7810 return _IMP_kernel._ConstPairScore___repr__(self)
7814 return _object_cast_to__ConstPairScore(o)
7817 def _get_as_binary(self):
7818 r"""_get_as_binary(_ConstPairScore self) -> PyObject *"""
7819 return _IMP_kernel._ConstPairScore__get_as_binary(self)
7821 def _set_from_binary(self, p):
7822 r"""_set_from_binary(_ConstPairScore self, PyObject * p)"""
7823 return _IMP_kernel._ConstPairScore__set_from_binary(self, p)
7825 def __getstate__(self):
7826 p = self._get_as_binary()
7827 if len(self.__dict__) > 1:
7828 d = self.__dict__.copy()
7833 def __setstate__(self, p):
7834 if not hasattr(self,
'this'):
7836 if isinstance(p, tuple):
7838 self.__dict__.update(d)
7839 return self._set_from_binary(p)
7843 _IMP_kernel._ConstPairScore_swigregister(_ConstPairScore)
7844 class _TrivialDecorator(Decorator):
7845 r"""Proxy of C++ IMP::internal::_TrivialDecorator class."""
7847 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7849 def __init__(self, *args):
7851 __init__(_TrivialDecorator self) -> _TrivialDecorator
7852 __init__(_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
7853 __init__(_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
7855 _IMP_kernel._TrivialDecorator_swiginit(self, _IMP_kernel.new__TrivialDecorator(*args))
7857 def show(self, *args):
7858 r"""show(_TrivialDecorator self, _ostream out=std::cout)"""
7859 return _IMP_kernel._TrivialDecorator_show(self, *args)
7862 def setup_particle(*args):
7864 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
7865 setup_particle(_ParticleAdaptor pa) -> _TrivialDecorator
7867 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
7870 def get_is_setup(*args):
7872 get_is_setup(_ParticleAdaptor p) -> bool
7873 get_is_setup(Model m, ParticleIndex pi) -> bool
7875 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
7879 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
7880 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
7881 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
7882 add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
7883 add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
7884 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
7885 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
7886 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
7888 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
7890 def get_value(self, *args):
7892 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
7893 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
7894 get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
7895 get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
7896 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
7897 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
7898 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
7900 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
7902 def set_value(self, *args):
7904 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
7905 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
7906 set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
7907 set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
7908 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
7909 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
7910 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
7912 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
7916 remove_attribute(_TrivialDecorator self, FloatKey a0)
7917 remove_attribute(_TrivialDecorator self, IntKey a0)
7918 remove_attribute(_TrivialDecorator self, FloatsKey a0)
7919 remove_attribute(_TrivialDecorator self, IntsKey a0)
7920 remove_attribute(_TrivialDecorator self, StringKey a0)
7921 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
7922 remove_attribute(_TrivialDecorator self, ObjectKey a0)
7924 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
7926 def has_attribute(self, *args):
7928 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
7929 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
7930 has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
7931 has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
7932 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
7933 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
7934 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
7936 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
7938 def get_derivative(self, a0):
7939 r"""get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
7940 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
7943 r"""get_name(_TrivialDecorator self) -> std::string"""
7944 return _IMP_kernel._TrivialDecorator_get_name(self)
7947 r"""clear_caches(_TrivialDecorator self)"""
7948 return _IMP_kernel._TrivialDecorator_clear_caches(self)
7950 def set_name(self, a0):
7951 r"""set_name(_TrivialDecorator self, std::string a0)"""
7952 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
7955 r"""set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
7956 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
7958 def add_to_derivative(self, a0, a1, a2):
7959 r"""add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7960 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
7963 r"""set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
7964 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
7966 def get_is_optimized(self, a0):
7967 r"""get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
7968 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
7970 def get_check_level(self):
7971 r"""get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
7972 return _IMP_kernel._TrivialDecorator_get_check_level(self)
7974 def __eq__(self, *args):
7976 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
7977 __eq__(_TrivialDecorator self, Particle d) -> bool
7979 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
7981 def __ne__(self, *args):
7983 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
7984 __ne__(_TrivialDecorator self, Particle d) -> bool
7986 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
7988 def __le__(self, *args):
7990 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
7991 __le__(_TrivialDecorator self, Particle d) -> bool
7993 return _IMP_kernel._TrivialDecorator___le__(self, *args)
7995 def __lt__(self, *args):
7997 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
7998 __lt__(_TrivialDecorator self, Particle d) -> bool
8000 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8002 def __ge__(self, *args):
8004 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8005 __ge__(_TrivialDecorator self, Particle d) -> bool
8007 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8009 def __gt__(self, *args):
8011 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8012 __gt__(_TrivialDecorator self, Particle d) -> bool
8014 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8017 r"""__hash__(_TrivialDecorator self) -> std::size_t"""
8018 return _IMP_kernel._TrivialDecorator___hash__(self)
8021 r"""__str__(_TrivialDecorator self) -> std::string"""
8022 return _IMP_kernel._TrivialDecorator___str__(self)
8025 r"""__repr__(_TrivialDecorator self) -> std::string"""
8026 return _IMP_kernel._TrivialDecorator___repr__(self)
8028 def _get_as_binary(self):
8029 r"""_get_as_binary(_TrivialDecorator self) -> PyObject *"""
8030 return _IMP_kernel._TrivialDecorator__get_as_binary(self)
8032 def _set_from_binary(self, p):
8033 r"""_set_from_binary(_TrivialDecorator self, PyObject * p)"""
8034 return _IMP_kernel._TrivialDecorator__set_from_binary(self, p)
8036 def __getstate__(self):
8037 p = self._get_as_binary()
8038 if len(self.__dict__) > 1:
8039 d = self.__dict__.copy()
8044 def __setstate__(self, p):
8045 if not hasattr(self,
'this'):
8047 if isinstance(p, tuple):
8049 self.__dict__.update(d)
8050 return self._set_from_binary(p)
8052 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8055 _IMP_kernel._TrivialDecorator_swigregister(_TrivialDecorator)
8056 class _TrivialDerivedDecorator(_TrivialDecorator):
8057 r"""Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8059 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8061 def __init__(self, *args):
8063 __init__(_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8064 __init__(_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8065 __init__(_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8067 _IMP_kernel._TrivialDerivedDecorator_swiginit(self, _IMP_kernel.new__TrivialDerivedDecorator(*args))
8069 def show(self, *args):
8070 r"""show(_TrivialDerivedDecorator self, _ostream out=std::cout)"""
8071 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8074 def setup_particle(*args):
8076 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8077 setup_particle(_ParticleAdaptor pa) -> _TrivialDerivedDecorator
8079 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8082 def get_is_setup(*args):
8084 get_is_setup(_ParticleAdaptor p) -> bool
8085 get_is_setup(Model m, ParticleIndex pi) -> bool
8087 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8091 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8092 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8093 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8094 add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
8095 add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
8096 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8097 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8098 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8100 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8102 def get_value(self, *args):
8104 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8105 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8106 get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
8107 get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
8108 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8109 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8110 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8112 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8114 def set_value(self, *args):
8116 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8117 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8118 set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
8119 set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
8120 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8121 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8122 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8124 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8128 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8129 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8130 remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
8131 remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
8132 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8133 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8134 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8136 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8138 def has_attribute(self, *args):
8140 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8141 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8142 has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
8143 has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
8144 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8145 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8146 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8148 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8150 def get_derivative(self, a0):
8151 r"""get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8152 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8155 r"""get_name(_TrivialDerivedDecorator self) -> std::string"""
8156 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8159 r"""clear_caches(_TrivialDerivedDecorator self)"""
8160 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8162 def set_name(self, a0):
8163 r"""set_name(_TrivialDerivedDecorator self, std::string a0)"""
8164 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8167 r"""set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8168 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8170 def add_to_derivative(self, a0, a1, a2):
8171 r"""add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8172 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8175 r"""set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8176 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8178 def get_is_optimized(self, a0):
8179 r"""get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8180 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8182 def get_check_level(self):
8183 r"""get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8184 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8186 def __eq__(self, *args):
8188 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8189 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8191 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8193 def __ne__(self, *args):
8195 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8196 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8198 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8200 def __le__(self, *args):
8202 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8203 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8205 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8207 def __lt__(self, *args):
8209 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8210 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8212 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8214 def __ge__(self, *args):
8216 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8217 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8219 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8221 def __gt__(self, *args):
8223 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8224 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8226 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8229 r"""__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8230 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8233 r"""__str__(_TrivialDerivedDecorator self) -> std::string"""
8234 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8237 r"""__repr__(_TrivialDerivedDecorator self) -> std::string"""
8238 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8240 def _get_as_binary(self):
8241 r"""_get_as_binary(_TrivialDerivedDecorator self) -> PyObject *"""
8242 return _IMP_kernel._TrivialDerivedDecorator__get_as_binary(self)
8244 def _set_from_binary(self, p):
8245 r"""_set_from_binary(_TrivialDerivedDecorator self, PyObject * p)"""
8246 return _IMP_kernel._TrivialDerivedDecorator__set_from_binary(self, p)
8248 def __getstate__(self):
8249 p = self._get_as_binary()
8250 if len(self.__dict__) > 1:
8251 d = self.__dict__.copy()
8256 def __setstate__(self, p):
8257 if not hasattr(self,
'this'):
8259 if isinstance(p, tuple):
8261 self.__dict__.update(d)
8262 return self._set_from_binary(p)
8264 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8267 _IMP_kernel._TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8268 class _TrivialTraitsDecorator(Decorator):
8269 r"""Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
8271 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8273 def get_decorator_traits(self):
8274 r"""get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8275 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8278 def get_default_decorator_traits():
8279 r"""get_default_decorator_traits() -> StringKey"""
8280 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8282 def __init__(self, *args):
8284 __init__(_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8285 __init__(_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
8286 __init__(_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
8288 _IMP_kernel._TrivialTraitsDecorator_swiginit(self, _IMP_kernel.new__TrivialTraitsDecorator(*args))
8290 def show(self, *args):
8291 r"""show(_TrivialTraitsDecorator self, _ostream out=std::cout)"""
8292 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8295 def setup_particle(*args):
8297 setup_particle(Model m, ParticleIndex pi, StringKey tr=IMP::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
8298 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
8300 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8303 def get_is_setup(*args):
8305 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
8306 get_is_setup(Model m, ParticleIndex pi, StringKey k=get_default_key()) -> bool
8308 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8311 def get_default_key():
8312 r"""get_default_key() -> StringKey"""
8313 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8317 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8318 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8319 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8320 add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
8321 add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
8322 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8323 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8324 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8326 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
8328 def get_value(self, *args):
8330 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
8331 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
8332 get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
8333 get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
8334 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
8335 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
8336 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
8338 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
8340 def set_value(self, *args):
8342 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8343 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8344 set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
8345 set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
8346 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8347 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8348 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8350 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
8354 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
8355 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
8356 remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
8357 remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
8358 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
8359 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
8360 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
8362 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
8364 def has_attribute(self, *args):
8366 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
8367 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
8368 has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
8369 has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
8370 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
8371 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
8372 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
8374 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
8376 def get_derivative(self, a0):
8377 r"""get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
8378 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
8381 r"""get_name(_TrivialTraitsDecorator self) -> std::string"""
8382 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
8385 r"""clear_caches(_TrivialTraitsDecorator self)"""
8386 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
8388 def set_name(self, a0):
8389 r"""set_name(_TrivialTraitsDecorator self, std::string a0)"""
8390 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
8393 r"""set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
8394 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
8396 def add_to_derivative(self, a0, a1, a2):
8397 r"""add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8398 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
8401 r"""set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
8402 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
8404 def get_is_optimized(self, a0):
8405 r"""get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
8406 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
8408 def get_check_level(self):
8409 r"""get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
8410 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
8412 def __eq__(self, *args):
8414 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8415 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
8417 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
8419 def __ne__(self, *args):
8421 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8422 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
8424 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
8426 def __le__(self, *args):
8428 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8429 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
8431 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
8433 def __lt__(self, *args):
8435 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8436 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
8438 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
8440 def __ge__(self, *args):
8442 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8443 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
8445 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
8447 def __gt__(self, *args):
8449 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8450 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
8452 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
8455 r"""__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
8456 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
8459 r"""__str__(_TrivialTraitsDecorator self) -> std::string"""
8460 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
8463 r"""__repr__(_TrivialTraitsDecorator self) -> std::string"""
8464 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
8465 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
8468 _IMP_kernel._TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
8470 def __lshift__(*args):
8472 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
8473 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
8474 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
8476 return _IMP_kernel.__lshift__(*args)
8477 class _ConstOptimizer(Optimizer):
8478 r"""Proxy of C++ IMP::internal::_ConstOptimizer class."""
8480 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8482 def __init__(self, *args):
8484 __init__(_ConstOptimizer self, Model m) -> _ConstOptimizer
8485 __init__(_ConstOptimizer self) -> _ConstOptimizer
8487 _IMP_kernel._ConstOptimizer_swiginit(self, _IMP_kernel.new__ConstOptimizer(*args))
8489 def do_optimize(self, max_steps):
8490 r"""do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
8491 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
8494 r"""get_version_info(_ConstOptimizer self) -> VersionInfo"""
8495 return _IMP_kernel._ConstOptimizer_get_version_info(self)
8496 __swig_destroy__ = _IMP_kernel.delete__ConstOptimizer
8499 r"""__str__(_ConstOptimizer self) -> std::string"""
8500 return _IMP_kernel._ConstOptimizer___str__(self)
8503 r"""__repr__(_ConstOptimizer self) -> std::string"""
8504 return _IMP_kernel._ConstOptimizer___repr__(self)
8508 return _object_cast_to__ConstOptimizer(o)
8511 def _get_as_binary(self):
8512 r"""_get_as_binary(_ConstOptimizer self) -> PyObject *"""
8513 return _IMP_kernel._ConstOptimizer__get_as_binary(self)
8515 def _set_from_binary(self, p):
8516 r"""_set_from_binary(_ConstOptimizer self, PyObject * p)"""
8517 return _IMP_kernel._ConstOptimizer__set_from_binary(self, p)
8519 def __getstate__(self):
8520 p = self._get_as_binary()
8521 if len(self.__dict__) > 1:
8522 d = self.__dict__.copy()
8527 def __setstate__(self, p):
8528 if not hasattr(self,
'this'):
8530 if isinstance(p, tuple):
8532 self.__dict__.update(d)
8533 return self._set_from_binary(p)
8537 _IMP_kernel._ConstOptimizer_swigregister(_ConstOptimizer)
8540 r"""get_particle(Particle p) -> Particle"""
8541 return _IMP_kernel.get_particle(p)
8543 def _decorator_test(p):
8544 r"""_decorator_test(Particle p)"""
8545 return _IMP_kernel._decorator_test(p)
8547 def _overloaded_decorator(*args):
8549 _overloaded_decorator(_TrivialDecorator a) -> int
8550 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
8552 return _IMP_kernel._overloaded_decorator(*args)
8554 def _take_particles(*args):
8556 _take_particles(IMP::Particles const & ps) -> unsigned int
8557 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
8558 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
8560 return _IMP_kernel._take_particles(*args)
8562 def _give_particles(m):
8563 r"""_give_particles(Model m) -> IMP::Particles const &"""
8564 return _IMP_kernel._give_particles(m)
8566 def _pass_particles(ps):
8567 r"""_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
8568 return _IMP_kernel._pass_particles(ps)
8570 def _pass_particle(ps):
8571 r"""_pass_particle(Particle ps) -> Particle"""
8572 return _IMP_kernel._pass_particle(ps)
8574 def _pass_particle_pair(pp):
8575 r"""_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
8576 return _IMP_kernel._pass_particle_pair(pp)
8578 def _give_particles_copy(m):
8579 r"""_give_particles_copy(Model m) -> IMP::Particles"""
8580 return _IMP_kernel._give_particles_copy(m)
8582 def _pass_float_keys(input):
8583 r"""_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
8584 return _IMP_kernel._pass_float_keys(input)
8588 _pass(IMP::Particles const & p) -> IMP::Particles const
8589 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
8591 return _IMP_kernel._pass(*args)
8593 def _pass_decorators(p):
8594 r"""_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
8595 return _IMP_kernel._pass_decorators(p)
8597 def _pass_decorator_traits(p):
8598 r"""_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
8599 return _IMP_kernel._pass_decorator_traits(p)
8601 def _pass_particle_pairs(p):
8602 r"""_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
8603 return _IMP_kernel._pass_particle_pairs(p)
8605 def _pass_particle_index_pairs(p):
8606 r"""_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
8607 return _IMP_kernel._pass_particle_index_pairs(p)
8609 def _pass_model_objects(p):
8610 r"""_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
8611 return _IMP_kernel._pass_model_objects(p)
8613 def _pass_particles_temps(ps):
8614 r"""_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
8615 return _IMP_kernel._pass_particles_temps(ps)
8617 def _test_overload(*args):
8619 _test_overload(IMP::Particles const & ps) -> int
8620 _test_overload(IMP::Restraints const & ps) -> int
8622 return _IMP_kernel._test_overload(*args)
8624 def _get_range(m, k):
8625 r"""_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
8626 return _IMP_kernel._get_range(m, k)
8628 def _create_particles_from_pdb(name, m):
8629 r"""_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
8630 return _IMP_kernel._create_particles_from_pdb(name, m)
8631 class _LogPairScore(PairScore):
8632 r"""Proxy of C++ IMP::internal::_LogPairScore class."""
8634 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8635 __repr__ = _swig_repr
8638 r"""__init__(_LogPairScore self) -> _LogPairScore"""
8639 _IMP_kernel._LogPairScore_swiginit(self, _IMP_kernel.new__LogPairScore())
8641 def do_get_inputs(self, arg2, arg3):
8642 r"""do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8643 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
8646 r"""get_version_info(_LogPairScore self) -> VersionInfo"""
8647 return _IMP_kernel._LogPairScore_get_version_info(self)
8648 __swig_destroy__ = _IMP_kernel.delete__LogPairScore
8650 def get_particle_pairs(self):
8651 r"""get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
8652 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
8655 r"""clear(_LogPairScore self)"""
8656 return _IMP_kernel._LogPairScore_clear(self)
8658 def get_contains(self, pp):
8659 r"""get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
8660 return _IMP_kernel._LogPairScore_get_contains(self, pp)
8663 _IMP_kernel._LogPairScore_swigregister(_LogPairScore)
8665 def _overloaded_particles(*args):
8667 _overloaded_particles(Particle arg1)
8668 _overloaded_particles(IMP::Particles const & arg1)
8669 _overloaded_particles(IMP::ParticlesTemp const & arg1)
8670 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
8671 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
8672 _overloaded_particles(_TrivialDecorator arg1)
8674 return _IMP_kernel._overloaded_particles(*args)
8675 class _ImplicitParticles(object):
8676 r"""Proxy of C++ IMP::internal::_ImplicitParticles class."""
8678 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8679 __repr__ = _swig_repr
8681 def __init__(self, *args):
8683 __init__(_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
8684 __init__(_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
8685 __init__(_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
8686 __init__(_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
8687 __init__(_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
8688 __init__(_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
8690 _IMP_kernel._ImplicitParticles_swiginit(self, _IMP_kernel.new__ImplicitParticles(*args))
8691 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
8694 _IMP_kernel._ImplicitParticles_swigregister(_ImplicitParticles)
8696 def _implicit_particles(arg1):
8697 r"""_implicit_particles(_ImplicitParticles arg1)"""
8698 return _IMP_kernel._implicit_particles(arg1)
8700 def _take_particle_adaptor(pa):
8701 r"""_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
8702 return _IMP_kernel._take_particle_adaptor(pa)
8704 def _take_particle_indexes_adaptor(pa):
8705 r"""_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
8706 return _IMP_kernel._take_particle_indexes_adaptor(pa)
8707 class ScopedSetFloatAttribute(_RAII):
8708 r"""Proxy of C++ IMP::ScopedSetAttribute< FloatKey,IMP::Float > class."""
8710 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8712 def __init__(self, *args):
8714 __init__(ScopedSetFloatAttribute self) -> ScopedSetFloatAttribute
8715 __init__(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
8717 _IMP_kernel.ScopedSetFloatAttribute_swiginit(self, _IMP_kernel.new_ScopedSetFloatAttribute(*args))
8719 def set(self, p, key, value):
8720 r"""set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
8721 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
8724 r"""reset(ScopedSetFloatAttribute self)"""
8725 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
8726 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
8728 def show(self, *args):
8729 r"""show(ScopedSetFloatAttribute self, _ostream out=std::cout)"""
8730 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
8733 r"""__str__(ScopedSetFloatAttribute self) -> std::string"""
8734 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
8737 r"""__repr__(ScopedSetFloatAttribute self) -> std::string"""
8738 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
8741 _IMP_kernel.ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
8743 def _get_module_data_path(module, file_name):
8744 r"""_get_module_data_path(std::string module, std::string file_name) -> std::string"""
8745 return _IMP_kernel._get_module_data_path(module, file_name)
8747 def _get_module_example_path(module, file_name):
8748 r"""_get_module_example_path(std::string module, std::string file_name) -> std::string"""
8749 return _IMP_kernel._get_module_example_path(module, file_name)
8758 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
8759 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
8760 pathcomps = os.environ[
'PATH'].split(
";")
8762 if d
not in pathcomps:
8763 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
8771 """Allow command line tools to easily implement multiple commands.
8772 Typically, an IMP command line tool will use an instance of this class
8773 to provide a consistent interface to multiple distinct commands
8774 from a single binary, rather than providing a potentially large
8775 number of binaries. This is similar to the way a number of common
8776 command line tools outside of IMP function (e.g. Git provides a single
8777 `git` tool which implements multiple commands - `git add`, `git commit`,
8778 `git push` and so on).
8780 Each command is implemented with a Python module of the same name
8781 that can be imported from the module (for example, if `module_name`
8782 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
8783 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
8784 Each such module should have a docstring and a `%main()` method
8785 that takes no arguments (the module should also call its `%main()` method
8786 if it is run directly, i.e. with something like
8787 `if __name__=="__main__": %main()`). The encompassing module
8788 (`IMP.foo` in the example) should define `_all_commands` as a Python
8789 list of all valid commands.
8791 See the `multifit` and `cnmultifit` command line tools for example
8795 def __init__(self, short_help, long_help, module_name):
8797 @param short_help A few words that describe the command line tool.
8798 @param long_help Longer text, used in the `help` command.
8799 @param module_name Name of the module (e.g. `IMP.foo`) that
8800 implements the commands.
8802 self.short_help = short_help
8803 self.long_help = long_help
8804 self.module_name = module_name
8805 self._all_commands = self.import_module()._all_commands
8806 self._progname = os.path.basename(sys.argv[0])
8809 """Call this method to act upon the user-provided command line"""
8810 if len(sys.argv) <= 1:
8811 print(self.short_help +
" Use '%s help' for help." % self._progname)
8813 command = sys.argv[1]
8814 if command
in (
'help',
'--help',
'-h'):
8815 if len(sys.argv) == 3:
8816 self.show_command_help(sys.argv[2])
8819 elif command ==
'--version':
8821 elif command
in self._all_commands:
8822 self.do_command(command)
8824 self.unknown_command(command)
8826 def import_module(self, mod=None):
8827 modname = self.module_name
8829 modname +=
"." + mod
8830 return __import__(modname, {}, {}, [
''])
8832 def unknown_command(self, command):
8833 print(
"Unknown command: '%s'" % command)
8834 print(
"Use '%s help' for help." % self._progname)
8837 def _get_version(self):
8840 def show_version(self):
8841 print(self._progname +
' ' + self._get_version())
8843 def show_help(self):
8844 ver = self._get_version()
8845 print(
"%s, version %s." % (self._progname, ver))
8846 print(self.long_help +
"""
8848 This program is part of IMP, the Integrative Modeling Platform,
8850 For additional information about IMP, see <https://integrativemodeling.org>.
8852 Usage: %s <command> [options] [args]
8855 commands = self._all_commands[:] + [
'help']
8857 cmdlen = max([len(c)
for c
in commands])
8860 doc =
'Get help on using %s.' % self._progname
8862 doc = self.import_module(c).__doc__
or "<no help>"
8863 c +=
' ' * (cmdlen - len(c))
8864 print(
' ' + c +
' ' + doc)
8866 Use "%s help <command>" for detailed help on any command
8867 or "%s --version" to see the version number.""" % (self._progname,
8870 def do_command(self, command):
8871 mod = self.import_module(command)
8872 sys.argv[0] = self._progname +
' ' + command
8876 def show_command_help(self, command):
8877 if command ==
'help':
8879 elif command
in self._all_commands
or command ==
'help':
8880 mod = self.import_module(command)
8881 sys.argv = [self._progname +
' ' + command,
'--help']
8884 self.unknown_command(command)
8891 g = networkx.DiGraph()
8892 if len(ig.get_vertices()) == 0:
8901 return self.p.get_name()
8903 def __call__(self, name):
8904 return self.p.__call__(name)
8906 for vi
in ig.get_vertices():
8907 n = ig.get_vertex_name(vi)
8908 g.add_node(NodeWrapper(n))
8909 for vi
in ig.get_vertices():
8910 n = ig.get_vertex_name(vi)
8911 for ni
in ig.get_out_neighbors(vi):
8912 nn = ig.get_vertex_name(ni)
8913 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
8920 n0 = name.get_name()
8923 n1 = str(n0).replace(
'"',
'')
8924 n2 = n1.replace(
"\n",
'')
8927 from altgraph
import Graph, Dot
8928 graph = Graph.Graph()
8929 for i, v
in enumerate(g.get_vertices()):
8931 for i, v
in enumerate(g.get_vertices()):
8932 for n
in g.get_out_neighbors(v):
8933 graph.add_edge(v, n)
8934 dot = Dot.Dot(graph)
8935 for i, v
in enumerate(g.get_vertices()):
8936 dot.node_style(i, label=clean(g.get_vertex_name(v)))
8944 st = g.get_graphviz_string()
8945 with open(tfn,
"w")
as fh:
8948 print(
"running dot")
8949 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
8953 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")
8956 if platform.system() ==
"Darwin":
8959 cmd = [
"gv",
"acroread",
"xpdf"]
8962 print(
"launching viewer " + c)
8964 subprocess.check_call([c, tfon])
8970 print(
"Could not display file. It is saved at " + tfon)
8980 """Mark a Python module as deprecated.
8981 @note The `module` argument would normally be `__name__`.
8982 @see [deprecation support](@ref deprecation)."""
8984 "Module %s is deprecated. %s\n" % (module, help_message))
8987 """Python decorator to mark a class as deprecated.
8988 @see [deprecation support](@ref deprecation)."""
8990 orig_init = obj.__init__
8993 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
8994 def __init__(obj, *args, **keys):
8996 % (type(obj), help_message))
8997 orig_init(obj, *args, **keys)
8998 obj.__init__ = __init__
9003 """Python decorator to mark a method as deprecated.
9004 @see [deprecation support](@ref deprecation)."""
9005 def out_wrapper(obj):
9006 @functools.wraps(obj)
9007 def wrapper(cls, *args, **keys):
9009 % (obj.__name__, type(cls), help_message))
9010 return obj(cls, *args, **keys)
9015 """Python decorator to mark a function as deprecated.
9016 @see [deprecation support](@ref deprecation)."""
9017 def out_wrapper(obj):
9018 @functools.wraps(obj)
9019 def wrapper(*args, **keys):
9021 % (obj.__name__, help_message))
9022 return obj(*args, **keys)
9026 @contextlib.contextmanager
9028 """Context manager to temporarily allow (or disallow) deprecated code.
9029 @see [deprecation support](@ref deprecation)."""
9036 def _get_all_flags(ntokens):
9037 r"""_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9038 return _IMP_kernel._get_all_flags(ntokens)
9040 def _print_internal_help(out, description):
9041 r"""_print_internal_help(_ostream out, std::string description)"""
9042 return _IMP_kernel._print_internal_help(out, description)
9048 class _PassThroughAction(argparse.Action):
9049 """Pass an argument through to the IMP Boost parser"""
9050 def __call__(self, parser, namespace, values, option_string=None):
9051 parser._boost_command_line.append(option_string)
9053 parser._boost_command_line.append(values)
9056 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
9057 parser._handle_boost()
9061 """IMP-specific subclass of argparse.ArgumentParser.
9062 This adds options common to all IMP applications
9063 (see IMP::setup_from_argv()).
9066 def __init__(self, *args, **kwargs):
9068 kwargs[
'add_help'] =
False
9069 super(ArgumentParser, self).__init__(*args, **kwargs)
9070 for ntoken
in (0, 1):
9071 flags = _get_all_flags(ntoken)
9073 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
9074 self.add_argument(*arg, help=argparse.SUPPRESS,
9075 nargs=
None if ntoken
else 0,
9076 action=_PassThroughAction,
9077 default=argparse.SUPPRESS)
9080 """Parse the command line and return optional and positional arguments.
9081 This functions in the same way as the method in the base class
9082 argparse.ArgumentParser, except that it also processes optional
9083 arguments common to all IMP applications (these are not returned
9084 in `args`, but can be obtained in the usual way, e.g. by calling
9085 IMP::get_string_flag()).
9088 self._boost_command_line = [sys.argv[0]]
9089 ret = super(ArgumentParser, self).
parse_args(args, namespace)
9090 if len(self._boost_command_line) > 1:
9091 self._handle_boost()
9094 def _get_description(self):
9095 return self.format_help() +
"\nOptions common to all IMP applications:"
9097 def print_help(self, file=None):
9098 _print_internal_help(file
if file
else sys.stdout,
9099 self._get_description())
9101 def _handle_boost(self):
9103 self._get_description(),
9106 class RandomNumberGenerator(object):
9107 r"""Proxy of C++ IMP::RandomNumberGenerator class."""
9109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9110 __repr__ = _swig_repr
9113 r"""seed(RandomNumberGenerator self, int x)"""
9114 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9117 r"""__call__(RandomNumberGenerator self) -> int"""
9118 return _IMP_kernel.RandomNumberGenerator___call__(self)
9121 r"""__init__(RandomNumberGenerator self) -> RandomNumberGenerator"""
9122 _IMP_kernel.RandomNumberGenerator_swiginit(self, _IMP_kernel.new_RandomNumberGenerator())
9123 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9126 _IMP_kernel.RandomNumberGenerator_swigregister(RandomNumberGenerator)
9130 get_random_float_uniform() -> float
9131 get_random_float_uniform(float min, float max) -> float
9133 return _IMP_kernel.get_random_float_uniform(*args)
9137 get_random_double_uniform() -> double
9138 get_random_double_uniform(double min, double max) -> double
9140 return _IMP_kernel.get_random_double_uniform(*args)
9142 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9143 r"""get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >"""
9144 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9146 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9147 r"""get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >"""
9148 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9150 def get_random_floats_uniform(n):
9151 r"""get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9152 return _IMP_kernel.get_random_floats_uniform(n)
9154 def get_random_doubles_uniform(n):
9155 r"""get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9156 return _IMP_kernel.get_random_doubles_uniform(n)
9159 r"""get_random_seed() -> boost::uint64_t"""
9160 return _IMP_kernel.get_random_seed()
9162 def _get_derivatives_numpy(m, k, m_pyobj):
9163 r"""_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9164 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
9166 def _get_floats_numpy(m, k, m_pyobj):
9167 r"""_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9168 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
9170 def _get_ints_numpy(m, k, m_pyobj):
9171 r"""_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
9172 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
9174 def _get_spheres_numpy(m, m_pyobj):
9175 r"""_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9176 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
9178 def _get_sphere_derivatives_numpy(m, m_pyobj):
9179 r"""_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9180 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
9184 ParticleIndex = numpy.int32
9190 r"""get_module_version() -> std::string const"""
9191 return _IMP_kernel.get_module_version()
9194 r"""get_example_path(std::string fname) -> std::string"""
9195 return _IMP_kernel.get_example_path(fname)
9198 r"""get_data_path(std::string fname) -> std::string"""
9199 return _IMP_kernel.get_data_path(fname)
9201 from .
import _version_check
9206 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.
std::string get_copyright()
Get the IMP copyright notice.