14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_ATOM_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
77 r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
78 return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
81 r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
82 return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
86 return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
94 return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
98 return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
101 r"""next(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
102 return _IMP_atom.IMP_ATOM_SwigPyIterator_next(self)
105 r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
106 return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
109 r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
110 return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
114 return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
118 return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
122 return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
126 return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
130 return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
134 return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
139 __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
146 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
153 IMP_DEBUG = _IMP_atom.IMP_DEBUG
155 IMP_RELEASE = _IMP_atom.IMP_RELEASE
157 IMP_SILENT = _IMP_atom.IMP_SILENT
159 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
161 IMP_TERSE = _IMP_atom.IMP_TERSE
163 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
165 IMP_MEMORY = _IMP_atom.IMP_MEMORY
167 IMP_NONE = _IMP_atom.IMP_NONE
169 IMP_USAGE = _IMP_atom.IMP_USAGE
171 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_atom._ostream_write(self, osa_buf)
236 _IMP_atom._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
329 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
331 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
337 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
339 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
341 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
343 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
345 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
349 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
351 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
353 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
355 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
357 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
359 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
362 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
364 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
366 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
368 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
370 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
372 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
374 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_atom.IMP_ATOM_HAS_BOOST_SYSTEM
376 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
378 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
380 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
382 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
384 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
386 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
388 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
390 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
392 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
395 r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
397 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
398 __repr__ = _swig_repr
401 r"""__init__(HierarchyTree self) -> HierarchyTree"""
402 _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
405 r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
406 return _IMP_atom.HierarchyTree_get_graph(self)
409 r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
410 return _IMP_atom.HierarchyTree_get_vertices(self)
412 def get_vertex_name(self, i):
413 r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
414 return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
416 def get_in_neighbors(self, v):
417 r"""get_in_neighbors(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
418 return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
420 def get_out_neighbors(self, v):
421 r"""get_out_neighbors(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
422 return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
425 r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
426 return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
428 def get_graphviz_string(self):
429 r"""get_graphviz_string(HierarchyTree self) -> std::string"""
430 return _IMP_atom.HierarchyTree_get_graphviz_string(self)
432 def add_edge(self, v0, v1):
433 r"""add_edge(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor v1)"""
434 return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
436 def add_vertex(self, l):
437 r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
438 return _IMP_atom.HierarchyTree_add_vertex(self, l)
440 def remove_vertex(self, l):
441 r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
442 return _IMP_atom.HierarchyTree_remove_vertex(self, l)
443 __swig_destroy__ = _IMP_atom.delete_HierarchyTree
446 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
448 _value_types.append(
"HierarchyTree")
452 _plural_types.append(
"PDBRecords")
453 _value_types.append(
"PDBRecord")
456 _object_types.append(
"PDBSelector")
459 def _object_cast_to_PDBSelector(o):
460 r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
461 return _IMP_atom._object_cast_to_PDBSelector(o)
464 return [Angle(x)
for x
in l]
465 _plural_types.append(
"Angles")
468 _value_types.append(
"Angle")
472 return [Atom(x)
for x
in l]
473 _plural_types.append(
"Atoms")
476 _value_types.append(
"Atom")
480 return [Bond(x)
for x
in l]
481 _plural_types.append(
"Bonds")
484 _value_types.append(
"Bond")
488 return [Bonded(x)
for x
in l]
489 _plural_types.append(
"Bondeds")
492 _value_types.append(
"Bonded")
495 def CHARMMAtomList(l=[]):
496 return [CHARMMAtom(x)
for x
in l]
497 _plural_types.append(
"CHARMMAtomList")
500 _value_types.append(
"CHARMMAtom")
504 return [Chain(x)
for x
in l]
505 _plural_types.append(
"Chains")
508 _value_types.append(
"Chain")
511 def CenterOfMasses(l=[]):
512 return [CenterOfMass(x)
for x
in l]
513 _plural_types.append(
"CenterOfMasses")
516 _value_types.append(
"CenterOfMass")
520 return [Charged(x)
for x
in l]
521 _plural_types.append(
"Chargeds")
524 _value_types.append(
"Charged")
527 def Diffusions(l=[]):
528 return [Diffusion(x)
for x
in l]
529 _plural_types.append(
"Diffusions")
532 _value_types.append(
"Diffusion")
535 def RigidBodyDiffusions(l=[]):
536 return [RigidBodyDiffusion(x)
for x
in l]
537 _plural_types.append(
"RigidBodyDiffusions")
540 _value_types.append(
"RigidBodyDiffusion")
543 def TAMDParticles(l=[]):
544 return [TAMDParticle(x)
for x
in l]
545 _plural_types.append(
"TAMDParticles")
548 _value_types.append(
"TAMDParticle")
551 def TAMDCentroids(l=[]):
552 return [TAMDCentroid(x)
for x
in l]
553 _plural_types.append(
"TAMDCentroids")
556 _value_types.append(
"TAMDCentroid")
560 return [Dihedral(x)
for x
in l]
561 _plural_types.append(
"Dihedrals")
564 _value_types.append(
"Dihedral")
568 return [Domain(x)
for x
in l]
569 _plural_types.append(
"Domains")
572 _value_types.append(
"Domain")
576 return [Fragment(x)
for x
in l]
577 _plural_types.append(
"Fragments")
580 _value_types.append(
"Fragment")
583 def Hierarchies(l=[]):
584 return [Hierarchy(x)
for x
in l]
585 _plural_types.append(
"Hierarchies")
588 _value_types.append(
"Hierarchy")
591 def LennardJonesList(l=[]):
592 return [LennardJones(x)
for x
in l]
593 _plural_types.append(
"LennardJonesList")
596 _value_types.append(
"LennardJones")
600 return [Mass(x)
for x
in l]
601 _plural_types.append(
"Masses")
604 _value_types.append(
"Mass")
607 def LinearVelocities(l=[]):
608 return [LinearVelocity(x)
for x
in l]
609 _plural_types.append(
"LinearVelocities")
612 _value_types.append(
"LinearVelocity")
615 def AngularVelocities(l=[]):
616 return [AngularVelocity(x)
for x
in l]
617 _plural_types.append(
"AngularVelocities")
620 _value_types.append(
"AngularVelocity")
624 return [Molecule(x)
for x
in l]
625 _plural_types.append(
"Molecules")
628 _value_types.append(
"Molecule")
632 return [Residue(x)
for x
in l]
633 _plural_types.append(
"Residues")
636 _value_types.append(
"Residue")
639 def Representations(l=[]):
640 return [Representation(x)
for x
in l]
641 _plural_types.append(
"Representations")
644 _value_types.append(
"Representation")
648 return [State(x)
for x
in l]
649 _plural_types.append(
"States")
652 _value_types.append(
"State")
656 return [Copy(x)
for x
in l]
657 _plural_types.append(
"Copies")
660 _value_types.append(
"Copy")
663 def SecondaryStructureResidues(l=[]):
664 return [SecondaryStructureResidue(x)
for x
in l]
665 _plural_types.append(
"SecondaryStructureResidues")
668 _value_types.append(
"SecondaryStructureResidue")
671 def StructureSources(l=[]):
672 return [StructureSource(x)
for x
in l]
673 _plural_types.append(
"StructureSources")
676 _value_types.append(
"StructureSource")
679 _object_types.append(
"Simulator")
682 def _object_cast_to_Simulator(o):
683 r"""_object_cast_to_Simulator(Object o) -> Simulator"""
684 return _IMP_atom._object_cast_to_Simulator(o)
686 _object_types.append(
"ATOMPDBSelector")
689 def _object_cast_to_ATOMPDBSelector(o):
690 r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
691 return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
693 _object_types.append(
"AllMol2Selector")
696 def _object_cast_to_AllMol2Selector(o):
697 r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
698 return _IMP_atom._object_cast_to_AllMol2Selector(o)
700 _object_types.append(
"AllPDBSelector")
703 def _object_cast_to_AllPDBSelector(o):
704 r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
705 return _IMP_atom._object_cast_to_AllPDBSelector(o)
707 _object_types.append(
"AndPDBSelector")
710 def _object_cast_to_AndPDBSelector(o):
711 r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
712 return _IMP_atom._object_cast_to_AndPDBSelector(o)
714 _object_types.append(
"XorPDBSelector")
717 def _object_cast_to_XorPDBSelector(o):
718 r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
719 return _IMP_atom._object_cast_to_XorPDBSelector(o)
721 _object_types.append(
"ResidueTypePDBSelector")
724 def _object_cast_to_ResidueTypePDBSelector(o):
725 r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
726 return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
728 _object_types.append(
"AtomTypePDBSelector")
731 def _object_cast_to_AtomTypePDBSelector(o):
732 r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
733 return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
735 _object_types.append(
"AngleSingletonScore")
738 def _object_cast_to_AngleSingletonScore(o):
739 r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
740 return _IMP_atom._object_cast_to_AngleSingletonScore(o)
742 _object_types.append(
"BondEndpointsRefiner")
745 def _object_cast_to_BondEndpointsRefiner(o):
746 r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
747 return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
749 _object_types.append(
"BondPairContainer")
752 def _object_cast_to_BondPairContainer(o):
753 r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
754 return _IMP_atom._object_cast_to_BondPairContainer(o)
756 _object_types.append(
"BondSingletonScore")
759 def _object_cast_to_BondSingletonScore(o):
760 r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
761 return _IMP_atom._object_cast_to_BondSingletonScore(o)
763 _object_types.append(
"BondedPairFilter")
766 def _object_cast_to_BondedPairFilter(o):
767 r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
768 return _IMP_atom._object_cast_to_BondedPairFilter(o)
770 _object_types.append(
"BrownianDynamics")
773 def _object_cast_to_BrownianDynamics(o):
774 r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
775 return _IMP_atom._object_cast_to_BrownianDynamics(o)
777 _object_types.append(
"BrownianDynamicsTAMD")
780 def _object_cast_to_BrownianDynamicsTAMD(o):
781 r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
782 return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
784 _object_types.append(
"CAlphaPDBSelector")
787 def _object_cast_to_CAlphaPDBSelector(o):
788 r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
789 return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
791 _object_types.append(
"CBetaPDBSelector")
794 def _object_cast_to_CBetaPDBSelector(o):
795 r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
796 return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
798 _object_types.append(
"BackbonePDBSelector")
801 def _object_cast_to_BackbonePDBSelector(o):
802 r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
803 return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
805 _object_types.append(
"CHARMMParameters")
808 def _object_cast_to_CHARMMParameters(o):
809 r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
810 return _IMP_atom._object_cast_to_CHARMMParameters(o)
812 _object_types.append(
"CHARMMResidueTopology")
815 def _object_cast_to_CHARMMResidueTopology(o):
816 r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
817 return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
819 _object_types.append(
"CHARMMSegmentTopology")
822 def _object_cast_to_CHARMMSegmentTopology(o):
823 r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
824 return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
826 _object_types.append(
"CHARMMStereochemistryRestraint")
829 def _object_cast_to_CHARMMStereochemistryRestraint(o):
830 r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
831 return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
833 _object_types.append(
"CHARMMTopology")
836 def _object_cast_to_CHARMMTopology(o):
837 r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
838 return _IMP_atom._object_cast_to_CHARMMTopology(o)
840 _object_types.append(
"CPDBSelector")
843 def _object_cast_to_CPDBSelector(o):
844 r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
845 return _IMP_atom._object_cast_to_CPDBSelector(o)
847 _object_types.append(
"ChainPDBSelector")
850 def _object_cast_to_ChainPDBSelector(o):
851 r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
852 return _IMP_atom._object_cast_to_ChainPDBSelector(o)
854 _object_types.append(
"CoulombPairScore")
857 def _object_cast_to_CoulombPairScore(o):
858 r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
859 return _IMP_atom._object_cast_to_CoulombPairScore(o)
861 _object_types.append(
"CoverBond")
864 def _object_cast_to_CoverBond(o):
865 r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
866 return _IMP_atom._object_cast_to_CoverBond(o)
868 _object_types.append(
"DihedralSingletonScore")
871 def _object_cast_to_DihedralSingletonScore(o):
872 r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
873 return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
875 _object_types.append(
"DopePairScore")
878 def _object_cast_to_DopePairScore(o):
879 r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
880 return _IMP_atom._object_cast_to_DopePairScore(o)
882 _object_types.append(
"LoopStatisticalPairScore")
885 def _object_cast_to_LoopStatisticalPairScore(o):
886 r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
887 return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
889 _object_types.append(
"OrientedSoapPairScore")
892 def _object_cast_to_OrientedSoapPairScore(o):
893 r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
894 return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
896 _object_types.append(
"EzRestraint")
899 def _object_cast_to_EzRestraint(o):
900 r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
901 return _IMP_atom._object_cast_to_EzRestraint(o)
903 _object_types.append(
"ForceFieldParameters")
906 def _object_cast_to_ForceFieldParameters(o):
907 r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
908 return _IMP_atom._object_cast_to_ForceFieldParameters(o)
910 _object_types.append(
"ForceSwitch")
913 def _object_cast_to_ForceSwitch(o):
914 r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
915 return _IMP_atom._object_cast_to_ForceSwitch(o)
917 _object_types.append(
"HydrogenPDBSelector")
920 def _object_cast_to_HydrogenPDBSelector(o):
921 r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
922 return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
924 _object_types.append(
"ImproperSingletonScore")
927 def _object_cast_to_ImproperSingletonScore(o):
928 r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
929 return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
931 _object_types.append(
"LennardJonesPairScore")
934 def _object_cast_to_LennardJonesPairScore(o):
935 r"""_object_cast_to_LennardJonesPairScore(Object o) -> LennardJonesPairScore"""
936 return _IMP_atom._object_cast_to_LennardJonesPairScore(o)
938 _object_types.append(
"Mol2Selector")
941 def _object_cast_to_Mol2Selector(o):
942 r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
943 return _IMP_atom._object_cast_to_Mol2Selector(o)
945 _object_types.append(
"MolecularDynamics")
948 def _object_cast_to_MolecularDynamics(o):
949 r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
950 return _IMP_atom._object_cast_to_MolecularDynamics(o)
952 _object_types.append(
"NPDBSelector")
955 def _object_cast_to_NPDBSelector(o):
956 r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
957 return _IMP_atom._object_cast_to_NPDBSelector(o)
959 _object_types.append(
"NonAlternativePDBSelector")
962 def _object_cast_to_NonAlternativePDBSelector(o):
963 r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
964 return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
966 _object_types.append(
"NonHydrogenMol2Selector")
969 def _object_cast_to_NonHydrogenMol2Selector(o):
970 r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
971 return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
973 _object_types.append(
"NonHydrogenPDBSelector")
976 def _object_cast_to_NonHydrogenPDBSelector(o):
977 r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
978 return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
980 _object_types.append(
"NonWaterNonHydrogenPDBSelector")
983 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
984 r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
985 return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
987 _object_types.append(
"NonWaterPDBSelector")
990 def _object_cast_to_NonWaterPDBSelector(o):
991 r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
992 return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
994 _object_types.append(
"NotPDBSelector")
997 def _object_cast_to_NotPDBSelector(o):
998 r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
999 return _IMP_atom._object_cast_to_NotPDBSelector(o)
1001 _object_types.append(
"OrPDBSelector")
1004 def _object_cast_to_OrPDBSelector(o):
1005 r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
1006 return _IMP_atom._object_cast_to_OrPDBSelector(o)
1008 _object_types.append(
"PPDBSelector")
1011 def _object_cast_to_PPDBSelector(o):
1012 r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1013 return _IMP_atom._object_cast_to_PPDBSelector(o)
1015 _object_types.append(
"ProteinLigandAtomPairScore")
1018 def _object_cast_to_ProteinLigandAtomPairScore(o):
1019 r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1020 return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1022 _object_types.append(
"ProteinLigandRestraint")
1025 def _object_cast_to_ProteinLigandRestraint(o):
1026 r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1027 return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1029 _object_types.append(
"SameResiduePairFilter")
1032 def _object_cast_to_SameResiduePairFilter(o):
1033 r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1034 return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1036 _object_types.append(
"SoapPairFilter")
1039 def _object_cast_to_SoapPairFilter(o):
1040 r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1041 return _IMP_atom._object_cast_to_SoapPairFilter(o)
1043 _object_types.append(
"SmoothingFunction")
1046 def _object_cast_to_SmoothingFunction(o):
1047 r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1048 return _IMP_atom._object_cast_to_SmoothingFunction(o)
1050 _object_types.append(
"StereochemistryPairFilter")
1053 def _object_cast_to_StereochemistryPairFilter(o):
1054 r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1055 return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1057 _object_types.append(
"VelocityScalingOptimizerState")
1060 def _object_cast_to_VelocityScalingOptimizerState(o):
1061 r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1062 return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1064 _object_types.append(
"WaterPDBSelector")
1067 def _object_cast_to_WaterPDBSelector(o):
1068 r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1069 return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1071 _object_types.append(
"WritePDBOptimizerState")
1074 def _object_cast_to_WritePDBOptimizerState(o):
1075 r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1076 return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1079 _plural_types.append(
"AtomTypes")
1080 _value_types.append(
"AtomType")
1083 CHARMMAtomTopologies=list
1084 _plural_types.append(
"CHARMMAtomTopologies")
1085 _value_types.append(
"CHARMMAtomTopology")
1088 CHARMMBondEndpoints=list
1089 _plural_types.append(
"CHARMMBondEndpoints")
1090 _value_types.append(
"CHARMMBondEndpoint")
1093 CHARMMBondParametersList=list
1094 _plural_types.append(
"CHARMMBondParametersList")
1095 _value_types.append(
"CHARMMBondParameters")
1098 CHARMMDihedralParametersList=list
1099 _plural_types.append(
"CHARMMDihedralParametersList")
1100 _value_types.append(
"CHARMMDihedralParameters")
1103 _object_types.append(
"CHARMMIdealResidueTopology")
1106 def _object_cast_to_CHARMMIdealResidueTopology(o):
1107 r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1108 return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1110 CHARMMInternalCoordinates=list
1111 _plural_types.append(
"CHARMMInternalCoordinates")
1112 _value_types.append(
"CHARMMInternalCoordinate")
1115 _object_types.append(
"CHARMMPatch")
1118 def _object_cast_to_CHARMMPatch(o):
1119 r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1120 return _IMP_atom._object_cast_to_CHARMMPatch(o)
1122 _object_types.append(
"CHARMMResidueTopologyBase")
1125 def _object_cast_to_CHARMMResidueTopologyBase(o):
1126 r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1127 return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1130 _plural_types.append(
"ResidueTypes")
1131 _value_types.append(
"ResidueType")
1135 _plural_types.append(
"ChainTypes")
1136 _value_types.append(
"ChainType")
1140 _plural_types.append(
"Selections")
1141 _value_types.append(
"Selection")
1144 _object_types.append(
"RemoveRigidMotionOptimizerState")
1147 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1148 r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1149 return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1151 _object_types.append(
"BerendsenThermostatOptimizerState")
1154 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1155 r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1156 return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1158 _object_types.append(
"LangevinThermostatOptimizerState")
1161 def _object_cast_to_LangevinThermostatOptimizerState(o):
1162 r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1163 return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1165 _object_types.append(
"SelectionGeometry")
1168 def _object_cast_to_SelectionGeometry(o):
1169 r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1170 return _IMP_atom._object_cast_to_SelectionGeometry(o)
1172 _object_types.append(
"HierarchyGeometry")
1175 def _object_cast_to_HierarchyGeometry(o):
1176 r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1177 return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1179 _object_types.append(
"HierarchiesGeometry")
1182 def _object_cast_to_HierarchiesGeometry(o):
1183 r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1184 return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1186 _object_types.append(
"BondGeometry")
1189 def _object_cast_to_BondGeometry(o):
1190 r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1191 return _IMP_atom._object_cast_to_BondGeometry(o)
1193 _object_types.append(
"BondsGeometry")
1196 def _object_cast_to_BondsGeometry(o):
1197 r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1198 return _IMP_atom._object_cast_to_BondsGeometry(o)
1200 _object_types.append(
"CAAngleRestraint")
1203 def _object_cast_to_CAAngleRestraint(o):
1204 r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1205 return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1207 _object_types.append(
"CADihedralRestraint")
1210 def _object_cast_to_CADihedralRestraint(o):
1211 r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1212 return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1214 _object_types.append(
"HelixRestraint")
1217 def _object_cast_to_HelixRestraint(o):
1218 r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1219 return _IMP_atom._object_cast_to_HelixRestraint(o)
1221 CHARMMDihedrals=list
1222 _plural_types.append(
"CHARMMDihedrals")
1223 _value_types.append(
"CHARMMDihedral")
1227 _plural_types.append(
"CHARMMBonds")
1228 _value_types.append(
"CHARMMBond")
1232 _plural_types.append(
"CHARMMAngles")
1233 _value_types.append(
"CHARMMAngle")
1236 r"""Proxy of C++ IMP::atom::Bond class."""
1238 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1240 def __init__(self, *args):
1242 __init__(Bond self) -> Bond
1243 __init__(Bond self, Model m, ParticleIndex id) -> Bond
1244 __init__(Bond self, _ParticleAdaptor d) -> Bond
1246 _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1248 def show(self, *args):
1249 r"""show(Bond self, _ostream out=std::cout)"""
1250 return _IMP_atom.Bond_show(self, *args)
1253 def get_is_setup(*args):
1255 get_is_setup(_ParticleAdaptor p) -> bool
1256 get_is_setup(Model m, ParticleIndex pi) -> bool
1258 return _IMP_atom.Bond_get_is_setup(*args)
1259 UNKNOWN = _IMP_atom.Bond_UNKNOWN
1261 NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1263 SINGLE = _IMP_atom.Bond_SINGLE
1265 DOUBLE = _IMP_atom.Bond_DOUBLE
1267 TRIPLE = _IMP_atom.Bond_TRIPLE
1269 HYDROGEN = _IMP_atom.Bond_HYDROGEN
1271 SALT = _IMP_atom.Bond_SALT
1273 PEPTIDE = _IMP_atom.Bond_PEPTIDE
1275 AMIDE = _IMP_atom.Bond_AMIDE
1277 AROMATIC = _IMP_atom.Bond_AROMATIC
1280 def get_bonded(self, i):
1281 r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1282 return _IMP_atom.Bond_get_bonded(self, i)
1285 r"""get_type(Bond self) -> IMP::Int"""
1286 return _IMP_atom.Bond_get_type(self)
1288 def set_type(self, t):
1289 r"""set_type(Bond self, IMP::Int t)"""
1290 return _IMP_atom.Bond_set_type(self, t)
1293 r"""get_order(Bond self) -> IMP::Int"""
1294 return _IMP_atom.Bond_get_order(self)
1296 def set_order(self, t):
1297 r"""set_order(Bond self, IMP::Int t)"""
1298 return _IMP_atom.Bond_set_order(self, t)
1300 def get_length(self):
1301 r"""get_length(Bond self) -> IMP::Float"""
1302 return _IMP_atom.Bond_get_length(self)
1304 def set_length(self, t):
1305 r"""set_length(Bond self, IMP::Float t)"""
1306 return _IMP_atom.Bond_set_length(self, t)
1308 def get_stiffness(self):
1309 r"""get_stiffness(Bond self) -> IMP::Float"""
1310 return _IMP_atom.Bond_get_stiffness(self)
1312 def set_stiffness(self, t):
1313 r"""set_stiffness(Bond self, IMP::Float t)"""
1314 return _IMP_atom.Bond_set_stiffness(self, t)
1317 def get_length_key():
1318 r"""get_length_key() -> FloatKey"""
1319 return _IMP_atom.Bond_get_length_key()
1321 def add_attribute(self, *args):
1323 add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1324 add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1325 add_attribute(Bond self, IntKey a0, IMP::Int a1)
1326 add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1327 add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1328 add_attribute(Bond self, StringKey a0, IMP::String a1)
1329 add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1330 add_attribute(Bond self, ObjectKey a0, Object a1)
1331 add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1332 add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1333 add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1334 add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1336 return _IMP_atom.Bond_add_attribute(self, *args)
1338 def get_value(self, *args):
1340 get_value(Bond self, FloatKey a0) -> IMP::Float
1341 get_value(Bond self, IntKey a0) -> IMP::Int
1342 get_value(Bond self, FloatsKey a0) -> IMP::Floats
1343 get_value(Bond self, IntsKey a0) -> IMP::Ints
1344 get_value(Bond self, StringKey a0) -> IMP::String
1345 get_value(Bond self, ParticleIndexKey a0) -> Particle
1346 get_value(Bond self, ObjectKey a0) -> Object
1347 get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1348 get_value(Bond self, SparseIntKey a0) -> IMP::Int
1349 get_value(Bond self, SparseStringKey a0) -> IMP::String
1350 get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1352 return _IMP_atom.Bond_get_value(self, *args)
1354 def set_value(self, *args):
1356 set_value(Bond self, FloatKey a0, IMP::Float a1)
1357 set_value(Bond self, IntKey a0, IMP::Int a1)
1358 set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1359 set_value(Bond self, IntsKey a0, IMP::Ints a1)
1360 set_value(Bond self, StringKey a0, IMP::String a1)
1361 set_value(Bond self, ParticleIndexKey a0, Particle a1)
1362 set_value(Bond self, ObjectKey a0, Object a1)
1363 set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1364 set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1365 set_value(Bond self, SparseStringKey a0, IMP::String a1)
1366 set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1368 return _IMP_atom.Bond_set_value(self, *args)
1370 def remove_attribute(self, *args):
1372 remove_attribute(Bond self, FloatKey a0)
1373 remove_attribute(Bond self, IntKey a0)
1374 remove_attribute(Bond self, FloatsKey a0)
1375 remove_attribute(Bond self, IntsKey a0)
1376 remove_attribute(Bond self, StringKey a0)
1377 remove_attribute(Bond self, ParticleIndexKey a0)
1378 remove_attribute(Bond self, ObjectKey a0)
1379 remove_attribute(Bond self, SparseFloatKey a0)
1380 remove_attribute(Bond self, SparseIntKey a0)
1381 remove_attribute(Bond self, SparseStringKey a0)
1382 remove_attribute(Bond self, SparseParticleIndexKey a0)
1384 return _IMP_atom.Bond_remove_attribute(self, *args)
1386 def has_attribute(self, *args):
1388 has_attribute(Bond self, FloatKey a0) -> bool
1389 has_attribute(Bond self, IntKey a0) -> bool
1390 has_attribute(Bond self, FloatsKey a0) -> bool
1391 has_attribute(Bond self, IntsKey a0) -> bool
1392 has_attribute(Bond self, StringKey a0) -> bool
1393 has_attribute(Bond self, ParticleIndexKey a0) -> bool
1394 has_attribute(Bond self, ObjectKey a0) -> bool
1395 has_attribute(Bond self, SparseFloatKey a0) -> bool
1396 has_attribute(Bond self, SparseIntKey a0) -> bool
1397 has_attribute(Bond self, SparseStringKey a0) -> bool
1398 has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1400 return _IMP_atom.Bond_has_attribute(self, *args)
1402 def get_derivative(self, a0):
1403 r"""get_derivative(Bond self, FloatKey a0) -> double"""
1404 return _IMP_atom.Bond_get_derivative(self, a0)
1407 r"""get_name(Bond self) -> std::string"""
1408 return _IMP_atom.Bond_get_name(self)
1410 def clear_caches(self):
1411 r"""clear_caches(Bond self)"""
1412 return _IMP_atom.Bond_clear_caches(self)
1414 def set_name(self, a0):
1415 r"""set_name(Bond self, std::string a0)"""
1416 return _IMP_atom.Bond_set_name(self, a0)
1419 r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1420 return _IMP_atom.Bond_set_check_level(self, a0)
1422 def add_to_derivative(self, a0, a1, a2):
1423 r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1424 return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1426 def set_is_optimized(self, a0, a1):
1427 r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1428 return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1430 def get_is_optimized(self, a0):
1431 r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1432 return _IMP_atom.Bond_get_is_optimized(self, a0)
1435 r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1436 return _IMP_atom.Bond_get_check_level(self)
1438 def __eq__(self, *args):
1440 __eq__(Bond self, Bond o) -> bool
1441 __eq__(Bond self, Particle d) -> bool
1443 return _IMP_atom.Bond___eq__(self, *args)
1445 def __ne__(self, *args):
1447 __ne__(Bond self, Bond o) -> bool
1448 __ne__(Bond self, Particle d) -> bool
1450 return _IMP_atom.Bond___ne__(self, *args)
1452 def __le__(self, *args):
1454 __le__(Bond self, Bond o) -> bool
1455 __le__(Bond self, Particle d) -> bool
1457 return _IMP_atom.Bond___le__(self, *args)
1459 def __lt__(self, *args):
1461 __lt__(Bond self, Bond o) -> bool
1462 __lt__(Bond self, Particle d) -> bool
1464 return _IMP_atom.Bond___lt__(self, *args)
1466 def __ge__(self, *args):
1468 __ge__(Bond self, Bond o) -> bool
1469 __ge__(Bond self, Particle d) -> bool
1471 return _IMP_atom.Bond___ge__(self, *args)
1473 def __gt__(self, *args):
1475 __gt__(Bond self, Bond o) -> bool
1476 __gt__(Bond self, Particle d) -> bool
1478 return _IMP_atom.Bond___gt__(self, *args)
1481 r"""__hash__(Bond self) -> std::size_t"""
1482 return _IMP_atom.Bond___hash__(self)
1485 r"""__str__(Bond self) -> std::string"""
1486 return _IMP_atom.Bond___str__(self)
1489 r"""__repr__(Bond self) -> std::string"""
1490 return _IMP_atom.Bond___repr__(self)
1492 def _get_as_binary(self):
1493 r"""_get_as_binary(Bond self) -> PyObject *"""
1494 return _IMP_atom.Bond__get_as_binary(self)
1496 def _set_from_binary(self, p):
1497 r"""_set_from_binary(Bond self, PyObject * p)"""
1498 return _IMP_atom.Bond__set_from_binary(self, p)
1500 def __getstate__(self):
1501 p = self._get_as_binary()
1502 if len(self.__dict__) > 1:
1503 d = self.__dict__.copy()
1508 def __setstate__(self, p):
1509 if not hasattr(self,
'this'):
1511 if isinstance(p, tuple):
1513 self.__dict__.update(d)
1514 return self._set_from_binary(p)
1516 __swig_destroy__ = _IMP_atom.delete_Bond
1519 _IMP_atom.Bond_swigregister(Bond)
1521 r"""Proxy of C++ IMP::atom::Bonded class."""
1523 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1525 def __init__(self, *args):
1527 __init__(Bonded self) -> Bonded
1528 __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1529 __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1531 _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1533 def show(self, *args):
1534 r"""show(Bonded self, _ostream out=std::cout)"""
1535 return _IMP_atom.Bonded_show(self, *args)
1538 def setup_particle(*args):
1540 setup_particle(Model m, ParticleIndex pi) -> Bonded
1541 setup_particle(_ParticleAdaptor pa) -> Bonded
1543 return _IMP_atom.Bonded_setup_particle(*args)
1546 def get_is_setup(*args):
1548 get_is_setup(_ParticleAdaptor p) -> bool
1549 get_is_setup(Model m, ParticleIndex pi) -> bool
1551 return _IMP_atom.Bonded_get_is_setup(*args)
1553 def get_number_of_bonds(self):
1554 r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1555 return _IMP_atom.Bonded_get_number_of_bonds(self)
1557 def get_bond_indexes(self):
1558 r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1559 return _IMP_atom.Bonded_get_bond_indexes(self)
1562 r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1563 return _IMP_atom.Bonded_get_bond(self, i)
1565 def get_bonded(self, i):
1566 r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1567 return _IMP_atom.Bonded_get_bonded(self, i)
1569 def add_attribute(self, *args):
1571 add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1572 add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1573 add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1574 add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1575 add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1576 add_attribute(Bonded self, StringKey a0, IMP::String a1)
1577 add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1578 add_attribute(Bonded self, ObjectKey a0, Object a1)
1579 add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1580 add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1581 add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1582 add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1584 return _IMP_atom.Bonded_add_attribute(self, *args)
1586 def get_value(self, *args):
1588 get_value(Bonded self, FloatKey a0) -> IMP::Float
1589 get_value(Bonded self, IntKey a0) -> IMP::Int
1590 get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1591 get_value(Bonded self, IntsKey a0) -> IMP::Ints
1592 get_value(Bonded self, StringKey a0) -> IMP::String
1593 get_value(Bonded self, ParticleIndexKey a0) -> Particle
1594 get_value(Bonded self, ObjectKey a0) -> Object
1595 get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1596 get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1597 get_value(Bonded self, SparseStringKey a0) -> IMP::String
1598 get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1600 return _IMP_atom.Bonded_get_value(self, *args)
1602 def set_value(self, *args):
1604 set_value(Bonded self, FloatKey a0, IMP::Float a1)
1605 set_value(Bonded self, IntKey a0, IMP::Int a1)
1606 set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1607 set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1608 set_value(Bonded self, StringKey a0, IMP::String a1)
1609 set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1610 set_value(Bonded self, ObjectKey a0, Object a1)
1611 set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1612 set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1613 set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1614 set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1616 return _IMP_atom.Bonded_set_value(self, *args)
1618 def remove_attribute(self, *args):
1620 remove_attribute(Bonded self, FloatKey a0)
1621 remove_attribute(Bonded self, IntKey a0)
1622 remove_attribute(Bonded self, FloatsKey a0)
1623 remove_attribute(Bonded self, IntsKey a0)
1624 remove_attribute(Bonded self, StringKey a0)
1625 remove_attribute(Bonded self, ParticleIndexKey a0)
1626 remove_attribute(Bonded self, ObjectKey a0)
1627 remove_attribute(Bonded self, SparseFloatKey a0)
1628 remove_attribute(Bonded self, SparseIntKey a0)
1629 remove_attribute(Bonded self, SparseStringKey a0)
1630 remove_attribute(Bonded self, SparseParticleIndexKey a0)
1632 return _IMP_atom.Bonded_remove_attribute(self, *args)
1634 def has_attribute(self, *args):
1636 has_attribute(Bonded self, FloatKey a0) -> bool
1637 has_attribute(Bonded self, IntKey a0) -> bool
1638 has_attribute(Bonded self, FloatsKey a0) -> bool
1639 has_attribute(Bonded self, IntsKey a0) -> bool
1640 has_attribute(Bonded self, StringKey a0) -> bool
1641 has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1642 has_attribute(Bonded self, ObjectKey a0) -> bool
1643 has_attribute(Bonded self, SparseFloatKey a0) -> bool
1644 has_attribute(Bonded self, SparseIntKey a0) -> bool
1645 has_attribute(Bonded self, SparseStringKey a0) -> bool
1646 has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1648 return _IMP_atom.Bonded_has_attribute(self, *args)
1650 def get_derivative(self, a0):
1651 r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1652 return _IMP_atom.Bonded_get_derivative(self, a0)
1655 r"""get_name(Bonded self) -> std::string"""
1656 return _IMP_atom.Bonded_get_name(self)
1658 def clear_caches(self):
1659 r"""clear_caches(Bonded self)"""
1660 return _IMP_atom.Bonded_clear_caches(self)
1662 def set_name(self, a0):
1663 r"""set_name(Bonded self, std::string a0)"""
1664 return _IMP_atom.Bonded_set_name(self, a0)
1667 r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1668 return _IMP_atom.Bonded_set_check_level(self, a0)
1670 def add_to_derivative(self, a0, a1, a2):
1671 r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1672 return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1674 def set_is_optimized(self, a0, a1):
1675 r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1676 return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1678 def get_is_optimized(self, a0):
1679 r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1680 return _IMP_atom.Bonded_get_is_optimized(self, a0)
1683 r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1684 return _IMP_atom.Bonded_get_check_level(self)
1686 def __eq__(self, *args):
1688 __eq__(Bonded self, Bonded o) -> bool
1689 __eq__(Bonded self, Particle d) -> bool
1691 return _IMP_atom.Bonded___eq__(self, *args)
1693 def __ne__(self, *args):
1695 __ne__(Bonded self, Bonded o) -> bool
1696 __ne__(Bonded self, Particle d) -> bool
1698 return _IMP_atom.Bonded___ne__(self, *args)
1700 def __le__(self, *args):
1702 __le__(Bonded self, Bonded o) -> bool
1703 __le__(Bonded self, Particle d) -> bool
1705 return _IMP_atom.Bonded___le__(self, *args)
1707 def __lt__(self, *args):
1709 __lt__(Bonded self, Bonded o) -> bool
1710 __lt__(Bonded self, Particle d) -> bool
1712 return _IMP_atom.Bonded___lt__(self, *args)
1714 def __ge__(self, *args):
1716 __ge__(Bonded self, Bonded o) -> bool
1717 __ge__(Bonded self, Particle d) -> bool
1719 return _IMP_atom.Bonded___ge__(self, *args)
1721 def __gt__(self, *args):
1723 __gt__(Bonded self, Bonded o) -> bool
1724 __gt__(Bonded self, Particle d) -> bool
1726 return _IMP_atom.Bonded___gt__(self, *args)
1729 r"""__hash__(Bonded self) -> std::size_t"""
1730 return _IMP_atom.Bonded___hash__(self)
1733 r"""__str__(Bonded self) -> std::string"""
1734 return _IMP_atom.Bonded___str__(self)
1737 r"""__repr__(Bonded self) -> std::string"""
1738 return _IMP_atom.Bonded___repr__(self)
1740 def _get_as_binary(self):
1741 r"""_get_as_binary(Bonded self) -> PyObject *"""
1742 return _IMP_atom.Bonded__get_as_binary(self)
1744 def _set_from_binary(self, p):
1745 r"""_set_from_binary(Bonded self, PyObject * p)"""
1746 return _IMP_atom.Bonded__set_from_binary(self, p)
1748 def __getstate__(self):
1749 p = self._get_as_binary()
1750 if len(self.__dict__) > 1:
1751 d = self.__dict__.copy()
1756 def __setstate__(self, p):
1757 if not hasattr(self,
'this'):
1759 if isinstance(p, tuple):
1761 self.__dict__.update(d)
1762 return self._set_from_binary(p)
1764 __swig_destroy__ = _IMP_atom.delete_Bonded
1767 _IMP_atom.Bonded_swigregister(Bonded)
1770 r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1771 return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1775 create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1776 create_bond(Bonded a, Bonded b, Bond o) -> Bond
1778 return _IMP_atom.create_bond(*args)
1781 r"""destroy_bond(Bond b)"""
1782 return _IMP_atom.destroy_bond(b)
1785 r"""get_bond(Bonded a, Bonded b) -> Bond"""
1786 return _IMP_atom.get_bond(a, b)
1788 r"""Proxy of C++ IMP::atom::BondGeometry class."""
1790 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1792 def __init__(self, *args):
1794 __init__(BondGeometry self, Particle p) -> BondGeometry
1795 __init__(BondGeometry self, Bond d) -> BondGeometry
1797 _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1799 def get_version_info(self):
1800 r"""get_version_info(BondGeometry self) -> VersionInfo"""
1801 return _IMP_atom.BondGeometry_get_version_info(self)
1802 __swig_destroy__ = _IMP_atom.delete_BondGeometry
1805 r"""__str__(BondGeometry self) -> std::string"""
1806 return _IMP_atom.BondGeometry___str__(self)
1809 r"""__repr__(BondGeometry self) -> std::string"""
1810 return _IMP_atom.BondGeometry___repr__(self)
1814 return _object_cast_to_BondGeometry(o)
1818 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1820 r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1822 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1824 def __init__(self, sc):
1825 r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1826 _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1828 def get_version_info(self):
1829 r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1830 return _IMP_atom.BondsGeometry_get_version_info(self)
1831 __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1834 r"""__str__(BondsGeometry self) -> std::string"""
1835 return _IMP_atom.BondsGeometry___str__(self)
1838 r"""__repr__(BondsGeometry self) -> std::string"""
1839 return _IMP_atom.BondsGeometry___repr__(self)
1843 return _object_cast_to_BondsGeometry(o)
1847 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1849 r"""Proxy of C++ IMP::atom::Hierarchy class."""
1851 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1853 def __init__(self, *args):
1855 __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1856 __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1857 __init__(Hierarchy self) -> Hierarchy
1858 __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1860 _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1863 def setup_particle(*args):
1865 setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1866 setup_particle(Particle p) -> Hierarchy
1867 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1869 return _IMP_atom.Hierarchy_setup_particle(*args)
1872 def get_is_setup(*args):
1874 get_is_setup(Particle p) -> bool
1875 get_is_setup(Model m, ParticleIndex p) -> bool
1877 return _IMP_atom.Hierarchy_get_is_setup(*args)
1879 def get_is_valid(self, print_info=False):
1880 r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1881 return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1883 def add_child(self, o):
1884 r"""add_child(Hierarchy self, Hierarchy o)"""
1885 return _IMP_atom.Hierarchy_add_child(self, o)
1887 def get_child(self, i):
1888 r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1889 return _IMP_atom.Hierarchy_get_child(self, i)
1891 def get_children(self):
1892 r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1893 return _IMP_atom.Hierarchy_get_children(self)
1895 def get_parent(self):
1896 r"""get_parent(Hierarchy self) -> Hierarchy"""
1897 return _IMP_atom.Hierarchy_get_parent(self)
1901 r"""get_traits() -> HierarchyTraits"""
1902 return _IMP_atom.Hierarchy_get_traits()
1904 def show(self, *args):
1906 show(Hierarchy self, _ostream out, std::string delimiter)
1907 show(Hierarchy self, _ostream out=std::cout)
1909 return _IMP_atom.Hierarchy_show(self, *args)
1911 def add_attribute(self, *args):
1913 add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1914 add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1915 add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1916 add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1917 add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1918 add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1919 add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1920 add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1921 add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1922 add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1923 add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1924 add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1926 return _IMP_atom.Hierarchy_add_attribute(self, *args)
1928 def get_value(self, *args):
1930 get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1931 get_value(Hierarchy self, IntKey a0) -> IMP::Int
1932 get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1933 get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1934 get_value(Hierarchy self, StringKey a0) -> IMP::String
1935 get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1936 get_value(Hierarchy self, ObjectKey a0) -> Object
1937 get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1938 get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1939 get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1940 get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1942 return _IMP_atom.Hierarchy_get_value(self, *args)
1944 def set_value(self, *args):
1946 set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1947 set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1948 set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1949 set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1950 set_value(Hierarchy self, StringKey a0, IMP::String a1)
1951 set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1952 set_value(Hierarchy self, ObjectKey a0, Object a1)
1953 set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1954 set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1955 set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1956 set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1958 return _IMP_atom.Hierarchy_set_value(self, *args)
1960 def remove_attribute(self, *args):
1962 remove_attribute(Hierarchy self, FloatKey a0)
1963 remove_attribute(Hierarchy self, IntKey a0)
1964 remove_attribute(Hierarchy self, FloatsKey a0)
1965 remove_attribute(Hierarchy self, IntsKey a0)
1966 remove_attribute(Hierarchy self, StringKey a0)
1967 remove_attribute(Hierarchy self, ParticleIndexKey a0)
1968 remove_attribute(Hierarchy self, ObjectKey a0)
1969 remove_attribute(Hierarchy self, SparseFloatKey a0)
1970 remove_attribute(Hierarchy self, SparseIntKey a0)
1971 remove_attribute(Hierarchy self, SparseStringKey a0)
1972 remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1974 return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1976 def has_attribute(self, *args):
1978 has_attribute(Hierarchy self, FloatKey a0) -> bool
1979 has_attribute(Hierarchy self, IntKey a0) -> bool
1980 has_attribute(Hierarchy self, FloatsKey a0) -> bool
1981 has_attribute(Hierarchy self, IntsKey a0) -> bool
1982 has_attribute(Hierarchy self, StringKey a0) -> bool
1983 has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1984 has_attribute(Hierarchy self, ObjectKey a0) -> bool
1985 has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1986 has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1987 has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1988 has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1990 return _IMP_atom.Hierarchy_has_attribute(self, *args)
1992 def get_derivative(self, a0):
1993 r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1994 return _IMP_atom.Hierarchy_get_derivative(self, a0)
1997 r"""get_name(Hierarchy self) -> std::string"""
1998 return _IMP_atom.Hierarchy_get_name(self)
2000 def clear_caches(self):
2001 r"""clear_caches(Hierarchy self)"""
2002 return _IMP_atom.Hierarchy_clear_caches(self)
2004 def set_name(self, a0):
2005 r"""set_name(Hierarchy self, std::string a0)"""
2006 return _IMP_atom.Hierarchy_set_name(self, a0)
2009 r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2010 return _IMP_atom.Hierarchy_set_check_level(self, a0)
2012 def add_to_derivative(self, a0, a1, a2):
2013 r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2014 return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2016 def set_is_optimized(self, a0, a1):
2017 r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2018 return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2020 def get_is_optimized(self, a0):
2021 r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2022 return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2025 r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2026 return _IMP_atom.Hierarchy_get_check_level(self)
2028 def __eq__(self, *args):
2030 __eq__(Hierarchy self, Hierarchy o) -> bool
2031 __eq__(Hierarchy self, Particle d) -> bool
2033 return _IMP_atom.Hierarchy___eq__(self, *args)
2035 def __ne__(self, *args):
2037 __ne__(Hierarchy self, Hierarchy o) -> bool
2038 __ne__(Hierarchy self, Particle d) -> bool
2040 return _IMP_atom.Hierarchy___ne__(self, *args)
2042 def __le__(self, *args):
2044 __le__(Hierarchy self, Hierarchy o) -> bool
2045 __le__(Hierarchy self, Particle d) -> bool
2047 return _IMP_atom.Hierarchy___le__(self, *args)
2049 def __lt__(self, *args):
2051 __lt__(Hierarchy self, Hierarchy o) -> bool
2052 __lt__(Hierarchy self, Particle d) -> bool
2054 return _IMP_atom.Hierarchy___lt__(self, *args)
2056 def __ge__(self, *args):
2058 __ge__(Hierarchy self, Hierarchy o) -> bool
2059 __ge__(Hierarchy self, Particle d) -> bool
2061 return _IMP_atom.Hierarchy___ge__(self, *args)
2063 def __gt__(self, *args):
2065 __gt__(Hierarchy self, Hierarchy o) -> bool
2066 __gt__(Hierarchy self, Particle d) -> bool
2068 return _IMP_atom.Hierarchy___gt__(self, *args)
2071 r"""__hash__(Hierarchy self) -> std::size_t"""
2072 return _IMP_atom.Hierarchy___hash__(self)
2075 r"""__str__(Hierarchy self) -> std::string"""
2076 return _IMP_atom.Hierarchy___str__(self)
2079 r"""__repr__(Hierarchy self) -> std::string"""
2080 return _IMP_atom.Hierarchy___repr__(self)
2082 def _get_as_binary(self):
2083 r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2084 return _IMP_atom.Hierarchy__get_as_binary(self)
2086 def _set_from_binary(self, p):
2087 r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2088 return _IMP_atom.Hierarchy__set_from_binary(self, p)
2090 def __getstate__(self):
2091 p = self._get_as_binary()
2092 if len(self.__dict__) > 1:
2093 d = self.__dict__.copy()
2098 def __setstate__(self, p):
2099 if not hasattr(self,
'this'):
2101 if isinstance(p, tuple):
2103 self.__dict__.update(d)
2104 return self._set_from_binary(p)
2106 __swig_destroy__ = _IMP_atom.delete_Hierarchy
2109 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2110 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2112 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2114 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2116 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2118 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2120 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2122 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2124 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2126 MASS_TYPE = _IMP_atom.MASS_TYPE
2128 STATE_TYPE = _IMP_atom.STATE_TYPE
2131 def get_by_type(mhd, t):
2132 r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2133 return _IMP_atom.get_by_type(mhd, t)
2135 def create_fragment(ps):
2136 r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2137 return _IMP_atom.create_fragment(ps)
2139 def get_internal_bonds(mhd):
2140 r"""get_internal_bonds(Hierarchy mhd) -> IMP::atom::Bonds"""
2141 return _IMP_atom.get_internal_bonds(mhd)
2144 r"""get_root(Hierarchy h) -> Hierarchy"""
2145 return _IMP_atom.get_root(h)
2148 r"""show(Hierarchy h, _ostream out=std::cout)"""
2149 return _IMP_atom.show(*args)
2153 create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2154 create_rigid_body(Hierarchy h) -> RigidBody
2156 return _IMP_atom.create_rigid_body(*args)
2159 r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2160 return _IMP_atom.create_compatible_rigid_body(h, reference)
2162 def get_is_heterogen(h):
2163 r"""get_is_heterogen(Hierarchy h) -> bool"""
2164 return _IMP_atom.get_is_heterogen(h)
2167 r"""create_clone(Hierarchy d) -> Hierarchy"""
2168 return _IMP_atom.create_clone(d)
2170 def create_clone_one(d):
2171 r"""create_clone_one(Hierarchy d) -> Hierarchy"""
2172 return _IMP_atom.create_clone_one(d)
2175 r"""destroy(Hierarchy d)"""
2176 return _IMP_atom.destroy(d)
2178 def get_bounding_box(h):
2179 r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2180 return _IMP_atom.get_bounding_box(h)
2182 def get_bounding_sphere(h):
2183 r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2184 return _IMP_atom.get_bounding_sphere(h)
2186 r"""Proxy of C++ IMP::atom::Angle class."""
2188 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2190 def __init__(self, *args):
2192 __init__(Angle self) -> Angle
2193 __init__(Angle self, Model m, ParticleIndex id) -> Angle
2194 __init__(Angle self, _ParticleAdaptor d) -> Angle
2196 _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2198 def show(self, *args):
2199 r"""show(Angle self, _ostream out=std::cout)"""
2200 return _IMP_atom.Angle_show(self, *args)
2203 def setup_particle(*args):
2205 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2206 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2208 return _IMP_atom.Angle_setup_particle(*args)
2211 def get_is_setup(*args):
2213 get_is_setup(_ParticleAdaptor p) -> bool
2214 get_is_setup(Model m, ParticleIndex pi) -> bool
2216 return _IMP_atom.Angle_get_is_setup(*args)
2218 def get_particle(self, *args):
2220 get_particle(Angle self) -> Particle
2221 get_particle(Angle self, unsigned int i) -> Particle
2223 return _IMP_atom.Angle_get_particle(self, *args)
2225 def get_ideal(self):
2226 r"""get_ideal(Angle self) -> IMP::Float"""
2227 return _IMP_atom.Angle_get_ideal(self)
2229 def set_ideal(self, t):
2230 r"""set_ideal(Angle self, IMP::Float t)"""
2231 return _IMP_atom.Angle_set_ideal(self, t)
2233 def get_stiffness(self):
2234 r"""get_stiffness(Angle self) -> IMP::Float"""
2235 return _IMP_atom.Angle_get_stiffness(self)
2237 def set_stiffness(self, t):
2238 r"""set_stiffness(Angle self, IMP::Float t)"""
2239 return _IMP_atom.Angle_set_stiffness(self, t)
2242 def get_particle_key(i):
2243 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2244 return _IMP_atom.Angle_get_particle_key(i)
2247 def get_ideal_key():
2248 r"""get_ideal_key() -> FloatKey"""
2249 return _IMP_atom.Angle_get_ideal_key()
2252 def get_stiffness_key():
2253 r"""get_stiffness_key() -> FloatKey"""
2254 return _IMP_atom.Angle_get_stiffness_key()
2256 def add_attribute(self, *args):
2258 add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2259 add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2260 add_attribute(Angle self, IntKey a0, IMP::Int a1)
2261 add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2262 add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2263 add_attribute(Angle self, StringKey a0, IMP::String a1)
2264 add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2265 add_attribute(Angle self, ObjectKey a0, Object a1)
2266 add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2267 add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2268 add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2269 add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2271 return _IMP_atom.Angle_add_attribute(self, *args)
2273 def get_value(self, *args):
2275 get_value(Angle self, FloatKey a0) -> IMP::Float
2276 get_value(Angle self, IntKey a0) -> IMP::Int
2277 get_value(Angle self, FloatsKey a0) -> IMP::Floats
2278 get_value(Angle self, IntsKey a0) -> IMP::Ints
2279 get_value(Angle self, StringKey a0) -> IMP::String
2280 get_value(Angle self, ParticleIndexKey a0) -> Particle
2281 get_value(Angle self, ObjectKey a0) -> Object
2282 get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2283 get_value(Angle self, SparseIntKey a0) -> IMP::Int
2284 get_value(Angle self, SparseStringKey a0) -> IMP::String
2285 get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2287 return _IMP_atom.Angle_get_value(self, *args)
2289 def set_value(self, *args):
2291 set_value(Angle self, FloatKey a0, IMP::Float a1)
2292 set_value(Angle self, IntKey a0, IMP::Int a1)
2293 set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2294 set_value(Angle self, IntsKey a0, IMP::Ints a1)
2295 set_value(Angle self, StringKey a0, IMP::String a1)
2296 set_value(Angle self, ParticleIndexKey a0, Particle a1)
2297 set_value(Angle self, ObjectKey a0, Object a1)
2298 set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2299 set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2300 set_value(Angle self, SparseStringKey a0, IMP::String a1)
2301 set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2303 return _IMP_atom.Angle_set_value(self, *args)
2305 def remove_attribute(self, *args):
2307 remove_attribute(Angle self, FloatKey a0)
2308 remove_attribute(Angle self, IntKey a0)
2309 remove_attribute(Angle self, FloatsKey a0)
2310 remove_attribute(Angle self, IntsKey a0)
2311 remove_attribute(Angle self, StringKey a0)
2312 remove_attribute(Angle self, ParticleIndexKey a0)
2313 remove_attribute(Angle self, ObjectKey a0)
2314 remove_attribute(Angle self, SparseFloatKey a0)
2315 remove_attribute(Angle self, SparseIntKey a0)
2316 remove_attribute(Angle self, SparseStringKey a0)
2317 remove_attribute(Angle self, SparseParticleIndexKey a0)
2319 return _IMP_atom.Angle_remove_attribute(self, *args)
2321 def has_attribute(self, *args):
2323 has_attribute(Angle self, FloatKey a0) -> bool
2324 has_attribute(Angle self, IntKey a0) -> bool
2325 has_attribute(Angle self, FloatsKey a0) -> bool
2326 has_attribute(Angle self, IntsKey a0) -> bool
2327 has_attribute(Angle self, StringKey a0) -> bool
2328 has_attribute(Angle self, ParticleIndexKey a0) -> bool
2329 has_attribute(Angle self, ObjectKey a0) -> bool
2330 has_attribute(Angle self, SparseFloatKey a0) -> bool
2331 has_attribute(Angle self, SparseIntKey a0) -> bool
2332 has_attribute(Angle self, SparseStringKey a0) -> bool
2333 has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2335 return _IMP_atom.Angle_has_attribute(self, *args)
2337 def get_derivative(self, a0):
2338 r"""get_derivative(Angle self, FloatKey a0) -> double"""
2339 return _IMP_atom.Angle_get_derivative(self, a0)
2342 r"""get_name(Angle self) -> std::string"""
2343 return _IMP_atom.Angle_get_name(self)
2345 def clear_caches(self):
2346 r"""clear_caches(Angle self)"""
2347 return _IMP_atom.Angle_clear_caches(self)
2349 def set_name(self, a0):
2350 r"""set_name(Angle self, std::string a0)"""
2351 return _IMP_atom.Angle_set_name(self, a0)
2354 r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2355 return _IMP_atom.Angle_set_check_level(self, a0)
2357 def add_to_derivative(self, a0, a1, a2):
2358 r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2359 return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2361 def set_is_optimized(self, a0, a1):
2362 r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2363 return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2365 def get_is_optimized(self, a0):
2366 r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2367 return _IMP_atom.Angle_get_is_optimized(self, a0)
2370 r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2371 return _IMP_atom.Angle_get_check_level(self)
2373 def __eq__(self, *args):
2375 __eq__(Angle self, Angle o) -> bool
2376 __eq__(Angle self, Particle d) -> bool
2378 return _IMP_atom.Angle___eq__(self, *args)
2380 def __ne__(self, *args):
2382 __ne__(Angle self, Angle o) -> bool
2383 __ne__(Angle self, Particle d) -> bool
2385 return _IMP_atom.Angle___ne__(self, *args)
2387 def __le__(self, *args):
2389 __le__(Angle self, Angle o) -> bool
2390 __le__(Angle self, Particle d) -> bool
2392 return _IMP_atom.Angle___le__(self, *args)
2394 def __lt__(self, *args):
2396 __lt__(Angle self, Angle o) -> bool
2397 __lt__(Angle self, Particle d) -> bool
2399 return _IMP_atom.Angle___lt__(self, *args)
2401 def __ge__(self, *args):
2403 __ge__(Angle self, Angle o) -> bool
2404 __ge__(Angle self, Particle d) -> bool
2406 return _IMP_atom.Angle___ge__(self, *args)
2408 def __gt__(self, *args):
2410 __gt__(Angle self, Angle o) -> bool
2411 __gt__(Angle self, Particle d) -> bool
2413 return _IMP_atom.Angle___gt__(self, *args)
2416 r"""__hash__(Angle self) -> std::size_t"""
2417 return _IMP_atom.Angle___hash__(self)
2420 r"""__str__(Angle self) -> std::string"""
2421 return _IMP_atom.Angle___str__(self)
2424 r"""__repr__(Angle self) -> std::string"""
2425 return _IMP_atom.Angle___repr__(self)
2427 def _get_as_binary(self):
2428 r"""_get_as_binary(Angle self) -> PyObject *"""
2429 return _IMP_atom.Angle__get_as_binary(self)
2431 def _set_from_binary(self, p):
2432 r"""_set_from_binary(Angle self, PyObject * p)"""
2433 return _IMP_atom.Angle__set_from_binary(self, p)
2435 def __getstate__(self):
2436 p = self._get_as_binary()
2437 if len(self.__dict__) > 1:
2438 d = self.__dict__.copy()
2443 def __setstate__(self, p):
2444 if not hasattr(self,
'this'):
2446 if isinstance(p, tuple):
2448 self.__dict__.update(d)
2449 return self._set_from_binary(p)
2451 __swig_destroy__ = _IMP_atom.delete_Angle
2454 _IMP_atom.Angle_swigregister(Angle)
2456 r"""Proxy of C++ IMP::atom::Dihedral class."""
2458 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2460 def __init__(self, *args):
2462 __init__(Dihedral self) -> Dihedral
2463 __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2464 __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2466 _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2468 def show(self, *args):
2469 r"""show(Dihedral self, _ostream out=std::cout)"""
2470 return _IMP_atom.Dihedral_show(self, *args)
2473 def setup_particle(*args):
2475 setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2476 setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2478 return _IMP_atom.Dihedral_setup_particle(*args)
2481 def get_is_setup(*args):
2483 get_is_setup(_ParticleAdaptor p) -> bool
2484 get_is_setup(Model m, ParticleIndex pi) -> bool
2486 return _IMP_atom.Dihedral_get_is_setup(*args)
2488 def get_particle(self, *args):
2490 get_particle(Dihedral self) -> Particle
2491 get_particle(Dihedral self, unsigned int i) -> Particle
2493 return _IMP_atom.Dihedral_get_particle(self, *args)
2495 def get_ideal(self):
2496 r"""get_ideal(Dihedral self) -> IMP::Float"""
2497 return _IMP_atom.Dihedral_get_ideal(self)
2499 def set_ideal(self, t):
2500 r"""set_ideal(Dihedral self, IMP::Float t)"""
2501 return _IMP_atom.Dihedral_set_ideal(self, t)
2503 def get_multiplicity(self):
2504 r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2505 return _IMP_atom.Dihedral_get_multiplicity(self)
2507 def set_multiplicity(self, t):
2508 r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2509 return _IMP_atom.Dihedral_set_multiplicity(self, t)
2511 def get_stiffness(self):
2512 r"""get_stiffness(Dihedral self) -> IMP::Float"""
2513 return _IMP_atom.Dihedral_get_stiffness(self)
2515 def set_stiffness(self, t):
2516 r"""set_stiffness(Dihedral self, IMP::Float t)"""
2517 return _IMP_atom.Dihedral_set_stiffness(self, t)
2520 def get_particle_key(i):
2521 r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2522 return _IMP_atom.Dihedral_get_particle_key(i)
2525 def get_ideal_key():
2526 r"""get_ideal_key() -> FloatKey"""
2527 return _IMP_atom.Dihedral_get_ideal_key()
2530 def get_multiplicity_key():
2531 r"""get_multiplicity_key() -> IntKey"""
2532 return _IMP_atom.Dihedral_get_multiplicity_key()
2535 def get_stiffness_key():
2536 r"""get_stiffness_key() -> FloatKey"""
2537 return _IMP_atom.Dihedral_get_stiffness_key()
2539 def add_attribute(self, *args):
2541 add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2542 add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2543 add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2544 add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2545 add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2546 add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2547 add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2548 add_attribute(Dihedral self, ObjectKey a0, Object a1)
2549 add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2550 add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2551 add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2552 add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2554 return _IMP_atom.Dihedral_add_attribute(self, *args)
2556 def get_value(self, *args):
2558 get_value(Dihedral self, FloatKey a0) -> IMP::Float
2559 get_value(Dihedral self, IntKey a0) -> IMP::Int
2560 get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2561 get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2562 get_value(Dihedral self, StringKey a0) -> IMP::String
2563 get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2564 get_value(Dihedral self, ObjectKey a0) -> Object
2565 get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2566 get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2567 get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2568 get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2570 return _IMP_atom.Dihedral_get_value(self, *args)
2572 def set_value(self, *args):
2574 set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2575 set_value(Dihedral self, IntKey a0, IMP::Int a1)
2576 set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2577 set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2578 set_value(Dihedral self, StringKey a0, IMP::String a1)
2579 set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2580 set_value(Dihedral self, ObjectKey a0, Object a1)
2581 set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2582 set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2583 set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2584 set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2586 return _IMP_atom.Dihedral_set_value(self, *args)
2588 def remove_attribute(self, *args):
2590 remove_attribute(Dihedral self, FloatKey a0)
2591 remove_attribute(Dihedral self, IntKey a0)
2592 remove_attribute(Dihedral self, FloatsKey a0)
2593 remove_attribute(Dihedral self, IntsKey a0)
2594 remove_attribute(Dihedral self, StringKey a0)
2595 remove_attribute(Dihedral self, ParticleIndexKey a0)
2596 remove_attribute(Dihedral self, ObjectKey a0)
2597 remove_attribute(Dihedral self, SparseFloatKey a0)
2598 remove_attribute(Dihedral self, SparseIntKey a0)
2599 remove_attribute(Dihedral self, SparseStringKey a0)
2600 remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2602 return _IMP_atom.Dihedral_remove_attribute(self, *args)
2604 def has_attribute(self, *args):
2606 has_attribute(Dihedral self, FloatKey a0) -> bool
2607 has_attribute(Dihedral self, IntKey a0) -> bool
2608 has_attribute(Dihedral self, FloatsKey a0) -> bool
2609 has_attribute(Dihedral self, IntsKey a0) -> bool
2610 has_attribute(Dihedral self, StringKey a0) -> bool
2611 has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2612 has_attribute(Dihedral self, ObjectKey a0) -> bool
2613 has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2614 has_attribute(Dihedral self, SparseIntKey a0) -> bool
2615 has_attribute(Dihedral self, SparseStringKey a0) -> bool
2616 has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2618 return _IMP_atom.Dihedral_has_attribute(self, *args)
2620 def get_derivative(self, a0):
2621 r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2622 return _IMP_atom.Dihedral_get_derivative(self, a0)
2625 r"""get_name(Dihedral self) -> std::string"""
2626 return _IMP_atom.Dihedral_get_name(self)
2628 def clear_caches(self):
2629 r"""clear_caches(Dihedral self)"""
2630 return _IMP_atom.Dihedral_clear_caches(self)
2632 def set_name(self, a0):
2633 r"""set_name(Dihedral self, std::string a0)"""
2634 return _IMP_atom.Dihedral_set_name(self, a0)
2637 r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2638 return _IMP_atom.Dihedral_set_check_level(self, a0)
2640 def add_to_derivative(self, a0, a1, a2):
2641 r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2642 return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2644 def set_is_optimized(self, a0, a1):
2645 r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2646 return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2648 def get_is_optimized(self, a0):
2649 r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2650 return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2653 r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2654 return _IMP_atom.Dihedral_get_check_level(self)
2656 def __eq__(self, *args):
2658 __eq__(Dihedral self, Dihedral o) -> bool
2659 __eq__(Dihedral self, Particle d) -> bool
2661 return _IMP_atom.Dihedral___eq__(self, *args)
2663 def __ne__(self, *args):
2665 __ne__(Dihedral self, Dihedral o) -> bool
2666 __ne__(Dihedral self, Particle d) -> bool
2668 return _IMP_atom.Dihedral___ne__(self, *args)
2670 def __le__(self, *args):
2672 __le__(Dihedral self, Dihedral o) -> bool
2673 __le__(Dihedral self, Particle d) -> bool
2675 return _IMP_atom.Dihedral___le__(self, *args)
2677 def __lt__(self, *args):
2679 __lt__(Dihedral self, Dihedral o) -> bool
2680 __lt__(Dihedral self, Particle d) -> bool
2682 return _IMP_atom.Dihedral___lt__(self, *args)
2684 def __ge__(self, *args):
2686 __ge__(Dihedral self, Dihedral o) -> bool
2687 __ge__(Dihedral self, Particle d) -> bool
2689 return _IMP_atom.Dihedral___ge__(self, *args)
2691 def __gt__(self, *args):
2693 __gt__(Dihedral self, Dihedral o) -> bool
2694 __gt__(Dihedral self, Particle d) -> bool
2696 return _IMP_atom.Dihedral___gt__(self, *args)
2699 r"""__hash__(Dihedral self) -> std::size_t"""
2700 return _IMP_atom.Dihedral___hash__(self)
2703 r"""__str__(Dihedral self) -> std::string"""
2704 return _IMP_atom.Dihedral___str__(self)
2707 r"""__repr__(Dihedral self) -> std::string"""
2708 return _IMP_atom.Dihedral___repr__(self)
2710 def _get_as_binary(self):
2711 r"""_get_as_binary(Dihedral self) -> PyObject *"""
2712 return _IMP_atom.Dihedral__get_as_binary(self)
2714 def _set_from_binary(self, p):
2715 r"""_set_from_binary(Dihedral self, PyObject * p)"""
2716 return _IMP_atom.Dihedral__set_from_binary(self, p)
2718 def __getstate__(self):
2719 p = self._get_as_binary()
2720 if len(self.__dict__) > 1:
2721 d = self.__dict__.copy()
2726 def __setstate__(self, p):
2727 if not hasattr(self,
'this'):
2729 if isinstance(p, tuple):
2731 self.__dict__.update(d)
2732 return self._set_from_binary(p)
2734 __swig_destroy__ = _IMP_atom.delete_Dihedral
2737 _IMP_atom.Dihedral_swigregister(Dihedral)
2739 r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2741 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2743 def __init__(self, *args, **kwargs):
2744 raise AttributeError(
"No constructor defined - class is abstract")
2746 def __call__(self, *args):
2748 __call__(SmoothingFunction self, double score, double distance) -> double
2749 __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2751 return _IMP_atom.SmoothingFunction___call__(self, *args)
2752 __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2755 r"""__str__(SmoothingFunction self) -> std::string"""
2756 return _IMP_atom.SmoothingFunction___str__(self)
2759 r"""__repr__(SmoothingFunction self) -> std::string"""
2760 return _IMP_atom.SmoothingFunction___repr__(self)
2764 return _object_cast_to_SmoothingFunction(o)
2768 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2769 class ForceSwitch(SmoothingFunction):
2770 r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2772 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2774 def __init__(self, min_distance, max_distance):
2775 r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2776 _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2778 def __call__(self, *args):
2780 __call__(ForceSwitch self, double score, double distance) -> double
2781 __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2783 return _IMP_atom.ForceSwitch___call__(self, *args)
2785 def get_version_info(self):
2786 r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2787 return _IMP_atom.ForceSwitch_get_version_info(self)
2788 __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2791 r"""__str__(ForceSwitch self) -> std::string"""
2792 return _IMP_atom.ForceSwitch___str__(self)
2795 r"""__repr__(ForceSwitch self) -> std::string"""
2796 return _IMP_atom.ForceSwitch___repr__(self)
2800 return _object_cast_to_ForceSwitch(o)
2804 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2806 r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2808 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2810 def __init__(self, f):
2811 r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2812 _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2814 def do_get_inputs(self, m, pis):
2815 r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2816 return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2818 def get_version_info(self):
2819 r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2820 return _IMP_atom.AngleSingletonScore_get_version_info(self)
2821 __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2824 r"""__str__(AngleSingletonScore self) -> std::string"""
2825 return _IMP_atom.AngleSingletonScore___str__(self)
2828 r"""__repr__(AngleSingletonScore self) -> std::string"""
2829 return _IMP_atom.AngleSingletonScore___repr__(self)
2833 return _object_cast_to_AngleSingletonScore(o)
2837 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2839 r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2841 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2844 r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2845 _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2847 def do_get_inputs(self, m, pis):
2848 r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2849 return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2851 def get_version_info(self):
2852 r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2853 return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2854 __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2857 r"""__str__(BondEndpointsRefiner self) -> std::string"""
2858 return _IMP_atom.BondEndpointsRefiner___str__(self)
2861 r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2862 return _IMP_atom.BondEndpointsRefiner___repr__(self)
2866 return _object_cast_to_BondEndpointsRefiner(o)
2870 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2872 r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2876 def __init__(self, sc):
2877 r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2878 _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2880 def do_get_inputs(self):
2881 r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2882 return _IMP_atom.BondPairContainer_do_get_inputs(self)
2884 def do_apply(self, sm):
2885 r"""do_apply(BondPairContainer self, PairModifier sm)"""
2886 return _IMP_atom.BondPairContainer_do_apply(self, sm)
2888 def do_apply_moved(self, sm, moved_pis, reset_pis):
2889 r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2890 return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2892 def get_version_info(self):
2893 r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2894 return _IMP_atom.BondPairContainer_get_version_info(self)
2895 __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2898 r"""__str__(BondPairContainer self) -> std::string"""
2899 return _IMP_atom.BondPairContainer___str__(self)
2902 r"""__repr__(BondPairContainer self) -> std::string"""
2903 return _IMP_atom.BondPairContainer___repr__(self)
2907 return _object_cast_to_BondPairContainer(o)
2911 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2913 r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2915 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2917 def __init__(self, f):
2918 r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2919 _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2921 def get_unary_function(self):
2922 r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2923 return _IMP_atom.BondSingletonScore_get_unary_function(self)
2925 def do_get_inputs(self, m, pis):
2926 r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2927 return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
2929 def get_version_info(self):
2930 r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
2931 return _IMP_atom.BondSingletonScore_get_version_info(self)
2932 __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
2935 r"""__str__(BondSingletonScore self) -> std::string"""
2936 return _IMP_atom.BondSingletonScore___str__(self)
2939 r"""__repr__(BondSingletonScore self) -> std::string"""
2940 return _IMP_atom.BondSingletonScore___repr__(self)
2944 return _object_cast_to_BondSingletonScore(o)
2948 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
2950 r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
2952 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2955 r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
2956 _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
2958 def do_get_inputs(self, m, pis):
2959 r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2960 return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
2962 def get_version_info(self):
2963 r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
2964 return _IMP_atom.DihedralSingletonScore_get_version_info(self)
2965 __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
2968 r"""__str__(DihedralSingletonScore self) -> std::string"""
2969 return _IMP_atom.DihedralSingletonScore___str__(self)
2972 r"""__repr__(DihedralSingletonScore self) -> std::string"""
2973 return _IMP_atom.DihedralSingletonScore___repr__(self)
2977 return _object_cast_to_DihedralSingletonScore(o)
2980 def _get_as_binary(self):
2981 r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
2982 return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
2984 def _set_from_binary(self, p):
2985 r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
2986 return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
2988 def __getstate__(self):
2989 p = self._get_as_binary()
2990 if len(self.__dict__) > 1:
2991 d = self.__dict__.copy()
2996 def __setstate__(self, p):
2997 if not hasattr(self,
'this'):
2999 if isinstance(p, tuple):
3001 self.__dict__.update(d)
3002 return self._set_from_binary(p)
3006 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3008 r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3010 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3012 def __init__(self, f):
3013 r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3014 _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3016 def do_get_inputs(self, m, pis):
3017 r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3018 return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3020 def get_version_info(self):
3021 r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3022 return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3023 __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3026 r"""__str__(ImproperSingletonScore self) -> std::string"""
3027 return _IMP_atom.ImproperSingletonScore___str__(self)
3030 r"""__repr__(ImproperSingletonScore self) -> std::string"""
3031 return _IMP_atom.ImproperSingletonScore___repr__(self)
3035 return _object_cast_to_ImproperSingletonScore(o)
3039 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3041 r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3043 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3045 def get_constraint(self):
3046 r"""get_constraint(CenterOfMass self) -> Constraint"""
3047 return _IMP_atom.CenterOfMass_get_constraint(self)
3050 r"""get_mass(CenterOfMass self) -> IMP::Float"""
3051 return _IMP_atom.CenterOfMass_get_mass(self)
3053 def get_coordinate(self, i):
3054 r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3055 return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3057 def get_coordinates(self):
3058 r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3059 return _IMP_atom.CenterOfMass_get_coordinates(self)
3061 def __init__(self, *args):
3063 __init__(CenterOfMass self) -> CenterOfMass
3064 __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3065 __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3067 _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3069 def show(self, *args):
3070 r"""show(CenterOfMass self, _ostream out=std::cout)"""
3071 return _IMP_atom.CenterOfMass_show(self, *args)
3074 def setup_particle(*args):
3076 setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3077 setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3078 setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3079 setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3081 return _IMP_atom.CenterOfMass_setup_particle(*args)
3084 def teardown_particle(com):
3085 r"""teardown_particle(CenterOfMass com)"""
3086 return _IMP_atom.CenterOfMass_teardown_particle(com)
3089 def get_is_setup(*args):
3091 get_is_setup(_ParticleAdaptor p) -> bool
3092 get_is_setup(Model m, ParticleIndex pi) -> bool
3094 return _IMP_atom.CenterOfMass_get_is_setup(*args)
3096 def add_attribute(self, *args):
3098 add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3099 add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3100 add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3101 add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3102 add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3103 add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3104 add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3105 add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3106 add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3107 add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3108 add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3109 add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3111 return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3113 def get_value(self, *args):
3115 get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3116 get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3117 get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3118 get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3119 get_value(CenterOfMass self, StringKey a0) -> IMP::String
3120 get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3121 get_value(CenterOfMass self, ObjectKey a0) -> Object
3122 get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3123 get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3124 get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3125 get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3127 return _IMP_atom.CenterOfMass_get_value(self, *args)
3129 def set_value(self, *args):
3131 set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3132 set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3133 set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3134 set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3135 set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3136 set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3137 set_value(CenterOfMass self, ObjectKey a0, Object a1)
3138 set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3139 set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3140 set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3141 set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3143 return _IMP_atom.CenterOfMass_set_value(self, *args)
3145 def remove_attribute(self, *args):
3147 remove_attribute(CenterOfMass self, FloatKey a0)
3148 remove_attribute(CenterOfMass self, IntKey a0)
3149 remove_attribute(CenterOfMass self, FloatsKey a0)
3150 remove_attribute(CenterOfMass self, IntsKey a0)
3151 remove_attribute(CenterOfMass self, StringKey a0)
3152 remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3153 remove_attribute(CenterOfMass self, ObjectKey a0)
3154 remove_attribute(CenterOfMass self, SparseFloatKey a0)
3155 remove_attribute(CenterOfMass self, SparseIntKey a0)
3156 remove_attribute(CenterOfMass self, SparseStringKey a0)
3157 remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3159 return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3161 def has_attribute(self, *args):
3163 has_attribute(CenterOfMass self, FloatKey a0) -> bool
3164 has_attribute(CenterOfMass self, IntKey a0) -> bool
3165 has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3166 has_attribute(CenterOfMass self, IntsKey a0) -> bool
3167 has_attribute(CenterOfMass self, StringKey a0) -> bool
3168 has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3169 has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3170 has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3171 has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3172 has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3173 has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3175 return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3177 def get_derivative(self, a0):
3178 r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3179 return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3182 r"""get_name(CenterOfMass self) -> std::string"""
3183 return _IMP_atom.CenterOfMass_get_name(self)
3185 def clear_caches(self):
3186 r"""clear_caches(CenterOfMass self)"""
3187 return _IMP_atom.CenterOfMass_clear_caches(self)
3189 def set_name(self, a0):
3190 r"""set_name(CenterOfMass self, std::string a0)"""
3191 return _IMP_atom.CenterOfMass_set_name(self, a0)
3194 r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3195 return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3197 def add_to_derivative(self, a0, a1, a2):
3198 r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3199 return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3201 def set_is_optimized(self, a0, a1):
3202 r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3203 return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3205 def get_is_optimized(self, a0):
3206 r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3207 return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3210 r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3211 return _IMP_atom.CenterOfMass_get_check_level(self)
3213 def __eq__(self, *args):
3215 __eq__(CenterOfMass self, CenterOfMass o) -> bool
3216 __eq__(CenterOfMass self, Particle d) -> bool
3218 return _IMP_atom.CenterOfMass___eq__(self, *args)
3220 def __ne__(self, *args):
3222 __ne__(CenterOfMass self, CenterOfMass o) -> bool
3223 __ne__(CenterOfMass self, Particle d) -> bool
3225 return _IMP_atom.CenterOfMass___ne__(self, *args)
3227 def __le__(self, *args):
3229 __le__(CenterOfMass self, CenterOfMass o) -> bool
3230 __le__(CenterOfMass self, Particle d) -> bool
3232 return _IMP_atom.CenterOfMass___le__(self, *args)
3234 def __lt__(self, *args):
3236 __lt__(CenterOfMass self, CenterOfMass o) -> bool
3237 __lt__(CenterOfMass self, Particle d) -> bool
3239 return _IMP_atom.CenterOfMass___lt__(self, *args)
3241 def __ge__(self, *args):
3243 __ge__(CenterOfMass self, CenterOfMass o) -> bool
3244 __ge__(CenterOfMass self, Particle d) -> bool
3246 return _IMP_atom.CenterOfMass___ge__(self, *args)
3248 def __gt__(self, *args):
3250 __gt__(CenterOfMass self, CenterOfMass o) -> bool
3251 __gt__(CenterOfMass self, Particle d) -> bool
3253 return _IMP_atom.CenterOfMass___gt__(self, *args)
3256 r"""__hash__(CenterOfMass self) -> std::size_t"""
3257 return _IMP_atom.CenterOfMass___hash__(self)
3260 r"""__str__(CenterOfMass self) -> std::string"""
3261 return _IMP_atom.CenterOfMass___str__(self)
3264 r"""__repr__(CenterOfMass self) -> std::string"""
3265 return _IMP_atom.CenterOfMass___repr__(self)
3267 def _get_as_binary(self):
3268 r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3269 return _IMP_atom.CenterOfMass__get_as_binary(self)
3271 def _set_from_binary(self, p):
3272 r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3273 return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3275 def __getstate__(self):
3276 p = self._get_as_binary()
3277 if len(self.__dict__) > 1:
3278 d = self.__dict__.copy()
3283 def __setstate__(self, p):
3284 if not hasattr(self,
'this'):
3286 if isinstance(p, tuple):
3288 self.__dict__.update(d)
3289 return self._set_from_binary(p)
3291 __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3294 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3296 r"""Proxy of C++ IMP::atom::CoverBond class."""
3298 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3301 r"""__init__(CoverBond self) -> CoverBond"""
3302 _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3304 def do_get_inputs(self, m, pis):
3305 r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3306 return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3308 def do_get_outputs(self, m, pis):
3309 r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3310 return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3312 def get_version_info(self):
3313 r"""get_version_info(CoverBond self) -> VersionInfo"""
3314 return _IMP_atom.CoverBond_get_version_info(self)
3315 __swig_destroy__ = _IMP_atom.delete_CoverBond
3318 r"""__str__(CoverBond self) -> std::string"""
3319 return _IMP_atom.CoverBond___str__(self)
3322 r"""__repr__(CoverBond self) -> std::string"""
3323 return _IMP_atom.CoverBond___repr__(self)
3327 return _object_cast_to_CoverBond(o)
3331 _IMP_atom.CoverBond_swigregister(CoverBond)
3333 r"""Proxy of C++ IMP::atom::Simulator class."""
3335 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3337 def __init__(self, *args):
3338 r"""__init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator"""
3339 if self.__class__ == Simulator:
3343 _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3345 if self.__class__ != Simulator:
3346 _director_objects.register(self)
3351 def simulate(self, time_in_fs):
3352 r"""simulate(Simulator self, double time_in_fs) -> double"""
3353 return _IMP_atom.Simulator_simulate(self, time_in_fs)
3355 def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3356 r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3357 return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3359 def get_temperature(self):
3360 r"""get_temperature(Simulator self) -> double"""
3361 return _IMP_atom.Simulator_get_temperature(self)
3363 def set_temperature(self, d):
3364 r"""set_temperature(Simulator self, double d)"""
3365 return _IMP_atom.Simulator_set_temperature(self, d)
3367 def set_maximum_time_step(self, ts):
3368 r"""set_maximum_time_step(Simulator self, double ts)"""
3369 return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3371 def get_maximum_time_step(self):
3372 r"""get_maximum_time_step(Simulator self) -> double"""
3373 return _IMP_atom.Simulator_get_maximum_time_step(self)
3375 def get_last_time_step(self):
3376 r"""get_last_time_step(Simulator self) -> double"""
3377 return _IMP_atom.Simulator_get_last_time_step(self)
3379 def set_time_step(self, ts):
3380 r"""set_time_step(Simulator self, double ts)"""
3381 return _IMP_atom.Simulator_set_time_step(self, ts)
3384 r"""get_kt(Simulator self) -> double"""
3385 return _IMP_atom.Simulator_get_kt(self)
3387 def get_current_time(self):
3388 r"""get_current_time(Simulator self) -> double"""
3389 return _IMP_atom.Simulator_get_current_time(self)
3391 def set_current_time(self, ct):
3392 r"""set_current_time(Simulator self, double ct)"""
3393 return _IMP_atom.Simulator_set_current_time(self, ct)
3395 def get_simulation_particles(self):
3396 r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3397 return _IMP_atom.Simulator_get_simulation_particles(self)
3399 def get_simulation_particle_indexes(self):
3400 r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3401 return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3402 def __get_particles(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_particles, getfunc=self.get_particle, erasefunc=self.erase_particle, appendfunc=self.add_particle, extendfunc=self.add_particles, clearfunc=self.clear_particles, indexfunc=self._python_index_particle)
3403 def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3404 def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3405 particles = property(__get_particles, __set_particles, __del_particles, doc=
"List of ##ucnames")
3407 def remove_particle(self, d):
3408 r"""remove_particle(Simulator self, Particle d)"""
3409 return _IMP_atom.Simulator_remove_particle(self, d)
3411 def _python_index_particle(self, d, start, stop):
3412 r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3413 return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3415 def remove_particles(self, d):
3416 r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3417 return _IMP_atom.Simulator_remove_particles(self, d)
3419 def set_particles(self, ps):
3420 r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3421 return _IMP_atom.Simulator_set_particles(self, ps)
3423 def set_particles_order(self, objs):
3424 r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3425 return _IMP_atom.Simulator_set_particles_order(self, objs)
3428 r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3429 return _IMP_atom.Simulator_add_particle(self, obj)
3432 r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3433 return _IMP_atom.Simulator_add_particles(self, objs)
3435 def clear_particles(self):
3436 r"""clear_particles(Simulator self)"""
3437 return _IMP_atom.Simulator_clear_particles(self)
3439 def get_number_of_particles(self):
3440 r"""get_number_of_particles(Simulator self) -> unsigned int"""
3441 return _IMP_atom.Simulator_get_number_of_particles(self)
3443 def get_has_particles(self):
3444 r"""get_has_particles(Simulator self) -> bool"""
3445 return _IMP_atom.Simulator_get_has_particles(self)
3447 def get_particle(self, i):
3448 r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3449 return _IMP_atom.Simulator_get_particle(self, i)
3452 r"""get_particles(Simulator self) -> IMP::Particles"""
3453 return _IMP_atom.Simulator_get_particles(self)
3455 def erase_particle(self, i):
3456 r"""erase_particle(Simulator self, unsigned int i)"""
3457 return _IMP_atom.Simulator_erase_particle(self, i)
3459 def reserve_particles(self, sz):
3460 r"""reserve_particles(Simulator self, unsigned int sz)"""
3461 return _IMP_atom.Simulator_reserve_particles(self, sz)
3463 def do_optimize(self, max_steps):
3464 r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3465 return _IMP_atom.Simulator_do_optimize(self, max_steps)
3467 def setup(self, arg0):
3468 r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3469 return _IMP_atom.Simulator_setup(self, arg0)
3471 def do_step(self, sc, dt):
3472 r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3473 return _IMP_atom.Simulator_do_step(self, sc, dt)
3475 def get_is_simulation_particle(self, p):
3476 r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3477 return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3479 def do_simulate(self, time):
3480 r"""do_simulate(Simulator self, double time) -> double"""
3481 return _IMP_atom.Simulator_do_simulate(self, time)
3483 def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3484 r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3485 return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3488 r"""__str__(Simulator self) -> std::string"""
3489 return _IMP_atom.Simulator___str__(self)
3492 r"""__repr__(Simulator self) -> std::string"""
3493 return _IMP_atom.Simulator___repr__(self)
3497 return _object_cast_to_Simulator(o)
3500 def get_type_name(self):
3501 return self.__class__.__name__
3502 def do_show(self, out):
3504 def get_version_info(self):
3505 if"IMP::atom" ==
"IMP":
3506 return VersionInfo(self.__module__,
3513 return _object_cast_to_Simulator(o)
3515 __swig_destroy__ = _IMP_atom.delete_Simulator
3516 def __disown__(self):
3518 _IMP_atom.disown_Simulator(self)
3519 return weakref.proxy(self)
3521 def do_destroy(self):
3522 r"""do_destroy(Simulator self)"""
3523 return _IMP_atom.Simulator_do_destroy(self)
3525 def handle_set_has_required_score_states(self, arg0):
3526 r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3527 return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3529 def do_get_inputs(self):
3530 r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3531 return _IMP_atom.Simulator_do_get_inputs(self)
3533 def do_get_outputs(self):
3534 r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3535 return _IMP_atom.Simulator_do_get_outputs(self)
3537 def do_get_interactions(self):
3538 r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3539 return _IMP_atom.Simulator_do_get_interactions(self)
3542 _IMP_atom.Simulator_swigregister(Simulator)
3543 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3545 class BrownianDynamics(Simulator):
3546 r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3548 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3550 def __init__(self, *args):
3551 r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3552 _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3554 def set_maximum_move(self, ms_in_A):
3555 r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3556 return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3558 def set_use_stochastic_runge_kutta(self, tf):
3559 r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3560 return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3562 def get_version_info(self):
3563 r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3564 return _IMP_atom.BrownianDynamics_get_version_info(self)
3565 __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3568 r"""__str__(BrownianDynamics self) -> std::string"""
3569 return _IMP_atom.BrownianDynamics___str__(self)
3572 r"""__repr__(BrownianDynamics self) -> std::string"""
3573 return _IMP_atom.BrownianDynamics___repr__(self)
3577 return _object_cast_to_BrownianDynamics(o)
3581 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3584 r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3585 return _IMP_atom.get_maximum_time_step_estimate(bd)
3587 def get_harmonic_sigma(D, f):
3588 r"""get_harmonic_sigma(double D, double f) -> double"""
3589 return _IMP_atom.get_harmonic_sigma(D, f)
3590 class BrownianDynamicsTAMD(BrownianDynamics):
3591 r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3593 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3595 def __init__(self, *args):
3596 r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3597 _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3600 r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3601 return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3604 r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3605 return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3609 return _object_cast_to_BrownianDynamicsTAMD(o)
3611 __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3614 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3616 r"""Proxy of C++ IMP::atom::Diffusion class."""
3618 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3620 def __init__(self, *args):
3622 __init__(Diffusion self) -> Diffusion
3623 __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3624 __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3626 _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3628 def show(self, *args):
3629 r"""show(Diffusion self, _ostream out=std::cout)"""
3630 return _IMP_atom.Diffusion_show(self, *args)
3633 def setup_particle(*args):
3635 setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3636 setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3637 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3638 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3639 setup_particle(Model m, ParticleIndex pi) -> Diffusion
3640 setup_particle(_ParticleAdaptor pa) -> Diffusion
3642 return _IMP_atom.Diffusion_setup_particle(*args)
3645 def get_is_setup(*args):
3647 get_is_setup(_ParticleAdaptor p) -> bool
3648 get_is_setup(Model m, ParticleIndex p) -> bool
3650 return _IMP_atom.Diffusion_get_is_setup(*args)
3652 def set_diffusion_coefficient(self, d):
3653 r"""set_diffusion_coefficient(Diffusion self, double d)"""
3654 return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3657 r"""get_diffusion_coefficient(Diffusion self) -> double"""
3658 return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3661 def get_diffusion_coefficient_key():
3662 r"""get_diffusion_coefficient_key() -> FloatKey"""
3663 return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3665 def add_attribute(self, *args):
3667 add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3668 add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3669 add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3670 add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3671 add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3672 add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3673 add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3674 add_attribute(Diffusion self, ObjectKey a0, Object a1)
3675 add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3676 add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3677 add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3678 add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3680 return _IMP_atom.Diffusion_add_attribute(self, *args)
3682 def get_value(self, *args):
3684 get_value(Diffusion self, FloatKey a0) -> IMP::Float
3685 get_value(Diffusion self, IntKey a0) -> IMP::Int
3686 get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3687 get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3688 get_value(Diffusion self, StringKey a0) -> IMP::String
3689 get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3690 get_value(Diffusion self, ObjectKey a0) -> Object
3691 get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3692 get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3693 get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3694 get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3696 return _IMP_atom.Diffusion_get_value(self, *args)
3698 def set_value(self, *args):
3700 set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3701 set_value(Diffusion self, IntKey a0, IMP::Int a1)
3702 set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3703 set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3704 set_value(Diffusion self, StringKey a0, IMP::String a1)
3705 set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3706 set_value(Diffusion self, ObjectKey a0, Object a1)
3707 set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3708 set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3709 set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3710 set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3712 return _IMP_atom.Diffusion_set_value(self, *args)
3714 def remove_attribute(self, *args):
3716 remove_attribute(Diffusion self, FloatKey a0)
3717 remove_attribute(Diffusion self, IntKey a0)
3718 remove_attribute(Diffusion self, FloatsKey a0)
3719 remove_attribute(Diffusion self, IntsKey a0)
3720 remove_attribute(Diffusion self, StringKey a0)
3721 remove_attribute(Diffusion self, ParticleIndexKey a0)
3722 remove_attribute(Diffusion self, ObjectKey a0)
3723 remove_attribute(Diffusion self, SparseFloatKey a0)
3724 remove_attribute(Diffusion self, SparseIntKey a0)
3725 remove_attribute(Diffusion self, SparseStringKey a0)
3726 remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3728 return _IMP_atom.Diffusion_remove_attribute(self, *args)
3730 def has_attribute(self, *args):
3732 has_attribute(Diffusion self, FloatKey a0) -> bool
3733 has_attribute(Diffusion self, IntKey a0) -> bool
3734 has_attribute(Diffusion self, FloatsKey a0) -> bool
3735 has_attribute(Diffusion self, IntsKey a0) -> bool
3736 has_attribute(Diffusion self, StringKey a0) -> bool
3737 has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3738 has_attribute(Diffusion self, ObjectKey a0) -> bool
3739 has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3740 has_attribute(Diffusion self, SparseIntKey a0) -> bool
3741 has_attribute(Diffusion self, SparseStringKey a0) -> bool
3742 has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3744 return _IMP_atom.Diffusion_has_attribute(self, *args)
3746 def get_derivative(self, a0):
3747 r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3748 return _IMP_atom.Diffusion_get_derivative(self, a0)
3751 r"""get_name(Diffusion self) -> std::string"""
3752 return _IMP_atom.Diffusion_get_name(self)
3754 def clear_caches(self):
3755 r"""clear_caches(Diffusion self)"""
3756 return _IMP_atom.Diffusion_clear_caches(self)
3758 def set_name(self, a0):
3759 r"""set_name(Diffusion self, std::string a0)"""
3760 return _IMP_atom.Diffusion_set_name(self, a0)
3763 r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3764 return _IMP_atom.Diffusion_set_check_level(self, a0)
3766 def add_to_derivative(self, a0, a1, a2):
3767 r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3768 return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3770 def set_is_optimized(self, a0, a1):
3771 r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3772 return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3774 def get_is_optimized(self, a0):
3775 r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3776 return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3779 r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3780 return _IMP_atom.Diffusion_get_check_level(self)
3782 def __eq__(self, *args):
3784 __eq__(Diffusion self, Diffusion o) -> bool
3785 __eq__(Diffusion self, Particle d) -> bool
3787 return _IMP_atom.Diffusion___eq__(self, *args)
3789 def __ne__(self, *args):
3791 __ne__(Diffusion self, Diffusion o) -> bool
3792 __ne__(Diffusion self, Particle d) -> bool
3794 return _IMP_atom.Diffusion___ne__(self, *args)
3796 def __le__(self, *args):
3798 __le__(Diffusion self, Diffusion o) -> bool
3799 __le__(Diffusion self, Particle d) -> bool
3801 return _IMP_atom.Diffusion___le__(self, *args)
3803 def __lt__(self, *args):
3805 __lt__(Diffusion self, Diffusion o) -> bool
3806 __lt__(Diffusion self, Particle d) -> bool
3808 return _IMP_atom.Diffusion___lt__(self, *args)
3810 def __ge__(self, *args):
3812 __ge__(Diffusion self, Diffusion o) -> bool
3813 __ge__(Diffusion self, Particle d) -> bool
3815 return _IMP_atom.Diffusion___ge__(self, *args)
3817 def __gt__(self, *args):
3819 __gt__(Diffusion self, Diffusion o) -> bool
3820 __gt__(Diffusion self, Particle d) -> bool
3822 return _IMP_atom.Diffusion___gt__(self, *args)
3825 r"""__hash__(Diffusion self) -> std::size_t"""
3826 return _IMP_atom.Diffusion___hash__(self)
3829 r"""__str__(Diffusion self) -> std::string"""
3830 return _IMP_atom.Diffusion___str__(self)
3833 r"""__repr__(Diffusion self) -> std::string"""
3834 return _IMP_atom.Diffusion___repr__(self)
3836 def _get_as_binary(self):
3837 r"""_get_as_binary(Diffusion self) -> PyObject *"""
3838 return _IMP_atom.Diffusion__get_as_binary(self)
3840 def _set_from_binary(self, p):
3841 r"""_set_from_binary(Diffusion self, PyObject * p)"""
3842 return _IMP_atom.Diffusion__set_from_binary(self, p)
3844 def __getstate__(self):
3845 p = self._get_as_binary()
3846 if len(self.__dict__) > 1:
3847 d = self.__dict__.copy()
3852 def __setstate__(self, p):
3853 if not hasattr(self,
'this'):
3855 if isinstance(p, tuple):
3857 self.__dict__.update(d)
3858 return self._set_from_binary(p)
3860 __swig_destroy__ = _IMP_atom.delete_Diffusion
3863 _IMP_atom.Diffusion_swigregister(Diffusion)
3865 def get_diffusion_coefficient_from_cm2_per_second(din):
3866 r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
3867 return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
3868 class RigidBodyDiffusion(Diffusion):
3869 r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
3871 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3873 def __init__(self, *args):
3875 __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
3876 __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
3877 __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
3879 _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
3881 def show(self, *args):
3882 r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
3883 return _IMP_atom.RigidBodyDiffusion_show(self, *args)
3886 def setup_particle(*args):
3888 setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
3889 setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
3891 return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
3894 r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
3895 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
3897 def set_rotational_diffusion_coefficient(self, d):
3898 r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
3899 return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
3902 def get_is_setup(*args):
3904 get_is_setup(_ParticleAdaptor p) -> bool
3905 get_is_setup(Model m, ParticleIndex p) -> bool
3907 return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
3910 def get_rotational_diffusion_coefficient_key():
3911 r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
3912 return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
3914 def add_attribute(self, *args):
3916 add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
3917 add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
3918 add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
3919 add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
3920 add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
3921 add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
3922 add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
3923 add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
3924 add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
3925 add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
3926 add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
3927 add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3929 return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
3931 def get_value(self, *args):
3933 get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
3934 get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
3935 get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
3936 get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
3937 get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
3938 get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
3939 get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
3940 get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
3941 get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
3942 get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
3943 get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3945 return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
3947 def set_value(self, *args):
3949 set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
3950 set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
3951 set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
3952 set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
3953 set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
3954 set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
3955 set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
3956 set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
3957 set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
3958 set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
3959 set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3961 return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
3963 def remove_attribute(self, *args):
3965 remove_attribute(RigidBodyDiffusion self, FloatKey a0)
3966 remove_attribute(RigidBodyDiffusion self, IntKey a0)
3967 remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
3968 remove_attribute(RigidBodyDiffusion self, IntsKey a0)
3969 remove_attribute(RigidBodyDiffusion self, StringKey a0)
3970 remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
3971 remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
3972 remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
3973 remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
3974 remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
3975 remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
3977 return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
3979 def has_attribute(self, *args):
3981 has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
3982 has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
3983 has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
3984 has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
3985 has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
3986 has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
3987 has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
3988 has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
3989 has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
3990 has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
3991 has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
3993 return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
3995 def get_derivative(self, a0):
3996 r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
3997 return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4000 r"""get_name(RigidBodyDiffusion self) -> std::string"""
4001 return _IMP_atom.RigidBodyDiffusion_get_name(self)
4003 def clear_caches(self):
4004 r"""clear_caches(RigidBodyDiffusion self)"""
4005 return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4007 def set_name(self, a0):
4008 r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4009 return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4012 r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4013 return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4015 def add_to_derivative(self, a0, a1, a2):
4016 r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4017 return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4019 def set_is_optimized(self, a0, a1):
4020 r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4021 return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4023 def get_is_optimized(self, a0):
4024 r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4025 return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4028 r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4029 return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4031 def __eq__(self, *args):
4033 __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4034 __eq__(RigidBodyDiffusion self, Particle d) -> bool
4036 return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4038 def __ne__(self, *args):
4040 __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4041 __ne__(RigidBodyDiffusion self, Particle d) -> bool
4043 return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4045 def __le__(self, *args):
4047 __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4048 __le__(RigidBodyDiffusion self, Particle d) -> bool
4050 return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4052 def __lt__(self, *args):
4054 __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4055 __lt__(RigidBodyDiffusion self, Particle d) -> bool
4057 return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4059 def __ge__(self, *args):
4061 __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4062 __ge__(RigidBodyDiffusion self, Particle d) -> bool
4064 return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4066 def __gt__(self, *args):
4068 __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4069 __gt__(RigidBodyDiffusion self, Particle d) -> bool
4071 return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4074 r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4075 return _IMP_atom.RigidBodyDiffusion___hash__(self)
4078 r"""__str__(RigidBodyDiffusion self) -> std::string"""
4079 return _IMP_atom.RigidBodyDiffusion___str__(self)
4082 r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4083 return _IMP_atom.RigidBodyDiffusion___repr__(self)
4085 def _get_as_binary(self):
4086 r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4087 return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4089 def _set_from_binary(self, p):
4090 r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4091 return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4093 def __getstate__(self):
4094 p = self._get_as_binary()
4095 if len(self.__dict__) > 1:
4096 d = self.__dict__.copy()
4101 def __setstate__(self, p):
4102 if not hasattr(self,
'this'):
4104 if isinstance(p, tuple):
4106 self.__dict__.update(d)
4107 return self._set_from_binary(p)
4109 __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4112 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4114 r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4116 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4118 def __init__(self, *args):
4120 __init__(TAMDParticle self) -> TAMDParticle
4121 __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4122 __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4124 _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4126 def show(self, *args):
4127 r"""show(TAMDParticle self, _ostream out=std::cout)"""
4128 return _IMP_atom.TAMDParticle_show(self, *args)
4131 def setup_particle(*args):
4133 setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4134 setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4135 setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4136 setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4138 return _IMP_atom.TAMDParticle_setup_particle(*args)
4141 def get_is_setup(*args):
4143 get_is_setup(_ParticleAdaptor p) -> bool
4144 get_is_setup(Model m, ParticleIndex p) -> bool
4146 return _IMP_atom.TAMDParticle_get_is_setup(*args)
4148 def get_reference_particle_index(self):
4149 r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4150 return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4152 def set_temperature_scale_factor(self, tsf):
4153 r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4154 return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4156 def get_temperature_scale_factor(self):
4157 r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4158 return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4160 def set_friction_scale_factor(self, tsf):
4161 r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4162 return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4164 def get_friction_scale_factor(self):
4165 r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4166 return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4168 def update_coordinates_from_ref(self):
4169 r"""update_coordinates_from_ref(TAMDParticle self)"""
4170 return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4173 def get_temperature_scale_factor_key():
4174 r"""get_temperature_scale_factor_key() -> FloatKey"""
4175 return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4178 def get_friction_scale_factor_key():
4179 r"""get_friction_scale_factor_key() -> FloatKey"""
4180 return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4183 def get_reference_particle_index_key():
4184 r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4185 return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4187 def add_attribute(self, *args):
4189 add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4190 add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4191 add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4192 add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4193 add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4194 add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4195 add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4196 add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4197 add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4198 add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4199 add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4200 add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4202 return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4204 def get_value(self, *args):
4206 get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4207 get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4208 get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4209 get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4210 get_value(TAMDParticle self, StringKey a0) -> IMP::String
4211 get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4212 get_value(TAMDParticle self, ObjectKey a0) -> Object
4213 get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4214 get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4215 get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4216 get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4218 return _IMP_atom.TAMDParticle_get_value(self, *args)
4220 def set_value(self, *args):
4222 set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4223 set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4224 set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4225 set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4226 set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4227 set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4228 set_value(TAMDParticle self, ObjectKey a0, Object a1)
4229 set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4230 set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4231 set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4232 set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4234 return _IMP_atom.TAMDParticle_set_value(self, *args)
4236 def remove_attribute(self, *args):
4238 remove_attribute(TAMDParticle self, FloatKey a0)
4239 remove_attribute(TAMDParticle self, IntKey a0)
4240 remove_attribute(TAMDParticle self, FloatsKey a0)
4241 remove_attribute(TAMDParticle self, IntsKey a0)
4242 remove_attribute(TAMDParticle self, StringKey a0)
4243 remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4244 remove_attribute(TAMDParticle self, ObjectKey a0)
4245 remove_attribute(TAMDParticle self, SparseFloatKey a0)
4246 remove_attribute(TAMDParticle self, SparseIntKey a0)
4247 remove_attribute(TAMDParticle self, SparseStringKey a0)
4248 remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4250 return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4252 def has_attribute(self, *args):
4254 has_attribute(TAMDParticle self, FloatKey a0) -> bool
4255 has_attribute(TAMDParticle self, IntKey a0) -> bool
4256 has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4257 has_attribute(TAMDParticle self, IntsKey a0) -> bool
4258 has_attribute(TAMDParticle self, StringKey a0) -> bool
4259 has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4260 has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4261 has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4262 has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4263 has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4264 has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4266 return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4268 def get_derivative(self, a0):
4269 r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4270 return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4273 r"""get_name(TAMDParticle self) -> std::string"""
4274 return _IMP_atom.TAMDParticle_get_name(self)
4276 def clear_caches(self):
4277 r"""clear_caches(TAMDParticle self)"""
4278 return _IMP_atom.TAMDParticle_clear_caches(self)
4280 def set_name(self, a0):
4281 r"""set_name(TAMDParticle self, std::string a0)"""
4282 return _IMP_atom.TAMDParticle_set_name(self, a0)
4285 r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4286 return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4288 def add_to_derivative(self, a0, a1, a2):
4289 r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4290 return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4292 def set_is_optimized(self, a0, a1):
4293 r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4294 return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4296 def get_is_optimized(self, a0):
4297 r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4298 return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4301 r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4302 return _IMP_atom.TAMDParticle_get_check_level(self)
4304 def __eq__(self, *args):
4306 __eq__(TAMDParticle self, TAMDParticle o) -> bool
4307 __eq__(TAMDParticle self, Particle d) -> bool
4309 return _IMP_atom.TAMDParticle___eq__(self, *args)
4311 def __ne__(self, *args):
4313 __ne__(TAMDParticle self, TAMDParticle o) -> bool
4314 __ne__(TAMDParticle self, Particle d) -> bool
4316 return _IMP_atom.TAMDParticle___ne__(self, *args)
4318 def __le__(self, *args):
4320 __le__(TAMDParticle self, TAMDParticle o) -> bool
4321 __le__(TAMDParticle self, Particle d) -> bool
4323 return _IMP_atom.TAMDParticle___le__(self, *args)
4325 def __lt__(self, *args):
4327 __lt__(TAMDParticle self, TAMDParticle o) -> bool
4328 __lt__(TAMDParticle self, Particle d) -> bool
4330 return _IMP_atom.TAMDParticle___lt__(self, *args)
4332 def __ge__(self, *args):
4334 __ge__(TAMDParticle self, TAMDParticle o) -> bool
4335 __ge__(TAMDParticle self, Particle d) -> bool
4337 return _IMP_atom.TAMDParticle___ge__(self, *args)
4339 def __gt__(self, *args):
4341 __gt__(TAMDParticle self, TAMDParticle o) -> bool
4342 __gt__(TAMDParticle self, Particle d) -> bool
4344 return _IMP_atom.TAMDParticle___gt__(self, *args)
4347 r"""__hash__(TAMDParticle self) -> std::size_t"""
4348 return _IMP_atom.TAMDParticle___hash__(self)
4351 r"""__str__(TAMDParticle self) -> std::string"""
4352 return _IMP_atom.TAMDParticle___str__(self)
4355 r"""__repr__(TAMDParticle self) -> std::string"""
4356 return _IMP_atom.TAMDParticle___repr__(self)
4358 def _get_as_binary(self):
4359 r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4360 return _IMP_atom.TAMDParticle__get_as_binary(self)
4362 def _set_from_binary(self, p):
4363 r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4364 return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4366 def __getstate__(self):
4367 p = self._get_as_binary()
4368 if len(self.__dict__) > 1:
4369 d = self.__dict__.copy()
4374 def __setstate__(self, p):
4375 if not hasattr(self,
'this'):
4377 if isinstance(p, tuple):
4379 self.__dict__.update(d)
4380 return self._set_from_binary(p)
4382 __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4385 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4387 r"""Proxy of C++ IMP::atom::Charged class."""
4389 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4391 def __init__(self, *args):
4393 __init__(Charged self) -> Charged
4394 __init__(Charged self, Model m, ParticleIndex id) -> Charged
4395 __init__(Charged self, _ParticleAdaptor d) -> Charged
4397 _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4399 def show(self, *args):
4400 r"""show(Charged self, _ostream out=std::cout)"""
4401 return _IMP_atom.Charged_show(self, *args)
4404 def setup_particle(*args):
4406 setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4407 setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4408 setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4409 setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4411 return _IMP_atom.Charged_setup_particle(*args)
4413 def get_charge(self):
4414 r"""get_charge(Charged self) -> IMP::Float"""
4415 return _IMP_atom.Charged_get_charge(self)
4417 def set_charge(self, t):
4418 r"""set_charge(Charged self, IMP::Float t)"""
4419 return _IMP_atom.Charged_set_charge(self, t)
4422 def get_is_setup(*args):
4424 get_is_setup(_ParticleAdaptor p) -> bool
4425 get_is_setup(Model m, ParticleIndex pi) -> bool
4427 return _IMP_atom.Charged_get_is_setup(*args)
4430 def get_charge_key():
4431 r"""get_charge_key() -> FloatKey"""
4432 return _IMP_atom.Charged_get_charge_key()
4434 def add_attribute(self, *args):
4436 add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4437 add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4438 add_attribute(Charged self, IntKey a0, IMP::Int a1)
4439 add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4440 add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4441 add_attribute(Charged self, StringKey a0, IMP::String a1)
4442 add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4443 add_attribute(Charged self, ObjectKey a0, Object a1)
4444 add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4445 add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4446 add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4447 add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4449 return _IMP_atom.Charged_add_attribute(self, *args)
4451 def get_value(self, *args):
4453 get_value(Charged self, FloatKey a0) -> IMP::Float
4454 get_value(Charged self, IntKey a0) -> IMP::Int
4455 get_value(Charged self, FloatsKey a0) -> IMP::Floats
4456 get_value(Charged self, IntsKey a0) -> IMP::Ints
4457 get_value(Charged self, StringKey a0) -> IMP::String
4458 get_value(Charged self, ParticleIndexKey a0) -> Particle
4459 get_value(Charged self, ObjectKey a0) -> Object
4460 get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4461 get_value(Charged self, SparseIntKey a0) -> IMP::Int
4462 get_value(Charged self, SparseStringKey a0) -> IMP::String
4463 get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4465 return _IMP_atom.Charged_get_value(self, *args)
4467 def set_value(self, *args):
4469 set_value(Charged self, FloatKey a0, IMP::Float a1)
4470 set_value(Charged self, IntKey a0, IMP::Int a1)
4471 set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4472 set_value(Charged self, IntsKey a0, IMP::Ints a1)
4473 set_value(Charged self, StringKey a0, IMP::String a1)
4474 set_value(Charged self, ParticleIndexKey a0, Particle a1)
4475 set_value(Charged self, ObjectKey a0, Object a1)
4476 set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4477 set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4478 set_value(Charged self, SparseStringKey a0, IMP::String a1)
4479 set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4481 return _IMP_atom.Charged_set_value(self, *args)
4483 def remove_attribute(self, *args):
4485 remove_attribute(Charged self, FloatKey a0)
4486 remove_attribute(Charged self, IntKey a0)
4487 remove_attribute(Charged self, FloatsKey a0)
4488 remove_attribute(Charged self, IntsKey a0)
4489 remove_attribute(Charged self, StringKey a0)
4490 remove_attribute(Charged self, ParticleIndexKey a0)
4491 remove_attribute(Charged self, ObjectKey a0)
4492 remove_attribute(Charged self, SparseFloatKey a0)
4493 remove_attribute(Charged self, SparseIntKey a0)
4494 remove_attribute(Charged self, SparseStringKey a0)
4495 remove_attribute(Charged self, SparseParticleIndexKey a0)
4497 return _IMP_atom.Charged_remove_attribute(self, *args)
4499 def has_attribute(self, *args):
4501 has_attribute(Charged self, FloatKey a0) -> bool
4502 has_attribute(Charged self, IntKey a0) -> bool
4503 has_attribute(Charged self, FloatsKey a0) -> bool
4504 has_attribute(Charged self, IntsKey a0) -> bool
4505 has_attribute(Charged self, StringKey a0) -> bool
4506 has_attribute(Charged self, ParticleIndexKey a0) -> bool
4507 has_attribute(Charged self, ObjectKey a0) -> bool
4508 has_attribute(Charged self, SparseFloatKey a0) -> bool
4509 has_attribute(Charged self, SparseIntKey a0) -> bool
4510 has_attribute(Charged self, SparseStringKey a0) -> bool
4511 has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4513 return _IMP_atom.Charged_has_attribute(self, *args)
4515 def get_derivative(self, a0):
4516 r"""get_derivative(Charged self, FloatKey a0) -> double"""
4517 return _IMP_atom.Charged_get_derivative(self, a0)
4520 r"""get_name(Charged self) -> std::string"""
4521 return _IMP_atom.Charged_get_name(self)
4523 def clear_caches(self):
4524 r"""clear_caches(Charged self)"""
4525 return _IMP_atom.Charged_clear_caches(self)
4527 def set_name(self, a0):
4528 r"""set_name(Charged self, std::string a0)"""
4529 return _IMP_atom.Charged_set_name(self, a0)
4532 r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4533 return _IMP_atom.Charged_set_check_level(self, a0)
4535 def add_to_derivative(self, a0, a1, a2):
4536 r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4537 return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4539 def set_is_optimized(self, a0, a1):
4540 r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4541 return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4543 def get_is_optimized(self, a0):
4544 r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4545 return _IMP_atom.Charged_get_is_optimized(self, a0)
4548 r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4549 return _IMP_atom.Charged_get_check_level(self)
4551 def __eq__(self, *args):
4553 __eq__(Charged self, Charged o) -> bool
4554 __eq__(Charged self, Particle d) -> bool
4556 return _IMP_atom.Charged___eq__(self, *args)
4558 def __ne__(self, *args):
4560 __ne__(Charged self, Charged o) -> bool
4561 __ne__(Charged self, Particle d) -> bool
4563 return _IMP_atom.Charged___ne__(self, *args)
4565 def __le__(self, *args):
4567 __le__(Charged self, Charged o) -> bool
4568 __le__(Charged self, Particle d) -> bool
4570 return _IMP_atom.Charged___le__(self, *args)
4572 def __lt__(self, *args):
4574 __lt__(Charged self, Charged o) -> bool
4575 __lt__(Charged self, Particle d) -> bool
4577 return _IMP_atom.Charged___lt__(self, *args)
4579 def __ge__(self, *args):
4581 __ge__(Charged self, Charged o) -> bool
4582 __ge__(Charged self, Particle d) -> bool
4584 return _IMP_atom.Charged___ge__(self, *args)
4586 def __gt__(self, *args):
4588 __gt__(Charged self, Charged o) -> bool
4589 __gt__(Charged self, Particle d) -> bool
4591 return _IMP_atom.Charged___gt__(self, *args)
4594 r"""__hash__(Charged self) -> std::size_t"""
4595 return _IMP_atom.Charged___hash__(self)
4598 r"""__str__(Charged self) -> std::string"""
4599 return _IMP_atom.Charged___str__(self)
4602 r"""__repr__(Charged self) -> std::string"""
4603 return _IMP_atom.Charged___repr__(self)
4605 def _get_as_binary(self):
4606 r"""_get_as_binary(Charged self) -> PyObject *"""
4607 return _IMP_atom.Charged__get_as_binary(self)
4609 def _set_from_binary(self, p):
4610 r"""_set_from_binary(Charged self, PyObject * p)"""
4611 return _IMP_atom.Charged__set_from_binary(self, p)
4613 def __getstate__(self):
4614 p = self._get_as_binary()
4615 if len(self.__dict__) > 1:
4616 d = self.__dict__.copy()
4621 def __setstate__(self, p):
4622 if not hasattr(self,
'this'):
4624 if isinstance(p, tuple):
4626 self.__dict__.update(d)
4627 return self._set_from_binary(p)
4629 __swig_destroy__ = _IMP_atom.delete_Charged
4632 _IMP_atom.Charged_swigregister(Charged)
4634 r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4636 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4638 def __init__(self, f):
4639 r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4640 _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4642 def set_relative_dielectric(self, relative_dielectric):
4643 r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4644 return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4646 def get_relative_dielectric(self):
4647 r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4648 return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4650 def do_get_inputs(self, m, pis):
4651 r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4652 return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4654 def get_version_info(self):
4655 r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4656 return _IMP_atom.CoulombPairScore_get_version_info(self)
4657 __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4660 r"""__str__(CoulombPairScore self) -> std::string"""
4661 return _IMP_atom.CoulombPairScore___str__(self)
4664 r"""__repr__(CoulombPairScore self) -> std::string"""
4665 return _IMP_atom.CoulombPairScore___repr__(self)
4669 return _object_cast_to_CoulombPairScore(o)
4673 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4674 class Domain(Hierarchy):
4675 r"""Proxy of C++ IMP::atom::Domain class."""
4677 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4679 def set_index_range(self, ir):
4680 r"""set_index_range(Domain self, IMP::IntRange ir)"""
4681 return _IMP_atom.Domain_set_index_range(self, ir)
4683 def get_index_range(self):
4684 r"""get_index_range(Domain self) -> IMP::IntRange"""
4685 return _IMP_atom.Domain_get_index_range(self)
4687 def __init__(self, *args):
4689 __init__(Domain self) -> Domain
4690 __init__(Domain self, Model m, ParticleIndex id) -> Domain
4691 __init__(Domain self, _ParticleAdaptor d) -> Domain
4693 _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4696 def get_is_setup(*args):
4698 get_is_setup(Model m, ParticleIndex pi) -> bool
4699 get_is_setup(_ParticleAdaptor p) -> bool
4701 return _IMP_atom.Domain_get_is_setup(*args)
4703 def show(self, *args):
4704 r"""show(Domain self, _ostream out=std::cout)"""
4705 return _IMP_atom.Domain_show(self, *args)
4708 def setup_particle(*args):
4710 setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4711 setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4712 setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4713 setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4715 return _IMP_atom.Domain_setup_particle(*args)
4717 def add_attribute(self, *args):
4719 add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4720 add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4721 add_attribute(Domain self, IntKey a0, IMP::Int a1)
4722 add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4723 add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4724 add_attribute(Domain self, StringKey a0, IMP::String a1)
4725 add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4726 add_attribute(Domain self, ObjectKey a0, Object a1)
4727 add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4728 add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4729 add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4730 add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4732 return _IMP_atom.Domain_add_attribute(self, *args)
4734 def get_value(self, *args):
4736 get_value(Domain self, FloatKey a0) -> IMP::Float
4737 get_value(Domain self, IntKey a0) -> IMP::Int
4738 get_value(Domain self, FloatsKey a0) -> IMP::Floats
4739 get_value(Domain self, IntsKey a0) -> IMP::Ints
4740 get_value(Domain self, StringKey a0) -> IMP::String
4741 get_value(Domain self, ParticleIndexKey a0) -> Particle
4742 get_value(Domain self, ObjectKey a0) -> Object
4743 get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4744 get_value(Domain self, SparseIntKey a0) -> IMP::Int
4745 get_value(Domain self, SparseStringKey a0) -> IMP::String
4746 get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4748 return _IMP_atom.Domain_get_value(self, *args)
4750 def set_value(self, *args):
4752 set_value(Domain self, FloatKey a0, IMP::Float a1)
4753 set_value(Domain self, IntKey a0, IMP::Int a1)
4754 set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4755 set_value(Domain self, IntsKey a0, IMP::Ints a1)
4756 set_value(Domain self, StringKey a0, IMP::String a1)
4757 set_value(Domain self, ParticleIndexKey a0, Particle a1)
4758 set_value(Domain self, ObjectKey a0, Object a1)
4759 set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4760 set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4761 set_value(Domain self, SparseStringKey a0, IMP::String a1)
4762 set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4764 return _IMP_atom.Domain_set_value(self, *args)
4766 def remove_attribute(self, *args):
4768 remove_attribute(Domain self, FloatKey a0)
4769 remove_attribute(Domain self, IntKey a0)
4770 remove_attribute(Domain self, FloatsKey a0)
4771 remove_attribute(Domain self, IntsKey a0)
4772 remove_attribute(Domain self, StringKey a0)
4773 remove_attribute(Domain self, ParticleIndexKey a0)
4774 remove_attribute(Domain self, ObjectKey a0)
4775 remove_attribute(Domain self, SparseFloatKey a0)
4776 remove_attribute(Domain self, SparseIntKey a0)
4777 remove_attribute(Domain self, SparseStringKey a0)
4778 remove_attribute(Domain self, SparseParticleIndexKey a0)
4780 return _IMP_atom.Domain_remove_attribute(self, *args)
4782 def has_attribute(self, *args):
4784 has_attribute(Domain self, FloatKey a0) -> bool
4785 has_attribute(Domain self, IntKey a0) -> bool
4786 has_attribute(Domain self, FloatsKey a0) -> bool
4787 has_attribute(Domain self, IntsKey a0) -> bool
4788 has_attribute(Domain self, StringKey a0) -> bool
4789 has_attribute(Domain self, ParticleIndexKey a0) -> bool
4790 has_attribute(Domain self, ObjectKey a0) -> bool
4791 has_attribute(Domain self, SparseFloatKey a0) -> bool
4792 has_attribute(Domain self, SparseIntKey a0) -> bool
4793 has_attribute(Domain self, SparseStringKey a0) -> bool
4794 has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
4796 return _IMP_atom.Domain_has_attribute(self, *args)
4798 def get_derivative(self, a0):
4799 r"""get_derivative(Domain self, FloatKey a0) -> double"""
4800 return _IMP_atom.Domain_get_derivative(self, a0)
4803 r"""get_name(Domain self) -> std::string"""
4804 return _IMP_atom.Domain_get_name(self)
4806 def clear_caches(self):
4807 r"""clear_caches(Domain self)"""
4808 return _IMP_atom.Domain_clear_caches(self)
4810 def set_name(self, a0):
4811 r"""set_name(Domain self, std::string a0)"""
4812 return _IMP_atom.Domain_set_name(self, a0)
4815 r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
4816 return _IMP_atom.Domain_set_check_level(self, a0)
4818 def add_to_derivative(self, a0, a1, a2):
4819 r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4820 return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
4822 def set_is_optimized(self, a0, a1):
4823 r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
4824 return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
4826 def get_is_optimized(self, a0):
4827 r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
4828 return _IMP_atom.Domain_get_is_optimized(self, a0)
4831 r"""get_check_level(Domain self) -> IMP::CheckLevel"""
4832 return _IMP_atom.Domain_get_check_level(self)
4834 def __eq__(self, *args):
4836 __eq__(Domain self, Domain o) -> bool
4837 __eq__(Domain self, Particle d) -> bool
4839 return _IMP_atom.Domain___eq__(self, *args)
4841 def __ne__(self, *args):
4843 __ne__(Domain self, Domain o) -> bool
4844 __ne__(Domain self, Particle d) -> bool
4846 return _IMP_atom.Domain___ne__(self, *args)
4848 def __le__(self, *args):
4850 __le__(Domain self, Domain o) -> bool
4851 __le__(Domain self, Particle d) -> bool
4853 return _IMP_atom.Domain___le__(self, *args)
4855 def __lt__(self, *args):
4857 __lt__(Domain self, Domain o) -> bool
4858 __lt__(Domain self, Particle d) -> bool
4860 return _IMP_atom.Domain___lt__(self, *args)
4862 def __ge__(self, *args):
4864 __ge__(Domain self, Domain o) -> bool
4865 __ge__(Domain self, Particle d) -> bool
4867 return _IMP_atom.Domain___ge__(self, *args)
4869 def __gt__(self, *args):
4871 __gt__(Domain self, Domain o) -> bool
4872 __gt__(Domain self, Particle d) -> bool
4874 return _IMP_atom.Domain___gt__(self, *args)
4877 r"""__hash__(Domain self) -> std::size_t"""
4878 return _IMP_atom.Domain___hash__(self)
4881 r"""__str__(Domain self) -> std::string"""
4882 return _IMP_atom.Domain___str__(self)
4885 r"""__repr__(Domain self) -> std::string"""
4886 return _IMP_atom.Domain___repr__(self)
4888 def _get_as_binary(self):
4889 r"""_get_as_binary(Domain self) -> PyObject *"""
4890 return _IMP_atom.Domain__get_as_binary(self)
4892 def _set_from_binary(self, p):
4893 r"""_set_from_binary(Domain self, PyObject * p)"""
4894 return _IMP_atom.Domain__set_from_binary(self, p)
4896 def __getstate__(self):
4897 p = self._get_as_binary()
4898 if len(self.__dict__) > 1:
4899 d = self.__dict__.copy()
4904 def __setstate__(self, p):
4905 if not hasattr(self,
'this'):
4907 if isinstance(p, tuple):
4909 self.__dict__.update(d)
4910 return self._set_from_binary(p)
4912 __swig_destroy__ = _IMP_atom.delete_Domain
4915 _IMP_atom.Domain_swigregister(Domain)
4917 r"""Proxy of C++ IMP::atom::LennardJones class."""
4919 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4921 def __init__(self, *args):
4923 __init__(LennardJones self) -> LennardJones
4924 __init__(LennardJones self, Model m, ParticleIndex id) -> LennardJones
4925 __init__(LennardJones self, _ParticleAdaptor d) -> LennardJones
4927 _IMP_atom.LennardJones_swiginit(self, _IMP_atom.new_LennardJones(*args))
4929 def show(self, *args):
4930 r"""show(LennardJones self, _ostream out=std::cout)"""
4931 return _IMP_atom.LennardJones_show(self, *args)
4934 def setup_particle(*args):
4936 setup_particle(Model m, ParticleIndex pi) -> LennardJones
4937 setup_particle(_ParticleAdaptor pa) -> LennardJones
4938 setup_particle(Model m, ParticleIndex pi, IMP::Float well_depth) -> LennardJones
4939 setup_particle(_ParticleAdaptor pa, IMP::Float well_depth) -> LennardJones
4941 return _IMP_atom.LennardJones_setup_particle(*args)
4943 def get_well_depth(self):
4944 r"""get_well_depth(LennardJones self) -> IMP::Float"""
4945 return _IMP_atom.LennardJones_get_well_depth(self)
4947 def set_well_depth(self, well_depth):
4948 r"""set_well_depth(LennardJones self, IMP::Float well_depth)"""
4949 return _IMP_atom.LennardJones_set_well_depth(self, well_depth)
4952 def get_is_setup(*args):
4954 get_is_setup(_ParticleAdaptor p) -> bool
4955 get_is_setup(Model m, ParticleIndex pi) -> bool
4957 return _IMP_atom.LennardJones_get_is_setup(*args)
4960 def get_well_depth_key():
4961 r"""get_well_depth_key() -> FloatKey"""
4962 return _IMP_atom.LennardJones_get_well_depth_key()
4964 def add_attribute(self, *args):
4966 add_attribute(LennardJones self, FloatKey k, IMP::Float v, bool opt)
4967 add_attribute(LennardJones self, FloatKey a0, IMP::Float a1)
4968 add_attribute(LennardJones self, IntKey a0, IMP::Int a1)
4969 add_attribute(LennardJones self, FloatsKey a0, IMP::Floats a1)
4970 add_attribute(LennardJones self, IntsKey a0, IMP::Ints a1)
4971 add_attribute(LennardJones self, StringKey a0, IMP::String a1)
4972 add_attribute(LennardJones self, ParticleIndexKey a0, Particle a1)
4973 add_attribute(LennardJones self, ObjectKey a0, Object a1)
4974 add_attribute(LennardJones self, SparseFloatKey a0, IMP::Float a1)
4975 add_attribute(LennardJones self, SparseIntKey a0, IMP::Int a1)
4976 add_attribute(LennardJones self, SparseStringKey a0, IMP::String a1)
4977 add_attribute(LennardJones self, SparseParticleIndexKey a0, ParticleIndex a1)
4979 return _IMP_atom.LennardJones_add_attribute(self, *args)
4981 def get_value(self, *args):
4983 get_value(LennardJones self, FloatKey a0) -> IMP::Float
4984 get_value(LennardJones self, IntKey a0) -> IMP::Int
4985 get_value(LennardJones self, FloatsKey a0) -> IMP::Floats
4986 get_value(LennardJones self, IntsKey a0) -> IMP::Ints
4987 get_value(LennardJones self, StringKey a0) -> IMP::String
4988 get_value(LennardJones self, ParticleIndexKey a0) -> Particle
4989 get_value(LennardJones self, ObjectKey a0) -> Object
4990 get_value(LennardJones self, SparseFloatKey a0) -> IMP::Float
4991 get_value(LennardJones self, SparseIntKey a0) -> IMP::Int
4992 get_value(LennardJones self, SparseStringKey a0) -> IMP::String
4993 get_value(LennardJones self, SparseParticleIndexKey a0) -> ParticleIndex
4995 return _IMP_atom.LennardJones_get_value(self, *args)
4997 def set_value(self, *args):
4999 set_value(LennardJones self, FloatKey a0, IMP::Float a1)
5000 set_value(LennardJones self, IntKey a0, IMP::Int a1)
5001 set_value(LennardJones self, FloatsKey a0, IMP::Floats a1)
5002 set_value(LennardJones self, IntsKey a0, IMP::Ints a1)
5003 set_value(LennardJones self, StringKey a0, IMP::String a1)
5004 set_value(LennardJones self, ParticleIndexKey a0, Particle a1)
5005 set_value(LennardJones self, ObjectKey a0, Object a1)
5006 set_value(LennardJones self, SparseFloatKey a0, IMP::Float a1)
5007 set_value(LennardJones self, SparseIntKey a0, IMP::Int a1)
5008 set_value(LennardJones self, SparseStringKey a0, IMP::String a1)
5009 set_value(LennardJones self, SparseParticleIndexKey a0, ParticleIndex a1)
5011 return _IMP_atom.LennardJones_set_value(self, *args)
5013 def remove_attribute(self, *args):
5015 remove_attribute(LennardJones self, FloatKey a0)
5016 remove_attribute(LennardJones self, IntKey a0)
5017 remove_attribute(LennardJones self, FloatsKey a0)
5018 remove_attribute(LennardJones self, IntsKey a0)
5019 remove_attribute(LennardJones self, StringKey a0)
5020 remove_attribute(LennardJones self, ParticleIndexKey a0)
5021 remove_attribute(LennardJones self, ObjectKey a0)
5022 remove_attribute(LennardJones self, SparseFloatKey a0)
5023 remove_attribute(LennardJones self, SparseIntKey a0)
5024 remove_attribute(LennardJones self, SparseStringKey a0)
5025 remove_attribute(LennardJones self, SparseParticleIndexKey a0)
5027 return _IMP_atom.LennardJones_remove_attribute(self, *args)
5029 def has_attribute(self, *args):
5031 has_attribute(LennardJones self, FloatKey a0) -> bool
5032 has_attribute(LennardJones self, IntKey a0) -> bool
5033 has_attribute(LennardJones self, FloatsKey a0) -> bool
5034 has_attribute(LennardJones self, IntsKey a0) -> bool
5035 has_attribute(LennardJones self, StringKey a0) -> bool
5036 has_attribute(LennardJones self, ParticleIndexKey a0) -> bool
5037 has_attribute(LennardJones self, ObjectKey a0) -> bool
5038 has_attribute(LennardJones self, SparseFloatKey a0) -> bool
5039 has_attribute(LennardJones self, SparseIntKey a0) -> bool
5040 has_attribute(LennardJones self, SparseStringKey a0) -> bool
5041 has_attribute(LennardJones self, SparseParticleIndexKey a0) -> bool
5043 return _IMP_atom.LennardJones_has_attribute(self, *args)
5045 def get_derivative(self, a0):
5046 r"""get_derivative(LennardJones self, FloatKey a0) -> double"""
5047 return _IMP_atom.LennardJones_get_derivative(self, a0)
5050 r"""get_name(LennardJones self) -> std::string"""
5051 return _IMP_atom.LennardJones_get_name(self)
5053 def clear_caches(self):
5054 r"""clear_caches(LennardJones self)"""
5055 return _IMP_atom.LennardJones_clear_caches(self)
5057 def set_name(self, a0):
5058 r"""set_name(LennardJones self, std::string a0)"""
5059 return _IMP_atom.LennardJones_set_name(self, a0)
5062 r"""set_check_level(LennardJones self, IMP::CheckLevel a0)"""
5063 return _IMP_atom.LennardJones_set_check_level(self, a0)
5065 def add_to_derivative(self, a0, a1, a2):
5066 r"""add_to_derivative(LennardJones self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5067 return _IMP_atom.LennardJones_add_to_derivative(self, a0, a1, a2)
5069 def set_is_optimized(self, a0, a1):
5070 r"""set_is_optimized(LennardJones self, FloatKey a0, bool a1)"""
5071 return _IMP_atom.LennardJones_set_is_optimized(self, a0, a1)
5073 def get_is_optimized(self, a0):
5074 r"""get_is_optimized(LennardJones self, FloatKey a0) -> bool"""
5075 return _IMP_atom.LennardJones_get_is_optimized(self, a0)
5078 r"""get_check_level(LennardJones self) -> IMP::CheckLevel"""
5079 return _IMP_atom.LennardJones_get_check_level(self)
5081 def __eq__(self, *args):
5083 __eq__(LennardJones self, LennardJones o) -> bool
5084 __eq__(LennardJones self, Particle d) -> bool
5086 return _IMP_atom.LennardJones___eq__(self, *args)
5088 def __ne__(self, *args):
5090 __ne__(LennardJones self, LennardJones o) -> bool
5091 __ne__(LennardJones self, Particle d) -> bool
5093 return _IMP_atom.LennardJones___ne__(self, *args)
5095 def __le__(self, *args):
5097 __le__(LennardJones self, LennardJones o) -> bool
5098 __le__(LennardJones self, Particle d) -> bool
5100 return _IMP_atom.LennardJones___le__(self, *args)
5102 def __lt__(self, *args):
5104 __lt__(LennardJones self, LennardJones o) -> bool
5105 __lt__(LennardJones self, Particle d) -> bool
5107 return _IMP_atom.LennardJones___lt__(self, *args)
5109 def __ge__(self, *args):
5111 __ge__(LennardJones self, LennardJones o) -> bool
5112 __ge__(LennardJones self, Particle d) -> bool
5114 return _IMP_atom.LennardJones___ge__(self, *args)
5116 def __gt__(self, *args):
5118 __gt__(LennardJones self, LennardJones o) -> bool
5119 __gt__(LennardJones self, Particle d) -> bool
5121 return _IMP_atom.LennardJones___gt__(self, *args)
5124 r"""__hash__(LennardJones self) -> std::size_t"""
5125 return _IMP_atom.LennardJones___hash__(self)
5128 r"""__str__(LennardJones self) -> std::string"""
5129 return _IMP_atom.LennardJones___str__(self)
5132 r"""__repr__(LennardJones self) -> std::string"""
5133 return _IMP_atom.LennardJones___repr__(self)
5135 def _get_as_binary(self):
5136 r"""_get_as_binary(LennardJones self) -> PyObject *"""
5137 return _IMP_atom.LennardJones__get_as_binary(self)
5139 def _set_from_binary(self, p):
5140 r"""_set_from_binary(LennardJones self, PyObject * p)"""
5141 return _IMP_atom.LennardJones__set_from_binary(self, p)
5143 def __getstate__(self):
5144 p = self._get_as_binary()
5145 if len(self.__dict__) > 1:
5146 d = self.__dict__.copy()
5151 def __setstate__(self, p):
5152 if not hasattr(self,
'this'):
5154 if isinstance(p, tuple):
5156 self.__dict__.update(d)
5157 return self._set_from_binary(p)
5159 __swig_destroy__ = _IMP_atom.delete_LennardJones
5162 _IMP_atom.LennardJones_swigregister(LennardJones)
5164 r"""Proxy of C++ IMP::atom::LennardJonesPairScore class."""
5166 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5168 def __init__(self, f):
5169 r"""__init__(LennardJonesPairScore self, SmoothingFunction f) -> LennardJonesPairScore"""
5170 _IMP_atom.LennardJonesPairScore_swiginit(self, _IMP_atom.new_LennardJonesPairScore(f))
5172 def set_repulsive_weight(self, repulsive_weight):
5173 r"""set_repulsive_weight(LennardJonesPairScore self, double repulsive_weight)"""
5174 return _IMP_atom.LennardJonesPairScore_set_repulsive_weight(self, repulsive_weight)
5176 def get_repulsive_weight(self):
5177 r"""get_repulsive_weight(LennardJonesPairScore self) -> double"""
5178 return _IMP_atom.LennardJonesPairScore_get_repulsive_weight(self)
5180 def set_attractive_weight(self, attractive_weight):
5181 r"""set_attractive_weight(LennardJonesPairScore self, double attractive_weight)"""
5182 return _IMP_atom.LennardJonesPairScore_set_attractive_weight(self, attractive_weight)
5184 def get_attractive_weight(self):
5185 r"""get_attractive_weight(LennardJonesPairScore self) -> double"""
5186 return _IMP_atom.LennardJonesPairScore_get_attractive_weight(self)
5188 def do_get_inputs(self, m, pis):
5189 r"""do_get_inputs(LennardJonesPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5190 return _IMP_atom.LennardJonesPairScore_do_get_inputs(self, m, pis)
5192 def get_version_info(self):
5193 r"""get_version_info(LennardJonesPairScore self) -> VersionInfo"""
5194 return _IMP_atom.LennardJonesPairScore_get_version_info(self)
5195 __swig_destroy__ = _IMP_atom.delete_LennardJonesPairScore
5198 r"""__str__(LennardJonesPairScore self) -> std::string"""
5199 return _IMP_atom.LennardJonesPairScore___str__(self)
5202 r"""__repr__(LennardJonesPairScore self) -> std::string"""
5203 return _IMP_atom.LennardJonesPairScore___repr__(self)
5207 return _object_cast_to_LennardJonesPairScore(o)
5211 _IMP_atom.LennardJonesPairScore_swigregister(LennardJonesPairScore)
5213 r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5217 def __init__(self, *args):
5219 __init__(LinearVelocity self) -> LinearVelocity
5220 __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5221 __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5223 _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5226 def get_is_setup(*args):
5228 get_is_setup(Model m, ParticleIndex pi) -> bool
5229 get_is_setup(_ParticleAdaptor p) -> bool
5231 return _IMP_atom.LinearVelocity_get_is_setup(*args)
5233 def show(self, *args):
5234 r"""show(LinearVelocity self, _ostream out=std::cout)"""
5235 return _IMP_atom.LinearVelocity_show(self, *args)
5238 def setup_particle(*args):
5240 setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5241 setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5242 setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5243 setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5245 return _IMP_atom.LinearVelocity_setup_particle(*args)
5247 def set_velocity(self, v):
5248 r"""set_velocity(LinearVelocity self, Vector3D v)"""
5249 return _IMP_atom.LinearVelocity_set_velocity(self, v)
5251 def get_velocity(self):
5252 r"""get_velocity(LinearVelocity self) -> Vector3D"""
5253 return _IMP_atom.LinearVelocity_get_velocity(self)
5255 def add_attribute(self, *args):
5257 add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5258 add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5259 add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5260 add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5261 add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5262 add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5263 add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5264 add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5265 add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5266 add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5267 add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5268 add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5270 return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5272 def get_value(self, *args):
5274 get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5275 get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5276 get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5277 get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5278 get_value(LinearVelocity self, StringKey a0) -> IMP::String
5279 get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5280 get_value(LinearVelocity self, ObjectKey a0) -> Object
5281 get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5282 get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5283 get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5284 get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5286 return _IMP_atom.LinearVelocity_get_value(self, *args)
5288 def set_value(self, *args):
5290 set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5291 set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5292 set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5293 set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5294 set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5295 set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5296 set_value(LinearVelocity self, ObjectKey a0, Object a1)
5297 set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5298 set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5299 set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5300 set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5302 return _IMP_atom.LinearVelocity_set_value(self, *args)
5304 def remove_attribute(self, *args):
5306 remove_attribute(LinearVelocity self, FloatKey a0)
5307 remove_attribute(LinearVelocity self, IntKey a0)
5308 remove_attribute(LinearVelocity self, FloatsKey a0)
5309 remove_attribute(LinearVelocity self, IntsKey a0)
5310 remove_attribute(LinearVelocity self, StringKey a0)
5311 remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5312 remove_attribute(LinearVelocity self, ObjectKey a0)
5313 remove_attribute(LinearVelocity self, SparseFloatKey a0)
5314 remove_attribute(LinearVelocity self, SparseIntKey a0)
5315 remove_attribute(LinearVelocity self, SparseStringKey a0)
5316 remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5318 return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5320 def has_attribute(self, *args):
5322 has_attribute(LinearVelocity self, FloatKey a0) -> bool
5323 has_attribute(LinearVelocity self, IntKey a0) -> bool
5324 has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5325 has_attribute(LinearVelocity self, IntsKey a0) -> bool
5326 has_attribute(LinearVelocity self, StringKey a0) -> bool
5327 has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5328 has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5329 has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5330 has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5331 has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5332 has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5334 return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5336 def get_derivative(self, a0):
5337 r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5338 return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5341 r"""get_name(LinearVelocity self) -> std::string"""
5342 return _IMP_atom.LinearVelocity_get_name(self)
5344 def clear_caches(self):
5345 r"""clear_caches(LinearVelocity self)"""
5346 return _IMP_atom.LinearVelocity_clear_caches(self)
5348 def set_name(self, a0):
5349 r"""set_name(LinearVelocity self, std::string a0)"""
5350 return _IMP_atom.LinearVelocity_set_name(self, a0)
5353 r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5354 return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5356 def add_to_derivative(self, a0, a1, a2):
5357 r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5358 return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5360 def set_is_optimized(self, a0, a1):
5361 r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5362 return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5364 def get_is_optimized(self, a0):
5365 r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5366 return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5369 r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5370 return _IMP_atom.LinearVelocity_get_check_level(self)
5372 def __eq__(self, *args):
5374 __eq__(LinearVelocity self, LinearVelocity o) -> bool
5375 __eq__(LinearVelocity self, Particle d) -> bool
5377 return _IMP_atom.LinearVelocity___eq__(self, *args)
5379 def __ne__(self, *args):
5381 __ne__(LinearVelocity self, LinearVelocity o) -> bool
5382 __ne__(LinearVelocity self, Particle d) -> bool
5384 return _IMP_atom.LinearVelocity___ne__(self, *args)
5386 def __le__(self, *args):
5388 __le__(LinearVelocity self, LinearVelocity o) -> bool
5389 __le__(LinearVelocity self, Particle d) -> bool
5391 return _IMP_atom.LinearVelocity___le__(self, *args)
5393 def __lt__(self, *args):
5395 __lt__(LinearVelocity self, LinearVelocity o) -> bool
5396 __lt__(LinearVelocity self, Particle d) -> bool
5398 return _IMP_atom.LinearVelocity___lt__(self, *args)
5400 def __ge__(self, *args):
5402 __ge__(LinearVelocity self, LinearVelocity o) -> bool
5403 __ge__(LinearVelocity self, Particle d) -> bool
5405 return _IMP_atom.LinearVelocity___ge__(self, *args)
5407 def __gt__(self, *args):
5409 __gt__(LinearVelocity self, LinearVelocity o) -> bool
5410 __gt__(LinearVelocity self, Particle d) -> bool
5412 return _IMP_atom.LinearVelocity___gt__(self, *args)
5415 r"""__hash__(LinearVelocity self) -> std::size_t"""
5416 return _IMP_atom.LinearVelocity___hash__(self)
5419 r"""__str__(LinearVelocity self) -> std::string"""
5420 return _IMP_atom.LinearVelocity___str__(self)
5423 r"""__repr__(LinearVelocity self) -> std::string"""
5424 return _IMP_atom.LinearVelocity___repr__(self)
5426 def _get_as_binary(self):
5427 r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5428 return _IMP_atom.LinearVelocity__get_as_binary(self)
5430 def _set_from_binary(self, p):
5431 r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5432 return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5434 def __getstate__(self):
5435 p = self._get_as_binary()
5436 if len(self.__dict__) > 1:
5437 d = self.__dict__.copy()
5442 def __setstate__(self, p):
5443 if not hasattr(self,
'this'):
5445 if isinstance(p, tuple):
5447 self.__dict__.update(d)
5448 return self._set_from_binary(p)
5450 __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5453 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5455 r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5459 def __init__(self, *args):
5461 __init__(AngularVelocity self) -> AngularVelocity
5462 __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5463 __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5465 _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5468 def get_is_setup(*args):
5470 get_is_setup(Model m, ParticleIndex pi) -> bool
5471 get_is_setup(_ParticleAdaptor p) -> bool
5473 return _IMP_atom.AngularVelocity_get_is_setup(*args)
5475 def show(self, *args):
5476 r"""show(AngularVelocity self, _ostream out=std::cout)"""
5477 return _IMP_atom.AngularVelocity_show(self, *args)
5480 def setup_particle(*args):
5482 setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5483 setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5484 setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5485 setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5487 return _IMP_atom.AngularVelocity_setup_particle(*args)
5489 def set_velocity(self, v):
5490 r"""set_velocity(AngularVelocity self, Vector4D v)"""
5491 return _IMP_atom.AngularVelocity_set_velocity(self, v)
5493 def get_velocity(self):
5494 r"""get_velocity(AngularVelocity self) -> Vector4D"""
5495 return _IMP_atom.AngularVelocity_get_velocity(self)
5497 def add_attribute(self, *args):
5499 add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5500 add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5501 add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5502 add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5503 add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5504 add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5505 add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5506 add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5507 add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5508 add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5509 add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5510 add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5512 return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5514 def get_value(self, *args):
5516 get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5517 get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5518 get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5519 get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5520 get_value(AngularVelocity self, StringKey a0) -> IMP::String
5521 get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5522 get_value(AngularVelocity self, ObjectKey a0) -> Object
5523 get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5524 get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5525 get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5526 get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5528 return _IMP_atom.AngularVelocity_get_value(self, *args)
5530 def set_value(self, *args):
5532 set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5533 set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5534 set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5535 set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5536 set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5537 set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5538 set_value(AngularVelocity self, ObjectKey a0, Object a1)
5539 set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5540 set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5541 set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5542 set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5544 return _IMP_atom.AngularVelocity_set_value(self, *args)
5546 def remove_attribute(self, *args):
5548 remove_attribute(AngularVelocity self, FloatKey a0)
5549 remove_attribute(AngularVelocity self, IntKey a0)
5550 remove_attribute(AngularVelocity self, FloatsKey a0)
5551 remove_attribute(AngularVelocity self, IntsKey a0)
5552 remove_attribute(AngularVelocity self, StringKey a0)
5553 remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5554 remove_attribute(AngularVelocity self, ObjectKey a0)
5555 remove_attribute(AngularVelocity self, SparseFloatKey a0)
5556 remove_attribute(AngularVelocity self, SparseIntKey a0)
5557 remove_attribute(AngularVelocity self, SparseStringKey a0)
5558 remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5560 return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5562 def has_attribute(self, *args):
5564 has_attribute(AngularVelocity self, FloatKey a0) -> bool
5565 has_attribute(AngularVelocity self, IntKey a0) -> bool
5566 has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5567 has_attribute(AngularVelocity self, IntsKey a0) -> bool
5568 has_attribute(AngularVelocity self, StringKey a0) -> bool
5569 has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5570 has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5571 has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5572 has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5573 has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5574 has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5576 return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5578 def get_derivative(self, a0):
5579 r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5580 return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5583 r"""get_name(AngularVelocity self) -> std::string"""
5584 return _IMP_atom.AngularVelocity_get_name(self)
5586 def clear_caches(self):
5587 r"""clear_caches(AngularVelocity self)"""
5588 return _IMP_atom.AngularVelocity_clear_caches(self)
5590 def set_name(self, a0):
5591 r"""set_name(AngularVelocity self, std::string a0)"""
5592 return _IMP_atom.AngularVelocity_set_name(self, a0)
5595 r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5596 return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5598 def add_to_derivative(self, a0, a1, a2):
5599 r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5600 return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5602 def set_is_optimized(self, a0, a1):
5603 r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5604 return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5606 def get_is_optimized(self, a0):
5607 r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5608 return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5611 r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5612 return _IMP_atom.AngularVelocity_get_check_level(self)
5614 def __eq__(self, *args):
5616 __eq__(AngularVelocity self, AngularVelocity o) -> bool
5617 __eq__(AngularVelocity self, Particle d) -> bool
5619 return _IMP_atom.AngularVelocity___eq__(self, *args)
5621 def __ne__(self, *args):
5623 __ne__(AngularVelocity self, AngularVelocity o) -> bool
5624 __ne__(AngularVelocity self, Particle d) -> bool
5626 return _IMP_atom.AngularVelocity___ne__(self, *args)
5628 def __le__(self, *args):
5630 __le__(AngularVelocity self, AngularVelocity o) -> bool
5631 __le__(AngularVelocity self, Particle d) -> bool
5633 return _IMP_atom.AngularVelocity___le__(self, *args)
5635 def __lt__(self, *args):
5637 __lt__(AngularVelocity self, AngularVelocity o) -> bool
5638 __lt__(AngularVelocity self, Particle d) -> bool
5640 return _IMP_atom.AngularVelocity___lt__(self, *args)
5642 def __ge__(self, *args):
5644 __ge__(AngularVelocity self, AngularVelocity o) -> bool
5645 __ge__(AngularVelocity self, Particle d) -> bool
5647 return _IMP_atom.AngularVelocity___ge__(self, *args)
5649 def __gt__(self, *args):
5651 __gt__(AngularVelocity self, AngularVelocity o) -> bool
5652 __gt__(AngularVelocity self, Particle d) -> bool
5654 return _IMP_atom.AngularVelocity___gt__(self, *args)
5657 r"""__hash__(AngularVelocity self) -> std::size_t"""
5658 return _IMP_atom.AngularVelocity___hash__(self)
5661 r"""__str__(AngularVelocity self) -> std::string"""
5662 return _IMP_atom.AngularVelocity___str__(self)
5665 r"""__repr__(AngularVelocity self) -> std::string"""
5666 return _IMP_atom.AngularVelocity___repr__(self)
5668 def _get_as_binary(self):
5669 r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5670 return _IMP_atom.AngularVelocity__get_as_binary(self)
5672 def _set_from_binary(self, p):
5673 r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5674 return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5676 def __getstate__(self):
5677 p = self._get_as_binary()
5678 if len(self.__dict__) > 1:
5679 d = self.__dict__.copy()
5684 def __setstate__(self, p):
5685 if not hasattr(self,
'this'):
5687 if isinstance(p, tuple):
5689 self.__dict__.update(d)
5690 return self._set_from_binary(p)
5692 __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5695 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5696 class MolecularDynamics(Simulator):
5697 r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5699 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5701 def __init__(self, m):
5702 r"""__init__(MolecularDynamics self, Model m) -> MolecularDynamics"""
5703 _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(m))
5705 def get_kinetic_energy(self):
5706 r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5707 return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5709 def get_kinetic_temperature(self, ekinetic):
5710 r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5711 return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5713 def set_velocity_cap(self, velocity_cap):
5714 r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5715 return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5717 def assign_velocities(self, temperature):
5718 r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5719 return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5721 def setup(self, ps):
5722 r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5723 return _IMP_atom.MolecularDynamics_setup(self, ps)
5725 def do_step(self, sc, dt):
5726 r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5727 return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5729 def get_is_simulation_particle(self, p):
5730 r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5731 return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5733 def get_version_info(self):
5734 r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5735 return _IMP_atom.MolecularDynamics_get_version_info(self)
5736 __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5739 r"""__str__(MolecularDynamics self) -> std::string"""
5740 return _IMP_atom.MolecularDynamics___str__(self)
5743 r"""__repr__(MolecularDynamics self) -> std::string"""
5744 return _IMP_atom.MolecularDynamics___repr__(self)
5748 return _object_cast_to_MolecularDynamics(o)
5752 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
5754 r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
5756 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5758 def __init__(self, m, pis, temperature):
5759 r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
5760 _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
5762 def set_particles(self, pis):
5763 r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
5764 return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
5766 def set_temperature(self, temperature):
5767 r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
5768 return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
5770 def rescale_velocities(self):
5771 r"""rescale_velocities(VelocityScalingOptimizerState self)"""
5772 return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
5774 def get_version_info(self):
5775 r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
5776 return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
5777 __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
5780 r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
5781 return _IMP_atom.VelocityScalingOptimizerState___str__(self)
5784 r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
5785 return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
5789 return _object_cast_to_VelocityScalingOptimizerState(o)
5793 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
5794 class Fragment(Hierarchy):
5795 r"""Proxy of C++ IMP::atom::Fragment class."""
5797 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5799 def set_residue_indexes(self, o):
5800 r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
5801 return _IMP_atom.Fragment_set_residue_indexes(self, o)
5803 def get_residue_indexes(self):
5804 r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
5805 return _IMP_atom.Fragment_get_residue_indexes(self)
5807 def get_contains_residue(self, rindex):
5808 r"""get_contains_residue(Fragment self, int rindex) -> bool"""
5809 return _IMP_atom.Fragment_get_contains_residue(self, rindex)
5811 def get_contains_any_sorted_residue(self, rinds):
5812 r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
5813 return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
5815 def __init__(self, *args):
5817 __init__(Fragment self) -> Fragment
5818 __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
5819 __init__(Fragment self, _ParticleAdaptor d) -> Fragment
5821 _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
5824 def get_is_setup(*args):
5826 get_is_setup(Model m, ParticleIndex pi) -> bool
5827 get_is_setup(_ParticleAdaptor p) -> bool
5829 return _IMP_atom.Fragment_get_is_setup(*args)
5831 def show(self, *args):
5832 r"""show(Fragment self, _ostream out=std::cout)"""
5833 return _IMP_atom.Fragment_show(self, *args)
5836 def setup_particle(*args):
5838 setup_particle(Model m, ParticleIndex pi) -> Fragment
5839 setup_particle(_ParticleAdaptor pa) -> Fragment
5840 setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
5841 setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
5842 setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
5843 setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
5845 return _IMP_atom.Fragment_setup_particle(*args)
5847 def add_attribute(self, *args):
5849 add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
5850 add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
5851 add_attribute(Fragment self, IntKey a0, IMP::Int a1)
5852 add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
5853 add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
5854 add_attribute(Fragment self, StringKey a0, IMP::String a1)
5855 add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
5856 add_attribute(Fragment self, ObjectKey a0, Object a1)
5857 add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
5858 add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
5859 add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
5860 add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5862 return _IMP_atom.Fragment_add_attribute(self, *args)
5864 def get_value(self, *args):
5866 get_value(Fragment self, FloatKey a0) -> IMP::Float
5867 get_value(Fragment self, IntKey a0) -> IMP::Int
5868 get_value(Fragment self, FloatsKey a0) -> IMP::Floats
5869 get_value(Fragment self, IntsKey a0) -> IMP::Ints
5870 get_value(Fragment self, StringKey a0) -> IMP::String
5871 get_value(Fragment self, ParticleIndexKey a0) -> Particle
5872 get_value(Fragment self, ObjectKey a0) -> Object
5873 get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
5874 get_value(Fragment self, SparseIntKey a0) -> IMP::Int
5875 get_value(Fragment self, SparseStringKey a0) -> IMP::String
5876 get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
5878 return _IMP_atom.Fragment_get_value(self, *args)
5880 def set_value(self, *args):
5882 set_value(Fragment self, FloatKey a0, IMP::Float a1)
5883 set_value(Fragment self, IntKey a0, IMP::Int a1)
5884 set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
5885 set_value(Fragment self, IntsKey a0, IMP::Ints a1)
5886 set_value(Fragment self, StringKey a0, IMP::String a1)
5887 set_value(Fragment self, ParticleIndexKey a0, Particle a1)
5888 set_value(Fragment self, ObjectKey a0, Object a1)
5889 set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
5890 set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
5891 set_value(Fragment self, SparseStringKey a0, IMP::String a1)
5892 set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5894 return _IMP_atom.Fragment_set_value(self, *args)
5896 def remove_attribute(self, *args):
5898 remove_attribute(Fragment self, FloatKey a0)
5899 remove_attribute(Fragment self, IntKey a0)
5900 remove_attribute(Fragment self, FloatsKey a0)
5901 remove_attribute(Fragment self, IntsKey a0)
5902 remove_attribute(Fragment self, StringKey a0)
5903 remove_attribute(Fragment self, ParticleIndexKey a0)
5904 remove_attribute(Fragment self, ObjectKey a0)
5905 remove_attribute(Fragment self, SparseFloatKey a0)
5906 remove_attribute(Fragment self, SparseIntKey a0)
5907 remove_attribute(Fragment self, SparseStringKey a0)
5908 remove_attribute(Fragment self, SparseParticleIndexKey a0)
5910 return _IMP_atom.Fragment_remove_attribute(self, *args)
5912 def has_attribute(self, *args):
5914 has_attribute(Fragment self, FloatKey a0) -> bool
5915 has_attribute(Fragment self, IntKey a0) -> bool
5916 has_attribute(Fragment self, FloatsKey a0) -> bool
5917 has_attribute(Fragment self, IntsKey a0) -> bool
5918 has_attribute(Fragment self, StringKey a0) -> bool
5919 has_attribute(Fragment self, ParticleIndexKey a0) -> bool
5920 has_attribute(Fragment self, ObjectKey a0) -> bool
5921 has_attribute(Fragment self, SparseFloatKey a0) -> bool
5922 has_attribute(Fragment self, SparseIntKey a0) -> bool
5923 has_attribute(Fragment self, SparseStringKey a0) -> bool
5924 has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
5926 return _IMP_atom.Fragment_has_attribute(self, *args)
5928 def get_derivative(self, a0):
5929 r"""get_derivative(Fragment self, FloatKey a0) -> double"""
5930 return _IMP_atom.Fragment_get_derivative(self, a0)
5933 r"""get_name(Fragment self) -> std::string"""
5934 return _IMP_atom.Fragment_get_name(self)
5936 def clear_caches(self):
5937 r"""clear_caches(Fragment self)"""
5938 return _IMP_atom.Fragment_clear_caches(self)
5940 def set_name(self, a0):
5941 r"""set_name(Fragment self, std::string a0)"""
5942 return _IMP_atom.Fragment_set_name(self, a0)
5945 r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
5946 return _IMP_atom.Fragment_set_check_level(self, a0)
5948 def add_to_derivative(self, a0, a1, a2):
5949 r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5950 return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
5952 def set_is_optimized(self, a0, a1):
5953 r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
5954 return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
5956 def get_is_optimized(self, a0):
5957 r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
5958 return _IMP_atom.Fragment_get_is_optimized(self, a0)
5961 r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
5962 return _IMP_atom.Fragment_get_check_level(self)
5964 def __eq__(self, *args):
5966 __eq__(Fragment self, Fragment o) -> bool
5967 __eq__(Fragment self, Particle d) -> bool
5969 return _IMP_atom.Fragment___eq__(self, *args)
5971 def __ne__(self, *args):
5973 __ne__(Fragment self, Fragment o) -> bool
5974 __ne__(Fragment self, Particle d) -> bool
5976 return _IMP_atom.Fragment___ne__(self, *args)
5978 def __le__(self, *args):
5980 __le__(Fragment self, Fragment o) -> bool
5981 __le__(Fragment self, Particle d) -> bool
5983 return _IMP_atom.Fragment___le__(self, *args)
5985 def __lt__(self, *args):
5987 __lt__(Fragment self, Fragment o) -> bool
5988 __lt__(Fragment self, Particle d) -> bool
5990 return _IMP_atom.Fragment___lt__(self, *args)
5992 def __ge__(self, *args):
5994 __ge__(Fragment self, Fragment o) -> bool
5995 __ge__(Fragment self, Particle d) -> bool
5997 return _IMP_atom.Fragment___ge__(self, *args)
5999 def __gt__(self, *args):
6001 __gt__(Fragment self, Fragment o) -> bool
6002 __gt__(Fragment self, Particle d) -> bool
6004 return _IMP_atom.Fragment___gt__(self, *args)
6007 r"""__hash__(Fragment self) -> std::size_t"""
6008 return _IMP_atom.Fragment___hash__(self)
6011 r"""__str__(Fragment self) -> std::string"""
6012 return _IMP_atom.Fragment___str__(self)
6015 r"""__repr__(Fragment self) -> std::string"""
6016 return _IMP_atom.Fragment___repr__(self)
6018 def _get_as_binary(self):
6019 r"""_get_as_binary(Fragment self) -> PyObject *"""
6020 return _IMP_atom.Fragment__get_as_binary(self)
6022 def _set_from_binary(self, p):
6023 r"""_set_from_binary(Fragment self, PyObject * p)"""
6024 return _IMP_atom.Fragment__set_from_binary(self, p)
6026 def __getstate__(self):
6027 p = self._get_as_binary()
6028 if len(self.__dict__) > 1:
6029 d = self.__dict__.copy()
6034 def __setstate__(self, p):
6035 if not hasattr(self,
'this'):
6037 if isinstance(p, tuple):
6039 self.__dict__.update(d)
6040 return self._set_from_binary(p)
6042 __swig_destroy__ = _IMP_atom.delete_Fragment
6045 _IMP_atom.Fragment_swigregister(Fragment)
6047 r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6049 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6052 r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6053 _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6055 def set_bonds(self, bonds):
6056 r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6057 return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6059 def set_angles(self, angles):
6060 r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6061 return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6063 def set_dihedrals(self, dihedrals):
6064 r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6065 return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6067 def do_get_inputs(self, m, pis):
6068 r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6069 return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6071 def get_value(self, *args):
6073 get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6074 get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6076 return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6078 def get_value_index(self, *args):
6080 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6081 get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6083 return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6085 def get_version_info(self):
6086 r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6087 return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6088 __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6091 r"""__str__(StereochemistryPairFilter self) -> std::string"""
6092 return _IMP_atom.StereochemistryPairFilter___str__(self)
6095 r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6096 return _IMP_atom.StereochemistryPairFilter___repr__(self)
6100 return _object_cast_to_StereochemistryPairFilter(o)
6104 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6106 r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6108 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6110 def __init__(self, library):
6111 r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6112 _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6114 def do_get_inputs(self, m, pis):
6115 r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6116 return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6118 def get_value(self, *args):
6120 get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6121 get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6123 return _IMP_atom.SoapPairFilter_get_value(self, *args)
6125 def get_value_index(self, *args):
6127 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6128 get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6130 return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6132 def get_version_info(self):
6133 r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6134 return _IMP_atom.SoapPairFilter_get_version_info(self)
6135 __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6138 r"""__str__(SoapPairFilter self) -> std::string"""
6139 return _IMP_atom.SoapPairFilter___str__(self)
6142 r"""__repr__(SoapPairFilter self) -> std::string"""
6143 return _IMP_atom.SoapPairFilter___repr__(self)
6147 return _object_cast_to_SoapPairFilter(o)
6151 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6153 r"""Proxy of C++ IMP::atom::Mass class."""
6155 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6158 r"""get_mass(Mass self) -> IMP::Float"""
6159 return _IMP_atom.Mass_get_mass(self)
6161 def set_mass(self, d):
6162 r"""set_mass(Mass self, IMP::Float d)"""
6163 return _IMP_atom.Mass_set_mass(self, d)
6165 def __init__(self, *args):
6167 __init__(Mass self) -> Mass
6168 __init__(Mass self, Model m, ParticleIndex id) -> Mass
6169 __init__(Mass self, _ParticleAdaptor d) -> Mass
6171 _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6174 def get_is_setup(*args):
6176 get_is_setup(Model m, ParticleIndex pi) -> bool
6177 get_is_setup(_ParticleAdaptor p) -> bool
6179 return _IMP_atom.Mass_get_is_setup(*args)
6181 def show(self, *args):
6182 r"""show(Mass self, _ostream out=std::cout)"""
6183 return _IMP_atom.Mass_show(self, *args)
6186 def setup_particle(*args):
6188 setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6189 setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6190 setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6191 setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6193 return _IMP_atom.Mass_setup_particle(*args)
6197 r"""get_mass_key() -> FloatKey"""
6198 return _IMP_atom.Mass_get_mass_key()
6200 def add_attribute(self, *args):
6202 add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6203 add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6204 add_attribute(Mass self, IntKey a0, IMP::Int a1)
6205 add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6206 add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6207 add_attribute(Mass self, StringKey a0, IMP::String a1)
6208 add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6209 add_attribute(Mass self, ObjectKey a0, Object a1)
6210 add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6211 add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6212 add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6213 add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6215 return _IMP_atom.Mass_add_attribute(self, *args)
6217 def get_value(self, *args):
6219 get_value(Mass self, FloatKey a0) -> IMP::Float
6220 get_value(Mass self, IntKey a0) -> IMP::Int
6221 get_value(Mass self, FloatsKey a0) -> IMP::Floats
6222 get_value(Mass self, IntsKey a0) -> IMP::Ints
6223 get_value(Mass self, StringKey a0) -> IMP::String
6224 get_value(Mass self, ParticleIndexKey a0) -> Particle
6225 get_value(Mass self, ObjectKey a0) -> Object
6226 get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6227 get_value(Mass self, SparseIntKey a0) -> IMP::Int
6228 get_value(Mass self, SparseStringKey a0) -> IMP::String
6229 get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6231 return _IMP_atom.Mass_get_value(self, *args)
6233 def set_value(self, *args):
6235 set_value(Mass self, FloatKey a0, IMP::Float a1)
6236 set_value(Mass self, IntKey a0, IMP::Int a1)
6237 set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6238 set_value(Mass self, IntsKey a0, IMP::Ints a1)
6239 set_value(Mass self, StringKey a0, IMP::String a1)
6240 set_value(Mass self, ParticleIndexKey a0, Particle a1)
6241 set_value(Mass self, ObjectKey a0, Object a1)
6242 set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6243 set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6244 set_value(Mass self, SparseStringKey a0, IMP::String a1)
6245 set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6247 return _IMP_atom.Mass_set_value(self, *args)
6249 def remove_attribute(self, *args):
6251 remove_attribute(Mass self, FloatKey a0)
6252 remove_attribute(Mass self, IntKey a0)
6253 remove_attribute(Mass self, FloatsKey a0)
6254 remove_attribute(Mass self, IntsKey a0)
6255 remove_attribute(Mass self, StringKey a0)
6256 remove_attribute(Mass self, ParticleIndexKey a0)
6257 remove_attribute(Mass self, ObjectKey a0)
6258 remove_attribute(Mass self, SparseFloatKey a0)
6259 remove_attribute(Mass self, SparseIntKey a0)
6260 remove_attribute(Mass self, SparseStringKey a0)
6261 remove_attribute(Mass self, SparseParticleIndexKey a0)
6263 return _IMP_atom.Mass_remove_attribute(self, *args)
6265 def has_attribute(self, *args):
6267 has_attribute(Mass self, FloatKey a0) -> bool
6268 has_attribute(Mass self, IntKey a0) -> bool
6269 has_attribute(Mass self, FloatsKey a0) -> bool
6270 has_attribute(Mass self, IntsKey a0) -> bool
6271 has_attribute(Mass self, StringKey a0) -> bool
6272 has_attribute(Mass self, ParticleIndexKey a0) -> bool
6273 has_attribute(Mass self, ObjectKey a0) -> bool
6274 has_attribute(Mass self, SparseFloatKey a0) -> bool
6275 has_attribute(Mass self, SparseIntKey a0) -> bool
6276 has_attribute(Mass self, SparseStringKey a0) -> bool
6277 has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6279 return _IMP_atom.Mass_has_attribute(self, *args)
6281 def get_derivative(self, a0):
6282 r"""get_derivative(Mass self, FloatKey a0) -> double"""
6283 return _IMP_atom.Mass_get_derivative(self, a0)
6286 r"""get_name(Mass self) -> std::string"""
6287 return _IMP_atom.Mass_get_name(self)
6289 def clear_caches(self):
6290 r"""clear_caches(Mass self)"""
6291 return _IMP_atom.Mass_clear_caches(self)
6293 def set_name(self, a0):
6294 r"""set_name(Mass self, std::string a0)"""
6295 return _IMP_atom.Mass_set_name(self, a0)
6298 r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6299 return _IMP_atom.Mass_set_check_level(self, a0)
6301 def add_to_derivative(self, a0, a1, a2):
6302 r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6303 return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6305 def set_is_optimized(self, a0, a1):
6306 r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6307 return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6309 def get_is_optimized(self, a0):
6310 r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6311 return _IMP_atom.Mass_get_is_optimized(self, a0)
6314 r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6315 return _IMP_atom.Mass_get_check_level(self)
6317 def __eq__(self, *args):
6319 __eq__(Mass self, Mass o) -> bool
6320 __eq__(Mass self, Particle d) -> bool
6322 return _IMP_atom.Mass___eq__(self, *args)
6324 def __ne__(self, *args):
6326 __ne__(Mass self, Mass o) -> bool
6327 __ne__(Mass self, Particle d) -> bool
6329 return _IMP_atom.Mass___ne__(self, *args)
6331 def __le__(self, *args):
6333 __le__(Mass self, Mass o) -> bool
6334 __le__(Mass self, Particle d) -> bool
6336 return _IMP_atom.Mass___le__(self, *args)
6338 def __lt__(self, *args):
6340 __lt__(Mass self, Mass o) -> bool
6341 __lt__(Mass self, Particle d) -> bool
6343 return _IMP_atom.Mass___lt__(self, *args)
6345 def __ge__(self, *args):
6347 __ge__(Mass self, Mass o) -> bool
6348 __ge__(Mass self, Particle d) -> bool
6350 return _IMP_atom.Mass___ge__(self, *args)
6352 def __gt__(self, *args):
6354 __gt__(Mass self, Mass o) -> bool
6355 __gt__(Mass self, Particle d) -> bool
6357 return _IMP_atom.Mass___gt__(self, *args)
6360 r"""__hash__(Mass self) -> std::size_t"""
6361 return _IMP_atom.Mass___hash__(self)
6364 r"""__str__(Mass self) -> std::string"""
6365 return _IMP_atom.Mass___str__(self)
6368 r"""__repr__(Mass self) -> std::string"""
6369 return _IMP_atom.Mass___repr__(self)
6371 def _get_as_binary(self):
6372 r"""_get_as_binary(Mass self) -> PyObject *"""
6373 return _IMP_atom.Mass__get_as_binary(self)
6375 def _set_from_binary(self, p):
6376 r"""_set_from_binary(Mass self, PyObject * p)"""
6377 return _IMP_atom.Mass__set_from_binary(self, p)
6379 def __getstate__(self):
6380 p = self._get_as_binary()
6381 if len(self.__dict__) > 1:
6382 d = self.__dict__.copy()
6387 def __setstate__(self, p):
6388 if not hasattr(self,
'this'):
6390 if isinstance(p, tuple):
6392 self.__dict__.update(d)
6393 return self._set_from_binary(p)
6395 __swig_destroy__ = _IMP_atom.delete_Mass
6398 _IMP_atom.Mass_swigregister(Mass)
6400 r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6402 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6405 r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6406 _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6408 def do_get_inputs(self, m, pis):
6409 r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6410 return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6412 def get_value(self, *args):
6414 get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6415 get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6417 return _IMP_atom.BondedPairFilter_get_value(self, *args)
6419 def get_value_index(self, *args):
6421 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6422 get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6424 return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6426 def get_version_info(self):
6427 r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6428 return _IMP_atom.BondedPairFilter_get_version_info(self)
6429 __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6432 r"""__str__(BondedPairFilter self) -> std::string"""
6433 return _IMP_atom.BondedPairFilter___str__(self)
6436 r"""__repr__(BondedPairFilter self) -> std::string"""
6437 return _IMP_atom.BondedPairFilter___repr__(self)
6441 return _object_cast_to_BondedPairFilter(o)
6445 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6447 r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6449 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6451 def __init__(self, *args, **kwargs):
6452 raise AttributeError(
"No constructor defined - class is abstract")
6454 def get_is_selected(self, atom_line):
6455 r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6456 return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6457 __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6460 r"""__str__(Mol2Selector self) -> std::string"""
6461 return _IMP_atom.Mol2Selector___str__(self)
6464 r"""__repr__(Mol2Selector self) -> std::string"""
6465 return _IMP_atom.Mol2Selector___repr__(self)
6469 return _object_cast_to_Mol2Selector(o)
6473 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6474 class AllMol2Selector(Mol2Selector):
6475 r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6477 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6480 r"""__str__(AllMol2Selector self) -> std::string"""
6481 return _IMP_atom.AllMol2Selector___str__(self)
6484 r"""__repr__(AllMol2Selector self) -> std::string"""
6485 return _IMP_atom.AllMol2Selector___repr__(self)
6489 return _object_cast_to_AllMol2Selector(o)
6493 r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6494 _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6495 __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6498 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6499 class NonHydrogenMol2Selector(Mol2Selector):
6500 r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6502 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6505 r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6506 return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6509 r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6510 return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6514 return _object_cast_to_NonHydrogenMol2Selector(o)
6518 r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6519 _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6520 __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6523 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6525 def read_mol2(mol2_file, model, mol2sel=None):
6526 r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6527 return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6530 r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6531 return _IMP_atom.write_mol2(rhd, file_name)
6533 r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6535 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6537 def __init__(self, *args):
6539 __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6540 __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6541 __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6543 _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6545 def show(self, *args):
6546 r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6547 return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6550 def setup_particle(*args):
6552 setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6553 setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6554 setup_particle(Particle res_p) -> SecondaryStructureResidue
6556 return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6559 def get_is_setup(*args):
6561 get_is_setup(_ParticleAdaptor p) -> bool
6562 get_is_setup(Model m, ParticleIndex pi) -> bool
6564 return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6566 def get_particle(self):
6567 r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6568 return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6570 def get_all_probabilities(self):
6571 r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6572 return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6574 def get_prob_helix(self):
6575 r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6576 return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6578 def set_prob_helix(self, t):
6579 r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6580 return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6582 def get_prob_strand(self):
6583 r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6584 return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6586 def set_prob_strand(self, t):
6587 r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6588 return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6590 def get_prob_coil(self):
6591 r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6592 return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6594 def set_prob_coil(self, t):
6595 r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6596 return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6599 def get_prob_helix_key():
6600 r"""get_prob_helix_key() -> FloatKey"""
6601 return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6604 def get_prob_strand_key():
6605 r"""get_prob_strand_key() -> FloatKey"""
6606 return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6609 def get_prob_coil_key():
6610 r"""get_prob_coil_key() -> FloatKey"""
6611 return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6613 def add_attribute(self, *args):
6615 add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6616 add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6617 add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6618 add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6619 add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6620 add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6621 add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6622 add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6623 add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6624 add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6625 add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6626 add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6628 return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6630 def get_value(self, *args):
6632 get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6633 get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6634 get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6635 get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6636 get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6637 get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6638 get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6639 get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6640 get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6641 get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6642 get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6644 return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6646 def set_value(self, *args):
6648 set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6649 set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6650 set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6651 set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6652 set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6653 set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6654 set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6655 set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6656 set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6657 set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6658 set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6660 return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6662 def remove_attribute(self, *args):
6664 remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6665 remove_attribute(SecondaryStructureResidue self, IntKey a0)
6666 remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6667 remove_attribute(SecondaryStructureResidue self, IntsKey a0)
6668 remove_attribute(SecondaryStructureResidue self, StringKey a0)
6669 remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
6670 remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
6671 remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
6672 remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
6673 remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
6674 remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
6676 return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
6678 def has_attribute(self, *args):
6680 has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
6681 has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
6682 has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
6683 has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
6684 has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
6685 has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
6686 has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
6687 has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
6688 has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
6689 has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
6690 has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
6692 return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
6694 def get_derivative(self, a0):
6695 r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
6696 return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
6699 r"""get_name(SecondaryStructureResidue self) -> std::string"""
6700 return _IMP_atom.SecondaryStructureResidue_get_name(self)
6702 def clear_caches(self):
6703 r"""clear_caches(SecondaryStructureResidue self)"""
6704 return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
6706 def set_name(self, a0):
6707 r"""set_name(SecondaryStructureResidue self, std::string a0)"""
6708 return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
6711 r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
6712 return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
6714 def add_to_derivative(self, a0, a1, a2):
6715 r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6716 return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
6718 def set_is_optimized(self, a0, a1):
6719 r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
6720 return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
6722 def get_is_optimized(self, a0):
6723 r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
6724 return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
6727 r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
6728 return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
6730 def __eq__(self, *args):
6732 __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6733 __eq__(SecondaryStructureResidue self, Particle d) -> bool
6735 return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
6737 def __ne__(self, *args):
6739 __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6740 __ne__(SecondaryStructureResidue self, Particle d) -> bool
6742 return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
6744 def __le__(self, *args):
6746 __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6747 __le__(SecondaryStructureResidue self, Particle d) -> bool
6749 return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
6751 def __lt__(self, *args):
6753 __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6754 __lt__(SecondaryStructureResidue self, Particle d) -> bool
6756 return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
6758 def __ge__(self, *args):
6760 __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6761 __ge__(SecondaryStructureResidue self, Particle d) -> bool
6763 return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
6765 def __gt__(self, *args):
6767 __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6768 __gt__(SecondaryStructureResidue self, Particle d) -> bool
6770 return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
6773 r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
6774 return _IMP_atom.SecondaryStructureResidue___hash__(self)
6777 r"""__str__(SecondaryStructureResidue self) -> std::string"""
6778 return _IMP_atom.SecondaryStructureResidue___str__(self)
6781 r"""__repr__(SecondaryStructureResidue self) -> std::string"""
6782 return _IMP_atom.SecondaryStructureResidue___repr__(self)
6784 def _get_as_binary(self):
6785 r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
6786 return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
6788 def _set_from_binary(self, p):
6789 r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
6790 return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
6792 def __getstate__(self):
6793 p = self._get_as_binary()
6794 if len(self.__dict__) > 1:
6795 d = self.__dict__.copy()
6800 def __setstate__(self, p):
6801 if not hasattr(self,
'this'):
6803 if isinstance(p, tuple):
6805 self.__dict__.update(d)
6806 return self._set_from_binary(p)
6808 __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
6811 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
6814 r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
6815 return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
6818 r"""setup_coarse_secondary_structure_residues(IMP::Particles const & ssr_ps, Model mdl, int coarse_factor, int start_res_num, bool winner_takes_all_per_res=False) -> IMP::atom::SecondaryStructureResidues"""
6819 return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
6822 r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
6823 return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
6825 def read_psipred(*args):
6827 read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
6828 read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
6830 return _IMP_atom.read_psipred(*args)
6832 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
6834 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6835 __repr__ = _swig_repr
6837 def __init__(self, *args):
6839 __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
6840 __init__(_ADopeBase self) -> _ADopeBase
6842 _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
6844 def do_get_inputs(self, m, pis):
6845 r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6846 return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
6848 def get_score_functor(self):
6849 r"""get_score_functor(_ADopeBase self) -> Dope"""
6850 return _IMP_atom._ADopeBase_get_score_functor(self)
6852 def get_version_info(self):
6853 r"""get_version_info(_ADopeBase self) -> VersionInfo"""
6854 return _IMP_atom._ADopeBase_get_version_info(self)
6855 __swig_destroy__ = _IMP_atom.delete__ADopeBase
6858 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
6860 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
6862 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6863 __repr__ = _swig_repr
6865 def __init__(self, *args):
6867 __init__(_BDopeBase self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _BDopeBase
6868 __init__(_BDopeBase self) -> _BDopeBase
6870 _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
6872 def do_get_inputs(self, m, pis):
6873 r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6874 return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
6876 def get_score_functor(self):
6877 r"""get_score_functor(_BDopeBase self) -> _DopeBase"""
6878 return _IMP_atom._BDopeBase_get_score_functor(self)
6880 def get_version_info(self):
6881 r"""get_version_info(_BDopeBase self) -> VersionInfo"""
6882 return _IMP_atom._BDopeBase_get_version_info(self)
6883 __swig_destroy__ = _IMP_atom.delete__BDopeBase
6886 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
6888 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
6890 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6891 __repr__ = _swig_repr
6893 def __init__(self, *args):
6895 __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
6896 __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
6898 _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
6900 def do_get_inputs(self, m, pis):
6901 r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6902 return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
6904 def get_score_functor(self):
6905 r"""get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical"""
6906 return _IMP_atom._ALoopStatisticalBase_get_score_functor(self)
6908 def get_version_info(self):
6909 r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
6910 return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
6911 __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
6914 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
6916 r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
6918 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6919 __repr__ = _swig_repr
6921 def __init__(self, *args):
6923 __init__(_BLoopStatisticalBase self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _BLoopStatisticalBase
6924 __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
6926 _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
6928 def do_get_inputs(self, m, pis):
6929 r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6930 return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
6932 def get_score_functor(self):
6933 r"""get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase"""
6934 return _IMP_atom._BLoopStatisticalBase_get_score_functor(self)
6936 def get_version_info(self):
6937 r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
6938 return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
6939 __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
6942 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
6944 r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
6946 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6947 __repr__ = _swig_repr
6949 def __init__(self, *args):
6950 r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
6951 _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
6953 def do_get_inputs(self, m, pis):
6954 r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6955 return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
6957 def get_score_functor(self):
6958 r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
6959 return _IMP_atom._OrientedSoapBase_get_score_functor(self)
6961 def get_version_info(self):
6962 r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
6963 return _IMP_atom._OrientedSoapBase_get_version_info(self)
6964 __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
6967 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
6969 r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
6971 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
6972 __repr__ = _swig_repr
6974 def __init__(self, *args):
6976 __init__(_SPSFTB self, IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > >::DistanceScore const & t0, std::string name="FunctorDistancePairScore %1%") -> _SPSFTB
6977 __init__(_SPSFTB self) -> _SPSFTB
6979 _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
6981 def do_get_inputs(self, m, pis):
6982 r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6983 return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
6985 def get_score_functor(self):
6986 r"""get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > &"""
6987 return _IMP_atom._SPSFTB_get_score_functor(self)
6989 def get_version_info(self):
6990 r"""get_version_info(_SPSFTB self) -> VersionInfo"""
6991 return _IMP_atom._SPSFTB_get_version_info(self)
6992 __swig_destroy__ = _IMP_atom.delete__SPSFTB
6995 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
6996 class _SPSTF(_SPSFTB):
6997 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
6999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7000 __repr__ = _swig_repr
7002 def __init__(self, *args):
7004 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7005 __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7007 _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7008 __swig_destroy__ = _IMP_atom.delete__SPSTF
7011 _IMP_atom._SPSTF_swigregister(_SPSTF)
7012 class _SPSFT(_BDopeBase):
7013 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7015 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7016 __repr__ = _swig_repr
7018 def __init__(self, *args):
7020 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7021 __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7023 _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7024 __swig_destroy__ = _IMP_atom.delete__SPSFT
7027 _IMP_atom._SPSFT_swigregister(_SPSFT)
7028 class _SPSFTL(_BLoopStatisticalBase):
7029 r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7031 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7032 __repr__ = _swig_repr
7034 def __init__(self, *args):
7036 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7037 __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7039 _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7040 __swig_destroy__ = _IMP_atom.delete__SPSFTL
7043 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7044 class ProteinLigandAtomPairScore(_SPSTF):
7045 r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7047 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7049 def __init__(self, *args):
7051 __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7052 __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7054 _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7056 def get_maximum_distance(self):
7057 r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7058 return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7061 r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7062 return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7065 r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7066 return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7070 return _object_cast_to_ProteinLigandAtomPairScore(o)
7072 __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7075 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7077 r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7079 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7081 def __init__(self, *args):
7083 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7084 __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7086 _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7089 r"""__str__(ProteinLigandRestraint self) -> std::string"""
7090 return _IMP_atom.ProteinLigandRestraint___str__(self)
7093 r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7094 return _IMP_atom.ProteinLigandRestraint___repr__(self)
7098 return _object_cast_to_ProteinLigandRestraint(o)
7100 __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7103 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7106 r"""add_protein_ligand_score_data(Hierarchy h)"""
7107 return _IMP_atom.add_protein_ligand_score_data(h)
7108 class AtomType(IMP._Value):
7109 r"""Proxy of C++ IMP::Key< 8974343 > class."""
7111 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7113 def __init__(self, *args):
7115 __init__(AtomType self) -> AtomType
7116 __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7117 __init__(AtomType self, unsigned int i) -> AtomType
7119 _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7123 r"""add_key(std::string sc) -> unsigned int"""
7124 return _IMP_atom.AtomType_add_key(sc)
7127 def get_key_exists(sc):
7128 r"""get_key_exists(std::string sc) -> bool"""
7129 return _IMP_atom.AtomType_get_key_exists(sc)
7131 def get_string(self):
7132 r"""get_string(AtomType self) -> std::string const"""
7133 return _IMP_atom.AtomType_get_string(self)
7135 def __cmp__(self, o):
7136 r"""__cmp__(AtomType self, AtomType o) -> int"""
7137 return _IMP_atom.AtomType___cmp__(self, o)
7139 def __eq__(self, o):
7140 r"""__eq__(AtomType self, AtomType o) -> bool"""
7141 return _IMP_atom.AtomType___eq__(self, o)
7143 def __ne__(self, o):
7144 r"""__ne__(AtomType self, AtomType o) -> bool"""
7145 return _IMP_atom.AtomType___ne__(self, o)
7147 def __lt__(self, o):
7148 r"""__lt__(AtomType self, AtomType o) -> bool"""
7149 return _IMP_atom.AtomType___lt__(self, o)
7151 def __gt__(self, o):
7152 r"""__gt__(AtomType self, AtomType o) -> bool"""
7153 return _IMP_atom.AtomType___gt__(self, o)
7155 def __ge__(self, o):
7156 r"""__ge__(AtomType self, AtomType o) -> bool"""
7157 return _IMP_atom.AtomType___ge__(self, o)
7159 def __le__(self, o):
7160 r"""__le__(AtomType self, AtomType o) -> bool"""
7161 return _IMP_atom.AtomType___le__(self, o)
7164 r"""__hash__(AtomType self) -> std::size_t"""
7165 return _IMP_atom.AtomType___hash__(self)
7167 def show(self, *args):
7168 r"""show(AtomType self, _ostream out=std::cout)"""
7169 return _IMP_atom.AtomType_show(self, *args)
7172 def add_alias(old_key, new_name):
7173 r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7174 return _IMP_atom.AtomType_add_alias(old_key, new_name)
7177 def get_number_of_keys():
7178 r"""get_number_of_keys() -> unsigned int"""
7179 return _IMP_atom.AtomType_get_number_of_keys()
7182 r"""get_index(AtomType self) -> unsigned int"""
7183 return _IMP_atom.AtomType_get_index(self)
7187 r"""show_all(_ostream out)"""
7188 return _IMP_atom.AtomType_show_all(out)
7191 def get_all_strings():
7192 r"""get_all_strings() -> IMP::Vector< std::string >"""
7193 return _IMP_atom.AtomType_get_all_strings()
7196 def get_number_unique():
7197 r"""get_number_unique() -> unsigned int"""
7198 return _IMP_atom.AtomType_get_number_unique()
7201 r"""__str__(AtomType self) -> std::string"""
7202 return _IMP_atom.AtomType___str__(self)
7205 r"""__repr__(AtomType self) -> std::string"""
7206 return _IMP_atom.AtomType___repr__(self)
7207 __swig_destroy__ = _IMP_atom.delete_AtomType
7210 _IMP_atom.AtomType_swigregister(AtomType)
7211 class ResidueType(IMP._Value):
7212 r"""Proxy of C++ IMP::Key< 90784334 > class."""
7214 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7216 def __init__(self, *args):
7218 __init__(ResidueType self) -> ResidueType
7219 __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7220 __init__(ResidueType self, unsigned int i) -> ResidueType
7222 _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7226 r"""add_key(std::string sc) -> unsigned int"""
7227 return _IMP_atom.ResidueType_add_key(sc)
7230 def get_key_exists(sc):
7231 r"""get_key_exists(std::string sc) -> bool"""
7232 return _IMP_atom.ResidueType_get_key_exists(sc)
7234 def get_string(self):
7235 r"""get_string(ResidueType self) -> std::string const"""
7236 return _IMP_atom.ResidueType_get_string(self)
7238 def __cmp__(self, o):
7239 r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7240 return _IMP_atom.ResidueType___cmp__(self, o)
7242 def __eq__(self, o):
7243 r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7244 return _IMP_atom.ResidueType___eq__(self, o)
7246 def __ne__(self, o):
7247 r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7248 return _IMP_atom.ResidueType___ne__(self, o)
7250 def __lt__(self, o):
7251 r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7252 return _IMP_atom.ResidueType___lt__(self, o)
7254 def __gt__(self, o):
7255 r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7256 return _IMP_atom.ResidueType___gt__(self, o)
7258 def __ge__(self, o):
7259 r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7260 return _IMP_atom.ResidueType___ge__(self, o)
7262 def __le__(self, o):
7263 r"""__le__(ResidueType self, ResidueType o) -> bool"""
7264 return _IMP_atom.ResidueType___le__(self, o)
7267 r"""__hash__(ResidueType self) -> std::size_t"""
7268 return _IMP_atom.ResidueType___hash__(self)
7270 def show(self, *args):
7271 r"""show(ResidueType self, _ostream out=std::cout)"""
7272 return _IMP_atom.ResidueType_show(self, *args)
7275 def add_alias(old_key, new_name):
7276 r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7277 return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7280 def get_number_of_keys():
7281 r"""get_number_of_keys() -> unsigned int"""
7282 return _IMP_atom.ResidueType_get_number_of_keys()
7285 r"""get_index(ResidueType self) -> unsigned int"""
7286 return _IMP_atom.ResidueType_get_index(self)
7290 r"""show_all(_ostream out)"""
7291 return _IMP_atom.ResidueType_show_all(out)
7294 def get_all_strings():
7295 r"""get_all_strings() -> IMP::Vector< std::string >"""
7296 return _IMP_atom.ResidueType_get_all_strings()
7299 def get_number_unique():
7300 r"""get_number_unique() -> unsigned int"""
7301 return _IMP_atom.ResidueType_get_number_unique()
7304 r"""__str__(ResidueType self) -> std::string"""
7305 return _IMP_atom.ResidueType___str__(self)
7308 r"""__repr__(ResidueType self) -> std::string"""
7309 return _IMP_atom.ResidueType___repr__(self)
7310 __swig_destroy__ = _IMP_atom.delete_ResidueType
7313 _IMP_atom.ResidueType_swigregister(ResidueType)
7314 class ChainType(IMP._Value):
7315 r"""Proxy of C++ IMP::Key< 90784336 > class."""
7317 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7319 def __init__(self, *args):
7321 __init__(ChainType self) -> ChainType
7322 __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7323 __init__(ChainType self, unsigned int i) -> ChainType
7325 _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7329 r"""add_key(std::string sc) -> unsigned int"""
7330 return _IMP_atom.ChainType_add_key(sc)
7333 def get_key_exists(sc):
7334 r"""get_key_exists(std::string sc) -> bool"""
7335 return _IMP_atom.ChainType_get_key_exists(sc)
7337 def get_string(self):
7338 r"""get_string(ChainType self) -> std::string const"""
7339 return _IMP_atom.ChainType_get_string(self)
7341 def __cmp__(self, o):
7342 r"""__cmp__(ChainType self, ChainType o) -> int"""
7343 return _IMP_atom.ChainType___cmp__(self, o)
7345 def __eq__(self, o):
7346 r"""__eq__(ChainType self, ChainType o) -> bool"""
7347 return _IMP_atom.ChainType___eq__(self, o)
7349 def __ne__(self, o):
7350 r"""__ne__(ChainType self, ChainType o) -> bool"""
7351 return _IMP_atom.ChainType___ne__(self, o)
7353 def __lt__(self, o):
7354 r"""__lt__(ChainType self, ChainType o) -> bool"""
7355 return _IMP_atom.ChainType___lt__(self, o)
7357 def __gt__(self, o):
7358 r"""__gt__(ChainType self, ChainType o) -> bool"""
7359 return _IMP_atom.ChainType___gt__(self, o)
7361 def __ge__(self, o):
7362 r"""__ge__(ChainType self, ChainType o) -> bool"""
7363 return _IMP_atom.ChainType___ge__(self, o)
7365 def __le__(self, o):
7366 r"""__le__(ChainType self, ChainType o) -> bool"""
7367 return _IMP_atom.ChainType___le__(self, o)
7370 r"""__hash__(ChainType self) -> std::size_t"""
7371 return _IMP_atom.ChainType___hash__(self)
7373 def show(self, *args):
7374 r"""show(ChainType self, _ostream out=std::cout)"""
7375 return _IMP_atom.ChainType_show(self, *args)
7378 def add_alias(old_key, new_name):
7379 r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7380 return _IMP_atom.ChainType_add_alias(old_key, new_name)
7383 def get_number_of_keys():
7384 r"""get_number_of_keys() -> unsigned int"""
7385 return _IMP_atom.ChainType_get_number_of_keys()
7388 r"""get_index(ChainType self) -> unsigned int"""
7389 return _IMP_atom.ChainType_get_index(self)
7393 r"""show_all(_ostream out)"""
7394 return _IMP_atom.ChainType_show_all(out)
7397 def get_all_strings():
7398 r"""get_all_strings() -> IMP::Vector< std::string >"""
7399 return _IMP_atom.ChainType_get_all_strings()
7402 def get_number_unique():
7403 r"""get_number_unique() -> unsigned int"""
7404 return _IMP_atom.ChainType_get_number_unique()
7407 r"""__str__(ChainType self) -> std::string"""
7408 return _IMP_atom.ChainType___str__(self)
7411 r"""__repr__(ChainType self) -> std::string"""
7412 return _IMP_atom.ChainType___repr__(self)
7413 __swig_destroy__ = _IMP_atom.delete_ChainType
7416 _IMP_atom.ChainType_swigregister(ChainType)
7417 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
7635 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
7639 r"""hash_value(IMP::atom::Element e) -> size_t"""
7640 return _IMP_atom.hash_value(e)
7641 class ElementTable(object):
7642 r"""Proxy of C++ IMP::atom::ElementTable class."""
7644 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7645 __repr__ = _swig_repr
7648 r"""__init__(ElementTable self) -> ElementTable"""
7649 _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
7651 def get_element(self, s):
7652 r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
7653 return _IMP_atom.ElementTable_get_element(self, s)
7655 def get_name(self, e):
7656 r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
7657 return _IMP_atom.ElementTable_get_name(self, e)
7660 r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
7661 return _IMP_atom.ElementTable_get_mass(self, e)
7662 __swig_destroy__ = _IMP_atom.delete_ElementTable
7665 _IMP_atom.ElementTable_swigregister(ElementTable)
7667 def get_element_table():
7668 r"""get_element_table() -> ElementTable"""
7669 return _IMP_atom.get_element_table()
7670 class Atom(Hierarchy):
7671 r"""Proxy of C++ IMP::atom::Atom class."""
7673 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
7675 def __init__(self, *args):
7677 __init__(Atom self) -> Atom
7678 __init__(Atom self, Model m, ParticleIndex id) -> Atom
7679 __init__(Atom self, _ParticleAdaptor d) -> Atom
7681 _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
7683 def show(self, *args):
7684 r"""show(Atom self, _ostream out=std::cout)"""
7685 return _IMP_atom.Atom_show(self, *args)
7688 def setup_particle(*args):
7690 setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
7691 setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
7692 setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
7693 setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
7695 return _IMP_atom.Atom_setup_particle(*args)
7698 def get_is_setup(*args):
7700 get_is_setup(_ParticleAdaptor p) -> bool
7701 get_is_setup(Model m, ParticleIndex pi) -> bool
7703 return _IMP_atom.Atom_get_is_setup(*args)
7705 def get_atom_type(self):
7706 r"""get_atom_type(Atom self) -> AtomType"""
7707 return _IMP_atom.Atom_get_atom_type(self)
7709 def set_atom_type(self, t):
7710 r"""set_atom_type(Atom self, AtomType t)"""
7711 return _IMP_atom.Atom_set_atom_type(self, t)
7713 def get_element(self):
7714 r"""get_element(Atom self) -> IMP::atom::Element"""
7715 return _IMP_atom.Atom_get_element(self)
7717 def set_element(self, e):
7718 r"""set_element(Atom self, IMP::atom::Element e)"""
7719 return _IMP_atom.Atom_set_element(self, e)
7721 def get_occupancy(self):
7722 r"""get_occupancy(Atom self) -> double"""
7723 return _IMP_atom.Atom_get_occupancy(self)
7725 def set_occupancy(self, occupancy):
7726 r"""set_occupancy(Atom self, double occupancy)"""
7727 return _IMP_atom.Atom_set_occupancy(self, occupancy)
7729 def get_temperature_factor(self):
7730 r"""get_temperature_factor(Atom self) -> double"""
7731 return _IMP_atom.Atom_get_temperature_factor(self)
7733 def set_temperature_factor(self, tempFactor):
7734 r"""set_temperature_factor(Atom self, double tempFactor)"""
7735 return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
7737 def get_input_index(self):
7738 r"""get_input_index(Atom self) -> IMP::Int"""
7739 return _IMP_atom.Atom_get_input_index(self)
7741 def set_input_index(self, t):
7742 r"""set_input_index(Atom self, IMP::Int t)"""
7743 return _IMP_atom.Atom_set_input_index(self, t)
7746 def get_atom_type_key():
7747 r"""get_atom_type_key() -> IntKey"""
7748 return _IMP_atom.Atom_get_atom_type_key()
7751 def get_element_key():
7752 r"""get_element_key() -> IntKey"""
7753 return _IMP_atom.Atom_get_element_key()
7756 def get_input_index_key():
7757 r"""get_input_index_key() -> IntKey"""
7758 return _IMP_atom.Atom_get_input_index_key()
7761 def get_occupancy_key():
7762 r"""get_occupancy_key() -> FloatKey"""
7763 return _IMP_atom.Atom_get_occupancy_key()
7766 def get_temperature_factor_key():
7767 r"""get_temperature_factor_key() -> FloatKey"""
7768 return _IMP_atom.Atom_get_temperature_factor_key()
7770 def add_attribute(self, *args):
7772 add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
7773 add_attribute(Atom self, FloatKey a0, IMP::Float a1)
7774 add_attribute(Atom self, IntKey a0, IMP::Int a1)
7775 add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
7776 add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
7777 add_attribute(Atom self, StringKey a0, IMP::String a1)
7778 add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
7779 add_attribute(Atom self, ObjectKey a0, Object a1)
7780 add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
7781 add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
7782 add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
7783 add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7785 return _IMP_atom.Atom_add_attribute(self, *args)
7787 def get_value(self, *args):
7789 get_value(Atom self, FloatKey a0) -> IMP::Float
7790 get_value(Atom self, IntKey a0) -> IMP::Int
7791 get_value(Atom self, FloatsKey a0) -> IMP::Floats
7792 get_value(Atom self, IntsKey a0) -> IMP::Ints
7793 get_value(Atom self, StringKey a0) -> IMP::String
7794 get_value(Atom self, ParticleIndexKey a0) -> Particle
7795 get_value(Atom self, ObjectKey a0) -> Object
7796 get_value(Atom self, SparseFloatKey a0) -> IMP::Float
7797 get_value(Atom self, SparseIntKey a0) -> IMP::Int
7798 get_value(Atom self, SparseStringKey a0) -> IMP::String
7799 get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
7801 return _IMP_atom.Atom_get_value(self, *args)
7803 def set_value(self, *args):
7805 set_value(Atom self, FloatKey a0, IMP::Float a1)
7806 set_value(Atom self, IntKey a0, IMP::Int a1)
7807 set_value(Atom self, FloatsKey a0, IMP::Floats a1)
7808 set_value(Atom self, IntsKey a0, IMP::Ints a1)
7809 set_value(Atom self, StringKey a0, IMP::String a1)
7810 set_value(Atom self, ParticleIndexKey a0, Particle a1)
7811 set_value(Atom self, ObjectKey a0, Object a1)
7812 set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
7813 set_value(Atom self, SparseIntKey a0, IMP::Int a1)
7814 set_value(Atom self, SparseStringKey a0, IMP::String a1)
7815 set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7817 return _IMP_atom.Atom_set_value(self, *args)
7819 def remove_attribute(self, *args):
7821 remove_attribute(Atom self, FloatKey a0)
7822 remove_attribute(Atom self, IntKey a0)
7823 remove_attribute(Atom self, FloatsKey a0)
7824 remove_attribute(Atom self, IntsKey a0)
7825 remove_attribute(Atom self, StringKey a0)
7826 remove_attribute(Atom self, ParticleIndexKey a0)
7827 remove_attribute(Atom self, ObjectKey a0)
7828 remove_attribute(Atom self, SparseFloatKey a0)
7829 remove_attribute(Atom self, SparseIntKey a0)
7830 remove_attribute(Atom self, SparseStringKey a0)
7831 remove_attribute(Atom self, SparseParticleIndexKey a0)
7833 return _IMP_atom.Atom_remove_attribute(self, *args)
7835 def has_attribute(self, *args):
7837 has_attribute(Atom self, FloatKey a0) -> bool
7838 has_attribute(Atom self, IntKey a0) -> bool
7839 has_attribute(Atom self, FloatsKey a0) -> bool
7840 has_attribute(Atom self, IntsKey a0) -> bool
7841 has_attribute(Atom self, StringKey a0) -> bool
7842 has_attribute(Atom self, ParticleIndexKey a0) -> bool
7843 has_attribute(Atom self, ObjectKey a0) -> bool
7844 has_attribute(Atom self, SparseFloatKey a0) -> bool
7845 has_attribute(Atom self, SparseIntKey a0) -> bool
7846 has_attribute(Atom self, SparseStringKey a0) -> bool
7847 has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
7849 return _IMP_atom.Atom_has_attribute(self, *args)
7851 def get_derivative(self, a0):
7852 r"""get_derivative(Atom self, FloatKey a0) -> double"""
7853 return _IMP_atom.Atom_get_derivative(self, a0)
7856 r"""get_name(Atom self) -> std::string"""
7857 return _IMP_atom.Atom_get_name(self)
7859 def clear_caches(self):
7860 r"""clear_caches(Atom self)"""
7861 return _IMP_atom.Atom_clear_caches(self)
7863 def set_name(self, a0):
7864 r"""set_name(Atom self, std::string a0)"""
7865 return _IMP_atom.Atom_set_name(self, a0)
7868 r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
7869 return _IMP_atom.Atom_set_check_level(self, a0)
7871 def add_to_derivative(self, a0, a1, a2):
7872 r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7873 return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
7875 def set_is_optimized(self, a0, a1):
7876 r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
7877 return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
7879 def get_is_optimized(self, a0):
7880 r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
7881 return _IMP_atom.Atom_get_is_optimized(self, a0)
7884 r"""get_check_level(Atom self) -> IMP::CheckLevel"""
7885 return _IMP_atom.Atom_get_check_level(self)
7887 def __eq__(self, *args):
7889 __eq__(Atom self, Atom o) -> bool
7890 __eq__(Atom self, Particle d) -> bool
7892 return _IMP_atom.Atom___eq__(self, *args)
7894 def __ne__(self, *args):
7896 __ne__(Atom self, Atom o) -> bool
7897 __ne__(Atom self, Particle d) -> bool
7899 return _IMP_atom.Atom___ne__(self, *args)
7901 def __le__(self, *args):
7903 __le__(Atom self, Atom o) -> bool
7904 __le__(Atom self, Particle d) -> bool
7906 return _IMP_atom.Atom___le__(self, *args)
7908 def __lt__(self, *args):
7910 __lt__(Atom self, Atom o) -> bool
7911 __lt__(Atom self, Particle d) -> bool
7913 return _IMP_atom.Atom___lt__(self, *args)
7915 def __ge__(self, *args):
7917 __ge__(Atom self, Atom o) -> bool
7918 __ge__(Atom self, Particle d) -> bool
7920 return _IMP_atom.Atom___ge__(self, *args)
7922 def __gt__(self, *args):
7924 __gt__(Atom self, Atom o) -> bool
7925 __gt__(Atom self, Particle d) -> bool
7927 return _IMP_atom.Atom___gt__(self, *args)
7930 r"""__hash__(Atom self) -> std::size_t"""
7931 return _IMP_atom.Atom___hash__(self)
7934 r"""__str__(Atom self) -> std::string"""
7935 return _IMP_atom.Atom___str__(self)
7938 r"""__repr__(Atom self) -> std::string"""
7939 return _IMP_atom.Atom___repr__(self)
7941 def _get_as_binary(self):
7942 r"""_get_as_binary(Atom self) -> PyObject *"""
7943 return _IMP_atom.Atom__get_as_binary(self)
7945 def _set_from_binary(self, p):
7946 r"""_set_from_binary(Atom self, PyObject * p)"""
7947 return _IMP_atom.Atom__set_from_binary(self, p)
7949 def __getstate__(self):
7950 p = self._get_as_binary()
7951 if len(self.__dict__) > 1:
7952 d = self.__dict__.copy()
7957 def __setstate__(self, p):
7958 if not hasattr(self,
'this'):
7960 if isinstance(p, tuple):
7962 self.__dict__.update(d)
7963 return self._set_from_binary(p)
7965 __swig_destroy__ = _IMP_atom.delete_Atom
7968 _IMP_atom.Atom_swigregister(Atom)
7969 cvar = _IMP_atom.cvar
7970 AT_UNKNOWN = cvar.AT_UNKNOWN
7980 AT_HA1 = cvar.AT_HA1
7981 AT_HA2 = cvar.AT_HA2
7982 AT_HA3 = cvar.AT_HA3
7985 AT_HB1 = cvar.AT_HB1
7986 AT_HB2 = cvar.AT_HB2
7987 AT_HB3 = cvar.AT_HB3
7988 AT_OXT = cvar.AT_OXT
7989 AT_CH3 = cvar.AT_CH3
7992 AT_CG1 = cvar.AT_CG1
7993 AT_CG2 = cvar.AT_CG2
7995 AT_HG1 = cvar.AT_HG1
7996 AT_HG2 = cvar.AT_HG2
7997 AT_HG3 = cvar.AT_HG3
7998 AT_HG11 = cvar.AT_HG11
7999 AT_HG21 = cvar.AT_HG21
8000 AT_HG31 = cvar.AT_HG31
8001 AT_HG12 = cvar.AT_HG12
8002 AT_HG13 = cvar.AT_HG13
8003 AT_HG22 = cvar.AT_HG22
8004 AT_HG23 = cvar.AT_HG23
8005 AT_HG32 = cvar.AT_HG32
8007 AT_OG1 = cvar.AT_OG1
8010 AT_CD1 = cvar.AT_CD1
8011 AT_CD2 = cvar.AT_CD2
8013 AT_HD1 = cvar.AT_HD1
8014 AT_HD2 = cvar.AT_HD2
8015 AT_HD3 = cvar.AT_HD3
8016 AT_HD11 = cvar.AT_HD11
8017 AT_HD21 = cvar.AT_HD21
8018 AT_HD31 = cvar.AT_HD31
8019 AT_HD12 = cvar.AT_HD12
8020 AT_HD13 = cvar.AT_HD13
8021 AT_HD22 = cvar.AT_HD22
8022 AT_HD23 = cvar.AT_HD23
8023 AT_HD32 = cvar.AT_HD32
8025 AT_OD1 = cvar.AT_OD1
8026 AT_OD2 = cvar.AT_OD2
8027 AT_ND1 = cvar.AT_ND1
8028 AT_ND2 = cvar.AT_ND2
8030 AT_CE1 = cvar.AT_CE1
8031 AT_CE2 = cvar.AT_CE2
8032 AT_CE3 = cvar.AT_CE3
8034 AT_HE1 = cvar.AT_HE1
8035 AT_HE2 = cvar.AT_HE2
8036 AT_HE3 = cvar.AT_HE3
8037 AT_HE21 = cvar.AT_HE21
8038 AT_HE22 = cvar.AT_HE22
8039 AT_OE1 = cvar.AT_OE1
8040 AT_OE2 = cvar.AT_OE2
8042 AT_NE1 = cvar.AT_NE1
8043 AT_NE2 = cvar.AT_NE2
8045 AT_CZ2 = cvar.AT_CZ2
8046 AT_CZ3 = cvar.AT_CZ3
8049 AT_HZ1 = cvar.AT_HZ1
8050 AT_HZ2 = cvar.AT_HZ2
8051 AT_HZ3 = cvar.AT_HZ3
8052 AT_CH2 = cvar.AT_CH2
8053 AT_NH1 = cvar.AT_NH1
8054 AT_NH2 = cvar.AT_NH2
8057 AT_HH11 = cvar.AT_HH11
8058 AT_HH21 = cvar.AT_HH21
8059 AT_HH2 = cvar.AT_HH2
8060 AT_HH12 = cvar.AT_HH12
8061 AT_HH22 = cvar.AT_HH22
8062 AT_HH13 = cvar.AT_HH13
8063 AT_HH23 = cvar.AT_HH23
8064 AT_HH33 = cvar.AT_HH33
8066 AT_OP1 = cvar.AT_OP1
8067 AT_OP2 = cvar.AT_OP2
8068 AT_OP3 = cvar.AT_OP3
8069 AT_O5p = cvar.AT_O5p
8070 AT_C5p = cvar.AT_C5p
8071 AT_H5p = cvar.AT_H5p
8072 AT_H5pp = cvar.AT_H5pp
8073 AT_C4p = cvar.AT_C4p
8074 AT_H4p = cvar.AT_H4p
8075 AT_O4p = cvar.AT_O4p
8076 AT_C1p = cvar.AT_C1p
8077 AT_H1p = cvar.AT_H1p
8078 AT_C3p = cvar.AT_C3p
8079 AT_H3p = cvar.AT_H3p
8080 AT_O3p = cvar.AT_O3p
8081 AT_C2p = cvar.AT_C2p
8082 AT_H2p = cvar.AT_H2p
8083 AT_H2pp = cvar.AT_H2pp
8084 AT_O2p = cvar.AT_O2p
8085 AT_HO2p = cvar.AT_HO2p
8097 AT_H61 = cvar.AT_H61
8098 AT_H62 = cvar.AT_H62
8102 AT_H21 = cvar.AT_H21
8103 AT_H22 = cvar.AT_H22
8108 AT_H41 = cvar.AT_H41
8109 AT_H42 = cvar.AT_H42
8112 AT_H71 = cvar.AT_H71
8113 AT_H72 = cvar.AT_H72
8114 AT_H73 = cvar.AT_H73
8115 AT_O1A = cvar.AT_O1A
8116 AT_O2A = cvar.AT_O2A
8117 AT_O3A = cvar.AT_O3A
8118 AT_O1B = cvar.AT_O1B
8119 AT_O2B = cvar.AT_O2B
8120 AT_O3B = cvar.AT_O3B
8121 AT_CAY = cvar.AT_CAY
8124 AT_CAT = cvar.AT_CAT
8129 get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8130 get_residue(Atom d, bool nothrow=False) -> Residue
8132 return _IMP_atom.get_residue(*args)
8135 r"""get_atom(Residue rd, AtomType at) -> Atom"""
8136 return _IMP_atom.get_atom(rd, at)
8139 r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8140 return _IMP_atom.add_atom_type(name, e)
8142 def get_element_for_atom_type(at):
8143 r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8144 return _IMP_atom.get_element_for_atom_type(at)
8147 r"""get_atom_type_exists(std::string name) -> bool"""
8148 return _IMP_atom.get_atom_type_exists(name)
8149 class Residue(Hierarchy):
8150 r"""Proxy of C++ IMP::atom::Residue class."""
8152 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8154 def __init__(self, *args):
8156 __init__(Residue self) -> Residue
8157 __init__(Residue self, Model m, ParticleIndex id) -> Residue
8158 __init__(Residue self, _ParticleAdaptor d) -> Residue
8160 _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8162 def show(self, *args):
8163 r"""show(Residue self, _ostream out=std::cout)"""
8164 return _IMP_atom.Residue_show(self, *args)
8167 def setup_particle(*args):
8169 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8170 setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8171 setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8172 setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8173 setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8174 setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8175 setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8176 setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8178 return _IMP_atom.Residue_setup_particle(*args)
8181 def get_is_setup(*args):
8183 get_is_setup(_ParticleAdaptor p) -> bool
8184 get_is_setup(Model m, ParticleIndex pi) -> bool
8186 return _IMP_atom.Residue_get_is_setup(*args)
8188 def get_residue_type(self):
8189 r"""get_residue_type(Residue self) -> ResidueType"""
8190 return _IMP_atom.Residue_get_residue_type(self)
8192 def set_residue_type(self, t):
8193 r"""set_residue_type(Residue self, ResidueType t)"""
8194 return _IMP_atom.Residue_set_residue_type(self, t)
8196 def get_is_protein(self):
8197 r"""get_is_protein(Residue self) -> bool"""
8198 return _IMP_atom.Residue_get_is_protein(self)
8200 def get_is_dna(self):
8201 r"""get_is_dna(Residue self) -> bool"""
8202 return _IMP_atom.Residue_get_is_dna(self)
8204 def get_is_rna(self):
8205 r"""get_is_rna(Residue self) -> bool"""
8206 return _IMP_atom.Residue_get_is_rna(self)
8209 r"""get_index(Residue self) -> IMP::Int"""
8210 return _IMP_atom.Residue_get_index(self)
8212 def set_index(self, t):
8213 r"""set_index(Residue self, IMP::Int t)"""
8214 return _IMP_atom.Residue_set_index(self, t)
8216 def get_insertion_code(self):
8217 r"""get_insertion_code(Residue self) -> char"""
8218 return _IMP_atom.Residue_get_insertion_code(self)
8220 def set_insertion_code(self, insertion_code):
8221 r"""set_insertion_code(Residue self, char insertion_code)"""
8222 return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8225 def get_index_key():
8226 r"""get_index_key() -> IntKey"""
8227 return _IMP_atom.Residue_get_index_key()
8230 def get_residue_type_key():
8231 r"""get_residue_type_key() -> IntKey"""
8232 return _IMP_atom.Residue_get_residue_type_key()
8235 def get_insertion_code_key():
8236 r"""get_insertion_code_key() -> IntKey"""
8237 return _IMP_atom.Residue_get_insertion_code_key()
8240 def get_type_changed_key():
8241 r"""get_type_changed_key() -> TriggerKey"""
8242 return _IMP_atom.Residue_get_type_changed_key()
8244 def add_attribute(self, *args):
8246 add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8247 add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8248 add_attribute(Residue self, IntKey a0, IMP::Int a1)
8249 add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8250 add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8251 add_attribute(Residue self, StringKey a0, IMP::String a1)
8252 add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8253 add_attribute(Residue self, ObjectKey a0, Object a1)
8254 add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8255 add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8256 add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8257 add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8259 return _IMP_atom.Residue_add_attribute(self, *args)
8261 def get_value(self, *args):
8263 get_value(Residue self, FloatKey a0) -> IMP::Float
8264 get_value(Residue self, IntKey a0) -> IMP::Int
8265 get_value(Residue self, FloatsKey a0) -> IMP::Floats
8266 get_value(Residue self, IntsKey a0) -> IMP::Ints
8267 get_value(Residue self, StringKey a0) -> IMP::String
8268 get_value(Residue self, ParticleIndexKey a0) -> Particle
8269 get_value(Residue self, ObjectKey a0) -> Object
8270 get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8271 get_value(Residue self, SparseIntKey a0) -> IMP::Int
8272 get_value(Residue self, SparseStringKey a0) -> IMP::String
8273 get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8275 return _IMP_atom.Residue_get_value(self, *args)
8277 def set_value(self, *args):
8279 set_value(Residue self, FloatKey a0, IMP::Float a1)
8280 set_value(Residue self, IntKey a0, IMP::Int a1)
8281 set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8282 set_value(Residue self, IntsKey a0, IMP::Ints a1)
8283 set_value(Residue self, StringKey a0, IMP::String a1)
8284 set_value(Residue self, ParticleIndexKey a0, Particle a1)
8285 set_value(Residue self, ObjectKey a0, Object a1)
8286 set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8287 set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8288 set_value(Residue self, SparseStringKey a0, IMP::String a1)
8289 set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8291 return _IMP_atom.Residue_set_value(self, *args)
8293 def remove_attribute(self, *args):
8295 remove_attribute(Residue self, FloatKey a0)
8296 remove_attribute(Residue self, IntKey a0)
8297 remove_attribute(Residue self, FloatsKey a0)
8298 remove_attribute(Residue self, IntsKey a0)
8299 remove_attribute(Residue self, StringKey a0)
8300 remove_attribute(Residue self, ParticleIndexKey a0)
8301 remove_attribute(Residue self, ObjectKey a0)
8302 remove_attribute(Residue self, SparseFloatKey a0)
8303 remove_attribute(Residue self, SparseIntKey a0)
8304 remove_attribute(Residue self, SparseStringKey a0)
8305 remove_attribute(Residue self, SparseParticleIndexKey a0)
8307 return _IMP_atom.Residue_remove_attribute(self, *args)
8309 def has_attribute(self, *args):
8311 has_attribute(Residue self, FloatKey a0) -> bool
8312 has_attribute(Residue self, IntKey a0) -> bool
8313 has_attribute(Residue self, FloatsKey a0) -> bool
8314 has_attribute(Residue self, IntsKey a0) -> bool
8315 has_attribute(Residue self, StringKey a0) -> bool
8316 has_attribute(Residue self, ParticleIndexKey a0) -> bool
8317 has_attribute(Residue self, ObjectKey a0) -> bool
8318 has_attribute(Residue self, SparseFloatKey a0) -> bool
8319 has_attribute(Residue self, SparseIntKey a0) -> bool
8320 has_attribute(Residue self, SparseStringKey a0) -> bool
8321 has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8323 return _IMP_atom.Residue_has_attribute(self, *args)
8325 def get_derivative(self, a0):
8326 r"""get_derivative(Residue self, FloatKey a0) -> double"""
8327 return _IMP_atom.Residue_get_derivative(self, a0)
8330 r"""get_name(Residue self) -> std::string"""
8331 return _IMP_atom.Residue_get_name(self)
8333 def clear_caches(self):
8334 r"""clear_caches(Residue self)"""
8335 return _IMP_atom.Residue_clear_caches(self)
8337 def set_name(self, a0):
8338 r"""set_name(Residue self, std::string a0)"""
8339 return _IMP_atom.Residue_set_name(self, a0)
8342 r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8343 return _IMP_atom.Residue_set_check_level(self, a0)
8345 def add_to_derivative(self, a0, a1, a2):
8346 r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8347 return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8349 def set_is_optimized(self, a0, a1):
8350 r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8351 return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8353 def get_is_optimized(self, a0):
8354 r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8355 return _IMP_atom.Residue_get_is_optimized(self, a0)
8358 r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8359 return _IMP_atom.Residue_get_check_level(self)
8361 def __eq__(self, *args):
8363 __eq__(Residue self, Residue o) -> bool
8364 __eq__(Residue self, Particle d) -> bool
8366 return _IMP_atom.Residue___eq__(self, *args)
8368 def __ne__(self, *args):
8370 __ne__(Residue self, Residue o) -> bool
8371 __ne__(Residue self, Particle d) -> bool
8373 return _IMP_atom.Residue___ne__(self, *args)
8375 def __le__(self, *args):
8377 __le__(Residue self, Residue o) -> bool
8378 __le__(Residue self, Particle d) -> bool
8380 return _IMP_atom.Residue___le__(self, *args)
8382 def __lt__(self, *args):
8384 __lt__(Residue self, Residue o) -> bool
8385 __lt__(Residue self, Particle d) -> bool
8387 return _IMP_atom.Residue___lt__(self, *args)
8389 def __ge__(self, *args):
8391 __ge__(Residue self, Residue o) -> bool
8392 __ge__(Residue self, Particle d) -> bool
8394 return _IMP_atom.Residue___ge__(self, *args)
8396 def __gt__(self, *args):
8398 __gt__(Residue self, Residue o) -> bool
8399 __gt__(Residue self, Particle d) -> bool
8401 return _IMP_atom.Residue___gt__(self, *args)
8404 r"""__hash__(Residue self) -> std::size_t"""
8405 return _IMP_atom.Residue___hash__(self)
8408 r"""__str__(Residue self) -> std::string"""
8409 return _IMP_atom.Residue___str__(self)
8412 r"""__repr__(Residue self) -> std::string"""
8413 return _IMP_atom.Residue___repr__(self)
8415 def _get_as_binary(self):
8416 r"""_get_as_binary(Residue self) -> PyObject *"""
8417 return _IMP_atom.Residue__get_as_binary(self)
8419 def _set_from_binary(self, p):
8420 r"""_set_from_binary(Residue self, PyObject * p)"""
8421 return _IMP_atom.Residue__set_from_binary(self, p)
8423 def __getstate__(self):
8424 p = self._get_as_binary()
8425 if len(self.__dict__) > 1:
8426 d = self.__dict__.copy()
8431 def __setstate__(self, p):
8432 if not hasattr(self,
'this'):
8434 if isinstance(p, tuple):
8436 self.__dict__.update(d)
8437 return self._set_from_binary(p)
8439 __swig_destroy__ = _IMP_atom.delete_Residue
8442 _IMP_atom.Residue_swigregister(Residue)
8483 r"""get_next_residue(Residue rd) -> Hierarchy"""
8484 return _IMP_atom.get_next_residue(rd)
8487 r"""get_previous_residue(Residue rd) -> Hierarchy"""
8488 return _IMP_atom.get_previous_residue(rd)
8491 r"""get_one_letter_code(ResidueType c) -> char"""
8492 return _IMP_atom.get_one_letter_code(c)
8493 BALLS = _IMP_atom.BALLS
8495 DENSITIES = _IMP_atom.DENSITIES
8497 class Representation(Hierarchy):
8498 r"""Proxy of C++ IMP::atom::Representation class."""
8500 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8503 def setup_particle(*args):
8505 setup_particle(Model m, ParticleIndex pi) -> Representation
8506 setup_particle(_ParticleAdaptor pa) -> Representation
8507 setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8508 setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8509 setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8510 setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8512 return _IMP_atom.Representation_setup_particle(*args)
8514 def __init__(self, *args):
8516 __init__(Representation self) -> Representation
8517 __init__(Representation self, Model m, ParticleIndex id) -> Representation
8518 __init__(Representation self, _ParticleAdaptor d) -> Representation
8520 _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8522 def show(self, *args):
8523 r"""show(Representation self, _ostream out=std::cout)"""
8524 return _IMP_atom.Representation_show(self, *args)
8527 def get_is_setup(*args):
8529 get_is_setup(_ParticleAdaptor p) -> bool
8530 get_is_setup(Model m, ParticleIndex pi) -> bool
8532 return _IMP_atom.Representation_get_is_setup(*args)
8535 r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8536 return _IMP_atom.Representation_get_representation(self, *args)
8538 def get_representations(self, *args):
8539 r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8540 return _IMP_atom.Representation_get_representations(self, *args)
8542 def add_representation(self, *args):
8543 r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8544 return _IMP_atom.Representation_add_representation(self, *args)
8546 def get_resolutions(self, *args):
8547 r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8548 return _IMP_atom.Representation_get_resolutions(self, *args)
8550 def remove_representation(self, rep):
8551 r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8552 return _IMP_atom.Representation_remove_representation(self, rep)
8554 def update_parents(self):
8555 r"""update_parents(Representation self)"""
8556 return _IMP_atom.Representation_update_parents(self)
8558 def add_attribute(self, *args):
8560 add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
8561 add_attribute(Representation self, FloatKey a0, IMP::Float a1)
8562 add_attribute(Representation self, IntKey a0, IMP::Int a1)
8563 add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
8564 add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
8565 add_attribute(Representation self, StringKey a0, IMP::String a1)
8566 add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
8567 add_attribute(Representation self, ObjectKey a0, Object a1)
8568 add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
8569 add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
8570 add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
8571 add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8573 return _IMP_atom.Representation_add_attribute(self, *args)
8575 def get_value(self, *args):
8577 get_value(Representation self, FloatKey a0) -> IMP::Float
8578 get_value(Representation self, IntKey a0) -> IMP::Int
8579 get_value(Representation self, FloatsKey a0) -> IMP::Floats
8580 get_value(Representation self, IntsKey a0) -> IMP::Ints
8581 get_value(Representation self, StringKey a0) -> IMP::String
8582 get_value(Representation self, ParticleIndexKey a0) -> Particle
8583 get_value(Representation self, ObjectKey a0) -> Object
8584 get_value(Representation self, SparseFloatKey a0) -> IMP::Float
8585 get_value(Representation self, SparseIntKey a0) -> IMP::Int
8586 get_value(Representation self, SparseStringKey a0) -> IMP::String
8587 get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
8589 return _IMP_atom.Representation_get_value(self, *args)
8591 def set_value(self, *args):
8593 set_value(Representation self, FloatKey a0, IMP::Float a1)
8594 set_value(Representation self, IntKey a0, IMP::Int a1)
8595 set_value(Representation self, FloatsKey a0, IMP::Floats a1)
8596 set_value(Representation self, IntsKey a0, IMP::Ints a1)
8597 set_value(Representation self, StringKey a0, IMP::String a1)
8598 set_value(Representation self, ParticleIndexKey a0, Particle a1)
8599 set_value(Representation self, ObjectKey a0, Object a1)
8600 set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
8601 set_value(Representation self, SparseIntKey a0, IMP::Int a1)
8602 set_value(Representation self, SparseStringKey a0, IMP::String a1)
8603 set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8605 return _IMP_atom.Representation_set_value(self, *args)
8607 def remove_attribute(self, *args):
8609 remove_attribute(Representation self, FloatKey a0)
8610 remove_attribute(Representation self, IntKey a0)
8611 remove_attribute(Representation self, FloatsKey a0)
8612 remove_attribute(Representation self, IntsKey a0)
8613 remove_attribute(Representation self, StringKey a0)
8614 remove_attribute(Representation self, ParticleIndexKey a0)
8615 remove_attribute(Representation self, ObjectKey a0)
8616 remove_attribute(Representation self, SparseFloatKey a0)
8617 remove_attribute(Representation self, SparseIntKey a0)
8618 remove_attribute(Representation self, SparseStringKey a0)
8619 remove_attribute(Representation self, SparseParticleIndexKey a0)
8621 return _IMP_atom.Representation_remove_attribute(self, *args)
8623 def has_attribute(self, *args):
8625 has_attribute(Representation self, FloatKey a0) -> bool
8626 has_attribute(Representation self, IntKey a0) -> bool
8627 has_attribute(Representation self, FloatsKey a0) -> bool
8628 has_attribute(Representation self, IntsKey a0) -> bool
8629 has_attribute(Representation self, StringKey a0) -> bool
8630 has_attribute(Representation self, ParticleIndexKey a0) -> bool
8631 has_attribute(Representation self, ObjectKey a0) -> bool
8632 has_attribute(Representation self, SparseFloatKey a0) -> bool
8633 has_attribute(Representation self, SparseIntKey a0) -> bool
8634 has_attribute(Representation self, SparseStringKey a0) -> bool
8635 has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
8637 return _IMP_atom.Representation_has_attribute(self, *args)
8639 def get_derivative(self, a0):
8640 r"""get_derivative(Representation self, FloatKey a0) -> double"""
8641 return _IMP_atom.Representation_get_derivative(self, a0)
8644 r"""get_name(Representation self) -> std::string"""
8645 return _IMP_atom.Representation_get_name(self)
8647 def clear_caches(self):
8648 r"""clear_caches(Representation self)"""
8649 return _IMP_atom.Representation_clear_caches(self)
8651 def set_name(self, a0):
8652 r"""set_name(Representation self, std::string a0)"""
8653 return _IMP_atom.Representation_set_name(self, a0)
8656 r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
8657 return _IMP_atom.Representation_set_check_level(self, a0)
8659 def add_to_derivative(self, a0, a1, a2):
8660 r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8661 return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
8663 def set_is_optimized(self, a0, a1):
8664 r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
8665 return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
8667 def get_is_optimized(self, a0):
8668 r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
8669 return _IMP_atom.Representation_get_is_optimized(self, a0)
8672 r"""get_check_level(Representation self) -> IMP::CheckLevel"""
8673 return _IMP_atom.Representation_get_check_level(self)
8675 def __eq__(self, *args):
8677 __eq__(Representation self, Representation o) -> bool
8678 __eq__(Representation self, Particle d) -> bool
8680 return _IMP_atom.Representation___eq__(self, *args)
8682 def __ne__(self, *args):
8684 __ne__(Representation self, Representation o) -> bool
8685 __ne__(Representation self, Particle d) -> bool
8687 return _IMP_atom.Representation___ne__(self, *args)
8689 def __le__(self, *args):
8691 __le__(Representation self, Representation o) -> bool
8692 __le__(Representation self, Particle d) -> bool
8694 return _IMP_atom.Representation___le__(self, *args)
8696 def __lt__(self, *args):
8698 __lt__(Representation self, Representation o) -> bool
8699 __lt__(Representation self, Particle d) -> bool
8701 return _IMP_atom.Representation___lt__(self, *args)
8703 def __ge__(self, *args):
8705 __ge__(Representation self, Representation o) -> bool
8706 __ge__(Representation self, Particle d) -> bool
8708 return _IMP_atom.Representation___ge__(self, *args)
8710 def __gt__(self, *args):
8712 __gt__(Representation self, Representation o) -> bool
8713 __gt__(Representation self, Particle d) -> bool
8715 return _IMP_atom.Representation___gt__(self, *args)
8718 r"""__hash__(Representation self) -> std::size_t"""
8719 return _IMP_atom.Representation___hash__(self)
8722 r"""__str__(Representation self) -> std::string"""
8723 return _IMP_atom.Representation___str__(self)
8726 r"""__repr__(Representation self) -> std::string"""
8727 return _IMP_atom.Representation___repr__(self)
8729 def _get_as_binary(self):
8730 r"""_get_as_binary(Representation self) -> PyObject *"""
8731 return _IMP_atom.Representation__get_as_binary(self)
8733 def _set_from_binary(self, p):
8734 r"""_set_from_binary(Representation self, PyObject * p)"""
8735 return _IMP_atom.Representation__set_from_binary(self, p)
8737 def __getstate__(self):
8738 p = self._get_as_binary()
8739 if len(self.__dict__) > 1:
8740 d = self.__dict__.copy()
8745 def __setstate__(self, p):
8746 if not hasattr(self,
'this'):
8748 if isinstance(p, tuple):
8750 self.__dict__.update(d)
8751 return self._set_from_binary(p)
8753 __swig_destroy__ = _IMP_atom.delete_Representation
8756 _IMP_atom.Representation_swigregister(Representation)
8757 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
8762 get_resolution(Model m, ParticleIndex pi) -> double
8763 get_resolution(Hierarchy h) -> double
8765 return _IMP_atom.get_resolution(*args)
8768 r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
8769 return _IMP_atom.get_representation(h, nothrow)
8772 r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
8773 return _IMP_atom.show_with_representations(*args)
8774 class State(Hierarchy):
8775 r"""Proxy of C++ IMP::atom::State class."""
8777 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
8780 def setup_particle(*args):
8782 setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
8783 setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
8784 setup_particle(Model m, ParticleIndex pi, State other) -> State
8785 setup_particle(_ParticleAdaptor pa, State other) -> State
8787 return _IMP_atom.State_setup_particle(*args)
8789 def __init__(self, *args):
8791 __init__(State self) -> State
8792 __init__(State self, Model m, ParticleIndex id) -> State
8793 __init__(State self, _ParticleAdaptor d) -> State
8795 _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
8797 def show(self, *args):
8798 r"""show(State self, _ostream out=std::cout)"""
8799 return _IMP_atom.State_show(self, *args)
8802 def get_is_setup(*args):
8804 get_is_setup(_ParticleAdaptor p) -> bool
8805 get_is_setup(Model m, ParticleIndex pi) -> bool
8807 return _IMP_atom.State_get_is_setup(*args)
8810 r"""get_state_index(State self) -> unsigned int"""
8811 return _IMP_atom.State_get_state_index(self)
8813 def add_attribute(self, *args):
8815 add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
8816 add_attribute(State self, FloatKey a0, IMP::Float a1)
8817 add_attribute(State self, IntKey a0, IMP::Int a1)
8818 add_attribute(State self, FloatsKey a0, IMP::Floats a1)
8819 add_attribute(State self, IntsKey a0, IMP::Ints a1)
8820 add_attribute(State self, StringKey a0, IMP::String a1)
8821 add_attribute(State self, ParticleIndexKey a0, Particle a1)
8822 add_attribute(State self, ObjectKey a0, Object a1)
8823 add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
8824 add_attribute(State self, SparseIntKey a0, IMP::Int a1)
8825 add_attribute(State self, SparseStringKey a0, IMP::String a1)
8826 add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
8828 return _IMP_atom.State_add_attribute(self, *args)
8830 def get_value(self, *args):
8832 get_value(State self, FloatKey a0) -> IMP::Float
8833 get_value(State self, IntKey a0) -> IMP::Int
8834 get_value(State self, FloatsKey a0) -> IMP::Floats
8835 get_value(State self, IntsKey a0) -> IMP::Ints
8836 get_value(State self, StringKey a0) -> IMP::String
8837 get_value(State self, ParticleIndexKey a0) -> Particle
8838 get_value(State self, ObjectKey a0) -> Object
8839 get_value(State self, SparseFloatKey a0) -> IMP::Float
8840 get_value(State self, SparseIntKey a0) -> IMP::Int
8841 get_value(State self, SparseStringKey a0) -> IMP::String
8842 get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
8844 return _IMP_atom.State_get_value(self, *args)
8846 def set_value(self, *args):
8848 set_value(State self, FloatKey a0, IMP::Float a1)
8849 set_value(State self, IntKey a0, IMP::Int a1)
8850 set_value(State self, FloatsKey a0, IMP::Floats a1)
8851 set_value(State self, IntsKey a0, IMP::Ints a1)
8852 set_value(State self, StringKey a0, IMP::String a1)
8853 set_value(State self, ParticleIndexKey a0, Particle a1)
8854 set_value(State self, ObjectKey a0, Object a1)
8855 set_value(State self, SparseFloatKey a0, IMP::Float a1)
8856 set_value(State self, SparseIntKey a0, IMP::Int a1)
8857 set_value(State self, SparseStringKey a0, IMP::String a1)
8858 set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
8860 return _IMP_atom.State_set_value(self, *args)
8862 def remove_attribute(self, *args):
8864 remove_attribute(State self, FloatKey a0)
8865 remove_attribute(State self, IntKey a0)
8866 remove_attribute(State self, FloatsKey a0)
8867 remove_attribute(State self, IntsKey a0)
8868 remove_attribute(State self, StringKey a0)
8869 remove_attribute(State self, ParticleIndexKey a0)
8870 remove_attribute(State self, ObjectKey a0)
8871 remove_attribute(State self, SparseFloatKey a0)
8872 remove_attribute(State self, SparseIntKey a0)
8873 remove_attribute(State self, SparseStringKey a0)
8874 remove_attribute(State self, SparseParticleIndexKey a0)
8876 return _IMP_atom.State_remove_attribute(self, *args)
8878 def has_attribute(self, *args):
8880 has_attribute(State self, FloatKey a0) -> bool
8881 has_attribute(State self, IntKey a0) -> bool
8882 has_attribute(State self, FloatsKey a0) -> bool
8883 has_attribute(State self, IntsKey a0) -> bool
8884 has_attribute(State self, StringKey a0) -> bool
8885 has_attribute(State self, ParticleIndexKey a0) -> bool
8886 has_attribute(State self, ObjectKey a0) -> bool
8887 has_attribute(State self, SparseFloatKey a0) -> bool
8888 has_attribute(State self, SparseIntKey a0) -> bool
8889 has_attribute(State self, SparseStringKey a0) -> bool
8890 has_attribute(State self, SparseParticleIndexKey a0) -> bool
8892 return _IMP_atom.State_has_attribute(self, *args)
8894 def get_derivative(self, a0):
8895 r"""get_derivative(State self, FloatKey a0) -> double"""
8896 return _IMP_atom.State_get_derivative(self, a0)
8899 r"""get_name(State self) -> std::string"""
8900 return _IMP_atom.State_get_name(self)
8902 def clear_caches(self):
8903 r"""clear_caches(State self)"""
8904 return _IMP_atom.State_clear_caches(self)
8906 def set_name(self, a0):
8907 r"""set_name(State self, std::string a0)"""
8908 return _IMP_atom.State_set_name(self, a0)
8911 r"""set_check_level(State self, IMP::CheckLevel a0)"""
8912 return _IMP_atom.State_set_check_level(self, a0)
8914 def add_to_derivative(self, a0, a1, a2):
8915 r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8916 return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
8918 def set_is_optimized(self, a0, a1):
8919 r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
8920 return _IMP_atom.State_set_is_optimized(self, a0, a1)
8922 def get_is_optimized(self, a0):
8923 r"""get_is_optimized(State self, FloatKey a0) -> bool"""
8924 return _IMP_atom.State_get_is_optimized(self, a0)
8927 r"""get_check_level(State self) -> IMP::CheckLevel"""
8928 return _IMP_atom.State_get_check_level(self)
8930 def __eq__(self, *args):
8932 __eq__(State self, State o) -> bool
8933 __eq__(State self, Particle d) -> bool
8935 return _IMP_atom.State___eq__(self, *args)
8937 def __ne__(self, *args):
8939 __ne__(State self, State o) -> bool
8940 __ne__(State self, Particle d) -> bool
8942 return _IMP_atom.State___ne__(self, *args)
8944 def __le__(self, *args):
8946 __le__(State self, State o) -> bool
8947 __le__(State self, Particle d) -> bool
8949 return _IMP_atom.State___le__(self, *args)
8951 def __lt__(self, *args):
8953 __lt__(State self, State o) -> bool
8954 __lt__(State self, Particle d) -> bool
8956 return _IMP_atom.State___lt__(self, *args)
8958 def __ge__(self, *args):
8960 __ge__(State self, State o) -> bool
8961 __ge__(State self, Particle d) -> bool
8963 return _IMP_atom.State___ge__(self, *args)
8965 def __gt__(self, *args):
8967 __gt__(State self, State o) -> bool
8968 __gt__(State self, Particle d) -> bool
8970 return _IMP_atom.State___gt__(self, *args)
8973 r"""__hash__(State self) -> std::size_t"""
8974 return _IMP_atom.State___hash__(self)
8977 r"""__str__(State self) -> std::string"""
8978 return _IMP_atom.State___str__(self)
8981 r"""__repr__(State self) -> std::string"""
8982 return _IMP_atom.State___repr__(self)
8984 def _get_as_binary(self):
8985 r"""_get_as_binary(State self) -> PyObject *"""
8986 return _IMP_atom.State__get_as_binary(self)
8988 def _set_from_binary(self, p):
8989 r"""_set_from_binary(State self, PyObject * p)"""
8990 return _IMP_atom.State__set_from_binary(self, p)
8992 def __getstate__(self):
8993 p = self._get_as_binary()
8994 if len(self.__dict__) > 1:
8995 d = self.__dict__.copy()
9000 def __setstate__(self, p):
9001 if not hasattr(self,
'this'):
9003 if isinstance(p, tuple):
9005 self.__dict__.update(d)
9006 return self._set_from_binary(p)
9008 __swig_destroy__ = _IMP_atom.delete_State
9011 _IMP_atom.State_swigregister(State)
9014 r"""get_state_index(Hierarchy h) -> int"""
9015 return _IMP_atom.get_state_index(h)
9018 r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9019 return _IMP_atom.get_phi_dihedral_atoms(rd)
9022 r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9023 return _IMP_atom.get_psi_dihedral_atoms(rd)
9026 r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9027 return _IMP_atom.get_omega_dihedral_atoms(rd)
9030 r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9031 return _IMP_atom.get_chi_dihedral_atom_types(rt)
9034 r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9035 return _IMP_atom.get_chi_dihedral_atoms(rd)
9038 r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9039 return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9040 class Molecule(Hierarchy):
9041 r"""Proxy of C++ IMP::atom::Molecule class."""
9043 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9045 def __init__(self, *args):
9047 __init__(Molecule self) -> Molecule
9048 __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9049 __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9051 _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9053 def show(self, *args):
9054 r"""show(Molecule self, _ostream out=std::cout)"""
9055 return _IMP_atom.Molecule_show(self, *args)
9058 def setup_particle(*args):
9060 setup_particle(Model m, ParticleIndex pi) -> Molecule
9061 setup_particle(_ParticleAdaptor pa) -> Molecule
9062 setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9063 setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9065 return _IMP_atom.Molecule_setup_particle(*args)
9068 def get_is_setup(*args):
9070 get_is_setup(_ParticleAdaptor p) -> bool
9071 get_is_setup(Model m, ParticleIndex pi) -> bool
9073 return _IMP_atom.Molecule_get_is_setup(*args)
9075 def add_attribute(self, *args):
9077 add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9078 add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9079 add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9080 add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9081 add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9082 add_attribute(Molecule self, StringKey a0, IMP::String a1)
9083 add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9084 add_attribute(Molecule self, ObjectKey a0, Object a1)
9085 add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9086 add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9087 add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9088 add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9090 return _IMP_atom.Molecule_add_attribute(self, *args)
9092 def get_value(self, *args):
9094 get_value(Molecule self, FloatKey a0) -> IMP::Float
9095 get_value(Molecule self, IntKey a0) -> IMP::Int
9096 get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9097 get_value(Molecule self, IntsKey a0) -> IMP::Ints
9098 get_value(Molecule self, StringKey a0) -> IMP::String
9099 get_value(Molecule self, ParticleIndexKey a0) -> Particle
9100 get_value(Molecule self, ObjectKey a0) -> Object
9101 get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9102 get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9103 get_value(Molecule self, SparseStringKey a0) -> IMP::String
9104 get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9106 return _IMP_atom.Molecule_get_value(self, *args)
9108 def set_value(self, *args):
9110 set_value(Molecule self, FloatKey a0, IMP::Float a1)
9111 set_value(Molecule self, IntKey a0, IMP::Int a1)
9112 set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9113 set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9114 set_value(Molecule self, StringKey a0, IMP::String a1)
9115 set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9116 set_value(Molecule self, ObjectKey a0, Object a1)
9117 set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9118 set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9119 set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9120 set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9122 return _IMP_atom.Molecule_set_value(self, *args)
9124 def remove_attribute(self, *args):
9126 remove_attribute(Molecule self, FloatKey a0)
9127 remove_attribute(Molecule self, IntKey a0)
9128 remove_attribute(Molecule self, FloatsKey a0)
9129 remove_attribute(Molecule self, IntsKey a0)
9130 remove_attribute(Molecule self, StringKey a0)
9131 remove_attribute(Molecule self, ParticleIndexKey a0)
9132 remove_attribute(Molecule self, ObjectKey a0)
9133 remove_attribute(Molecule self, SparseFloatKey a0)
9134 remove_attribute(Molecule self, SparseIntKey a0)
9135 remove_attribute(Molecule self, SparseStringKey a0)
9136 remove_attribute(Molecule self, SparseParticleIndexKey a0)
9138 return _IMP_atom.Molecule_remove_attribute(self, *args)
9140 def has_attribute(self, *args):
9142 has_attribute(Molecule self, FloatKey a0) -> bool
9143 has_attribute(Molecule self, IntKey a0) -> bool
9144 has_attribute(Molecule self, FloatsKey a0) -> bool
9145 has_attribute(Molecule self, IntsKey a0) -> bool
9146 has_attribute(Molecule self, StringKey a0) -> bool
9147 has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9148 has_attribute(Molecule self, ObjectKey a0) -> bool
9149 has_attribute(Molecule self, SparseFloatKey a0) -> bool
9150 has_attribute(Molecule self, SparseIntKey a0) -> bool
9151 has_attribute(Molecule self, SparseStringKey a0) -> bool
9152 has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9154 return _IMP_atom.Molecule_has_attribute(self, *args)
9156 def get_derivative(self, a0):
9157 r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9158 return _IMP_atom.Molecule_get_derivative(self, a0)
9161 r"""get_name(Molecule self) -> std::string"""
9162 return _IMP_atom.Molecule_get_name(self)
9164 def clear_caches(self):
9165 r"""clear_caches(Molecule self)"""
9166 return _IMP_atom.Molecule_clear_caches(self)
9168 def set_name(self, a0):
9169 r"""set_name(Molecule self, std::string a0)"""
9170 return _IMP_atom.Molecule_set_name(self, a0)
9173 r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9174 return _IMP_atom.Molecule_set_check_level(self, a0)
9176 def add_to_derivative(self, a0, a1, a2):
9177 r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9178 return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9180 def set_is_optimized(self, a0, a1):
9181 r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9182 return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9184 def get_is_optimized(self, a0):
9185 r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9186 return _IMP_atom.Molecule_get_is_optimized(self, a0)
9189 r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9190 return _IMP_atom.Molecule_get_check_level(self)
9192 def __eq__(self, *args):
9194 __eq__(Molecule self, Molecule o) -> bool
9195 __eq__(Molecule self, Particle d) -> bool
9197 return _IMP_atom.Molecule___eq__(self, *args)
9199 def __ne__(self, *args):
9201 __ne__(Molecule self, Molecule o) -> bool
9202 __ne__(Molecule self, Particle d) -> bool
9204 return _IMP_atom.Molecule___ne__(self, *args)
9206 def __le__(self, *args):
9208 __le__(Molecule self, Molecule o) -> bool
9209 __le__(Molecule self, Particle d) -> bool
9211 return _IMP_atom.Molecule___le__(self, *args)
9213 def __lt__(self, *args):
9215 __lt__(Molecule self, Molecule o) -> bool
9216 __lt__(Molecule self, Particle d) -> bool
9218 return _IMP_atom.Molecule___lt__(self, *args)
9220 def __ge__(self, *args):
9222 __ge__(Molecule self, Molecule o) -> bool
9223 __ge__(Molecule self, Particle d) -> bool
9225 return _IMP_atom.Molecule___ge__(self, *args)
9227 def __gt__(self, *args):
9229 __gt__(Molecule self, Molecule o) -> bool
9230 __gt__(Molecule self, Particle d) -> bool
9232 return _IMP_atom.Molecule___gt__(self, *args)
9235 r"""__hash__(Molecule self) -> std::size_t"""
9236 return _IMP_atom.Molecule___hash__(self)
9239 r"""__str__(Molecule self) -> std::string"""
9240 return _IMP_atom.Molecule___str__(self)
9243 r"""__repr__(Molecule self) -> std::string"""
9244 return _IMP_atom.Molecule___repr__(self)
9246 def _get_as_binary(self):
9247 r"""_get_as_binary(Molecule self) -> PyObject *"""
9248 return _IMP_atom.Molecule__get_as_binary(self)
9250 def _set_from_binary(self, p):
9251 r"""_set_from_binary(Molecule self, PyObject * p)"""
9252 return _IMP_atom.Molecule__set_from_binary(self, p)
9254 def __getstate__(self):
9255 p = self._get_as_binary()
9256 if len(self.__dict__) > 1:
9257 d = self.__dict__.copy()
9262 def __setstate__(self, p):
9263 if not hasattr(self,
'this'):
9265 if isinstance(p, tuple):
9267 self.__dict__.update(d)
9268 return self._set_from_binary(p)
9270 __swig_destroy__ = _IMP_atom.delete_Molecule
9273 _IMP_atom.Molecule_swigregister(Molecule)
9276 r"""get_molecule_name(Hierarchy h) -> std::string"""
9277 return _IMP_atom.get_molecule_name(h)
9278 class Copy(Molecule):
9279 r"""Proxy of C++ IMP::atom::Copy class."""
9281 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9284 def get_copy_index_key():
9285 r"""get_copy_index_key() -> IntKey"""
9286 return _IMP_atom.Copy_get_copy_index_key()
9288 def __init__(self, *args):
9290 __init__(Copy self) -> Copy
9291 __init__(Copy self, Model m, ParticleIndex id) -> Copy
9292 __init__(Copy self, _ParticleAdaptor d) -> Copy
9294 _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9296 def show(self, *args):
9297 r"""show(Copy self, _ostream out=std::cout)"""
9298 return _IMP_atom.Copy_show(self, *args)
9301 def setup_particle(*args):
9303 setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9304 setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9306 return _IMP_atom.Copy_setup_particle(*args)
9309 def get_is_setup(*args):
9311 get_is_setup(_ParticleAdaptor p) -> bool
9312 get_is_setup(Model m, ParticleIndex pi) -> bool
9314 return _IMP_atom.Copy_get_is_setup(*args)
9317 r"""get_copy_index(Copy self) -> int"""
9318 return _IMP_atom.Copy_get_copy_index(self)
9320 def add_attribute(self, *args):
9322 add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9323 add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9324 add_attribute(Copy self, IntKey a0, IMP::Int a1)
9325 add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9326 add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9327 add_attribute(Copy self, StringKey a0, IMP::String a1)
9328 add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9329 add_attribute(Copy self, ObjectKey a0, Object a1)
9330 add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9331 add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9332 add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9333 add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9335 return _IMP_atom.Copy_add_attribute(self, *args)
9337 def get_value(self, *args):
9339 get_value(Copy self, FloatKey a0) -> IMP::Float
9340 get_value(Copy self, IntKey a0) -> IMP::Int
9341 get_value(Copy self, FloatsKey a0) -> IMP::Floats
9342 get_value(Copy self, IntsKey a0) -> IMP::Ints
9343 get_value(Copy self, StringKey a0) -> IMP::String
9344 get_value(Copy self, ParticleIndexKey a0) -> Particle
9345 get_value(Copy self, ObjectKey a0) -> Object
9346 get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9347 get_value(Copy self, SparseIntKey a0) -> IMP::Int
9348 get_value(Copy self, SparseStringKey a0) -> IMP::String
9349 get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9351 return _IMP_atom.Copy_get_value(self, *args)
9353 def set_value(self, *args):
9355 set_value(Copy self, FloatKey a0, IMP::Float a1)
9356 set_value(Copy self, IntKey a0, IMP::Int a1)
9357 set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9358 set_value(Copy self, IntsKey a0, IMP::Ints a1)
9359 set_value(Copy self, StringKey a0, IMP::String a1)
9360 set_value(Copy self, ParticleIndexKey a0, Particle a1)
9361 set_value(Copy self, ObjectKey a0, Object a1)
9362 set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9363 set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9364 set_value(Copy self, SparseStringKey a0, IMP::String a1)
9365 set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9367 return _IMP_atom.Copy_set_value(self, *args)
9369 def remove_attribute(self, *args):
9371 remove_attribute(Copy self, FloatKey a0)
9372 remove_attribute(Copy self, IntKey a0)
9373 remove_attribute(Copy self, FloatsKey a0)
9374 remove_attribute(Copy self, IntsKey a0)
9375 remove_attribute(Copy self, StringKey a0)
9376 remove_attribute(Copy self, ParticleIndexKey a0)
9377 remove_attribute(Copy self, ObjectKey a0)
9378 remove_attribute(Copy self, SparseFloatKey a0)
9379 remove_attribute(Copy self, SparseIntKey a0)
9380 remove_attribute(Copy self, SparseStringKey a0)
9381 remove_attribute(Copy self, SparseParticleIndexKey a0)
9383 return _IMP_atom.Copy_remove_attribute(self, *args)
9385 def has_attribute(self, *args):
9387 has_attribute(Copy self, FloatKey a0) -> bool
9388 has_attribute(Copy self, IntKey a0) -> bool
9389 has_attribute(Copy self, FloatsKey a0) -> bool
9390 has_attribute(Copy self, IntsKey a0) -> bool
9391 has_attribute(Copy self, StringKey a0) -> bool
9392 has_attribute(Copy self, ParticleIndexKey a0) -> bool
9393 has_attribute(Copy self, ObjectKey a0) -> bool
9394 has_attribute(Copy self, SparseFloatKey a0) -> bool
9395 has_attribute(Copy self, SparseIntKey a0) -> bool
9396 has_attribute(Copy self, SparseStringKey a0) -> bool
9397 has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9399 return _IMP_atom.Copy_has_attribute(self, *args)
9401 def get_derivative(self, a0):
9402 r"""get_derivative(Copy self, FloatKey a0) -> double"""
9403 return _IMP_atom.Copy_get_derivative(self, a0)
9406 r"""get_name(Copy self) -> std::string"""
9407 return _IMP_atom.Copy_get_name(self)
9409 def clear_caches(self):
9410 r"""clear_caches(Copy self)"""
9411 return _IMP_atom.Copy_clear_caches(self)
9413 def set_name(self, a0):
9414 r"""set_name(Copy self, std::string a0)"""
9415 return _IMP_atom.Copy_set_name(self, a0)
9418 r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9419 return _IMP_atom.Copy_set_check_level(self, a0)
9421 def add_to_derivative(self, a0, a1, a2):
9422 r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9423 return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9425 def set_is_optimized(self, a0, a1):
9426 r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9427 return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9429 def get_is_optimized(self, a0):
9430 r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9431 return _IMP_atom.Copy_get_is_optimized(self, a0)
9434 r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9435 return _IMP_atom.Copy_get_check_level(self)
9437 def __eq__(self, *args):
9439 __eq__(Copy self, Copy o) -> bool
9440 __eq__(Copy self, Particle d) -> bool
9442 return _IMP_atom.Copy___eq__(self, *args)
9444 def __ne__(self, *args):
9446 __ne__(Copy self, Copy o) -> bool
9447 __ne__(Copy self, Particle d) -> bool
9449 return _IMP_atom.Copy___ne__(self, *args)
9451 def __le__(self, *args):
9453 __le__(Copy self, Copy o) -> bool
9454 __le__(Copy self, Particle d) -> bool
9456 return _IMP_atom.Copy___le__(self, *args)
9458 def __lt__(self, *args):
9460 __lt__(Copy self, Copy o) -> bool
9461 __lt__(Copy self, Particle d) -> bool
9463 return _IMP_atom.Copy___lt__(self, *args)
9465 def __ge__(self, *args):
9467 __ge__(Copy self, Copy o) -> bool
9468 __ge__(Copy self, Particle d) -> bool
9470 return _IMP_atom.Copy___ge__(self, *args)
9472 def __gt__(self, *args):
9474 __gt__(Copy self, Copy o) -> bool
9475 __gt__(Copy self, Particle d) -> bool
9477 return _IMP_atom.Copy___gt__(self, *args)
9480 r"""__hash__(Copy self) -> std::size_t"""
9481 return _IMP_atom.Copy___hash__(self)
9484 r"""__str__(Copy self) -> std::string"""
9485 return _IMP_atom.Copy___str__(self)
9488 r"""__repr__(Copy self) -> std::string"""
9489 return _IMP_atom.Copy___repr__(self)
9491 def _get_as_binary(self):
9492 r"""_get_as_binary(Copy self) -> PyObject *"""
9493 return _IMP_atom.Copy__get_as_binary(self)
9495 def _set_from_binary(self, p):
9496 r"""_set_from_binary(Copy self, PyObject * p)"""
9497 return _IMP_atom.Copy__set_from_binary(self, p)
9499 def __getstate__(self):
9500 p = self._get_as_binary()
9501 if len(self.__dict__) > 1:
9502 d = self.__dict__.copy()
9507 def __setstate__(self, p):
9508 if not hasattr(self,
'this'):
9510 if isinstance(p, tuple):
9512 self.__dict__.update(d)
9513 return self._set_from_binary(p)
9515 __swig_destroy__ = _IMP_atom.delete_Copy
9518 _IMP_atom.Copy_swigregister(Copy)
9521 r"""get_copy_index(Hierarchy h) -> int"""
9522 return _IMP_atom.get_copy_index(h)
9523 class Chain(Hierarchy):
9524 r"""Proxy of C++ IMP::atom::Chain class."""
9526 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9528 def __init__(self, *args):
9530 __init__(Chain self) -> Chain
9531 __init__(Chain self, Model m, ParticleIndex id) -> Chain
9532 __init__(Chain self, _ParticleAdaptor d) -> Chain
9534 _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9536 def show(self, *args):
9537 r"""show(Chain self, _ostream out=std::cout)"""
9538 return _IMP_atom.Chain_show(self, *args)
9541 def setup_particle(*args):
9543 setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9544 setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9545 setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9546 setup_particle(_ParticleAdaptor pa, char id) -> Chain
9547 setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9548 setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9550 return _IMP_atom.Chain_setup_particle(*args)
9553 def get_is_setup(*args):
9555 get_is_setup(_ParticleAdaptor p) -> bool
9556 get_is_setup(Model m, ParticleIndex pi) -> bool
9558 return _IMP_atom.Chain_get_is_setup(*args)
9561 r"""get_id(Chain self) -> std::string"""
9562 return _IMP_atom.Chain_get_id(self)
9564 def set_id(self, c):
9565 r"""set_id(Chain self, std::string c)"""
9566 return _IMP_atom.Chain_set_id(self, c)
9568 def get_label_asym_id(self):
9569 r"""get_label_asym_id(Chain self) -> std::string"""
9570 return _IMP_atom.Chain_get_label_asym_id(self)
9572 def set_label_asym_id(self, c):
9573 r"""set_label_asym_id(Chain self, std::string c)"""
9574 return _IMP_atom.Chain_set_label_asym_id(self, c)
9576 def get_sequence(self):
9577 r"""get_sequence(Chain self) -> std::string"""
9578 return _IMP_atom.Chain_get_sequence(self)
9580 def set_sequence(self, sequence):
9581 r"""set_sequence(Chain self, std::string sequence)"""
9582 return _IMP_atom.Chain_set_sequence(self, sequence)
9584 def get_sequence_offset(self):
9585 r"""get_sequence_offset(Chain self) -> int"""
9586 return _IMP_atom.Chain_get_sequence_offset(self)
9588 def set_sequence_offset(self, offset):
9589 r"""set_sequence_offset(Chain self, int offset)"""
9590 return _IMP_atom.Chain_set_sequence_offset(self, offset)
9592 def get_uniprot_accession(self):
9593 r"""get_uniprot_accession(Chain self) -> std::string"""
9594 return _IMP_atom.Chain_get_uniprot_accession(self)
9596 def set_uniprot_accession(self, accession):
9597 r"""set_uniprot_accession(Chain self, std::string accession)"""
9598 return _IMP_atom.Chain_set_uniprot_accession(self, accession)
9600 def get_chain_type(self):
9601 r"""get_chain_type(Chain self) -> ChainType"""
9602 return _IMP_atom.Chain_get_chain_type(self)
9604 def set_chain_type(self, t):
9605 r"""set_chain_type(Chain self, ChainType t)"""
9606 return _IMP_atom.Chain_set_chain_type(self, t)
9610 r"""get_id_key() -> SparseStringKey"""
9611 return _IMP_atom.Chain_get_id_key()
9614 def get_label_asym_id_key():
9615 r"""get_label_asym_id_key() -> SparseStringKey"""
9616 return _IMP_atom.Chain_get_label_asym_id_key()
9619 def get_sequence_key():
9620 r"""get_sequence_key() -> SparseStringKey"""
9621 return _IMP_atom.Chain_get_sequence_key()
9624 def get_sequence_offset_key():
9625 r"""get_sequence_offset_key() -> SparseIntKey"""
9626 return _IMP_atom.Chain_get_sequence_offset_key()
9629 def get_uniprot_accession_key():
9630 r"""get_uniprot_accession_key() -> SparseStringKey"""
9631 return _IMP_atom.Chain_get_uniprot_accession_key()
9634 def get_chain_type_key():
9635 r"""get_chain_type_key() -> SparseIntKey"""
9636 return _IMP_atom.Chain_get_chain_type_key()
9638 def add_attribute(self, *args):
9640 add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
9641 add_attribute(Chain self, FloatKey a0, IMP::Float a1)
9642 add_attribute(Chain self, IntKey a0, IMP::Int a1)
9643 add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
9644 add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
9645 add_attribute(Chain self, StringKey a0, IMP::String a1)
9646 add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
9647 add_attribute(Chain self, ObjectKey a0, Object a1)
9648 add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
9649 add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
9650 add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
9651 add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9653 return _IMP_atom.Chain_add_attribute(self, *args)
9655 def get_value(self, *args):
9657 get_value(Chain self, FloatKey a0) -> IMP::Float
9658 get_value(Chain self, IntKey a0) -> IMP::Int
9659 get_value(Chain self, FloatsKey a0) -> IMP::Floats
9660 get_value(Chain self, IntsKey a0) -> IMP::Ints
9661 get_value(Chain self, StringKey a0) -> IMP::String
9662 get_value(Chain self, ParticleIndexKey a0) -> Particle
9663 get_value(Chain self, ObjectKey a0) -> Object
9664 get_value(Chain self, SparseFloatKey a0) -> IMP::Float
9665 get_value(Chain self, SparseIntKey a0) -> IMP::Int
9666 get_value(Chain self, SparseStringKey a0) -> IMP::String
9667 get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
9669 return _IMP_atom.Chain_get_value(self, *args)
9671 def set_value(self, *args):
9673 set_value(Chain self, FloatKey a0, IMP::Float a1)
9674 set_value(Chain self, IntKey a0, IMP::Int a1)
9675 set_value(Chain self, FloatsKey a0, IMP::Floats a1)
9676 set_value(Chain self, IntsKey a0, IMP::Ints a1)
9677 set_value(Chain self, StringKey a0, IMP::String a1)
9678 set_value(Chain self, ParticleIndexKey a0, Particle a1)
9679 set_value(Chain self, ObjectKey a0, Object a1)
9680 set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
9681 set_value(Chain self, SparseIntKey a0, IMP::Int a1)
9682 set_value(Chain self, SparseStringKey a0, IMP::String a1)
9683 set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9685 return _IMP_atom.Chain_set_value(self, *args)
9687 def remove_attribute(self, *args):
9689 remove_attribute(Chain self, FloatKey a0)
9690 remove_attribute(Chain self, IntKey a0)
9691 remove_attribute(Chain self, FloatsKey a0)
9692 remove_attribute(Chain self, IntsKey a0)
9693 remove_attribute(Chain self, StringKey a0)
9694 remove_attribute(Chain self, ParticleIndexKey a0)
9695 remove_attribute(Chain self, ObjectKey a0)
9696 remove_attribute(Chain self, SparseFloatKey a0)
9697 remove_attribute(Chain self, SparseIntKey a0)
9698 remove_attribute(Chain self, SparseStringKey a0)
9699 remove_attribute(Chain self, SparseParticleIndexKey a0)
9701 return _IMP_atom.Chain_remove_attribute(self, *args)
9703 def has_attribute(self, *args):
9705 has_attribute(Chain self, FloatKey a0) -> bool
9706 has_attribute(Chain self, IntKey a0) -> bool
9707 has_attribute(Chain self, FloatsKey a0) -> bool
9708 has_attribute(Chain self, IntsKey a0) -> bool
9709 has_attribute(Chain self, StringKey a0) -> bool
9710 has_attribute(Chain self, ParticleIndexKey a0) -> bool
9711 has_attribute(Chain self, ObjectKey a0) -> bool
9712 has_attribute(Chain self, SparseFloatKey a0) -> bool
9713 has_attribute(Chain self, SparseIntKey a0) -> bool
9714 has_attribute(Chain self, SparseStringKey a0) -> bool
9715 has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
9717 return _IMP_atom.Chain_has_attribute(self, *args)
9719 def get_derivative(self, a0):
9720 r"""get_derivative(Chain self, FloatKey a0) -> double"""
9721 return _IMP_atom.Chain_get_derivative(self, a0)
9724 r"""get_name(Chain self) -> std::string"""
9725 return _IMP_atom.Chain_get_name(self)
9727 def clear_caches(self):
9728 r"""clear_caches(Chain self)"""
9729 return _IMP_atom.Chain_clear_caches(self)
9731 def set_name(self, a0):
9732 r"""set_name(Chain self, std::string a0)"""
9733 return _IMP_atom.Chain_set_name(self, a0)
9736 r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
9737 return _IMP_atom.Chain_set_check_level(self, a0)
9739 def add_to_derivative(self, a0, a1, a2):
9740 r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9741 return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
9743 def set_is_optimized(self, a0, a1):
9744 r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
9745 return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
9747 def get_is_optimized(self, a0):
9748 r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
9749 return _IMP_atom.Chain_get_is_optimized(self, a0)
9752 r"""get_check_level(Chain self) -> IMP::CheckLevel"""
9753 return _IMP_atom.Chain_get_check_level(self)
9755 def __eq__(self, *args):
9757 __eq__(Chain self, Chain o) -> bool
9758 __eq__(Chain self, Particle d) -> bool
9760 return _IMP_atom.Chain___eq__(self, *args)
9762 def __ne__(self, *args):
9764 __ne__(Chain self, Chain o) -> bool
9765 __ne__(Chain self, Particle d) -> bool
9767 return _IMP_atom.Chain___ne__(self, *args)
9769 def __le__(self, *args):
9771 __le__(Chain self, Chain o) -> bool
9772 __le__(Chain self, Particle d) -> bool
9774 return _IMP_atom.Chain___le__(self, *args)
9776 def __lt__(self, *args):
9778 __lt__(Chain self, Chain o) -> bool
9779 __lt__(Chain self, Particle d) -> bool
9781 return _IMP_atom.Chain___lt__(self, *args)
9783 def __ge__(self, *args):
9785 __ge__(Chain self, Chain o) -> bool
9786 __ge__(Chain self, Particle d) -> bool
9788 return _IMP_atom.Chain___ge__(self, *args)
9790 def __gt__(self, *args):
9792 __gt__(Chain self, Chain o) -> bool
9793 __gt__(Chain self, Particle d) -> bool
9795 return _IMP_atom.Chain___gt__(self, *args)
9798 r"""__hash__(Chain self) -> std::size_t"""
9799 return _IMP_atom.Chain___hash__(self)
9802 r"""__str__(Chain self) -> std::string"""
9803 return _IMP_atom.Chain___str__(self)
9806 r"""__repr__(Chain self) -> std::string"""
9807 return _IMP_atom.Chain___repr__(self)
9809 def _get_as_binary(self):
9810 r"""_get_as_binary(Chain self) -> PyObject *"""
9811 return _IMP_atom.Chain__get_as_binary(self)
9813 def _set_from_binary(self, p):
9814 r"""_set_from_binary(Chain self, PyObject * p)"""
9815 return _IMP_atom.Chain__set_from_binary(self, p)
9817 def __getstate__(self):
9818 p = self._get_as_binary()
9819 if len(self.__dict__) > 1:
9820 d = self.__dict__.copy()
9825 def __setstate__(self, p):
9826 if not hasattr(self,
'this'):
9828 if isinstance(p, tuple):
9830 self.__dict__.update(d)
9831 return self._set_from_binary(p)
9833 __swig_destroy__ = _IMP_atom.delete_Chain
9836 _IMP_atom.Chain_swigregister(Chain)
9837 UnknownChainType = cvar.UnknownChainType
9838 DPolypeptide = cvar.DPolypeptide
9839 LPolypeptide = cvar.LPolypeptide
9840 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
9841 Polyribonucleotide = cvar.Polyribonucleotide
9842 DPolysaccharide = cvar.DPolysaccharide
9843 LPolysaccharide = cvar.LPolysaccharide
9844 Protein = cvar.Protein
9850 r"""get_chain(Hierarchy h) -> Chain"""
9851 return _IMP_atom.get_chain(h)
9854 r"""get_chain_id(Hierarchy h) -> std::string"""
9855 return _IMP_atom.get_chain_id(h)
9856 class Selection(IMP._ParticleIndexesAdaptor):
9857 r"""Proxy of C++ IMP::atom::Selection class."""
9859 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
9860 NONE = _IMP_atom.Selection_NONE
9862 C = _IMP_atom.Selection_C
9864 N = _IMP_atom.Selection_N
9867 def __init__(self, *args):
9869 __init__(Selection self) -> Selection
9870 __init__(Selection self, Hierarchy h) -> Selection
9871 __init__(Selection self, Particle h) -> Selection
9872 __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
9873 __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
9875 _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
9878 r"""create_clone(Selection self) -> Selection"""
9879 return _IMP_atom.Selection_create_clone(self)
9881 def get_hierarchies(self):
9882 r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
9883 return _IMP_atom.Selection_get_hierarchies(self)
9885 def set_molecules(self, mols):
9886 r"""set_molecules(Selection self, IMP::Strings mols)"""
9887 return _IMP_atom.Selection_set_molecules(self, mols)
9889 def set_resolution(self, r):
9890 r"""set_resolution(Selection self, double r)"""
9891 return _IMP_atom.Selection_set_resolution(self, r)
9893 def set_representation_type(self, t):
9894 r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
9895 return _IMP_atom.Selection_set_representation_type(self, t)
9897 def set_state_index(self, state):
9898 r"""set_state_index(Selection self, int state)"""
9899 return _IMP_atom.Selection_set_state_index(self, state)
9901 def set_state_indexes(self, states):
9902 r"""set_state_indexes(Selection self, IMP::Ints states)"""
9903 return _IMP_atom.Selection_set_state_indexes(self, states)
9905 def set_terminus(self, t):
9906 r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
9907 return _IMP_atom.Selection_set_terminus(self, t)
9909 def set_element(self, e):
9910 r"""set_element(Selection self, IMP::atom::Element e)"""
9911 return _IMP_atom.Selection_set_element(self, e)
9913 def set_chain_ids(self, chains):
9914 r"""set_chain_ids(Selection self, IMP::Strings chains)"""
9915 return _IMP_atom.Selection_set_chain_ids(self, chains)
9917 def set_chains(self, chains):
9918 r"""set_chains(Selection self, IMP::Strings chains)"""
9919 return _IMP_atom.Selection_set_chains(self, chains)
9921 def set_residue_indexes(self, indexes):
9922 r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
9923 return _IMP_atom.Selection_set_residue_indexes(self, indexes)
9925 def set_atom_types(self, types):
9926 r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
9927 return _IMP_atom.Selection_set_atom_types(self, types)
9929 def set_residue_types(self, types):
9930 r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
9931 return _IMP_atom.Selection_set_residue_types(self, types)
9933 def set_domains(self, names):
9934 r"""set_domains(Selection self, IMP::Strings names)"""
9935 return _IMP_atom.Selection_set_domains(self, names)
9937 def set_molecule(self, mol):
9938 r"""set_molecule(Selection self, std::string mol)"""
9939 return _IMP_atom.Selection_set_molecule(self, mol)
9941 def set_chain_id(self, c):
9942 r"""set_chain_id(Selection self, std::string c)"""
9943 return _IMP_atom.Selection_set_chain_id(self, c)
9945 def set_chain(self, c):
9946 r"""set_chain(Selection self, std::string c)"""
9947 return _IMP_atom.Selection_set_chain(self, c)
9949 def set_residue_index(self, i):
9950 r"""set_residue_index(Selection self, int i)"""
9951 return _IMP_atom.Selection_set_residue_index(self, i)
9953 def set_atom_type(self, types):
9954 r"""set_atom_type(Selection self, AtomType types)"""
9955 return _IMP_atom.Selection_set_atom_type(self, types)
9957 def set_residue_type(self, type):
9958 r"""set_residue_type(Selection self, ResidueType type)"""
9959 return _IMP_atom.Selection_set_residue_type(self, type)
9961 def set_domain(self, name):
9962 r"""set_domain(Selection self, std::string name)"""
9963 return _IMP_atom.Selection_set_domain(self, name)
9965 def set_copy_index(self, copy):
9966 r"""set_copy_index(Selection self, unsigned int copy)"""
9967 return _IMP_atom.Selection_set_copy_index(self, copy)
9969 def set_copy_indexes(self, copies):
9970 r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
9971 return _IMP_atom.Selection_set_copy_indexes(self, copies)
9973 def set_particle_type(self, t):
9974 r"""set_particle_type(Selection self, ParticleType t)"""
9975 return _IMP_atom.Selection_set_particle_type(self, t)
9977 def set_particle_types(self, t):
9978 r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
9979 return _IMP_atom.Selection_set_particle_types(self, t)
9981 def set_hierarchy_types(self, types):
9982 r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
9983 return _IMP_atom.Selection_set_hierarchy_types(self, types)
9985 def set_intersection(self, s):
9986 r"""set_intersection(Selection self, Selection s)"""
9987 return _IMP_atom.Selection_set_intersection(self, s)
9989 def set_union(self, s):
9990 r"""set_union(Selection self, Selection s)"""
9991 return _IMP_atom.Selection_set_union(self, s)
9993 def set_symmetric_difference(self, s):
9994 r"""set_symmetric_difference(Selection self, Selection s)"""
9995 return _IMP_atom.Selection_set_symmetric_difference(self, s)
9997 def set_difference(self, s):
9998 r"""set_difference(Selection self, Selection s)"""
9999 return _IMP_atom.Selection_set_difference(self, s)
10001 def get_selected_particles(self, with_representation=True):
10002 r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10003 return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10005 def get_selected_particle_indexes(self, with_representation=True):
10006 r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10007 return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10009 def show(self, *args):
10010 r"""show(Selection self, _ostream out=std::cout)"""
10011 return _IMP_atom.Selection_show(self, *args)
10014 r"""__str__(Selection self) -> std::string"""
10015 return _IMP_atom.Selection___str__(self)
10017 def __repr__(self):
10018 r"""__repr__(Selection self) -> std::string"""
10019 return _IMP_atom.Selection___repr__(self)
10021 def __init__(self, hierarchy=None,
10022 hierarchies=
None, **params):
10023 if hierarchy
and hierarchies:
10024 raise RuntimeError(
"You can't pass both hierarchy and hierarchies to Selection")
10026 this = _IMP_atom.new_Selection(hierarchy)
10027 try: self.this.append(this)
10028 except: self.this = this
10030 this = _IMP_atom.new_Selection(hierarchies)
10031 try: self.this.append(this)
10032 except: self.this = this
10034 raise ValueError(
"Either hierarchy or hierarchies must be provided.")
10035 for k
in params.keys():
10036 eval(
"self.set_%s(params[k])"%k)
10038 def union(self, s):
10039 news = self.create_clone()
10040 news.union_update(s)
10042 def intersection(self, s):
10043 news = self.create_clone()
10044 news.intersection_update(s)
10046 def symmetric_difference(self, s):
10047 news = self.create_clone()
10048 news.symmetric_difference_update(s)
10050 def difference(self, s):
10051 news = self.create_clone()
10052 news.difference_update(s)
10054 def union_update(self, s):
10057 def intersection_update(self, s):
10058 self.set_intersection(s)
10060 def symmetric_difference_update(self, s):
10061 self.set_symmetric_difference(s)
10063 def difference_update(self, s):
10064 self.set_difference(s)
10067 __and__ = intersection
10068 __xor__ = symmetric_difference
10069 __sub__ = difference
10070 __ior__ = union_update
10071 __iand__ = intersection_update
10072 __ixor__ = symmetric_difference_update
10073 __isub__ = difference_update
10075 __swig_destroy__ = _IMP_atom.delete_Selection
10078 _IMP_atom.Selection_swigregister(Selection)
10081 r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10082 return _IMP_atom.create_distance_restraint(*args)
10086 create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10087 create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10089 return _IMP_atom.create_connectivity_restraint(*args)
10093 create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10094 create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10096 return _IMP_atom.create_internal_connectivity_restraint(*args)
10099 r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10100 return _IMP_atom.create_cover(*args)
10104 get_mass(ResidueType c) -> double
10105 get_mass(Selection s) -> double
10107 return _IMP_atom.get_mass(*args)
10110 r"""get_volume(Selection s) -> double"""
10111 return _IMP_atom.get_volume(s)
10114 r"""get_surface_area(Selection s) -> double"""
10115 return _IMP_atom.get_surface_area(s)
10119 get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10120 get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10121 get_leaves(Selection h) -> IMP::atom::Hierarchies
10123 return _IMP_atom.get_leaves(*args)
10125 r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10127 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10129 def __init__(self, *args):
10130 r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10131 _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10133 def get_version_info(self):
10134 r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10135 return _IMP_atom.SelectionGeometry_get_version_info(self)
10136 __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10139 r"""__str__(SelectionGeometry self) -> std::string"""
10140 return _IMP_atom.SelectionGeometry___str__(self)
10142 def __repr__(self):
10143 r"""__repr__(SelectionGeometry self) -> std::string"""
10144 return _IMP_atom.SelectionGeometry___repr__(self)
10148 return _object_cast_to_SelectionGeometry(o)
10152 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10156 get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10157 get_rmsd(Selection s0, Selection s1) -> double
10159 return _IMP_atom.get_rmsd(*args)
10163 get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10164 get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10166 return _IMP_atom.get_rmsd_transforming_first(*args)
10169 r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10170 return _IMP_atom.get_placement_score(source, target)
10173 r"""get_component_placement_score(IMP::core::XYZs const & ref1, IMP::core::XYZs const & ref2, IMP::core::XYZs const & mdl1, IMP::core::XYZs const & mdl2) -> IMP::FloatPair"""
10174 return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10177 r"""get_pairwise_rmsd_score(IMP::core::XYZs const & ref1, IMP::core::XYZs const & ref2, IMP::core::XYZs const & mdl1, IMP::core::XYZs const & mdl2) -> double"""
10178 return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10182 get_radius_of_gyration(Selection s) -> double
10183 get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10185 return _IMP_atom.get_radius_of_gyration(*args)
10187 r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10189 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10191 def __init__(self):
10192 r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10193 _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10195 def get_radius(self, atom):
10196 r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10197 return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10199 def get_epsilon(self, atom):
10200 r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10201 return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10204 r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10205 return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10207 def add_well_depths(self, mhd):
10208 r"""add_well_depths(ForceFieldParameters self, Hierarchy mhd)"""
10209 return _IMP_atom.ForceFieldParameters_add_well_depths(self, mhd)
10212 r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10213 return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10214 __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10217 r"""__str__(ForceFieldParameters self) -> std::string"""
10218 return _IMP_atom.ForceFieldParameters___str__(self)
10220 def __repr__(self):
10221 r"""__repr__(ForceFieldParameters self) -> std::string"""
10222 return _IMP_atom.ForceFieldParameters___repr__(self)
10226 return _object_cast_to_ForceFieldParameters(o)
10230 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10231 class CHARMMAtomTopology(object):
10232 r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10234 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10236 def __init__(self, *args):
10238 __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10239 __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10240 __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10242 _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10244 def get_name(self):
10245 r"""get_name(CHARMMAtomTopology self) -> std::string"""
10246 return _IMP_atom.CHARMMAtomTopology_get_name(self)
10248 def get_charmm_type(self):
10249 r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10250 return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10252 def get_charge(self):
10253 r"""get_charge(CHARMMAtomTopology self) -> double"""
10254 return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10256 def set_charmm_type(self, charmm_type):
10257 r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10258 return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10260 def set_charge(self, charge):
10261 r"""set_charge(CHARMMAtomTopology self, double charge)"""
10262 return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10264 def show(self, *args):
10265 r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10266 return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10269 r"""__str__(CHARMMAtomTopology self) -> std::string"""
10270 return _IMP_atom.CHARMMAtomTopology___str__(self)
10272 def __repr__(self):
10273 r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10274 return _IMP_atom.CHARMMAtomTopology___repr__(self)
10276 def _get_as_binary(self):
10277 r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10278 return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10280 def _set_from_binary(self, p):
10281 r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10282 return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10284 def __getstate__(self):
10285 p = self._get_as_binary()
10286 if len(self.__dict__) > 1:
10287 d = self.__dict__.copy()
10292 def __setstate__(self, p):
10293 if not hasattr(self,
'this'):
10295 if isinstance(p, tuple):
10297 self.__dict__.update(d)
10298 return self._set_from_binary(p)
10300 __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10303 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10304 class CHARMMBondEndpoint(object):
10305 r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10307 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10309 def __init__(self, atom_name, residue=None):
10310 r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10311 _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10313 def get_atom_name(self):
10314 r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10315 return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10317 def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10318 r"""get_atom(CHARMMBondEndpoint self, CHARMMResidueTopology current_residue, CHARMMResidueTopology previous_residue, CHARMMResidueTopology next_residue, std::map< IMP::atom::CHARMMResidueTopology const *,IMP::atom::Hierarchy > const & resmap) -> Atom"""
10319 return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10321 def show(self, *args):
10322 r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10323 return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10326 r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10327 return _IMP_atom.CHARMMBondEndpoint___str__(self)
10329 def __repr__(self):
10330 r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10331 return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10332 __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10335 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10336 class CHARMMDihedral(object):
10337 r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10339 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10340 __repr__ = _swig_repr
10342 def __init__(self, atoms):
10343 r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10344 _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10346 def get_endpoint(self, i):
10347 r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10348 return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10350 def get_contains_atom(self, name):
10351 r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10352 return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10354 def show(self, *args):
10355 r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10356 return _IMP_atom.CHARMMDihedral_show(self, *args)
10357 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10360 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10361 class CHARMMInternalCoordinate(CHARMMDihedral):
10362 r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10364 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10366 def __init__(self, *args):
10368 __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10369 __init__(CHARMMInternalCoordinate self, IMP::Vector< IMP::atom::CHARMMBondEndpoint > const endpoints, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10371 _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10373 def get_first_distance(self):
10374 r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10375 return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10377 def get_second_distance(self):
10378 r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10379 return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10381 def get_first_angle(self):
10382 r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10383 return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10385 def get_second_angle(self):
10386 r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10387 return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10390 r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10391 return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10393 def get_improper(self):
10394 r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10395 return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10397 def show(self, *args):
10398 r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10399 return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10402 r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10403 return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10405 def __repr__(self):
10406 r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10407 return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10408 __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10411 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10412 class CHARMMResidueTopologyBase(
IMP.Object):
10413 r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10415 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10417 def __init__(self, *args, **kwargs):
10418 raise AttributeError(
"No constructor defined")
10420 def get_type(self):
10421 r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10422 return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10424 def get_number_of_atoms(self):
10425 r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10426 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10428 def add_atom(self, atom):
10429 r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10430 return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10434 get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10435 get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10436 get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10438 return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10440 def get_number_of_bonds(self):
10441 r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10442 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10444 def add_bond(self, bond):
10445 r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10446 return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10448 def get_number_of_angles(self):
10449 r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10450 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10452 def add_angle(self, bond):
10453 r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10454 return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10456 def get_number_of_dihedrals(self):
10457 r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10458 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10460 def add_dihedral(self, bond):
10461 r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10462 return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10464 def get_number_of_impropers(self):
10465 r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10466 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10468 def add_improper(self, bond):
10469 r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10470 return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10472 def get_number_of_internal_coordinates(self):
10473 r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10474 return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10476 def add_internal_coordinate(self, ic):
10477 r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10478 return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10480 def get_internal_coordinate(self, index):
10481 r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10482 return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10485 r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10486 return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10489 r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10490 return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10493 r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10494 return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10496 def get_improper(self, index):
10497 r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10498 return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10500 def get_version_info(self):
10501 r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10502 return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10503 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10506 r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10507 return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10509 def __repr__(self):
10510 r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10511 return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10515 return _object_cast_to_CHARMMResidueTopologyBase(o)
10519 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10520 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10521 r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10523 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10525 def __init__(self, *args):
10527 __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10528 __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10530 _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10532 def remove_atom(self, name):
10533 r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10534 return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10536 def set_default_first_patch(self, patch):
10537 r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10538 return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10540 def set_default_last_patch(self, patch):
10541 r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10542 return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10544 def get_default_first_patch(self):
10545 r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10546 return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10548 def get_default_last_patch(self):
10549 r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10550 return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10551 __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10554 r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10555 return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10557 def __repr__(self):
10558 r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10559 return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
10563 return _object_cast_to_CHARMMIdealResidueTopology(o)
10567 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
10568 class CHARMMPatch(CHARMMResidueTopologyBase):
10569 r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
10571 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10573 def __init__(self, type):
10574 r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
10575 _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
10577 def add_removed_atom(self, name):
10578 r"""add_removed_atom(CHARMMPatch self, std::string name)"""
10579 return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
10581 def get_number_of_removed_atoms(self):
10582 r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
10583 return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
10585 def get_removed_atom(self, i):
10586 r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
10587 return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
10589 def apply(self, *args):
10591 apply(CHARMMPatch self, CHARMMResidueTopology res)
10592 apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
10594 return _IMP_atom.CHARMMPatch_apply(self, *args)
10595 __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
10598 r"""__str__(CHARMMPatch self) -> std::string"""
10599 return _IMP_atom.CHARMMPatch___str__(self)
10601 def __repr__(self):
10602 r"""__repr__(CHARMMPatch self) -> std::string"""
10603 return _IMP_atom.CHARMMPatch___repr__(self)
10607 return _object_cast_to_CHARMMPatch(o)
10611 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
10612 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
10613 r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
10615 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10617 def __init__(self, *args):
10619 __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
10620 __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
10622 _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
10624 def get_patched(self):
10625 r"""get_patched(CHARMMResidueTopology self) -> bool"""
10626 return _IMP_atom.CHARMMResidueTopology_get_patched(self)
10628 def set_patched(self, patched):
10629 r"""set_patched(CHARMMResidueTopology self, bool patched)"""
10630 return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
10631 __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
10634 r"""__str__(CHARMMResidueTopology self) -> std::string"""
10635 return _IMP_atom.CHARMMResidueTopology___str__(self)
10637 def __repr__(self):
10638 r"""__repr__(CHARMMResidueTopology self) -> std::string"""
10639 return _IMP_atom.CHARMMResidueTopology___repr__(self)
10643 return _object_cast_to_CHARMMResidueTopology(o)
10647 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
10648 class CHARMMAtom(Atom):
10649 r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
10651 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10653 def __init__(self, *args):
10655 __init__(CHARMMAtom self) -> CHARMMAtom
10656 __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
10657 __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
10659 _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
10661 def show(self, *args):
10662 r"""show(CHARMMAtom self, _ostream out=std::cout)"""
10663 return _IMP_atom.CHARMMAtom_show(self, *args)
10666 def setup_particle(*args):
10668 setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
10669 setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
10671 return _IMP_atom.CHARMMAtom_setup_particle(*args)
10673 def get_charmm_type(self):
10674 r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
10675 return _IMP_atom.CHARMMAtom_get_charmm_type(self)
10677 def set_charmm_type(self, t):
10678 r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
10679 return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
10682 def get_is_setup(*args):
10684 get_is_setup(_ParticleAdaptor p) -> bool
10685 get_is_setup(Model m, ParticleIndex pi) -> bool
10687 return _IMP_atom.CHARMMAtom_get_is_setup(*args)
10690 def get_charmm_type_key():
10691 r"""get_charmm_type_key() -> StringKey"""
10692 return _IMP_atom.CHARMMAtom_get_charmm_type_key()
10694 def add_attribute(self, *args):
10696 add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
10697 add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10698 add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
10699 add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10700 add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10701 add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
10702 add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10703 add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
10704 add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10705 add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10706 add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10707 add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10709 return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
10711 def get_value(self, *args):
10713 get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
10714 get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
10715 get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
10716 get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
10717 get_value(CHARMMAtom self, StringKey a0) -> IMP::String
10718 get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
10719 get_value(CHARMMAtom self, ObjectKey a0) -> Object
10720 get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
10721 get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
10722 get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
10723 get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
10725 return _IMP_atom.CHARMMAtom_get_value(self, *args)
10727 def set_value(self, *args):
10729 set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10730 set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
10731 set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10732 set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10733 set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
10734 set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10735 set_value(CHARMMAtom self, ObjectKey a0, Object a1)
10736 set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10737 set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10738 set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10739 set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10741 return _IMP_atom.CHARMMAtom_set_value(self, *args)
10743 def remove_attribute(self, *args):
10745 remove_attribute(CHARMMAtom self, FloatKey a0)
10746 remove_attribute(CHARMMAtom self, IntKey a0)
10747 remove_attribute(CHARMMAtom self, FloatsKey a0)
10748 remove_attribute(CHARMMAtom self, IntsKey a0)
10749 remove_attribute(CHARMMAtom self, StringKey a0)
10750 remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
10751 remove_attribute(CHARMMAtom self, ObjectKey a0)
10752 remove_attribute(CHARMMAtom self, SparseFloatKey a0)
10753 remove_attribute(CHARMMAtom self, SparseIntKey a0)
10754 remove_attribute(CHARMMAtom self, SparseStringKey a0)
10755 remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
10757 return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
10759 def has_attribute(self, *args):
10761 has_attribute(CHARMMAtom self, FloatKey a0) -> bool
10762 has_attribute(CHARMMAtom self, IntKey a0) -> bool
10763 has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
10764 has_attribute(CHARMMAtom self, IntsKey a0) -> bool
10765 has_attribute(CHARMMAtom self, StringKey a0) -> bool
10766 has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
10767 has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
10768 has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
10769 has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
10770 has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
10771 has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
10773 return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
10775 def get_derivative(self, a0):
10776 r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
10777 return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
10779 def get_name(self):
10780 r"""get_name(CHARMMAtom self) -> std::string"""
10781 return _IMP_atom.CHARMMAtom_get_name(self)
10783 def clear_caches(self):
10784 r"""clear_caches(CHARMMAtom self)"""
10785 return _IMP_atom.CHARMMAtom_clear_caches(self)
10787 def set_name(self, a0):
10788 r"""set_name(CHARMMAtom self, std::string a0)"""
10789 return _IMP_atom.CHARMMAtom_set_name(self, a0)
10792 r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
10793 return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
10795 def add_to_derivative(self, a0, a1, a2):
10796 r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10797 return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
10799 def set_is_optimized(self, a0, a1):
10800 r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
10801 return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
10803 def get_is_optimized(self, a0):
10804 r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
10805 return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
10808 r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
10809 return _IMP_atom.CHARMMAtom_get_check_level(self)
10811 def __eq__(self, *args):
10813 __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
10814 __eq__(CHARMMAtom self, Particle d) -> bool
10816 return _IMP_atom.CHARMMAtom___eq__(self, *args)
10818 def __ne__(self, *args):
10820 __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
10821 __ne__(CHARMMAtom self, Particle d) -> bool
10823 return _IMP_atom.CHARMMAtom___ne__(self, *args)
10825 def __le__(self, *args):
10827 __le__(CHARMMAtom self, CHARMMAtom o) -> bool
10828 __le__(CHARMMAtom self, Particle d) -> bool
10830 return _IMP_atom.CHARMMAtom___le__(self, *args)
10832 def __lt__(self, *args):
10834 __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
10835 __lt__(CHARMMAtom self, Particle d) -> bool
10837 return _IMP_atom.CHARMMAtom___lt__(self, *args)
10839 def __ge__(self, *args):
10841 __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
10842 __ge__(CHARMMAtom self, Particle d) -> bool
10844 return _IMP_atom.CHARMMAtom___ge__(self, *args)
10846 def __gt__(self, *args):
10848 __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
10849 __gt__(CHARMMAtom self, Particle d) -> bool
10851 return _IMP_atom.CHARMMAtom___gt__(self, *args)
10853 def __hash__(self):
10854 r"""__hash__(CHARMMAtom self) -> std::size_t"""
10855 return _IMP_atom.CHARMMAtom___hash__(self)
10858 r"""__str__(CHARMMAtom self) -> std::string"""
10859 return _IMP_atom.CHARMMAtom___str__(self)
10861 def __repr__(self):
10862 r"""__repr__(CHARMMAtom self) -> std::string"""
10863 return _IMP_atom.CHARMMAtom___repr__(self)
10865 def _get_as_binary(self):
10866 r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
10867 return _IMP_atom.CHARMMAtom__get_as_binary(self)
10869 def _set_from_binary(self, p):
10870 r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
10871 return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
10873 def __getstate__(self):
10874 p = self._get_as_binary()
10875 if len(self.__dict__) > 1:
10876 d = self.__dict__.copy()
10881 def __setstate__(self, p):
10882 if not hasattr(self,
'this'):
10884 if isinstance(p, tuple):
10886 self.__dict__.update(d)
10887 return self._set_from_binary(p)
10889 __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
10892 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
10895 r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
10896 return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
10899 r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
10900 return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
10901 class CHARMMBondParameters(object):
10902 r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
10904 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10905 force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=
r"""force_constant : double""")
10906 ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=
r"""ideal : double""")
10908 def __init__(self):
10909 r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
10910 _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
10912 def show(self, *args):
10913 r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
10914 return _IMP_atom.CHARMMBondParameters_show(self, *args)
10917 r"""__str__(CHARMMBondParameters self) -> std::string"""
10918 return _IMP_atom.CHARMMBondParameters___str__(self)
10920 def __repr__(self):
10921 r"""__repr__(CHARMMBondParameters self) -> std::string"""
10922 return _IMP_atom.CHARMMBondParameters___repr__(self)
10924 def _get_as_binary(self):
10925 r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
10926 return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
10928 def _set_from_binary(self, p):
10929 r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
10930 return _IMP_atom.CHARMMBondParameters__set_from_binary(self, p)
10932 def __getstate__(self):
10933 p = self._get_as_binary()
10934 if len(self.__dict__) > 1:
10935 d = self.__dict__.copy()
10940 def __setstate__(self, p):
10941 if not hasattr(self,
'this'):
10943 if isinstance(p, tuple):
10945 self.__dict__.update(d)
10946 return self._set_from_binary(p)
10948 __swig_destroy__ = _IMP_atom.delete_CHARMMBondParameters
10951 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
10952 class CHARMMDihedralParameters(object):
10953 r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
10955 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
10956 force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=
r"""force_constant : double""")
10957 multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=
r"""multiplicity : int""")
10958 ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=
r"""ideal : double""")
10960 def __init__(self):
10961 r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
10962 _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
10964 def show(self, *args):
10965 r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
10966 return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
10969 r"""__str__(CHARMMDihedralParameters self) -> std::string"""
10970 return _IMP_atom.CHARMMDihedralParameters___str__(self)
10972 def __repr__(self):
10973 r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
10974 return _IMP_atom.CHARMMDihedralParameters___repr__(self)
10976 def _get_as_binary(self):
10977 r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
10978 return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
10980 def _set_from_binary(self, p):
10981 r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
10982 return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
10984 def __getstate__(self):
10985 p = self._get_as_binary()
10986 if len(self.__dict__) > 1:
10987 d = self.__dict__.copy()
10992 def __setstate__(self, p):
10993 if not hasattr(self,
'this'):
10995 if isinstance(p, tuple):
10997 self.__dict__.update(d)
10998 return self._set_from_binary(p)
11000 __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11003 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11004 class CHARMMParameters(ForceFieldParameters):
11005 r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11007 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11009 def __init__(self, *args):
11010 r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11011 _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11013 def add_residue_topology(self, res):
11014 r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11015 return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11017 def get_residue_topology(self, type):
11018 r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11019 return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11021 def add_patch(self, patch):
11022 r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11023 return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11025 def get_patch(self, name):
11026 r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11027 return _IMP_atom.CHARMMParameters_get_patch(self, name)
11029 def create_topology(self, hierarchy):
11030 r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11031 return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11033 def get_bond_parameters(self, type1, type2):
11034 r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11035 return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11037 def get_angle_parameters(self, type1, type2, type3):
11038 r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11039 return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11041 def get_dihedral_parameters(self, type1, type2, type3, type4):
11042 r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11043 return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11045 def get_improper_parameters(self, type1, type2, type3, type4):
11046 r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11047 return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11049 def create_angles(self, bonds):
11050 r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11051 return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11053 def create_dihedrals(self, bonds):
11054 r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11055 return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11057 def get_version_info(self):
11058 r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11059 return _IMP_atom.CHARMMParameters_get_version_info(self)
11060 __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11063 r"""__str__(CHARMMParameters self) -> std::string"""
11064 return _IMP_atom.CHARMMParameters___str__(self)
11066 def __repr__(self):
11067 r"""__repr__(CHARMMParameters self) -> std::string"""
11068 return _IMP_atom.CHARMMParameters___repr__(self)
11072 return _object_cast_to_CHARMMParameters(o)
11076 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11079 r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11080 return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11083 r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11084 return _IMP_atom.get_all_atom_CHARMM_parameters()
11086 r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11088 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11089 def __get_residues(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_residues, getfunc=self.get_residue, erasefunc=self.erase_residue, appendfunc=self.add_residue, extendfunc=self.add_residues, clearfunc=self.clear_residues, indexfunc=self._python_index_residue)
11090 def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11091 def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11092 residues = property(__get_residues, __set_residues, __del_residues, doc=
"List of ##ucnames")
11094 def remove_residue(self, d):
11095 r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11096 return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11098 def _python_index_residue(self, d, start, stop):
11099 r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11100 return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11102 def remove_residues(self, d):
11103 r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11104 return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11106 def set_residues(self, ps):
11107 r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11108 return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11110 def set_residues_order(self, objs):
11111 r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11112 return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11114 def add_residue(self, obj):
11115 r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11116 return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11118 def add_residues(self, objs):
11119 r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11120 return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11122 def clear_residues(self):
11123 r"""clear_residues(CHARMMSegmentTopology self)"""
11124 return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11126 def get_number_of_residues(self):
11127 r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11128 return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11130 def get_has_residues(self):
11131 r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11132 return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11135 r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11136 return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11138 def get_residues(self):
11139 r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11140 return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11142 def erase_residue(self, i):
11143 r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11144 return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11146 def reserve_residues(self, sz):
11147 r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11148 return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11150 def get_version_info(self):
11151 r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11152 return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11153 __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11155 def __init__(self, *args):
11156 r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11157 _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11159 def apply_default_patches(self, ff):
11160 r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11161 return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11164 r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11165 return _IMP_atom.CHARMMSegmentTopology___str__(self)
11167 def __repr__(self):
11168 r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11169 return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11173 return _object_cast_to_CHARMMSegmentTopology(o)
11177 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11179 r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11181 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11183 def __init__(self, *args):
11184 r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11185 _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11187 def get_parameters(self):
11188 r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11189 return _IMP_atom.CHARMMTopology_get_parameters(self)
11191 def add_sequence(self, sequence):
11192 r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11193 return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11195 def apply_default_patches(self):
11196 r"""apply_default_patches(CHARMMTopology self)"""
11197 return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11199 def create_hierarchy(self, model):
11200 r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11201 return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11203 def add_atom_types(self, hierarchy):
11204 r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11205 return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11207 def add_coordinates(self, hierarchy):
11208 r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11209 return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11211 def add_missing_atoms(self, hierarchy):
11212 r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11213 return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11215 def setup_hierarchy(self, hierarchy):
11216 r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11217 return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11219 def add_charges(self, hierarchy):
11220 r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11221 return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11224 r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11225 return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11227 def add_dihedrals(self, hierarchy):
11228 r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11229 return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11231 def add_impropers(self, hierarchy):
11232 r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11233 return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11234 def __get_segments(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_segments, getfunc=self.get_segment, erasefunc=self.erase_segment, appendfunc=self.add_segment, extendfunc=self.add_segments, clearfunc=self.clear_segments, indexfunc=self._python_index_segment)
11235 def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11236 def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11237 segments = property(__get_segments, __set_segments, __del_segments, doc=
"List of ##ucnames")
11239 def remove_segment(self, d):
11240 r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11241 return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11243 def _python_index_segment(self, d, start, stop):
11244 r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11245 return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11247 def remove_segments(self, d):
11248 r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11249 return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11251 def set_segments(self, ps):
11252 r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11253 return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11255 def set_segments_order(self, objs):
11256 r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11257 return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11259 def add_segment(self, obj):
11260 r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11261 return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11263 def add_segments(self, objs):
11264 r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11265 return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11267 def clear_segments(self):
11268 r"""clear_segments(CHARMMTopology self)"""
11269 return _IMP_atom.CHARMMTopology_clear_segments(self)
11271 def get_number_of_segments(self):
11272 r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11273 return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11275 def get_has_segments(self):
11276 r"""get_has_segments(CHARMMTopology self) -> bool"""
11277 return _IMP_atom.CHARMMTopology_get_has_segments(self)
11280 r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11281 return _IMP_atom.CHARMMTopology_get_segment(self, i)
11283 def get_segments(self):
11284 r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11285 return _IMP_atom.CHARMMTopology_get_segments(self)
11287 def erase_segment(self, i):
11288 r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11289 return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11291 def reserve_segments(self, sz):
11292 r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11293 return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11295 def get_version_info(self):
11296 r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11297 return _IMP_atom.CHARMMTopology_get_version_info(self)
11298 __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11301 r"""__str__(CHARMMTopology self) -> std::string"""
11302 return _IMP_atom.CHARMMTopology___str__(self)
11304 def __repr__(self):
11305 r"""__repr__(CHARMMTopology self) -> std::string"""
11306 return _IMP_atom.CHARMMTopology___repr__(self)
11310 return _object_cast_to_CHARMMTopology(o)
11314 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11316 r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11318 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11320 def __init__(self, *args):
11322 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11323 __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11325 _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11327 def get_pair_filter(self):
11328 r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11329 return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11331 def get_full_pair_filter(self):
11332 r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11333 return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11335 def do_get_inputs(self):
11336 r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11337 return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11339 def get_version_info(self):
11340 r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11341 return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11342 __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11345 r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11346 return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11348 def __repr__(self):
11349 r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11350 return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11354 return _object_cast_to_CHARMMStereochemistryRestraint(o)
11358 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11361 r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11362 return _IMP_atom.add_bonds(*args)
11365 r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11366 return _IMP_atom.add_radii(*args)
11367 ALBER = _IMP_atom.ALBER
11369 HARPAZ = _IMP_atom.HARPAZ
11371 ANDERSSON = _IMP_atom.ANDERSSON
11373 TSAI = _IMP_atom.TSAI
11375 QUILLIN = _IMP_atom.QUILLIN
11377 SQUIRE = _IMP_atom.SQUIRE
11381 r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11382 return _IMP_atom.get_protein_density_from_reference(densityReference)
11385 r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11386 return _IMP_atom.get_volume_from_mass(*args)
11389 r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11390 return _IMP_atom.get_mass_from_volume(*args)
11393 r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11394 return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11397 r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11398 return _IMP_atom.get_volume_from_residue_type(rt)
11401 r"""get_molarity(double n, double volume) -> double"""
11402 return _IMP_atom.get_molarity(n, volume)
11404 def get_kd(na, nb, nab, volume):
11405 r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11406 return _IMP_atom.get_kd(na, nb, nab, volume)
11409 r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11410 return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11413 r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11414 return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11418 get_diffusion_length(double D, double t) -> double
11419 get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11421 return _IMP_atom.get_diffusion_length(*args)
11424 r"""get_diffusion_angle(double D, double dtfs) -> double"""
11425 return _IMP_atom.get_diffusion_angle(D, dtfs)
11429 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11430 get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11432 return _IMP_atom.get_diffusion_coefficient(*args)
11435 r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11436 return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11438 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11439 r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11440 return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11443 r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11444 return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11447 r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11448 return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11450 r"""Proxy of C++ IMP::atom::EzRestraint class."""
11452 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11454 def __init__(self, m, ps):
11455 r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11456 _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11458 def get_version_info(self):
11459 r"""get_version_info(EzRestraint self) -> VersionInfo"""
11460 return _IMP_atom.EzRestraint_get_version_info(self)
11461 __swig_destroy__ = _IMP_atom.delete_EzRestraint
11464 r"""__str__(EzRestraint self) -> std::string"""
11465 return _IMP_atom.EzRestraint___str__(self)
11467 def __repr__(self):
11468 r"""__repr__(EzRestraint self) -> std::string"""
11469 return _IMP_atom.EzRestraint___repr__(self)
11473 return _object_cast_to_EzRestraint(o)
11477 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11481 create_protein(Model m, std::string name, double target_radius, int number_of_residues, int first_residue_index=0, double volume=-1, bool ismol=True) -> Hierarchy
11482 create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11484 return _IMP_atom.create_protein(*args)
11488 create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False) -> Hierarchy
11489 create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False) -> Hierarchy
11491 return _IMP_atom.create_simplified_along_backbone(*args)
11494 r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11495 return _IMP_atom.create_simplified_from_volume(h, resolution)
11498 r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11499 return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11501 def get_residue_indexes(h):
11502 r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11503 return _IMP_atom.get_residue_indexes(h)
11505 def get_residue_type(*args):
11507 get_residue_type(char c) -> ResidueType
11508 get_residue_type(Hierarchy h) -> ResidueType
11510 return _IMP_atom.get_residue_type(*args)
11512 def get_atom_type(h):
11513 r"""get_atom_type(Hierarchy h) -> AtomType"""
11514 return _IMP_atom.get_atom_type(h)
11516 def get_domain_name(h):
11517 r"""get_domain_name(Hierarchy h) -> std::string"""
11518 return _IMP_atom.get_domain_name(h)
11522 create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11523 create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11525 return _IMP_atom.create_excluded_volume_restraint(*args)
11529 setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11530 setup_as_approximation(Hierarchy h, double resolution=-1)
11532 return _IMP_atom.setup_as_approximation(*args)
11533 class _HierarchyTreeVertexIndex(object):
11534 r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11536 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11537 __repr__ = _swig_repr
11539 def __init__(self):
11540 r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11541 _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11542 __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11545 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11547 def show_as_graphviz(name, out):
11548 r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11549 return _IMP_atom.show_as_graphviz(name, out)
11551 def get_vertex_index(g):
11552 r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11553 return _IMP_atom.get_vertex_index(g)
11556 r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11557 return _IMP_atom.get_hierarchy_tree(h)
11559 r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
11561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11563 def __init__(self, d, resolution=0):
11564 r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
11565 _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
11567 def get_version_info(self):
11568 r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
11569 return _IMP_atom.HierarchyGeometry_get_version_info(self)
11570 __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
11573 r"""__str__(HierarchyGeometry self) -> std::string"""
11574 return _IMP_atom.HierarchyGeometry___str__(self)
11576 def __repr__(self):
11577 r"""__repr__(HierarchyGeometry self) -> std::string"""
11578 return _IMP_atom.HierarchyGeometry___repr__(self)
11582 return _object_cast_to_HierarchyGeometry(o)
11586 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
11588 r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
11590 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11592 def __init__(self, sc, resolution=-1):
11593 r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
11594 _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
11596 def get_version_info(self):
11597 r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
11598 return _IMP_atom.HierarchiesGeometry_get_version_info(self)
11599 __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
11602 r"""__str__(HierarchiesGeometry self) -> std::string"""
11603 return _IMP_atom.HierarchiesGeometry___str__(self)
11605 def __repr__(self):
11606 r"""__repr__(HierarchiesGeometry self) -> std::string"""
11607 return _IMP_atom.HierarchiesGeometry___repr__(self)
11611 return _object_cast_to_HierarchiesGeometry(o)
11615 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
11619 transform(Hierarchy h, Transformation3D tr)
11620 transform(Hierarchy h, Transformation3D tr)
11622 return _IMP_atom.transform(*args)
11623 class DopePairScore(_ADopeBase):
11624 r"""Proxy of C++ IMP::atom::DopePairScore class."""
11626 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11628 def __init__(self, *args):
11630 __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
11631 __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
11633 _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
11636 r"""__str__(DopePairScore self) -> std::string"""
11637 return _IMP_atom.DopePairScore___str__(self)
11639 def __repr__(self):
11640 r"""__repr__(DopePairScore self) -> std::string"""
11641 return _IMP_atom.DopePairScore___repr__(self)
11645 return _object_cast_to_DopePairScore(o)
11647 __swig_destroy__ = _IMP_atom.delete_DopePairScore
11650 _IMP_atom.DopePairScore_swigregister(DopePairScore)
11653 r"""add_dope_score_data(Hierarchy h)"""
11654 return _IMP_atom.add_dope_score_data(h)
11655 class LoopStatisticalPairScore(_ALoopStatisticalBase):
11656 r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
11658 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11660 def __init__(self, *args):
11662 __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
11663 __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
11665 _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
11668 r"""__str__(LoopStatisticalPairScore self) -> std::string"""
11669 return _IMP_atom.LoopStatisticalPairScore___str__(self)
11671 def __repr__(self):
11672 r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
11673 return _IMP_atom.LoopStatisticalPairScore___repr__(self)
11677 return _object_cast_to_LoopStatisticalPairScore(o)
11679 __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
11682 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
11685 r"""add_loop_statistical_score_data(Hierarchy h)"""
11686 return _IMP_atom.add_loop_statistical_score_data(h)
11687 class OrientedSoapPairScore(_OrientedSoapBase):
11688 r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
11690 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11692 def __init__(self, library):
11693 r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
11694 _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
11696 def get_pair_filter(self):
11697 r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
11698 return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
11701 r"""__str__(OrientedSoapPairScore self) -> std::string"""
11702 return _IMP_atom.OrientedSoapPairScore___str__(self)
11704 def __repr__(self):
11705 r"""__repr__(OrientedSoapPairScore self) -> std::string"""
11706 return _IMP_atom.OrientedSoapPairScore___repr__(self)
11710 return _object_cast_to_OrientedSoapPairScore(o)
11712 __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
11715 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
11717 r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
11719 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11721 def __init__(self):
11722 r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
11723 _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
11725 def do_get_inputs(self, m, pis):
11726 r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11727 return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
11729 def get_value(self, *args):
11731 get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
11732 get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11734 return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
11736 def get_value_index(self, *args):
11738 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
11739 get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11741 return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
11743 def get_version_info(self):
11744 r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
11745 return _IMP_atom.SameResiduePairFilter_get_version_info(self)
11746 __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
11749 r"""__str__(SameResiduePairFilter self) -> std::string"""
11750 return _IMP_atom.SameResiduePairFilter___str__(self)
11752 def __repr__(self):
11753 r"""__repr__(SameResiduePairFilter self) -> std::string"""
11754 return _IMP_atom.SameResiduePairFilter___repr__(self)
11758 return _object_cast_to_SameResiduePairFilter(o)
11762 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
11764 r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
11766 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11768 def __init__(self, m, pis):
11769 r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
11770 _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
11772 def set_particles(self, pis):
11773 r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
11774 return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
11776 def remove_rigid_motion(self):
11777 r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
11778 return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
11780 def get_version_info(self):
11781 r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
11782 return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
11783 __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
11786 r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
11787 return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
11789 def __repr__(self):
11790 r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
11791 return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
11795 return _object_cast_to_RemoveRigidMotionOptimizerState(o)
11799 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
11801 r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
11803 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11805 def __init__(self, pis, temperature, tau):
11806 r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
11807 _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
11809 def set_particles(self, pis):
11810 r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
11811 return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
11813 def get_temperature(self):
11814 r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
11815 return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
11818 r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
11819 return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
11821 def set_temperature(self, temperature):
11822 r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
11823 return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
11825 def set_tau(self, tau):
11826 r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
11827 return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
11829 def rescale_velocities(self):
11830 r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
11831 return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
11833 def get_version_info(self):
11834 r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
11835 return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
11836 __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
11839 r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
11840 return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
11842 def __repr__(self):
11843 r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
11844 return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
11848 return _object_cast_to_BerendsenThermostatOptimizerState(o)
11852 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
11854 r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
11856 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11858 def __init__(self, m, pis, temperature, gamma):
11859 r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
11860 _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
11862 def set_particles(self, pis):
11863 r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
11864 return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
11866 def get_temperature(self):
11867 r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
11868 return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
11870 def get_gamma(self):
11871 r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
11872 return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
11874 def set_temperature(self, temperature):
11875 r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
11876 return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
11878 def set_gamma(self, gamma):
11879 r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
11880 return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
11882 def rescale_velocities(self):
11883 r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
11884 return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
11886 def get_version_info(self):
11887 r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
11888 return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
11889 __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
11892 r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
11893 return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
11895 def __repr__(self):
11896 r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
11897 return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
11901 return _object_cast_to_LangevinThermostatOptimizerState(o)
11905 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
11906 class PDBRecord(IMP._Value):
11907 r"""Proxy of C++ IMP::atom::PDBRecord class."""
11909 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11911 def __init__(self):
11912 r"""__init__(PDBRecord self) -> PDBRecord"""
11913 _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
11915 def get_alt_loc_indicator(self):
11916 r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
11917 return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
11919 def get_is_atom(self):
11920 r"""get_is_atom(PDBRecord self) -> bool"""
11921 return _IMP_atom.PDBRecord_get_is_atom(self)
11923 def get_trimmed_atom_name(self):
11924 r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
11925 return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
11927 def get_padded_atom_name(self):
11928 r"""get_padded_atom_name(PDBRecord self) -> std::string"""
11929 return _IMP_atom.PDBRecord_get_padded_atom_name(self)
11931 def get_residue_name(self):
11932 r"""get_residue_name(PDBRecord self) -> std::string"""
11933 return _IMP_atom.PDBRecord_get_residue_name(self)
11936 r"""get_chain_id(PDBRecord self) -> std::string"""
11937 return _IMP_atom.PDBRecord_get_chain_id(self)
11939 def get_element(self):
11940 r"""get_element(PDBRecord self) -> std::string"""
11941 return _IMP_atom.PDBRecord_get_element(self)
11943 def show(self, *args):
11944 r"""show(PDBRecord self, _ostream out=std::cout)"""
11945 return _IMP_atom.PDBRecord_show(self, *args)
11948 r"""__str__(PDBRecord self) -> std::string"""
11949 return _IMP_atom.PDBRecord___str__(self)
11951 def __repr__(self):
11952 r"""__repr__(PDBRecord self) -> std::string"""
11953 return _IMP_atom.PDBRecord___repr__(self)
11954 __swig_destroy__ = _IMP_atom.delete_PDBRecord
11957 _IMP_atom.PDBRecord_swigregister(PDBRecord)
11959 r"""Proxy of C++ IMP::atom::PDBSelector class."""
11961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
11963 def __init__(self, name):
11964 r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
11965 if self.__class__ == PDBSelector:
11969 _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
11971 if self.__class__ != PDBSelector:
11972 _director_objects.register(self)
11977 def get_is_selected(self, record):
11978 r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
11979 return _IMP_atom.PDBSelector_get_is_selected(self, record)
11980 __swig_destroy__ = _IMP_atom.delete_PDBSelector
11983 r"""__str__(PDBSelector self) -> std::string"""
11984 return _IMP_atom.PDBSelector___str__(self)
11986 def __repr__(self):
11987 r"""__repr__(PDBSelector self) -> std::string"""
11988 return _IMP_atom.PDBSelector___repr__(self)
11992 return _object_cast_to_PDBSelector(o)
11995 def get_type_name(self):
11996 return self.__class__.__name__
11997 def do_show(self, out):
11999 def get_version_info(self):
12000 if"IMP::atom" ==
"IMP":
12001 return VersionInfo(self.__module__,
12008 return _object_cast_to_PDBSelector(o)
12011 def __and__(self, s):
12012 return AndPDBSelector(self, s)
12013 def __or__(self, s):
12014 return OrPDBSelector(self, s)
12015 def __xor__(self, s):
12016 return XorPDBSelector(self, s)
12017 def __invert__(self):
12018 return NotPDBSelector(self)
12019 def __sub__(self, s):
12020 return AndPDBSelector(self, NotPDBSelector(s))
12022 def __disown__(self):
12024 _IMP_atom.disown_PDBSelector(self)
12025 return weakref.proxy(self)
12027 def do_destroy(self):
12028 r"""do_destroy(PDBSelector self)"""
12029 return _IMP_atom.PDBSelector_do_destroy(self)
12032 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12033 class NonAlternativePDBSelector(PDBSelector):
12034 r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12036 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12038 def __init__(self, *args):
12039 r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12040 _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12042 def get_version_info(self):
12043 r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12044 return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12045 __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12048 r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12049 return _IMP_atom.NonAlternativePDBSelector___str__(self)
12051 def __repr__(self):
12052 r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12053 return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12057 return _object_cast_to_NonAlternativePDBSelector(o)
12061 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12062 class ATOMPDBSelector(NonAlternativePDBSelector):
12063 r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12065 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12067 def __init__(self, *args):
12068 r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12069 _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12070 __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12073 r"""__str__(ATOMPDBSelector self) -> std::string"""
12074 return _IMP_atom.ATOMPDBSelector___str__(self)
12076 def __repr__(self):
12077 r"""__repr__(ATOMPDBSelector self) -> std::string"""
12078 return _IMP_atom.ATOMPDBSelector___repr__(self)
12082 return _object_cast_to_ATOMPDBSelector(o)
12086 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12087 class CAlphaPDBSelector(NonAlternativePDBSelector):
12088 r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12090 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12092 def __init__(self, *args):
12093 r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12094 _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12095 __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12098 r"""__str__(CAlphaPDBSelector self) -> std::string"""
12099 return _IMP_atom.CAlphaPDBSelector___str__(self)
12101 def __repr__(self):
12102 r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12103 return _IMP_atom.CAlphaPDBSelector___repr__(self)
12107 return _object_cast_to_CAlphaPDBSelector(o)
12111 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12112 class CBetaPDBSelector(NonAlternativePDBSelector):
12113 r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12115 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12117 def __init__(self, *args):
12118 r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12119 _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12120 __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12123 r"""__str__(CBetaPDBSelector self) -> std::string"""
12124 return _IMP_atom.CBetaPDBSelector___str__(self)
12126 def __repr__(self):
12127 r"""__repr__(CBetaPDBSelector self) -> std::string"""
12128 return _IMP_atom.CBetaPDBSelector___repr__(self)
12132 return _object_cast_to_CBetaPDBSelector(o)
12136 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12137 class AtomTypePDBSelector(PDBSelector):
12138 r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12140 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12142 def __init__(self, *args):
12143 r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12144 _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12146 def get_version_info(self):
12147 r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12148 return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12149 __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12152 r"""__str__(AtomTypePDBSelector self) -> std::string"""
12153 return _IMP_atom.AtomTypePDBSelector___str__(self)
12155 def __repr__(self):
12156 r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12157 return _IMP_atom.AtomTypePDBSelector___repr__(self)
12161 return _object_cast_to_AtomTypePDBSelector(o)
12165 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12166 class ResidueTypePDBSelector(PDBSelector):
12167 r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12169 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12171 def __init__(self, *args):
12172 r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12173 _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12175 def get_version_info(self):
12176 r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12177 return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12178 __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12181 r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12182 return _IMP_atom.ResidueTypePDBSelector___str__(self)
12184 def __repr__(self):
12185 r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12186 return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12190 return _object_cast_to_ResidueTypePDBSelector(o)
12194 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12195 class CPDBSelector(NonAlternativePDBSelector):
12196 r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12198 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12200 def __init__(self, *args):
12201 r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12202 _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12203 __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12206 r"""__str__(CPDBSelector self) -> std::string"""
12207 return _IMP_atom.CPDBSelector___str__(self)
12209 def __repr__(self):
12210 r"""__repr__(CPDBSelector self) -> std::string"""
12211 return _IMP_atom.CPDBSelector___repr__(self)
12215 return _object_cast_to_CPDBSelector(o)
12219 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12220 class NPDBSelector(NonAlternativePDBSelector):
12221 r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12223 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12225 def __init__(self, *args):
12226 r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12227 _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12228 __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12231 r"""__str__(NPDBSelector self) -> std::string"""
12232 return _IMP_atom.NPDBSelector___str__(self)
12234 def __repr__(self):
12235 r"""__repr__(NPDBSelector self) -> std::string"""
12236 return _IMP_atom.NPDBSelector___repr__(self)
12240 return _object_cast_to_NPDBSelector(o)
12244 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12245 class AllPDBSelector(PDBSelector):
12246 r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12248 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12250 def __init__(self, *args):
12251 r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12252 _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12254 def get_version_info(self):
12255 r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12256 return _IMP_atom.AllPDBSelector_get_version_info(self)
12257 __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12260 r"""__str__(AllPDBSelector self) -> std::string"""
12261 return _IMP_atom.AllPDBSelector___str__(self)
12263 def __repr__(self):
12264 r"""__repr__(AllPDBSelector self) -> std::string"""
12265 return _IMP_atom.AllPDBSelector___repr__(self)
12269 return _object_cast_to_AllPDBSelector(o)
12273 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12274 class ChainPDBSelector(NonAlternativePDBSelector):
12275 r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12277 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12278 __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12280 def __init__(self, *args):
12281 r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12282 _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12285 r"""__str__(ChainPDBSelector self) -> std::string"""
12286 return _IMP_atom.ChainPDBSelector___str__(self)
12288 def __repr__(self):
12289 r"""__repr__(ChainPDBSelector self) -> std::string"""
12290 return _IMP_atom.ChainPDBSelector___repr__(self)
12294 return _object_cast_to_ChainPDBSelector(o)
12298 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12299 class WaterPDBSelector(NonAlternativePDBSelector):
12300 r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12302 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12304 def __init__(self, *args):
12305 r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12306 _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12307 __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12310 r"""__str__(WaterPDBSelector self) -> std::string"""
12311 return _IMP_atom.WaterPDBSelector___str__(self)
12313 def __repr__(self):
12314 r"""__repr__(WaterPDBSelector self) -> std::string"""
12315 return _IMP_atom.WaterPDBSelector___repr__(self)
12319 return _object_cast_to_WaterPDBSelector(o)
12323 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12324 class HydrogenPDBSelector(NonAlternativePDBSelector):
12325 r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12327 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12329 def __init__(self, *args):
12330 r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12331 _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12332 __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12335 r"""__str__(HydrogenPDBSelector self) -> std::string"""
12336 return _IMP_atom.HydrogenPDBSelector___str__(self)
12338 def __repr__(self):
12339 r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12340 return _IMP_atom.HydrogenPDBSelector___repr__(self)
12344 return _object_cast_to_HydrogenPDBSelector(o)
12348 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12349 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12350 r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12352 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12353 __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12355 def __init__(self, *args):
12357 __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12358 __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12360 _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12363 r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12364 return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12366 def __repr__(self):
12367 r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12368 return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12372 return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12376 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12377 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12378 r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12380 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12381 __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12383 def __init__(self, *args):
12385 __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12386 __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12388 _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12391 r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12392 return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12394 def __repr__(self):
12395 r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12396 return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12400 return _object_cast_to_NonHydrogenPDBSelector(o)
12404 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12405 class NonWaterPDBSelector(NonAlternativePDBSelector):
12406 r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12408 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12409 __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12411 def __init__(self, *args):
12413 __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12414 __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12416 _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12419 r"""__str__(NonWaterPDBSelector self) -> std::string"""
12420 return _IMP_atom.NonWaterPDBSelector___str__(self)
12422 def __repr__(self):
12423 r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12424 return _IMP_atom.NonWaterPDBSelector___repr__(self)
12428 return _object_cast_to_NonWaterPDBSelector(o)
12432 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12433 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12434 r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12436 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12438 def __init__(self, *args):
12439 r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12440 _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12441 __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12444 r"""__str__(BackbonePDBSelector self) -> std::string"""
12445 return _IMP_atom.BackbonePDBSelector___str__(self)
12447 def __repr__(self):
12448 r"""__repr__(BackbonePDBSelector self) -> std::string"""
12449 return _IMP_atom.BackbonePDBSelector___repr__(self)
12453 return _object_cast_to_BackbonePDBSelector(o)
12457 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
12458 class PPDBSelector(NonAlternativePDBSelector):
12459 r"""Proxy of C++ IMP::atom::PPDBSelector class."""
12461 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12463 def __init__(self, *args):
12464 r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
12465 _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
12466 __swig_destroy__ = _IMP_atom.delete_PPDBSelector
12469 r"""__str__(PPDBSelector self) -> std::string"""
12470 return _IMP_atom.PPDBSelector___str__(self)
12472 def __repr__(self):
12473 r"""__repr__(PPDBSelector self) -> std::string"""
12474 return _IMP_atom.PPDBSelector___repr__(self)
12478 return _object_cast_to_PPDBSelector(o)
12482 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
12483 class AndPDBSelector(PDBSelector):
12484 r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
12486 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12488 def get_version_info(self):
12489 r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
12490 return _IMP_atom.AndPDBSelector_get_version_info(self)
12491 __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
12493 def __init__(self, a, b):
12494 r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
12495 _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
12498 r"""__str__(AndPDBSelector self) -> std::string"""
12499 return _IMP_atom.AndPDBSelector___str__(self)
12501 def __repr__(self):
12502 r"""__repr__(AndPDBSelector self) -> std::string"""
12503 return _IMP_atom.AndPDBSelector___repr__(self)
12507 return _object_cast_to_AndPDBSelector(o)
12511 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
12512 class OrPDBSelector(PDBSelector):
12513 r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
12515 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12517 def get_version_info(self):
12518 r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
12519 return _IMP_atom.OrPDBSelector_get_version_info(self)
12520 __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
12522 def __init__(self, a, b):
12523 r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
12524 _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
12527 r"""__str__(OrPDBSelector self) -> std::string"""
12528 return _IMP_atom.OrPDBSelector___str__(self)
12530 def __repr__(self):
12531 r"""__repr__(OrPDBSelector self) -> std::string"""
12532 return _IMP_atom.OrPDBSelector___repr__(self)
12536 return _object_cast_to_OrPDBSelector(o)
12540 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
12541 class XorPDBSelector(PDBSelector):
12542 r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
12544 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12546 def get_version_info(self):
12547 r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
12548 return _IMP_atom.XorPDBSelector_get_version_info(self)
12549 __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
12551 def __init__(self, a, b):
12552 r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
12553 _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
12556 r"""__str__(XorPDBSelector self) -> std::string"""
12557 return _IMP_atom.XorPDBSelector___str__(self)
12559 def __repr__(self):
12560 r"""__repr__(XorPDBSelector self) -> std::string"""
12561 return _IMP_atom.XorPDBSelector___repr__(self)
12565 return _object_cast_to_XorPDBSelector(o)
12569 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
12570 class NotPDBSelector(PDBSelector):
12571 r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
12573 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12575 def get_version_info(self):
12576 r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
12577 return _IMP_atom.NotPDBSelector_get_version_info(self)
12578 __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
12580 def __init__(self, a):
12581 r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
12582 _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
12585 r"""__str__(NotPDBSelector self) -> std::string"""
12586 return _IMP_atom.NotPDBSelector___str__(self)
12588 def __repr__(self):
12589 r"""__repr__(NotPDBSelector self) -> std::string"""
12590 return _IMP_atom.NotPDBSelector___repr__(self)
12594 return _object_cast_to_NotPDBSelector(o)
12598 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
12600 def get_default_pdb_selector():
12601 r"""get_default_pdb_selector() -> PDBSelector"""
12602 return _IMP_atom.get_default_pdb_selector()
12606 read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
12607 read_pdb(TextInput input, int model, Hierarchy h)
12609 return _IMP_atom.read_pdb(*args)
12612 r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12613 return _IMP_atom.read_multimodel_pdb(*args)
12616 r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
12617 return _IMP_atom.write_pdb(mhd, out, model)
12620 r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
12621 return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
12624 r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
12625 return _IMP_atom.write_multimodel_pdb(mhd, out)
12627 def get_pdb_string(*args):
12628 r"""get_pdb_string(Vector3D v, int index=-1, AtomType at=AT_CA, ResidueType rt=ALA, char chain=' ', int res_index=1, char res_icode=' ', double occupancy=1.00, double tempFactor=0.00, IMP::atom::Element e=C) -> std::string"""
12629 return _IMP_atom.get_pdb_string(*args)
12631 def get_pdb_conect_record_string(arg1, arg2):
12632 r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
12633 return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
12635 r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
12637 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12639 def __init__(self, *args):
12641 __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
12642 __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
12643 __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
12645 _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
12647 def get_version_info(self):
12648 r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
12649 return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
12650 __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
12653 r"""__str__(WritePDBOptimizerState self) -> std::string"""
12654 return _IMP_atom.WritePDBOptimizerState___str__(self)
12656 def __repr__(self):
12657 r"""__repr__(WritePDBOptimizerState self) -> std::string"""
12658 return _IMP_atom.WritePDBOptimizerState___repr__(self)
12662 return _object_cast_to_WritePDBOptimizerState(o)
12665 def _get_as_binary(self):
12666 r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
12667 return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
12669 def _set_from_binary(self, p):
12670 r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
12671 return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
12673 def __getstate__(self):
12674 p = self._get_as_binary()
12675 if len(self.__dict__) > 1:
12676 d = self.__dict__.copy()
12681 def __setstate__(self, p):
12682 if not hasattr(self,
'this'):
12684 if isinstance(p, tuple):
12686 self.__dict__.update(d)
12687 return self._set_from_binary(p)
12691 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
12694 r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12695 return _IMP_atom.read_multimodel_mmcif(*args)
12698 r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12699 return _IMP_atom.read_mmcif(*args)
12702 r"""read_pdb_or_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12703 return _IMP_atom.read_pdb_or_mmcif(*args)
12706 r"""read_multimodel_pdb_or_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12707 return _IMP_atom.read_multimodel_pdb_or_mmcif(*args)
12710 r"""get_kt(double T) -> double"""
12711 return _IMP_atom.get_kt(T)
12713 r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
12715 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12717 def __init__(self, m, p1, p2, p3, phi0, score):
12718 r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
12719 _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
12721 def do_get_inputs(self):
12722 r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
12723 return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
12725 def get_version_info(self):
12726 r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
12727 return _IMP_atom.CAAngleRestraint_get_version_info(self)
12728 __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
12731 r"""__str__(CAAngleRestraint self) -> std::string"""
12732 return _IMP_atom.CAAngleRestraint___str__(self)
12734 def __repr__(self):
12735 r"""__repr__(CAAngleRestraint self) -> std::string"""
12736 return _IMP_atom.CAAngleRestraint___repr__(self)
12740 return _object_cast_to_CAAngleRestraint(o)
12744 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
12746 r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
12748 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12750 def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
12751 r"""__init__(CADihedralRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4, _ParticleIndexAdaptor p5, IMP::Floats phi0, IMP::Floats phi1, IMP::Floats score) -> CADihedralRestraint"""
12752 _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
12754 def do_get_inputs(self):
12755 r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
12756 return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
12758 def get_version_info(self):
12759 r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
12760 return _IMP_atom.CADihedralRestraint_get_version_info(self)
12761 __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
12764 r"""__str__(CADihedralRestraint self) -> std::string"""
12765 return _IMP_atom.CADihedralRestraint___str__(self)
12767 def __repr__(self):
12768 r"""__repr__(CADihedralRestraint self) -> std::string"""
12769 return _IMP_atom.CADihedralRestraint___repr__(self)
12773 return _object_cast_to_CADihedralRestraint(o)
12777 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
12779 r"""Proxy of C++ IMP::atom::StructureSource class."""
12781 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
12783 def get_source_id(self):
12784 r"""get_source_id(StructureSource self) -> std::string"""
12785 return _IMP_atom.StructureSource_get_source_id(self)
12787 def get_source_chain_id(self):
12788 r"""get_source_chain_id(StructureSource self) -> std::string"""
12789 return _IMP_atom.StructureSource_get_source_chain_id(self)
12791 def set_source_id(self, source_id):
12792 r"""set_source_id(StructureSource self, std::string source_id)"""
12793 return _IMP_atom.StructureSource_set_source_id(self, source_id)
12795 def set_source_chain_id(self, source_chain_id):
12796 r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
12797 return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
12799 def __init__(self, *args):
12801 __init__(StructureSource self) -> StructureSource
12802 __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
12803 __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
12805 _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
12808 def get_is_setup(*args):
12810 get_is_setup(Model m, ParticleIndex pi) -> bool
12811 get_is_setup(_ParticleAdaptor p) -> bool
12813 return _IMP_atom.StructureSource_get_is_setup(*args)
12815 def show(self, *args):
12816 r"""show(StructureSource self, _ostream out=std::cout)"""
12817 return _IMP_atom.StructureSource_show(self, *args)
12820 def setup_particle(*args):
12822 setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
12823 setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
12825 return _IMP_atom.StructureSource_setup_particle(*args)
12827 def add_attribute(self, *args):
12829 add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
12830 add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
12831 add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
12832 add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
12833 add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
12834 add_attribute(StructureSource self, StringKey a0, IMP::String a1)
12835 add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
12836 add_attribute(StructureSource self, ObjectKey a0, Object a1)
12837 add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
12838 add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
12839 add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
12840 add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
12842 return _IMP_atom.StructureSource_add_attribute(self, *args)
12844 def get_value(self, *args):
12846 get_value(StructureSource self, FloatKey a0) -> IMP::Float
12847 get_value(StructureSource self, IntKey a0) -> IMP::Int
12848 get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
12849 get_value(StructureSource self, IntsKey a0) -> IMP::Ints
12850 get_value(StructureSource self, StringKey a0) -> IMP::String
12851 get_value(StructureSource self, ParticleIndexKey a0) -> Particle
12852 get_value(StructureSource self, ObjectKey a0) -> Object
12853 get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
12854 get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
12855 get_value(StructureSource self, SparseStringKey a0) -> IMP::String
12856 get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
12858 return _IMP_atom.StructureSource_get_value(self, *args)
12860 def set_value(self, *args):
12862 set_value(StructureSource self, FloatKey a0, IMP::Float a1)
12863 set_value(StructureSource self, IntKey a0, IMP::Int a1)
12864 set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
12865 set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
12866 set_value(StructureSource self, StringKey a0, IMP::String a1)
12867 set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
12868 set_value(StructureSource self, ObjectKey a0, Object a1)
12869 set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
12870 set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
12871 set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
12872 set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
12874 return _IMP_atom.StructureSource_set_value(self, *args)
12876 def remove_attribute(self, *args):
12878 remove_attribute(StructureSource self, FloatKey a0)
12879 remove_attribute(StructureSource self, IntKey a0)
12880 remove_attribute(StructureSource self, FloatsKey a0)
12881 remove_attribute(StructureSource self, IntsKey a0)
12882 remove_attribute(StructureSource self, StringKey a0)
12883 remove_attribute(StructureSource self, ParticleIndexKey a0)
12884 remove_attribute(StructureSource self, ObjectKey a0)
12885 remove_attribute(StructureSource self, SparseFloatKey a0)
12886 remove_attribute(StructureSource self, SparseIntKey a0)
12887 remove_attribute(StructureSource self, SparseStringKey a0)
12888 remove_attribute(StructureSource self, SparseParticleIndexKey a0)
12890 return _IMP_atom.StructureSource_remove_attribute(self, *args)
12892 def has_attribute(self, *args):
12894 has_attribute(StructureSource self, FloatKey a0) -> bool
12895 has_attribute(StructureSource self, IntKey a0) -> bool
12896 has_attribute(StructureSource self, FloatsKey a0) -> bool
12897 has_attribute(StructureSource self, IntsKey a0) -> bool
12898 has_attribute(StructureSource self, StringKey a0) -> bool
12899 has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
12900 has_attribute(StructureSource self, ObjectKey a0) -> bool
12901 has_attribute(StructureSource self, SparseFloatKey a0) -> bool
12902 has_attribute(StructureSource self, SparseIntKey a0) -> bool
12903 has_attribute(StructureSource self, SparseStringKey a0) -> bool
12904 has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
12906 return _IMP_atom.StructureSource_has_attribute(self, *args)
12908 def get_derivative(self, a0):
12909 r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
12910 return _IMP_atom.StructureSource_get_derivative(self, a0)
12912 def get_name(self):
12913 r"""get_name(StructureSource self) -> std::string"""
12914 return _IMP_atom.StructureSource_get_name(self)
12916 def clear_caches(self):
12917 r"""clear_caches(StructureSource self)"""
12918 return _IMP_atom.StructureSource_clear_caches(self)
12920 def set_name(self, a0):
12921 r"""set_name(StructureSource self, std::string a0)"""
12922 return _IMP_atom.StructureSource_set_name(self, a0)
12925 r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
12926 return _IMP_atom.StructureSource_set_check_level(self, a0)
12928 def add_to_derivative(self, a0, a1, a2):
12929 r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12930 return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
12932 def set_is_optimized(self, a0, a1):
12933 r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
12934 return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
12936 def get_is_optimized(self, a0):
12937 r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
12938 return _IMP_atom.StructureSource_get_is_optimized(self, a0)
12941 r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
12942 return _IMP_atom.StructureSource_get_check_level(self)
12944 def __eq__(self, *args):
12946 __eq__(StructureSource self, StructureSource o) -> bool
12947 __eq__(StructureSource self, Particle d) -> bool
12949 return _IMP_atom.StructureSource___eq__(self, *args)
12951 def __ne__(self, *args):
12953 __ne__(StructureSource self, StructureSource o) -> bool
12954 __ne__(StructureSource self, Particle d) -> bool
12956 return _IMP_atom.StructureSource___ne__(self, *args)
12958 def __le__(self, *args):
12960 __le__(StructureSource self, StructureSource o) -> bool
12961 __le__(StructureSource self, Particle d) -> bool
12963 return _IMP_atom.StructureSource___le__(self, *args)
12965 def __lt__(self, *args):
12967 __lt__(StructureSource self, StructureSource o) -> bool
12968 __lt__(StructureSource self, Particle d) -> bool
12970 return _IMP_atom.StructureSource___lt__(self, *args)
12972 def __ge__(self, *args):
12974 __ge__(StructureSource self, StructureSource o) -> bool
12975 __ge__(StructureSource self, Particle d) -> bool
12977 return _IMP_atom.StructureSource___ge__(self, *args)
12979 def __gt__(self, *args):
12981 __gt__(StructureSource self, StructureSource o) -> bool
12982 __gt__(StructureSource self, Particle d) -> bool
12984 return _IMP_atom.StructureSource___gt__(self, *args)
12986 def __hash__(self):
12987 r"""__hash__(StructureSource self) -> std::size_t"""
12988 return _IMP_atom.StructureSource___hash__(self)
12991 r"""__str__(StructureSource self) -> std::string"""
12992 return _IMP_atom.StructureSource___str__(self)
12994 def __repr__(self):
12995 r"""__repr__(StructureSource self) -> std::string"""
12996 return _IMP_atom.StructureSource___repr__(self)
12998 def _get_as_binary(self):
12999 r"""_get_as_binary(StructureSource self) -> PyObject *"""
13000 return _IMP_atom.StructureSource__get_as_binary(self)
13002 def _set_from_binary(self, p):
13003 r"""_set_from_binary(StructureSource self, PyObject * p)"""
13004 return _IMP_atom.StructureSource__set_from_binary(self, p)
13006 def __getstate__(self):
13007 p = self._get_as_binary()
13008 if len(self.__dict__) > 1:
13009 d = self.__dict__.copy()
13014 def __setstate__(self, p):
13015 if not hasattr(self,
'this'):
13017 if isinstance(p, tuple):
13019 self.__dict__.update(d)
13020 return self._set_from_binary(p)
13022 __swig_destroy__ = _IMP_atom.delete_StructureSource
13025 _IMP_atom.StructureSource_swigregister(StructureSource)
13027 def __lshift__(*args):
13029 __lshift__(_ostream out, Bonded n) -> _ostream
13030 __lshift__(_ostream out, Bond n) -> _ostream
13031 __lshift__(_ostream out, Hierarchy n) -> _ostream
13032 __lshift__(_ostream out, Angle n) -> _ostream
13033 __lshift__(_ostream out, Dihedral n) -> _ostream
13034 __lshift__(_ostream out, CenterOfMass n) -> _ostream
13035 __lshift__(_ostream out, Diffusion n) -> _ostream
13036 __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13037 __lshift__(_ostream out, TAMDParticle n) -> _ostream
13038 __lshift__(_ostream out, Charged n) -> _ostream
13039 __lshift__(_ostream out, Domain n) -> _ostream
13040 __lshift__(_ostream out, LennardJones n) -> _ostream
13041 __lshift__(_ostream out, Fragment n) -> _ostream
13042 __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13043 __lshift__(_ostream out, Atom n) -> _ostream
13044 __lshift__(_ostream out, Residue n) -> _ostream
13045 __lshift__(_ostream out, Representation n) -> _ostream
13046 __lshift__(_ostream out, State n) -> _ostream
13047 __lshift__(_ostream out, Molecule n) -> _ostream
13048 __lshift__(_ostream out, Copy n) -> _ostream
13049 __lshift__(_ostream out, Chain n) -> _ostream
13050 __lshift__(_ostream out, StructureSource n) -> _ostream
13052 return _IMP_atom.__lshift__(*args)
13054 r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13058 def __init__(self, rs, ideal=True):
13059 r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13060 _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13062 def get_number_of_bonds(self):
13063 r"""get_number_of_bonds(HelixRestraint self) -> int"""
13064 return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13066 def get_number_of_dihedrals(self):
13067 r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13068 return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13070 def do_get_inputs(self):
13071 r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13072 return _IMP_atom.HelixRestraint_do_get_inputs(self)
13074 def get_version_info(self):
13075 r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13076 return _IMP_atom.HelixRestraint_get_version_info(self)
13077 __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13080 r"""__str__(HelixRestraint self) -> std::string"""
13081 return _IMP_atom.HelixRestraint___str__(self)
13083 def __repr__(self):
13084 r"""__repr__(HelixRestraint self) -> std::string"""
13085 return _IMP_atom.HelixRestraint___repr__(self)
13089 return _object_cast_to_HelixRestraint(o)
13093 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13096 r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13097 return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13100 r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13101 return _IMP_atom.show_molecular_hierarchy(*args)
13102 class CHARMMBond(object):
13103 r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13105 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13106 __repr__ = _swig_repr
13108 def __init__(self, atoms):
13109 r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13110 _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13112 def get_endpoint(self, i):
13113 r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13114 return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13116 def get_contains_atom(self, name):
13117 r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13118 return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13120 def show(self, *args):
13121 r"""show(CHARMMBond self, _ostream out=std::cout)"""
13122 return _IMP_atom.CHARMMBond_show(self, *args)
13123 __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13126 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13127 class CHARMMAngle(object):
13128 r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13130 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
13131 __repr__ = _swig_repr
13133 def __init__(self, atoms):
13134 r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13135 _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13137 def get_endpoint(self, i):
13138 r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13139 return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13141 def get_contains_atom(self, name):
13142 r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13143 return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13145 def show(self, *args):
13146 r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13147 return _IMP_atom.CHARMMAngle_show(self, *args)
13148 __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13151 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13153 def _get_native_overlap_cpp(m1, m2, threshold):
13154 r"""_get_native_overlap_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, double threshold) -> double"""
13155 return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13157 def _get_drmsd_cpp(m0, m1):
13158 r"""_get_drmsd_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1) -> double"""
13159 return _IMP_atom._get_drmsd_cpp(m0, m1)
13161 def _get_drmsd_Q_cpp(m0, m1, threshold):
13162 r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, double threshold) -> double"""
13163 return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13165 def _get_drms_cpp(m1, m2):
13166 r"""_get_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2) -> double"""
13167 return _IMP_atom._get_drms_cpp(m1, m2)
13169 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13170 r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13171 return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13174 va= [IMP.algebra.get_vector(x)
for x
in a]
13175 vb= [IMP.algebra.get_vector(x)
for x
in b]
13176 return _get_native_overlap_cpp(va, vb, d)
13179 va= [IMP.algebra.get_vector(x)
for x
in a]
13180 vb= [IMP.algebra.get_vector(x)
for x
in b]
13181 return _get_drmsd_cpp(va, vb)
13184 va= [IMP.algebra.get_vector(x)
for x
in a]
13185 vb= [IMP.algebra.get_vector(x)
for x
in b]
13186 return _get_drms_cpp(va, vb)
13189 va= [IMP.algebra.get_vector(x)
for x
in a]
13190 vb= [IMP.algebra.get_vector(x)
for x
in b]
13191 return _get_drmsd_Q_cpp(va, vb, t)
13194 va= [IMP.algebra.get_vector(x)
for x
in a]
13195 vb= [IMP.algebra.get_vector(x)
for x
in b]
13197 return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13202 r"""get_module_version() -> std::string const"""
13203 return _IMP_atom.get_module_version()
13206 r"""get_example_path(std::string fname) -> std::string"""
13207 return _IMP_atom.get_example_path(fname)
13210 r"""get_data_path(std::string fname) -> std::string"""
13211 return _IMP_atom.get_data_path(fname)
13213 from .
import _version_check
A base class for geometry contained in particles.
A base class for modifiers of ParticlesTemp.
AtomType add_atom_type(std::string name, Element e)
Create a new AtomType.
double get_kt(double T)
Return kT for a given temperature in units of [kcal/mol].
double get_volume_from_residue_type(ResidueType rt)
Return an estimate for the volume of a given residue.
Hierarchy read_pdb_or_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB or mmCIF file.
Abstract class for scoring object(s) of type ParticleIndexPair.
A shared container for Pairs.
CHARMMParameters * get_heavy_atom_CHARMM_parameters()
double get_einstein_rotational_diffusion_coefficient(double r, double temp=-1)
Hierarchy read_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the mmCIF file.
Float get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2)
Compares the secondary structure probabilities of two residues.
double get_rigid_bodies_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, const IMP::IntRanges &ranges)
DRMS between two sets of rigid bodies.
Chain get_chain(Hierarchy h)
Get the containing chain or Chain() if there is none.
CheckLevel get_check_level()
Get the current audit mode.
Vector< AtomTypes > get_chi_dihedral_atom_types(ResidueType rt)
Atoms get_phi_dihedral_atoms(Residue rd)
Return the atoms comprising the phi dihedral.
void show_molecular_hierarchy(Hierarchy h)
Print out the molecular hierarchy.
double get_drms(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
void remove_charmm_untyped_atoms(Hierarchy hierarchy)
Remove any atom from the Hierarchy that does not have a CHARMM type.
double get_protein_density_from_reference(ProteinDensityReference densityReference)
void show_with_representations(Hierarchy h, std::ostream &out=std::cout)
Traverse through the tree and show atom info, including representations.
Hierarchy create_simplified_from_volume(Hierarchy h, double resolution)
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
double get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square)
Convert spring constant from kcal/mol/A^2 to femtonewton/A.
double get_native_overlap(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2, double threshold)
Computes the native overlap between two sets of 3D points.
Various classes to hold sets of particles.
The base class for geometry.
IMP::core::RigidBody create_compatible_rigid_body(Hierarchy h, Hierarchy reference)
Rigidify a molecule or collection of molecules.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false)
double get_drmsd(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1)
Calculate distance the root mean square deviation between two sets of 3D points.
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
double get_mass(ResidueType c)
Get the mass from the residue type.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
Add vdW radius from given force field.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
double get_mass_from_number_of_residues(unsigned int num_aa)
Estimate the mass of a protein from the number of amino acids.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
Atoms get_omega_dihedral_atoms(Residue rd)
Return the atoms comprising the omega dihedral.
ParticleIndexQuads get_chi_dihedral_particle_indexes(Residue rd)
void write_pdb(const Selection &mhd, TextOutput out, unsigned int model=1)
void setup_as_approximation(Particle *h, const ParticlesTemp &other)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
double get_mass_from_volume(double v, ProteinDensityReference ref=ALBER)
Estimate the mass of a protein from its volume.
void destroy_bond(Bond b)
Destroy the bond connecting two particles.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
void add_particle(RMF::FileHandle fh, Particle *hs)
Atoms get_charmm_untyped_atoms(Hierarchy hierarchy)
Get all atoms in the Hierarchy that do not have CHARMM types.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
char get_one_letter_code(ResidueType c)
Get the 1-letter amino acid code from the residue type.
Atom get_atom(Residue rd, AtomType at)
Return a particle atom from the residue.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
Restraint * create_excluded_volume_restraint(const Hierarchies &hs, double resolution=-1)
Bond create_custom_bond(Bonded a, Bonded b, Float length, Float stiffness=-1)
Connect the two wrapped particles by a custom bond.
void write_pdb_of_c_alphas(const Selection &mhd, TextOutput out, unsigned int model=1)
Write a hierarchy to a PDB as C_alpha atoms.
Hierarchies read_multimodel_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the mmCIF file.
double get_kd(double na, double nb, double nab, double volume)
double get_diffusion_angle(double D, double dtfs)
IMP::algebra::Transformation3D get_transformation_aligning_first_to_second(const Vector3DsOrXYZs0 &source, const Vector3DsOrXYZs1 &target)
Compute the rigid transform bringing the first point set to the second.
bool get_atom_type_exists(std::string name)
Return true if that atom type already exists.
double get_volume(const BoundingBoxD< D > &bb)
See BoundingBoxD.
FloatPair get_component_placement_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the difference between two placements of the same set of points.
void transform(Hierarchy h, const algebra::Transformation3D &tr)
Transform a hierarchy. This is aware of rigid bodies.
core::XYZR create_cover(const Selection &s, std::string name=std::string())
double get_volume_from_mass(double m, ProteinDensityReference ref=ALBER)
Estimate the volume of a protein from its mass.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Hierarchy create_protein(Model *m, std::string name, double target_radius, int number_of_residues, int first_residue_index=0, double volume=-1)
Create a coarse grained molecule.
Atoms get_psi_dihedral_atoms(Residue rd)
Return the atoms comprising the psi dihedral.
Abstract class for scoring object(s) of type ParticleIndex.
ParticlesTemp get_order(const Subset &s, const SubsetFilterTables &sft)
Bond create_bond(Bonded a, Bonded b, Int t)
Connect the two wrapped particles by a bond.
double get_rotational_diffusion_coefficient(const algebra::Rotation3Ds &orientations, double dt)
Base class for all optimizers.
double get_rmsd(const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Hierarchy get_previous_residue(Residue rd)
Return the residue from the same chain with one lower index.
SecondaryStructureResidue setup_coarse_secondary_structure_residue(const Particles &ssr_ps, Model *mdl, bool winner_takes_all_per_res=false)
Coarsen some SecondaryStructureResidues.
double get_molarity(double n, double volume)
boost::graph HierarchyTree
A graph for representing a Hierarchy so you can view it nicely.
Hierarchy read_mol2(TextInput mol2_file, Model *model, Mol2Selector *mol2sel=nullptr)
Create a hierarchy from a Mol2 file.
Version and module information for Objects.
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
A decorator for a particle with x,y,z coordinates.
void add_loop_statistical_score_data(atom::Hierarchy h)
Restraint * create_internal_connectivity_restraint(const Selection &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selection.
void write_mol2(Hierarchy rhd, TextOutput file_name)
Write a ligand hierarchy as a mol2 file.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
int get_state_index(Hierarchy h)
Walk up the hierarchy to find the current state.
SecondaryStructureResidues setup_coarse_secondary_structure_residues(const Particles &ssr_ps, Model *mdl, int coarse_factor, int start_res_num, bool winner_takes_all_per_res=false)
void add_protein_ligand_score_data(Hierarchy h)
Interface to specialized Particle types (e.g. atoms)
std::string get_molecule_name(Hierarchy h)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
Vector< Atoms > get_chi_dihedral_atoms(Residue rd)
Hierarchies read_multimodel_pdb_or_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the PDB or mmCIF file.
double get_pairwise_rmsd_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the RMSD between two placements of the same set of points.
double get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom)
Convert force from kcal/mol/A to femtonewtons.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Hierarchies read_multimodel_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Residue get_residue(Atom d, bool nothrow=false)
Return the Residue containing this atom.
Shared optimizer state that is invoked upon commitment of new coordinates.
Hierarchy get_root(Hierarchy h)
Return the root of the hierarchy.
Abstract class to implement hierarchical methods.
void add_dope_score_data(atom::Hierarchy h)
Bond get_bond(Bonded a, Bonded b)
Get the bond between two particles.
std::string show_graphviz(Graph g)
Restraint * create_distance_restraint(const Selection &n0, const Selection &n1, double x0, double k, std::string name="Distance%1%")
Representation get_representation(Hierarchy h, bool nothrow=false)
Return the Representation object containing this hierarchy.
FloatPair get_placement_score(const core::XYZs &source, const core::XYZs &target)
Measure the difference between two placements of the same set of points.
void write_multimodel_pdb(const Hierarchies &mhd, TextOutput out)
int get_copy_index(Hierarchy h)
Walk up the hierarchy to find the current copy index.
A decorator for helping deal with a generalized hierarchy.
double get_maximum_time_step_estimate(BrownianDynamics *bd)
double get_diffusion_coefficient(const algebra::Vector3Ds &displacements, double dt)
double get_surface_area(const Geometry &)
Compute the surface area of any volumetric object.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
double get_rmsd_transforming_first(const Transformation3D &tr, const Vector3DsOrXYZs0 &m1, const Vector3DsOrXYZs1 &m2)
Calculate the root mean square deviation between two sets of 3D points.
Hierarchy create_simplified_assembly_from_volume(Hierarchy h, double resolution)
Output IMP model data in various file formats.
std::string get_chain_id(Hierarchy h)
Walk up the hierarchy to determine the chain id.
IMP::core::RigidBody create_rigid_body(const Hierarchies &h, std::string name=std::string("created rigid body"))
Rigidify a molecule or collection of molecules.
CHARMMParameters * get_all_atom_CHARMM_parameters()
Hierarchies get_leaves(const Selection &h)
double get_einstein_diffusion_coefficient(double r, double temp=-1)
double get_drmsd_Q(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1, double threshold)
DensityMap * get_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
Applies a PairScore to each Pair in a list.
Hierarchy get_next_residue(Residue rd)
Return the residue from the same chain with one higher index.
Restraint * create_connectivity_restraint(const Selections &s, double k, std::string name="Connectivity%1%")
Create a restraint connecting the selections.
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
Add bonds using definitions from given force field parameters.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
double get_diffusion_length(double D, double t)
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.
A decorator for a particle with x,y,z coordinates and a radius.