IMP logo
IMP Reference Guide  develop.74ba496d88,2026/11/03
The Integrative Modeling Platform
atom/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.5.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 import functools
14 
15 
16 
17 import typing
18 import _IMP_atom
19 
20 import builtins as __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
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):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 class _SwigNonDynamicMeta(type):
53  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
54  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
55 
56 
57 import weakref
58 
59 class IMP_ATOM_SwigPyIterator(object):
60  r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
61 
62  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
63 
64  def __init__(self, *args, **kwargs):
65  raise AttributeError("No constructor defined - class is abstract")
66  __repr__ = _swig_repr
67  __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
68 
69  def value(self):
70  r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
71  return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
72 
73  def incr(self, n=1):
74  r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
75  return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
76 
77  def decr(self, n=1):
78  r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
79  return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
80 
81  def distance(self, x):
82  r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
83  return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
84 
85  def equal(self, x):
86  r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
87  return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
88 
89  def copy(self):
90  r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
91  return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
92 
93  def __next__(self):
94  r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
95  return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
96 
97  def previous(self):
98  r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
99  return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
100 
101  def advance(self, n):
102  r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
103  return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
104 
105  def __eq__(self, x):
106  r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
107  return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
108 
109  def __ne__(self, x):
110  r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
111  return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
112 
113  def __iadd__(self, n):
114  r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
115  return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
116 
117  def __isub__(self, n):
118  r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
119  return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
120 
121  def __add__(self, n):
122  r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
123  return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
124 
125  def __sub__(self, *args):
126  r"""
127  __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
128  __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
129  """
130  return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
131  def __iter__(self):
132  return self
133 
134 # Register IMP_ATOM_SwigPyIterator in _IMP_atom:
135 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
136 
137 _value_types=[]
138 _object_types=[]
139 _raii_types=[]
140 _plural_types=[]
141 
142 IMP_DEBUG = _IMP_atom.IMP_DEBUG
143 
144 IMP_RELEASE = _IMP_atom.IMP_RELEASE
145 
146 IMP_SILENT = _IMP_atom.IMP_SILENT
147 
148 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
149 
150 IMP_TERSE = _IMP_atom.IMP_TERSE
151 
152 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
153 
154 IMP_MEMORY = _IMP_atom.IMP_MEMORY
155 
156 IMP_NONE = _IMP_atom.IMP_NONE
157 
158 IMP_USAGE = _IMP_atom.IMP_USAGE
159 
160 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
161 
162 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
163 
164 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
165 
166 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
167 
168 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
169 
170 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
171 
172 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
173 
174 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
175 
176 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_KERNEL_HAS_BOOST_SYSTEM
177 
178 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
179 
180 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
181 
182 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
183 
184 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
185 
186 
187 import sys
188 class _DirectorObjects:
189  """@internal Simple class to keep references to director objects
190  to prevent premature deletion."""
191  def __init__(self):
192  self._objects = []
193  def register(self, obj):
194  """Take a reference to a director object; will only work for
195  refcounted C++ classes"""
196  if hasattr(obj, 'get_ref_count'):
197  self._objects.append(obj)
198  def cleanup(self):
199  """Only drop our reference and allow cleanup by Python if no other
200  Python references exist (we hold 3 references: one in self._objects,
201  one in x, and one in the argument list for getrefcount) *and* no
202  other C++ references exist (the Python object always holds one)"""
203  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
204  or x.get_ref_count() > 1]
205 # Do in two steps so the references are kept until the end of the
206 # function (deleting references may trigger a fresh call to this method)
207  self._objects = objs
208  def get_object_count(self):
209  """Get number of director objects (useful for testing only)"""
210  return len(self._objects)
211 _director_objects = _DirectorObjects()
212 
213 class _ostream(object):
214  r"""Proxy of C++ std::ostream class."""
215 
216  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
217 
218  def __init__(self, *args, **kwargs):
219  raise AttributeError("No constructor defined")
220  __repr__ = _swig_repr
221 
222  def write(self, osa_buf):
223  r"""write(_ostream self, char const * osa_buf)"""
224  return _IMP_atom._ostream_write(self, osa_buf)
225 
226 # Register _ostream in _IMP_atom:
227 _IMP_atom._ostream_swigregister(_ostream)
228 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
229 
230 import IMP
231 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
232 
233 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
234 
235 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
236 
237 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
238 
239 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
240 
241 import IMP.cgal
242 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
243 
244 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
245 
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 
248 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
249 
250 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
251 
252 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
253 
254 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
255 
256 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
257 
258 import IMP.algebra
259 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
260 
261 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
262 
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 
265 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
266 
267 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
268 
269 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
270 
271 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
272 
273 import IMP.display
274 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
275 
276 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
277 
278 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
279 
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
283 
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
285 
286 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
287 
288 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
289 
290 import IMP.score_functor
291 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
292 
293 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
294 
295 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
296 
297 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
298 
299 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
300 
301 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
302 
303 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
304 
305 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
306 
307 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
308 
309 import IMP.core
310 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
311 
312 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
313 
314 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
315 
316 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
317 
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
319 
320 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
321 
322 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
323 
324 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
325 
326 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
327 
328 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
329 
330 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
331 
332 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
333 
334 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
335 
336 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
337 
338 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
339 
340 import IMP.container
341 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
342 
343 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
344 
345 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
346 
347 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
348 
349 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
350 
351 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
352 
353 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
354 
355 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
356 
357 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
358 
359 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
360 
361 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
362 
363 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
364 
365 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
366 
367 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
368 
369 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
370 
372  r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
373 
374  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
375  __repr__ = _swig_repr
376 
377  def __init__(self):
378  r"""__init__(HierarchyTree self) -> HierarchyTree"""
379  _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
380 
381  def get_graph(self):
382  r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
383  return _IMP_atom.HierarchyTree_get_graph(self)
384 
385  def get_vertices(self):
386  r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
387  return _IMP_atom.HierarchyTree_get_vertices(self)
388 
389  def get_vertex_name(self, i):
390  r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
391  return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
392 
393  def get_in_neighbors(self, v):
394  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"""
395  return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
396 
397  def get_out_neighbors(self, v):
398  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"""
399  return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
400 
401  def show_graphviz(self, *args):
402  r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
403  return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
404 
405  def get_graphviz_string(self):
406  r"""get_graphviz_string(HierarchyTree self) -> std::string"""
407  return _IMP_atom.HierarchyTree_get_graphviz_string(self)
408 
409  def add_edge(self, v0, v1):
410  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)"""
411  return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
412 
413  def add_vertex(self, l):
414  r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
415  return _IMP_atom.HierarchyTree_add_vertex(self, l)
416 
417  def remove_vertex(self, l):
418  r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
419  return _IMP_atom.HierarchyTree_remove_vertex(self, l)
420  __swig_destroy__ = _IMP_atom.delete_HierarchyTree
421 
422 # Register HierarchyTree in _IMP_atom:
423 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
424 
425 _value_types.append("HierarchyTree")
426 
427 
428 PDBRecords=list
429 _plural_types.append("PDBRecords")
430 _value_types.append("PDBRecord")
431 
432 
433 _object_types.append("LennardJonesType")
434 
435 
436 def _object_cast_to_LennardJonesType(o):
437  r"""_object_cast_to_LennardJonesType(Object o) -> LennardJonesType"""
438  return _IMP_atom._object_cast_to_LennardJonesType(o)
439 
440 _object_types.append("PDBSelector")
441 
442 
443 def _object_cast_to_PDBSelector(o):
444  r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
445  return _IMP_atom._object_cast_to_PDBSelector(o)
446 
447 def Angles(l=[]):
448  return [Angle(x) for x in l]
449 _plural_types.append("Angles")
450 
451 
452 _value_types.append("Angle")
453 
454 
455 def Atoms(l=[]):
456  return [Atom(x) for x in l]
457 _plural_types.append("Atoms")
458 
459 
460 _value_types.append("Atom")
461 
462 
463 def Bonds(l=[]):
464  return [Bond(x) for x in l]
465 _plural_types.append("Bonds")
466 
467 
468 _value_types.append("Bond")
469 
470 
471 def Bondeds(l=[]):
472  return [Bonded(x) for x in l]
473 _plural_types.append("Bondeds")
474 
475 
476 _value_types.append("Bonded")
477 
478 
479 def CHARMMAtomList(l=[]):
480  return [CHARMMAtom(x) for x in l]
481 _plural_types.append("CHARMMAtomList")
482 
483 
484 _value_types.append("CHARMMAtom")
485 
486 
487 def Chains(l=[]):
488  return [Chain(x) for x in l]
489 _plural_types.append("Chains")
490 
491 
492 _value_types.append("Chain")
493 
494 
495 def CenterOfMasses(l=[]):
496  return [CenterOfMass(x) for x in l]
497 _plural_types.append("CenterOfMasses")
498 
499 
500 _value_types.append("CenterOfMass")
501 
502 
503 def Chargeds(l=[]):
504  return [Charged(x) for x in l]
505 _plural_types.append("Chargeds")
506 
507 
508 _value_types.append("Charged")
509 
510 
511 def Diffusions(l=[]):
512  return [Diffusion(x) for x in l]
513 _plural_types.append("Diffusions")
514 
515 
516 _value_types.append("Diffusion")
517 
518 
519 def RigidBodyDiffusions(l=[]):
520  return [RigidBodyDiffusion(x) for x in l]
521 _plural_types.append("RigidBodyDiffusions")
522 
523 
524 _value_types.append("RigidBodyDiffusion")
525 
526 
527 def TAMDParticles(l=[]):
528  return [TAMDParticle(x) for x in l]
529 _plural_types.append("TAMDParticles")
530 
531 
532 _value_types.append("TAMDParticle")
533 
534 
535 def TAMDCentroids(l=[]):
536  return [TAMDCentroid(x) for x in l]
537 _plural_types.append("TAMDCentroids")
538 
539 
540 _value_types.append("TAMDCentroid")
541 
542 
543 def Dihedrals(l=[]):
544  return [Dihedral(x) for x in l]
545 _plural_types.append("Dihedrals")
546 
547 
548 _value_types.append("Dihedral")
549 
550 
551 def Domains(l=[]):
552  return [Domain(x) for x in l]
553 _plural_types.append("Domains")
554 
555 
556 _value_types.append("Domain")
557 
558 
559 def Fragments(l=[]):
560  return [Fragment(x) for x in l]
561 _plural_types.append("Fragments")
562 
563 
564 _value_types.append("Fragment")
565 
566 
567 def Hierarchies(l=[]):
568  return [Hierarchy(x) for x in l]
569 _plural_types.append("Hierarchies")
570 
571 
572 _value_types.append("Hierarchy")
573 
574 
575 def LennardJonesTypeds(l=[]):
576  return [LennardJonesTyped(x) for x in l]
577 _plural_types.append("LennardJonesTypeds")
578 
579 
580 _value_types.append("LennardJonesTyped")
581 
582 
583 def Masses(l=[]):
584  return [Mass(x) for x in l]
585 _plural_types.append("Masses")
586 
587 
588 _value_types.append("Mass")
589 
590 
591 def LinearVelocities(l=[]):
592  return [LinearVelocity(x) for x in l]
593 _plural_types.append("LinearVelocities")
594 
595 
596 _value_types.append("LinearVelocity")
597 
598 
599 def AngularVelocities(l=[]):
600  return [AngularVelocity(x) for x in l]
601 _plural_types.append("AngularVelocities")
602 
603 
604 _value_types.append("AngularVelocity")
605 
606 
607 def Molecules(l=[]):
608  return [Molecule(x) for x in l]
609 _plural_types.append("Molecules")
610 
611 
612 _value_types.append("Molecule")
613 
614 
615 def Residues(l=[]):
616  return [Residue(x) for x in l]
617 _plural_types.append("Residues")
618 
619 
620 _value_types.append("Residue")
621 
622 
623 def Representations(l=[]):
624  return [Representation(x) for x in l]
625 _plural_types.append("Representations")
626 
627 
628 _value_types.append("Representation")
629 
630 
631 def States(l=[]):
632  return [State(x) for x in l]
633 _plural_types.append("States")
634 
635 
636 _value_types.append("State")
637 
638 
639 def Copies(l=[]):
640  return [Copy(x) for x in l]
641 _plural_types.append("Copies")
642 
643 
644 _value_types.append("Copy")
645 
646 
647 def SecondaryStructureResidues(l=[]):
648  return [SecondaryStructureResidue(x) for x in l]
649 _plural_types.append("SecondaryStructureResidues")
650 
651 
652 _value_types.append("SecondaryStructureResidue")
653 
654 
655 def StructureSources(l=[]):
656  return [StructureSource(x) for x in l]
657 _plural_types.append("StructureSources")
658 
659 
660 _value_types.append("StructureSource")
661 
662 
663 _object_types.append("Simulator")
664 
665 
666 def _object_cast_to_Simulator(o):
667  r"""_object_cast_to_Simulator(Object o) -> Simulator"""
668  return _IMP_atom._object_cast_to_Simulator(o)
669 
670 _object_types.append("ATOMPDBSelector")
671 
672 
673 def _object_cast_to_ATOMPDBSelector(o):
674  r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
675  return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
676 
677 _object_types.append("AllMol2Selector")
678 
679 
680 def _object_cast_to_AllMol2Selector(o):
681  r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
682  return _IMP_atom._object_cast_to_AllMol2Selector(o)
683 
684 _object_types.append("AllPDBSelector")
685 
686 
687 def _object_cast_to_AllPDBSelector(o):
688  r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
689  return _IMP_atom._object_cast_to_AllPDBSelector(o)
690 
691 _object_types.append("AndPDBSelector")
692 
693 
694 def _object_cast_to_AndPDBSelector(o):
695  r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
696  return _IMP_atom._object_cast_to_AndPDBSelector(o)
697 
698 _object_types.append("XorPDBSelector")
699 
700 
701 def _object_cast_to_XorPDBSelector(o):
702  r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
703  return _IMP_atom._object_cast_to_XorPDBSelector(o)
704 
705 _object_types.append("ResidueTypePDBSelector")
706 
707 
708 def _object_cast_to_ResidueTypePDBSelector(o):
709  r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
710  return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
711 
712 _object_types.append("AtomTypePDBSelector")
713 
714 
715 def _object_cast_to_AtomTypePDBSelector(o):
716  r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
717  return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
718 
719 _object_types.append("AngleSingletonScore")
720 
721 
722 def _object_cast_to_AngleSingletonScore(o):
723  r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
724  return _IMP_atom._object_cast_to_AngleSingletonScore(o)
725 
726 _object_types.append("BondEndpointsRefiner")
727 
728 
729 def _object_cast_to_BondEndpointsRefiner(o):
730  r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
731  return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
732 
733 _object_types.append("BondPairContainer")
734 
735 
736 def _object_cast_to_BondPairContainer(o):
737  r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
738  return _IMP_atom._object_cast_to_BondPairContainer(o)
739 
740 _object_types.append("BondSingletonScore")
741 
742 
743 def _object_cast_to_BondSingletonScore(o):
744  r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
745  return _IMP_atom._object_cast_to_BondSingletonScore(o)
746 
747 _object_types.append("BondedPairFilter")
748 
749 
750 def _object_cast_to_BondedPairFilter(o):
751  r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
752  return _IMP_atom._object_cast_to_BondedPairFilter(o)
753 
754 _object_types.append("BrownianDynamics")
755 
756 
757 def _object_cast_to_BrownianDynamics(o):
758  r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
759  return _IMP_atom._object_cast_to_BrownianDynamics(o)
760 
761 _object_types.append("BrownianDynamicsTAMD")
762 
763 
764 def _object_cast_to_BrownianDynamicsTAMD(o):
765  r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
766  return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
767 
768 _object_types.append("CAlphaPDBSelector")
769 
770 
771 def _object_cast_to_CAlphaPDBSelector(o):
772  r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
773  return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
774 
775 _object_types.append("CBetaPDBSelector")
776 
777 
778 def _object_cast_to_CBetaPDBSelector(o):
779  r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
780  return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
781 
782 _object_types.append("BackbonePDBSelector")
783 
784 
785 def _object_cast_to_BackbonePDBSelector(o):
786  r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
787  return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
788 
789 _object_types.append("CHARMMParameters")
790 
791 
792 def _object_cast_to_CHARMMParameters(o):
793  r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
794  return _IMP_atom._object_cast_to_CHARMMParameters(o)
795 
796 _object_types.append("CHARMMResidueTopology")
797 
798 
799 def _object_cast_to_CHARMMResidueTopology(o):
800  r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
801  return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
802 
803 _object_types.append("CHARMMSegmentTopology")
804 
805 
806 def _object_cast_to_CHARMMSegmentTopology(o):
807  r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
808  return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
809 
810 _object_types.append("CHARMMStereochemistryRestraint")
811 
812 
813 def _object_cast_to_CHARMMStereochemistryRestraint(o):
814  r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
815  return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
816 
817 _object_types.append("CHARMMTopology")
818 
819 
820 def _object_cast_to_CHARMMTopology(o):
821  r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
822  return _IMP_atom._object_cast_to_CHARMMTopology(o)
823 
824 _object_types.append("CPDBSelector")
825 
826 
827 def _object_cast_to_CPDBSelector(o):
828  r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
829  return _IMP_atom._object_cast_to_CPDBSelector(o)
830 
831 _object_types.append("ChainPDBSelector")
832 
833 
834 def _object_cast_to_ChainPDBSelector(o):
835  r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
836  return _IMP_atom._object_cast_to_ChainPDBSelector(o)
837 
838 _object_types.append("CoulombPairScore")
839 
840 
841 def _object_cast_to_CoulombPairScore(o):
842  r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
843  return _IMP_atom._object_cast_to_CoulombPairScore(o)
844 
845 _object_types.append("CoverBond")
846 
847 
848 def _object_cast_to_CoverBond(o):
849  r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
850  return _IMP_atom._object_cast_to_CoverBond(o)
851 
852 _object_types.append("DihedralSingletonScore")
853 
854 
855 def _object_cast_to_DihedralSingletonScore(o):
856  r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
857  return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
858 
859 _object_types.append("DopePairScore")
860 
861 
862 def _object_cast_to_DopePairScore(o):
863  r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
864  return _IMP_atom._object_cast_to_DopePairScore(o)
865 
866 _object_types.append("LoopStatisticalPairScore")
867 
868 
869 def _object_cast_to_LoopStatisticalPairScore(o):
870  r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
871  return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
872 
873 _object_types.append("OrientedSoapPairScore")
874 
875 
876 def _object_cast_to_OrientedSoapPairScore(o):
877  r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
878  return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
879 
880 _object_types.append("EzRestraint")
881 
882 
883 def _object_cast_to_EzRestraint(o):
884  r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
885  return _IMP_atom._object_cast_to_EzRestraint(o)
886 
887 _object_types.append("ForceFieldParameters")
888 
889 
890 def _object_cast_to_ForceFieldParameters(o):
891  r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
892  return _IMP_atom._object_cast_to_ForceFieldParameters(o)
893 
894 _object_types.append("ForceSwitch")
895 
896 
897 def _object_cast_to_ForceSwitch(o):
898  r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
899  return _IMP_atom._object_cast_to_ForceSwitch(o)
900 
901 _object_types.append("HydrogenPDBSelector")
902 
903 
904 def _object_cast_to_HydrogenPDBSelector(o):
905  r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
906  return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
907 
908 _object_types.append("ImproperSingletonScore")
909 
910 
911 def _object_cast_to_ImproperSingletonScore(o):
912  r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
913  return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
914 
915 _object_types.append("_LennardJonesTypedPairScore")
916 
917 
918 def _object_cast_to__LennardJonesTypedPairScore(o):
919  r"""_object_cast_to__LennardJonesTypedPairScore(Object o) -> _LennardJonesTypedPairScore"""
920  return _IMP_atom._object_cast_to__LennardJonesTypedPairScore(o)
921 
922 _object_types.append("_SwitchedLennardJonesTypedPairScore")
923 
924 
925 def _object_cast_to__SwitchedLennardJonesTypedPairScore(o):
926  r"""_object_cast_to__SwitchedLennardJonesTypedPairScore(Object o) -> _SwitchedLennardJonesTypedPairScore"""
927  return _IMP_atom._object_cast_to__SwitchedLennardJonesTypedPairScore(o)
928 
929 _object_types.append("Mol2Selector")
930 
931 
932 def _object_cast_to_Mol2Selector(o):
933  r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
934  return _IMP_atom._object_cast_to_Mol2Selector(o)
935 
936 _object_types.append("MolecularDynamics")
937 
938 
939 def _object_cast_to_MolecularDynamics(o):
940  r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
941  return _IMP_atom._object_cast_to_MolecularDynamics(o)
942 
943 _object_types.append("NPDBSelector")
944 
945 
946 def _object_cast_to_NPDBSelector(o):
947  r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
948  return _IMP_atom._object_cast_to_NPDBSelector(o)
949 
950 _object_types.append("NonAlternativePDBSelector")
951 
952 
953 def _object_cast_to_NonAlternativePDBSelector(o):
954  r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
955  return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
956 
957 _object_types.append("NonHydrogenMol2Selector")
958 
959 
960 def _object_cast_to_NonHydrogenMol2Selector(o):
961  r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
962  return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
963 
964 _object_types.append("NonHydrogenPDBSelector")
965 
966 
967 def _object_cast_to_NonHydrogenPDBSelector(o):
968  r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
969  return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
970 
971 _object_types.append("NonWaterNonHydrogenPDBSelector")
972 
973 
974 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
975  r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
976  return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
977 
978 _object_types.append("NonWaterPDBSelector")
979 
980 
981 def _object_cast_to_NonWaterPDBSelector(o):
982  r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
983  return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
984 
985 _object_types.append("NotPDBSelector")
986 
987 
988 def _object_cast_to_NotPDBSelector(o):
989  r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
990  return _IMP_atom._object_cast_to_NotPDBSelector(o)
991 
992 _object_types.append("OrPDBSelector")
993 
994 
995 def _object_cast_to_OrPDBSelector(o):
996  r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
997  return _IMP_atom._object_cast_to_OrPDBSelector(o)
998 
999 _object_types.append("PPDBSelector")
1000 
1001 
1002 def _object_cast_to_PPDBSelector(o):
1003  r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1004  return _IMP_atom._object_cast_to_PPDBSelector(o)
1005 
1006 _object_types.append("ResidueRangePDBSelector")
1007 
1008 
1009 def _object_cast_to_ResidueRangePDBSelector(o):
1010  r"""_object_cast_to_ResidueRangePDBSelector(Object o) -> ResidueRangePDBSelector"""
1011  return _IMP_atom._object_cast_to_ResidueRangePDBSelector(o)
1012 
1013 _object_types.append("ProteinLigandAtomPairScore")
1014 
1015 
1016 def _object_cast_to_ProteinLigandAtomPairScore(o):
1017  r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1018  return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1019 
1020 _object_types.append("ProteinLigandRestraint")
1021 
1022 
1023 def _object_cast_to_ProteinLigandRestraint(o):
1024  r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1025  return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1026 
1027 _object_types.append("SameResiduePairFilter")
1028 
1029 
1030 def _object_cast_to_SameResiduePairFilter(o):
1031  r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1032  return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1033 
1034 _object_types.append("SoapPairFilter")
1035 
1036 
1037 def _object_cast_to_SoapPairFilter(o):
1038  r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1039  return _IMP_atom._object_cast_to_SoapPairFilter(o)
1040 
1041 _object_types.append("SmoothingFunction")
1042 
1043 
1044 def _object_cast_to_SmoothingFunction(o):
1045  r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1046  return _IMP_atom._object_cast_to_SmoothingFunction(o)
1047 
1048 _object_types.append("StereochemistryPairFilter")
1049 
1050 
1051 def _object_cast_to_StereochemistryPairFilter(o):
1052  r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1053  return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1054 
1055 _object_types.append("VelocityScalingOptimizerState")
1056 
1057 
1058 def _object_cast_to_VelocityScalingOptimizerState(o):
1059  r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1060  return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1061 
1062 _object_types.append("WaterPDBSelector")
1063 
1064 
1065 def _object_cast_to_WaterPDBSelector(o):
1066  r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1067  return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1068 
1069 _object_types.append("WritePDBOptimizerState")
1070 
1071 
1072 def _object_cast_to_WritePDBOptimizerState(o):
1073  r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1074  return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1075 
1076 AtomTypes=list
1077 _plural_types.append("AtomTypes")
1078 _value_types.append("AtomType")
1079 
1080 
1081 CHARMMAtomTopologies=list
1082 _plural_types.append("CHARMMAtomTopologies")
1083 _value_types.append("CHARMMAtomTopology")
1084 
1085 
1086 CHARMMBondEndpoints=list
1087 _plural_types.append("CHARMMBondEndpoints")
1088 _value_types.append("CHARMMBondEndpoint")
1089 
1090 
1091 CHARMMBondParametersList=list
1092 _plural_types.append("CHARMMBondParametersList")
1093 _value_types.append("CHARMMBondParameters")
1094 
1095 
1096 CHARMMDihedralParametersList=list
1097 _plural_types.append("CHARMMDihedralParametersList")
1098 _value_types.append("CHARMMDihedralParameters")
1099 
1100 
1101 _object_types.append("CHARMMIdealResidueTopology")
1102 
1103 
1104 def _object_cast_to_CHARMMIdealResidueTopology(o):
1105  r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1106  return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1107 
1108 CHARMMInternalCoordinates=list
1109 _plural_types.append("CHARMMInternalCoordinates")
1110 _value_types.append("CHARMMInternalCoordinate")
1111 
1112 
1113 _object_types.append("CHARMMPatch")
1114 
1115 
1116 def _object_cast_to_CHARMMPatch(o):
1117  r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1118  return _IMP_atom._object_cast_to_CHARMMPatch(o)
1119 
1120 _object_types.append("CHARMMResidueTopologyBase")
1121 
1122 
1123 def _object_cast_to_CHARMMResidueTopologyBase(o):
1124  r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1125  return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1126 
1127 ResidueTypes=list
1128 _plural_types.append("ResidueTypes")
1129 _value_types.append("ResidueType")
1130 
1131 
1132 ChainTypes=list
1133 _plural_types.append("ChainTypes")
1134 _value_types.append("ChainType")
1135 
1136 
1137 Selections=list
1138 _plural_types.append("Selections")
1139 _value_types.append("Selection")
1140 
1141 
1142 _object_types.append("RemoveRigidMotionOptimizerState")
1143 
1144 
1145 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1146  r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1147  return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1148 
1149 _object_types.append("BerendsenThermostatOptimizerState")
1150 
1151 
1152 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1153  r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1154  return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1155 
1156 _object_types.append("LangevinThermostatOptimizerState")
1157 
1158 
1159 def _object_cast_to_LangevinThermostatOptimizerState(o):
1160  r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1161  return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1162 
1163 _object_types.append("SelectionGeometry")
1164 
1165 
1166 def _object_cast_to_SelectionGeometry(o):
1167  r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1168  return _IMP_atom._object_cast_to_SelectionGeometry(o)
1169 
1170 _object_types.append("HierarchyGeometry")
1171 
1172 
1173 def _object_cast_to_HierarchyGeometry(o):
1174  r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1175  return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1176 
1177 _object_types.append("HierarchiesGeometry")
1178 
1179 
1180 def _object_cast_to_HierarchiesGeometry(o):
1181  r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1182  return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1183 
1184 _object_types.append("BondGeometry")
1185 
1186 
1187 def _object_cast_to_BondGeometry(o):
1188  r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1189  return _IMP_atom._object_cast_to_BondGeometry(o)
1190 
1191 _object_types.append("BondsGeometry")
1192 
1193 
1194 def _object_cast_to_BondsGeometry(o):
1195  r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1196  return _IMP_atom._object_cast_to_BondsGeometry(o)
1197 
1198 _object_types.append("CAAngleRestraint")
1199 
1200 
1201 def _object_cast_to_CAAngleRestraint(o):
1202  r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1203  return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1204 
1205 _object_types.append("CADihedralRestraint")
1206 
1207 
1208 def _object_cast_to_CADihedralRestraint(o):
1209  r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1210  return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1211 
1212 _object_types.append("HelixRestraint")
1213 
1214 
1215 def _object_cast_to_HelixRestraint(o):
1216  r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1217  return _IMP_atom._object_cast_to_HelixRestraint(o)
1218 
1219 CHARMMDihedrals=list
1220 _plural_types.append("CHARMMDihedrals")
1221 _value_types.append("CHARMMDihedral")
1222 
1223 
1224 CHARMMBonds=list
1225 _plural_types.append("CHARMMBonds")
1226 _value_types.append("CHARMMBond")
1227 
1228 
1229 CHARMMAngles=list
1230 _plural_types.append("CHARMMAngles")
1231 _value_types.append("CHARMMAngle")
1232 
1233 class Bond(IMP.Decorator):
1234  r"""Proxy of C++ IMP::atom::Bond class."""
1235 
1236  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1237 
1238  def __init__(self, *args):
1239  r"""
1240  __init__(Bond self) -> Bond
1241  __init__(Bond self, Model m, ParticleIndex id) -> Bond
1242  __init__(Bond self, _ParticleAdaptor d) -> Bond
1243  """
1244  _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1245 
1246  def show(self, *args):
1247  r"""show(Bond self, _ostream out=std::cout)"""
1248  return _IMP_atom.Bond_show(self, *args)
1249 
1250  @staticmethod
1251  def get_is_setup(*args):
1252  r"""
1253  get_is_setup(_ParticleAdaptor p) -> bool
1254  get_is_setup(Model m, ParticleIndex pi) -> bool
1255  """
1256  return _IMP_atom.Bond_get_is_setup(*args)
1257  UNKNOWN = _IMP_atom.Bond_UNKNOWN
1258 
1259  NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1260 
1261  SINGLE = _IMP_atom.Bond_SINGLE
1262 
1263  DOUBLE = _IMP_atom.Bond_DOUBLE
1264 
1265  TRIPLE = _IMP_atom.Bond_TRIPLE
1266 
1267  HYDROGEN = _IMP_atom.Bond_HYDROGEN
1268 
1269  SALT = _IMP_atom.Bond_SALT
1270 
1271  PEPTIDE = _IMP_atom.Bond_PEPTIDE
1272 
1273  AMIDE = _IMP_atom.Bond_AMIDE
1274 
1275  AROMATIC = _IMP_atom.Bond_AROMATIC
1276 
1277 
1278  def get_bonded(self, i):
1279  r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1280  return _IMP_atom.Bond_get_bonded(self, i)
1281 
1282  def get_type(self):
1283  r"""get_type(Bond self) -> IMP::Int"""
1284  return _IMP_atom.Bond_get_type(self)
1285 
1286  def set_type(self, t):
1287  r"""set_type(Bond self, IMP::Int t)"""
1288  return _IMP_atom.Bond_set_type(self, t)
1289 
1290  def get_order(self):
1291  r"""get_order(Bond self) -> IMP::Int"""
1292  return _IMP_atom.Bond_get_order(self)
1293 
1294  def set_order(self, t):
1295  r"""set_order(Bond self, IMP::Int t)"""
1296  return _IMP_atom.Bond_set_order(self, t)
1297 
1298  def get_length(self):
1299  r"""get_length(Bond self) -> IMP::Float"""
1300  return _IMP_atom.Bond_get_length(self)
1301 
1302  def set_length(self, t):
1303  r"""set_length(Bond self, IMP::Float t)"""
1304  return _IMP_atom.Bond_set_length(self, t)
1305 
1306  def get_stiffness(self):
1307  r"""get_stiffness(Bond self) -> IMP::Float"""
1308  return _IMP_atom.Bond_get_stiffness(self)
1309 
1310  def set_stiffness(self, t):
1311  r"""set_stiffness(Bond self, IMP::Float t)"""
1312  return _IMP_atom.Bond_set_stiffness(self, t)
1313 
1314  @staticmethod
1315  def get_length_key():
1316  r"""get_length_key() -> FloatKey"""
1317  return _IMP_atom.Bond_get_length_key()
1318 
1319  def add_attribute(self, *args):
1320  r"""
1321  add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1322  add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1323  add_attribute(Bond self, IntKey a0, IMP::Int a1)
1324  add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1325  add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1326  add_attribute(Bond self, StringKey a0, IMP::String a1)
1327  add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1328  add_attribute(Bond self, ObjectKey a0, Object a1)
1329  add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1330  add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1331  add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1332  add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1333  """
1334  return _IMP_atom.Bond_add_attribute(self, *args)
1335 
1336  def get_value(self, *args):
1337  r"""
1338  get_value(Bond self, FloatKey a0) -> IMP::Float
1339  get_value(Bond self, IntKey a0) -> IMP::Int
1340  get_value(Bond self, FloatsKey a0) -> IMP::Floats
1341  get_value(Bond self, IntsKey a0) -> IMP::Ints
1342  get_value(Bond self, StringKey a0) -> IMP::String
1343  get_value(Bond self, ParticleIndexKey a0) -> Particle
1344  get_value(Bond self, ObjectKey a0) -> Object
1345  get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1346  get_value(Bond self, SparseIntKey a0) -> IMP::Int
1347  get_value(Bond self, SparseStringKey a0) -> IMP::String
1348  get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1349  """
1350  return _IMP_atom.Bond_get_value(self, *args)
1351 
1352  def set_value(self, *args):
1353  r"""
1354  set_value(Bond self, FloatKey a0, IMP::Float a1)
1355  set_value(Bond self, IntKey a0, IMP::Int a1)
1356  set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1357  set_value(Bond self, IntsKey a0, IMP::Ints a1)
1358  set_value(Bond self, StringKey a0, IMP::String a1)
1359  set_value(Bond self, ParticleIndexKey a0, Particle a1)
1360  set_value(Bond self, ObjectKey a0, Object a1)
1361  set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1362  set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1363  set_value(Bond self, SparseStringKey a0, IMP::String a1)
1364  set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1365  """
1366  return _IMP_atom.Bond_set_value(self, *args)
1367 
1368  def remove_attribute(self, *args):
1369  r"""
1370  remove_attribute(Bond self, FloatKey a0)
1371  remove_attribute(Bond self, IntKey a0)
1372  remove_attribute(Bond self, FloatsKey a0)
1373  remove_attribute(Bond self, IntsKey a0)
1374  remove_attribute(Bond self, StringKey a0)
1375  remove_attribute(Bond self, ParticleIndexKey a0)
1376  remove_attribute(Bond self, ObjectKey a0)
1377  remove_attribute(Bond self, SparseFloatKey a0)
1378  remove_attribute(Bond self, SparseIntKey a0)
1379  remove_attribute(Bond self, SparseStringKey a0)
1380  remove_attribute(Bond self, SparseParticleIndexKey a0)
1381  """
1382  return _IMP_atom.Bond_remove_attribute(self, *args)
1383 
1384  def has_attribute(self, *args):
1385  r"""
1386  has_attribute(Bond self, FloatKey a0) -> bool
1387  has_attribute(Bond self, IntKey a0) -> bool
1388  has_attribute(Bond self, FloatsKey a0) -> bool
1389  has_attribute(Bond self, IntsKey a0) -> bool
1390  has_attribute(Bond self, StringKey a0) -> bool
1391  has_attribute(Bond self, ParticleIndexKey a0) -> bool
1392  has_attribute(Bond self, ObjectKey a0) -> bool
1393  has_attribute(Bond self, SparseFloatKey a0) -> bool
1394  has_attribute(Bond self, SparseIntKey a0) -> bool
1395  has_attribute(Bond self, SparseStringKey a0) -> bool
1396  has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1397  """
1398  return _IMP_atom.Bond_has_attribute(self, *args)
1399 
1400  def get_derivative(self, a0):
1401  r"""get_derivative(Bond self, FloatKey a0) -> double"""
1402  return _IMP_atom.Bond_get_derivative(self, a0)
1403 
1404  def get_name(self):
1405  r"""get_name(Bond self) -> std::string"""
1406  return _IMP_atom.Bond_get_name(self)
1407 
1408  def clear_caches(self):
1409  r"""clear_caches(Bond self)"""
1410  return _IMP_atom.Bond_clear_caches(self)
1411 
1412  def set_name(self, a0):
1413  r"""set_name(Bond self, std::string a0)"""
1414  return _IMP_atom.Bond_set_name(self, a0)
1415 
1416  def set_check_level(self, a0):
1417  r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1418  return _IMP_atom.Bond_set_check_level(self, a0)
1419 
1420  def add_to_derivative(self, a0, a1, a2):
1421  r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1422  return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1423 
1424  def set_is_optimized(self, a0, a1):
1425  r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1426  return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1427 
1428  def get_is_optimized(self, a0):
1429  r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1430  return _IMP_atom.Bond_get_is_optimized(self, a0)
1431 
1432  def get_check_level(self):
1433  r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1434  return _IMP_atom.Bond_get_check_level(self)
1435 
1436  def __eq__(self, *args):
1437  r"""
1438  __eq__(Bond self, Bond o) -> bool
1439  __eq__(Bond self, Particle d) -> bool
1440  """
1441  return _IMP_atom.Bond___eq__(self, *args)
1442 
1443  def __ne__(self, *args):
1444  r"""
1445  __ne__(Bond self, Bond o) -> bool
1446  __ne__(Bond self, Particle d) -> bool
1447  """
1448  return _IMP_atom.Bond___ne__(self, *args)
1449 
1450  def __le__(self, *args):
1451  r"""
1452  __le__(Bond self, Bond o) -> bool
1453  __le__(Bond self, Particle d) -> bool
1454  """
1455  return _IMP_atom.Bond___le__(self, *args)
1456 
1457  def __lt__(self, *args):
1458  r"""
1459  __lt__(Bond self, Bond o) -> bool
1460  __lt__(Bond self, Particle d) -> bool
1461  """
1462  return _IMP_atom.Bond___lt__(self, *args)
1463 
1464  def __ge__(self, *args):
1465  r"""
1466  __ge__(Bond self, Bond o) -> bool
1467  __ge__(Bond self, Particle d) -> bool
1468  """
1469  return _IMP_atom.Bond___ge__(self, *args)
1470 
1471  def __gt__(self, *args):
1472  r"""
1473  __gt__(Bond self, Bond o) -> bool
1474  __gt__(Bond self, Particle d) -> bool
1475  """
1476  return _IMP_atom.Bond___gt__(self, *args)
1477 
1478  def __hash__(self):
1479  r"""__hash__(Bond self) -> std::size_t"""
1480  return _IMP_atom.Bond___hash__(self)
1481 
1482  def __str__(self):
1483  r"""__str__(Bond self) -> std::string"""
1484  return _IMP_atom.Bond___str__(self)
1485 
1486  def __repr__(self):
1487  r"""__repr__(Bond self) -> std::string"""
1488  return _IMP_atom.Bond___repr__(self)
1489 
1490  def _get_as_binary(self):
1491  r"""_get_as_binary(Bond self) -> PyObject *"""
1492  return _IMP_atom.Bond__get_as_binary(self)
1493 
1494  def _set_from_binary(self, p):
1495  r"""_set_from_binary(Bond self, PyObject * p)"""
1496  return _IMP_atom.Bond__set_from_binary(self, p)
1497 
1498  def __getstate__(self):
1499  p = self._get_as_binary()
1500  if len(self.__dict__) > 1:
1501  d = self.__dict__.copy()
1502  del d['this']
1503  p = (d, p)
1504  return p
1505 
1506  def __setstate__(self, p):
1507  if not hasattr(self, 'this'):
1508  self.__init__()
1509  if isinstance(p, tuple):
1510  d, p = p
1511  self.__dict__.update(d)
1512  return self._set_from_binary(p)
1513 
1514  __swig_destroy__ = _IMP_atom.delete_Bond
1515 
1516 # Register Bond in _IMP_atom:
1517 _IMP_atom.Bond_swigregister(Bond)
1518 class Bonded(IMP.Decorator):
1519  r"""Proxy of C++ IMP::atom::Bonded class."""
1520 
1521  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1522 
1523  def __init__(self, *args):
1524  r"""
1525  __init__(Bonded self) -> Bonded
1526  __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1527  __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1528  """
1529  _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1530 
1531  def show(self, *args):
1532  r"""show(Bonded self, _ostream out=std::cout)"""
1533  return _IMP_atom.Bonded_show(self, *args)
1534 
1535  @staticmethod
1536  def setup_particle(*args):
1537  r"""
1538  setup_particle(Model m, ParticleIndex pi) -> Bonded
1539  setup_particle(_ParticleAdaptor pa) -> Bonded
1540  """
1541  return _IMP_atom.Bonded_setup_particle(*args)
1542 
1543  @staticmethod
1544  def get_is_setup(*args):
1545  r"""
1546  get_is_setup(_ParticleAdaptor p) -> bool
1547  get_is_setup(Model m, ParticleIndex pi) -> bool
1548  """
1549  return _IMP_atom.Bonded_get_is_setup(*args)
1550 
1551  def get_number_of_bonds(self):
1552  r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1553  return _IMP_atom.Bonded_get_number_of_bonds(self)
1554 
1555  def get_bond_indexes(self):
1556  r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1557  return _IMP_atom.Bonded_get_bond_indexes(self)
1558 
1559  def get_bond(self, i):
1560  r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1561  return _IMP_atom.Bonded_get_bond(self, i)
1562 
1563  def get_bonded(self, i):
1564  r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1565  return _IMP_atom.Bonded_get_bonded(self, i)
1566 
1567  def add_attribute(self, *args):
1568  r"""
1569  add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1570  add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1571  add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1572  add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1573  add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1574  add_attribute(Bonded self, StringKey a0, IMP::String a1)
1575  add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1576  add_attribute(Bonded self, ObjectKey a0, Object a1)
1577  add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1578  add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1579  add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1580  add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1581  """
1582  return _IMP_atom.Bonded_add_attribute(self, *args)
1583 
1584  def get_value(self, *args):
1585  r"""
1586  get_value(Bonded self, FloatKey a0) -> IMP::Float
1587  get_value(Bonded self, IntKey a0) -> IMP::Int
1588  get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1589  get_value(Bonded self, IntsKey a0) -> IMP::Ints
1590  get_value(Bonded self, StringKey a0) -> IMP::String
1591  get_value(Bonded self, ParticleIndexKey a0) -> Particle
1592  get_value(Bonded self, ObjectKey a0) -> Object
1593  get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1594  get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1595  get_value(Bonded self, SparseStringKey a0) -> IMP::String
1596  get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1597  """
1598  return _IMP_atom.Bonded_get_value(self, *args)
1599 
1600  def set_value(self, *args):
1601  r"""
1602  set_value(Bonded self, FloatKey a0, IMP::Float a1)
1603  set_value(Bonded self, IntKey a0, IMP::Int a1)
1604  set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1605  set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1606  set_value(Bonded self, StringKey a0, IMP::String a1)
1607  set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1608  set_value(Bonded self, ObjectKey a0, Object a1)
1609  set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1610  set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1611  set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1612  set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1613  """
1614  return _IMP_atom.Bonded_set_value(self, *args)
1615 
1616  def remove_attribute(self, *args):
1617  r"""
1618  remove_attribute(Bonded self, FloatKey a0)
1619  remove_attribute(Bonded self, IntKey a0)
1620  remove_attribute(Bonded self, FloatsKey a0)
1621  remove_attribute(Bonded self, IntsKey a0)
1622  remove_attribute(Bonded self, StringKey a0)
1623  remove_attribute(Bonded self, ParticleIndexKey a0)
1624  remove_attribute(Bonded self, ObjectKey a0)
1625  remove_attribute(Bonded self, SparseFloatKey a0)
1626  remove_attribute(Bonded self, SparseIntKey a0)
1627  remove_attribute(Bonded self, SparseStringKey a0)
1628  remove_attribute(Bonded self, SparseParticleIndexKey a0)
1629  """
1630  return _IMP_atom.Bonded_remove_attribute(self, *args)
1631 
1632  def has_attribute(self, *args):
1633  r"""
1634  has_attribute(Bonded self, FloatKey a0) -> bool
1635  has_attribute(Bonded self, IntKey a0) -> bool
1636  has_attribute(Bonded self, FloatsKey a0) -> bool
1637  has_attribute(Bonded self, IntsKey a0) -> bool
1638  has_attribute(Bonded self, StringKey a0) -> bool
1639  has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1640  has_attribute(Bonded self, ObjectKey a0) -> bool
1641  has_attribute(Bonded self, SparseFloatKey a0) -> bool
1642  has_attribute(Bonded self, SparseIntKey a0) -> bool
1643  has_attribute(Bonded self, SparseStringKey a0) -> bool
1644  has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1645  """
1646  return _IMP_atom.Bonded_has_attribute(self, *args)
1647 
1648  def get_derivative(self, a0):
1649  r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1650  return _IMP_atom.Bonded_get_derivative(self, a0)
1651 
1652  def get_name(self):
1653  r"""get_name(Bonded self) -> std::string"""
1654  return _IMP_atom.Bonded_get_name(self)
1655 
1656  def clear_caches(self):
1657  r"""clear_caches(Bonded self)"""
1658  return _IMP_atom.Bonded_clear_caches(self)
1659 
1660  def set_name(self, a0):
1661  r"""set_name(Bonded self, std::string a0)"""
1662  return _IMP_atom.Bonded_set_name(self, a0)
1663 
1664  def set_check_level(self, a0):
1665  r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1666  return _IMP_atom.Bonded_set_check_level(self, a0)
1667 
1668  def add_to_derivative(self, a0, a1, a2):
1669  r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1670  return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1671 
1672  def set_is_optimized(self, a0, a1):
1673  r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1674  return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1675 
1676  def get_is_optimized(self, a0):
1677  r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1678  return _IMP_atom.Bonded_get_is_optimized(self, a0)
1679 
1680  def get_check_level(self):
1681  r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1682  return _IMP_atom.Bonded_get_check_level(self)
1683 
1684  def __eq__(self, *args):
1685  r"""
1686  __eq__(Bonded self, Bonded o) -> bool
1687  __eq__(Bonded self, Particle d) -> bool
1688  """
1689  return _IMP_atom.Bonded___eq__(self, *args)
1690 
1691  def __ne__(self, *args):
1692  r"""
1693  __ne__(Bonded self, Bonded o) -> bool
1694  __ne__(Bonded self, Particle d) -> bool
1695  """
1696  return _IMP_atom.Bonded___ne__(self, *args)
1697 
1698  def __le__(self, *args):
1699  r"""
1700  __le__(Bonded self, Bonded o) -> bool
1701  __le__(Bonded self, Particle d) -> bool
1702  """
1703  return _IMP_atom.Bonded___le__(self, *args)
1704 
1705  def __lt__(self, *args):
1706  r"""
1707  __lt__(Bonded self, Bonded o) -> bool
1708  __lt__(Bonded self, Particle d) -> bool
1709  """
1710  return _IMP_atom.Bonded___lt__(self, *args)
1711 
1712  def __ge__(self, *args):
1713  r"""
1714  __ge__(Bonded self, Bonded o) -> bool
1715  __ge__(Bonded self, Particle d) -> bool
1716  """
1717  return _IMP_atom.Bonded___ge__(self, *args)
1718 
1719  def __gt__(self, *args):
1720  r"""
1721  __gt__(Bonded self, Bonded o) -> bool
1722  __gt__(Bonded self, Particle d) -> bool
1723  """
1724  return _IMP_atom.Bonded___gt__(self, *args)
1725 
1726  def __hash__(self):
1727  r"""__hash__(Bonded self) -> std::size_t"""
1728  return _IMP_atom.Bonded___hash__(self)
1729 
1730  def __str__(self):
1731  r"""__str__(Bonded self) -> std::string"""
1732  return _IMP_atom.Bonded___str__(self)
1733 
1734  def __repr__(self):
1735  r"""__repr__(Bonded self) -> std::string"""
1736  return _IMP_atom.Bonded___repr__(self)
1737 
1738  def _get_as_binary(self):
1739  r"""_get_as_binary(Bonded self) -> PyObject *"""
1740  return _IMP_atom.Bonded__get_as_binary(self)
1741 
1742  def _set_from_binary(self, p):
1743  r"""_set_from_binary(Bonded self, PyObject * p)"""
1744  return _IMP_atom.Bonded__set_from_binary(self, p)
1745 
1746  def __getstate__(self):
1747  p = self._get_as_binary()
1748  if len(self.__dict__) > 1:
1749  d = self.__dict__.copy()
1750  del d['this']
1751  p = (d, p)
1752  return p
1753 
1754  def __setstate__(self, p):
1755  if not hasattr(self, 'this'):
1756  self.__init__()
1757  if isinstance(p, tuple):
1758  d, p = p
1759  self.__dict__.update(d)
1760  return self._set_from_binary(p)
1761 
1762  __swig_destroy__ = _IMP_atom.delete_Bonded
1763 
1764 # Register Bonded in _IMP_atom:
1765 _IMP_atom.Bonded_swigregister(Bonded)
1766 
1767 def create_custom_bond(a, b, length, stiffness=-1):
1768  r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1769  return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1770 
1771 def create_bond(*args):
1772  r"""
1773  create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1774  create_bond(Bonded a, Bonded b, Bond o) -> Bond
1775  """
1776  return _IMP_atom.create_bond(*args)
1777 
1778 def destroy_bond(b):
1779  r"""destroy_bond(Bond b)"""
1780  return _IMP_atom.destroy_bond(b)
1781 
1782 def get_bond(a, b):
1783  r"""get_bond(Bonded a, Bonded b) -> Bond"""
1784  return _IMP_atom.get_bond(a, b)
1785 class BondGeometry(IMP.display.SingletonGeometry):
1786  r"""Proxy of C++ IMP::atom::BondGeometry class."""
1787 
1788  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1789 
1790  def __init__(self, *args):
1791  r"""
1792  __init__(BondGeometry self, Particle p) -> BondGeometry
1793  __init__(BondGeometry self, Bond d) -> BondGeometry
1794  """
1795  _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1796 
1797  def get_version_info(self):
1798  r"""get_version_info(BondGeometry self) -> VersionInfo"""
1799  return _IMP_atom.BondGeometry_get_version_info(self)
1800  __swig_destroy__ = _IMP_atom.delete_BondGeometry
1801 
1802  def __str__(self):
1803  r"""__str__(BondGeometry self) -> std::string"""
1804  return _IMP_atom.BondGeometry___str__(self)
1805 
1806  def __repr__(self):
1807  r"""__repr__(BondGeometry self) -> std::string"""
1808  return _IMP_atom.BondGeometry___repr__(self)
1809 
1810  @staticmethod
1811  def get_from(o):
1812  return _object_cast_to_BondGeometry(o)
1813 
1814 
1815 # Register BondGeometry in _IMP_atom:
1816 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1817 class BondsGeometry(IMP.display.SingletonsGeometry):
1818  r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1819 
1820  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1821 
1822  def __init__(self, sc):
1823  r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1824  _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1825 
1826  def get_version_info(self):
1827  r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1828  return _IMP_atom.BondsGeometry_get_version_info(self)
1829  __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1830 
1831  def __str__(self):
1832  r"""__str__(BondsGeometry self) -> std::string"""
1833  return _IMP_atom.BondsGeometry___str__(self)
1834 
1835  def __repr__(self):
1836  r"""__repr__(BondsGeometry self) -> std::string"""
1837  return _IMP_atom.BondsGeometry___repr__(self)
1838 
1839  @staticmethod
1840  def get_from(o):
1841  return _object_cast_to_BondsGeometry(o)
1842 
1843 
1844 # Register BondsGeometry in _IMP_atom:
1845 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1846 class Hierarchy(IMP.core.Hierarchy):
1847  r"""Proxy of C++ IMP::atom::Hierarchy class."""
1848 
1849  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1850 
1851  def __init__(self, *args):
1852  r"""
1853  __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1854  __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1855  __init__(Hierarchy self) -> Hierarchy
1856  __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1857  """
1858  _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1859 
1860  @staticmethod
1861  def setup_particle(*args):
1862  r"""
1863  setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1864  setup_particle(Particle p) -> Hierarchy
1865  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1866  """
1867  return _IMP_atom.Hierarchy_setup_particle(*args)
1868 
1869  @staticmethod
1870  def get_is_setup(*args):
1871  r"""
1872  get_is_setup(Particle p) -> bool
1873  get_is_setup(Model m, ParticleIndex p) -> bool
1874  """
1875  return _IMP_atom.Hierarchy_get_is_setup(*args)
1876 
1877  def get_is_valid(self, print_info=False):
1878  r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1879  return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1880 
1881  def add_child(self, o):
1882  r"""add_child(Hierarchy self, Hierarchy o)"""
1883  return _IMP_atom.Hierarchy_add_child(self, o)
1884 
1885  def get_child(self, i):
1886  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1887  return _IMP_atom.Hierarchy_get_child(self, i)
1888 
1889  def get_children(self):
1890  r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1891  return _IMP_atom.Hierarchy_get_children(self)
1892 
1893  def get_parent(self):
1894  r"""get_parent(Hierarchy self) -> Hierarchy"""
1895  return _IMP_atom.Hierarchy_get_parent(self)
1896 
1897  @staticmethod
1898  def get_traits():
1899  r"""get_traits() -> HierarchyTraits"""
1900  return _IMP_atom.Hierarchy_get_traits()
1901 
1902  def show(self, *args):
1903  r"""
1904  show(Hierarchy self, _ostream out, std::string delimiter)
1905  show(Hierarchy self, _ostream out=std::cout)
1906  """
1907  return _IMP_atom.Hierarchy_show(self, *args)
1908 
1909  def add_attribute(self, *args):
1910  r"""
1911  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1912  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1913  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1914  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1915  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1916  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1917  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1918  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1919  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1920  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1921  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1922  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1923  """
1924  return _IMP_atom.Hierarchy_add_attribute(self, *args)
1925 
1926  def get_value(self, *args):
1927  r"""
1928  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1929  get_value(Hierarchy self, IntKey a0) -> IMP::Int
1930  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1931  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1932  get_value(Hierarchy self, StringKey a0) -> IMP::String
1933  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1934  get_value(Hierarchy self, ObjectKey a0) -> Object
1935  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1936  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1937  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1938  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1939  """
1940  return _IMP_atom.Hierarchy_get_value(self, *args)
1941 
1942  def set_value(self, *args):
1943  r"""
1944  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1945  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1946  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1947  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1948  set_value(Hierarchy self, StringKey a0, IMP::String a1)
1949  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1950  set_value(Hierarchy self, ObjectKey a0, Object a1)
1951  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1952  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1953  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1954  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1955  """
1956  return _IMP_atom.Hierarchy_set_value(self, *args)
1957 
1958  def remove_attribute(self, *args):
1959  r"""
1960  remove_attribute(Hierarchy self, FloatKey a0)
1961  remove_attribute(Hierarchy self, IntKey a0)
1962  remove_attribute(Hierarchy self, FloatsKey a0)
1963  remove_attribute(Hierarchy self, IntsKey a0)
1964  remove_attribute(Hierarchy self, StringKey a0)
1965  remove_attribute(Hierarchy self, ParticleIndexKey a0)
1966  remove_attribute(Hierarchy self, ObjectKey a0)
1967  remove_attribute(Hierarchy self, SparseFloatKey a0)
1968  remove_attribute(Hierarchy self, SparseIntKey a0)
1969  remove_attribute(Hierarchy self, SparseStringKey a0)
1970  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1971  """
1972  return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1973 
1974  def has_attribute(self, *args):
1975  r"""
1976  has_attribute(Hierarchy self, FloatKey a0) -> bool
1977  has_attribute(Hierarchy self, IntKey a0) -> bool
1978  has_attribute(Hierarchy self, FloatsKey a0) -> bool
1979  has_attribute(Hierarchy self, IntsKey a0) -> bool
1980  has_attribute(Hierarchy self, StringKey a0) -> bool
1981  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1982  has_attribute(Hierarchy self, ObjectKey a0) -> bool
1983  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1984  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1985  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1986  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1987  """
1988  return _IMP_atom.Hierarchy_has_attribute(self, *args)
1989 
1990  def get_derivative(self, a0):
1991  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1992  return _IMP_atom.Hierarchy_get_derivative(self, a0)
1993 
1994  def get_name(self):
1995  r"""get_name(Hierarchy self) -> std::string"""
1996  return _IMP_atom.Hierarchy_get_name(self)
1997 
1998  def clear_caches(self):
1999  r"""clear_caches(Hierarchy self)"""
2000  return _IMP_atom.Hierarchy_clear_caches(self)
2001 
2002  def set_name(self, a0):
2003  r"""set_name(Hierarchy self, std::string a0)"""
2004  return _IMP_atom.Hierarchy_set_name(self, a0)
2005 
2006  def set_check_level(self, a0):
2007  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2008  return _IMP_atom.Hierarchy_set_check_level(self, a0)
2009 
2010  def add_to_derivative(self, a0, a1, a2):
2011  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2012  return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2013 
2014  def set_is_optimized(self, a0, a1):
2015  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2016  return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2017 
2018  def get_is_optimized(self, a0):
2019  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2020  return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2021 
2022  def get_check_level(self):
2023  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2024  return _IMP_atom.Hierarchy_get_check_level(self)
2025 
2026  def __eq__(self, *args):
2027  r"""
2028  __eq__(Hierarchy self, Hierarchy o) -> bool
2029  __eq__(Hierarchy self, Particle d) -> bool
2030  """
2031  return _IMP_atom.Hierarchy___eq__(self, *args)
2032 
2033  def __ne__(self, *args):
2034  r"""
2035  __ne__(Hierarchy self, Hierarchy o) -> bool
2036  __ne__(Hierarchy self, Particle d) -> bool
2037  """
2038  return _IMP_atom.Hierarchy___ne__(self, *args)
2039 
2040  def __le__(self, *args):
2041  r"""
2042  __le__(Hierarchy self, Hierarchy o) -> bool
2043  __le__(Hierarchy self, Particle d) -> bool
2044  """
2045  return _IMP_atom.Hierarchy___le__(self, *args)
2046 
2047  def __lt__(self, *args):
2048  r"""
2049  __lt__(Hierarchy self, Hierarchy o) -> bool
2050  __lt__(Hierarchy self, Particle d) -> bool
2051  """
2052  return _IMP_atom.Hierarchy___lt__(self, *args)
2053 
2054  def __ge__(self, *args):
2055  r"""
2056  __ge__(Hierarchy self, Hierarchy o) -> bool
2057  __ge__(Hierarchy self, Particle d) -> bool
2058  """
2059  return _IMP_atom.Hierarchy___ge__(self, *args)
2060 
2061  def __gt__(self, *args):
2062  r"""
2063  __gt__(Hierarchy self, Hierarchy o) -> bool
2064  __gt__(Hierarchy self, Particle d) -> bool
2065  """
2066  return _IMP_atom.Hierarchy___gt__(self, *args)
2067 
2068  def __hash__(self):
2069  r"""__hash__(Hierarchy self) -> std::size_t"""
2070  return _IMP_atom.Hierarchy___hash__(self)
2071 
2072  def __str__(self):
2073  r"""__str__(Hierarchy self) -> std::string"""
2074  return _IMP_atom.Hierarchy___str__(self)
2075 
2076  def __repr__(self):
2077  r"""__repr__(Hierarchy self) -> std::string"""
2078  return _IMP_atom.Hierarchy___repr__(self)
2079 
2080  def _get_as_binary(self):
2081  r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2082  return _IMP_atom.Hierarchy__get_as_binary(self)
2083 
2084  def _set_from_binary(self, p):
2085  r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2086  return _IMP_atom.Hierarchy__set_from_binary(self, p)
2087 
2088  def __getstate__(self):
2089  p = self._get_as_binary()
2090  if len(self.__dict__) > 1:
2091  d = self.__dict__.copy()
2092  del d['this']
2093  p = (d, p)
2094  return p
2095 
2096  def __setstate__(self, p):
2097  if not hasattr(self, 'this'):
2098  self.__init__()
2099  if isinstance(p, tuple):
2100  d, p = p
2101  self.__dict__.update(d)
2102  return self._set_from_binary(p)
2103 
2104  __swig_destroy__ = _IMP_atom.delete_Hierarchy
2105 
2106 # Register Hierarchy in _IMP_atom:
2107 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2108 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2109 
2110 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2111 
2112 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2113 
2114 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2115 
2116 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2117 
2118 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2119 
2120 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2121 
2122 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2123 
2124 MASS_TYPE = _IMP_atom.MASS_TYPE
2125 
2126 STATE_TYPE = _IMP_atom.STATE_TYPE
2127 
2128 
2129 def get_by_type(mhd, t):
2130  r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2131  return _IMP_atom.get_by_type(mhd, t)
2132 
2133 def create_fragment(ps):
2134  r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2135  return _IMP_atom.create_fragment(ps)
2136 
2137 def get_internal_bonds(mhd, with_representations=False):
2138  r"""get_internal_bonds(Hierarchy mhd, bool with_representations=False) -> IMP::atom::Bonds"""
2139  return _IMP_atom.get_internal_bonds(mhd, with_representations)
2140 
2141 def get_root(h):
2142  r"""get_root(Hierarchy h) -> Hierarchy"""
2143  return _IMP_atom.get_root(h)
2144 
2145 def show(*args):
2146  r"""show(Hierarchy h, _ostream out=std::cout)"""
2147  return _IMP_atom.show(*args)
2148 
2149 def create_rigid_body(*args):
2150  r"""
2151  create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2152  create_rigid_body(Hierarchy h) -> RigidBody
2153  """
2154  return _IMP_atom.create_rigid_body(*args)
2155 
2156 def create_compatible_rigid_body(h, reference):
2157  r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2158  return _IMP_atom.create_compatible_rigid_body(h, reference)
2159 
2160 def get_is_heterogen(h):
2161  r"""get_is_heterogen(Hierarchy h) -> bool"""
2162  return _IMP_atom.get_is_heterogen(h)
2163 
2164 def create_clone(d, m=None):
2165  r"""create_clone(Hierarchy d, Model m=None) -> Hierarchy"""
2166  return _IMP_atom.create_clone(d, m)
2167 
2168 def create_clone_one(d, m=None):
2169  r"""create_clone_one(Hierarchy d, Model m=None) -> Hierarchy"""
2170  return _IMP_atom.create_clone_one(d, m)
2171 
2172 def destroy(d):
2173  r"""destroy(Hierarchy d)"""
2174  return _IMP_atom.destroy(d)
2175 
2176 def get_bounding_box(h):
2177  r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2178  return _IMP_atom.get_bounding_box(h)
2179 
2180 def get_bounding_sphere(h):
2181  r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2182  return _IMP_atom.get_bounding_sphere(h)
2183 class Angle(IMP.Decorator):
2184  r"""Proxy of C++ IMP::atom::Angle class."""
2185 
2186  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2187 
2188  def __init__(self, *args):
2189  r"""
2190  __init__(Angle self) -> Angle
2191  __init__(Angle self, Model m, ParticleIndex id) -> Angle
2192  __init__(Angle self, _ParticleAdaptor d) -> Angle
2193  """
2194  _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2195 
2196  def show(self, *args):
2197  r"""show(Angle self, _ostream out=std::cout)"""
2198  return _IMP_atom.Angle_show(self, *args)
2199 
2200  @staticmethod
2201  def setup_particle(*args):
2202  r"""
2203  setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2204  setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2205  """
2206  return _IMP_atom.Angle_setup_particle(*args)
2207 
2208  @staticmethod
2209  def get_is_setup(*args):
2210  r"""
2211  get_is_setup(_ParticleAdaptor p) -> bool
2212  get_is_setup(Model m, ParticleIndex pi) -> bool
2213  """
2214  return _IMP_atom.Angle_get_is_setup(*args)
2215 
2216  def get_particle(self, *args):
2217  r"""
2218  get_particle(Angle self) -> Particle
2219  get_particle(Angle self, unsigned int i) -> Particle
2220  """
2221  return _IMP_atom.Angle_get_particle(self, *args)
2222 
2223  def get_ideal(self):
2224  r"""get_ideal(Angle self) -> IMP::Float"""
2225  return _IMP_atom.Angle_get_ideal(self)
2226 
2227  def set_ideal(self, t):
2228  r"""set_ideal(Angle self, IMP::Float t)"""
2229  return _IMP_atom.Angle_set_ideal(self, t)
2230 
2231  def get_stiffness(self):
2232  r"""get_stiffness(Angle self) -> IMP::Float"""
2233  return _IMP_atom.Angle_get_stiffness(self)
2234 
2235  def set_stiffness(self, t):
2236  r"""set_stiffness(Angle self, IMP::Float t)"""
2237  return _IMP_atom.Angle_set_stiffness(self, t)
2238 
2239  @staticmethod
2240  def get_particle_key(i):
2241  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2242  return _IMP_atom.Angle_get_particle_key(i)
2243 
2244  @staticmethod
2245  def get_ideal_key():
2246  r"""get_ideal_key() -> FloatKey"""
2247  return _IMP_atom.Angle_get_ideal_key()
2248 
2249  @staticmethod
2250  def get_stiffness_key():
2251  r"""get_stiffness_key() -> FloatKey"""
2252  return _IMP_atom.Angle_get_stiffness_key()
2253 
2254  def add_attribute(self, *args):
2255  r"""
2256  add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2257  add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2258  add_attribute(Angle self, IntKey a0, IMP::Int a1)
2259  add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2260  add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2261  add_attribute(Angle self, StringKey a0, IMP::String a1)
2262  add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2263  add_attribute(Angle self, ObjectKey a0, Object a1)
2264  add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2265  add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2266  add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2267  add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2268  """
2269  return _IMP_atom.Angle_add_attribute(self, *args)
2270 
2271  def get_value(self, *args):
2272  r"""
2273  get_value(Angle self, FloatKey a0) -> IMP::Float
2274  get_value(Angle self, IntKey a0) -> IMP::Int
2275  get_value(Angle self, FloatsKey a0) -> IMP::Floats
2276  get_value(Angle self, IntsKey a0) -> IMP::Ints
2277  get_value(Angle self, StringKey a0) -> IMP::String
2278  get_value(Angle self, ParticleIndexKey a0) -> Particle
2279  get_value(Angle self, ObjectKey a0) -> Object
2280  get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2281  get_value(Angle self, SparseIntKey a0) -> IMP::Int
2282  get_value(Angle self, SparseStringKey a0) -> IMP::String
2283  get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2284  """
2285  return _IMP_atom.Angle_get_value(self, *args)
2286 
2287  def set_value(self, *args):
2288  r"""
2289  set_value(Angle self, FloatKey a0, IMP::Float a1)
2290  set_value(Angle self, IntKey a0, IMP::Int a1)
2291  set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2292  set_value(Angle self, IntsKey a0, IMP::Ints a1)
2293  set_value(Angle self, StringKey a0, IMP::String a1)
2294  set_value(Angle self, ParticleIndexKey a0, Particle a1)
2295  set_value(Angle self, ObjectKey a0, Object a1)
2296  set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2297  set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2298  set_value(Angle self, SparseStringKey a0, IMP::String a1)
2299  set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2300  """
2301  return _IMP_atom.Angle_set_value(self, *args)
2302 
2303  def remove_attribute(self, *args):
2304  r"""
2305  remove_attribute(Angle self, FloatKey a0)
2306  remove_attribute(Angle self, IntKey a0)
2307  remove_attribute(Angle self, FloatsKey a0)
2308  remove_attribute(Angle self, IntsKey a0)
2309  remove_attribute(Angle self, StringKey a0)
2310  remove_attribute(Angle self, ParticleIndexKey a0)
2311  remove_attribute(Angle self, ObjectKey a0)
2312  remove_attribute(Angle self, SparseFloatKey a0)
2313  remove_attribute(Angle self, SparseIntKey a0)
2314  remove_attribute(Angle self, SparseStringKey a0)
2315  remove_attribute(Angle self, SparseParticleIndexKey a0)
2316  """
2317  return _IMP_atom.Angle_remove_attribute(self, *args)
2318 
2319  def has_attribute(self, *args):
2320  r"""
2321  has_attribute(Angle self, FloatKey a0) -> bool
2322  has_attribute(Angle self, IntKey a0) -> bool
2323  has_attribute(Angle self, FloatsKey a0) -> bool
2324  has_attribute(Angle self, IntsKey a0) -> bool
2325  has_attribute(Angle self, StringKey a0) -> bool
2326  has_attribute(Angle self, ParticleIndexKey a0) -> bool
2327  has_attribute(Angle self, ObjectKey a0) -> bool
2328  has_attribute(Angle self, SparseFloatKey a0) -> bool
2329  has_attribute(Angle self, SparseIntKey a0) -> bool
2330  has_attribute(Angle self, SparseStringKey a0) -> bool
2331  has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2332  """
2333  return _IMP_atom.Angle_has_attribute(self, *args)
2334 
2335  def get_derivative(self, a0):
2336  r"""get_derivative(Angle self, FloatKey a0) -> double"""
2337  return _IMP_atom.Angle_get_derivative(self, a0)
2338 
2339  def get_name(self):
2340  r"""get_name(Angle self) -> std::string"""
2341  return _IMP_atom.Angle_get_name(self)
2342 
2343  def clear_caches(self):
2344  r"""clear_caches(Angle self)"""
2345  return _IMP_atom.Angle_clear_caches(self)
2346 
2347  def set_name(self, a0):
2348  r"""set_name(Angle self, std::string a0)"""
2349  return _IMP_atom.Angle_set_name(self, a0)
2350 
2351  def set_check_level(self, a0):
2352  r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2353  return _IMP_atom.Angle_set_check_level(self, a0)
2354 
2355  def add_to_derivative(self, a0, a1, a2):
2356  r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2357  return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2358 
2359  def set_is_optimized(self, a0, a1):
2360  r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2361  return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2362 
2363  def get_is_optimized(self, a0):
2364  r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2365  return _IMP_atom.Angle_get_is_optimized(self, a0)
2366 
2367  def get_check_level(self):
2368  r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2369  return _IMP_atom.Angle_get_check_level(self)
2370 
2371  def __eq__(self, *args):
2372  r"""
2373  __eq__(Angle self, Angle o) -> bool
2374  __eq__(Angle self, Particle d) -> bool
2375  """
2376  return _IMP_atom.Angle___eq__(self, *args)
2377 
2378  def __ne__(self, *args):
2379  r"""
2380  __ne__(Angle self, Angle o) -> bool
2381  __ne__(Angle self, Particle d) -> bool
2382  """
2383  return _IMP_atom.Angle___ne__(self, *args)
2384 
2385  def __le__(self, *args):
2386  r"""
2387  __le__(Angle self, Angle o) -> bool
2388  __le__(Angle self, Particle d) -> bool
2389  """
2390  return _IMP_atom.Angle___le__(self, *args)
2391 
2392  def __lt__(self, *args):
2393  r"""
2394  __lt__(Angle self, Angle o) -> bool
2395  __lt__(Angle self, Particle d) -> bool
2396  """
2397  return _IMP_atom.Angle___lt__(self, *args)
2398 
2399  def __ge__(self, *args):
2400  r"""
2401  __ge__(Angle self, Angle o) -> bool
2402  __ge__(Angle self, Particle d) -> bool
2403  """
2404  return _IMP_atom.Angle___ge__(self, *args)
2405 
2406  def __gt__(self, *args):
2407  r"""
2408  __gt__(Angle self, Angle o) -> bool
2409  __gt__(Angle self, Particle d) -> bool
2410  """
2411  return _IMP_atom.Angle___gt__(self, *args)
2412 
2413  def __hash__(self):
2414  r"""__hash__(Angle self) -> std::size_t"""
2415  return _IMP_atom.Angle___hash__(self)
2416 
2417  def __str__(self):
2418  r"""__str__(Angle self) -> std::string"""
2419  return _IMP_atom.Angle___str__(self)
2420 
2421  def __repr__(self):
2422  r"""__repr__(Angle self) -> std::string"""
2423  return _IMP_atom.Angle___repr__(self)
2424 
2425  def _get_as_binary(self):
2426  r"""_get_as_binary(Angle self) -> PyObject *"""
2427  return _IMP_atom.Angle__get_as_binary(self)
2428 
2429  def _set_from_binary(self, p):
2430  r"""_set_from_binary(Angle self, PyObject * p)"""
2431  return _IMP_atom.Angle__set_from_binary(self, p)
2432 
2433  def __getstate__(self):
2434  p = self._get_as_binary()
2435  if len(self.__dict__) > 1:
2436  d = self.__dict__.copy()
2437  del d['this']
2438  p = (d, p)
2439  return p
2440 
2441  def __setstate__(self, p):
2442  if not hasattr(self, 'this'):
2443  self.__init__()
2444  if isinstance(p, tuple):
2445  d, p = p
2446  self.__dict__.update(d)
2447  return self._set_from_binary(p)
2448 
2449  __swig_destroy__ = _IMP_atom.delete_Angle
2450 
2451 # Register Angle in _IMP_atom:
2452 _IMP_atom.Angle_swigregister(Angle)
2453 class Dihedral(IMP.Decorator):
2454  r"""Proxy of C++ IMP::atom::Dihedral class."""
2455 
2456  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2457 
2458  def __init__(self, *args):
2459  r"""
2460  __init__(Dihedral self) -> Dihedral
2461  __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2462  __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2463  """
2464  _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2465 
2466  def show(self, *args):
2467  r"""show(Dihedral self, _ostream out=std::cout)"""
2468  return _IMP_atom.Dihedral_show(self, *args)
2469 
2470  @staticmethod
2471  def setup_particle(*args):
2472  r"""
2473  setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2474  setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2475  """
2476  return _IMP_atom.Dihedral_setup_particle(*args)
2477 
2478  @staticmethod
2479  def get_is_setup(*args):
2480  r"""
2481  get_is_setup(_ParticleAdaptor p) -> bool
2482  get_is_setup(Model m, ParticleIndex pi) -> bool
2483  """
2484  return _IMP_atom.Dihedral_get_is_setup(*args)
2485 
2486  def get_particle(self, *args):
2487  r"""
2488  get_particle(Dihedral self) -> Particle
2489  get_particle(Dihedral self, unsigned int i) -> Particle
2490  """
2491  return _IMP_atom.Dihedral_get_particle(self, *args)
2492 
2493  def get_ideal(self):
2494  r"""get_ideal(Dihedral self) -> IMP::Float"""
2495  return _IMP_atom.Dihedral_get_ideal(self)
2496 
2497  def set_ideal(self, t):
2498  r"""set_ideal(Dihedral self, IMP::Float t)"""
2499  return _IMP_atom.Dihedral_set_ideal(self, t)
2500 
2501  def get_multiplicity(self):
2502  r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2503  return _IMP_atom.Dihedral_get_multiplicity(self)
2504 
2505  def set_multiplicity(self, t):
2506  r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2507  return _IMP_atom.Dihedral_set_multiplicity(self, t)
2508 
2509  def get_stiffness(self):
2510  r"""get_stiffness(Dihedral self) -> IMP::Float"""
2511  return _IMP_atom.Dihedral_get_stiffness(self)
2512 
2513  def set_stiffness(self, t):
2514  r"""set_stiffness(Dihedral self, IMP::Float t)"""
2515  return _IMP_atom.Dihedral_set_stiffness(self, t)
2516 
2517  @staticmethod
2518  def get_particle_key(i):
2519  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2520  return _IMP_atom.Dihedral_get_particle_key(i)
2521 
2522  @staticmethod
2523  def get_ideal_key():
2524  r"""get_ideal_key() -> FloatKey"""
2525  return _IMP_atom.Dihedral_get_ideal_key()
2526 
2527  @staticmethod
2528  def get_multiplicity_key():
2529  r"""get_multiplicity_key() -> IntKey"""
2530  return _IMP_atom.Dihedral_get_multiplicity_key()
2531 
2532  @staticmethod
2533  def get_stiffness_key():
2534  r"""get_stiffness_key() -> FloatKey"""
2535  return _IMP_atom.Dihedral_get_stiffness_key()
2536 
2537  def add_attribute(self, *args):
2538  r"""
2539  add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2540  add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2541  add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2542  add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2543  add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2544  add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2545  add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2546  add_attribute(Dihedral self, ObjectKey a0, Object a1)
2547  add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2548  add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2549  add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2550  add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2551  """
2552  return _IMP_atom.Dihedral_add_attribute(self, *args)
2553 
2554  def get_value(self, *args):
2555  r"""
2556  get_value(Dihedral self, FloatKey a0) -> IMP::Float
2557  get_value(Dihedral self, IntKey a0) -> IMP::Int
2558  get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2559  get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2560  get_value(Dihedral self, StringKey a0) -> IMP::String
2561  get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2562  get_value(Dihedral self, ObjectKey a0) -> Object
2563  get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2564  get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2565  get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2566  get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2567  """
2568  return _IMP_atom.Dihedral_get_value(self, *args)
2569 
2570  def set_value(self, *args):
2571  r"""
2572  set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2573  set_value(Dihedral self, IntKey a0, IMP::Int a1)
2574  set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2575  set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2576  set_value(Dihedral self, StringKey a0, IMP::String a1)
2577  set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2578  set_value(Dihedral self, ObjectKey a0, Object a1)
2579  set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2580  set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2581  set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2582  set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2583  """
2584  return _IMP_atom.Dihedral_set_value(self, *args)
2585 
2586  def remove_attribute(self, *args):
2587  r"""
2588  remove_attribute(Dihedral self, FloatKey a0)
2589  remove_attribute(Dihedral self, IntKey a0)
2590  remove_attribute(Dihedral self, FloatsKey a0)
2591  remove_attribute(Dihedral self, IntsKey a0)
2592  remove_attribute(Dihedral self, StringKey a0)
2593  remove_attribute(Dihedral self, ParticleIndexKey a0)
2594  remove_attribute(Dihedral self, ObjectKey a0)
2595  remove_attribute(Dihedral self, SparseFloatKey a0)
2596  remove_attribute(Dihedral self, SparseIntKey a0)
2597  remove_attribute(Dihedral self, SparseStringKey a0)
2598  remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2599  """
2600  return _IMP_atom.Dihedral_remove_attribute(self, *args)
2601 
2602  def has_attribute(self, *args):
2603  r"""
2604  has_attribute(Dihedral self, FloatKey a0) -> bool
2605  has_attribute(Dihedral self, IntKey a0) -> bool
2606  has_attribute(Dihedral self, FloatsKey a0) -> bool
2607  has_attribute(Dihedral self, IntsKey a0) -> bool
2608  has_attribute(Dihedral self, StringKey a0) -> bool
2609  has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2610  has_attribute(Dihedral self, ObjectKey a0) -> bool
2611  has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2612  has_attribute(Dihedral self, SparseIntKey a0) -> bool
2613  has_attribute(Dihedral self, SparseStringKey a0) -> bool
2614  has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2615  """
2616  return _IMP_atom.Dihedral_has_attribute(self, *args)
2617 
2618  def get_derivative(self, a0):
2619  r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2620  return _IMP_atom.Dihedral_get_derivative(self, a0)
2621 
2622  def get_name(self):
2623  r"""get_name(Dihedral self) -> std::string"""
2624  return _IMP_atom.Dihedral_get_name(self)
2625 
2626  def clear_caches(self):
2627  r"""clear_caches(Dihedral self)"""
2628  return _IMP_atom.Dihedral_clear_caches(self)
2629 
2630  def set_name(self, a0):
2631  r"""set_name(Dihedral self, std::string a0)"""
2632  return _IMP_atom.Dihedral_set_name(self, a0)
2633 
2634  def set_check_level(self, a0):
2635  r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2636  return _IMP_atom.Dihedral_set_check_level(self, a0)
2637 
2638  def add_to_derivative(self, a0, a1, a2):
2639  r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2640  return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2641 
2642  def set_is_optimized(self, a0, a1):
2643  r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2644  return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2645 
2646  def get_is_optimized(self, a0):
2647  r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2648  return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2649 
2650  def get_check_level(self):
2651  r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2652  return _IMP_atom.Dihedral_get_check_level(self)
2653 
2654  def __eq__(self, *args):
2655  r"""
2656  __eq__(Dihedral self, Dihedral o) -> bool
2657  __eq__(Dihedral self, Particle d) -> bool
2658  """
2659  return _IMP_atom.Dihedral___eq__(self, *args)
2660 
2661  def __ne__(self, *args):
2662  r"""
2663  __ne__(Dihedral self, Dihedral o) -> bool
2664  __ne__(Dihedral self, Particle d) -> bool
2665  """
2666  return _IMP_atom.Dihedral___ne__(self, *args)
2667 
2668  def __le__(self, *args):
2669  r"""
2670  __le__(Dihedral self, Dihedral o) -> bool
2671  __le__(Dihedral self, Particle d) -> bool
2672  """
2673  return _IMP_atom.Dihedral___le__(self, *args)
2674 
2675  def __lt__(self, *args):
2676  r"""
2677  __lt__(Dihedral self, Dihedral o) -> bool
2678  __lt__(Dihedral self, Particle d) -> bool
2679  """
2680  return _IMP_atom.Dihedral___lt__(self, *args)
2681 
2682  def __ge__(self, *args):
2683  r"""
2684  __ge__(Dihedral self, Dihedral o) -> bool
2685  __ge__(Dihedral self, Particle d) -> bool
2686  """
2687  return _IMP_atom.Dihedral___ge__(self, *args)
2688 
2689  def __gt__(self, *args):
2690  r"""
2691  __gt__(Dihedral self, Dihedral o) -> bool
2692  __gt__(Dihedral self, Particle d) -> bool
2693  """
2694  return _IMP_atom.Dihedral___gt__(self, *args)
2695 
2696  def __hash__(self):
2697  r"""__hash__(Dihedral self) -> std::size_t"""
2698  return _IMP_atom.Dihedral___hash__(self)
2699 
2700  def __str__(self):
2701  r"""__str__(Dihedral self) -> std::string"""
2702  return _IMP_atom.Dihedral___str__(self)
2703 
2704  def __repr__(self):
2705  r"""__repr__(Dihedral self) -> std::string"""
2706  return _IMP_atom.Dihedral___repr__(self)
2707 
2708  def _get_as_binary(self):
2709  r"""_get_as_binary(Dihedral self) -> PyObject *"""
2710  return _IMP_atom.Dihedral__get_as_binary(self)
2711 
2712  def _set_from_binary(self, p):
2713  r"""_set_from_binary(Dihedral self, PyObject * p)"""
2714  return _IMP_atom.Dihedral__set_from_binary(self, p)
2715 
2716  def __getstate__(self):
2717  p = self._get_as_binary()
2718  if len(self.__dict__) > 1:
2719  d = self.__dict__.copy()
2720  del d['this']
2721  p = (d, p)
2722  return p
2723 
2724  def __setstate__(self, p):
2725  if not hasattr(self, 'this'):
2726  self.__init__()
2727  if isinstance(p, tuple):
2728  d, p = p
2729  self.__dict__.update(d)
2730  return self._set_from_binary(p)
2731 
2732  __swig_destroy__ = _IMP_atom.delete_Dihedral
2733 
2734 # Register Dihedral in _IMP_atom:
2735 _IMP_atom.Dihedral_swigregister(Dihedral)
2736 class SmoothingFunction(IMP.Object):
2737  r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2738 
2739  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2740 
2741  def __init__(self, *args, **kwargs):
2742  raise AttributeError("No constructor defined - class is abstract")
2743 
2744  def __call__(self, *args):
2745  r"""
2746  __call__(SmoothingFunction self, double score, double distance) -> double
2747  __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2748  """
2749  return _IMP_atom.SmoothingFunction___call__(self, *args)
2750  __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2751 
2752  def __str__(self):
2753  r"""__str__(SmoothingFunction self) -> std::string"""
2754  return _IMP_atom.SmoothingFunction___str__(self)
2755 
2756  def __repr__(self):
2757  r"""__repr__(SmoothingFunction self) -> std::string"""
2758  return _IMP_atom.SmoothingFunction___repr__(self)
2759 
2760  @staticmethod
2761  def get_from(o):
2762  return _object_cast_to_SmoothingFunction(o)
2763 
2764 
2765 # Register SmoothingFunction in _IMP_atom:
2766 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2767 class ForceSwitch(SmoothingFunction):
2768  r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2769 
2770  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2771 
2772  def __init__(self, min_distance, max_distance):
2773  r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2774  _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2775 
2776  def get_min_distance(self):
2777  r"""get_min_distance(ForceSwitch self) -> double"""
2778  return _IMP_atom.ForceSwitch_get_min_distance(self)
2779 
2780  def get_max_distance(self):
2781  r"""get_max_distance(ForceSwitch self) -> double"""
2782  return _IMP_atom.ForceSwitch_get_max_distance(self)
2783 
2784  def __call__(self, *args):
2785  r"""
2786  __call__(ForceSwitch self, double score, double distance) -> double
2787  __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2788  """
2789  return _IMP_atom.ForceSwitch___call__(self, *args)
2790 
2791  def get_version_info(self):
2792  r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2793  return _IMP_atom.ForceSwitch_get_version_info(self)
2794  __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2795 
2796  def __str__(self):
2797  r"""__str__(ForceSwitch self) -> std::string"""
2798  return _IMP_atom.ForceSwitch___str__(self)
2799 
2800  def __repr__(self):
2801  r"""__repr__(ForceSwitch self) -> std::string"""
2802  return _IMP_atom.ForceSwitch___repr__(self)
2803 
2804  @staticmethod
2805  def get_from(o):
2806  return _object_cast_to_ForceSwitch(o)
2807 
2808 
2809  def _get_jax(self):
2810  import jax.numpy as jnp
2811  min_distance = self.get_min_distance()
2812  max_distance = self.get_max_distance()
2813  dist_dif = max_distance - min_distance
2814  value_prefactor = 1.0 / (dist_dif * dist_dif * dist_dif)
2815  deriv_prefactor = 6.0 * value_prefactor
2816  def jax_func(score, d):
2817  x = max_distance - d
2818  mid_range = (value_prefactor * x * x *
2819  (max_distance + 2.0 * d - 3.0 * min_distance))
2820  factor = jnp.where(
2821  d <= min_distance, 1.0,
2822  jnp.where(d > max_distance, 0.0, mid_range))
2823  return score * factor
2824  return jax_func
2825 
2826 
2827 # Register ForceSwitch in _IMP_atom:
2828 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2829 class AngleSingletonScore(IMP.SingletonScore):
2830  r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2831 
2832  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2833 
2834  def __init__(self, f):
2835  r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2836  _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2837 
2838  def get_unary_function(self):
2839  r"""get_unary_function(AngleSingletonScore self) -> UnaryFunction"""
2840  return _IMP_atom.AngleSingletonScore_get_unary_function(self)
2841 
2842  def do_get_inputs(self, m, pis):
2843  r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2844  return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2845 
2846  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2847  r"""evaluate_indexes(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2848  return _IMP_atom.AngleSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2849 
2850  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2851  r"""evaluate_indexes_scores(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2852  return _IMP_atom.AngleSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2853 
2854  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2855  r"""evaluate_indexes_delta(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2856  return _IMP_atom.AngleSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2857 
2858  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2859  r"""evaluate_if_good_indexes(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2860  return _IMP_atom.AngleSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2861 
2862  def get_version_info(self):
2863  r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2864  return _IMP_atom.AngleSingletonScore_get_version_info(self)
2865  __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2866 
2867  def __str__(self):
2868  r"""__str__(AngleSingletonScore self) -> std::string"""
2869  return _IMP_atom.AngleSingletonScore___str__(self)
2870 
2871  def __repr__(self):
2872  r"""__repr__(AngleSingletonScore self) -> std::string"""
2873  return _IMP_atom.AngleSingletonScore___repr__(self)
2874 
2875  @staticmethod
2876  def get_from(o):
2877  return _object_cast_to_AngleSingletonScore(o)
2878 
2879 
2880  def _get_jax(self, m, indexes, space):
2881  import jax.numpy as jnp
2882  import IMP.core._jax_util
2883  from IMP.atom._jax_util import _get_angles
2884  def score(jm, angles, uf):
2885  xyzs = jm['xyz'][angles.bonded_indexes]
2886  rij = xyzs[:,0] - xyzs[:,1]
2887  rkj = xyzs[:,2] - xyzs[:,1]
2888  angle = IMP.core._jax_util._angle(rij, rkj)
2889  angle_diff = IMP.core._jax_util._get_angle_difference(
2890  angle, angles.ideal)
2891  return uf(angles.stiffness * angle_diff)
2892  uf = self.get_unary_function().get_derived_object()
2893  f = functools.partial(score, angles=_get_angles(m, indexes),
2894  uf=uf._get_jax())
2895  return self._wrap_jax(m, f)
2896 
2897 
2898 # Register AngleSingletonScore in _IMP_atom:
2899 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2900 class BondEndpointsRefiner(IMP.Refiner):
2901  r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2902 
2903  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2904 
2905  def __init__(self):
2906  r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2907  _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2908 
2909  def do_get_inputs(self, m, pis):
2910  r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2911  return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2912 
2913  def get_version_info(self):
2914  r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2915  return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2916  __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2917 
2918  def __str__(self):
2919  r"""__str__(BondEndpointsRefiner self) -> std::string"""
2920  return _IMP_atom.BondEndpointsRefiner___str__(self)
2921 
2922  def __repr__(self):
2923  r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2924  return _IMP_atom.BondEndpointsRefiner___repr__(self)
2925 
2926  @staticmethod
2927  def get_from(o):
2928  return _object_cast_to_BondEndpointsRefiner(o)
2929 
2930 
2931 # Register BondEndpointsRefiner in _IMP_atom:
2932 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2933 class BondPairContainer(IMP.PairContainer):
2934  r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2935 
2936  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2937 
2938  def __init__(self, sc):
2939  r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2940  _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2941 
2942  def do_get_inputs(self):
2943  r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2944  return _IMP_atom.BondPairContainer_do_get_inputs(self)
2945 
2946  def do_apply(self, sm):
2947  r"""do_apply(BondPairContainer self, PairModifier sm)"""
2948  return _IMP_atom.BondPairContainer_do_apply(self, sm)
2949 
2950  def do_apply_moved(self, sm, moved_pis, reset_pis):
2951  r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2952  return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2953 
2954  def get_version_info(self):
2955  r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2956  return _IMP_atom.BondPairContainer_get_version_info(self)
2957  __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2958 
2959  def __str__(self):
2960  r"""__str__(BondPairContainer self) -> std::string"""
2961  return _IMP_atom.BondPairContainer___str__(self)
2962 
2963  def __repr__(self):
2964  r"""__repr__(BondPairContainer self) -> std::string"""
2965  return _IMP_atom.BondPairContainer___repr__(self)
2966 
2967  @staticmethod
2968  def get_from(o):
2969  return _object_cast_to_BondPairContainer(o)
2970 
2971 
2972 # Register BondPairContainer in _IMP_atom:
2973 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2974 class BondSingletonScore(IMP.SingletonScore):
2975  r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2976 
2977  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2978 
2979  def __init__(self, f):
2980  r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2981  _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2982 
2983  def get_unary_function(self):
2984  r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2985  return _IMP_atom.BondSingletonScore_get_unary_function(self)
2986 
2987  def do_get_inputs(self, m, pis):
2988  r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2989  return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
2990 
2991  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2992  r"""evaluate_indexes(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2993  return _IMP_atom.BondSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2994 
2995  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2996  r"""evaluate_indexes_scores(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2997  return _IMP_atom.BondSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2998 
2999  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3000  r"""evaluate_indexes_delta(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3001  return _IMP_atom.BondSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3002 
3003  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3004  r"""evaluate_if_good_indexes(BondSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3005  return _IMP_atom.BondSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3006 
3007  def get_version_info(self):
3008  r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
3009  return _IMP_atom.BondSingletonScore_get_version_info(self)
3010  __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
3011 
3012  def __str__(self):
3013  r"""__str__(BondSingletonScore self) -> std::string"""
3014  return _IMP_atom.BondSingletonScore___str__(self)
3015 
3016  def __repr__(self):
3017  r"""__repr__(BondSingletonScore self) -> std::string"""
3018  return _IMP_atom.BondSingletonScore___repr__(self)
3019 
3020  @staticmethod
3021  def get_from(o):
3022  return _object_cast_to_BondSingletonScore(o)
3023 
3024 
3025  def _get_jax(self, m, indexes, space):
3026  import jax.numpy as jnp
3027  from IMP.atom._jax_util import _get_bonds
3028  def score(jm, bonds, uf):
3029  xyzs = jm['xyz'][bonds.bonded_indexes]
3030  diff = xyzs[:,0] - xyzs[:,1]
3031  drs = space.distance(diff)
3032  return uf(bonds.stiffness * (drs - bonds.length))
3033  uf = self.get_unary_function().get_derived_object()
3034  f = functools.partial(score, bonds=_get_bonds(m, indexes),
3035  uf=uf._get_jax())
3036  return self._wrap_jax(m, f)
3037 
3038 
3039 # Register BondSingletonScore in _IMP_atom:
3040 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
3041 class DihedralSingletonScore(IMP.SingletonScore):
3042  r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
3043 
3044  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3045 
3046  def __init__(self):
3047  r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
3048  _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
3049 
3050  def do_get_inputs(self, m, pis):
3051  r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3052  return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
3053 
3054  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3055  r"""evaluate_indexes(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3056  return _IMP_atom.DihedralSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3057 
3058  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3059  r"""evaluate_indexes_scores(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3060  return _IMP_atom.DihedralSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3061 
3062  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3063  r"""evaluate_indexes_delta(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3064  return _IMP_atom.DihedralSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3065 
3066  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3067  r"""evaluate_if_good_indexes(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3068  return _IMP_atom.DihedralSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3069 
3070  def get_version_info(self):
3071  r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
3072  return _IMP_atom.DihedralSingletonScore_get_version_info(self)
3073  __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
3074 
3075  def __str__(self):
3076  r"""__str__(DihedralSingletonScore self) -> std::string"""
3077  return _IMP_atom.DihedralSingletonScore___str__(self)
3078 
3079  def __repr__(self):
3080  r"""__repr__(DihedralSingletonScore self) -> std::string"""
3081  return _IMP_atom.DihedralSingletonScore___repr__(self)
3082 
3083  @staticmethod
3084  def get_from(o):
3085  return _object_cast_to_DihedralSingletonScore(o)
3086 
3087 
3088  def _get_as_binary(self):
3089  r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
3090  return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
3091 
3092  def _set_from_binary(self, p):
3093  r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
3094  return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
3095 
3096  def __getstate__(self):
3097  p = self._get_as_binary()
3098  if len(self.__dict__) > 1:
3099  d = self.__dict__.copy()
3100  del d['this']
3101  p = (d, p)
3102  return p
3103 
3104  def __setstate__(self, p):
3105  if not hasattr(self, 'this'):
3106  self.__init__()
3107  if isinstance(p, tuple):
3108  d, p = p
3109  self.__dict__.update(d)
3110  return self._set_from_binary(p)
3111 
3112 
3113  def _get_jax(self, m, indexes, space):
3114  import jax.numpy as jnp
3115  import IMP.core._jax_util
3116  from IMP.atom._jax_util import _get_dihedrals
3117  def score(jm, dihedrals):
3118  xyzs = jm['xyz'][dihedrals.bonded_indexes]
3119  rij = xyzs[:,0] - xyzs[:,1]
3120  rkj = xyzs[:,2] - xyzs[:,1]
3121  rkl = xyzs[:,2] - xyzs[:,3]
3122  dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3123  b = 0.5 * dihedrals.stiffness * jnp.abs(dihedrals.stiffness)
3124  return jnp.abs(b) + b * jnp.cos(dihedral * dihedrals.multiplicity
3125  + dihedrals.ideal)
3126  f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes))
3127  return self._wrap_jax(m, f)
3128 
3129 
3130 # Register DihedralSingletonScore in _IMP_atom:
3131 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3132 class ImproperSingletonScore(IMP.SingletonScore):
3133  r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3134 
3135  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3136 
3137  def __init__(self, f):
3138  r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3139  _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3140 
3141  def get_unary_function(self):
3142  r"""get_unary_function(ImproperSingletonScore self) -> UnaryFunction"""
3143  return _IMP_atom.ImproperSingletonScore_get_unary_function(self)
3144 
3145  def do_get_inputs(self, m, pis):
3146  r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3147  return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3148 
3149  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3150  r"""evaluate_indexes(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3151  return _IMP_atom.ImproperSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3152 
3153  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3154  r"""evaluate_indexes_scores(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3155  return _IMP_atom.ImproperSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3156 
3157  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3158  r"""evaluate_indexes_delta(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3159  return _IMP_atom.ImproperSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3160 
3161  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3162  r"""evaluate_if_good_indexes(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3163  return _IMP_atom.ImproperSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3164 
3165  def get_version_info(self):
3166  r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3167  return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3168  __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3169 
3170  def __str__(self):
3171  r"""__str__(ImproperSingletonScore self) -> std::string"""
3172  return _IMP_atom.ImproperSingletonScore___str__(self)
3173 
3174  def __repr__(self):
3175  r"""__repr__(ImproperSingletonScore self) -> std::string"""
3176  return _IMP_atom.ImproperSingletonScore___repr__(self)
3177 
3178  @staticmethod
3179  def get_from(o):
3180  return _object_cast_to_ImproperSingletonScore(o)
3181 
3182 
3183  def _get_jax(self, m, indexes, space):
3184  import jax.numpy as jnp
3185  import IMP.core._jax_util
3186  from IMP.atom._jax_util import _get_dihedrals
3187  def score(jm, dihedrals, uf):
3188  xyzs = jm['xyz'][dihedrals.bonded_indexes]
3189  rij = xyzs[:,0] - xyzs[:,1]
3190  rkj = xyzs[:,2] - xyzs[:,1]
3191  rkl = xyzs[:,2] - xyzs[:,3]
3192  dihedral = IMP.core._jax_util._dihedral(rij, rkj, rkl)
3193  angle_diff = IMP.core._jax_util._get_angle_difference(
3194  dihedral, dihedrals.ideal)
3195  return uf(dihedrals.stiffness * angle_diff)
3196  uf = self.get_unary_function().get_derived_object()
3197  f = functools.partial(score, dihedrals=_get_dihedrals(m, indexes),
3198  uf=uf._get_jax())
3199  return self._wrap_jax(m, f)
3200 
3201 
3202 # Register ImproperSingletonScore in _IMP_atom:
3203 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3204 class CenterOfMass(IMP.Decorator):
3205  r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3206 
3207  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3208 
3209  def get_constraint(self):
3210  r"""get_constraint(CenterOfMass self) -> Constraint"""
3211  return _IMP_atom.CenterOfMass_get_constraint(self)
3212 
3213  def get_mass(self):
3214  r"""get_mass(CenterOfMass self) -> IMP::Float"""
3215  return _IMP_atom.CenterOfMass_get_mass(self)
3216 
3217  def get_coordinate(self, i):
3218  r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3219  return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3220 
3221  def get_coordinates(self):
3222  r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3223  return _IMP_atom.CenterOfMass_get_coordinates(self)
3224 
3225  def __init__(self, *args):
3226  r"""
3227  __init__(CenterOfMass self) -> CenterOfMass
3228  __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3229  __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3230  """
3231  _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3232 
3233  def show(self, *args):
3234  r"""show(CenterOfMass self, _ostream out=std::cout)"""
3235  return _IMP_atom.CenterOfMass_show(self, *args)
3236 
3237  @staticmethod
3238  def setup_particle(*args):
3239  r"""
3240  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3241  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3242  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3243  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3244  """
3245  return _IMP_atom.CenterOfMass_setup_particle(*args)
3246 
3247  @staticmethod
3248  def teardown_particle(com):
3249  r"""teardown_particle(CenterOfMass com)"""
3250  return _IMP_atom.CenterOfMass_teardown_particle(com)
3251 
3252  @staticmethod
3253  def get_is_setup(*args):
3254  r"""
3255  get_is_setup(_ParticleAdaptor p) -> bool
3256  get_is_setup(Model m, ParticleIndex pi) -> bool
3257  """
3258  return _IMP_atom.CenterOfMass_get_is_setup(*args)
3259 
3260  def add_attribute(self, *args):
3261  r"""
3262  add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3263  add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3264  add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3265  add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3266  add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3267  add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3268  add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3269  add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3270  add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3271  add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3272  add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3273  add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3274  """
3275  return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3276 
3277  def get_value(self, *args):
3278  r"""
3279  get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3280  get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3281  get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3282  get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3283  get_value(CenterOfMass self, StringKey a0) -> IMP::String
3284  get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3285  get_value(CenterOfMass self, ObjectKey a0) -> Object
3286  get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3287  get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3288  get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3289  get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3290  """
3291  return _IMP_atom.CenterOfMass_get_value(self, *args)
3292 
3293  def set_value(self, *args):
3294  r"""
3295  set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3296  set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3297  set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3298  set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3299  set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3300  set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3301  set_value(CenterOfMass self, ObjectKey a0, Object a1)
3302  set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3303  set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3304  set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3305  set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3306  """
3307  return _IMP_atom.CenterOfMass_set_value(self, *args)
3308 
3309  def remove_attribute(self, *args):
3310  r"""
3311  remove_attribute(CenterOfMass self, FloatKey a0)
3312  remove_attribute(CenterOfMass self, IntKey a0)
3313  remove_attribute(CenterOfMass self, FloatsKey a0)
3314  remove_attribute(CenterOfMass self, IntsKey a0)
3315  remove_attribute(CenterOfMass self, StringKey a0)
3316  remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3317  remove_attribute(CenterOfMass self, ObjectKey a0)
3318  remove_attribute(CenterOfMass self, SparseFloatKey a0)
3319  remove_attribute(CenterOfMass self, SparseIntKey a0)
3320  remove_attribute(CenterOfMass self, SparseStringKey a0)
3321  remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3322  """
3323  return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3324 
3325  def has_attribute(self, *args):
3326  r"""
3327  has_attribute(CenterOfMass self, FloatKey a0) -> bool
3328  has_attribute(CenterOfMass self, IntKey a0) -> bool
3329  has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3330  has_attribute(CenterOfMass self, IntsKey a0) -> bool
3331  has_attribute(CenterOfMass self, StringKey a0) -> bool
3332  has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3333  has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3334  has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3335  has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3336  has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3337  has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3338  """
3339  return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3340 
3341  def get_derivative(self, a0):
3342  r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3343  return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3344 
3345  def get_name(self):
3346  r"""get_name(CenterOfMass self) -> std::string"""
3347  return _IMP_atom.CenterOfMass_get_name(self)
3348 
3349  def clear_caches(self):
3350  r"""clear_caches(CenterOfMass self)"""
3351  return _IMP_atom.CenterOfMass_clear_caches(self)
3352 
3353  def set_name(self, a0):
3354  r"""set_name(CenterOfMass self, std::string a0)"""
3355  return _IMP_atom.CenterOfMass_set_name(self, a0)
3356 
3357  def set_check_level(self, a0):
3358  r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3359  return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3360 
3361  def add_to_derivative(self, a0, a1, a2):
3362  r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3363  return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3364 
3365  def set_is_optimized(self, a0, a1):
3366  r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3367  return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3368 
3369  def get_is_optimized(self, a0):
3370  r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3371  return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3372 
3373  def get_check_level(self):
3374  r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3375  return _IMP_atom.CenterOfMass_get_check_level(self)
3376 
3377  def __eq__(self, *args):
3378  r"""
3379  __eq__(CenterOfMass self, CenterOfMass o) -> bool
3380  __eq__(CenterOfMass self, Particle d) -> bool
3381  """
3382  return _IMP_atom.CenterOfMass___eq__(self, *args)
3383 
3384  def __ne__(self, *args):
3385  r"""
3386  __ne__(CenterOfMass self, CenterOfMass o) -> bool
3387  __ne__(CenterOfMass self, Particle d) -> bool
3388  """
3389  return _IMP_atom.CenterOfMass___ne__(self, *args)
3390 
3391  def __le__(self, *args):
3392  r"""
3393  __le__(CenterOfMass self, CenterOfMass o) -> bool
3394  __le__(CenterOfMass self, Particle d) -> bool
3395  """
3396  return _IMP_atom.CenterOfMass___le__(self, *args)
3397 
3398  def __lt__(self, *args):
3399  r"""
3400  __lt__(CenterOfMass self, CenterOfMass o) -> bool
3401  __lt__(CenterOfMass self, Particle d) -> bool
3402  """
3403  return _IMP_atom.CenterOfMass___lt__(self, *args)
3404 
3405  def __ge__(self, *args):
3406  r"""
3407  __ge__(CenterOfMass self, CenterOfMass o) -> bool
3408  __ge__(CenterOfMass self, Particle d) -> bool
3409  """
3410  return _IMP_atom.CenterOfMass___ge__(self, *args)
3411 
3412  def __gt__(self, *args):
3413  r"""
3414  __gt__(CenterOfMass self, CenterOfMass o) -> bool
3415  __gt__(CenterOfMass self, Particle d) -> bool
3416  """
3417  return _IMP_atom.CenterOfMass___gt__(self, *args)
3418 
3419  def __hash__(self):
3420  r"""__hash__(CenterOfMass self) -> std::size_t"""
3421  return _IMP_atom.CenterOfMass___hash__(self)
3422 
3423  def __str__(self):
3424  r"""__str__(CenterOfMass self) -> std::string"""
3425  return _IMP_atom.CenterOfMass___str__(self)
3426 
3427  def __repr__(self):
3428  r"""__repr__(CenterOfMass self) -> std::string"""
3429  return _IMP_atom.CenterOfMass___repr__(self)
3430 
3431  def _get_as_binary(self):
3432  r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3433  return _IMP_atom.CenterOfMass__get_as_binary(self)
3434 
3435  def _set_from_binary(self, p):
3436  r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3437  return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3438 
3439  def __getstate__(self):
3440  p = self._get_as_binary()
3441  if len(self.__dict__) > 1:
3442  d = self.__dict__.copy()
3443  del d['this']
3444  p = (d, p)
3445  return p
3446 
3447  def __setstate__(self, p):
3448  if not hasattr(self, 'this'):
3449  self.__init__()
3450  if isinstance(p, tuple):
3451  d, p = p
3452  self.__dict__.update(d)
3453  return self._set_from_binary(p)
3454 
3455  __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3456 
3457 # Register CenterOfMass in _IMP_atom:
3458 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3459 class CoverBond(IMP.SingletonModifier):
3460  r"""Proxy of C++ IMP::atom::CoverBond class."""
3461 
3462  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3463 
3464  def __init__(self):
3465  r"""__init__(CoverBond self) -> CoverBond"""
3466  _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3467 
3468  def do_get_inputs(self, m, pis):
3469  r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3470  return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3471 
3472  def do_get_outputs(self, m, pis):
3473  r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3474  return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3475 
3476  def get_version_info(self):
3477  r"""get_version_info(CoverBond self) -> VersionInfo"""
3478  return _IMP_atom.CoverBond_get_version_info(self)
3479  __swig_destroy__ = _IMP_atom.delete_CoverBond
3480 
3481  def __str__(self):
3482  r"""__str__(CoverBond self) -> std::string"""
3483  return _IMP_atom.CoverBond___str__(self)
3484 
3485  def __repr__(self):
3486  r"""__repr__(CoverBond self) -> std::string"""
3487  return _IMP_atom.CoverBond___repr__(self)
3488 
3489  @staticmethod
3490  def get_from(o):
3491  return _object_cast_to_CoverBond(o)
3492 
3493 
3494 # Register CoverBond in _IMP_atom:
3495 _IMP_atom.CoverBond_swigregister(CoverBond)
3496 class Simulator(IMP.Optimizer):
3497  r"""Proxy of C++ IMP::atom::Simulator class."""
3498 
3499  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3500 
3501  def __init__(self, *args):
3502  r"""
3503  __init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator
3504  __init__(Simulator self) -> Simulator
3505  """
3506  if self.__class__ == Simulator:
3507  _self = None
3508  else:
3509  _self = self
3510  _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3511 
3512  if self.__class__ != Simulator:
3513  _director_objects.register(self)
3514 
3515 
3516 
3517 
3518  def simulate(self, time_in_fs):
3519  r"""simulate(Simulator self, double time_in_fs) -> double"""
3520  return _IMP_atom.Simulator_simulate(self, time_in_fs)
3521 
3522  def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3523  r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3524  return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3525 
3526  def get_temperature(self):
3527  r"""get_temperature(Simulator self) -> double"""
3528  return _IMP_atom.Simulator_get_temperature(self)
3529 
3530  def set_temperature(self, d):
3531  r"""set_temperature(Simulator self, double d)"""
3532  return _IMP_atom.Simulator_set_temperature(self, d)
3533 
3534  def set_maximum_time_step(self, ts):
3535  r"""set_maximum_time_step(Simulator self, double ts)"""
3536  return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3537 
3538  def get_maximum_time_step(self):
3539  r"""get_maximum_time_step(Simulator self) -> double"""
3540  return _IMP_atom.Simulator_get_maximum_time_step(self)
3541 
3542  def get_last_time_step(self):
3543  r"""get_last_time_step(Simulator self) -> double"""
3544  return _IMP_atom.Simulator_get_last_time_step(self)
3545 
3546  def set_time_step(self, ts):
3547  r"""set_time_step(Simulator self, double ts)"""
3548  return _IMP_atom.Simulator_set_time_step(self, ts)
3549 
3550  def get_kt(self):
3551  r"""get_kt(Simulator self) -> double"""
3552  return _IMP_atom.Simulator_get_kt(self)
3553 
3554  def get_current_time(self):
3555  r"""get_current_time(Simulator self) -> double"""
3556  return _IMP_atom.Simulator_get_current_time(self)
3557 
3558  def set_current_time(self, ct):
3559  r"""set_current_time(Simulator self, double ct)"""
3560  return _IMP_atom.Simulator_set_current_time(self, ct)
3561 
3562  def get_simulation_particles(self):
3563  r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3564  return _IMP_atom.Simulator_get_simulation_particles(self)
3565 
3566  def get_simulation_particle_indexes(self):
3567  r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3568  return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3569  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)
3570  def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3571  def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3572  particles = property(__get_particles, __set_particles, __del_particles, doc="List of ##ucnames")
3573 
3574  def remove_particle(self, d):
3575  r"""remove_particle(Simulator self, Particle d)"""
3576  return _IMP_atom.Simulator_remove_particle(self, d)
3577 
3578  def _python_index_particle(self, d, start, stop):
3579  r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3580  return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3581 
3582  def remove_particles(self, d):
3583  r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3584  return _IMP_atom.Simulator_remove_particles(self, d)
3585 
3586  def set_particles(self, ps):
3587  r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3588  return _IMP_atom.Simulator_set_particles(self, ps)
3589 
3590  def set_particles_order(self, objs):
3591  r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3592  return _IMP_atom.Simulator_set_particles_order(self, objs)
3593 
3594  def add_particle(self, obj):
3595  r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3596  return _IMP_atom.Simulator_add_particle(self, obj)
3597 
3598  def add_particles(self, objs):
3599  r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3600  return _IMP_atom.Simulator_add_particles(self, objs)
3601 
3602  def clear_particles(self):
3603  r"""clear_particles(Simulator self)"""
3604  return _IMP_atom.Simulator_clear_particles(self)
3605 
3606  def get_number_of_particles(self):
3607  r"""get_number_of_particles(Simulator self) -> unsigned int"""
3608  return _IMP_atom.Simulator_get_number_of_particles(self)
3609 
3610  def get_has_particles(self):
3611  r"""get_has_particles(Simulator self) -> bool"""
3612  return _IMP_atom.Simulator_get_has_particles(self)
3613 
3614  def get_particle(self, i):
3615  r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3616  return _IMP_atom.Simulator_get_particle(self, i)
3617 
3618  def get_particles(self):
3619  r"""get_particles(Simulator self) -> IMP::Particles"""
3620  return _IMP_atom.Simulator_get_particles(self)
3621 
3622  def erase_particle(self, i):
3623  r"""erase_particle(Simulator self, unsigned int i)"""
3624  return _IMP_atom.Simulator_erase_particle(self, i)
3625 
3626  def reserve_particles(self, sz):
3627  r"""reserve_particles(Simulator self, unsigned int sz)"""
3628  return _IMP_atom.Simulator_reserve_particles(self, sz)
3629 
3630  def do_optimize(self, max_steps):
3631  r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3632  return _IMP_atom.Simulator_do_optimize(self, max_steps)
3633 
3634  def setup(self, arg0):
3635  r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3636  return _IMP_atom.Simulator_setup(self, arg0)
3637 
3638  def do_step(self, sc, dt):
3639  r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3640  return _IMP_atom.Simulator_do_step(self, sc, dt)
3641 
3642  def get_is_simulation_particle(self, p):
3643  r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3644  return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3645 
3646  def do_simulate(self, time):
3647  r"""do_simulate(Simulator self, double time) -> double"""
3648  return _IMP_atom.Simulator_do_simulate(self, time)
3649 
3650  def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3651  r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3652  return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3653 
3654  def __str__(self):
3655  r"""__str__(Simulator self) -> std::string"""
3656  return _IMP_atom.Simulator___str__(self)
3657 
3658  def __repr__(self):
3659  r"""__repr__(Simulator self) -> std::string"""
3660  return _IMP_atom.Simulator___repr__(self)
3661 
3662  @staticmethod
3663  def get_from(o):
3664  return _object_cast_to_Simulator(o)
3665 
3666 
3667  def do_show(self, out):
3668  pass
3669 
3670  @staticmethod
3671  def get_from(o):
3672  return _object_cast_to_Simulator(o)
3673 
3674  __swig_destroy__ = _IMP_atom.delete_Simulator
3675  def __disown__(self):
3676  self.this.disown()
3677  _IMP_atom.disown_Simulator(self)
3678  return weakref.proxy(self)
3679 
3680  def do_destroy(self):
3681  r"""do_destroy(Simulator self)"""
3682  return _IMP_atom.Simulator_do_destroy(self)
3683 
3684  def handle_set_has_required_score_states(self, arg0):
3685  r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3686  return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3687 
3688  def do_get_inputs(self):
3689  r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3690  return _IMP_atom.Simulator_do_get_inputs(self)
3691 
3692  def do_get_outputs(self):
3693  r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3694  return _IMP_atom.Simulator_do_get_outputs(self)
3695 
3696  def do_get_interactions(self):
3697  r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3698  return _IMP_atom.Simulator_do_get_interactions(self)
3699 
3700 # Register Simulator in _IMP_atom:
3701 _IMP_atom.Simulator_swigregister(Simulator)
3702 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3703 
3704 class BrownianDynamics(Simulator):
3705  r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3706 
3707  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3708 
3709  def __init__(self, *args):
3710  r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3711  _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3712 
3713  def set_maximum_move(self, ms_in_A):
3714  r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3715  return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3716 
3717  def get_maximum_move(self):
3718  r"""get_maximum_move(BrownianDynamics self) -> double"""
3719  return _IMP_atom.BrownianDynamics_get_maximum_move(self)
3720 
3721  def set_use_stochastic_runge_kutta(self, tf):
3722  r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3723  return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3724 
3725  def get_use_stochastic_runge_kutta(self):
3726  r"""get_use_stochastic_runge_kutta(BrownianDynamics self) -> bool"""
3727  return _IMP_atom.BrownianDynamics_get_use_stochastic_runge_kutta(self)
3728 
3729  def get_version_info(self):
3730  r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3731  return _IMP_atom.BrownianDynamics_get_version_info(self)
3732  __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3733 
3734  def __str__(self):
3735  r"""__str__(BrownianDynamics self) -> std::string"""
3736  return _IMP_atom.BrownianDynamics___str__(self)
3737 
3738  def __repr__(self):
3739  r"""__repr__(BrownianDynamics self) -> std::string"""
3740  return _IMP_atom.BrownianDynamics___repr__(self)
3741 
3742  @staticmethod
3743  def get_from(o):
3744  return _object_cast_to_BrownianDynamics(o)
3745 
3746 
3747  def _get_jax(self, space=None):
3748  from IMP.atom._jax_util import _BDJAXInfo
3749  # Subclasses like BrownianDynamicsTAMD have subtly different
3750  # dynamics, so they should get their own JAX implementations,
3751  # not reuse ours:
3752  if type(self) is not BrownianDynamics:
3753  raise NotImplementedError(
3754  f"No JAX implementation for {self} ({type(self)})")
3755  return _BDJAXInfo(self, space)
3756 
3757  def _get_jax_optimizer(self, max_steps, space=None):
3758  import IMP.atom._jax_util
3759  return IMP.atom._jax_util._BDJAXOptimizer(self, max_steps, space)
3760 
3761  def _optimize_jax(self, max_steps, space=None):
3762  opt = self._get_jax_optimizer(max_steps, space=space)
3763  score, bd_state = opt.optimize(opt.get_initial_state())
3764  return score
3765 
3766 
3767 # Register BrownianDynamics in _IMP_atom:
3768 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3769 
3771  r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3772  return _IMP_atom.get_maximum_time_step_estimate(bd)
3773 
3774 def get_harmonic_sigma(D, f):
3775  r"""get_harmonic_sigma(double D, double f) -> double"""
3776  return _IMP_atom.get_harmonic_sigma(D, f)
3777 class BrownianDynamicsTAMD(BrownianDynamics):
3778  r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3779 
3780  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3781 
3782  def __init__(self, *args):
3783  r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3784  _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3785 
3786  def __str__(self):
3787  r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3788  return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3789 
3790  def __repr__(self):
3791  r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3792  return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3793 
3794  @staticmethod
3795  def get_from(o):
3796  return _object_cast_to_BrownianDynamicsTAMD(o)
3797 
3798  __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3799 
3800 # Register BrownianDynamicsTAMD in _IMP_atom:
3801 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3802 class Diffusion(IMP.core.XYZ):
3803  r"""Proxy of C++ IMP::atom::Diffusion class."""
3804 
3805  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3806 
3807  def __init__(self, *args):
3808  r"""
3809  __init__(Diffusion self) -> Diffusion
3810  __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3811  __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3812  """
3813  _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3814 
3815  def show(self, *args):
3816  r"""show(Diffusion self, _ostream out=std::cout)"""
3817  return _IMP_atom.Diffusion_show(self, *args)
3818 
3819  @staticmethod
3820  def setup_particle(*args):
3821  r"""
3822  setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3823  setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3824  setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3825  setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3826  setup_particle(Model m, ParticleIndex pi) -> Diffusion
3827  setup_particle(_ParticleAdaptor pa) -> Diffusion
3828  """
3829  return _IMP_atom.Diffusion_setup_particle(*args)
3830 
3831  @staticmethod
3832  def get_is_setup(*args):
3833  r"""
3834  get_is_setup(_ParticleAdaptor p) -> bool
3835  get_is_setup(Model m, ParticleIndex p) -> bool
3836  """
3837  return _IMP_atom.Diffusion_get_is_setup(*args)
3838 
3839  def set_diffusion_coefficient(self, d):
3840  r"""set_diffusion_coefficient(Diffusion self, double d)"""
3841  return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3842 
3843  def get_diffusion_coefficient(self):
3844  r"""get_diffusion_coefficient(Diffusion self) -> double"""
3845  return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3846 
3847  @staticmethod
3848  def get_diffusion_coefficient_key():
3849  r"""get_diffusion_coefficient_key() -> FloatKey"""
3850  return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3851 
3852  def add_attribute(self, *args):
3853  r"""
3854  add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3855  add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3856  add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3857  add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3858  add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3859  add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3860  add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3861  add_attribute(Diffusion self, ObjectKey a0, Object a1)
3862  add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3863  add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3864  add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3865  add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3866  """
3867  return _IMP_atom.Diffusion_add_attribute(self, *args)
3868 
3869  def get_value(self, *args):
3870  r"""
3871  get_value(Diffusion self, FloatKey a0) -> IMP::Float
3872  get_value(Diffusion self, IntKey a0) -> IMP::Int
3873  get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3874  get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3875  get_value(Diffusion self, StringKey a0) -> IMP::String
3876  get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3877  get_value(Diffusion self, ObjectKey a0) -> Object
3878  get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3879  get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3880  get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3881  get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3882  """
3883  return _IMP_atom.Diffusion_get_value(self, *args)
3884 
3885  def set_value(self, *args):
3886  r"""
3887  set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3888  set_value(Diffusion self, IntKey a0, IMP::Int a1)
3889  set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3890  set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3891  set_value(Diffusion self, StringKey a0, IMP::String a1)
3892  set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3893  set_value(Diffusion self, ObjectKey a0, Object a1)
3894  set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3895  set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3896  set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3897  set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3898  """
3899  return _IMP_atom.Diffusion_set_value(self, *args)
3900 
3901  def remove_attribute(self, *args):
3902  r"""
3903  remove_attribute(Diffusion self, FloatKey a0)
3904  remove_attribute(Diffusion self, IntKey a0)
3905  remove_attribute(Diffusion self, FloatsKey a0)
3906  remove_attribute(Diffusion self, IntsKey a0)
3907  remove_attribute(Diffusion self, StringKey a0)
3908  remove_attribute(Diffusion self, ParticleIndexKey a0)
3909  remove_attribute(Diffusion self, ObjectKey a0)
3910  remove_attribute(Diffusion self, SparseFloatKey a0)
3911  remove_attribute(Diffusion self, SparseIntKey a0)
3912  remove_attribute(Diffusion self, SparseStringKey a0)
3913  remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3914  """
3915  return _IMP_atom.Diffusion_remove_attribute(self, *args)
3916 
3917  def has_attribute(self, *args):
3918  r"""
3919  has_attribute(Diffusion self, FloatKey a0) -> bool
3920  has_attribute(Diffusion self, IntKey a0) -> bool
3921  has_attribute(Diffusion self, FloatsKey a0) -> bool
3922  has_attribute(Diffusion self, IntsKey a0) -> bool
3923  has_attribute(Diffusion self, StringKey a0) -> bool
3924  has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3925  has_attribute(Diffusion self, ObjectKey a0) -> bool
3926  has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3927  has_attribute(Diffusion self, SparseIntKey a0) -> bool
3928  has_attribute(Diffusion self, SparseStringKey a0) -> bool
3929  has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3930  """
3931  return _IMP_atom.Diffusion_has_attribute(self, *args)
3932 
3933  def get_derivative(self, a0):
3934  r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3935  return _IMP_atom.Diffusion_get_derivative(self, a0)
3936 
3937  def get_name(self):
3938  r"""get_name(Diffusion self) -> std::string"""
3939  return _IMP_atom.Diffusion_get_name(self)
3940 
3941  def clear_caches(self):
3942  r"""clear_caches(Diffusion self)"""
3943  return _IMP_atom.Diffusion_clear_caches(self)
3944 
3945  def set_name(self, a0):
3946  r"""set_name(Diffusion self, std::string a0)"""
3947  return _IMP_atom.Diffusion_set_name(self, a0)
3948 
3949  def set_check_level(self, a0):
3950  r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3951  return _IMP_atom.Diffusion_set_check_level(self, a0)
3952 
3953  def add_to_derivative(self, a0, a1, a2):
3954  r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3955  return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3956 
3957  def set_is_optimized(self, a0, a1):
3958  r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3959  return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3960 
3961  def get_is_optimized(self, a0):
3962  r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3963  return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3964 
3965  def get_check_level(self):
3966  r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3967  return _IMP_atom.Diffusion_get_check_level(self)
3968 
3969  def __eq__(self, *args):
3970  r"""
3971  __eq__(Diffusion self, Diffusion o) -> bool
3972  __eq__(Diffusion self, Particle d) -> bool
3973  """
3974  return _IMP_atom.Diffusion___eq__(self, *args)
3975 
3976  def __ne__(self, *args):
3977  r"""
3978  __ne__(Diffusion self, Diffusion o) -> bool
3979  __ne__(Diffusion self, Particle d) -> bool
3980  """
3981  return _IMP_atom.Diffusion___ne__(self, *args)
3982 
3983  def __le__(self, *args):
3984  r"""
3985  __le__(Diffusion self, Diffusion o) -> bool
3986  __le__(Diffusion self, Particle d) -> bool
3987  """
3988  return _IMP_atom.Diffusion___le__(self, *args)
3989 
3990  def __lt__(self, *args):
3991  r"""
3992  __lt__(Diffusion self, Diffusion o) -> bool
3993  __lt__(Diffusion self, Particle d) -> bool
3994  """
3995  return _IMP_atom.Diffusion___lt__(self, *args)
3996 
3997  def __ge__(self, *args):
3998  r"""
3999  __ge__(Diffusion self, Diffusion o) -> bool
4000  __ge__(Diffusion self, Particle d) -> bool
4001  """
4002  return _IMP_atom.Diffusion___ge__(self, *args)
4003 
4004  def __gt__(self, *args):
4005  r"""
4006  __gt__(Diffusion self, Diffusion o) -> bool
4007  __gt__(Diffusion self, Particle d) -> bool
4008  """
4009  return _IMP_atom.Diffusion___gt__(self, *args)
4010 
4011  def __hash__(self):
4012  r"""__hash__(Diffusion self) -> std::size_t"""
4013  return _IMP_atom.Diffusion___hash__(self)
4014 
4015  def __str__(self):
4016  r"""__str__(Diffusion self) -> std::string"""
4017  return _IMP_atom.Diffusion___str__(self)
4018 
4019  def __repr__(self):
4020  r"""__repr__(Diffusion self) -> std::string"""
4021  return _IMP_atom.Diffusion___repr__(self)
4022 
4023  def _get_as_binary(self):
4024  r"""_get_as_binary(Diffusion self) -> PyObject *"""
4025  return _IMP_atom.Diffusion__get_as_binary(self)
4026 
4027  def _set_from_binary(self, p):
4028  r"""_set_from_binary(Diffusion self, PyObject * p)"""
4029  return _IMP_atom.Diffusion__set_from_binary(self, p)
4030 
4031  def __getstate__(self):
4032  p = self._get_as_binary()
4033  if len(self.__dict__) > 1:
4034  d = self.__dict__.copy()
4035  del d['this']
4036  p = (d, p)
4037  return p
4038 
4039  def __setstate__(self, p):
4040  if not hasattr(self, 'this'):
4041  self.__init__()
4042  if isinstance(p, tuple):
4043  d, p = p
4044  self.__dict__.update(d)
4045  return self._set_from_binary(p)
4046 
4047  __swig_destroy__ = _IMP_atom.delete_Diffusion
4048 
4049 # Register Diffusion in _IMP_atom:
4050 _IMP_atom.Diffusion_swigregister(Diffusion)
4051 
4052 def get_diffusion_coefficient_from_cm2_per_second(din):
4053  r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
4054  return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
4055 class RigidBodyDiffusion(Diffusion):
4056  r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
4057 
4058  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4059 
4060  def __init__(self, *args):
4061  r"""
4062  __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
4063  __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
4064  __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
4065  """
4066  _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
4067 
4068  def show(self, *args):
4069  r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
4070  return _IMP_atom.RigidBodyDiffusion_show(self, *args)
4071 
4072  @staticmethod
4073  def setup_particle(*args):
4074  r"""
4075  setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
4076  setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
4077  """
4078  return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
4079 
4081  r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
4082  return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
4083 
4084  def set_rotational_diffusion_coefficient(self, d):
4085  r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
4086  return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
4087 
4088  @staticmethod
4089  def get_is_setup(*args):
4090  r"""
4091  get_is_setup(_ParticleAdaptor p) -> bool
4092  get_is_setup(Model m, ParticleIndex p) -> bool
4093  """
4094  return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
4095 
4096  @staticmethod
4097  def get_rotational_diffusion_coefficient_key():
4098  r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
4099  return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
4100 
4101  def add_attribute(self, *args):
4102  r"""
4103  add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
4104  add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4105  add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4106  add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4107  add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4108  add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4109  add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4110  add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4111  add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4112  add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4113  add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4114  add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4115  """
4116  return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
4117 
4118  def get_value(self, *args):
4119  r"""
4120  get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
4121  get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
4122  get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
4123  get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
4124  get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
4125  get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
4126  get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
4127  get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
4128  get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
4129  get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
4130  get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
4131  """
4132  return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
4133 
4134  def set_value(self, *args):
4135  r"""
4136  set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4137  set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4138  set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4139  set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4140  set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4141  set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4142  set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4143  set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4144  set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4145  set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4146  set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4147  """
4148  return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
4149 
4150  def remove_attribute(self, *args):
4151  r"""
4152  remove_attribute(RigidBodyDiffusion self, FloatKey a0)
4153  remove_attribute(RigidBodyDiffusion self, IntKey a0)
4154  remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
4155  remove_attribute(RigidBodyDiffusion self, IntsKey a0)
4156  remove_attribute(RigidBodyDiffusion self, StringKey a0)
4157  remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
4158  remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
4159  remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
4160  remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
4161  remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
4162  remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
4163  """
4164  return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
4165 
4166  def has_attribute(self, *args):
4167  r"""
4168  has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
4169  has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
4170  has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
4171  has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
4172  has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
4173  has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
4174  has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
4175  has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
4176  has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
4177  has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
4178  has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
4179  """
4180  return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
4181 
4182  def get_derivative(self, a0):
4183  r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
4184  return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4185 
4186  def get_name(self):
4187  r"""get_name(RigidBodyDiffusion self) -> std::string"""
4188  return _IMP_atom.RigidBodyDiffusion_get_name(self)
4189 
4190  def clear_caches(self):
4191  r"""clear_caches(RigidBodyDiffusion self)"""
4192  return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4193 
4194  def set_name(self, a0):
4195  r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4196  return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4197 
4198  def set_check_level(self, a0):
4199  r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4200  return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4201 
4202  def add_to_derivative(self, a0, a1, a2):
4203  r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4204  return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4205 
4206  def set_is_optimized(self, a0, a1):
4207  r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4208  return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4209 
4210  def get_is_optimized(self, a0):
4211  r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4212  return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4213 
4214  def get_check_level(self):
4215  r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4216  return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4217 
4218  def __eq__(self, *args):
4219  r"""
4220  __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4221  __eq__(RigidBodyDiffusion self, Particle d) -> bool
4222  """
4223  return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4224 
4225  def __ne__(self, *args):
4226  r"""
4227  __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4228  __ne__(RigidBodyDiffusion self, Particle d) -> bool
4229  """
4230  return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4231 
4232  def __le__(self, *args):
4233  r"""
4234  __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4235  __le__(RigidBodyDiffusion self, Particle d) -> bool
4236  """
4237  return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4238 
4239  def __lt__(self, *args):
4240  r"""
4241  __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4242  __lt__(RigidBodyDiffusion self, Particle d) -> bool
4243  """
4244  return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4245 
4246  def __ge__(self, *args):
4247  r"""
4248  __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4249  __ge__(RigidBodyDiffusion self, Particle d) -> bool
4250  """
4251  return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4252 
4253  def __gt__(self, *args):
4254  r"""
4255  __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4256  __gt__(RigidBodyDiffusion self, Particle d) -> bool
4257  """
4258  return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4259 
4260  def __hash__(self):
4261  r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4262  return _IMP_atom.RigidBodyDiffusion___hash__(self)
4263 
4264  def __str__(self):
4265  r"""__str__(RigidBodyDiffusion self) -> std::string"""
4266  return _IMP_atom.RigidBodyDiffusion___str__(self)
4267 
4268  def __repr__(self):
4269  r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4270  return _IMP_atom.RigidBodyDiffusion___repr__(self)
4271 
4272  def _get_as_binary(self):
4273  r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4274  return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4275 
4276  def _set_from_binary(self, p):
4277  r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4278  return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4279 
4280  def __getstate__(self):
4281  p = self._get_as_binary()
4282  if len(self.__dict__) > 1:
4283  d = self.__dict__.copy()
4284  del d['this']
4285  p = (d, p)
4286  return p
4287 
4288  def __setstate__(self, p):
4289  if not hasattr(self, 'this'):
4290  self.__init__()
4291  if isinstance(p, tuple):
4292  d, p = p
4293  self.__dict__.update(d)
4294  return self._set_from_binary(p)
4295 
4296  __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4297 
4298 # Register RigidBodyDiffusion in _IMP_atom:
4299 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4300 class TAMDParticle(IMP.Decorator):
4301  r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4302 
4303  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4304 
4305  def __init__(self, *args):
4306  r"""
4307  __init__(TAMDParticle self) -> TAMDParticle
4308  __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4309  __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4310  """
4311  _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4312 
4313  def show(self, *args):
4314  r"""show(TAMDParticle self, _ostream out=std::cout)"""
4315  return _IMP_atom.TAMDParticle_show(self, *args)
4316 
4317  @staticmethod
4318  def setup_particle(*args):
4319  r"""
4320  setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4321  setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4322  setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4323  setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4324  """
4325  return _IMP_atom.TAMDParticle_setup_particle(*args)
4326 
4327  @staticmethod
4328  def get_is_setup(*args):
4329  r"""
4330  get_is_setup(_ParticleAdaptor p) -> bool
4331  get_is_setup(Model m, ParticleIndex p) -> bool
4332  """
4333  return _IMP_atom.TAMDParticle_get_is_setup(*args)
4334 
4335  def get_reference_particle_index(self):
4336  r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4337  return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4338 
4339  def set_temperature_scale_factor(self, tsf):
4340  r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4341  return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4342 
4343  def get_temperature_scale_factor(self):
4344  r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4345  return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4346 
4347  def set_friction_scale_factor(self, tsf):
4348  r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4349  return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4350 
4351  def get_friction_scale_factor(self):
4352  r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4353  return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4354 
4355  def update_coordinates_from_ref(self):
4356  r"""update_coordinates_from_ref(TAMDParticle self)"""
4357  return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4358 
4359  @staticmethod
4360  def get_temperature_scale_factor_key():
4361  r"""get_temperature_scale_factor_key() -> FloatKey"""
4362  return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4363 
4364  @staticmethod
4365  def get_friction_scale_factor_key():
4366  r"""get_friction_scale_factor_key() -> FloatKey"""
4367  return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4368 
4369  @staticmethod
4370  def get_reference_particle_index_key():
4371  r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4372  return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4373 
4374  def add_attribute(self, *args):
4375  r"""
4376  add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4377  add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4378  add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4379  add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4380  add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4381  add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4382  add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4383  add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4384  add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4385  add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4386  add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4387  add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4388  """
4389  return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4390 
4391  def get_value(self, *args):
4392  r"""
4393  get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4394  get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4395  get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4396  get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4397  get_value(TAMDParticle self, StringKey a0) -> IMP::String
4398  get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4399  get_value(TAMDParticle self, ObjectKey a0) -> Object
4400  get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4401  get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4402  get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4403  get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4404  """
4405  return _IMP_atom.TAMDParticle_get_value(self, *args)
4406 
4407  def set_value(self, *args):
4408  r"""
4409  set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4410  set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4411  set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4412  set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4413  set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4414  set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4415  set_value(TAMDParticle self, ObjectKey a0, Object a1)
4416  set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4417  set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4418  set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4419  set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4420  """
4421  return _IMP_atom.TAMDParticle_set_value(self, *args)
4422 
4423  def remove_attribute(self, *args):
4424  r"""
4425  remove_attribute(TAMDParticle self, FloatKey a0)
4426  remove_attribute(TAMDParticle self, IntKey a0)
4427  remove_attribute(TAMDParticle self, FloatsKey a0)
4428  remove_attribute(TAMDParticle self, IntsKey a0)
4429  remove_attribute(TAMDParticle self, StringKey a0)
4430  remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4431  remove_attribute(TAMDParticle self, ObjectKey a0)
4432  remove_attribute(TAMDParticle self, SparseFloatKey a0)
4433  remove_attribute(TAMDParticle self, SparseIntKey a0)
4434  remove_attribute(TAMDParticle self, SparseStringKey a0)
4435  remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4436  """
4437  return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4438 
4439  def has_attribute(self, *args):
4440  r"""
4441  has_attribute(TAMDParticle self, FloatKey a0) -> bool
4442  has_attribute(TAMDParticle self, IntKey a0) -> bool
4443  has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4444  has_attribute(TAMDParticle self, IntsKey a0) -> bool
4445  has_attribute(TAMDParticle self, StringKey a0) -> bool
4446  has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4447  has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4448  has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4449  has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4450  has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4451  has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4452  """
4453  return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4454 
4455  def get_derivative(self, a0):
4456  r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4457  return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4458 
4459  def get_name(self):
4460  r"""get_name(TAMDParticle self) -> std::string"""
4461  return _IMP_atom.TAMDParticle_get_name(self)
4462 
4463  def clear_caches(self):
4464  r"""clear_caches(TAMDParticle self)"""
4465  return _IMP_atom.TAMDParticle_clear_caches(self)
4466 
4467  def set_name(self, a0):
4468  r"""set_name(TAMDParticle self, std::string a0)"""
4469  return _IMP_atom.TAMDParticle_set_name(self, a0)
4470 
4471  def set_check_level(self, a0):
4472  r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4473  return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4474 
4475  def add_to_derivative(self, a0, a1, a2):
4476  r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4477  return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4478 
4479  def set_is_optimized(self, a0, a1):
4480  r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4481  return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4482 
4483  def get_is_optimized(self, a0):
4484  r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4485  return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4486 
4487  def get_check_level(self):
4488  r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4489  return _IMP_atom.TAMDParticle_get_check_level(self)
4490 
4491  def __eq__(self, *args):
4492  r"""
4493  __eq__(TAMDParticle self, TAMDParticle o) -> bool
4494  __eq__(TAMDParticle self, Particle d) -> bool
4495  """
4496  return _IMP_atom.TAMDParticle___eq__(self, *args)
4497 
4498  def __ne__(self, *args):
4499  r"""
4500  __ne__(TAMDParticle self, TAMDParticle o) -> bool
4501  __ne__(TAMDParticle self, Particle d) -> bool
4502  """
4503  return _IMP_atom.TAMDParticle___ne__(self, *args)
4504 
4505  def __le__(self, *args):
4506  r"""
4507  __le__(TAMDParticle self, TAMDParticle o) -> bool
4508  __le__(TAMDParticle self, Particle d) -> bool
4509  """
4510  return _IMP_atom.TAMDParticle___le__(self, *args)
4511 
4512  def __lt__(self, *args):
4513  r"""
4514  __lt__(TAMDParticle self, TAMDParticle o) -> bool
4515  __lt__(TAMDParticle self, Particle d) -> bool
4516  """
4517  return _IMP_atom.TAMDParticle___lt__(self, *args)
4518 
4519  def __ge__(self, *args):
4520  r"""
4521  __ge__(TAMDParticle self, TAMDParticle o) -> bool
4522  __ge__(TAMDParticle self, Particle d) -> bool
4523  """
4524  return _IMP_atom.TAMDParticle___ge__(self, *args)
4525 
4526  def __gt__(self, *args):
4527  r"""
4528  __gt__(TAMDParticle self, TAMDParticle o) -> bool
4529  __gt__(TAMDParticle self, Particle d) -> bool
4530  """
4531  return _IMP_atom.TAMDParticle___gt__(self, *args)
4532 
4533  def __hash__(self):
4534  r"""__hash__(TAMDParticle self) -> std::size_t"""
4535  return _IMP_atom.TAMDParticle___hash__(self)
4536 
4537  def __str__(self):
4538  r"""__str__(TAMDParticle self) -> std::string"""
4539  return _IMP_atom.TAMDParticle___str__(self)
4540 
4541  def __repr__(self):
4542  r"""__repr__(TAMDParticle self) -> std::string"""
4543  return _IMP_atom.TAMDParticle___repr__(self)
4544 
4545  def _get_as_binary(self):
4546  r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4547  return _IMP_atom.TAMDParticle__get_as_binary(self)
4548 
4549  def _set_from_binary(self, p):
4550  r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4551  return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4552 
4553  def __getstate__(self):
4554  p = self._get_as_binary()
4555  if len(self.__dict__) > 1:
4556  d = self.__dict__.copy()
4557  del d['this']
4558  p = (d, p)
4559  return p
4560 
4561  def __setstate__(self, p):
4562  if not hasattr(self, 'this'):
4563  self.__init__()
4564  if isinstance(p, tuple):
4565  d, p = p
4566  self.__dict__.update(d)
4567  return self._set_from_binary(p)
4568 
4569  __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4570 
4571 # Register TAMDParticle in _IMP_atom:
4572 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4573 class Charged(IMP.core.XYZ):
4574  r"""Proxy of C++ IMP::atom::Charged class."""
4575 
4576  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4577 
4578  def __init__(self, *args):
4579  r"""
4580  __init__(Charged self) -> Charged
4581  __init__(Charged self, Model m, ParticleIndex id) -> Charged
4582  __init__(Charged self, _ParticleAdaptor d) -> Charged
4583  """
4584  _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4585 
4586  def show(self, *args):
4587  r"""show(Charged self, _ostream out=std::cout)"""
4588  return _IMP_atom.Charged_show(self, *args)
4589 
4590  @staticmethod
4591  def setup_particle(*args):
4592  r"""
4593  setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4594  setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4595  setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4596  setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4597  """
4598  return _IMP_atom.Charged_setup_particle(*args)
4599 
4600  def get_charge(self):
4601  r"""get_charge(Charged self) -> IMP::Float"""
4602  return _IMP_atom.Charged_get_charge(self)
4603 
4604  def set_charge(self, t):
4605  r"""set_charge(Charged self, IMP::Float t)"""
4606  return _IMP_atom.Charged_set_charge(self, t)
4607 
4608  @staticmethod
4609  def get_is_setup(*args):
4610  r"""
4611  get_is_setup(_ParticleAdaptor p) -> bool
4612  get_is_setup(Model m, ParticleIndex pi) -> bool
4613  """
4614  return _IMP_atom.Charged_get_is_setup(*args)
4615 
4616  @staticmethod
4617  def get_charge_key():
4618  r"""get_charge_key() -> FloatKey"""
4619  return _IMP_atom.Charged_get_charge_key()
4620 
4621  def add_attribute(self, *args):
4622  r"""
4623  add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4624  add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4625  add_attribute(Charged self, IntKey a0, IMP::Int a1)
4626  add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4627  add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4628  add_attribute(Charged self, StringKey a0, IMP::String a1)
4629  add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4630  add_attribute(Charged self, ObjectKey a0, Object a1)
4631  add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4632  add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4633  add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4634  add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4635  """
4636  return _IMP_atom.Charged_add_attribute(self, *args)
4637 
4638  def get_value(self, *args):
4639  r"""
4640  get_value(Charged self, FloatKey a0) -> IMP::Float
4641  get_value(Charged self, IntKey a0) -> IMP::Int
4642  get_value(Charged self, FloatsKey a0) -> IMP::Floats
4643  get_value(Charged self, IntsKey a0) -> IMP::Ints
4644  get_value(Charged self, StringKey a0) -> IMP::String
4645  get_value(Charged self, ParticleIndexKey a0) -> Particle
4646  get_value(Charged self, ObjectKey a0) -> Object
4647  get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4648  get_value(Charged self, SparseIntKey a0) -> IMP::Int
4649  get_value(Charged self, SparseStringKey a0) -> IMP::String
4650  get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4651  """
4652  return _IMP_atom.Charged_get_value(self, *args)
4653 
4654  def set_value(self, *args):
4655  r"""
4656  set_value(Charged self, FloatKey a0, IMP::Float a1)
4657  set_value(Charged self, IntKey a0, IMP::Int a1)
4658  set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4659  set_value(Charged self, IntsKey a0, IMP::Ints a1)
4660  set_value(Charged self, StringKey a0, IMP::String a1)
4661  set_value(Charged self, ParticleIndexKey a0, Particle a1)
4662  set_value(Charged self, ObjectKey a0, Object a1)
4663  set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4664  set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4665  set_value(Charged self, SparseStringKey a0, IMP::String a1)
4666  set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4667  """
4668  return _IMP_atom.Charged_set_value(self, *args)
4669 
4670  def remove_attribute(self, *args):
4671  r"""
4672  remove_attribute(Charged self, FloatKey a0)
4673  remove_attribute(Charged self, IntKey a0)
4674  remove_attribute(Charged self, FloatsKey a0)
4675  remove_attribute(Charged self, IntsKey a0)
4676  remove_attribute(Charged self, StringKey a0)
4677  remove_attribute(Charged self, ParticleIndexKey a0)
4678  remove_attribute(Charged self, ObjectKey a0)
4679  remove_attribute(Charged self, SparseFloatKey a0)
4680  remove_attribute(Charged self, SparseIntKey a0)
4681  remove_attribute(Charged self, SparseStringKey a0)
4682  remove_attribute(Charged self, SparseParticleIndexKey a0)
4683  """
4684  return _IMP_atom.Charged_remove_attribute(self, *args)
4685 
4686  def has_attribute(self, *args):
4687  r"""
4688  has_attribute(Charged self, FloatKey a0) -> bool
4689  has_attribute(Charged self, IntKey a0) -> bool
4690  has_attribute(Charged self, FloatsKey a0) -> bool
4691  has_attribute(Charged self, IntsKey a0) -> bool
4692  has_attribute(Charged self, StringKey a0) -> bool
4693  has_attribute(Charged self, ParticleIndexKey a0) -> bool
4694  has_attribute(Charged self, ObjectKey a0) -> bool
4695  has_attribute(Charged self, SparseFloatKey a0) -> bool
4696  has_attribute(Charged self, SparseIntKey a0) -> bool
4697  has_attribute(Charged self, SparseStringKey a0) -> bool
4698  has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4699  """
4700  return _IMP_atom.Charged_has_attribute(self, *args)
4701 
4702  def get_derivative(self, a0):
4703  r"""get_derivative(Charged self, FloatKey a0) -> double"""
4704  return _IMP_atom.Charged_get_derivative(self, a0)
4705 
4706  def get_name(self):
4707  r"""get_name(Charged self) -> std::string"""
4708  return _IMP_atom.Charged_get_name(self)
4709 
4710  def clear_caches(self):
4711  r"""clear_caches(Charged self)"""
4712  return _IMP_atom.Charged_clear_caches(self)
4713 
4714  def set_name(self, a0):
4715  r"""set_name(Charged self, std::string a0)"""
4716  return _IMP_atom.Charged_set_name(self, a0)
4717 
4718  def set_check_level(self, a0):
4719  r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4720  return _IMP_atom.Charged_set_check_level(self, a0)
4721 
4722  def add_to_derivative(self, a0, a1, a2):
4723  r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4724  return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4725 
4726  def set_is_optimized(self, a0, a1):
4727  r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4728  return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4729 
4730  def get_is_optimized(self, a0):
4731  r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4732  return _IMP_atom.Charged_get_is_optimized(self, a0)
4733 
4734  def get_check_level(self):
4735  r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4736  return _IMP_atom.Charged_get_check_level(self)
4737 
4738  def __eq__(self, *args):
4739  r"""
4740  __eq__(Charged self, Charged o) -> bool
4741  __eq__(Charged self, Particle d) -> bool
4742  """
4743  return _IMP_atom.Charged___eq__(self, *args)
4744 
4745  def __ne__(self, *args):
4746  r"""
4747  __ne__(Charged self, Charged o) -> bool
4748  __ne__(Charged self, Particle d) -> bool
4749  """
4750  return _IMP_atom.Charged___ne__(self, *args)
4751 
4752  def __le__(self, *args):
4753  r"""
4754  __le__(Charged self, Charged o) -> bool
4755  __le__(Charged self, Particle d) -> bool
4756  """
4757  return _IMP_atom.Charged___le__(self, *args)
4758 
4759  def __lt__(self, *args):
4760  r"""
4761  __lt__(Charged self, Charged o) -> bool
4762  __lt__(Charged self, Particle d) -> bool
4763  """
4764  return _IMP_atom.Charged___lt__(self, *args)
4765 
4766  def __ge__(self, *args):
4767  r"""
4768  __ge__(Charged self, Charged o) -> bool
4769  __ge__(Charged self, Particle d) -> bool
4770  """
4771  return _IMP_atom.Charged___ge__(self, *args)
4772 
4773  def __gt__(self, *args):
4774  r"""
4775  __gt__(Charged self, Charged o) -> bool
4776  __gt__(Charged self, Particle d) -> bool
4777  """
4778  return _IMP_atom.Charged___gt__(self, *args)
4779 
4780  def __hash__(self):
4781  r"""__hash__(Charged self) -> std::size_t"""
4782  return _IMP_atom.Charged___hash__(self)
4783 
4784  def __str__(self):
4785  r"""__str__(Charged self) -> std::string"""
4786  return _IMP_atom.Charged___str__(self)
4787 
4788  def __repr__(self):
4789  r"""__repr__(Charged self) -> std::string"""
4790  return _IMP_atom.Charged___repr__(self)
4791 
4792  def _get_as_binary(self):
4793  r"""_get_as_binary(Charged self) -> PyObject *"""
4794  return _IMP_atom.Charged__get_as_binary(self)
4795 
4796  def _set_from_binary(self, p):
4797  r"""_set_from_binary(Charged self, PyObject * p)"""
4798  return _IMP_atom.Charged__set_from_binary(self, p)
4799 
4800  def __getstate__(self):
4801  p = self._get_as_binary()
4802  if len(self.__dict__) > 1:
4803  d = self.__dict__.copy()
4804  del d['this']
4805  p = (d, p)
4806  return p
4807 
4808  def __setstate__(self, p):
4809  if not hasattr(self, 'this'):
4810  self.__init__()
4811  if isinstance(p, tuple):
4812  d, p = p
4813  self.__dict__.update(d)
4814  return self._set_from_binary(p)
4815 
4816  __swig_destroy__ = _IMP_atom.delete_Charged
4817 
4818 # Register Charged in _IMP_atom:
4819 _IMP_atom.Charged_swigregister(Charged)
4820 class CoulombPairScore(IMP.PairScore):
4821  r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4822 
4823  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4824 
4825  def __init__(self, f):
4826  r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4827  _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4828 
4829  def set_relative_dielectric(self, relative_dielectric):
4830  r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4831  return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4832 
4833  def get_relative_dielectric(self):
4834  r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4835  return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4836 
4837  def get_smoothing_function(self):
4838  r"""get_smoothing_function(CoulombPairScore self) -> SmoothingFunction"""
4839  return _IMP_atom.CoulombPairScore_get_smoothing_function(self)
4840 
4841  def do_get_inputs(self, m, pis):
4842  r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4843  return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4844 
4845  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4846  r"""evaluate_indexes(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4847  return _IMP_atom.CoulombPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4848 
4849  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4850  r"""evaluate_indexes_scores(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4851  return _IMP_atom.CoulombPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4852 
4853  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4854  r"""evaluate_indexes_delta(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4855  return _IMP_atom.CoulombPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4856 
4857  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4858  r"""evaluate_if_good_indexes(CoulombPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4859  return _IMP_atom.CoulombPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4860 
4861  def get_version_info(self):
4862  r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4863  return _IMP_atom.CoulombPairScore_get_version_info(self)
4864  __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4865 
4866  def __str__(self):
4867  r"""__str__(CoulombPairScore self) -> std::string"""
4868  return _IMP_atom.CoulombPairScore___str__(self)
4869 
4870  def __repr__(self):
4871  r"""__repr__(CoulombPairScore self) -> std::string"""
4872  return _IMP_atom.CoulombPairScore___repr__(self)
4873 
4874  @staticmethod
4875  def get_from(o):
4876  return _object_cast_to_CoulombPairScore(o)
4877 
4878 
4879  def _get_jax(self, m, indexes, space):
4880  import math
4881  import jax
4882  import jax.numpy as jnp
4883  # 1 / (4pi * epsilon) * conversion factor to get score in kcal/mol
4884  # if distances are in angstroms
4885  avogadro = 6.02214179e23 # /mole
4886  electron_charge = 1.6021892e-19 # Coulomb
4887  permittivity_vacuum = 8.854187818e-12 # C/V/m
4888  kcal2joule = 4186.8
4889  factor = (avogadro * electron_charge * electron_charge *
4890  1.0e10 / permittivity_vacuum / kcal2joule /
4891  (4.0 * math.pi * self.get_relative_dielectric()))
4892  sf = self.get_smoothing_function().get_derived_object()
4893  # Function operates on a single distance + score; make it work on
4894  # an array instead using jax.vmap
4895  smoothing_function = jax.vmap(sf._get_jax())
4896  def score(jm):
4897  xyzs = jm['xyz'][indexes]
4898  qs = jm['charge'][indexes]
4899  diff = xyzs[:,0] - xyzs[:,1]
4900  drs = space.distance(diff)
4901  scores = factor * jnp.prod(qs, axis=-1) / drs
4902  return smoothing_function(scores, drs)
4903  return self._wrap_jax(m, score, keys=[Charged.get_charge_key()])
4904 
4905 
4906 # Register CoulombPairScore in _IMP_atom:
4907 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4908 class Domain(Hierarchy):
4909  r"""Proxy of C++ IMP::atom::Domain class."""
4910 
4911  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4912 
4913  def set_index_range(self, ir):
4914  r"""set_index_range(Domain self, IMP::IntRange ir)"""
4915  return _IMP_atom.Domain_set_index_range(self, ir)
4916 
4917  def get_index_range(self):
4918  r"""get_index_range(Domain self) -> IMP::IntRange"""
4919  return _IMP_atom.Domain_get_index_range(self)
4920 
4921  def __init__(self, *args):
4922  r"""
4923  __init__(Domain self) -> Domain
4924  __init__(Domain self, Model m, ParticleIndex id) -> Domain
4925  __init__(Domain self, _ParticleAdaptor d) -> Domain
4926  """
4927  _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4928 
4929  @staticmethod
4930  def get_is_setup(*args):
4931  r"""
4932  get_is_setup(Model m, ParticleIndex pi) -> bool
4933  get_is_setup(_ParticleAdaptor p) -> bool
4934  """
4935  return _IMP_atom.Domain_get_is_setup(*args)
4936 
4937  def show(self, *args):
4938  r"""show(Domain self, _ostream out=std::cout)"""
4939  return _IMP_atom.Domain_show(self, *args)
4940 
4941  @staticmethod
4942  def setup_particle(*args):
4943  r"""
4944  setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4945  setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4946  setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4947  setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4948  """
4949  return _IMP_atom.Domain_setup_particle(*args)
4950 
4951  def add_attribute(self, *args):
4952  r"""
4953  add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4954  add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4955  add_attribute(Domain self, IntKey a0, IMP::Int a1)
4956  add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4957  add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4958  add_attribute(Domain self, StringKey a0, IMP::String a1)
4959  add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4960  add_attribute(Domain self, ObjectKey a0, Object a1)
4961  add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4962  add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4963  add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4964  add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4965  """
4966  return _IMP_atom.Domain_add_attribute(self, *args)
4967 
4968  def get_value(self, *args):
4969  r"""
4970  get_value(Domain self, FloatKey a0) -> IMP::Float
4971  get_value(Domain self, IntKey a0) -> IMP::Int
4972  get_value(Domain self, FloatsKey a0) -> IMP::Floats
4973  get_value(Domain self, IntsKey a0) -> IMP::Ints
4974  get_value(Domain self, StringKey a0) -> IMP::String
4975  get_value(Domain self, ParticleIndexKey a0) -> Particle
4976  get_value(Domain self, ObjectKey a0) -> Object
4977  get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4978  get_value(Domain self, SparseIntKey a0) -> IMP::Int
4979  get_value(Domain self, SparseStringKey a0) -> IMP::String
4980  get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4981  """
4982  return _IMP_atom.Domain_get_value(self, *args)
4983 
4984  def set_value(self, *args):
4985  r"""
4986  set_value(Domain self, FloatKey a0, IMP::Float a1)
4987  set_value(Domain self, IntKey a0, IMP::Int a1)
4988  set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4989  set_value(Domain self, IntsKey a0, IMP::Ints a1)
4990  set_value(Domain self, StringKey a0, IMP::String a1)
4991  set_value(Domain self, ParticleIndexKey a0, Particle a1)
4992  set_value(Domain self, ObjectKey a0, Object a1)
4993  set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4994  set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4995  set_value(Domain self, SparseStringKey a0, IMP::String a1)
4996  set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4997  """
4998  return _IMP_atom.Domain_set_value(self, *args)
4999 
5000  def remove_attribute(self, *args):
5001  r"""
5002  remove_attribute(Domain self, FloatKey a0)
5003  remove_attribute(Domain self, IntKey a0)
5004  remove_attribute(Domain self, FloatsKey a0)
5005  remove_attribute(Domain self, IntsKey a0)
5006  remove_attribute(Domain self, StringKey a0)
5007  remove_attribute(Domain self, ParticleIndexKey a0)
5008  remove_attribute(Domain self, ObjectKey a0)
5009  remove_attribute(Domain self, SparseFloatKey a0)
5010  remove_attribute(Domain self, SparseIntKey a0)
5011  remove_attribute(Domain self, SparseStringKey a0)
5012  remove_attribute(Domain self, SparseParticleIndexKey a0)
5013  """
5014  return _IMP_atom.Domain_remove_attribute(self, *args)
5015 
5016  def has_attribute(self, *args):
5017  r"""
5018  has_attribute(Domain self, FloatKey a0) -> bool
5019  has_attribute(Domain self, IntKey a0) -> bool
5020  has_attribute(Domain self, FloatsKey a0) -> bool
5021  has_attribute(Domain self, IntsKey a0) -> bool
5022  has_attribute(Domain self, StringKey a0) -> bool
5023  has_attribute(Domain self, ParticleIndexKey a0) -> bool
5024  has_attribute(Domain self, ObjectKey a0) -> bool
5025  has_attribute(Domain self, SparseFloatKey a0) -> bool
5026  has_attribute(Domain self, SparseIntKey a0) -> bool
5027  has_attribute(Domain self, SparseStringKey a0) -> bool
5028  has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
5029  """
5030  return _IMP_atom.Domain_has_attribute(self, *args)
5031 
5032  def get_derivative(self, a0):
5033  r"""get_derivative(Domain self, FloatKey a0) -> double"""
5034  return _IMP_atom.Domain_get_derivative(self, a0)
5035 
5036  def get_name(self):
5037  r"""get_name(Domain self) -> std::string"""
5038  return _IMP_atom.Domain_get_name(self)
5039 
5040  def clear_caches(self):
5041  r"""clear_caches(Domain self)"""
5042  return _IMP_atom.Domain_clear_caches(self)
5043 
5044  def set_name(self, a0):
5045  r"""set_name(Domain self, std::string a0)"""
5046  return _IMP_atom.Domain_set_name(self, a0)
5047 
5048  def set_check_level(self, a0):
5049  r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
5050  return _IMP_atom.Domain_set_check_level(self, a0)
5051 
5052  def add_to_derivative(self, a0, a1, a2):
5053  r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5054  return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
5055 
5056  def set_is_optimized(self, a0, a1):
5057  r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
5058  return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
5059 
5060  def get_is_optimized(self, a0):
5061  r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
5062  return _IMP_atom.Domain_get_is_optimized(self, a0)
5063 
5064  def get_check_level(self):
5065  r"""get_check_level(Domain self) -> IMP::CheckLevel"""
5066  return _IMP_atom.Domain_get_check_level(self)
5067 
5068  def __eq__(self, *args):
5069  r"""
5070  __eq__(Domain self, Domain o) -> bool
5071  __eq__(Domain self, Particle d) -> bool
5072  """
5073  return _IMP_atom.Domain___eq__(self, *args)
5074 
5075  def __ne__(self, *args):
5076  r"""
5077  __ne__(Domain self, Domain o) -> bool
5078  __ne__(Domain self, Particle d) -> bool
5079  """
5080  return _IMP_atom.Domain___ne__(self, *args)
5081 
5082  def __le__(self, *args):
5083  r"""
5084  __le__(Domain self, Domain o) -> bool
5085  __le__(Domain self, Particle d) -> bool
5086  """
5087  return _IMP_atom.Domain___le__(self, *args)
5088 
5089  def __lt__(self, *args):
5090  r"""
5091  __lt__(Domain self, Domain o) -> bool
5092  __lt__(Domain self, Particle d) -> bool
5093  """
5094  return _IMP_atom.Domain___lt__(self, *args)
5095 
5096  def __ge__(self, *args):
5097  r"""
5098  __ge__(Domain self, Domain o) -> bool
5099  __ge__(Domain self, Particle d) -> bool
5100  """
5101  return _IMP_atom.Domain___ge__(self, *args)
5102 
5103  def __gt__(self, *args):
5104  r"""
5105  __gt__(Domain self, Domain o) -> bool
5106  __gt__(Domain self, Particle d) -> bool
5107  """
5108  return _IMP_atom.Domain___gt__(self, *args)
5109 
5110  def __hash__(self):
5111  r"""__hash__(Domain self) -> std::size_t"""
5112  return _IMP_atom.Domain___hash__(self)
5113 
5114  def __str__(self):
5115  r"""__str__(Domain self) -> std::string"""
5116  return _IMP_atom.Domain___str__(self)
5117 
5118  def __repr__(self):
5119  r"""__repr__(Domain self) -> std::string"""
5120  return _IMP_atom.Domain___repr__(self)
5121 
5122  def _get_as_binary(self):
5123  r"""_get_as_binary(Domain self) -> PyObject *"""
5124  return _IMP_atom.Domain__get_as_binary(self)
5125 
5126  def _set_from_binary(self, p):
5127  r"""_set_from_binary(Domain self, PyObject * p)"""
5128  return _IMP_atom.Domain__set_from_binary(self, p)
5129 
5130  def __getstate__(self):
5131  p = self._get_as_binary()
5132  if len(self.__dict__) > 1:
5133  d = self.__dict__.copy()
5134  del d['this']
5135  p = (d, p)
5136  return p
5137 
5138  def __setstate__(self, p):
5139  if not hasattr(self, 'this'):
5140  self.__init__()
5141  if isinstance(p, tuple):
5142  d, p = p
5143  self.__dict__.update(d)
5144  return self._set_from_binary(p)
5145 
5146  __swig_destroy__ = _IMP_atom.delete_Domain
5147 
5148 # Register Domain in _IMP_atom:
5149 _IMP_atom.Domain_swigregister(Domain)
5150 class LennardJonesType(IMP.Object):
5151  r"""Proxy of C++ IMP::atom::LennardJonesType class."""
5152 
5153  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5154 
5155  def __init__(self, *args):
5156  r"""__init__(LennardJonesType self, double well_depth, double radius, std::string name="LennardJonesType%1%") -> LennardJonesType"""
5157  _IMP_atom.LennardJonesType_swiginit(self, _IMP_atom.new_LennardJonesType(*args))
5158 
5159  def get_well_depth(self):
5160  r"""get_well_depth(LennardJonesType self) -> double"""
5161  return _IMP_atom.LennardJonesType_get_well_depth(self)
5162 
5163  def set_well_depth(self, d):
5164  r"""set_well_depth(LennardJonesType self, double d)"""
5165  return _IMP_atom.LennardJonesType_set_well_depth(self, d)
5166 
5167  def get_radius(self):
5168  r"""get_radius(LennardJonesType self) -> double"""
5169  return _IMP_atom.LennardJonesType_get_radius(self)
5170 
5171  def set_radius(self, r):
5172  r"""set_radius(LennardJonesType self, double r)"""
5173  return _IMP_atom.LennardJonesType_set_radius(self, r)
5174 
5175  def get_index(self):
5176  r"""get_index(LennardJonesType self) -> int"""
5177  return _IMP_atom.LennardJonesType_get_index(self)
5178 
5179  def get_version_info(self):
5180  r"""get_version_info(LennardJonesType self) -> VersionInfo"""
5181  return _IMP_atom.LennardJonesType_get_version_info(self)
5182  __swig_destroy__ = _IMP_atom.delete_LennardJonesType
5183 
5184  def __str__(self):
5185  r"""__str__(LennardJonesType self) -> std::string"""
5186  return _IMP_atom.LennardJonesType___str__(self)
5187 
5188  def __repr__(self):
5189  r"""__repr__(LennardJonesType self) -> std::string"""
5190  return _IMP_atom.LennardJonesType___repr__(self)
5191 
5192  @staticmethod
5193  def get_from(o):
5194  return _object_cast_to_LennardJonesType(o)
5195 
5196 
5197 # Register LennardJonesType in _IMP_atom:
5198 _IMP_atom.LennardJonesType_swigregister(LennardJonesType)
5199 class LennardJonesTyped(IMP.core.XYZ):
5200  r"""Proxy of C++ IMP::atom::LennardJonesTyped class."""
5201 
5202  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5203 
5204  def __init__(self, *args):
5205  r"""
5206  __init__(LennardJonesTyped self) -> LennardJonesTyped
5207  __init__(LennardJonesTyped self, Model m, ParticleIndex id) -> LennardJonesTyped
5208  __init__(LennardJonesTyped self, _ParticleAdaptor d) -> LennardJonesTyped
5209  """
5210  _IMP_atom.LennardJonesTyped_swiginit(self, _IMP_atom.new_LennardJonesTyped(*args))
5211 
5212  def show(self, *args):
5213  r"""show(LennardJonesTyped self, _ostream out=std::cout)"""
5214  return _IMP_atom.LennardJonesTyped_show(self, *args)
5215 
5216  @staticmethod
5217  def setup_particle(*args):
5218  r"""
5219  setup_particle(Model m, ParticleIndex pi, LennardJonesType type) -> LennardJonesTyped
5220  setup_particle(_ParticleAdaptor pa, LennardJonesType type) -> LennardJonesTyped
5221  """
5222  return _IMP_atom.LennardJonesTyped_setup_particle(*args)
5223 
5224  @staticmethod
5225  def get_is_setup(*args):
5226  r"""
5227  get_is_setup(_ParticleAdaptor p) -> bool
5228  get_is_setup(Model m, ParticleIndex pi) -> bool
5229  """
5230  return _IMP_atom.LennardJonesTyped_get_is_setup(*args)
5231 
5232  def set_type(self, type):
5233  r"""set_type(LennardJonesTyped self, LennardJonesType type)"""
5234  return _IMP_atom.LennardJonesTyped_set_type(self, type)
5235 
5236  def get_type(self):
5237  r"""get_type(LennardJonesTyped self) -> LennardJonesType"""
5238  return _IMP_atom.LennardJonesTyped_get_type(self)
5239 
5240  def get_index(self):
5241  r"""get_index(LennardJonesTyped self) -> int"""
5242  return _IMP_atom.LennardJonesTyped_get_index(self)
5243 
5244  def get_well_depth(self):
5245  r"""get_well_depth(LennardJonesTyped self) -> double"""
5246  return _IMP_atom.LennardJonesTyped_get_well_depth(self)
5247 
5248  def get_radius(self):
5249  r"""get_radius(LennardJonesTyped self) -> double"""
5250  return _IMP_atom.LennardJonesTyped_get_radius(self)
5251 
5252  @staticmethod
5253  def get_type_key():
5254  r"""get_type_key() -> IntKey"""
5255  return _IMP_atom.LennardJonesTyped_get_type_key()
5256 
5257  def add_attribute(self, *args):
5258  r"""
5259  add_attribute(LennardJonesTyped self, FloatKey k, IMP::Float v, bool opt)
5260  add_attribute(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5261  add_attribute(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5262  add_attribute(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5263  add_attribute(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5264  add_attribute(LennardJonesTyped self, StringKey a0, IMP::String a1)
5265  add_attribute(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5266  add_attribute(LennardJonesTyped self, ObjectKey a0, Object a1)
5267  add_attribute(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5268  add_attribute(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5269  add_attribute(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5270  add_attribute(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5271  """
5272  return _IMP_atom.LennardJonesTyped_add_attribute(self, *args)
5273 
5274  def get_value(self, *args):
5275  r"""
5276  get_value(LennardJonesTyped self, FloatKey a0) -> IMP::Float
5277  get_value(LennardJonesTyped self, IntKey a0) -> IMP::Int
5278  get_value(LennardJonesTyped self, FloatsKey a0) -> IMP::Floats
5279  get_value(LennardJonesTyped self, IntsKey a0) -> IMP::Ints
5280  get_value(LennardJonesTyped self, StringKey a0) -> IMP::String
5281  get_value(LennardJonesTyped self, ParticleIndexKey a0) -> Particle
5282  get_value(LennardJonesTyped self, ObjectKey a0) -> Object
5283  get_value(LennardJonesTyped self, SparseFloatKey a0) -> IMP::Float
5284  get_value(LennardJonesTyped self, SparseIntKey a0) -> IMP::Int
5285  get_value(LennardJonesTyped self, SparseStringKey a0) -> IMP::String
5286  get_value(LennardJonesTyped self, SparseParticleIndexKey a0) -> ParticleIndex
5287  """
5288  return _IMP_atom.LennardJonesTyped_get_value(self, *args)
5289 
5290  def set_value(self, *args):
5291  r"""
5292  set_value(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5293  set_value(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5294  set_value(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5295  set_value(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5296  set_value(LennardJonesTyped self, StringKey a0, IMP::String a1)
5297  set_value(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5298  set_value(LennardJonesTyped self, ObjectKey a0, Object a1)
5299  set_value(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5300  set_value(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5301  set_value(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5302  set_value(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5303  """
5304  return _IMP_atom.LennardJonesTyped_set_value(self, *args)
5305 
5306  def remove_attribute(self, *args):
5307  r"""
5308  remove_attribute(LennardJonesTyped self, FloatKey a0)
5309  remove_attribute(LennardJonesTyped self, IntKey a0)
5310  remove_attribute(LennardJonesTyped self, FloatsKey a0)
5311  remove_attribute(LennardJonesTyped self, IntsKey a0)
5312  remove_attribute(LennardJonesTyped self, StringKey a0)
5313  remove_attribute(LennardJonesTyped self, ParticleIndexKey a0)
5314  remove_attribute(LennardJonesTyped self, ObjectKey a0)
5315  remove_attribute(LennardJonesTyped self, SparseFloatKey a0)
5316  remove_attribute(LennardJonesTyped self, SparseIntKey a0)
5317  remove_attribute(LennardJonesTyped self, SparseStringKey a0)
5318  remove_attribute(LennardJonesTyped self, SparseParticleIndexKey a0)
5319  """
5320  return _IMP_atom.LennardJonesTyped_remove_attribute(self, *args)
5321 
5322  def has_attribute(self, *args):
5323  r"""
5324  has_attribute(LennardJonesTyped self, FloatKey a0) -> bool
5325  has_attribute(LennardJonesTyped self, IntKey a0) -> bool
5326  has_attribute(LennardJonesTyped self, FloatsKey a0) -> bool
5327  has_attribute(LennardJonesTyped self, IntsKey a0) -> bool
5328  has_attribute(LennardJonesTyped self, StringKey a0) -> bool
5329  has_attribute(LennardJonesTyped self, ParticleIndexKey a0) -> bool
5330  has_attribute(LennardJonesTyped self, ObjectKey a0) -> bool
5331  has_attribute(LennardJonesTyped self, SparseFloatKey a0) -> bool
5332  has_attribute(LennardJonesTyped self, SparseIntKey a0) -> bool
5333  has_attribute(LennardJonesTyped self, SparseStringKey a0) -> bool
5334  has_attribute(LennardJonesTyped self, SparseParticleIndexKey a0) -> bool
5335  """
5336  return _IMP_atom.LennardJonesTyped_has_attribute(self, *args)
5337 
5338  def get_derivative(self, a0):
5339  r"""get_derivative(LennardJonesTyped self, FloatKey a0) -> double"""
5340  return _IMP_atom.LennardJonesTyped_get_derivative(self, a0)
5341 
5342  def get_name(self):
5343  r"""get_name(LennardJonesTyped self) -> std::string"""
5344  return _IMP_atom.LennardJonesTyped_get_name(self)
5345 
5346  def clear_caches(self):
5347  r"""clear_caches(LennardJonesTyped self)"""
5348  return _IMP_atom.LennardJonesTyped_clear_caches(self)
5349 
5350  def set_name(self, a0):
5351  r"""set_name(LennardJonesTyped self, std::string a0)"""
5352  return _IMP_atom.LennardJonesTyped_set_name(self, a0)
5353 
5354  def set_check_level(self, a0):
5355  r"""set_check_level(LennardJonesTyped self, IMP::CheckLevel a0)"""
5356  return _IMP_atom.LennardJonesTyped_set_check_level(self, a0)
5357 
5358  def add_to_derivative(self, a0, a1, a2):
5359  r"""add_to_derivative(LennardJonesTyped self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5360  return _IMP_atom.LennardJonesTyped_add_to_derivative(self, a0, a1, a2)
5361 
5362  def set_is_optimized(self, a0, a1):
5363  r"""set_is_optimized(LennardJonesTyped self, FloatKey a0, bool a1)"""
5364  return _IMP_atom.LennardJonesTyped_set_is_optimized(self, a0, a1)
5365 
5366  def get_is_optimized(self, a0):
5367  r"""get_is_optimized(LennardJonesTyped self, FloatKey a0) -> bool"""
5368  return _IMP_atom.LennardJonesTyped_get_is_optimized(self, a0)
5369 
5370  def get_check_level(self):
5371  r"""get_check_level(LennardJonesTyped self) -> IMP::CheckLevel"""
5372  return _IMP_atom.LennardJonesTyped_get_check_level(self)
5373 
5374  def __eq__(self, *args):
5375  r"""
5376  __eq__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5377  __eq__(LennardJonesTyped self, Particle d) -> bool
5378  """
5379  return _IMP_atom.LennardJonesTyped___eq__(self, *args)
5380 
5381  def __ne__(self, *args):
5382  r"""
5383  __ne__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5384  __ne__(LennardJonesTyped self, Particle d) -> bool
5385  """
5386  return _IMP_atom.LennardJonesTyped___ne__(self, *args)
5387 
5388  def __le__(self, *args):
5389  r"""
5390  __le__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5391  __le__(LennardJonesTyped self, Particle d) -> bool
5392  """
5393  return _IMP_atom.LennardJonesTyped___le__(self, *args)
5394 
5395  def __lt__(self, *args):
5396  r"""
5397  __lt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5398  __lt__(LennardJonesTyped self, Particle d) -> bool
5399  """
5400  return _IMP_atom.LennardJonesTyped___lt__(self, *args)
5401 
5402  def __ge__(self, *args):
5403  r"""
5404  __ge__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5405  __ge__(LennardJonesTyped self, Particle d) -> bool
5406  """
5407  return _IMP_atom.LennardJonesTyped___ge__(self, *args)
5408 
5409  def __gt__(self, *args):
5410  r"""
5411  __gt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5412  __gt__(LennardJonesTyped self, Particle d) -> bool
5413  """
5414  return _IMP_atom.LennardJonesTyped___gt__(self, *args)
5415 
5416  def __hash__(self):
5417  r"""__hash__(LennardJonesTyped self) -> std::size_t"""
5418  return _IMP_atom.LennardJonesTyped___hash__(self)
5419 
5420  def __str__(self):
5421  r"""__str__(LennardJonesTyped self) -> std::string"""
5422  return _IMP_atom.LennardJonesTyped___str__(self)
5423 
5424  def __repr__(self):
5425  r"""__repr__(LennardJonesTyped self) -> std::string"""
5426  return _IMP_atom.LennardJonesTyped___repr__(self)
5427 
5428  def _get_as_binary(self):
5429  r"""_get_as_binary(LennardJonesTyped self) -> PyObject *"""
5430  return _IMP_atom.LennardJonesTyped__get_as_binary(self)
5431 
5432  def _set_from_binary(self, p):
5433  r"""_set_from_binary(LennardJonesTyped self, PyObject * p)"""
5434  return _IMP_atom.LennardJonesTyped__set_from_binary(self, p)
5435 
5436  def __getstate__(self):
5437  p = self._get_as_binary()
5438  if len(self.__dict__) > 1:
5439  d = self.__dict__.copy()
5440  del d['this']
5441  p = (d, p)
5442  return p
5443 
5444  def __setstate__(self, p):
5445  if not hasattr(self, 'this'):
5446  self.__init__()
5447  if isinstance(p, tuple):
5448  d, p = p
5449  self.__dict__.update(d)
5450  return self._set_from_binary(p)
5451 
5452  __swig_destroy__ = _IMP_atom.delete_LennardJonesTyped
5453 
5454 # Register LennardJonesTyped in _IMP_atom:
5455 _IMP_atom.LennardJonesTyped_swigregister(LennardJonesTyped)
5456 class LinearVelocity(IMP.Decorator):
5457  r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5458 
5459  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5460 
5461  @staticmethod
5462  def get_velocity_key():
5463  r"""get_velocity_key() -> Vector3DKey"""
5464  return _IMP_atom.LinearVelocity_get_velocity_key()
5465 
5466  def __init__(self, *args):
5467  r"""
5468  __init__(LinearVelocity self) -> LinearVelocity
5469  __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5470  __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5471  """
5472  _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5473 
5474  @staticmethod
5475  def get_is_setup(*args):
5476  r"""
5477  get_is_setup(Model m, ParticleIndex pi) -> bool
5478  get_is_setup(_ParticleAdaptor p) -> bool
5479  """
5480  return _IMP_atom.LinearVelocity_get_is_setup(*args)
5481 
5482  def show(self, *args):
5483  r"""show(LinearVelocity self, _ostream out=std::cout)"""
5484  return _IMP_atom.LinearVelocity_show(self, *args)
5485 
5486  @staticmethod
5487  def setup_particle(*args):
5488  r"""
5489  setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5490  setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5491  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5492  setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5493  """
5494  return _IMP_atom.LinearVelocity_setup_particle(*args)
5495 
5496  def set_velocity(self, v):
5497  r"""set_velocity(LinearVelocity self, Vector3D v)"""
5498  return _IMP_atom.LinearVelocity_set_velocity(self, v)
5499 
5500  def get_velocity(self):
5501  r"""get_velocity(LinearVelocity self) -> Vector3D"""
5502  return _IMP_atom.LinearVelocity_get_velocity(self)
5503 
5504  def add_attribute(self, *args):
5505  r"""
5506  add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5507  add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5508  add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5509  add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5510  add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5511  add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5512  add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5513  add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5514  add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5515  add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5516  add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5517  add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5518  """
5519  return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5520 
5521  def get_value(self, *args):
5522  r"""
5523  get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5524  get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5525  get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5526  get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5527  get_value(LinearVelocity self, StringKey a0) -> IMP::String
5528  get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5529  get_value(LinearVelocity self, ObjectKey a0) -> Object
5530  get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5531  get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5532  get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5533  get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5534  """
5535  return _IMP_atom.LinearVelocity_get_value(self, *args)
5536 
5537  def set_value(self, *args):
5538  r"""
5539  set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5540  set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5541  set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5542  set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5543  set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5544  set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5545  set_value(LinearVelocity self, ObjectKey a0, Object a1)
5546  set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5547  set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5548  set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5549  set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5550  """
5551  return _IMP_atom.LinearVelocity_set_value(self, *args)
5552 
5553  def remove_attribute(self, *args):
5554  r"""
5555  remove_attribute(LinearVelocity self, FloatKey a0)
5556  remove_attribute(LinearVelocity self, IntKey a0)
5557  remove_attribute(LinearVelocity self, FloatsKey a0)
5558  remove_attribute(LinearVelocity self, IntsKey a0)
5559  remove_attribute(LinearVelocity self, StringKey a0)
5560  remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5561  remove_attribute(LinearVelocity self, ObjectKey a0)
5562  remove_attribute(LinearVelocity self, SparseFloatKey a0)
5563  remove_attribute(LinearVelocity self, SparseIntKey a0)
5564  remove_attribute(LinearVelocity self, SparseStringKey a0)
5565  remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5566  """
5567  return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5568 
5569  def has_attribute(self, *args):
5570  r"""
5571  has_attribute(LinearVelocity self, FloatKey a0) -> bool
5572  has_attribute(LinearVelocity self, IntKey a0) -> bool
5573  has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5574  has_attribute(LinearVelocity self, IntsKey a0) -> bool
5575  has_attribute(LinearVelocity self, StringKey a0) -> bool
5576  has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5577  has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5578  has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5579  has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5580  has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5581  has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5582  """
5583  return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5584 
5585  def get_derivative(self, a0):
5586  r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5587  return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5588 
5589  def get_name(self):
5590  r"""get_name(LinearVelocity self) -> std::string"""
5591  return _IMP_atom.LinearVelocity_get_name(self)
5592 
5593  def clear_caches(self):
5594  r"""clear_caches(LinearVelocity self)"""
5595  return _IMP_atom.LinearVelocity_clear_caches(self)
5596 
5597  def set_name(self, a0):
5598  r"""set_name(LinearVelocity self, std::string a0)"""
5599  return _IMP_atom.LinearVelocity_set_name(self, a0)
5600 
5601  def set_check_level(self, a0):
5602  r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5603  return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5604 
5605  def add_to_derivative(self, a0, a1, a2):
5606  r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5607  return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5608 
5609  def set_is_optimized(self, a0, a1):
5610  r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5611  return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5612 
5613  def get_is_optimized(self, a0):
5614  r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5615  return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5616 
5617  def get_check_level(self):
5618  r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5619  return _IMP_atom.LinearVelocity_get_check_level(self)
5620 
5621  def __eq__(self, *args):
5622  r"""
5623  __eq__(LinearVelocity self, LinearVelocity o) -> bool
5624  __eq__(LinearVelocity self, Particle d) -> bool
5625  """
5626  return _IMP_atom.LinearVelocity___eq__(self, *args)
5627 
5628  def __ne__(self, *args):
5629  r"""
5630  __ne__(LinearVelocity self, LinearVelocity o) -> bool
5631  __ne__(LinearVelocity self, Particle d) -> bool
5632  """
5633  return _IMP_atom.LinearVelocity___ne__(self, *args)
5634 
5635  def __le__(self, *args):
5636  r"""
5637  __le__(LinearVelocity self, LinearVelocity o) -> bool
5638  __le__(LinearVelocity self, Particle d) -> bool
5639  """
5640  return _IMP_atom.LinearVelocity___le__(self, *args)
5641 
5642  def __lt__(self, *args):
5643  r"""
5644  __lt__(LinearVelocity self, LinearVelocity o) -> bool
5645  __lt__(LinearVelocity self, Particle d) -> bool
5646  """
5647  return _IMP_atom.LinearVelocity___lt__(self, *args)
5648 
5649  def __ge__(self, *args):
5650  r"""
5651  __ge__(LinearVelocity self, LinearVelocity o) -> bool
5652  __ge__(LinearVelocity self, Particle d) -> bool
5653  """
5654  return _IMP_atom.LinearVelocity___ge__(self, *args)
5655 
5656  def __gt__(self, *args):
5657  r"""
5658  __gt__(LinearVelocity self, LinearVelocity o) -> bool
5659  __gt__(LinearVelocity self, Particle d) -> bool
5660  """
5661  return _IMP_atom.LinearVelocity___gt__(self, *args)
5662 
5663  def __hash__(self):
5664  r"""__hash__(LinearVelocity self) -> std::size_t"""
5665  return _IMP_atom.LinearVelocity___hash__(self)
5666 
5667  def __str__(self):
5668  r"""__str__(LinearVelocity self) -> std::string"""
5669  return _IMP_atom.LinearVelocity___str__(self)
5670 
5671  def __repr__(self):
5672  r"""__repr__(LinearVelocity self) -> std::string"""
5673  return _IMP_atom.LinearVelocity___repr__(self)
5674 
5675  def _get_as_binary(self):
5676  r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5677  return _IMP_atom.LinearVelocity__get_as_binary(self)
5678 
5679  def _set_from_binary(self, p):
5680  r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5681  return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5682 
5683  def __getstate__(self):
5684  p = self._get_as_binary()
5685  if len(self.__dict__) > 1:
5686  d = self.__dict__.copy()
5687  del d['this']
5688  p = (d, p)
5689  return p
5690 
5691  def __setstate__(self, p):
5692  if not hasattr(self, 'this'):
5693  self.__init__()
5694  if isinstance(p, tuple):
5695  d, p = p
5696  self.__dict__.update(d)
5697  return self._set_from_binary(p)
5698 
5699  __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5700 
5701 # Register LinearVelocity in _IMP_atom:
5702 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5703 class AngularVelocity(IMP.Decorator):
5704  r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5705 
5706  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5707 
5708  def __init__(self, *args):
5709  r"""
5710  __init__(AngularVelocity self) -> AngularVelocity
5711  __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5712  __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5713  """
5714  _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5715 
5716  @staticmethod
5717  def get_is_setup(*args):
5718  r"""
5719  get_is_setup(Model m, ParticleIndex pi) -> bool
5720  get_is_setup(_ParticleAdaptor p) -> bool
5721  """
5722  return _IMP_atom.AngularVelocity_get_is_setup(*args)
5723 
5724  def show(self, *args):
5725  r"""show(AngularVelocity self, _ostream out=std::cout)"""
5726  return _IMP_atom.AngularVelocity_show(self, *args)
5727 
5728  @staticmethod
5729  def setup_particle(*args):
5730  r"""
5731  setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5732  setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5733  setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5734  setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5735  """
5736  return _IMP_atom.AngularVelocity_setup_particle(*args)
5737 
5738  def set_velocity(self, v):
5739  r"""set_velocity(AngularVelocity self, Vector4D v)"""
5740  return _IMP_atom.AngularVelocity_set_velocity(self, v)
5741 
5742  def get_velocity(self):
5743  r"""get_velocity(AngularVelocity self) -> Vector4D"""
5744  return _IMP_atom.AngularVelocity_get_velocity(self)
5745 
5746  def add_attribute(self, *args):
5747  r"""
5748  add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5749  add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5750  add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5751  add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5752  add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5753  add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5754  add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5755  add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5756  add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5757  add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5758  add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5759  add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5760  """
5761  return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5762 
5763  def get_value(self, *args):
5764  r"""
5765  get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5766  get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5767  get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5768  get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5769  get_value(AngularVelocity self, StringKey a0) -> IMP::String
5770  get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5771  get_value(AngularVelocity self, ObjectKey a0) -> Object
5772  get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5773  get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5774  get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5775  get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5776  """
5777  return _IMP_atom.AngularVelocity_get_value(self, *args)
5778 
5779  def set_value(self, *args):
5780  r"""
5781  set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5782  set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5783  set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5784  set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5785  set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5786  set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5787  set_value(AngularVelocity self, ObjectKey a0, Object a1)
5788  set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5789  set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5790  set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5791  set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5792  """
5793  return _IMP_atom.AngularVelocity_set_value(self, *args)
5794 
5795  def remove_attribute(self, *args):
5796  r"""
5797  remove_attribute(AngularVelocity self, FloatKey a0)
5798  remove_attribute(AngularVelocity self, IntKey a0)
5799  remove_attribute(AngularVelocity self, FloatsKey a0)
5800  remove_attribute(AngularVelocity self, IntsKey a0)
5801  remove_attribute(AngularVelocity self, StringKey a0)
5802  remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5803  remove_attribute(AngularVelocity self, ObjectKey a0)
5804  remove_attribute(AngularVelocity self, SparseFloatKey a0)
5805  remove_attribute(AngularVelocity self, SparseIntKey a0)
5806  remove_attribute(AngularVelocity self, SparseStringKey a0)
5807  remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5808  """
5809  return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5810 
5811  def has_attribute(self, *args):
5812  r"""
5813  has_attribute(AngularVelocity self, FloatKey a0) -> bool
5814  has_attribute(AngularVelocity self, IntKey a0) -> bool
5815  has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5816  has_attribute(AngularVelocity self, IntsKey a0) -> bool
5817  has_attribute(AngularVelocity self, StringKey a0) -> bool
5818  has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5819  has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5820  has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5821  has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5822  has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5823  has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5824  """
5825  return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5826 
5827  def get_derivative(self, a0):
5828  r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5829  return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5830 
5831  def get_name(self):
5832  r"""get_name(AngularVelocity self) -> std::string"""
5833  return _IMP_atom.AngularVelocity_get_name(self)
5834 
5835  def clear_caches(self):
5836  r"""clear_caches(AngularVelocity self)"""
5837  return _IMP_atom.AngularVelocity_clear_caches(self)
5838 
5839  def set_name(self, a0):
5840  r"""set_name(AngularVelocity self, std::string a0)"""
5841  return _IMP_atom.AngularVelocity_set_name(self, a0)
5842 
5843  def set_check_level(self, a0):
5844  r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5845  return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5846 
5847  def add_to_derivative(self, a0, a1, a2):
5848  r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5849  return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5850 
5851  def set_is_optimized(self, a0, a1):
5852  r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5853  return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5854 
5855  def get_is_optimized(self, a0):
5856  r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5857  return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5858 
5859  def get_check_level(self):
5860  r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5861  return _IMP_atom.AngularVelocity_get_check_level(self)
5862 
5863  def __eq__(self, *args):
5864  r"""
5865  __eq__(AngularVelocity self, AngularVelocity o) -> bool
5866  __eq__(AngularVelocity self, Particle d) -> bool
5867  """
5868  return _IMP_atom.AngularVelocity___eq__(self, *args)
5869 
5870  def __ne__(self, *args):
5871  r"""
5872  __ne__(AngularVelocity self, AngularVelocity o) -> bool
5873  __ne__(AngularVelocity self, Particle d) -> bool
5874  """
5875  return _IMP_atom.AngularVelocity___ne__(self, *args)
5876 
5877  def __le__(self, *args):
5878  r"""
5879  __le__(AngularVelocity self, AngularVelocity o) -> bool
5880  __le__(AngularVelocity self, Particle d) -> bool
5881  """
5882  return _IMP_atom.AngularVelocity___le__(self, *args)
5883 
5884  def __lt__(self, *args):
5885  r"""
5886  __lt__(AngularVelocity self, AngularVelocity o) -> bool
5887  __lt__(AngularVelocity self, Particle d) -> bool
5888  """
5889  return _IMP_atom.AngularVelocity___lt__(self, *args)
5890 
5891  def __ge__(self, *args):
5892  r"""
5893  __ge__(AngularVelocity self, AngularVelocity o) -> bool
5894  __ge__(AngularVelocity self, Particle d) -> bool
5895  """
5896  return _IMP_atom.AngularVelocity___ge__(self, *args)
5897 
5898  def __gt__(self, *args):
5899  r"""
5900  __gt__(AngularVelocity self, AngularVelocity o) -> bool
5901  __gt__(AngularVelocity self, Particle d) -> bool
5902  """
5903  return _IMP_atom.AngularVelocity___gt__(self, *args)
5904 
5905  def __hash__(self):
5906  r"""__hash__(AngularVelocity self) -> std::size_t"""
5907  return _IMP_atom.AngularVelocity___hash__(self)
5908 
5909  def __str__(self):
5910  r"""__str__(AngularVelocity self) -> std::string"""
5911  return _IMP_atom.AngularVelocity___str__(self)
5912 
5913  def __repr__(self):
5914  r"""__repr__(AngularVelocity self) -> std::string"""
5915  return _IMP_atom.AngularVelocity___repr__(self)
5916 
5917  def _get_as_binary(self):
5918  r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5919  return _IMP_atom.AngularVelocity__get_as_binary(self)
5920 
5921  def _set_from_binary(self, p):
5922  r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5923  return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5924 
5925  def __getstate__(self):
5926  p = self._get_as_binary()
5927  if len(self.__dict__) > 1:
5928  d = self.__dict__.copy()
5929  del d['this']
5930  p = (d, p)
5931  return p
5932 
5933  def __setstate__(self, p):
5934  if not hasattr(self, 'this'):
5935  self.__init__()
5936  if isinstance(p, tuple):
5937  d, p = p
5938  self.__dict__.update(d)
5939  return self._set_from_binary(p)
5940 
5941  __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5942 
5943 # Register AngularVelocity in _IMP_atom:
5944 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5945 class MolecularDynamics(Simulator):
5946  r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5947 
5948  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5949 
5950  def __init__(self, *args):
5951  r"""
5952  __init__(MolecularDynamics self, Model m) -> MolecularDynamics
5953  __init__(MolecularDynamics self) -> MolecularDynamics
5954  """
5955  _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(*args))
5956 
5957  def get_kinetic_energy(self):
5958  r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5959  return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5960 
5961  def get_kinetic_temperature(self, ekinetic):
5962  r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5963  return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5964 
5965  def set_velocity_cap(self, velocity_cap):
5966  r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5967  return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5968 
5969  def get_velocity_cap(self):
5970  r"""get_velocity_cap(MolecularDynamics self) -> IMP::Float"""
5971  return _IMP_atom.MolecularDynamics_get_velocity_cap(self)
5972 
5973  def get_degrees_of_freedom(self):
5974  r"""get_degrees_of_freedom(MolecularDynamics self) -> int"""
5975  return _IMP_atom.MolecularDynamics_get_degrees_of_freedom(self)
5976 
5977  def assign_velocities(self, temperature):
5978  r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5979  return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5980 
5981  def setup(self, ps):
5982  r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5983  return _IMP_atom.MolecularDynamics_setup(self, ps)
5984 
5985  def do_step(self, sc, dt):
5986  r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5987  return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5988 
5989  def get_is_simulation_particle(self, p):
5990  r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5991  return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5992 
5993  def get_version_info(self):
5994  r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5995  return _IMP_atom.MolecularDynamics_get_version_info(self)
5996  __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5997 
5998  def __str__(self):
5999  r"""__str__(MolecularDynamics self) -> std::string"""
6000  return _IMP_atom.MolecularDynamics___str__(self)
6001 
6002  def __repr__(self):
6003  r"""__repr__(MolecularDynamics self) -> std::string"""
6004  return _IMP_atom.MolecularDynamics___repr__(self)
6005 
6006  @staticmethod
6007  def get_from(o):
6008  return _object_cast_to_MolecularDynamics(o)
6009 
6010 
6011  def _get_as_binary(self):
6012  r"""_get_as_binary(MolecularDynamics self) -> PyObject *"""
6013  return _IMP_atom.MolecularDynamics__get_as_binary(self)
6014 
6015  def _set_from_binary(self, p):
6016  r"""_set_from_binary(MolecularDynamics self, PyObject * p)"""
6017  return _IMP_atom.MolecularDynamics__set_from_binary(self, p)
6018 
6019  def __getstate__(self):
6020  p = self._get_as_binary()
6021  if len(self.__dict__) > 1:
6022  d = self.__dict__.copy()
6023  del d['this']
6024  p = (d, p)
6025  return p
6026 
6027  def __setstate__(self, p):
6028  if not hasattr(self, 'this'):
6029  self.__init__()
6030  if isinstance(p, tuple):
6031  d, p = p
6032  self.__dict__.update(d)
6033  return self._set_from_binary(p)
6034 
6035 
6036  def _get_jax(self, space=None):
6037  from IMP.atom._jax_util import _MDJAXInfo
6038  return _MDJAXInfo(self, space)
6039 
6040  def _get_jax_optimizer(self, max_steps, space=None):
6041  import IMP.atom._jax_util
6042  return IMP.atom._jax_util._MDJAXOptimizer(self, max_steps, space)
6043 
6044  def _optimize_jax(self, max_steps, space=None):
6045  opt = self._get_jax_optimizer(max_steps, space=space)
6046  score, md_state = opt.optimize(opt.get_initial_state())
6047  return score
6048 
6049 
6050 # Register MolecularDynamics in _IMP_atom:
6051 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
6052 class VelocityScalingOptimizerState(IMP.OptimizerState):
6053  r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
6054 
6055  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6056 
6057  def __init__(self, m, pis, temperature):
6058  r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
6059  _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
6060 
6061  def set_particles(self, pis):
6062  r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
6063  return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
6064 
6065  def set_temperature(self, temperature):
6066  r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
6067  return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
6068 
6069  def get_particles(self):
6070  r"""get_particles(VelocityScalingOptimizerState self) -> IMP::Particles"""
6071  return _IMP_atom.VelocityScalingOptimizerState_get_particles(self)
6072 
6073  def get_temperature(self):
6074  r"""get_temperature(VelocityScalingOptimizerState self) -> IMP::Float"""
6075  return _IMP_atom.VelocityScalingOptimizerState_get_temperature(self)
6076 
6077  def rescale_velocities(self):
6078  r"""rescale_velocities(VelocityScalingOptimizerState self)"""
6079  return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
6080 
6081  def get_version_info(self):
6082  r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
6083  return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
6084  __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
6085 
6086  def __str__(self):
6087  r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
6088  return _IMP_atom.VelocityScalingOptimizerState___str__(self)
6089 
6090  def __repr__(self):
6091  r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
6092  return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
6093 
6094  @staticmethod
6095  def get_from(o):
6096  return _object_cast_to_VelocityScalingOptimizerState(o)
6097 
6098 
6099  def _get_jax(self, state_index):
6100  import jax
6101  import jax.numpy as jnp
6102  temperature = self.get_temperature()
6103  indexes = jnp.asarray(IMP.get_indexes(self.get_particles()))
6104 
6105  def scale_velocities(linvel, tkinetic):
6106  scale = jnp.sqrt(temperature / tkinetic)
6107  return jnp.where(tkinetic > 1e-8,
6108  linvel.at[indexes].multiply(scale), linvel)
6109 
6110  def apply_func(md):
6111  ekinetic = md.get_kinetic_energy()
6112  tkinetic = md.get_kinetic_temperature(ekinetic)
6113  scale = scale_velocities
6114  # If we have multiple attribute sets, vmap our scale function
6115  # to apply to all of them
6116  if hasattr(tkinetic, 'ndim') and tkinetic.ndim >= 1:
6117  scale = jax.vmap(scale_velocities, in_axes=0)
6118  md.jm['linvel'] = scale(md.jm['linvel'], tkinetic)
6119  return md
6120 
6121  return self._wrap_jax(lambda x: x, apply_func)
6122 
6123 
6124 # Register VelocityScalingOptimizerState in _IMP_atom:
6125 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
6126 class Fragment(Hierarchy):
6127  r"""Proxy of C++ IMP::atom::Fragment class."""
6128 
6129  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6130 
6131  def set_residue_indexes(self, o):
6132  r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
6133  return _IMP_atom.Fragment_set_residue_indexes(self, o)
6134 
6135  def get_residue_indexes(self):
6136  r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
6137  return _IMP_atom.Fragment_get_residue_indexes(self)
6138 
6139  def get_contains_residue(self, rindex):
6140  r"""get_contains_residue(Fragment self, int rindex) -> bool"""
6141  return _IMP_atom.Fragment_get_contains_residue(self, rindex)
6142 
6143  def get_contains_any_sorted_residue(self, rinds):
6144  r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
6145  return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
6146 
6147  def __init__(self, *args):
6148  r"""
6149  __init__(Fragment self) -> Fragment
6150  __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
6151  __init__(Fragment self, _ParticleAdaptor d) -> Fragment
6152  """
6153  _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
6154 
6155  @staticmethod
6156  def get_is_setup(*args):
6157  r"""
6158  get_is_setup(Model m, ParticleIndex pi) -> bool
6159  get_is_setup(_ParticleAdaptor p) -> bool
6160  """
6161  return _IMP_atom.Fragment_get_is_setup(*args)
6162 
6163  def show(self, *args):
6164  r"""show(Fragment self, _ostream out=std::cout)"""
6165  return _IMP_atom.Fragment_show(self, *args)
6166 
6167  @staticmethod
6168  def setup_particle(*args):
6169  r"""
6170  setup_particle(Model m, ParticleIndex pi) -> Fragment
6171  setup_particle(_ParticleAdaptor pa) -> Fragment
6172  setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
6173  setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
6174  setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
6175  setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
6176  """
6177  return _IMP_atom.Fragment_setup_particle(*args)
6178 
6179  def add_attribute(self, *args):
6180  r"""
6181  add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
6182  add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
6183  add_attribute(Fragment self, IntKey a0, IMP::Int a1)
6184  add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
6185  add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
6186  add_attribute(Fragment self, StringKey a0, IMP::String a1)
6187  add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
6188  add_attribute(Fragment self, ObjectKey a0, Object a1)
6189  add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
6190  add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
6191  add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
6192  add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6193  """
6194  return _IMP_atom.Fragment_add_attribute(self, *args)
6195 
6196  def get_value(self, *args):
6197  r"""
6198  get_value(Fragment self, FloatKey a0) -> IMP::Float
6199  get_value(Fragment self, IntKey a0) -> IMP::Int
6200  get_value(Fragment self, FloatsKey a0) -> IMP::Floats
6201  get_value(Fragment self, IntsKey a0) -> IMP::Ints
6202  get_value(Fragment self, StringKey a0) -> IMP::String
6203  get_value(Fragment self, ParticleIndexKey a0) -> Particle
6204  get_value(Fragment self, ObjectKey a0) -> Object
6205  get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
6206  get_value(Fragment self, SparseIntKey a0) -> IMP::Int
6207  get_value(Fragment self, SparseStringKey a0) -> IMP::String
6208  get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
6209  """
6210  return _IMP_atom.Fragment_get_value(self, *args)
6211 
6212  def set_value(self, *args):
6213  r"""
6214  set_value(Fragment self, FloatKey a0, IMP::Float a1)
6215  set_value(Fragment self, IntKey a0, IMP::Int a1)
6216  set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
6217  set_value(Fragment self, IntsKey a0, IMP::Ints a1)
6218  set_value(Fragment self, StringKey a0, IMP::String a1)
6219  set_value(Fragment self, ParticleIndexKey a0, Particle a1)
6220  set_value(Fragment self, ObjectKey a0, Object a1)
6221  set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
6222  set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
6223  set_value(Fragment self, SparseStringKey a0, IMP::String a1)
6224  set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
6225  """
6226  return _IMP_atom.Fragment_set_value(self, *args)
6227 
6228  def remove_attribute(self, *args):
6229  r"""
6230  remove_attribute(Fragment self, FloatKey a0)
6231  remove_attribute(Fragment self, IntKey a0)
6232  remove_attribute(Fragment self, FloatsKey a0)
6233  remove_attribute(Fragment self, IntsKey a0)
6234  remove_attribute(Fragment self, StringKey a0)
6235  remove_attribute(Fragment self, ParticleIndexKey a0)
6236  remove_attribute(Fragment self, ObjectKey a0)
6237  remove_attribute(Fragment self, SparseFloatKey a0)
6238  remove_attribute(Fragment self, SparseIntKey a0)
6239  remove_attribute(Fragment self, SparseStringKey a0)
6240  remove_attribute(Fragment self, SparseParticleIndexKey a0)
6241  """
6242  return _IMP_atom.Fragment_remove_attribute(self, *args)
6243 
6244  def has_attribute(self, *args):
6245  r"""
6246  has_attribute(Fragment self, FloatKey a0) -> bool
6247  has_attribute(Fragment self, IntKey a0) -> bool
6248  has_attribute(Fragment self, FloatsKey a0) -> bool
6249  has_attribute(Fragment self, IntsKey a0) -> bool
6250  has_attribute(Fragment self, StringKey a0) -> bool
6251  has_attribute(Fragment self, ParticleIndexKey a0) -> bool
6252  has_attribute(Fragment self, ObjectKey a0) -> bool
6253  has_attribute(Fragment self, SparseFloatKey a0) -> bool
6254  has_attribute(Fragment self, SparseIntKey a0) -> bool
6255  has_attribute(Fragment self, SparseStringKey a0) -> bool
6256  has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
6257  """
6258  return _IMP_atom.Fragment_has_attribute(self, *args)
6259 
6260  def get_derivative(self, a0):
6261  r"""get_derivative(Fragment self, FloatKey a0) -> double"""
6262  return _IMP_atom.Fragment_get_derivative(self, a0)
6263 
6264  def get_name(self):
6265  r"""get_name(Fragment self) -> std::string"""
6266  return _IMP_atom.Fragment_get_name(self)
6267 
6268  def clear_caches(self):
6269  r"""clear_caches(Fragment self)"""
6270  return _IMP_atom.Fragment_clear_caches(self)
6271 
6272  def set_name(self, a0):
6273  r"""set_name(Fragment self, std::string a0)"""
6274  return _IMP_atom.Fragment_set_name(self, a0)
6275 
6276  def set_check_level(self, a0):
6277  r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
6278  return _IMP_atom.Fragment_set_check_level(self, a0)
6279 
6280  def add_to_derivative(self, a0, a1, a2):
6281  r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6282  return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
6283 
6284  def set_is_optimized(self, a0, a1):
6285  r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
6286  return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
6287 
6288  def get_is_optimized(self, a0):
6289  r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
6290  return _IMP_atom.Fragment_get_is_optimized(self, a0)
6291 
6292  def get_check_level(self):
6293  r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
6294  return _IMP_atom.Fragment_get_check_level(self)
6295 
6296  def __eq__(self, *args):
6297  r"""
6298  __eq__(Fragment self, Fragment o) -> bool
6299  __eq__(Fragment self, Particle d) -> bool
6300  """
6301  return _IMP_atom.Fragment___eq__(self, *args)
6302 
6303  def __ne__(self, *args):
6304  r"""
6305  __ne__(Fragment self, Fragment o) -> bool
6306  __ne__(Fragment self, Particle d) -> bool
6307  """
6308  return _IMP_atom.Fragment___ne__(self, *args)
6309 
6310  def __le__(self, *args):
6311  r"""
6312  __le__(Fragment self, Fragment o) -> bool
6313  __le__(Fragment self, Particle d) -> bool
6314  """
6315  return _IMP_atom.Fragment___le__(self, *args)
6316 
6317  def __lt__(self, *args):
6318  r"""
6319  __lt__(Fragment self, Fragment o) -> bool
6320  __lt__(Fragment self, Particle d) -> bool
6321  """
6322  return _IMP_atom.Fragment___lt__(self, *args)
6323 
6324  def __ge__(self, *args):
6325  r"""
6326  __ge__(Fragment self, Fragment o) -> bool
6327  __ge__(Fragment self, Particle d) -> bool
6328  """
6329  return _IMP_atom.Fragment___ge__(self, *args)
6330 
6331  def __gt__(self, *args):
6332  r"""
6333  __gt__(Fragment self, Fragment o) -> bool
6334  __gt__(Fragment self, Particle d) -> bool
6335  """
6336  return _IMP_atom.Fragment___gt__(self, *args)
6337 
6338  def __hash__(self):
6339  r"""__hash__(Fragment self) -> std::size_t"""
6340  return _IMP_atom.Fragment___hash__(self)
6341 
6342  def __str__(self):
6343  r"""__str__(Fragment self) -> std::string"""
6344  return _IMP_atom.Fragment___str__(self)
6345 
6346  def __repr__(self):
6347  r"""__repr__(Fragment self) -> std::string"""
6348  return _IMP_atom.Fragment___repr__(self)
6349 
6350  def _get_as_binary(self):
6351  r"""_get_as_binary(Fragment self) -> PyObject *"""
6352  return _IMP_atom.Fragment__get_as_binary(self)
6353 
6354  def _set_from_binary(self, p):
6355  r"""_set_from_binary(Fragment self, PyObject * p)"""
6356  return _IMP_atom.Fragment__set_from_binary(self, p)
6357 
6358  def __getstate__(self):
6359  p = self._get_as_binary()
6360  if len(self.__dict__) > 1:
6361  d = self.__dict__.copy()
6362  del d['this']
6363  p = (d, p)
6364  return p
6365 
6366  def __setstate__(self, p):
6367  if not hasattr(self, 'this'):
6368  self.__init__()
6369  if isinstance(p, tuple):
6370  d, p = p
6371  self.__dict__.update(d)
6372  return self._set_from_binary(p)
6373 
6374  __swig_destroy__ = _IMP_atom.delete_Fragment
6375 
6376 # Register Fragment in _IMP_atom:
6377 _IMP_atom.Fragment_swigregister(Fragment)
6378 class StereochemistryPairFilter(IMP.PairPredicate):
6379  r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6380 
6381  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6382 
6383  def __init__(self):
6384  r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6385  _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6386 
6387  def set_bonds(self, bonds):
6388  r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6389  return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6390 
6391  def set_angles(self, angles):
6392  r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6393  return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6394 
6395  def set_dihedrals(self, dihedrals):
6396  r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6397  return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6398 
6399  def do_get_inputs(self, m, pis):
6400  r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6401  return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6402 
6403  def get_value(self, *args):
6404  r"""
6405  get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6406  get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6407  """
6408  return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6409 
6410  def get_value_index(self, *args):
6411  r"""
6412  get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6413  get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6414  """
6415  return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6416 
6417  def get_version_info(self):
6418  r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6419  return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6420  __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6421 
6422  def __str__(self):
6423  r"""__str__(StereochemistryPairFilter self) -> std::string"""
6424  return _IMP_atom.StereochemistryPairFilter___str__(self)
6425 
6426  def __repr__(self):
6427  r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6428  return _IMP_atom.StereochemistryPairFilter___repr__(self)
6429 
6430  @staticmethod
6431  def get_from(o):
6432  return _object_cast_to_StereochemistryPairFilter(o)
6433 
6434 
6435 # Register StereochemistryPairFilter in _IMP_atom:
6436 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6437 class SoapPairFilter(IMP.PairPredicate):
6438  r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6439 
6440  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6441 
6442  def __init__(self, library):
6443  r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6444  _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6445 
6446  def do_get_inputs(self, m, pis):
6447  r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6448  return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6449 
6450  def get_value(self, *args):
6451  r"""
6452  get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6453  get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6454  """
6455  return _IMP_atom.SoapPairFilter_get_value(self, *args)
6456 
6457  def get_value_index(self, *args):
6458  r"""
6459  get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6460  get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6461  """
6462  return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6463 
6464  def get_version_info(self):
6465  r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6466  return _IMP_atom.SoapPairFilter_get_version_info(self)
6467  __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6468 
6469  def __str__(self):
6470  r"""__str__(SoapPairFilter self) -> std::string"""
6471  return _IMP_atom.SoapPairFilter___str__(self)
6472 
6473  def __repr__(self):
6474  r"""__repr__(SoapPairFilter self) -> std::string"""
6475  return _IMP_atom.SoapPairFilter___repr__(self)
6476 
6477  @staticmethod
6478  def get_from(o):
6479  return _object_cast_to_SoapPairFilter(o)
6480 
6481 
6482 # Register SoapPairFilter in _IMP_atom:
6483 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6484 class Mass(IMP.Decorator):
6485  r"""Proxy of C++ IMP::atom::Mass class."""
6486 
6487  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6488 
6489  def get_mass(self):
6490  r"""get_mass(Mass self) -> IMP::Float"""
6491  return _IMP_atom.Mass_get_mass(self)
6492 
6493  def set_mass(self, d):
6494  r"""set_mass(Mass self, IMP::Float d)"""
6495  return _IMP_atom.Mass_set_mass(self, d)
6496 
6497  def __init__(self, *args):
6498  r"""
6499  __init__(Mass self) -> Mass
6500  __init__(Mass self, Model m, ParticleIndex id) -> Mass
6501  __init__(Mass self, _ParticleAdaptor d) -> Mass
6502  """
6503  _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6504 
6505  @staticmethod
6506  def get_is_setup(*args):
6507  r"""
6508  get_is_setup(Model m, ParticleIndex pi) -> bool
6509  get_is_setup(_ParticleAdaptor p) -> bool
6510  """
6511  return _IMP_atom.Mass_get_is_setup(*args)
6512 
6513  def show(self, *args):
6514  r"""show(Mass self, _ostream out=std::cout)"""
6515  return _IMP_atom.Mass_show(self, *args)
6516 
6517  @staticmethod
6518  def setup_particle(*args):
6519  r"""
6520  setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6521  setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6522  setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6523  setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6524  """
6525  return _IMP_atom.Mass_setup_particle(*args)
6526 
6527  @staticmethod
6528  def get_mass_key():
6529  r"""get_mass_key() -> FloatKey"""
6530  return _IMP_atom.Mass_get_mass_key()
6531 
6532  def add_attribute(self, *args):
6533  r"""
6534  add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6535  add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6536  add_attribute(Mass self, IntKey a0, IMP::Int a1)
6537  add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6538  add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6539  add_attribute(Mass self, StringKey a0, IMP::String a1)
6540  add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6541  add_attribute(Mass self, ObjectKey a0, Object a1)
6542  add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6543  add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6544  add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6545  add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6546  """
6547  return _IMP_atom.Mass_add_attribute(self, *args)
6548 
6549  def get_value(self, *args):
6550  r"""
6551  get_value(Mass self, FloatKey a0) -> IMP::Float
6552  get_value(Mass self, IntKey a0) -> IMP::Int
6553  get_value(Mass self, FloatsKey a0) -> IMP::Floats
6554  get_value(Mass self, IntsKey a0) -> IMP::Ints
6555  get_value(Mass self, StringKey a0) -> IMP::String
6556  get_value(Mass self, ParticleIndexKey a0) -> Particle
6557  get_value(Mass self, ObjectKey a0) -> Object
6558  get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6559  get_value(Mass self, SparseIntKey a0) -> IMP::Int
6560  get_value(Mass self, SparseStringKey a0) -> IMP::String
6561  get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6562  """
6563  return _IMP_atom.Mass_get_value(self, *args)
6564 
6565  def set_value(self, *args):
6566  r"""
6567  set_value(Mass self, FloatKey a0, IMP::Float a1)
6568  set_value(Mass self, IntKey a0, IMP::Int a1)
6569  set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6570  set_value(Mass self, IntsKey a0, IMP::Ints a1)
6571  set_value(Mass self, StringKey a0, IMP::String a1)
6572  set_value(Mass self, ParticleIndexKey a0, Particle a1)
6573  set_value(Mass self, ObjectKey a0, Object a1)
6574  set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6575  set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6576  set_value(Mass self, SparseStringKey a0, IMP::String a1)
6577  set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6578  """
6579  return _IMP_atom.Mass_set_value(self, *args)
6580 
6581  def remove_attribute(self, *args):
6582  r"""
6583  remove_attribute(Mass self, FloatKey a0)
6584  remove_attribute(Mass self, IntKey a0)
6585  remove_attribute(Mass self, FloatsKey a0)
6586  remove_attribute(Mass self, IntsKey a0)
6587  remove_attribute(Mass self, StringKey a0)
6588  remove_attribute(Mass self, ParticleIndexKey a0)
6589  remove_attribute(Mass self, ObjectKey a0)
6590  remove_attribute(Mass self, SparseFloatKey a0)
6591  remove_attribute(Mass self, SparseIntKey a0)
6592  remove_attribute(Mass self, SparseStringKey a0)
6593  remove_attribute(Mass self, SparseParticleIndexKey a0)
6594  """
6595  return _IMP_atom.Mass_remove_attribute(self, *args)
6596 
6597  def has_attribute(self, *args):
6598  r"""
6599  has_attribute(Mass self, FloatKey a0) -> bool
6600  has_attribute(Mass self, IntKey a0) -> bool
6601  has_attribute(Mass self, FloatsKey a0) -> bool
6602  has_attribute(Mass self, IntsKey a0) -> bool
6603  has_attribute(Mass self, StringKey a0) -> bool
6604  has_attribute(Mass self, ParticleIndexKey a0) -> bool
6605  has_attribute(Mass self, ObjectKey a0) -> bool
6606  has_attribute(Mass self, SparseFloatKey a0) -> bool
6607  has_attribute(Mass self, SparseIntKey a0) -> bool
6608  has_attribute(Mass self, SparseStringKey a0) -> bool
6609  has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6610  """
6611  return _IMP_atom.Mass_has_attribute(self, *args)
6612 
6613  def get_derivative(self, a0):
6614  r"""get_derivative(Mass self, FloatKey a0) -> double"""
6615  return _IMP_atom.Mass_get_derivative(self, a0)
6616 
6617  def get_name(self):
6618  r"""get_name(Mass self) -> std::string"""
6619  return _IMP_atom.Mass_get_name(self)
6620 
6621  def clear_caches(self):
6622  r"""clear_caches(Mass self)"""
6623  return _IMP_atom.Mass_clear_caches(self)
6624 
6625  def set_name(self, a0):
6626  r"""set_name(Mass self, std::string a0)"""
6627  return _IMP_atom.Mass_set_name(self, a0)
6628 
6629  def set_check_level(self, a0):
6630  r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6631  return _IMP_atom.Mass_set_check_level(self, a0)
6632 
6633  def add_to_derivative(self, a0, a1, a2):
6634  r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6635  return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6636 
6637  def set_is_optimized(self, a0, a1):
6638  r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6639  return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6640 
6641  def get_is_optimized(self, a0):
6642  r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6643  return _IMP_atom.Mass_get_is_optimized(self, a0)
6644 
6645  def get_check_level(self):
6646  r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6647  return _IMP_atom.Mass_get_check_level(self)
6648 
6649  def __eq__(self, *args):
6650  r"""
6651  __eq__(Mass self, Mass o) -> bool
6652  __eq__(Mass self, Particle d) -> bool
6653  """
6654  return _IMP_atom.Mass___eq__(self, *args)
6655 
6656  def __ne__(self, *args):
6657  r"""
6658  __ne__(Mass self, Mass o) -> bool
6659  __ne__(Mass self, Particle d) -> bool
6660  """
6661  return _IMP_atom.Mass___ne__(self, *args)
6662 
6663  def __le__(self, *args):
6664  r"""
6665  __le__(Mass self, Mass o) -> bool
6666  __le__(Mass self, Particle d) -> bool
6667  """
6668  return _IMP_atom.Mass___le__(self, *args)
6669 
6670  def __lt__(self, *args):
6671  r"""
6672  __lt__(Mass self, Mass o) -> bool
6673  __lt__(Mass self, Particle d) -> bool
6674  """
6675  return _IMP_atom.Mass___lt__(self, *args)
6676 
6677  def __ge__(self, *args):
6678  r"""
6679  __ge__(Mass self, Mass o) -> bool
6680  __ge__(Mass self, Particle d) -> bool
6681  """
6682  return _IMP_atom.Mass___ge__(self, *args)
6683 
6684  def __gt__(self, *args):
6685  r"""
6686  __gt__(Mass self, Mass o) -> bool
6687  __gt__(Mass self, Particle d) -> bool
6688  """
6689  return _IMP_atom.Mass___gt__(self, *args)
6690 
6691  def __hash__(self):
6692  r"""__hash__(Mass self) -> std::size_t"""
6693  return _IMP_atom.Mass___hash__(self)
6694 
6695  def __str__(self):
6696  r"""__str__(Mass self) -> std::string"""
6697  return _IMP_atom.Mass___str__(self)
6698 
6699  def __repr__(self):
6700  r"""__repr__(Mass self) -> std::string"""
6701  return _IMP_atom.Mass___repr__(self)
6702 
6703  def _get_as_binary(self):
6704  r"""_get_as_binary(Mass self) -> PyObject *"""
6705  return _IMP_atom.Mass__get_as_binary(self)
6706 
6707  def _set_from_binary(self, p):
6708  r"""_set_from_binary(Mass self, PyObject * p)"""
6709  return _IMP_atom.Mass__set_from_binary(self, p)
6710 
6711  def __getstate__(self):
6712  p = self._get_as_binary()
6713  if len(self.__dict__) > 1:
6714  d = self.__dict__.copy()
6715  del d['this']
6716  p = (d, p)
6717  return p
6718 
6719  def __setstate__(self, p):
6720  if not hasattr(self, 'this'):
6721  self.__init__()
6722  if isinstance(p, tuple):
6723  d, p = p
6724  self.__dict__.update(d)
6725  return self._set_from_binary(p)
6726 
6727  __swig_destroy__ = _IMP_atom.delete_Mass
6728 
6729 # Register Mass in _IMP_atom:
6730 _IMP_atom.Mass_swigregister(Mass)
6731 class BondedPairFilter(IMP.PairPredicate):
6732  r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6733 
6734  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6735 
6736  def __init__(self):
6737  r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6738  _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6739 
6740  def do_get_inputs(self, m, pis):
6741  r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6742  return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6743 
6744  def get_value(self, *args):
6745  r"""
6746  get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6747  get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6748  """
6749  return _IMP_atom.BondedPairFilter_get_value(self, *args)
6750 
6751  def get_value_index(self, *args):
6752  r"""
6753  get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6754  get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6755  """
6756  return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6757 
6758  def get_version_info(self):
6759  r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6760  return _IMP_atom.BondedPairFilter_get_version_info(self)
6761  __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6762 
6763  def __str__(self):
6764  r"""__str__(BondedPairFilter self) -> std::string"""
6765  return _IMP_atom.BondedPairFilter___str__(self)
6766 
6767  def __repr__(self):
6768  r"""__repr__(BondedPairFilter self) -> std::string"""
6769  return _IMP_atom.BondedPairFilter___repr__(self)
6770 
6771  @staticmethod
6772  def get_from(o):
6773  return _object_cast_to_BondedPairFilter(o)
6774 
6775 
6776 # Register BondedPairFilter in _IMP_atom:
6777 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6778 class Mol2Selector(IMP.Object):
6779  r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6780 
6781  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6782 
6783  def __init__(self, *args, **kwargs):
6784  raise AttributeError("No constructor defined - class is abstract")
6785 
6786  def get_is_selected(self, atom_line):
6787  r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6788  return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6789  __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6790 
6791  def __str__(self):
6792  r"""__str__(Mol2Selector self) -> std::string"""
6793  return _IMP_atom.Mol2Selector___str__(self)
6794 
6795  def __repr__(self):
6796  r"""__repr__(Mol2Selector self) -> std::string"""
6797  return _IMP_atom.Mol2Selector___repr__(self)
6798 
6799  @staticmethod
6800  def get_from(o):
6801  return _object_cast_to_Mol2Selector(o)
6802 
6803 
6804 # Register Mol2Selector in _IMP_atom:
6805 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6806 class AllMol2Selector(Mol2Selector):
6807  r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6808 
6809  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6810 
6811  def __str__(self):
6812  r"""__str__(AllMol2Selector self) -> std::string"""
6813  return _IMP_atom.AllMol2Selector___str__(self)
6814 
6815  def __repr__(self):
6816  r"""__repr__(AllMol2Selector self) -> std::string"""
6817  return _IMP_atom.AllMol2Selector___repr__(self)
6818 
6819  @staticmethod
6820  def get_from(o):
6821  return _object_cast_to_AllMol2Selector(o)
6822 
6823 
6824  def __init__(self):
6825  r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6826  _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6827  __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6828 
6829 # Register AllMol2Selector in _IMP_atom:
6830 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6831 class NonHydrogenMol2Selector(Mol2Selector):
6832  r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6833 
6834  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6835 
6836  def __str__(self):
6837  r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6838  return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6839 
6840  def __repr__(self):
6841  r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6842  return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6843 
6844  @staticmethod
6845  def get_from(o):
6846  return _object_cast_to_NonHydrogenMol2Selector(o)
6847 
6848 
6849  def __init__(self):
6850  r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6851  _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6852  __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6853 
6854 # Register NonHydrogenMol2Selector in _IMP_atom:
6855 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6856 
6857 def read_mol2(mol2_file, model, mol2sel=None):
6858  r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6859  return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6860 
6861 def write_mol2(rhd, file_name):
6862  r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6863  return _IMP_atom.write_mol2(rhd, file_name)
6864 class SecondaryStructureResidue(IMP.Decorator):
6865  r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6866 
6867  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6868 
6869  def __init__(self, *args):
6870  r"""
6871  __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6872  __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6873  __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6874  """
6875  _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6876 
6877  def show(self, *args):
6878  r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6879  return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6880 
6881  @staticmethod
6882  def setup_particle(*args):
6883  r"""
6884  setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6885  setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6886  setup_particle(Particle res_p) -> SecondaryStructureResidue
6887  """
6888  return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6889 
6890  @staticmethod
6891  def get_is_setup(*args):
6892  r"""
6893  get_is_setup(_ParticleAdaptor p) -> bool
6894  get_is_setup(Model m, ParticleIndex pi) -> bool
6895  """
6896  return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6897 
6898  def get_particle(self):
6899  r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6900  return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6901 
6902  def get_all_probabilities(self):
6903  r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6904  return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6905 
6906  def get_prob_helix(self):
6907  r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6908  return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6909 
6910  def set_prob_helix(self, t):
6911  r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6912  return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6913 
6914  def get_prob_strand(self):
6915  r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6916  return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6917 
6918  def set_prob_strand(self, t):
6919  r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6920  return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6921 
6922  def get_prob_coil(self):
6923  r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6924  return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6925 
6926  def set_prob_coil(self, t):
6927  r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6928  return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6929 
6930  @staticmethod
6931  def get_prob_helix_key():
6932  r"""get_prob_helix_key() -> FloatKey"""
6933  return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6934 
6935  @staticmethod
6936  def get_prob_strand_key():
6937  r"""get_prob_strand_key() -> FloatKey"""
6938  return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6939 
6940  @staticmethod
6941  def get_prob_coil_key():
6942  r"""get_prob_coil_key() -> FloatKey"""
6943  return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6944 
6945  def add_attribute(self, *args):
6946  r"""
6947  add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6948  add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6949  add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6950  add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6951  add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6952  add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6953  add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6954  add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6955  add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6956  add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6957  add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6958  add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6959  """
6960  return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6961 
6962  def get_value(self, *args):
6963  r"""
6964  get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6965  get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6966  get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6967  get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6968  get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6969  get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6970  get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6971  get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6972  get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6973  get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6974  get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6975  """
6976  return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6977 
6978  def set_value(self, *args):
6979  r"""
6980  set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6981  set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6982  set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6983  set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6984  set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6985  set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6986  set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6987  set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6988  set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6989  set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6990  set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6991  """
6992  return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6993 
6994  def remove_attribute(self, *args):
6995  r"""
6996  remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6997  remove_attribute(SecondaryStructureResidue self, IntKey a0)
6998  remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6999  remove_attribute(SecondaryStructureResidue self, IntsKey a0)
7000  remove_attribute(SecondaryStructureResidue self, StringKey a0)
7001  remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
7002  remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
7003  remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
7004  remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
7005  remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
7006  remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
7007  """
7008  return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
7009 
7010  def has_attribute(self, *args):
7011  r"""
7012  has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
7013  has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
7014  has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
7015  has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
7016  has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
7017  has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
7018  has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
7019  has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
7020  has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
7021  has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
7022  has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
7023  """
7024  return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
7025 
7026  def get_derivative(self, a0):
7027  r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
7028  return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
7029 
7030  def get_name(self):
7031  r"""get_name(SecondaryStructureResidue self) -> std::string"""
7032  return _IMP_atom.SecondaryStructureResidue_get_name(self)
7033 
7034  def clear_caches(self):
7035  r"""clear_caches(SecondaryStructureResidue self)"""
7036  return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
7037 
7038  def set_name(self, a0):
7039  r"""set_name(SecondaryStructureResidue self, std::string a0)"""
7040  return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
7041 
7042  def set_check_level(self, a0):
7043  r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
7044  return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
7045 
7046  def add_to_derivative(self, a0, a1, a2):
7047  r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7048  return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
7049 
7050  def set_is_optimized(self, a0, a1):
7051  r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
7052  return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
7053 
7054  def get_is_optimized(self, a0):
7055  r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
7056  return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
7057 
7058  def get_check_level(self):
7059  r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
7060  return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
7061 
7062  def __eq__(self, *args):
7063  r"""
7064  __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7065  __eq__(SecondaryStructureResidue self, Particle d) -> bool
7066  """
7067  return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
7068 
7069  def __ne__(self, *args):
7070  r"""
7071  __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7072  __ne__(SecondaryStructureResidue self, Particle d) -> bool
7073  """
7074  return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
7075 
7076  def __le__(self, *args):
7077  r"""
7078  __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7079  __le__(SecondaryStructureResidue self, Particle d) -> bool
7080  """
7081  return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
7082 
7083  def __lt__(self, *args):
7084  r"""
7085  __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7086  __lt__(SecondaryStructureResidue self, Particle d) -> bool
7087  """
7088  return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
7089 
7090  def __ge__(self, *args):
7091  r"""
7092  __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7093  __ge__(SecondaryStructureResidue self, Particle d) -> bool
7094  """
7095  return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
7096 
7097  def __gt__(self, *args):
7098  r"""
7099  __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
7100  __gt__(SecondaryStructureResidue self, Particle d) -> bool
7101  """
7102  return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
7103 
7104  def __hash__(self):
7105  r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
7106  return _IMP_atom.SecondaryStructureResidue___hash__(self)
7107 
7108  def __str__(self):
7109  r"""__str__(SecondaryStructureResidue self) -> std::string"""
7110  return _IMP_atom.SecondaryStructureResidue___str__(self)
7111 
7112  def __repr__(self):
7113  r"""__repr__(SecondaryStructureResidue self) -> std::string"""
7114  return _IMP_atom.SecondaryStructureResidue___repr__(self)
7115 
7116  def _get_as_binary(self):
7117  r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
7118  return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
7119 
7120  def _set_from_binary(self, p):
7121  r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
7122  return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
7123 
7124  def __getstate__(self):
7125  p = self._get_as_binary()
7126  if len(self.__dict__) > 1:
7127  d = self.__dict__.copy()
7128  del d['this']
7129  p = (d, p)
7130  return p
7131 
7132  def __setstate__(self, p):
7133  if not hasattr(self, 'this'):
7134  self.__init__()
7135  if isinstance(p, tuple):
7136  d, p = p
7137  self.__dict__.update(d)
7138  return self._set_from_binary(p)
7139 
7140  __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
7141 
7142 # Register SecondaryStructureResidue in _IMP_atom:
7143 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
7144 
7145 def setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res=False):
7146  r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
7147  return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
7148 
7149 def setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res=False):
7150  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"""
7151  return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
7152 
7153 def get_secondary_structure_match_score(ssr1, ssr2):
7154  r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
7155  return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
7156 
7157 def read_psipred(*args):
7158  r"""
7159  read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
7160  read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
7161  """
7162  return _IMP_atom.read_psipred(*args)
7163 class _ADopeBase(IMP.PairScore):
7164  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
7165 
7166  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7167  __repr__ = _swig_repr
7168 
7169  def __init__(self, *args):
7170  r"""
7171  __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
7172  __init__(_ADopeBase self) -> _ADopeBase
7173  """
7174  _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
7175 
7176  def do_get_inputs(self, m, pis):
7177  r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7178  return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
7179 
7180  def get_score_functor(self, *args):
7181  r"""
7182  get_score_functor(_ADopeBase self) -> Dope
7183  get_score_functor(_ADopeBase self) -> Dope
7184  """
7185  return _IMP_atom._ADopeBase_get_score_functor(self, *args)
7186 
7187  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7188  r"""evaluate_indexes(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7189  return _IMP_atom._ADopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7190 
7191  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7192  r"""evaluate_indexes_scores(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7193  return _IMP_atom._ADopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7194 
7195  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7196  r"""evaluate_indexes_delta(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7197  return _IMP_atom._ADopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7198 
7199  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7200  r"""evaluate_if_good_indexes(_ADopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7201  return _IMP_atom._ADopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7202 
7203  def get_version_info(self):
7204  r"""get_version_info(_ADopeBase self) -> VersionInfo"""
7205  return _IMP_atom._ADopeBase_get_version_info(self)
7206  __swig_destroy__ = _IMP_atom.delete__ADopeBase
7207 
7208 # Register _ADopeBase in _IMP_atom:
7209 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
7210 class _BDopeBase(IMP.PairScore):
7211  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
7212 
7213  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7214  __repr__ = _swig_repr
7215 
7216  def __init__(self, *args):
7217  r"""
7218  __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
7219  __init__(_BDopeBase self) -> _BDopeBase
7220  """
7221  _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
7222 
7223  def do_get_inputs(self, m, pis):
7224  r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7225  return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
7226 
7227  def get_score_functor(self, *args):
7228  r"""
7229  get_score_functor(_BDopeBase self) -> _DopeBase
7230  get_score_functor(_BDopeBase self) -> _DopeBase
7231  """
7232  return _IMP_atom._BDopeBase_get_score_functor(self, *args)
7233 
7234  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7235  r"""evaluate_indexes(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7236  return _IMP_atom._BDopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7237 
7238  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7239  r"""evaluate_indexes_scores(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7240  return _IMP_atom._BDopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7241 
7242  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7243  r"""evaluate_indexes_delta(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7244  return _IMP_atom._BDopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7245 
7246  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7247  r"""evaluate_if_good_indexes(_BDopeBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7248  return _IMP_atom._BDopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7249 
7250  def get_version_info(self):
7251  r"""get_version_info(_BDopeBase self) -> VersionInfo"""
7252  return _IMP_atom._BDopeBase_get_version_info(self)
7253  __swig_destroy__ = _IMP_atom.delete__BDopeBase
7254 
7255 # Register _BDopeBase in _IMP_atom:
7256 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
7257 class _ALoopStatisticalBase(IMP.PairScore):
7258  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
7259 
7260  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7261  __repr__ = _swig_repr
7262 
7263  def __init__(self, *args):
7264  r"""
7265  __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
7266  __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
7267  """
7268  _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
7269 
7270  def do_get_inputs(self, m, pis):
7271  r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7272  return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
7273 
7274  def get_score_functor(self, *args):
7275  r"""
7276  get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7277  get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical
7278  """
7279  return _IMP_atom._ALoopStatisticalBase_get_score_functor(self, *args)
7280 
7281  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7282  r"""evaluate_indexes(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7283  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7284 
7285  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7286  r"""evaluate_indexes_scores(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7287  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7288 
7289  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7290  r"""evaluate_indexes_delta(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7291  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7292 
7293  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7294  r"""evaluate_if_good_indexes(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7295  return _IMP_atom._ALoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7296 
7297  def get_version_info(self):
7298  r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
7299  return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
7300  __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
7301 
7302 # Register _ALoopStatisticalBase in _IMP_atom:
7303 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
7304 class _BLoopStatisticalBase(IMP.PairScore):
7305  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
7306 
7307  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7308  __repr__ = _swig_repr
7309 
7310  def __init__(self, *args):
7311  r"""
7312  __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
7313  __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
7314  """
7315  _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
7316 
7317  def do_get_inputs(self, m, pis):
7318  r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7319  return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
7320 
7321  def get_score_functor(self, *args):
7322  r"""
7323  get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7324  get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase
7325  """
7326  return _IMP_atom._BLoopStatisticalBase_get_score_functor(self, *args)
7327 
7328  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7329  r"""evaluate_indexes(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7330  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7331 
7332  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7333  r"""evaluate_indexes_scores(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7334  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7335 
7336  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7337  r"""evaluate_indexes_delta(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7338  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7339 
7340  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7341  r"""evaluate_if_good_indexes(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7342  return _IMP_atom._BLoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7343 
7344  def get_version_info(self):
7345  r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
7346  return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
7347  __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
7348 
7349 # Register _BLoopStatisticalBase in _IMP_atom:
7350 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
7351 class _OrientedSoapBase(IMP.PairScore):
7352  r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
7353 
7354  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7355  __repr__ = _swig_repr
7356 
7357  def __init__(self, *args):
7358  r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
7359  _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
7360 
7361  def do_get_inputs(self, m, pis):
7362  r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7363  return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
7364 
7365  def get_score_functor(self):
7366  r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
7367  return _IMP_atom._OrientedSoapBase_get_score_functor(self)
7368 
7369  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7370  r"""evaluate_indexes(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7371  return _IMP_atom._OrientedSoapBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7372 
7373  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7374  r"""evaluate_indexes_scores(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7375  return _IMP_atom._OrientedSoapBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7376 
7377  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7378  r"""evaluate_indexes_delta(_OrientedSoapBase self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7379  return _IMP_atom._OrientedSoapBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7380 
7381  def get_version_info(self):
7382  r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
7383  return _IMP_atom._OrientedSoapBase_get_version_info(self)
7384  __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
7385 
7386 # Register _OrientedSoapBase in _IMP_atom:
7387 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
7388 class _SPSFTB(IMP.PairScore):
7389  r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
7390 
7391  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7392  __repr__ = _swig_repr
7393 
7394  def __init__(self, *args):
7395  r"""
7396  __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
7397  __init__(_SPSFTB self) -> _SPSFTB
7398  """
7399  _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
7400 
7401  def do_get_inputs(self, m, pis):
7402  r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7403  return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
7404 
7405  def get_score_functor(self, *args):
7406  r"""
7407  get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false >
7408  get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > const &
7409  """
7410  return _IMP_atom._SPSFTB_get_score_functor(self, *args)
7411 
7412  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7413  r"""evaluate_indexes(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7414  return _IMP_atom._SPSFTB_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7415 
7416  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7417  r"""evaluate_indexes_scores(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7418  return _IMP_atom._SPSFTB_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7419 
7420  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7421  r"""evaluate_indexes_delta(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7422  return _IMP_atom._SPSFTB_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7423 
7424  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7425  r"""evaluate_if_good_indexes(_SPSFTB self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7426  return _IMP_atom._SPSFTB_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7427 
7428  def get_version_info(self):
7429  r"""get_version_info(_SPSFTB self) -> VersionInfo"""
7430  return _IMP_atom._SPSFTB_get_version_info(self)
7431  __swig_destroy__ = _IMP_atom.delete__SPSFTB
7432 
7433 # Register _SPSFTB in _IMP_atom:
7434 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
7435 class _SPSTF(_SPSFTB):
7436  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
7437 
7438  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7439  __repr__ = _swig_repr
7440 
7441  def __init__(self, *args):
7442  r"""
7443  __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7444  __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7445  """
7446  _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7447  __swig_destroy__ = _IMP_atom.delete__SPSTF
7448 
7449 # Register _SPSTF in _IMP_atom:
7450 _IMP_atom._SPSTF_swigregister(_SPSTF)
7451 class _SPSFT(_BDopeBase):
7452  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7453 
7454  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7455  __repr__ = _swig_repr
7456 
7457  def __init__(self, *args):
7458  r"""
7459  __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7460  __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7461  """
7462  _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7463  __swig_destroy__ = _IMP_atom.delete__SPSFT
7464 
7465 # Register _SPSFT in _IMP_atom:
7466 _IMP_atom._SPSFT_swigregister(_SPSFT)
7467 class _SPSFTL(_BLoopStatisticalBase):
7468  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7469 
7470  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7471  __repr__ = _swig_repr
7472 
7473  def __init__(self, *args):
7474  r"""
7475  __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7476  __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7477  """
7478  _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7479  __swig_destroy__ = _IMP_atom.delete__SPSFTL
7480 
7481 # Register _SPSFTL in _IMP_atom:
7482 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7483 class ProteinLigandAtomPairScore(_SPSTF):
7484  r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7485 
7486  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7487 
7488  def __init__(self, *args):
7489  r"""
7490  __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7491  __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7492  """
7493  _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7494 
7495  def get_maximum_distance(self):
7496  r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7497  return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7498 
7499  def __str__(self):
7500  r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7501  return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7502 
7503  def __repr__(self):
7504  r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7505  return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7506 
7507  @staticmethod
7508  def get_from(o):
7509  return _object_cast_to_ProteinLigandAtomPairScore(o)
7510 
7511  __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7512 
7513 # Register ProteinLigandAtomPairScore in _IMP_atom:
7514 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7515 class ProteinLigandRestraint(IMP.container.PairsRestraint):
7516  r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7517 
7518  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7519 
7520  def __init__(self, *args):
7521  r"""
7522  __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7523  __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7524  """
7525  _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7526 
7527  def __str__(self):
7528  r"""__str__(ProteinLigandRestraint self) -> std::string"""
7529  return _IMP_atom.ProteinLigandRestraint___str__(self)
7530 
7531  def __repr__(self):
7532  r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7533  return _IMP_atom.ProteinLigandRestraint___repr__(self)
7534 
7535  @staticmethod
7536  def get_from(o):
7537  return _object_cast_to_ProteinLigandRestraint(o)
7538 
7539  __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7540 
7541 # Register ProteinLigandRestraint in _IMP_atom:
7542 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7543 
7545  r"""add_protein_ligand_score_data(Hierarchy h)"""
7546  return _IMP_atom.add_protein_ligand_score_data(h)
7547 class AtomType(IMP._Value):
7548  r"""Proxy of C++ IMP::Key< 8974343 > class."""
7549 
7550  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7551 
7552  def __init__(self, *args):
7553  r"""
7554  __init__(AtomType self) -> AtomType
7555  __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7556  __init__(AtomType self, unsigned int i) -> AtomType
7557  """
7558  _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7559 
7560  @staticmethod
7561  def add_key(sc):
7562  r"""add_key(std::string sc) -> unsigned int"""
7563  return _IMP_atom.AtomType_add_key(sc)
7564 
7565  @staticmethod
7566  def get_key_exists(sc):
7567  r"""get_key_exists(std::string sc) -> bool"""
7568  return _IMP_atom.AtomType_get_key_exists(sc)
7569 
7570  def get_string(self):
7571  r"""get_string(AtomType self) -> std::string const"""
7572  return _IMP_atom.AtomType_get_string(self)
7573 
7574  def __cmp__(self, o):
7575  r"""__cmp__(AtomType self, AtomType o) -> int"""
7576  return _IMP_atom.AtomType___cmp__(self, o)
7577 
7578  def __eq__(self, o):
7579  r"""__eq__(AtomType self, AtomType o) -> bool"""
7580  return _IMP_atom.AtomType___eq__(self, o)
7581 
7582  def __ne__(self, o):
7583  r"""__ne__(AtomType self, AtomType o) -> bool"""
7584  return _IMP_atom.AtomType___ne__(self, o)
7585 
7586  def __lt__(self, o):
7587  r"""__lt__(AtomType self, AtomType o) -> bool"""
7588  return _IMP_atom.AtomType___lt__(self, o)
7589 
7590  def __gt__(self, o):
7591  r"""__gt__(AtomType self, AtomType o) -> bool"""
7592  return _IMP_atom.AtomType___gt__(self, o)
7593 
7594  def __ge__(self, o):
7595  r"""__ge__(AtomType self, AtomType o) -> bool"""
7596  return _IMP_atom.AtomType___ge__(self, o)
7597 
7598  def __le__(self, o):
7599  r"""__le__(AtomType self, AtomType o) -> bool"""
7600  return _IMP_atom.AtomType___le__(self, o)
7601 
7602  def __hash__(self):
7603  r"""__hash__(AtomType self) -> std::size_t"""
7604  return _IMP_atom.AtomType___hash__(self)
7605 
7606  def show(self, *args):
7607  r"""show(AtomType self, _ostream out=std::cout)"""
7608  return _IMP_atom.AtomType_show(self, *args)
7609 
7610  @staticmethod
7611  def add_alias(old_key, new_name):
7612  r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7613  return _IMP_atom.AtomType_add_alias(old_key, new_name)
7614 
7615  @staticmethod
7616  def get_number_of_keys():
7617  r"""get_number_of_keys() -> unsigned int"""
7618  return _IMP_atom.AtomType_get_number_of_keys()
7619 
7620  def get_index(self):
7621  r"""get_index(AtomType self) -> unsigned int"""
7622  return _IMP_atom.AtomType_get_index(self)
7623 
7624  @staticmethod
7625  def show_all(out):
7626  r"""show_all(_ostream out)"""
7627  return _IMP_atom.AtomType_show_all(out)
7628 
7629  @staticmethod
7630  def get_all_strings():
7631  r"""get_all_strings() -> IMP::Vector< std::string >"""
7632  return _IMP_atom.AtomType_get_all_strings()
7633 
7634  @staticmethod
7635  def get_number_unique():
7636  r"""get_number_unique() -> unsigned int"""
7637  return _IMP_atom.AtomType_get_number_unique()
7638 
7639  def __str__(self):
7640  r"""__str__(AtomType self) -> std::string"""
7641  return _IMP_atom.AtomType___str__(self)
7642 
7643  def __repr__(self):
7644  r"""__repr__(AtomType self) -> std::string"""
7645  return _IMP_atom.AtomType___repr__(self)
7646  __swig_destroy__ = _IMP_atom.delete_AtomType
7647 
7648 # Register AtomType in _IMP_atom:
7649 _IMP_atom.AtomType_swigregister(AtomType)
7650 class ResidueType(IMP._Value):
7651  r"""Proxy of C++ IMP::Key< 90784334 > class."""
7652 
7653  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7654 
7655  def __init__(self, *args):
7656  r"""
7657  __init__(ResidueType self) -> ResidueType
7658  __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7659  __init__(ResidueType self, unsigned int i) -> ResidueType
7660  """
7661  _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7662 
7663  @staticmethod
7664  def add_key(sc):
7665  r"""add_key(std::string sc) -> unsigned int"""
7666  return _IMP_atom.ResidueType_add_key(sc)
7667 
7668  @staticmethod
7669  def get_key_exists(sc):
7670  r"""get_key_exists(std::string sc) -> bool"""
7671  return _IMP_atom.ResidueType_get_key_exists(sc)
7672 
7673  def get_string(self):
7674  r"""get_string(ResidueType self) -> std::string const"""
7675  return _IMP_atom.ResidueType_get_string(self)
7676 
7677  def __cmp__(self, o):
7678  r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7679  return _IMP_atom.ResidueType___cmp__(self, o)
7680 
7681  def __eq__(self, o):
7682  r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7683  return _IMP_atom.ResidueType___eq__(self, o)
7684 
7685  def __ne__(self, o):
7686  r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7687  return _IMP_atom.ResidueType___ne__(self, o)
7688 
7689  def __lt__(self, o):
7690  r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7691  return _IMP_atom.ResidueType___lt__(self, o)
7692 
7693  def __gt__(self, o):
7694  r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7695  return _IMP_atom.ResidueType___gt__(self, o)
7696 
7697  def __ge__(self, o):
7698  r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7699  return _IMP_atom.ResidueType___ge__(self, o)
7700 
7701  def __le__(self, o):
7702  r"""__le__(ResidueType self, ResidueType o) -> bool"""
7703  return _IMP_atom.ResidueType___le__(self, o)
7704 
7705  def __hash__(self):
7706  r"""__hash__(ResidueType self) -> std::size_t"""
7707  return _IMP_atom.ResidueType___hash__(self)
7708 
7709  def show(self, *args):
7710  r"""show(ResidueType self, _ostream out=std::cout)"""
7711  return _IMP_atom.ResidueType_show(self, *args)
7712 
7713  @staticmethod
7714  def add_alias(old_key, new_name):
7715  r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7716  return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7717 
7718  @staticmethod
7719  def get_number_of_keys():
7720  r"""get_number_of_keys() -> unsigned int"""
7721  return _IMP_atom.ResidueType_get_number_of_keys()
7722 
7723  def get_index(self):
7724  r"""get_index(ResidueType self) -> unsigned int"""
7725  return _IMP_atom.ResidueType_get_index(self)
7726 
7727  @staticmethod
7728  def show_all(out):
7729  r"""show_all(_ostream out)"""
7730  return _IMP_atom.ResidueType_show_all(out)
7731 
7732  @staticmethod
7733  def get_all_strings():
7734  r"""get_all_strings() -> IMP::Vector< std::string >"""
7735  return _IMP_atom.ResidueType_get_all_strings()
7736 
7737  @staticmethod
7738  def get_number_unique():
7739  r"""get_number_unique() -> unsigned int"""
7740  return _IMP_atom.ResidueType_get_number_unique()
7741 
7742  def __str__(self):
7743  r"""__str__(ResidueType self) -> std::string"""
7744  return _IMP_atom.ResidueType___str__(self)
7745 
7746  def __repr__(self):
7747  r"""__repr__(ResidueType self) -> std::string"""
7748  return _IMP_atom.ResidueType___repr__(self)
7749  __swig_destroy__ = _IMP_atom.delete_ResidueType
7750 
7751 # Register ResidueType in _IMP_atom:
7752 _IMP_atom.ResidueType_swigregister(ResidueType)
7753 class ChainType(IMP._Value):
7754  r"""Proxy of C++ IMP::Key< 90784336 > class."""
7755 
7756  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7757 
7758  def __init__(self, *args):
7759  r"""
7760  __init__(ChainType self) -> ChainType
7761  __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7762  __init__(ChainType self, unsigned int i) -> ChainType
7763  """
7764  _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7765 
7766  @staticmethod
7767  def add_key(sc):
7768  r"""add_key(std::string sc) -> unsigned int"""
7769  return _IMP_atom.ChainType_add_key(sc)
7770 
7771  @staticmethod
7772  def get_key_exists(sc):
7773  r"""get_key_exists(std::string sc) -> bool"""
7774  return _IMP_atom.ChainType_get_key_exists(sc)
7775 
7776  def get_string(self):
7777  r"""get_string(ChainType self) -> std::string const"""
7778  return _IMP_atom.ChainType_get_string(self)
7779 
7780  def __cmp__(self, o):
7781  r"""__cmp__(ChainType self, ChainType o) -> int"""
7782  return _IMP_atom.ChainType___cmp__(self, o)
7783 
7784  def __eq__(self, o):
7785  r"""__eq__(ChainType self, ChainType o) -> bool"""
7786  return _IMP_atom.ChainType___eq__(self, o)
7787 
7788  def __ne__(self, o):
7789  r"""__ne__(ChainType self, ChainType o) -> bool"""
7790  return _IMP_atom.ChainType___ne__(self, o)
7791 
7792  def __lt__(self, o):
7793  r"""__lt__(ChainType self, ChainType o) -> bool"""
7794  return _IMP_atom.ChainType___lt__(self, o)
7795 
7796  def __gt__(self, o):
7797  r"""__gt__(ChainType self, ChainType o) -> bool"""
7798  return _IMP_atom.ChainType___gt__(self, o)
7799 
7800  def __ge__(self, o):
7801  r"""__ge__(ChainType self, ChainType o) -> bool"""
7802  return _IMP_atom.ChainType___ge__(self, o)
7803 
7804  def __le__(self, o):
7805  r"""__le__(ChainType self, ChainType o) -> bool"""
7806  return _IMP_atom.ChainType___le__(self, o)
7807 
7808  def __hash__(self):
7809  r"""__hash__(ChainType self) -> std::size_t"""
7810  return _IMP_atom.ChainType___hash__(self)
7811 
7812  def show(self, *args):
7813  r"""show(ChainType self, _ostream out=std::cout)"""
7814  return _IMP_atom.ChainType_show(self, *args)
7815 
7816  @staticmethod
7817  def add_alias(old_key, new_name):
7818  r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7819  return _IMP_atom.ChainType_add_alias(old_key, new_name)
7820 
7821  @staticmethod
7822  def get_number_of_keys():
7823  r"""get_number_of_keys() -> unsigned int"""
7824  return _IMP_atom.ChainType_get_number_of_keys()
7825 
7826  def get_index(self):
7827  r"""get_index(ChainType self) -> unsigned int"""
7828  return _IMP_atom.ChainType_get_index(self)
7829 
7830  @staticmethod
7831  def show_all(out):
7832  r"""show_all(_ostream out)"""
7833  return _IMP_atom.ChainType_show_all(out)
7834 
7835  @staticmethod
7836  def get_all_strings():
7837  r"""get_all_strings() -> IMP::Vector< std::string >"""
7838  return _IMP_atom.ChainType_get_all_strings()
7839 
7840  @staticmethod
7841  def get_number_unique():
7842  r"""get_number_unique() -> unsigned int"""
7843  return _IMP_atom.ChainType_get_number_unique()
7844 
7845  def __str__(self):
7846  r"""__str__(ChainType self) -> std::string"""
7847  return _IMP_atom.ChainType___str__(self)
7848 
7849  def __repr__(self):
7850  r"""__repr__(ChainType self) -> std::string"""
7851  return _IMP_atom.ChainType___repr__(self)
7852  __swig_destroy__ = _IMP_atom.delete_ChainType
7853 
7854 # Register ChainType in _IMP_atom:
7855 _IMP_atom.ChainType_swigregister(ChainType)
7856 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
7857 
7858 OH = _IMP_atom.OH
7859 
7860 H2O = _IMP_atom.H2O
7861 
7862 H = _IMP_atom.H
7863 
7864 He = _IMP_atom.He
7865 
7866 Li = _IMP_atom.Li
7867 
7868 Be = _IMP_atom.Be
7869 
7870 B = _IMP_atom.B
7871 
7872 C = _IMP_atom.C
7873 
7874 N = _IMP_atom.N
7875 
7876 O = _IMP_atom.O
7877 
7878 F = _IMP_atom.F
7879 
7880 Ne = _IMP_atom.Ne
7881 
7882 Na = _IMP_atom.Na
7883 
7884 Mg = _IMP_atom.Mg
7885 
7886 Al = _IMP_atom.Al
7887 
7888 Si = _IMP_atom.Si
7889 
7890 P = _IMP_atom.P
7891 
7892 S = _IMP_atom.S
7893 
7894 Cl = _IMP_atom.Cl
7895 
7896 Ar = _IMP_atom.Ar
7897 
7898 K = _IMP_atom.K
7899 
7900 Ca = _IMP_atom.Ca
7901 
7902 Sc = _IMP_atom.Sc
7903 
7904 Ti = _IMP_atom.Ti
7905 
7906 V = _IMP_atom.V
7907 
7908 Cr = _IMP_atom.Cr
7909 
7910 Mn = _IMP_atom.Mn
7911 
7912 Fe = _IMP_atom.Fe
7913 
7914 Co = _IMP_atom.Co
7915 
7916 Ni = _IMP_atom.Ni
7917 
7918 Cu = _IMP_atom.Cu
7919 
7920 Zn = _IMP_atom.Zn
7921 
7922 Ga = _IMP_atom.Ga
7923 
7924 Ge = _IMP_atom.Ge
7925 
7926 As = _IMP_atom.As
7927 
7928 Se = _IMP_atom.Se
7929 
7930 Br = _IMP_atom.Br
7931 
7932 Kr = _IMP_atom.Kr
7933 
7934 Rb = _IMP_atom.Rb
7935 
7936 Sr = _IMP_atom.Sr
7937 
7938 Y = _IMP_atom.Y
7939 
7940 Zr = _IMP_atom.Zr
7941 
7942 Nb = _IMP_atom.Nb
7943 
7944 Mo = _IMP_atom.Mo
7945 
7946 Tc = _IMP_atom.Tc
7947 
7948 Ru = _IMP_atom.Ru
7949 
7950 Rh = _IMP_atom.Rh
7951 
7952 Pd = _IMP_atom.Pd
7953 
7954 Ag = _IMP_atom.Ag
7955 
7956 Cd = _IMP_atom.Cd
7957 
7958 In = _IMP_atom.In
7959 
7960 Sn = _IMP_atom.Sn
7961 
7962 Sb = _IMP_atom.Sb
7963 
7964 Te = _IMP_atom.Te
7965 
7966 I = _IMP_atom.I
7967 
7968 Xe = _IMP_atom.Xe
7969 
7970 Cs = _IMP_atom.Cs
7971 
7972 Ba = _IMP_atom.Ba
7973 
7974 La = _IMP_atom.La
7975 
7976 Ce = _IMP_atom.Ce
7977 
7978 Pr = _IMP_atom.Pr
7979 
7980 Nd = _IMP_atom.Nd
7981 
7982 Pm = _IMP_atom.Pm
7983 
7984 Sm = _IMP_atom.Sm
7985 
7986 Eu = _IMP_atom.Eu
7987 
7988 Gd = _IMP_atom.Gd
7989 
7990 Tb = _IMP_atom.Tb
7991 
7992 Dy = _IMP_atom.Dy
7993 
7994 Ho = _IMP_atom.Ho
7995 
7996 Er = _IMP_atom.Er
7997 
7998 Tm = _IMP_atom.Tm
7999 
8000 Yb = _IMP_atom.Yb
8001 
8002 Lu = _IMP_atom.Lu
8003 
8004 Hf = _IMP_atom.Hf
8005 
8006 Ta = _IMP_atom.Ta
8007 
8008 W = _IMP_atom.W
8009 
8010 Re = _IMP_atom.Re
8011 
8012 Os = _IMP_atom.Os
8013 
8014 Ir = _IMP_atom.Ir
8015 
8016 Pt = _IMP_atom.Pt
8017 
8018 Au = _IMP_atom.Au
8019 
8020 Hg = _IMP_atom.Hg
8021 
8022 Tl = _IMP_atom.Tl
8023 
8024 Pb = _IMP_atom.Pb
8025 
8026 Bi = _IMP_atom.Bi
8027 
8028 Po = _IMP_atom.Po
8029 
8030 At = _IMP_atom.At
8031 
8032 Rn = _IMP_atom.Rn
8033 
8034 Fr = _IMP_atom.Fr
8035 
8036 Ra = _IMP_atom.Ra
8037 
8038 Ac = _IMP_atom.Ac
8039 
8040 Th = _IMP_atom.Th
8041 
8042 Pa = _IMP_atom.Pa
8043 
8044 U = _IMP_atom.U
8045 
8046 Np = _IMP_atom.Np
8047 
8048 Pu = _IMP_atom.Pu
8049 
8050 Am = _IMP_atom.Am
8051 
8052 Cm = _IMP_atom.Cm
8053 
8054 Bk = _IMP_atom.Bk
8055 
8056 Cf = _IMP_atom.Cf
8057 
8058 Es = _IMP_atom.Es
8059 
8060 Fm = _IMP_atom.Fm
8061 
8062 Md = _IMP_atom.Md
8063 
8064 No = _IMP_atom.No
8065 
8066 Lr = _IMP_atom.Lr
8067 
8068 Db = _IMP_atom.Db
8069 
8070 Jl = _IMP_atom.Jl
8071 
8072 Rf = _IMP_atom.Rf
8073 
8074 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
8075 
8076 
8077 def hash_value(e):
8078  r"""hash_value(IMP::atom::Element e) -> size_t"""
8079  return _IMP_atom.hash_value(e)
8080 class ElementTable(object):
8081  r"""Proxy of C++ IMP::atom::ElementTable class."""
8082 
8083  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8084  __repr__ = _swig_repr
8085 
8086  def __init__(self):
8087  r"""__init__(ElementTable self) -> ElementTable"""
8088  _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
8089 
8090  def get_element(self, s):
8091  r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
8092  return _IMP_atom.ElementTable_get_element(self, s)
8093 
8094  def get_name(self, e):
8095  r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
8096  return _IMP_atom.ElementTable_get_name(self, e)
8097 
8098  def get_mass(self, e):
8099  r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
8100  return _IMP_atom.ElementTable_get_mass(self, e)
8101  __swig_destroy__ = _IMP_atom.delete_ElementTable
8102 
8103 # Register ElementTable in _IMP_atom:
8104 _IMP_atom.ElementTable_swigregister(ElementTable)
8105 
8106 def get_element_table():
8107  r"""get_element_table() -> ElementTable"""
8108  return _IMP_atom.get_element_table()
8109 class Atom(Hierarchy):
8110  r"""Proxy of C++ IMP::atom::Atom class."""
8111 
8112  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8113 
8114  def __init__(self, *args):
8115  r"""
8116  __init__(Atom self) -> Atom
8117  __init__(Atom self, Model m, ParticleIndex id) -> Atom
8118  __init__(Atom self, _ParticleAdaptor d) -> Atom
8119  """
8120  _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
8121 
8122  def show(self, *args):
8123  r"""show(Atom self, _ostream out=std::cout)"""
8124  return _IMP_atom.Atom_show(self, *args)
8125 
8126  @staticmethod
8127  def setup_particle(*args):
8128  r"""
8129  setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
8130  setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
8131  setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
8132  setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
8133  """
8134  return _IMP_atom.Atom_setup_particle(*args)
8135 
8136  @staticmethod
8137  def get_is_setup(*args):
8138  r"""
8139  get_is_setup(_ParticleAdaptor p) -> bool
8140  get_is_setup(Model m, ParticleIndex pi) -> bool
8141  """
8142  return _IMP_atom.Atom_get_is_setup(*args)
8143 
8144  def get_atom_type(self):
8145  r"""get_atom_type(Atom self) -> AtomType"""
8146  return _IMP_atom.Atom_get_atom_type(self)
8147 
8148  def set_atom_type(self, t):
8149  r"""set_atom_type(Atom self, AtomType t)"""
8150  return _IMP_atom.Atom_set_atom_type(self, t)
8151 
8152  def get_element(self):
8153  r"""get_element(Atom self) -> IMP::atom::Element"""
8154  return _IMP_atom.Atom_get_element(self)
8155 
8156  def set_element(self, e):
8157  r"""set_element(Atom self, IMP::atom::Element e)"""
8158  return _IMP_atom.Atom_set_element(self, e)
8159 
8160  def get_occupancy(self):
8161  r"""get_occupancy(Atom self) -> double"""
8162  return _IMP_atom.Atom_get_occupancy(self)
8163 
8164  def set_occupancy(self, occupancy):
8165  r"""set_occupancy(Atom self, double occupancy)"""
8166  return _IMP_atom.Atom_set_occupancy(self, occupancy)
8167 
8168  def get_temperature_factor(self):
8169  r"""get_temperature_factor(Atom self) -> double"""
8170  return _IMP_atom.Atom_get_temperature_factor(self)
8171 
8172  def set_temperature_factor(self, tempFactor):
8173  r"""set_temperature_factor(Atom self, double tempFactor)"""
8174  return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
8175 
8176  def get_input_index(self):
8177  r"""get_input_index(Atom self) -> IMP::Int"""
8178  return _IMP_atom.Atom_get_input_index(self)
8179 
8180  def set_input_index(self, t):
8181  r"""set_input_index(Atom self, IMP::Int t)"""
8182  return _IMP_atom.Atom_set_input_index(self, t)
8183 
8184  @staticmethod
8185  def get_atom_type_key():
8186  r"""get_atom_type_key() -> IntKey"""
8187  return _IMP_atom.Atom_get_atom_type_key()
8188 
8189  @staticmethod
8190  def get_element_key():
8191  r"""get_element_key() -> IntKey"""
8192  return _IMP_atom.Atom_get_element_key()
8193 
8194  @staticmethod
8195  def get_input_index_key():
8196  r"""get_input_index_key() -> IntKey"""
8197  return _IMP_atom.Atom_get_input_index_key()
8198 
8199  @staticmethod
8200  def get_occupancy_key():
8201  r"""get_occupancy_key() -> FloatKey"""
8202  return _IMP_atom.Atom_get_occupancy_key()
8203 
8204  @staticmethod
8205  def get_temperature_factor_key():
8206  r"""get_temperature_factor_key() -> FloatKey"""
8207  return _IMP_atom.Atom_get_temperature_factor_key()
8208 
8209  def add_attribute(self, *args):
8210  r"""
8211  add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
8212  add_attribute(Atom self, FloatKey a0, IMP::Float a1)
8213  add_attribute(Atom self, IntKey a0, IMP::Int a1)
8214  add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
8215  add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
8216  add_attribute(Atom self, StringKey a0, IMP::String a1)
8217  add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
8218  add_attribute(Atom self, ObjectKey a0, Object a1)
8219  add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
8220  add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
8221  add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
8222  add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8223  """
8224  return _IMP_atom.Atom_add_attribute(self, *args)
8225 
8226  def get_value(self, *args):
8227  r"""
8228  get_value(Atom self, FloatKey a0) -> IMP::Float
8229  get_value(Atom self, IntKey a0) -> IMP::Int
8230  get_value(Atom self, FloatsKey a0) -> IMP::Floats
8231  get_value(Atom self, IntsKey a0) -> IMP::Ints
8232  get_value(Atom self, StringKey a0) -> IMP::String
8233  get_value(Atom self, ParticleIndexKey a0) -> Particle
8234  get_value(Atom self, ObjectKey a0) -> Object
8235  get_value(Atom self, SparseFloatKey a0) -> IMP::Float
8236  get_value(Atom self, SparseIntKey a0) -> IMP::Int
8237  get_value(Atom self, SparseStringKey a0) -> IMP::String
8238  get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
8239  """
8240  return _IMP_atom.Atom_get_value(self, *args)
8241 
8242  def set_value(self, *args):
8243  r"""
8244  set_value(Atom self, FloatKey a0, IMP::Float a1)
8245  set_value(Atom self, IntKey a0, IMP::Int a1)
8246  set_value(Atom self, FloatsKey a0, IMP::Floats a1)
8247  set_value(Atom self, IntsKey a0, IMP::Ints a1)
8248  set_value(Atom self, StringKey a0, IMP::String a1)
8249  set_value(Atom self, ParticleIndexKey a0, Particle a1)
8250  set_value(Atom self, ObjectKey a0, Object a1)
8251  set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
8252  set_value(Atom self, SparseIntKey a0, IMP::Int a1)
8253  set_value(Atom self, SparseStringKey a0, IMP::String a1)
8254  set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
8255  """
8256  return _IMP_atom.Atom_set_value(self, *args)
8257 
8258  def remove_attribute(self, *args):
8259  r"""
8260  remove_attribute(Atom self, FloatKey a0)
8261  remove_attribute(Atom self, IntKey a0)
8262  remove_attribute(Atom self, FloatsKey a0)
8263  remove_attribute(Atom self, IntsKey a0)
8264  remove_attribute(Atom self, StringKey a0)
8265  remove_attribute(Atom self, ParticleIndexKey a0)
8266  remove_attribute(Atom self, ObjectKey a0)
8267  remove_attribute(Atom self, SparseFloatKey a0)
8268  remove_attribute(Atom self, SparseIntKey a0)
8269  remove_attribute(Atom self, SparseStringKey a0)
8270  remove_attribute(Atom self, SparseParticleIndexKey a0)
8271  """
8272  return _IMP_atom.Atom_remove_attribute(self, *args)
8273 
8274  def has_attribute(self, *args):
8275  r"""
8276  has_attribute(Atom self, FloatKey a0) -> bool
8277  has_attribute(Atom self, IntKey a0) -> bool
8278  has_attribute(Atom self, FloatsKey a0) -> bool
8279  has_attribute(Atom self, IntsKey a0) -> bool
8280  has_attribute(Atom self, StringKey a0) -> bool
8281  has_attribute(Atom self, ParticleIndexKey a0) -> bool
8282  has_attribute(Atom self, ObjectKey a0) -> bool
8283  has_attribute(Atom self, SparseFloatKey a0) -> bool
8284  has_attribute(Atom self, SparseIntKey a0) -> bool
8285  has_attribute(Atom self, SparseStringKey a0) -> bool
8286  has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
8287  """
8288  return _IMP_atom.Atom_has_attribute(self, *args)
8289 
8290  def get_derivative(self, a0):
8291  r"""get_derivative(Atom self, FloatKey a0) -> double"""
8292  return _IMP_atom.Atom_get_derivative(self, a0)
8293 
8294  def get_name(self):
8295  r"""get_name(Atom self) -> std::string"""
8296  return _IMP_atom.Atom_get_name(self)
8297 
8298  def clear_caches(self):
8299  r"""clear_caches(Atom self)"""
8300  return _IMP_atom.Atom_clear_caches(self)
8301 
8302  def set_name(self, a0):
8303  r"""set_name(Atom self, std::string a0)"""
8304  return _IMP_atom.Atom_set_name(self, a0)
8305 
8306  def set_check_level(self, a0):
8307  r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
8308  return _IMP_atom.Atom_set_check_level(self, a0)
8309 
8310  def add_to_derivative(self, a0, a1, a2):
8311  r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8312  return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
8313 
8314  def set_is_optimized(self, a0, a1):
8315  r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
8316  return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
8317 
8318  def get_is_optimized(self, a0):
8319  r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
8320  return _IMP_atom.Atom_get_is_optimized(self, a0)
8321 
8322  def get_check_level(self):
8323  r"""get_check_level(Atom self) -> IMP::CheckLevel"""
8324  return _IMP_atom.Atom_get_check_level(self)
8325 
8326  def __eq__(self, *args):
8327  r"""
8328  __eq__(Atom self, Atom o) -> bool
8329  __eq__(Atom self, Particle d) -> bool
8330  """
8331  return _IMP_atom.Atom___eq__(self, *args)
8332 
8333  def __ne__(self, *args):
8334  r"""
8335  __ne__(Atom self, Atom o) -> bool
8336  __ne__(Atom self, Particle d) -> bool
8337  """
8338  return _IMP_atom.Atom___ne__(self, *args)
8339 
8340  def __le__(self, *args):
8341  r"""
8342  __le__(Atom self, Atom o) -> bool
8343  __le__(Atom self, Particle d) -> bool
8344  """
8345  return _IMP_atom.Atom___le__(self, *args)
8346 
8347  def __lt__(self, *args):
8348  r"""
8349  __lt__(Atom self, Atom o) -> bool
8350  __lt__(Atom self, Particle d) -> bool
8351  """
8352  return _IMP_atom.Atom___lt__(self, *args)
8353 
8354  def __ge__(self, *args):
8355  r"""
8356  __ge__(Atom self, Atom o) -> bool
8357  __ge__(Atom self, Particle d) -> bool
8358  """
8359  return _IMP_atom.Atom___ge__(self, *args)
8360 
8361  def __gt__(self, *args):
8362  r"""
8363  __gt__(Atom self, Atom o) -> bool
8364  __gt__(Atom self, Particle d) -> bool
8365  """
8366  return _IMP_atom.Atom___gt__(self, *args)
8367 
8368  def __hash__(self):
8369  r"""__hash__(Atom self) -> std::size_t"""
8370  return _IMP_atom.Atom___hash__(self)
8371 
8372  def __str__(self):
8373  r"""__str__(Atom self) -> std::string"""
8374  return _IMP_atom.Atom___str__(self)
8375 
8376  def __repr__(self):
8377  r"""__repr__(Atom self) -> std::string"""
8378  return _IMP_atom.Atom___repr__(self)
8379 
8380  def _get_as_binary(self):
8381  r"""_get_as_binary(Atom self) -> PyObject *"""
8382  return _IMP_atom.Atom__get_as_binary(self)
8383 
8384  def _set_from_binary(self, p):
8385  r"""_set_from_binary(Atom self, PyObject * p)"""
8386  return _IMP_atom.Atom__set_from_binary(self, p)
8387 
8388  def __getstate__(self):
8389  p = self._get_as_binary()
8390  if len(self.__dict__) > 1:
8391  d = self.__dict__.copy()
8392  del d['this']
8393  p = (d, p)
8394  return p
8395 
8396  def __setstate__(self, p):
8397  if not hasattr(self, 'this'):
8398  self.__init__()
8399  if isinstance(p, tuple):
8400  d, p = p
8401  self.__dict__.update(d)
8402  return self._set_from_binary(p)
8403 
8404  __swig_destroy__ = _IMP_atom.delete_Atom
8405 
8406 # Register Atom in _IMP_atom:
8407 _IMP_atom.Atom_swigregister(Atom)
8408 cvar = _IMP_atom.cvar
8409 AT_UNKNOWN = cvar.AT_UNKNOWN
8410 AT_N = cvar.AT_N
8411 AT_CA = cvar.AT_CA
8412 AT_C = cvar.AT_C
8413 AT_O = cvar.AT_O
8414 AT_H = cvar.AT_H
8415 AT_H1 = cvar.AT_H1
8416 AT_H2 = cvar.AT_H2
8417 AT_H3 = cvar.AT_H3
8418 AT_HA = cvar.AT_HA
8419 AT_HA1 = cvar.AT_HA1
8420 AT_HA2 = cvar.AT_HA2
8421 AT_HA3 = cvar.AT_HA3
8422 AT_CB = cvar.AT_CB
8423 AT_HB = cvar.AT_HB
8424 AT_HB1 = cvar.AT_HB1
8425 AT_HB2 = cvar.AT_HB2
8426 AT_HB3 = cvar.AT_HB3
8427 AT_OXT = cvar.AT_OXT
8428 AT_CH3 = cvar.AT_CH3
8429 AT_CH = cvar.AT_CH
8430 AT_CG = cvar.AT_CG
8431 AT_CG1 = cvar.AT_CG1
8432 AT_CG2 = cvar.AT_CG2
8433 AT_HG = cvar.AT_HG
8434 AT_HG1 = cvar.AT_HG1
8435 AT_HG2 = cvar.AT_HG2
8436 AT_HG3 = cvar.AT_HG3
8437 AT_HG11 = cvar.AT_HG11
8438 AT_HG21 = cvar.AT_HG21
8439 AT_HG31 = cvar.AT_HG31
8440 AT_HG12 = cvar.AT_HG12
8441 AT_HG13 = cvar.AT_HG13
8442 AT_HG22 = cvar.AT_HG22
8443 AT_HG23 = cvar.AT_HG23
8444 AT_HG32 = cvar.AT_HG32
8445 AT_OG = cvar.AT_OG
8446 AT_OG1 = cvar.AT_OG1
8447 AT_SG = cvar.AT_SG
8448 AT_CD = cvar.AT_CD
8449 AT_CD1 = cvar.AT_CD1
8450 AT_CD2 = cvar.AT_CD2
8451 AT_HD = cvar.AT_HD
8452 AT_HD1 = cvar.AT_HD1
8453 AT_HD2 = cvar.AT_HD2
8454 AT_HD3 = cvar.AT_HD3
8455 AT_HD11 = cvar.AT_HD11
8456 AT_HD21 = cvar.AT_HD21
8457 AT_HD31 = cvar.AT_HD31
8458 AT_HD12 = cvar.AT_HD12
8459 AT_HD13 = cvar.AT_HD13
8460 AT_HD22 = cvar.AT_HD22
8461 AT_HD23 = cvar.AT_HD23
8462 AT_HD32 = cvar.AT_HD32
8463 AT_SD = cvar.AT_SD
8464 AT_OD1 = cvar.AT_OD1
8465 AT_OD2 = cvar.AT_OD2
8466 AT_ND1 = cvar.AT_ND1
8467 AT_ND2 = cvar.AT_ND2
8468 AT_CE = cvar.AT_CE
8469 AT_CE1 = cvar.AT_CE1
8470 AT_CE2 = cvar.AT_CE2
8471 AT_CE3 = cvar.AT_CE3
8472 AT_HE = cvar.AT_HE
8473 AT_HE1 = cvar.AT_HE1
8474 AT_HE2 = cvar.AT_HE2
8475 AT_HE3 = cvar.AT_HE3
8476 AT_HE21 = cvar.AT_HE21
8477 AT_HE22 = cvar.AT_HE22
8478 AT_OE1 = cvar.AT_OE1
8479 AT_OE2 = cvar.AT_OE2
8480 AT_NE = cvar.AT_NE
8481 AT_NE1 = cvar.AT_NE1
8482 AT_NE2 = cvar.AT_NE2
8483 AT_CZ = cvar.AT_CZ
8484 AT_CZ2 = cvar.AT_CZ2
8485 AT_CZ3 = cvar.AT_CZ3
8486 AT_NZ = cvar.AT_NZ
8487 AT_HZ = cvar.AT_HZ
8488 AT_HZ1 = cvar.AT_HZ1
8489 AT_HZ2 = cvar.AT_HZ2
8490 AT_HZ3 = cvar.AT_HZ3
8491 AT_CH2 = cvar.AT_CH2
8492 AT_NH1 = cvar.AT_NH1
8493 AT_NH2 = cvar.AT_NH2
8494 AT_OH = cvar.AT_OH
8495 AT_HH = cvar.AT_HH
8496 AT_HH11 = cvar.AT_HH11
8497 AT_HH21 = cvar.AT_HH21
8498 AT_HH2 = cvar.AT_HH2
8499 AT_HH12 = cvar.AT_HH12
8500 AT_HH22 = cvar.AT_HH22
8501 AT_HH13 = cvar.AT_HH13
8502 AT_HH23 = cvar.AT_HH23
8503 AT_HH33 = cvar.AT_HH33
8504 AT_P = cvar.AT_P
8505 AT_OP1 = cvar.AT_OP1
8506 AT_OP2 = cvar.AT_OP2
8507 AT_OP3 = cvar.AT_OP3
8508 AT_O5p = cvar.AT_O5p
8509 AT_C5p = cvar.AT_C5p
8510 AT_H5p = cvar.AT_H5p
8511 AT_H5pp = cvar.AT_H5pp
8512 AT_C4p = cvar.AT_C4p
8513 AT_H4p = cvar.AT_H4p
8514 AT_O4p = cvar.AT_O4p
8515 AT_C1p = cvar.AT_C1p
8516 AT_H1p = cvar.AT_H1p
8517 AT_C3p = cvar.AT_C3p
8518 AT_H3p = cvar.AT_H3p
8519 AT_O3p = cvar.AT_O3p
8520 AT_C2p = cvar.AT_C2p
8521 AT_H2p = cvar.AT_H2p
8522 AT_H2pp = cvar.AT_H2pp
8523 AT_O2p = cvar.AT_O2p
8524 AT_HO2p = cvar.AT_HO2p
8525 AT_N9 = cvar.AT_N9
8526 AT_C8 = cvar.AT_C8
8527 AT_H8 = cvar.AT_H8
8528 AT_N7 = cvar.AT_N7
8529 AT_C5 = cvar.AT_C5
8530 AT_C4 = cvar.AT_C4
8531 AT_N3 = cvar.AT_N3
8532 AT_C2 = cvar.AT_C2
8533 AT_N1 = cvar.AT_N1
8534 AT_C6 = cvar.AT_C6
8535 AT_N6 = cvar.AT_N6
8536 AT_H61 = cvar.AT_H61
8537 AT_H62 = cvar.AT_H62
8538 AT_O6 = cvar.AT_O6
8539 AT_N2 = cvar.AT_N2
8540 AT_NT = cvar.AT_NT
8541 AT_H21 = cvar.AT_H21
8542 AT_H22 = cvar.AT_H22
8543 AT_H6 = cvar.AT_H6
8544 AT_H5 = cvar.AT_H5
8545 AT_O2 = cvar.AT_O2
8546 AT_N4 = cvar.AT_N4
8547 AT_H41 = cvar.AT_H41
8548 AT_H42 = cvar.AT_H42
8549 AT_O4 = cvar.AT_O4
8550 AT_C7 = cvar.AT_C7
8551 AT_H71 = cvar.AT_H71
8552 AT_H72 = cvar.AT_H72
8553 AT_H73 = cvar.AT_H73
8554 AT_O1A = cvar.AT_O1A
8555 AT_O2A = cvar.AT_O2A
8556 AT_O3A = cvar.AT_O3A
8557 AT_O1B = cvar.AT_O1B
8558 AT_O2B = cvar.AT_O2B
8559 AT_O3B = cvar.AT_O3B
8560 AT_CAY = cvar.AT_CAY
8561 AT_CY = cvar.AT_CY
8562 AT_OY = cvar.AT_OY
8563 AT_CAT = cvar.AT_CAT
8564 
8565 
8566 def get_residue(*args):
8567  r"""
8568  get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8569  get_residue(Atom d, bool nothrow=False) -> Residue
8570  """
8571  return _IMP_atom.get_residue(*args)
8572 
8573 def get_atom(rd, at):
8574  r"""get_atom(Residue rd, AtomType at) -> Atom"""
8575  return _IMP_atom.get_atom(rd, at)
8576 
8577 def add_atom_type(name, e):
8578  r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8579  return _IMP_atom.add_atom_type(name, e)
8580 
8581 def get_element_for_atom_type(at):
8582  r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8583  return _IMP_atom.get_element_for_atom_type(at)
8584 
8585 def get_atom_type_exists(name):
8586  r"""get_atom_type_exists(std::string name) -> bool"""
8587  return _IMP_atom.get_atom_type_exists(name)
8588 class Residue(Hierarchy):
8589  r"""Proxy of C++ IMP::atom::Residue class."""
8590 
8591  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8592 
8593  def __init__(self, *args):
8594  r"""
8595  __init__(Residue self) -> Residue
8596  __init__(Residue self, Model m, ParticleIndex id) -> Residue
8597  __init__(Residue self, _ParticleAdaptor d) -> Residue
8598  """
8599  _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8600 
8601  def show(self, *args):
8602  r"""show(Residue self, _ostream out=std::cout)"""
8603  return _IMP_atom.Residue_show(self, *args)
8604 
8605  @staticmethod
8606  def setup_particle(*args):
8607  r"""
8608  setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8609  setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8610  setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8611  setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8612  setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8613  setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8614  setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8615  setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8616  """
8617  return _IMP_atom.Residue_setup_particle(*args)
8618 
8619  @staticmethod
8620  def get_is_setup(*args):
8621  r"""
8622  get_is_setup(_ParticleAdaptor p) -> bool
8623  get_is_setup(Model m, ParticleIndex pi) -> bool
8624  """
8625  return _IMP_atom.Residue_get_is_setup(*args)
8626 
8627  def get_residue_type(self):
8628  r"""get_residue_type(Residue self) -> ResidueType"""
8629  return _IMP_atom.Residue_get_residue_type(self)
8630 
8631  def set_residue_type(self, t):
8632  r"""set_residue_type(Residue self, ResidueType t)"""
8633  return _IMP_atom.Residue_set_residue_type(self, t)
8634 
8635  def get_is_protein(self):
8636  r"""get_is_protein(Residue self) -> bool"""
8637  return _IMP_atom.Residue_get_is_protein(self)
8638 
8639  def get_is_dna(self):
8640  r"""get_is_dna(Residue self) -> bool"""
8641  return _IMP_atom.Residue_get_is_dna(self)
8642 
8643  def get_is_rna(self):
8644  r"""get_is_rna(Residue self) -> bool"""
8645  return _IMP_atom.Residue_get_is_rna(self)
8646 
8647  def get_index(self):
8648  r"""get_index(Residue self) -> IMP::Int"""
8649  return _IMP_atom.Residue_get_index(self)
8650 
8651  def set_index(self, t):
8652  r"""set_index(Residue self, IMP::Int t)"""
8653  return _IMP_atom.Residue_set_index(self, t)
8654 
8655  def get_insertion_code(self):
8656  r"""get_insertion_code(Residue self) -> char"""
8657  return _IMP_atom.Residue_get_insertion_code(self)
8658 
8659  def set_insertion_code(self, insertion_code):
8660  r"""set_insertion_code(Residue self, char insertion_code)"""
8661  return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8662 
8663  @staticmethod
8664  def get_index_key():
8665  r"""get_index_key() -> IntKey"""
8666  return _IMP_atom.Residue_get_index_key()
8667 
8668  @staticmethod
8669  def get_residue_type_key():
8670  r"""get_residue_type_key() -> IntKey"""
8671  return _IMP_atom.Residue_get_residue_type_key()
8672 
8673  @staticmethod
8674  def get_insertion_code_key():
8675  r"""get_insertion_code_key() -> IntKey"""
8676  return _IMP_atom.Residue_get_insertion_code_key()
8677 
8678  @staticmethod
8679  def get_type_changed_key():
8680  r"""get_type_changed_key() -> TriggerKey"""
8681  return _IMP_atom.Residue_get_type_changed_key()
8682 
8683  def add_attribute(self, *args):
8684  r"""
8685  add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8686  add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8687  add_attribute(Residue self, IntKey a0, IMP::Int a1)
8688  add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8689  add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8690  add_attribute(Residue self, StringKey a0, IMP::String a1)
8691  add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8692  add_attribute(Residue self, ObjectKey a0, Object a1)
8693  add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8694  add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8695  add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8696  add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8697  """
8698  return _IMP_atom.Residue_add_attribute(self, *args)
8699 
8700  def get_value(self, *args):
8701  r"""
8702  get_value(Residue self, FloatKey a0) -> IMP::Float
8703  get_value(Residue self, IntKey a0) -> IMP::Int
8704  get_value(Residue self, FloatsKey a0) -> IMP::Floats
8705  get_value(Residue self, IntsKey a0) -> IMP::Ints
8706  get_value(Residue self, StringKey a0) -> IMP::String
8707  get_value(Residue self, ParticleIndexKey a0) -> Particle
8708  get_value(Residue self, ObjectKey a0) -> Object
8709  get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8710  get_value(Residue self, SparseIntKey a0) -> IMP::Int
8711  get_value(Residue self, SparseStringKey a0) -> IMP::String
8712  get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8713  """
8714  return _IMP_atom.Residue_get_value(self, *args)
8715 
8716  def set_value(self, *args):
8717  r"""
8718  set_value(Residue self, FloatKey a0, IMP::Float a1)
8719  set_value(Residue self, IntKey a0, IMP::Int a1)
8720  set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8721  set_value(Residue self, IntsKey a0, IMP::Ints a1)
8722  set_value(Residue self, StringKey a0, IMP::String a1)
8723  set_value(Residue self, ParticleIndexKey a0, Particle a1)
8724  set_value(Residue self, ObjectKey a0, Object a1)
8725  set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8726  set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8727  set_value(Residue self, SparseStringKey a0, IMP::String a1)
8728  set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8729  """
8730  return _IMP_atom.Residue_set_value(self, *args)
8731 
8732  def remove_attribute(self, *args):
8733  r"""
8734  remove_attribute(Residue self, FloatKey a0)
8735  remove_attribute(Residue self, IntKey a0)
8736  remove_attribute(Residue self, FloatsKey a0)
8737  remove_attribute(Residue self, IntsKey a0)
8738  remove_attribute(Residue self, StringKey a0)
8739  remove_attribute(Residue self, ParticleIndexKey a0)
8740  remove_attribute(Residue self, ObjectKey a0)
8741  remove_attribute(Residue self, SparseFloatKey a0)
8742  remove_attribute(Residue self, SparseIntKey a0)
8743  remove_attribute(Residue self, SparseStringKey a0)
8744  remove_attribute(Residue self, SparseParticleIndexKey a0)
8745  """
8746  return _IMP_atom.Residue_remove_attribute(self, *args)
8747 
8748  def has_attribute(self, *args):
8749  r"""
8750  has_attribute(Residue self, FloatKey a0) -> bool
8751  has_attribute(Residue self, IntKey a0) -> bool
8752  has_attribute(Residue self, FloatsKey a0) -> bool
8753  has_attribute(Residue self, IntsKey a0) -> bool
8754  has_attribute(Residue self, StringKey a0) -> bool
8755  has_attribute(Residue self, ParticleIndexKey a0) -> bool
8756  has_attribute(Residue self, ObjectKey a0) -> bool
8757  has_attribute(Residue self, SparseFloatKey a0) -> bool
8758  has_attribute(Residue self, SparseIntKey a0) -> bool
8759  has_attribute(Residue self, SparseStringKey a0) -> bool
8760  has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8761  """
8762  return _IMP_atom.Residue_has_attribute(self, *args)
8763 
8764  def get_derivative(self, a0):
8765  r"""get_derivative(Residue self, FloatKey a0) -> double"""
8766  return _IMP_atom.Residue_get_derivative(self, a0)
8767 
8768  def get_name(self):
8769  r"""get_name(Residue self) -> std::string"""
8770  return _IMP_atom.Residue_get_name(self)
8771 
8772  def clear_caches(self):
8773  r"""clear_caches(Residue self)"""
8774  return _IMP_atom.Residue_clear_caches(self)
8775 
8776  def set_name(self, a0):
8777  r"""set_name(Residue self, std::string a0)"""
8778  return _IMP_atom.Residue_set_name(self, a0)
8779 
8780  def set_check_level(self, a0):
8781  r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8782  return _IMP_atom.Residue_set_check_level(self, a0)
8783 
8784  def add_to_derivative(self, a0, a1, a2):
8785  r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8786  return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8787 
8788  def set_is_optimized(self, a0, a1):
8789  r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8790  return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8791 
8792  def get_is_optimized(self, a0):
8793  r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8794  return _IMP_atom.Residue_get_is_optimized(self, a0)
8795 
8796  def get_check_level(self):
8797  r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8798  return _IMP_atom.Residue_get_check_level(self)
8799 
8800  def __eq__(self, *args):
8801  r"""
8802  __eq__(Residue self, Residue o) -> bool
8803  __eq__(Residue self, Particle d) -> bool
8804  """
8805  return _IMP_atom.Residue___eq__(self, *args)
8806 
8807  def __ne__(self, *args):
8808  r"""
8809  __ne__(Residue self, Residue o) -> bool
8810  __ne__(Residue self, Particle d) -> bool
8811  """
8812  return _IMP_atom.Residue___ne__(self, *args)
8813 
8814  def __le__(self, *args):
8815  r"""
8816  __le__(Residue self, Residue o) -> bool
8817  __le__(Residue self, Particle d) -> bool
8818  """
8819  return _IMP_atom.Residue___le__(self, *args)
8820 
8821  def __lt__(self, *args):
8822  r"""
8823  __lt__(Residue self, Residue o) -> bool
8824  __lt__(Residue self, Particle d) -> bool
8825  """
8826  return _IMP_atom.Residue___lt__(self, *args)
8827 
8828  def __ge__(self, *args):
8829  r"""
8830  __ge__(Residue self, Residue o) -> bool
8831  __ge__(Residue self, Particle d) -> bool
8832  """
8833  return _IMP_atom.Residue___ge__(self, *args)
8834 
8835  def __gt__(self, *args):
8836  r"""
8837  __gt__(Residue self, Residue o) -> bool
8838  __gt__(Residue self, Particle d) -> bool
8839  """
8840  return _IMP_atom.Residue___gt__(self, *args)
8841 
8842  def __hash__(self):
8843  r"""__hash__(Residue self) -> std::size_t"""
8844  return _IMP_atom.Residue___hash__(self)
8845 
8846  def __str__(self):
8847  r"""__str__(Residue self) -> std::string"""
8848  return _IMP_atom.Residue___str__(self)
8849 
8850  def __repr__(self):
8851  r"""__repr__(Residue self) -> std::string"""
8852  return _IMP_atom.Residue___repr__(self)
8853 
8854  def _get_as_binary(self):
8855  r"""_get_as_binary(Residue self) -> PyObject *"""
8856  return _IMP_atom.Residue__get_as_binary(self)
8857 
8858  def _set_from_binary(self, p):
8859  r"""_set_from_binary(Residue self, PyObject * p)"""
8860  return _IMP_atom.Residue__set_from_binary(self, p)
8861 
8862  def __getstate__(self):
8863  p = self._get_as_binary()
8864  if len(self.__dict__) > 1:
8865  d = self.__dict__.copy()
8866  del d['this']
8867  p = (d, p)
8868  return p
8869 
8870  def __setstate__(self, p):
8871  if not hasattr(self, 'this'):
8872  self.__init__()
8873  if isinstance(p, tuple):
8874  d, p = p
8875  self.__dict__.update(d)
8876  return self._set_from_binary(p)
8877 
8878  __swig_destroy__ = _IMP_atom.delete_Residue
8879 
8880 # Register Residue in _IMP_atom:
8881 _IMP_atom.Residue_swigregister(Residue)
8882 UNK = cvar.UNK
8883 GLY = cvar.GLY
8884 ALA = cvar.ALA
8885 VAL = cvar.VAL
8886 LEU = cvar.LEU
8887 ILE = cvar.ILE
8888 SER = cvar.SER
8889 THR = cvar.THR
8890 CYS = cvar.CYS
8891 MET = cvar.MET
8892 PRO = cvar.PRO
8893 ASP = cvar.ASP
8894 ASN = cvar.ASN
8895 GLU = cvar.GLU
8896 GLN = cvar.GLN
8897 LYS = cvar.LYS
8898 ARG = cvar.ARG
8899 HIS = cvar.HIS
8900 PHE = cvar.PHE
8901 TYR = cvar.TYR
8902 TRP = cvar.TRP
8903 ACE = cvar.ACE
8904 NH2 = cvar.NH2
8905 MSE = cvar.MSE
8906 ADE = cvar.ADE
8907 URA = cvar.URA
8908 CYT = cvar.CYT
8909 GUA = cvar.GUA
8910 THY = cvar.THY
8911 DADE = cvar.DADE
8912 DURA = cvar.DURA
8913 DCYT = cvar.DCYT
8914 DGUA = cvar.DGUA
8915 DTHY = cvar.DTHY
8916 HOH = cvar.HOH
8917 HEME = cvar.HEME
8918 POP = cvar.POP
8919 
8920 
8921 def get_next_residue(rd):
8922  r"""get_next_residue(Residue rd) -> Hierarchy"""
8923  return _IMP_atom.get_next_residue(rd)
8924 
8925 def get_previous_residue(rd):
8926  r"""get_previous_residue(Residue rd) -> Hierarchy"""
8927  return _IMP_atom.get_previous_residue(rd)
8928 
8929 def get_one_letter_code(c):
8930  r"""get_one_letter_code(ResidueType c) -> char"""
8931  return _IMP_atom.get_one_letter_code(c)
8932 BALLS = _IMP_atom.BALLS
8933 
8934 DENSITIES = _IMP_atom.DENSITIES
8935 
8936 class Representation(Hierarchy):
8937  r"""Proxy of C++ IMP::atom::Representation class."""
8938 
8939  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8940 
8941  @staticmethod
8942  def setup_particle(*args):
8943  r"""
8944  setup_particle(Model m, ParticleIndex pi) -> Representation
8945  setup_particle(_ParticleAdaptor pa) -> Representation
8946  setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8947  setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8948  setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8949  setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8950  """
8951  return _IMP_atom.Representation_setup_particle(*args)
8952 
8953  def __init__(self, *args):
8954  r"""
8955  __init__(Representation self) -> Representation
8956  __init__(Representation self, Model m, ParticleIndex id) -> Representation
8957  __init__(Representation self, _ParticleAdaptor d) -> Representation
8958  """
8959  _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8960 
8961  def show(self, *args):
8962  r"""show(Representation self, _ostream out=std::cout)"""
8963  return _IMP_atom.Representation_show(self, *args)
8964 
8965  @staticmethod
8966  def get_is_setup(*args):
8967  r"""
8968  get_is_setup(_ParticleAdaptor p) -> bool
8969  get_is_setup(Model m, ParticleIndex pi) -> bool
8970  """
8971  return _IMP_atom.Representation_get_is_setup(*args)
8972 
8973  def get_representation(self, *args):
8974  r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8975  return _IMP_atom.Representation_get_representation(self, *args)
8976 
8977  def get_representations(self, *args):
8978  r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8979  return _IMP_atom.Representation_get_representations(self, *args)
8980 
8981  def add_representation(self, *args):
8982  r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8983  return _IMP_atom.Representation_add_representation(self, *args)
8984 
8985  def get_resolutions(self, *args):
8986  r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8987  return _IMP_atom.Representation_get_resolutions(self, *args)
8988 
8989  def remove_representation(self, rep):
8990  r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8991  return _IMP_atom.Representation_remove_representation(self, rep)
8992 
8993  def update_parents(self):
8994  r"""update_parents(Representation self)"""
8995  return _IMP_atom.Representation_update_parents(self)
8996 
8997  def add_attribute(self, *args):
8998  r"""
8999  add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
9000  add_attribute(Representation self, FloatKey a0, IMP::Float a1)
9001  add_attribute(Representation self, IntKey a0, IMP::Int a1)
9002  add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
9003  add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
9004  add_attribute(Representation self, StringKey a0, IMP::String a1)
9005  add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
9006  add_attribute(Representation self, ObjectKey a0, Object a1)
9007  add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
9008  add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
9009  add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
9010  add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
9011  """
9012  return _IMP_atom.Representation_add_attribute(self, *args)
9013 
9014  def get_value(self, *args):
9015  r"""
9016  get_value(Representation self, FloatKey a0) -> IMP::Float
9017  get_value(Representation self, IntKey a0) -> IMP::Int
9018  get_value(Representation self, FloatsKey a0) -> IMP::Floats
9019  get_value(Representation self, IntsKey a0) -> IMP::Ints
9020  get_value(Representation self, StringKey a0) -> IMP::String
9021  get_value(Representation self, ParticleIndexKey a0) -> Particle
9022  get_value(Representation self, ObjectKey a0) -> Object
9023  get_value(Representation self, SparseFloatKey a0) -> IMP::Float
9024  get_value(Representation self, SparseIntKey a0) -> IMP::Int
9025  get_value(Representation self, SparseStringKey a0) -> IMP::String
9026  get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
9027  """
9028  return _IMP_atom.Representation_get_value(self, *args)
9029 
9030  def set_value(self, *args):
9031  r"""
9032  set_value(Representation self, FloatKey a0, IMP::Float a1)
9033  set_value(Representation self, IntKey a0, IMP::Int a1)
9034  set_value(Representation self, FloatsKey a0, IMP::Floats a1)
9035  set_value(Representation self, IntsKey a0, IMP::Ints a1)
9036  set_value(Representation self, StringKey a0, IMP::String a1)
9037  set_value(Representation self, ParticleIndexKey a0, Particle a1)
9038  set_value(Representation self, ObjectKey a0, Object a1)
9039  set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
9040  set_value(Representation self, SparseIntKey a0, IMP::Int a1)
9041  set_value(Representation self, SparseStringKey a0, IMP::String a1)
9042  set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
9043  """
9044  return _IMP_atom.Representation_set_value(self, *args)
9045 
9046  def remove_attribute(self, *args):
9047  r"""
9048  remove_attribute(Representation self, FloatKey a0)
9049  remove_attribute(Representation self, IntKey a0)
9050  remove_attribute(Representation self, FloatsKey a0)
9051  remove_attribute(Representation self, IntsKey a0)
9052  remove_attribute(Representation self, StringKey a0)
9053  remove_attribute(Representation self, ParticleIndexKey a0)
9054  remove_attribute(Representation self, ObjectKey a0)
9055  remove_attribute(Representation self, SparseFloatKey a0)
9056  remove_attribute(Representation self, SparseIntKey a0)
9057  remove_attribute(Representation self, SparseStringKey a0)
9058  remove_attribute(Representation self, SparseParticleIndexKey a0)
9059  """
9060  return _IMP_atom.Representation_remove_attribute(self, *args)
9061 
9062  def has_attribute(self, *args):
9063  r"""
9064  has_attribute(Representation self, FloatKey a0) -> bool
9065  has_attribute(Representation self, IntKey a0) -> bool
9066  has_attribute(Representation self, FloatsKey a0) -> bool
9067  has_attribute(Representation self, IntsKey a0) -> bool
9068  has_attribute(Representation self, StringKey a0) -> bool
9069  has_attribute(Representation self, ParticleIndexKey a0) -> bool
9070  has_attribute(Representation self, ObjectKey a0) -> bool
9071  has_attribute(Representation self, SparseFloatKey a0) -> bool
9072  has_attribute(Representation self, SparseIntKey a0) -> bool
9073  has_attribute(Representation self, SparseStringKey a0) -> bool
9074  has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
9075  """
9076  return _IMP_atom.Representation_has_attribute(self, *args)
9077 
9078  def get_derivative(self, a0):
9079  r"""get_derivative(Representation self, FloatKey a0) -> double"""
9080  return _IMP_atom.Representation_get_derivative(self, a0)
9081 
9082  def get_name(self):
9083  r"""get_name(Representation self) -> std::string"""
9084  return _IMP_atom.Representation_get_name(self)
9085 
9086  def clear_caches(self):
9087  r"""clear_caches(Representation self)"""
9088  return _IMP_atom.Representation_clear_caches(self)
9089 
9090  def set_name(self, a0):
9091  r"""set_name(Representation self, std::string a0)"""
9092  return _IMP_atom.Representation_set_name(self, a0)
9093 
9094  def set_check_level(self, a0):
9095  r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
9096  return _IMP_atom.Representation_set_check_level(self, a0)
9097 
9098  def add_to_derivative(self, a0, a1, a2):
9099  r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9100  return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
9101 
9102  def set_is_optimized(self, a0, a1):
9103  r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
9104  return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
9105 
9106  def get_is_optimized(self, a0):
9107  r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
9108  return _IMP_atom.Representation_get_is_optimized(self, a0)
9109 
9110  def get_check_level(self):
9111  r"""get_check_level(Representation self) -> IMP::CheckLevel"""
9112  return _IMP_atom.Representation_get_check_level(self)
9113 
9114  def __eq__(self, *args):
9115  r"""
9116  __eq__(Representation self, Representation o) -> bool
9117  __eq__(Representation self, Particle d) -> bool
9118  """
9119  return _IMP_atom.Representation___eq__(self, *args)
9120 
9121  def __ne__(self, *args):
9122  r"""
9123  __ne__(Representation self, Representation o) -> bool
9124  __ne__(Representation self, Particle d) -> bool
9125  """
9126  return _IMP_atom.Representation___ne__(self, *args)
9127 
9128  def __le__(self, *args):
9129  r"""
9130  __le__(Representation self, Representation o) -> bool
9131  __le__(Representation self, Particle d) -> bool
9132  """
9133  return _IMP_atom.Representation___le__(self, *args)
9134 
9135  def __lt__(self, *args):
9136  r"""
9137  __lt__(Representation self, Representation o) -> bool
9138  __lt__(Representation self, Particle d) -> bool
9139  """
9140  return _IMP_atom.Representation___lt__(self, *args)
9141 
9142  def __ge__(self, *args):
9143  r"""
9144  __ge__(Representation self, Representation o) -> bool
9145  __ge__(Representation self, Particle d) -> bool
9146  """
9147  return _IMP_atom.Representation___ge__(self, *args)
9148 
9149  def __gt__(self, *args):
9150  r"""
9151  __gt__(Representation self, Representation o) -> bool
9152  __gt__(Representation self, Particle d) -> bool
9153  """
9154  return _IMP_atom.Representation___gt__(self, *args)
9155 
9156  def __hash__(self):
9157  r"""__hash__(Representation self) -> std::size_t"""
9158  return _IMP_atom.Representation___hash__(self)
9159 
9160  def __str__(self):
9161  r"""__str__(Representation self) -> std::string"""
9162  return _IMP_atom.Representation___str__(self)
9163 
9164  def __repr__(self):
9165  r"""__repr__(Representation self) -> std::string"""
9166  return _IMP_atom.Representation___repr__(self)
9167 
9168  def _get_as_binary(self):
9169  r"""_get_as_binary(Representation self) -> PyObject *"""
9170  return _IMP_atom.Representation__get_as_binary(self)
9171 
9172  def _set_from_binary(self, p):
9173  r"""_set_from_binary(Representation self, PyObject * p)"""
9174  return _IMP_atom.Representation__set_from_binary(self, p)
9175 
9176  def __getstate__(self):
9177  p = self._get_as_binary()
9178  if len(self.__dict__) > 1:
9179  d = self.__dict__.copy()
9180  del d['this']
9181  p = (d, p)
9182  return p
9183 
9184  def __setstate__(self, p):
9185  if not hasattr(self, 'this'):
9186  self.__init__()
9187  if isinstance(p, tuple):
9188  d, p = p
9189  self.__dict__.update(d)
9190  return self._set_from_binary(p)
9191 
9192  __swig_destroy__ = _IMP_atom.delete_Representation
9193 
9194 # Register Representation in _IMP_atom:
9195 _IMP_atom.Representation_swigregister(Representation)
9196 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
9197 
9198 
9199 def get_resolution(*args):
9200  r"""
9201  get_resolution(Model m, ParticleIndex pi) -> double
9202  get_resolution(Hierarchy h) -> double
9203  """
9204  return _IMP_atom.get_resolution(*args)
9205 
9206 def get_representation(h, nothrow=False):
9207  r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
9208  return _IMP_atom.get_representation(h, nothrow)
9209 
9210 def show_with_representations(*args):
9211  r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
9212  return _IMP_atom.show_with_representations(*args)
9213 class State(Hierarchy):
9214  r"""Proxy of C++ IMP::atom::State class."""
9215 
9216  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9217 
9218  @staticmethod
9219  def setup_particle(*args):
9220  r"""
9221  setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
9222  setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
9223  setup_particle(Model m, ParticleIndex pi, State other) -> State
9224  setup_particle(_ParticleAdaptor pa, State other) -> State
9225  """
9226  return _IMP_atom.State_setup_particle(*args)
9227 
9228  def __init__(self, *args):
9229  r"""
9230  __init__(State self) -> State
9231  __init__(State self, Model m, ParticleIndex id) -> State
9232  __init__(State self, _ParticleAdaptor d) -> State
9233  """
9234  _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
9235 
9236  def show(self, *args):
9237  r"""show(State self, _ostream out=std::cout)"""
9238  return _IMP_atom.State_show(self, *args)
9239 
9240  @staticmethod
9241  def get_is_setup(*args):
9242  r"""
9243  get_is_setup(_ParticleAdaptor p) -> bool
9244  get_is_setup(Model m, ParticleIndex pi) -> bool
9245  """
9246  return _IMP_atom.State_get_is_setup(*args)
9247 
9248  def get_state_index(self):
9249  r"""get_state_index(State self) -> unsigned int"""
9250  return _IMP_atom.State_get_state_index(self)
9251 
9252  def add_attribute(self, *args):
9253  r"""
9254  add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
9255  add_attribute(State self, FloatKey a0, IMP::Float a1)
9256  add_attribute(State self, IntKey a0, IMP::Int a1)
9257  add_attribute(State self, FloatsKey a0, IMP::Floats a1)
9258  add_attribute(State self, IntsKey a0, IMP::Ints a1)
9259  add_attribute(State self, StringKey a0, IMP::String a1)
9260  add_attribute(State self, ParticleIndexKey a0, Particle a1)
9261  add_attribute(State self, ObjectKey a0, Object a1)
9262  add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
9263  add_attribute(State self, SparseIntKey a0, IMP::Int a1)
9264  add_attribute(State self, SparseStringKey a0, IMP::String a1)
9265  add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9266  """
9267  return _IMP_atom.State_add_attribute(self, *args)
9268 
9269  def get_value(self, *args):
9270  r"""
9271  get_value(State self, FloatKey a0) -> IMP::Float
9272  get_value(State self, IntKey a0) -> IMP::Int
9273  get_value(State self, FloatsKey a0) -> IMP::Floats
9274  get_value(State self, IntsKey a0) -> IMP::Ints
9275  get_value(State self, StringKey a0) -> IMP::String
9276  get_value(State self, ParticleIndexKey a0) -> Particle
9277  get_value(State self, ObjectKey a0) -> Object
9278  get_value(State self, SparseFloatKey a0) -> IMP::Float
9279  get_value(State self, SparseIntKey a0) -> IMP::Int
9280  get_value(State self, SparseStringKey a0) -> IMP::String
9281  get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
9282  """
9283  return _IMP_atom.State_get_value(self, *args)
9284 
9285  def set_value(self, *args):
9286  r"""
9287  set_value(State self, FloatKey a0, IMP::Float a1)
9288  set_value(State self, IntKey a0, IMP::Int a1)
9289  set_value(State self, FloatsKey a0, IMP::Floats a1)
9290  set_value(State self, IntsKey a0, IMP::Ints a1)
9291  set_value(State self, StringKey a0, IMP::String a1)
9292  set_value(State self, ParticleIndexKey a0, Particle a1)
9293  set_value(State self, ObjectKey a0, Object a1)
9294  set_value(State self, SparseFloatKey a0, IMP::Float a1)
9295  set_value(State self, SparseIntKey a0, IMP::Int a1)
9296  set_value(State self, SparseStringKey a0, IMP::String a1)
9297  set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9298  """
9299  return _IMP_atom.State_set_value(self, *args)
9300 
9301  def remove_attribute(self, *args):
9302  r"""
9303  remove_attribute(State self, FloatKey a0)
9304  remove_attribute(State self, IntKey a0)
9305  remove_attribute(State self, FloatsKey a0)
9306  remove_attribute(State self, IntsKey a0)
9307  remove_attribute(State self, StringKey a0)
9308  remove_attribute(State self, ParticleIndexKey a0)
9309  remove_attribute(State self, ObjectKey a0)
9310  remove_attribute(State self, SparseFloatKey a0)
9311  remove_attribute(State self, SparseIntKey a0)
9312  remove_attribute(State self, SparseStringKey a0)
9313  remove_attribute(State self, SparseParticleIndexKey a0)
9314  """
9315  return _IMP_atom.State_remove_attribute(self, *args)
9316 
9317  def has_attribute(self, *args):
9318  r"""
9319  has_attribute(State self, FloatKey a0) -> bool
9320  has_attribute(State self, IntKey a0) -> bool
9321  has_attribute(State self, FloatsKey a0) -> bool
9322  has_attribute(State self, IntsKey a0) -> bool
9323  has_attribute(State self, StringKey a0) -> bool
9324  has_attribute(State self, ParticleIndexKey a0) -> bool
9325  has_attribute(State self, ObjectKey a0) -> bool
9326  has_attribute(State self, SparseFloatKey a0) -> bool
9327  has_attribute(State self, SparseIntKey a0) -> bool
9328  has_attribute(State self, SparseStringKey a0) -> bool
9329  has_attribute(State self, SparseParticleIndexKey a0) -> bool
9330  """
9331  return _IMP_atom.State_has_attribute(self, *args)
9332 
9333  def get_derivative(self, a0):
9334  r"""get_derivative(State self, FloatKey a0) -> double"""
9335  return _IMP_atom.State_get_derivative(self, a0)
9336 
9337  def get_name(self):
9338  r"""get_name(State self) -> std::string"""
9339  return _IMP_atom.State_get_name(self)
9340 
9341  def clear_caches(self):
9342  r"""clear_caches(State self)"""
9343  return _IMP_atom.State_clear_caches(self)
9344 
9345  def set_name(self, a0):
9346  r"""set_name(State self, std::string a0)"""
9347  return _IMP_atom.State_set_name(self, a0)
9348 
9349  def set_check_level(self, a0):
9350  r"""set_check_level(State self, IMP::CheckLevel a0)"""
9351  return _IMP_atom.State_set_check_level(self, a0)
9352 
9353  def add_to_derivative(self, a0, a1, a2):
9354  r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9355  return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
9356 
9357  def set_is_optimized(self, a0, a1):
9358  r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
9359  return _IMP_atom.State_set_is_optimized(self, a0, a1)
9360 
9361  def get_is_optimized(self, a0):
9362  r"""get_is_optimized(State self, FloatKey a0) -> bool"""
9363  return _IMP_atom.State_get_is_optimized(self, a0)
9364 
9365  def get_check_level(self):
9366  r"""get_check_level(State self) -> IMP::CheckLevel"""
9367  return _IMP_atom.State_get_check_level(self)
9368 
9369  def __eq__(self, *args):
9370  r"""
9371  __eq__(State self, State o) -> bool
9372  __eq__(State self, Particle d) -> bool
9373  """
9374  return _IMP_atom.State___eq__(self, *args)
9375 
9376  def __ne__(self, *args):
9377  r"""
9378  __ne__(State self, State o) -> bool
9379  __ne__(State self, Particle d) -> bool
9380  """
9381  return _IMP_atom.State___ne__(self, *args)
9382 
9383  def __le__(self, *args):
9384  r"""
9385  __le__(State self, State o) -> bool
9386  __le__(State self, Particle d) -> bool
9387  """
9388  return _IMP_atom.State___le__(self, *args)
9389 
9390  def __lt__(self, *args):
9391  r"""
9392  __lt__(State self, State o) -> bool
9393  __lt__(State self, Particle d) -> bool
9394  """
9395  return _IMP_atom.State___lt__(self, *args)
9396 
9397  def __ge__(self, *args):
9398  r"""
9399  __ge__(State self, State o) -> bool
9400  __ge__(State self, Particle d) -> bool
9401  """
9402  return _IMP_atom.State___ge__(self, *args)
9403 
9404  def __gt__(self, *args):
9405  r"""
9406  __gt__(State self, State o) -> bool
9407  __gt__(State self, Particle d) -> bool
9408  """
9409  return _IMP_atom.State___gt__(self, *args)
9410 
9411  def __hash__(self):
9412  r"""__hash__(State self) -> std::size_t"""
9413  return _IMP_atom.State___hash__(self)
9414 
9415  def __str__(self):
9416  r"""__str__(State self) -> std::string"""
9417  return _IMP_atom.State___str__(self)
9418 
9419  def __repr__(self):
9420  r"""__repr__(State self) -> std::string"""
9421  return _IMP_atom.State___repr__(self)
9422 
9423  def _get_as_binary(self):
9424  r"""_get_as_binary(State self) -> PyObject *"""
9425  return _IMP_atom.State__get_as_binary(self)
9426 
9427  def _set_from_binary(self, p):
9428  r"""_set_from_binary(State self, PyObject * p)"""
9429  return _IMP_atom.State__set_from_binary(self, p)
9430 
9431  def __getstate__(self):
9432  p = self._get_as_binary()
9433  if len(self.__dict__) > 1:
9434  d = self.__dict__.copy()
9435  del d['this']
9436  p = (d, p)
9437  return p
9438 
9439  def __setstate__(self, p):
9440  if not hasattr(self, 'this'):
9441  self.__init__()
9442  if isinstance(p, tuple):
9443  d, p = p
9444  self.__dict__.update(d)
9445  return self._set_from_binary(p)
9446 
9447  __swig_destroy__ = _IMP_atom.delete_State
9448 
9449 # Register State in _IMP_atom:
9450 _IMP_atom.State_swigregister(State)
9451 
9452 def get_state_index(h):
9453  r"""get_state_index(Hierarchy h) -> int"""
9454  return _IMP_atom.get_state_index(h)
9455 
9456 def get_phi_dihedral_atoms(rd):
9457  r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9458  return _IMP_atom.get_phi_dihedral_atoms(rd)
9459 
9460 def get_psi_dihedral_atoms(rd):
9461  r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9462  return _IMP_atom.get_psi_dihedral_atoms(rd)
9463 
9464 def get_omega_dihedral_atoms(rd):
9465  r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9466  return _IMP_atom.get_omega_dihedral_atoms(rd)
9467 
9469  r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9470  return _IMP_atom.get_chi_dihedral_atom_types(rt)
9471 
9472 def get_chi_dihedral_atoms(rd):
9473  r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9474  return _IMP_atom.get_chi_dihedral_atoms(rd)
9475 
9477  r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9478  return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9479 class Molecule(Hierarchy):
9480  r"""Proxy of C++ IMP::atom::Molecule class."""
9481 
9482  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9483 
9484  def __init__(self, *args):
9485  r"""
9486  __init__(Molecule self) -> Molecule
9487  __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9488  __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9489  """
9490  _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9491 
9492  def show(self, *args):
9493  r"""show(Molecule self, _ostream out=std::cout)"""
9494  return _IMP_atom.Molecule_show(self, *args)
9495 
9496  @staticmethod
9497  def setup_particle(*args):
9498  r"""
9499  setup_particle(Model m, ParticleIndex pi) -> Molecule
9500  setup_particle(_ParticleAdaptor pa) -> Molecule
9501  setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9502  setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9503  """
9504  return _IMP_atom.Molecule_setup_particle(*args)
9505 
9506  @staticmethod
9507  def get_is_setup(*args):
9508  r"""
9509  get_is_setup(_ParticleAdaptor p) -> bool
9510  get_is_setup(Model m, ParticleIndex pi) -> bool
9511  """
9512  return _IMP_atom.Molecule_get_is_setup(*args)
9513 
9514  def add_attribute(self, *args):
9515  r"""
9516  add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9517  add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9518  add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9519  add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9520  add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9521  add_attribute(Molecule self, StringKey a0, IMP::String a1)
9522  add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9523  add_attribute(Molecule self, ObjectKey a0, Object a1)
9524  add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9525  add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9526  add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9527  add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9528  """
9529  return _IMP_atom.Molecule_add_attribute(self, *args)
9530 
9531  def get_value(self, *args):
9532  r"""
9533  get_value(Molecule self, FloatKey a0) -> IMP::Float
9534  get_value(Molecule self, IntKey a0) -> IMP::Int
9535  get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9536  get_value(Molecule self, IntsKey a0) -> IMP::Ints
9537  get_value(Molecule self, StringKey a0) -> IMP::String
9538  get_value(Molecule self, ParticleIndexKey a0) -> Particle
9539  get_value(Molecule self, ObjectKey a0) -> Object
9540  get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9541  get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9542  get_value(Molecule self, SparseStringKey a0) -> IMP::String
9543  get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9544  """
9545  return _IMP_atom.Molecule_get_value(self, *args)
9546 
9547  def set_value(self, *args):
9548  r"""
9549  set_value(Molecule self, FloatKey a0, IMP::Float a1)
9550  set_value(Molecule self, IntKey a0, IMP::Int a1)
9551  set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9552  set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9553  set_value(Molecule self, StringKey a0, IMP::String a1)
9554  set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9555  set_value(Molecule self, ObjectKey a0, Object a1)
9556  set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9557  set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9558  set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9559  set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9560  """
9561  return _IMP_atom.Molecule_set_value(self, *args)
9562 
9563  def remove_attribute(self, *args):
9564  r"""
9565  remove_attribute(Molecule self, FloatKey a0)
9566  remove_attribute(Molecule self, IntKey a0)
9567  remove_attribute(Molecule self, FloatsKey a0)
9568  remove_attribute(Molecule self, IntsKey a0)
9569  remove_attribute(Molecule self, StringKey a0)
9570  remove_attribute(Molecule self, ParticleIndexKey a0)
9571  remove_attribute(Molecule self, ObjectKey a0)
9572  remove_attribute(Molecule self, SparseFloatKey a0)
9573  remove_attribute(Molecule self, SparseIntKey a0)
9574  remove_attribute(Molecule self, SparseStringKey a0)
9575  remove_attribute(Molecule self, SparseParticleIndexKey a0)
9576  """
9577  return _IMP_atom.Molecule_remove_attribute(self, *args)
9578 
9579  def has_attribute(self, *args):
9580  r"""
9581  has_attribute(Molecule self, FloatKey a0) -> bool
9582  has_attribute(Molecule self, IntKey a0) -> bool
9583  has_attribute(Molecule self, FloatsKey a0) -> bool
9584  has_attribute(Molecule self, IntsKey a0) -> bool
9585  has_attribute(Molecule self, StringKey a0) -> bool
9586  has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9587  has_attribute(Molecule self, ObjectKey a0) -> bool
9588  has_attribute(Molecule self, SparseFloatKey a0) -> bool
9589  has_attribute(Molecule self, SparseIntKey a0) -> bool
9590  has_attribute(Molecule self, SparseStringKey a0) -> bool
9591  has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9592  """
9593  return _IMP_atom.Molecule_has_attribute(self, *args)
9594 
9595  def get_derivative(self, a0):
9596  r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9597  return _IMP_atom.Molecule_get_derivative(self, a0)
9598 
9599  def get_name(self):
9600  r"""get_name(Molecule self) -> std::string"""
9601  return _IMP_atom.Molecule_get_name(self)
9602 
9603  def clear_caches(self):
9604  r"""clear_caches(Molecule self)"""
9605  return _IMP_atom.Molecule_clear_caches(self)
9606 
9607  def set_name(self, a0):
9608  r"""set_name(Molecule self, std::string a0)"""
9609  return _IMP_atom.Molecule_set_name(self, a0)
9610 
9611  def set_check_level(self, a0):
9612  r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9613  return _IMP_atom.Molecule_set_check_level(self, a0)
9614 
9615  def add_to_derivative(self, a0, a1, a2):
9616  r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9617  return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9618 
9619  def set_is_optimized(self, a0, a1):
9620  r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9621  return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9622 
9623  def get_is_optimized(self, a0):
9624  r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9625  return _IMP_atom.Molecule_get_is_optimized(self, a0)
9626 
9627  def get_check_level(self):
9628  r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9629  return _IMP_atom.Molecule_get_check_level(self)
9630 
9631  def __eq__(self, *args):
9632  r"""
9633  __eq__(Molecule self, Molecule o) -> bool
9634  __eq__(Molecule self, Particle d) -> bool
9635  """
9636  return _IMP_atom.Molecule___eq__(self, *args)
9637 
9638  def __ne__(self, *args):
9639  r"""
9640  __ne__(Molecule self, Molecule o) -> bool
9641  __ne__(Molecule self, Particle d) -> bool
9642  """
9643  return _IMP_atom.Molecule___ne__(self, *args)
9644 
9645  def __le__(self, *args):
9646  r"""
9647  __le__(Molecule self, Molecule o) -> bool
9648  __le__(Molecule self, Particle d) -> bool
9649  """
9650  return _IMP_atom.Molecule___le__(self, *args)
9651 
9652  def __lt__(self, *args):
9653  r"""
9654  __lt__(Molecule self, Molecule o) -> bool
9655  __lt__(Molecule self, Particle d) -> bool
9656  """
9657  return _IMP_atom.Molecule___lt__(self, *args)
9658 
9659  def __ge__(self, *args):
9660  r"""
9661  __ge__(Molecule self, Molecule o) -> bool
9662  __ge__(Molecule self, Particle d) -> bool
9663  """
9664  return _IMP_atom.Molecule___ge__(self, *args)
9665 
9666  def __gt__(self, *args):
9667  r"""
9668  __gt__(Molecule self, Molecule o) -> bool
9669  __gt__(Molecule self, Particle d) -> bool
9670  """
9671  return _IMP_atom.Molecule___gt__(self, *args)
9672 
9673  def __hash__(self):
9674  r"""__hash__(Molecule self) -> std::size_t"""
9675  return _IMP_atom.Molecule___hash__(self)
9676 
9677  def __str__(self):
9678  r"""__str__(Molecule self) -> std::string"""
9679  return _IMP_atom.Molecule___str__(self)
9680 
9681  def __repr__(self):
9682  r"""__repr__(Molecule self) -> std::string"""
9683  return _IMP_atom.Molecule___repr__(self)
9684 
9685  def _get_as_binary(self):
9686  r"""_get_as_binary(Molecule self) -> PyObject *"""
9687  return _IMP_atom.Molecule__get_as_binary(self)
9688 
9689  def _set_from_binary(self, p):
9690  r"""_set_from_binary(Molecule self, PyObject * p)"""
9691  return _IMP_atom.Molecule__set_from_binary(self, p)
9692 
9693  def __getstate__(self):
9694  p = self._get_as_binary()
9695  if len(self.__dict__) > 1:
9696  d = self.__dict__.copy()
9697  del d['this']
9698  p = (d, p)
9699  return p
9700 
9701  def __setstate__(self, p):
9702  if not hasattr(self, 'this'):
9703  self.__init__()
9704  if isinstance(p, tuple):
9705  d, p = p
9706  self.__dict__.update(d)
9707  return self._set_from_binary(p)
9708 
9709  __swig_destroy__ = _IMP_atom.delete_Molecule
9710 
9711 # Register Molecule in _IMP_atom:
9712 _IMP_atom.Molecule_swigregister(Molecule)
9713 
9714 def get_molecule_name(h):
9715  r"""get_molecule_name(Hierarchy h) -> std::string"""
9716  return _IMP_atom.get_molecule_name(h)
9717 class Copy(Molecule):
9718  r"""Proxy of C++ IMP::atom::Copy class."""
9719 
9720  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9721 
9722  @staticmethod
9723  def get_copy_index_key():
9724  r"""get_copy_index_key() -> IntKey"""
9725  return _IMP_atom.Copy_get_copy_index_key()
9726 
9727  def __init__(self, *args):
9728  r"""
9729  __init__(Copy self) -> Copy
9730  __init__(Copy self, Model m, ParticleIndex id) -> Copy
9731  __init__(Copy self, _ParticleAdaptor d) -> Copy
9732  """
9733  _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9734 
9735  def show(self, *args):
9736  r"""show(Copy self, _ostream out=std::cout)"""
9737  return _IMP_atom.Copy_show(self, *args)
9738 
9739  @staticmethod
9740  def setup_particle(*args):
9741  r"""
9742  setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9743  setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9744  """
9745  return _IMP_atom.Copy_setup_particle(*args)
9746 
9747  @staticmethod
9748  def get_is_setup(*args):
9749  r"""
9750  get_is_setup(_ParticleAdaptor p) -> bool
9751  get_is_setup(Model m, ParticleIndex pi) -> bool
9752  """
9753  return _IMP_atom.Copy_get_is_setup(*args)
9754 
9755  def get_copy_index(self):
9756  r"""get_copy_index(Copy self) -> int"""
9757  return _IMP_atom.Copy_get_copy_index(self)
9758 
9759  def add_attribute(self, *args):
9760  r"""
9761  add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9762  add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9763  add_attribute(Copy self, IntKey a0, IMP::Int a1)
9764  add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9765  add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9766  add_attribute(Copy self, StringKey a0, IMP::String a1)
9767  add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9768  add_attribute(Copy self, ObjectKey a0, Object a1)
9769  add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9770  add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9771  add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9772  add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9773  """
9774  return _IMP_atom.Copy_add_attribute(self, *args)
9775 
9776  def get_value(self, *args):
9777  r"""
9778  get_value(Copy self, FloatKey a0) -> IMP::Float
9779  get_value(Copy self, IntKey a0) -> IMP::Int
9780  get_value(Copy self, FloatsKey a0) -> IMP::Floats
9781  get_value(Copy self, IntsKey a0) -> IMP::Ints
9782  get_value(Copy self, StringKey a0) -> IMP::String
9783  get_value(Copy self, ParticleIndexKey a0) -> Particle
9784  get_value(Copy self, ObjectKey a0) -> Object
9785  get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9786  get_value(Copy self, SparseIntKey a0) -> IMP::Int
9787  get_value(Copy self, SparseStringKey a0) -> IMP::String
9788  get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9789  """
9790  return _IMP_atom.Copy_get_value(self, *args)
9791 
9792  def set_value(self, *args):
9793  r"""
9794  set_value(Copy self, FloatKey a0, IMP::Float a1)
9795  set_value(Copy self, IntKey a0, IMP::Int a1)
9796  set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9797  set_value(Copy self, IntsKey a0, IMP::Ints a1)
9798  set_value(Copy self, StringKey a0, IMP::String a1)
9799  set_value(Copy self, ParticleIndexKey a0, Particle a1)
9800  set_value(Copy self, ObjectKey a0, Object a1)
9801  set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9802  set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9803  set_value(Copy self, SparseStringKey a0, IMP::String a1)
9804  set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9805  """
9806  return _IMP_atom.Copy_set_value(self, *args)
9807 
9808  def remove_attribute(self, *args):
9809  r"""
9810  remove_attribute(Copy self, FloatKey a0)
9811  remove_attribute(Copy self, IntKey a0)
9812  remove_attribute(Copy self, FloatsKey a0)
9813  remove_attribute(Copy self, IntsKey a0)
9814  remove_attribute(Copy self, StringKey a0)
9815  remove_attribute(Copy self, ParticleIndexKey a0)
9816  remove_attribute(Copy self, ObjectKey a0)
9817  remove_attribute(Copy self, SparseFloatKey a0)
9818  remove_attribute(Copy self, SparseIntKey a0)
9819  remove_attribute(Copy self, SparseStringKey a0)
9820  remove_attribute(Copy self, SparseParticleIndexKey a0)
9821  """
9822  return _IMP_atom.Copy_remove_attribute(self, *args)
9823 
9824  def has_attribute(self, *args):
9825  r"""
9826  has_attribute(Copy self, FloatKey a0) -> bool
9827  has_attribute(Copy self, IntKey a0) -> bool
9828  has_attribute(Copy self, FloatsKey a0) -> bool
9829  has_attribute(Copy self, IntsKey a0) -> bool
9830  has_attribute(Copy self, StringKey a0) -> bool
9831  has_attribute(Copy self, ParticleIndexKey a0) -> bool
9832  has_attribute(Copy self, ObjectKey a0) -> bool
9833  has_attribute(Copy self, SparseFloatKey a0) -> bool
9834  has_attribute(Copy self, SparseIntKey a0) -> bool
9835  has_attribute(Copy self, SparseStringKey a0) -> bool
9836  has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9837  """
9838  return _IMP_atom.Copy_has_attribute(self, *args)
9839 
9840  def get_derivative(self, a0):
9841  r"""get_derivative(Copy self, FloatKey a0) -> double"""
9842  return _IMP_atom.Copy_get_derivative(self, a0)
9843 
9844  def get_name(self):
9845  r"""get_name(Copy self) -> std::string"""
9846  return _IMP_atom.Copy_get_name(self)
9847 
9848  def clear_caches(self):
9849  r"""clear_caches(Copy self)"""
9850  return _IMP_atom.Copy_clear_caches(self)
9851 
9852  def set_name(self, a0):
9853  r"""set_name(Copy self, std::string a0)"""
9854  return _IMP_atom.Copy_set_name(self, a0)
9855 
9856  def set_check_level(self, a0):
9857  r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9858  return _IMP_atom.Copy_set_check_level(self, a0)
9859 
9860  def add_to_derivative(self, a0, a1, a2):
9861  r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9862  return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9863 
9864  def set_is_optimized(self, a0, a1):
9865  r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9866  return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9867 
9868  def get_is_optimized(self, a0):
9869  r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9870  return _IMP_atom.Copy_get_is_optimized(self, a0)
9871 
9872  def get_check_level(self):
9873  r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9874  return _IMP_atom.Copy_get_check_level(self)
9875 
9876  def __eq__(self, *args):
9877  r"""
9878  __eq__(Copy self, Copy o) -> bool
9879  __eq__(Copy self, Particle d) -> bool
9880  """
9881  return _IMP_atom.Copy___eq__(self, *args)
9882 
9883  def __ne__(self, *args):
9884  r"""
9885  __ne__(Copy self, Copy o) -> bool
9886  __ne__(Copy self, Particle d) -> bool
9887  """
9888  return _IMP_atom.Copy___ne__(self, *args)
9889 
9890  def __le__(self, *args):
9891  r"""
9892  __le__(Copy self, Copy o) -> bool
9893  __le__(Copy self, Particle d) -> bool
9894  """
9895  return _IMP_atom.Copy___le__(self, *args)
9896 
9897  def __lt__(self, *args):
9898  r"""
9899  __lt__(Copy self, Copy o) -> bool
9900  __lt__(Copy self, Particle d) -> bool
9901  """
9902  return _IMP_atom.Copy___lt__(self, *args)
9903 
9904  def __ge__(self, *args):
9905  r"""
9906  __ge__(Copy self, Copy o) -> bool
9907  __ge__(Copy self, Particle d) -> bool
9908  """
9909  return _IMP_atom.Copy___ge__(self, *args)
9910 
9911  def __gt__(self, *args):
9912  r"""
9913  __gt__(Copy self, Copy o) -> bool
9914  __gt__(Copy self, Particle d) -> bool
9915  """
9916  return _IMP_atom.Copy___gt__(self, *args)
9917 
9918  def __hash__(self):
9919  r"""__hash__(Copy self) -> std::size_t"""
9920  return _IMP_atom.Copy___hash__(self)
9921 
9922  def __str__(self):
9923  r"""__str__(Copy self) -> std::string"""
9924  return _IMP_atom.Copy___str__(self)
9925 
9926  def __repr__(self):
9927  r"""__repr__(Copy self) -> std::string"""
9928  return _IMP_atom.Copy___repr__(self)
9929 
9930  def _get_as_binary(self):
9931  r"""_get_as_binary(Copy self) -> PyObject *"""
9932  return _IMP_atom.Copy__get_as_binary(self)
9933 
9934  def _set_from_binary(self, p):
9935  r"""_set_from_binary(Copy self, PyObject * p)"""
9936  return _IMP_atom.Copy__set_from_binary(self, p)
9937 
9938  def __getstate__(self):
9939  p = self._get_as_binary()
9940  if len(self.__dict__) > 1:
9941  d = self.__dict__.copy()
9942  del d['this']
9943  p = (d, p)
9944  return p
9945 
9946  def __setstate__(self, p):
9947  if not hasattr(self, 'this'):
9948  self.__init__()
9949  if isinstance(p, tuple):
9950  d, p = p
9951  self.__dict__.update(d)
9952  return self._set_from_binary(p)
9953 
9954  __swig_destroy__ = _IMP_atom.delete_Copy
9955 
9956 # Register Copy in _IMP_atom:
9957 _IMP_atom.Copy_swigregister(Copy)
9958 
9959 def get_copy_index(h):
9960  r"""get_copy_index(Hierarchy h) -> int"""
9961  return _IMP_atom.get_copy_index(h)
9962 class Chain(Hierarchy):
9963  r"""Proxy of C++ IMP::atom::Chain class."""
9964 
9965  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9966 
9967  def __init__(self, *args):
9968  r"""
9969  __init__(Chain self) -> Chain
9970  __init__(Chain self, Model m, ParticleIndex id) -> Chain
9971  __init__(Chain self, _ParticleAdaptor d) -> Chain
9972  """
9973  _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9974 
9975  def show(self, *args):
9976  r"""show(Chain self, _ostream out=std::cout)"""
9977  return _IMP_atom.Chain_show(self, *args)
9978 
9979  @staticmethod
9980  def setup_particle(*args):
9981  r"""
9982  setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9983  setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9984  setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9985  setup_particle(_ParticleAdaptor pa, char id) -> Chain
9986  setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9987  setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9988  """
9989  return _IMP_atom.Chain_setup_particle(*args)
9990 
9991  @staticmethod
9992  def get_is_setup(*args):
9993  r"""
9994  get_is_setup(_ParticleAdaptor p) -> bool
9995  get_is_setup(Model m, ParticleIndex pi) -> bool
9996  """
9997  return _IMP_atom.Chain_get_is_setup(*args)
9998 
9999  def get_id(self):
10000  r"""get_id(Chain self) -> std::string"""
10001  return _IMP_atom.Chain_get_id(self)
10002 
10003  def set_id(self, c):
10004  r"""set_id(Chain self, std::string c)"""
10005  return _IMP_atom.Chain_set_id(self, c)
10006 
10007  def get_label_asym_id(self):
10008  r"""get_label_asym_id(Chain self) -> std::string"""
10009  return _IMP_atom.Chain_get_label_asym_id(self)
10010 
10011  def set_label_asym_id(self, c):
10012  r"""set_label_asym_id(Chain self, std::string c)"""
10013  return _IMP_atom.Chain_set_label_asym_id(self, c)
10014 
10015  def get_sequence(self):
10016  r"""get_sequence(Chain self) -> std::string"""
10017  return _IMP_atom.Chain_get_sequence(self)
10018 
10019  def set_sequence(self, sequence):
10020  r"""set_sequence(Chain self, std::string sequence)"""
10021  return _IMP_atom.Chain_set_sequence(self, sequence)
10022 
10023  def get_sequence_offset(self):
10024  r"""get_sequence_offset(Chain self) -> int"""
10025  return _IMP_atom.Chain_get_sequence_offset(self)
10026 
10027  def set_sequence_offset(self, offset):
10028  r"""set_sequence_offset(Chain self, int offset)"""
10029  return _IMP_atom.Chain_set_sequence_offset(self, offset)
10030 
10031  def get_uniprot_accession(self):
10032  r"""get_uniprot_accession(Chain self) -> std::string"""
10033  return _IMP_atom.Chain_get_uniprot_accession(self)
10034 
10035  def set_uniprot_accession(self, accession):
10036  r"""set_uniprot_accession(Chain self, std::string accession)"""
10037  return _IMP_atom.Chain_set_uniprot_accession(self, accession)
10038 
10039  def get_chain_type(self):
10040  r"""get_chain_type(Chain self) -> ChainType"""
10041  return _IMP_atom.Chain_get_chain_type(self)
10042 
10043  def set_chain_type(self, t):
10044  r"""set_chain_type(Chain self, ChainType t)"""
10045  return _IMP_atom.Chain_set_chain_type(self, t)
10046 
10047  @staticmethod
10048  def get_id_key():
10049  r"""get_id_key() -> SparseStringKey"""
10050  return _IMP_atom.Chain_get_id_key()
10051 
10052  @staticmethod
10053  def get_label_asym_id_key():
10054  r"""get_label_asym_id_key() -> SparseStringKey"""
10055  return _IMP_atom.Chain_get_label_asym_id_key()
10056 
10057  @staticmethod
10058  def get_sequence_key():
10059  r"""get_sequence_key() -> SparseStringKey"""
10060  return _IMP_atom.Chain_get_sequence_key()
10061 
10062  @staticmethod
10063  def get_sequence_offset_key():
10064  r"""get_sequence_offset_key() -> SparseIntKey"""
10065  return _IMP_atom.Chain_get_sequence_offset_key()
10066 
10067  @staticmethod
10068  def get_uniprot_accession_key():
10069  r"""get_uniprot_accession_key() -> SparseStringKey"""
10070  return _IMP_atom.Chain_get_uniprot_accession_key()
10071 
10072  @staticmethod
10073  def get_chain_type_key():
10074  r"""get_chain_type_key() -> SparseIntKey"""
10075  return _IMP_atom.Chain_get_chain_type_key()
10076 
10077  def add_attribute(self, *args):
10078  r"""
10079  add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
10080  add_attribute(Chain self, FloatKey a0, IMP::Float a1)
10081  add_attribute(Chain self, IntKey a0, IMP::Int a1)
10082  add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
10083  add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
10084  add_attribute(Chain self, StringKey a0, IMP::String a1)
10085  add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
10086  add_attribute(Chain self, ObjectKey a0, Object a1)
10087  add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
10088  add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
10089  add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
10090  add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10091  """
10092  return _IMP_atom.Chain_add_attribute(self, *args)
10093 
10094  def get_value(self, *args):
10095  r"""
10096  get_value(Chain self, FloatKey a0) -> IMP::Float
10097  get_value(Chain self, IntKey a0) -> IMP::Int
10098  get_value(Chain self, FloatsKey a0) -> IMP::Floats
10099  get_value(Chain self, IntsKey a0) -> IMP::Ints
10100  get_value(Chain self, StringKey a0) -> IMP::String
10101  get_value(Chain self, ParticleIndexKey a0) -> Particle
10102  get_value(Chain self, ObjectKey a0) -> Object
10103  get_value(Chain self, SparseFloatKey a0) -> IMP::Float
10104  get_value(Chain self, SparseIntKey a0) -> IMP::Int
10105  get_value(Chain self, SparseStringKey a0) -> IMP::String
10106  get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
10107  """
10108  return _IMP_atom.Chain_get_value(self, *args)
10109 
10110  def set_value(self, *args):
10111  r"""
10112  set_value(Chain self, FloatKey a0, IMP::Float a1)
10113  set_value(Chain self, IntKey a0, IMP::Int a1)
10114  set_value(Chain self, FloatsKey a0, IMP::Floats a1)
10115  set_value(Chain self, IntsKey a0, IMP::Ints a1)
10116  set_value(Chain self, StringKey a0, IMP::String a1)
10117  set_value(Chain self, ParticleIndexKey a0, Particle a1)
10118  set_value(Chain self, ObjectKey a0, Object a1)
10119  set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
10120  set_value(Chain self, SparseIntKey a0, IMP::Int a1)
10121  set_value(Chain self, SparseStringKey a0, IMP::String a1)
10122  set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
10123  """
10124  return _IMP_atom.Chain_set_value(self, *args)
10125 
10126  def remove_attribute(self, *args):
10127  r"""
10128  remove_attribute(Chain self, FloatKey a0)
10129  remove_attribute(Chain self, IntKey a0)
10130  remove_attribute(Chain self, FloatsKey a0)
10131  remove_attribute(Chain self, IntsKey a0)
10132  remove_attribute(Chain self, StringKey a0)
10133  remove_attribute(Chain self, ParticleIndexKey a0)
10134  remove_attribute(Chain self, ObjectKey a0)
10135  remove_attribute(Chain self, SparseFloatKey a0)
10136  remove_attribute(Chain self, SparseIntKey a0)
10137  remove_attribute(Chain self, SparseStringKey a0)
10138  remove_attribute(Chain self, SparseParticleIndexKey a0)
10139  """
10140  return _IMP_atom.Chain_remove_attribute(self, *args)
10141 
10142  def has_attribute(self, *args):
10143  r"""
10144  has_attribute(Chain self, FloatKey a0) -> bool
10145  has_attribute(Chain self, IntKey a0) -> bool
10146  has_attribute(Chain self, FloatsKey a0) -> bool
10147  has_attribute(Chain self, IntsKey a0) -> bool
10148  has_attribute(Chain self, StringKey a0) -> bool
10149  has_attribute(Chain self, ParticleIndexKey a0) -> bool
10150  has_attribute(Chain self, ObjectKey a0) -> bool
10151  has_attribute(Chain self, SparseFloatKey a0) -> bool
10152  has_attribute(Chain self, SparseIntKey a0) -> bool
10153  has_attribute(Chain self, SparseStringKey a0) -> bool
10154  has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
10155  """
10156  return _IMP_atom.Chain_has_attribute(self, *args)
10157 
10158  def get_derivative(self, a0):
10159  r"""get_derivative(Chain self, FloatKey a0) -> double"""
10160  return _IMP_atom.Chain_get_derivative(self, a0)
10161 
10162  def get_name(self):
10163  r"""get_name(Chain self) -> std::string"""
10164  return _IMP_atom.Chain_get_name(self)
10165 
10166  def clear_caches(self):
10167  r"""clear_caches(Chain self)"""
10168  return _IMP_atom.Chain_clear_caches(self)
10169 
10170  def set_name(self, a0):
10171  r"""set_name(Chain self, std::string a0)"""
10172  return _IMP_atom.Chain_set_name(self, a0)
10173 
10174  def set_check_level(self, a0):
10175  r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
10176  return _IMP_atom.Chain_set_check_level(self, a0)
10177 
10178  def add_to_derivative(self, a0, a1, a2):
10179  r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10180  return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
10181 
10182  def set_is_optimized(self, a0, a1):
10183  r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
10184  return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
10185 
10186  def get_is_optimized(self, a0):
10187  r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
10188  return _IMP_atom.Chain_get_is_optimized(self, a0)
10189 
10190  def get_check_level(self):
10191  r"""get_check_level(Chain self) -> IMP::CheckLevel"""
10192  return _IMP_atom.Chain_get_check_level(self)
10193 
10194  def __eq__(self, *args):
10195  r"""
10196  __eq__(Chain self, Chain o) -> bool
10197  __eq__(Chain self, Particle d) -> bool
10198  """
10199  return _IMP_atom.Chain___eq__(self, *args)
10200 
10201  def __ne__(self, *args):
10202  r"""
10203  __ne__(Chain self, Chain o) -> bool
10204  __ne__(Chain self, Particle d) -> bool
10205  """
10206  return _IMP_atom.Chain___ne__(self, *args)
10207 
10208  def __le__(self, *args):
10209  r"""
10210  __le__(Chain self, Chain o) -> bool
10211  __le__(Chain self, Particle d) -> bool
10212  """
10213  return _IMP_atom.Chain___le__(self, *args)
10214 
10215  def __lt__(self, *args):
10216  r"""
10217  __lt__(Chain self, Chain o) -> bool
10218  __lt__(Chain self, Particle d) -> bool
10219  """
10220  return _IMP_atom.Chain___lt__(self, *args)
10221 
10222  def __ge__(self, *args):
10223  r"""
10224  __ge__(Chain self, Chain o) -> bool
10225  __ge__(Chain self, Particle d) -> bool
10226  """
10227  return _IMP_atom.Chain___ge__(self, *args)
10228 
10229  def __gt__(self, *args):
10230  r"""
10231  __gt__(Chain self, Chain o) -> bool
10232  __gt__(Chain self, Particle d) -> bool
10233  """
10234  return _IMP_atom.Chain___gt__(self, *args)
10235 
10236  def __hash__(self):
10237  r"""__hash__(Chain self) -> std::size_t"""
10238  return _IMP_atom.Chain___hash__(self)
10239 
10240  def __str__(self):
10241  r"""__str__(Chain self) -> std::string"""
10242  return _IMP_atom.Chain___str__(self)
10243 
10244  def __repr__(self):
10245  r"""__repr__(Chain self) -> std::string"""
10246  return _IMP_atom.Chain___repr__(self)
10247 
10248  def _get_as_binary(self):
10249  r"""_get_as_binary(Chain self) -> PyObject *"""
10250  return _IMP_atom.Chain__get_as_binary(self)
10251 
10252  def _set_from_binary(self, p):
10253  r"""_set_from_binary(Chain self, PyObject * p)"""
10254  return _IMP_atom.Chain__set_from_binary(self, p)
10255 
10256  def __getstate__(self):
10257  p = self._get_as_binary()
10258  if len(self.__dict__) > 1:
10259  d = self.__dict__.copy()
10260  del d['this']
10261  p = (d, p)
10262  return p
10263 
10264  def __setstate__(self, p):
10265  if not hasattr(self, 'this'):
10266  self.__init__()
10267  if isinstance(p, tuple):
10268  d, p = p
10269  self.__dict__.update(d)
10270  return self._set_from_binary(p)
10271 
10272  __swig_destroy__ = _IMP_atom.delete_Chain
10273 
10274 # Register Chain in _IMP_atom:
10275 _IMP_atom.Chain_swigregister(Chain)
10276 UnknownChainType = cvar.UnknownChainType
10277 DPolypeptide = cvar.DPolypeptide
10278 LPolypeptide = cvar.LPolypeptide
10279 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
10280 Polyribonucleotide = cvar.Polyribonucleotide
10281 DPolysaccharide = cvar.DPolysaccharide
10282 LPolysaccharide = cvar.LPolysaccharide
10283 Protein = cvar.Protein
10284 DNA = cvar.DNA
10285 RNA = cvar.RNA
10286 
10287 
10288 def get_chain(h):
10289  r"""get_chain(Hierarchy h) -> Chain"""
10290  return _IMP_atom.get_chain(h)
10291 
10292 def get_chain_id(h):
10293  r"""get_chain_id(Hierarchy h) -> std::string"""
10294  return _IMP_atom.get_chain_id(h)
10295 class Selection(IMP._ParticleIndexesAdaptor):
10296  r"""Proxy of C++ IMP::atom::Selection class."""
10297 
10298  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10299  NONE = _IMP_atom.Selection_NONE
10300 
10301  C = _IMP_atom.Selection_C
10302 
10303  N = _IMP_atom.Selection_N
10304 
10305 
10306  def __init__(self, *args):
10307  r"""
10308  __init__(Selection self) -> Selection
10309  __init__(Selection self, Hierarchy h) -> Selection
10310  __init__(Selection self, Particle h) -> Selection
10311  __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
10312  __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
10313  """
10314  _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
10315 
10316  def create_clone(self):
10317  r"""create_clone(Selection self) -> Selection"""
10318  return _IMP_atom.Selection_create_clone(self)
10319 
10320  def get_hierarchies(self):
10321  r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
10322  return _IMP_atom.Selection_get_hierarchies(self)
10323 
10324  def set_molecules(self, mols):
10325  r"""set_molecules(Selection self, IMP::Strings mols)"""
10326  return _IMP_atom.Selection_set_molecules(self, mols)
10327 
10328  def set_resolution(self, r):
10329  r"""set_resolution(Selection self, double r)"""
10330  return _IMP_atom.Selection_set_resolution(self, r)
10331 
10332  def set_representation_type(self, t):
10333  r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
10334  return _IMP_atom.Selection_set_representation_type(self, t)
10335 
10336  def set_state_index(self, state):
10337  r"""set_state_index(Selection self, int state)"""
10338  return _IMP_atom.Selection_set_state_index(self, state)
10339 
10340  def set_state_indexes(self, states):
10341  r"""set_state_indexes(Selection self, IMP::Ints states)"""
10342  return _IMP_atom.Selection_set_state_indexes(self, states)
10343 
10344  def set_terminus(self, t):
10345  r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
10346  return _IMP_atom.Selection_set_terminus(self, t)
10347 
10348  def set_element(self, e):
10349  r"""set_element(Selection self, IMP::atom::Element e)"""
10350  return _IMP_atom.Selection_set_element(self, e)
10351 
10352  def set_chain_ids(self, chains):
10353  r"""set_chain_ids(Selection self, IMP::Strings chains)"""
10354  return _IMP_atom.Selection_set_chain_ids(self, chains)
10355 
10356  def set_chains(self, chains):
10357  r"""set_chains(Selection self, IMP::Strings chains)"""
10358  return _IMP_atom.Selection_set_chains(self, chains)
10359 
10360  def set_residue_indexes(self, indexes):
10361  r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
10362  return _IMP_atom.Selection_set_residue_indexes(self, indexes)
10363 
10364  def set_atom_types(self, types):
10365  r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
10366  return _IMP_atom.Selection_set_atom_types(self, types)
10367 
10368  def set_residue_types(self, types):
10369  r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
10370  return _IMP_atom.Selection_set_residue_types(self, types)
10371 
10372  def set_domains(self, names):
10373  r"""set_domains(Selection self, IMP::Strings names)"""
10374  return _IMP_atom.Selection_set_domains(self, names)
10375 
10376  def set_molecule(self, mol):
10377  r"""set_molecule(Selection self, std::string mol)"""
10378  return _IMP_atom.Selection_set_molecule(self, mol)
10379 
10380  def set_chain_id(self, c):
10381  r"""set_chain_id(Selection self, std::string c)"""
10382  return _IMP_atom.Selection_set_chain_id(self, c)
10383 
10384  def set_chain(self, c):
10385  r"""set_chain(Selection self, std::string c)"""
10386  return _IMP_atom.Selection_set_chain(self, c)
10387 
10388  def set_residue_index(self, i):
10389  r"""set_residue_index(Selection self, int i)"""
10390  return _IMP_atom.Selection_set_residue_index(self, i)
10391 
10392  def set_atom_type(self, types):
10393  r"""set_atom_type(Selection self, AtomType types)"""
10394  return _IMP_atom.Selection_set_atom_type(self, types)
10395 
10396  def set_residue_type(self, type):
10397  r"""set_residue_type(Selection self, ResidueType type)"""
10398  return _IMP_atom.Selection_set_residue_type(self, type)
10399 
10400  def set_domain(self, name):
10401  r"""set_domain(Selection self, std::string name)"""
10402  return _IMP_atom.Selection_set_domain(self, name)
10403 
10404  def set_copy_index(self, copy):
10405  r"""set_copy_index(Selection self, unsigned int copy)"""
10406  return _IMP_atom.Selection_set_copy_index(self, copy)
10407 
10408  def set_copy_indexes(self, copies):
10409  r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
10410  return _IMP_atom.Selection_set_copy_indexes(self, copies)
10411 
10412  def set_particle_type(self, t):
10413  r"""set_particle_type(Selection self, ParticleType t)"""
10414  return _IMP_atom.Selection_set_particle_type(self, t)
10415 
10416  def set_particle_types(self, t):
10417  r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
10418  return _IMP_atom.Selection_set_particle_types(self, t)
10419 
10420  def set_hierarchy_types(self, types):
10421  r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
10422  return _IMP_atom.Selection_set_hierarchy_types(self, types)
10423 
10424  def set_intersection(self, s):
10425  r"""set_intersection(Selection self, Selection s)"""
10426  return _IMP_atom.Selection_set_intersection(self, s)
10427 
10428  def set_union(self, s):
10429  r"""set_union(Selection self, Selection s)"""
10430  return _IMP_atom.Selection_set_union(self, s)
10431 
10432  def set_symmetric_difference(self, s):
10433  r"""set_symmetric_difference(Selection self, Selection s)"""
10434  return _IMP_atom.Selection_set_symmetric_difference(self, s)
10435 
10436  def set_difference(self, s):
10437  r"""set_difference(Selection self, Selection s)"""
10438  return _IMP_atom.Selection_set_difference(self, s)
10439 
10440  def get_selected_particles(self, with_representation=True):
10441  r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10442  return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10443 
10444  def get_selected_particle_indexes(self, with_representation=True):
10445  r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10446  return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10447 
10448  def show(self, *args):
10449  r"""show(Selection self, _ostream out=std::cout)"""
10450  return _IMP_atom.Selection_show(self, *args)
10451 
10452  def __str__(self):
10453  r"""__str__(Selection self) -> std::string"""
10454  return _IMP_atom.Selection___str__(self)
10455 
10456  def __repr__(self):
10457  r"""__repr__(Selection self) -> std::string"""
10458  return _IMP_atom.Selection___repr__(self)
10459 
10460  def __init__(self, hierarchy=None,
10461  hierarchies=None, **params):
10462  if hierarchy and hierarchies:
10463  raise RuntimeError("You can't pass both hierarchy and hierarchies to Selection")
10464  if hierarchy:
10465  this = _IMP_atom.new_Selection(hierarchy)
10466  try: self.this.append(this)
10467  except: self.this = this
10468  elif hierarchies:
10469  this = _IMP_atom.new_Selection(hierarchies)
10470  try: self.this.append(this)
10471  except: self.this = this
10472  else:
10473  raise ValueError("Either hierarchy or hierarchies must be provided.")
10474  for k in params.keys():
10475  eval("self.set_%s(params[k])"%k)
10476 
10477  def union(self, s):
10478  news = self.create_clone()
10479  news.union_update(s)
10480  return news
10481  def intersection(self, s):
10482  news = self.create_clone()
10483  news.intersection_update(s)
10484  return news
10485  def symmetric_difference(self, s):
10486  news = self.create_clone()
10487  news.symmetric_difference_update(s)
10488  return news
10489  def difference(self, s):
10490  news = self.create_clone()
10491  news.difference_update(s)
10492  return news
10493  def union_update(self, s):
10494  self.set_union(s)
10495  return self
10496  def intersection_update(self, s):
10497  self.set_intersection(s)
10498  return self
10499  def symmetric_difference_update(self, s):
10500  self.set_symmetric_difference(s)
10501  return self
10502  def difference_update(self, s):
10503  self.set_difference(s)
10504  return self
10505  __or__ = union
10506  __and__ = intersection
10507  __xor__ = symmetric_difference
10508  __sub__ = difference
10509  __ior__ = union_update
10510  __iand__ = intersection_update
10511  __ixor__ = symmetric_difference_update
10512  __isub__ = difference_update
10513 
10514  __swig_destroy__ = _IMP_atom.delete_Selection
10515 
10516 # Register Selection in _IMP_atom:
10517 _IMP_atom.Selection_swigregister(Selection)
10518 
10519 def create_distance_restraint(*args):
10520  r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10521  return _IMP_atom.create_distance_restraint(*args)
10522 
10524  r"""
10525  create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10526  create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10527  """
10528  return _IMP_atom.create_connectivity_restraint(*args)
10529 
10531  r"""
10532  create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10533  create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10534  """
10535  return _IMP_atom.create_internal_connectivity_restraint(*args)
10536 
10537 def create_cover(*args):
10538  r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10539  return _IMP_atom.create_cover(*args)
10540 
10541 def get_mass(*args):
10542  r"""
10543  get_mass(ResidueType c) -> double
10544  get_mass(Selection s) -> double
10545  """
10546  return _IMP_atom.get_mass(*args)
10547 
10548 def get_volume(s):
10549  r"""get_volume(Selection s) -> double"""
10550  return _IMP_atom.get_volume(s)
10551 
10552 def get_surface_area(s):
10553  r"""get_surface_area(Selection s) -> double"""
10554  return _IMP_atom.get_surface_area(s)
10555 
10556 def get_leaves(*args):
10557  r"""
10558  get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10559  get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10560  get_leaves(Selection h) -> IMP::atom::Hierarchies
10561  """
10562  return _IMP_atom.get_leaves(*args)
10563 class SelectionGeometry(IMP.display.Geometry):
10564  r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10565 
10566  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10567 
10568  def __init__(self, *args):
10569  r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10570  _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10571 
10572  def get_version_info(self):
10573  r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10574  return _IMP_atom.SelectionGeometry_get_version_info(self)
10575  __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10576 
10577  def __str__(self):
10578  r"""__str__(SelectionGeometry self) -> std::string"""
10579  return _IMP_atom.SelectionGeometry___str__(self)
10580 
10581  def __repr__(self):
10582  r"""__repr__(SelectionGeometry self) -> std::string"""
10583  return _IMP_atom.SelectionGeometry___repr__(self)
10584 
10585  @staticmethod
10586  def get_from(o):
10587  return _object_cast_to_SelectionGeometry(o)
10588 
10589 
10590 # Register SelectionGeometry in _IMP_atom:
10591 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10592 
10593 def get_rmsd(*args):
10594  r"""
10595  get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10596  get_rmsd(Selection s0, Selection s1) -> double
10597  """
10598  return _IMP_atom.get_rmsd(*args)
10599 
10600 def get_rmsd_transforming_first(*args):
10601  r"""
10602  get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10603  get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10604  """
10605  return _IMP_atom.get_rmsd_transforming_first(*args)
10606 
10607 def get_placement_score(source, target):
10608  r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10609  return _IMP_atom.get_placement_score(source, target)
10610 
10611 def get_component_placement_score(ref1, ref2, mdl1, mdl2):
10612  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"""
10613  return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10614 
10615 def get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2):
10616  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"""
10617  return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10618 
10619 def get_radius_of_gyration(*args):
10620  r"""
10621  get_radius_of_gyration(Selection s) -> double
10622  get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10623  """
10624  return _IMP_atom.get_radius_of_gyration(*args)
10625 class ForceFieldParameters(IMP.Object):
10626  r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10627 
10628  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10629 
10630  def __init__(self):
10631  r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10632  _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10633 
10634  def get_radius(self, atom):
10635  r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10636  return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10637 
10638  def get_epsilon(self, atom):
10639  r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10640  return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10641 
10642  def add_radii(self, *args):
10643  r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10644  return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10645 
10646  def add_lennard_jones_types(self, mhd):
10647  r"""add_lennard_jones_types(ForceFieldParameters self, Hierarchy mhd)"""
10648  return _IMP_atom.ForceFieldParameters_add_lennard_jones_types(self, mhd)
10649 
10650  def add_bonds(self, mhd):
10651  r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10652  return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10653  __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10654 
10655  def __str__(self):
10656  r"""__str__(ForceFieldParameters self) -> std::string"""
10657  return _IMP_atom.ForceFieldParameters___str__(self)
10658 
10659  def __repr__(self):
10660  r"""__repr__(ForceFieldParameters self) -> std::string"""
10661  return _IMP_atom.ForceFieldParameters___repr__(self)
10662 
10663  @staticmethod
10664  def get_from(o):
10665  return _object_cast_to_ForceFieldParameters(o)
10666 
10667 
10668 # Register ForceFieldParameters in _IMP_atom:
10669 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10670 class CHARMMAtomTopology(object):
10671  r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10672 
10673  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10674 
10675  def __init__(self, *args):
10676  r"""
10677  __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10678  __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10679  __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10680  """
10681  _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10682 
10683  def get_name(self):
10684  r"""get_name(CHARMMAtomTopology self) -> std::string"""
10685  return _IMP_atom.CHARMMAtomTopology_get_name(self)
10686 
10687  def get_charmm_type(self):
10688  r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10689  return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10690 
10691  def get_charge(self):
10692  r"""get_charge(CHARMMAtomTopology self) -> double"""
10693  return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10694 
10695  def set_charmm_type(self, charmm_type):
10696  r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10697  return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10698 
10699  def set_charge(self, charge):
10700  r"""set_charge(CHARMMAtomTopology self, double charge)"""
10701  return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10702 
10703  def show(self, *args):
10704  r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10705  return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10706 
10707  def __str__(self):
10708  r"""__str__(CHARMMAtomTopology self) -> std::string"""
10709  return _IMP_atom.CHARMMAtomTopology___str__(self)
10710 
10711  def __repr__(self):
10712  r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10713  return _IMP_atom.CHARMMAtomTopology___repr__(self)
10714 
10715  def _get_as_binary(self):
10716  r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10717  return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10718 
10719  def _set_from_binary(self, p):
10720  r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10721  return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10722 
10723  def __getstate__(self):
10724  p = self._get_as_binary()
10725  if len(self.__dict__) > 1:
10726  d = self.__dict__.copy()
10727  del d['this']
10728  p = (d, p)
10729  return p
10730 
10731  def __setstate__(self, p):
10732  if not hasattr(self, 'this'):
10733  self.__init__()
10734  if isinstance(p, tuple):
10735  d, p = p
10736  self.__dict__.update(d)
10737  return self._set_from_binary(p)
10738 
10739  __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10740 
10741 # Register CHARMMAtomTopology in _IMP_atom:
10742 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10743 class CHARMMBondEndpoint(object):
10744  r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10745 
10746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10747 
10748  def __init__(self, atom_name, residue=None):
10749  r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10750  _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10751 
10752  def get_atom_name(self):
10753  r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10754  return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10755 
10756  def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10757  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"""
10758  return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10759 
10760  def show(self, *args):
10761  r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10762  return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10763 
10764  def __str__(self):
10765  r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10766  return _IMP_atom.CHARMMBondEndpoint___str__(self)
10767 
10768  def __repr__(self):
10769  r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10770  return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10771  __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10772 
10773 # Register CHARMMBondEndpoint in _IMP_atom:
10774 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10775 class CHARMMDihedral(object):
10776  r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10777 
10778  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10779  __repr__ = _swig_repr
10780 
10781  def __init__(self, atoms):
10782  r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10783  _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10784 
10785  def get_endpoint(self, i):
10786  r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10787  return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10788 
10789  def get_contains_atom(self, name):
10790  r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10791  return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10792 
10793  def show(self, *args):
10794  r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10795  return _IMP_atom.CHARMMDihedral_show(self, *args)
10796  __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10797 
10798 # Register CHARMMDihedral in _IMP_atom:
10799 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10800 class CHARMMInternalCoordinate(CHARMMDihedral):
10801  r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10802 
10803  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10804 
10805  def __init__(self, *args):
10806  r"""
10807  __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10808  __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
10809  """
10810  _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10811 
10812  def get_first_distance(self):
10813  r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10814  return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10815 
10816  def get_second_distance(self):
10817  r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10818  return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10819 
10820  def get_first_angle(self):
10821  r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10822  return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10823 
10824  def get_second_angle(self):
10825  r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10826  return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10827 
10828  def get_dihedral(self):
10829  r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10830  return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10831 
10832  def get_improper(self):
10833  r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10834  return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10835 
10836  def show(self, *args):
10837  r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10838  return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10839 
10840  def __str__(self):
10841  r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10842  return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10843 
10844  def __repr__(self):
10845  r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10846  return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10847  __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10848 
10849 # Register CHARMMInternalCoordinate in _IMP_atom:
10850 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10851 class CHARMMResidueTopologyBase(IMP.Object):
10852  r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10853 
10854  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10855 
10856  def __init__(self, *args, **kwargs):
10857  raise AttributeError("No constructor defined")
10858 
10859  def get_type(self):
10860  r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10861  return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10862 
10863  def get_number_of_atoms(self):
10864  r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10865  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10866 
10867  def add_atom(self, atom):
10868  r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10869  return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10870 
10871  def get_atom(self, *args):
10872  r"""
10873  get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10874  get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10875  get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10876  """
10877  return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10878 
10879  def get_number_of_bonds(self):
10880  r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10881  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10882 
10883  def add_bond(self, bond):
10884  r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10885  return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10886 
10887  def get_number_of_angles(self):
10888  r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10889  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10890 
10891  def add_angle(self, bond):
10892  r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10893  return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10894 
10895  def get_number_of_dihedrals(self):
10896  r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10897  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10898 
10899  def add_dihedral(self, bond):
10900  r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10901  return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10902 
10903  def get_number_of_impropers(self):
10904  r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10905  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10906 
10907  def add_improper(self, bond):
10908  r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10909  return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10910 
10911  def get_number_of_internal_coordinates(self):
10912  r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10913  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10914 
10915  def add_internal_coordinate(self, ic):
10916  r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10917  return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10918 
10919  def get_internal_coordinate(self, index):
10920  r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10921  return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10922 
10923  def get_bond(self, index):
10924  r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10925  return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10926 
10927  def get_angle(self, index):
10928  r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10929  return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10930 
10931  def get_dihedral(self, index):
10932  r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10933  return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10934 
10935  def get_improper(self, index):
10936  r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10937  return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10938 
10939  def get_version_info(self):
10940  r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10941  return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10942  __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10943 
10944  def __str__(self):
10945  r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10946  return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10947 
10948  def __repr__(self):
10949  r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10950  return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10951 
10952  @staticmethod
10953  def get_from(o):
10954  return _object_cast_to_CHARMMResidueTopologyBase(o)
10955 
10956 
10957 # Register CHARMMResidueTopologyBase in _IMP_atom:
10958 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10959 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10960  r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10961 
10962  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10963 
10964  def __init__(self, *args):
10965  r"""
10966  __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10967  __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10968  """
10969  _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10970 
10971  def remove_atom(self, name):
10972  r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10973  return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10974 
10975  def set_default_first_patch(self, patch):
10976  r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10977  return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10978 
10979  def set_default_last_patch(self, patch):
10980  r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10981  return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10982 
10983  def get_default_first_patch(self):
10984  r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10985  return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10986 
10987  def get_default_last_patch(self):
10988  r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10989  return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10990  __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10991 
10992  def __str__(self):
10993  r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10994  return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10995 
10996  def __repr__(self):
10997  r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10998  return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
10999 
11000  @staticmethod
11001  def get_from(o):
11002  return _object_cast_to_CHARMMIdealResidueTopology(o)
11003 
11004 
11005 # Register CHARMMIdealResidueTopology in _IMP_atom:
11006 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
11007 class CHARMMPatch(CHARMMResidueTopologyBase):
11008  r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
11009 
11010  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11011 
11012  def __init__(self, type):
11013  r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
11014  _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
11015 
11016  def add_removed_atom(self, name):
11017  r"""add_removed_atom(CHARMMPatch self, std::string name)"""
11018  return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
11019 
11020  def get_number_of_removed_atoms(self):
11021  r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
11022  return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
11023 
11024  def get_removed_atom(self, i):
11025  r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
11026  return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
11027 
11028  def apply(self, *args):
11029  r"""
11030  apply(CHARMMPatch self, CHARMMResidueTopology res)
11031  apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
11032  """
11033  return _IMP_atom.CHARMMPatch_apply(self, *args)
11034  __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
11035 
11036  def __str__(self):
11037  r"""__str__(CHARMMPatch self) -> std::string"""
11038  return _IMP_atom.CHARMMPatch___str__(self)
11039 
11040  def __repr__(self):
11041  r"""__repr__(CHARMMPatch self) -> std::string"""
11042  return _IMP_atom.CHARMMPatch___repr__(self)
11043 
11044  @staticmethod
11045  def get_from(o):
11046  return _object_cast_to_CHARMMPatch(o)
11047 
11048 
11049 # Register CHARMMPatch in _IMP_atom:
11050 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
11051 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
11052  r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
11053 
11054  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11055 
11056  def __init__(self, *args):
11057  r"""
11058  __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
11059  __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
11060  """
11061  _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
11062 
11063  def get_patched(self):
11064  r"""get_patched(CHARMMResidueTopology self) -> bool"""
11065  return _IMP_atom.CHARMMResidueTopology_get_patched(self)
11066 
11067  def set_patched(self, patched):
11068  r"""set_patched(CHARMMResidueTopology self, bool patched)"""
11069  return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
11070  __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
11071 
11072  def __str__(self):
11073  r"""__str__(CHARMMResidueTopology self) -> std::string"""
11074  return _IMP_atom.CHARMMResidueTopology___str__(self)
11075 
11076  def __repr__(self):
11077  r"""__repr__(CHARMMResidueTopology self) -> std::string"""
11078  return _IMP_atom.CHARMMResidueTopology___repr__(self)
11079 
11080  @staticmethod
11081  def get_from(o):
11082  return _object_cast_to_CHARMMResidueTopology(o)
11083 
11084 
11085 # Register CHARMMResidueTopology in _IMP_atom:
11086 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
11087 class CHARMMAtom(Atom):
11088  r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
11089 
11090  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11091 
11092  def __init__(self, *args):
11093  r"""
11094  __init__(CHARMMAtom self) -> CHARMMAtom
11095  __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
11096  __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
11097  """
11098  _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
11099 
11100  def show(self, *args):
11101  r"""show(CHARMMAtom self, _ostream out=std::cout)"""
11102  return _IMP_atom.CHARMMAtom_show(self, *args)
11103 
11104  @staticmethod
11105  def setup_particle(*args):
11106  r"""
11107  setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
11108  setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
11109  """
11110  return _IMP_atom.CHARMMAtom_setup_particle(*args)
11111 
11112  def get_charmm_type(self):
11113  r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
11114  return _IMP_atom.CHARMMAtom_get_charmm_type(self)
11115 
11116  def set_charmm_type(self, t):
11117  r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
11118  return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
11119 
11120  @staticmethod
11121  def get_is_setup(*args):
11122  r"""
11123  get_is_setup(_ParticleAdaptor p) -> bool
11124  get_is_setup(Model m, ParticleIndex pi) -> bool
11125  """
11126  return _IMP_atom.CHARMMAtom_get_is_setup(*args)
11127 
11128  @staticmethod
11129  def get_charmm_type_key():
11130  r"""get_charmm_type_key() -> StringKey"""
11131  return _IMP_atom.CHARMMAtom_get_charmm_type_key()
11132 
11133  def add_attribute(self, *args):
11134  r"""
11135  add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
11136  add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11137  add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
11138  add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11139  add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11140  add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
11141  add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11142  add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
11143  add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11144  add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11145  add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11146  add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11147  """
11148  return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
11149 
11150  def get_value(self, *args):
11151  r"""
11152  get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
11153  get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
11154  get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
11155  get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
11156  get_value(CHARMMAtom self, StringKey a0) -> IMP::String
11157  get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
11158  get_value(CHARMMAtom self, ObjectKey a0) -> Object
11159  get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
11160  get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
11161  get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
11162  get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
11163  """
11164  return _IMP_atom.CHARMMAtom_get_value(self, *args)
11165 
11166  def set_value(self, *args):
11167  r"""
11168  set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
11169  set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
11170  set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
11171  set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
11172  set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
11173  set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
11174  set_value(CHARMMAtom self, ObjectKey a0, Object a1)
11175  set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
11176  set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
11177  set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
11178  set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
11179  """
11180  return _IMP_atom.CHARMMAtom_set_value(self, *args)
11181 
11182  def remove_attribute(self, *args):
11183  r"""
11184  remove_attribute(CHARMMAtom self, FloatKey a0)
11185  remove_attribute(CHARMMAtom self, IntKey a0)
11186  remove_attribute(CHARMMAtom self, FloatsKey a0)
11187  remove_attribute(CHARMMAtom self, IntsKey a0)
11188  remove_attribute(CHARMMAtom self, StringKey a0)
11189  remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
11190  remove_attribute(CHARMMAtom self, ObjectKey a0)
11191  remove_attribute(CHARMMAtom self, SparseFloatKey a0)
11192  remove_attribute(CHARMMAtom self, SparseIntKey a0)
11193  remove_attribute(CHARMMAtom self, SparseStringKey a0)
11194  remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
11195  """
11196  return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
11197 
11198  def has_attribute(self, *args):
11199  r"""
11200  has_attribute(CHARMMAtom self, FloatKey a0) -> bool
11201  has_attribute(CHARMMAtom self, IntKey a0) -> bool
11202  has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
11203  has_attribute(CHARMMAtom self, IntsKey a0) -> bool
11204  has_attribute(CHARMMAtom self, StringKey a0) -> bool
11205  has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
11206  has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
11207  has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
11208  has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
11209  has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
11210  has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
11211  """
11212  return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
11213 
11214  def get_derivative(self, a0):
11215  r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
11216  return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
11217 
11218  def get_name(self):
11219  r"""get_name(CHARMMAtom self) -> std::string"""
11220  return _IMP_atom.CHARMMAtom_get_name(self)
11221 
11222  def clear_caches(self):
11223  r"""clear_caches(CHARMMAtom self)"""
11224  return _IMP_atom.CHARMMAtom_clear_caches(self)
11225 
11226  def set_name(self, a0):
11227  r"""set_name(CHARMMAtom self, std::string a0)"""
11228  return _IMP_atom.CHARMMAtom_set_name(self, a0)
11229 
11230  def set_check_level(self, a0):
11231  r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
11232  return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
11233 
11234  def add_to_derivative(self, a0, a1, a2):
11235  r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
11236  return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
11237 
11238  def set_is_optimized(self, a0, a1):
11239  r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
11240  return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
11241 
11242  def get_is_optimized(self, a0):
11243  r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
11244  return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
11245 
11246  def get_check_level(self):
11247  r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
11248  return _IMP_atom.CHARMMAtom_get_check_level(self)
11249 
11250  def __eq__(self, *args):
11251  r"""
11252  __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
11253  __eq__(CHARMMAtom self, Particle d) -> bool
11254  """
11255  return _IMP_atom.CHARMMAtom___eq__(self, *args)
11256 
11257  def __ne__(self, *args):
11258  r"""
11259  __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
11260  __ne__(CHARMMAtom self, Particle d) -> bool
11261  """
11262  return _IMP_atom.CHARMMAtom___ne__(self, *args)
11263 
11264  def __le__(self, *args):
11265  r"""
11266  __le__(CHARMMAtom self, CHARMMAtom o) -> bool
11267  __le__(CHARMMAtom self, Particle d) -> bool
11268  """
11269  return _IMP_atom.CHARMMAtom___le__(self, *args)
11270 
11271  def __lt__(self, *args):
11272  r"""
11273  __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
11274  __lt__(CHARMMAtom self, Particle d) -> bool
11275  """
11276  return _IMP_atom.CHARMMAtom___lt__(self, *args)
11277 
11278  def __ge__(self, *args):
11279  r"""
11280  __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
11281  __ge__(CHARMMAtom self, Particle d) -> bool
11282  """
11283  return _IMP_atom.CHARMMAtom___ge__(self, *args)
11284 
11285  def __gt__(self, *args):
11286  r"""
11287  __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
11288  __gt__(CHARMMAtom self, Particle d) -> bool
11289  """
11290  return _IMP_atom.CHARMMAtom___gt__(self, *args)
11291 
11292  def __hash__(self):
11293  r"""__hash__(CHARMMAtom self) -> std::size_t"""
11294  return _IMP_atom.CHARMMAtom___hash__(self)
11295 
11296  def __str__(self):
11297  r"""__str__(CHARMMAtom self) -> std::string"""
11298  return _IMP_atom.CHARMMAtom___str__(self)
11299 
11300  def __repr__(self):
11301  r"""__repr__(CHARMMAtom self) -> std::string"""
11302  return _IMP_atom.CHARMMAtom___repr__(self)
11303 
11304  def _get_as_binary(self):
11305  r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
11306  return _IMP_atom.CHARMMAtom__get_as_binary(self)
11307 
11308  def _set_from_binary(self, p):
11309  r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
11310  return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
11311 
11312  def __getstate__(self):
11313  p = self._get_as_binary()
11314  if len(self.__dict__) > 1:
11315  d = self.__dict__.copy()
11316  del d['this']
11317  p = (d, p)
11318  return p
11319 
11320  def __setstate__(self, p):
11321  if not hasattr(self, 'this'):
11322  self.__init__()
11323  if isinstance(p, tuple):
11324  d, p = p
11325  self.__dict__.update(d)
11326  return self._set_from_binary(p)
11327 
11328  __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
11329 
11330 # Register CHARMMAtom in _IMP_atom:
11331 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
11332 
11333 def get_charmm_untyped_atoms(hierarchy):
11334  r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
11335  return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
11336 
11337 def remove_charmm_untyped_atoms(hierarchy):
11338  r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
11339  return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
11340 class CHARMMBondParameters(object):
11341  r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
11342 
11343  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11344  force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=r"""force_constant : double""")
11345  ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=r"""ideal : double""")
11346 
11347  def __init__(self):
11348  r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
11349  _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
11350 
11351  def show(self, *args):
11352  r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
11353  return _IMP_atom.CHARMMBondParameters_show(self, *args)
11354 
11355  def __str__(self):
11356  r"""__str__(CHARMMBondParameters self) -> std::string"""
11357  return _IMP_atom.CHARMMBondParameters___str__(self)
11358 
11359  def __repr__(self):
11360  r"""__repr__(CHARMMBondParameters self) -> std::string"""
11361  return _IMP_atom.CHARMMBondParameters___repr__(self)
11362 
11363  def _get_as_binary(self):
11364  r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
11365  return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
11366 
11367  def _set_from_binary(self, p):
11368  r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
11369  return _IMP_atom.CHARMMBondParameters__set_from_binary(self, p)
11370 
11371  def __getstate__(self):
11372  p = self._get_as_binary()
11373  if len(self.__dict__) > 1:
11374  d = self.__dict__.copy()
11375  del d['this']
11376  p = (d, p)
11377  return p
11378 
11379  def __setstate__(self, p):
11380  if not hasattr(self, 'this'):
11381  self.__init__()
11382  if isinstance(p, tuple):
11383  d, p = p
11384  self.__dict__.update(d)
11385  return self._set_from_binary(p)
11386 
11387  __swig_destroy__ = _IMP_atom.delete_CHARMMBondParameters
11388 
11389 # Register CHARMMBondParameters in _IMP_atom:
11390 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
11391 class CHARMMDihedralParameters(object):
11392  r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
11393 
11394  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11395  force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=r"""force_constant : double""")
11396  multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=r"""multiplicity : int""")
11397  ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=r"""ideal : double""")
11398 
11399  def __init__(self):
11400  r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
11401  _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
11402 
11403  def show(self, *args):
11404  r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
11405  return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
11406 
11407  def __str__(self):
11408  r"""__str__(CHARMMDihedralParameters self) -> std::string"""
11409  return _IMP_atom.CHARMMDihedralParameters___str__(self)
11410 
11411  def __repr__(self):
11412  r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
11413  return _IMP_atom.CHARMMDihedralParameters___repr__(self)
11414 
11415  def _get_as_binary(self):
11416  r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
11417  return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
11418 
11419  def _set_from_binary(self, p):
11420  r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
11421  return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
11422 
11423  def __getstate__(self):
11424  p = self._get_as_binary()
11425  if len(self.__dict__) > 1:
11426  d = self.__dict__.copy()
11427  del d['this']
11428  p = (d, p)
11429  return p
11430 
11431  def __setstate__(self, p):
11432  if not hasattr(self, 'this'):
11433  self.__init__()
11434  if isinstance(p, tuple):
11435  d, p = p
11436  self.__dict__.update(d)
11437  return self._set_from_binary(p)
11438 
11439  __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11440 
11441 # Register CHARMMDihedralParameters in _IMP_atom:
11442 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11443 class CHARMMParameters(ForceFieldParameters):
11444  r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11445 
11446  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11447 
11448  def __init__(self, *args):
11449  r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11450  _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11451 
11452  def add_residue_topology(self, res):
11453  r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11454  return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11455 
11456  def get_residue_topology(self, type):
11457  r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11458  return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11459 
11460  def add_patch(self, patch):
11461  r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11462  return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11463 
11464  def get_patch(self, name):
11465  r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11466  return _IMP_atom.CHARMMParameters_get_patch(self, name)
11467 
11468  def create_topology(self, hierarchy):
11469  r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11470  return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11471 
11472  def get_bond_parameters(self, type1, type2):
11473  r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11474  return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11475 
11476  def get_angle_parameters(self, type1, type2, type3):
11477  r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11478  return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11479 
11480  def get_dihedral_parameters(self, type1, type2, type3, type4):
11481  r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11482  return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11483 
11484  def get_improper_parameters(self, type1, type2, type3, type4):
11485  r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11486  return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11487 
11488  def create_angles(self, bonds):
11489  r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11490  return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11491 
11492  def create_dihedrals(self, bonds):
11493  r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11494  return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11495 
11496  def get_version_info(self):
11497  r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11498  return _IMP_atom.CHARMMParameters_get_version_info(self)
11499  __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11500 
11501  def __str__(self):
11502  r"""__str__(CHARMMParameters self) -> std::string"""
11503  return _IMP_atom.CHARMMParameters___str__(self)
11504 
11505  def __repr__(self):
11506  r"""__repr__(CHARMMParameters self) -> std::string"""
11507  return _IMP_atom.CHARMMParameters___repr__(self)
11508 
11509  @staticmethod
11510  def get_from(o):
11511  return _object_cast_to_CHARMMParameters(o)
11512 
11513 
11514 # Register CHARMMParameters in _IMP_atom:
11515 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11516 
11518  r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11519  return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11520 
11522  r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11523  return _IMP_atom.get_all_atom_CHARMM_parameters()
11524 class CHARMMSegmentTopology(IMP.Object):
11525  r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11526 
11527  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11528  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)
11529  def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11530  def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11531  residues = property(__get_residues, __set_residues, __del_residues, doc="List of ##ucnames")
11532 
11533  def remove_residue(self, d):
11534  r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11535  return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11536 
11537  def _python_index_residue(self, d, start, stop):
11538  r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11539  return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11540 
11541  def remove_residues(self, d):
11542  r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11543  return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11544 
11545  def set_residues(self, ps):
11546  r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11547  return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11548 
11549  def set_residues_order(self, objs):
11550  r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11551  return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11552 
11553  def add_residue(self, obj):
11554  r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11555  return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11556 
11557  def add_residues(self, objs):
11558  r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11559  return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11560 
11561  def clear_residues(self):
11562  r"""clear_residues(CHARMMSegmentTopology self)"""
11563  return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11564 
11565  def get_number_of_residues(self):
11566  r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11567  return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11568 
11569  def get_has_residues(self):
11570  r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11571  return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11572 
11573  def get_residue(self, i):
11574  r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11575  return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11576 
11577  def get_residues(self):
11578  r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11579  return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11580 
11581  def erase_residue(self, i):
11582  r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11583  return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11584 
11585  def reserve_residues(self, sz):
11586  r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11587  return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11588 
11589  def get_version_info(self):
11590  r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11591  return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11592  __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11593 
11594  def __init__(self, *args):
11595  r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11596  _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11597 
11598  def apply_default_patches(self, ff):
11599  r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11600  return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11601 
11602  def __str__(self):
11603  r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11604  return _IMP_atom.CHARMMSegmentTopology___str__(self)
11605 
11606  def __repr__(self):
11607  r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11608  return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11609 
11610  @staticmethod
11611  def get_from(o):
11612  return _object_cast_to_CHARMMSegmentTopology(o)
11613 
11614 
11615 # Register CHARMMSegmentTopology in _IMP_atom:
11616 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11617 class CHARMMTopology(IMP.Object):
11618  r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11619 
11620  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11621 
11622  def __init__(self, *args):
11623  r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11624  _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11625 
11626  def get_parameters(self):
11627  r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11628  return _IMP_atom.CHARMMTopology_get_parameters(self)
11629 
11630  def add_sequence(self, sequence):
11631  r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11632  return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11633 
11634  def apply_default_patches(self):
11635  r"""apply_default_patches(CHARMMTopology self)"""
11636  return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11637 
11638  def create_hierarchy(self, model):
11639  r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11640  return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11641 
11642  def add_atom_types(self, hierarchy):
11643  r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11644  return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11645 
11646  def add_coordinates(self, hierarchy):
11647  r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11648  return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11649 
11650  def add_missing_atoms(self, hierarchy):
11651  r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11652  return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11653 
11654  def setup_hierarchy(self, hierarchy):
11655  r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11656  return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11657 
11658  def add_charges(self, hierarchy):
11659  r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11660  return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11661 
11662  def add_bonds(self, hierarchy):
11663  r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11664  return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11665 
11666  def add_dihedrals(self, hierarchy):
11667  r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11668  return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11669 
11670  def add_impropers(self, hierarchy):
11671  r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11672  return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11673  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)
11674  def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11675  def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11676  segments = property(__get_segments, __set_segments, __del_segments, doc="List of ##ucnames")
11677 
11678  def remove_segment(self, d):
11679  r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11680  return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11681 
11682  def _python_index_segment(self, d, start, stop):
11683  r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11684  return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11685 
11686  def remove_segments(self, d):
11687  r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11688  return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11689 
11690  def set_segments(self, ps):
11691  r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11692  return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11693 
11694  def set_segments_order(self, objs):
11695  r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11696  return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11697 
11698  def add_segment(self, obj):
11699  r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11700  return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11701 
11702  def add_segments(self, objs):
11703  r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11704  return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11705 
11706  def clear_segments(self):
11707  r"""clear_segments(CHARMMTopology self)"""
11708  return _IMP_atom.CHARMMTopology_clear_segments(self)
11709 
11710  def get_number_of_segments(self):
11711  r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11712  return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11713 
11714  def get_has_segments(self):
11715  r"""get_has_segments(CHARMMTopology self) -> bool"""
11716  return _IMP_atom.CHARMMTopology_get_has_segments(self)
11717 
11718  def get_segment(self, i):
11719  r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11720  return _IMP_atom.CHARMMTopology_get_segment(self, i)
11721 
11722  def get_segments(self):
11723  r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11724  return _IMP_atom.CHARMMTopology_get_segments(self)
11725 
11726  def erase_segment(self, i):
11727  r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11728  return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11729 
11730  def reserve_segments(self, sz):
11731  r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11732  return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11733 
11734  def get_version_info(self):
11735  r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11736  return _IMP_atom.CHARMMTopology_get_version_info(self)
11737  __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11738 
11739  def __str__(self):
11740  r"""__str__(CHARMMTopology self) -> std::string"""
11741  return _IMP_atom.CHARMMTopology___str__(self)
11742 
11743  def __repr__(self):
11744  r"""__repr__(CHARMMTopology self) -> std::string"""
11745  return _IMP_atom.CHARMMTopology___repr__(self)
11746 
11747  @staticmethod
11748  def get_from(o):
11749  return _object_cast_to_CHARMMTopology(o)
11750 
11751 
11752 # Register CHARMMTopology in _IMP_atom:
11753 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11754 class CHARMMStereochemistryRestraint(IMP.Restraint):
11755  r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11756 
11757  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11758 
11759  def __init__(self, *args):
11760  r"""
11761  __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11762  __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11763  """
11764  _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11765 
11766  def get_pair_filter(self):
11767  r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11768  return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11769 
11770  def get_full_pair_filter(self):
11771  r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11772  return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11773 
11774  def do_get_inputs(self):
11775  r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11776  return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11777 
11778  def get_version_info(self):
11779  r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11780  return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11781  __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11782 
11783  def __str__(self):
11784  r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11785  return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11786 
11787  def __repr__(self):
11788  r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11789  return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11790 
11791  @staticmethod
11792  def get_from(o):
11793  return _object_cast_to_CHARMMStereochemistryRestraint(o)
11794 
11795 
11796 # Register CHARMMStereochemistryRestraint in _IMP_atom:
11797 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11798 
11799 def add_bonds(*args):
11800  r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11801  return _IMP_atom.add_bonds(*args)
11802 
11803 def add_radii(*args):
11804  r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11805  return _IMP_atom.add_radii(*args)
11806 ALBER = _IMP_atom.ALBER
11807 
11808 HARPAZ = _IMP_atom.HARPAZ
11809 
11810 ANDERSSON = _IMP_atom.ANDERSSON
11811 
11812 TSAI = _IMP_atom.TSAI
11813 
11814 QUILLIN = _IMP_atom.QUILLIN
11815 
11816 SQUIRE = _IMP_atom.SQUIRE
11817 
11818 
11819 def get_protein_density_from_reference(densityReference):
11820  r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11821  return _IMP_atom.get_protein_density_from_reference(densityReference)
11822 
11823 def get_volume_from_mass(*args):
11824  r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11825  return _IMP_atom.get_volume_from_mass(*args)
11826 
11827 def get_mass_from_volume(*args):
11828  r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11829  return _IMP_atom.get_mass_from_volume(*args)
11830 
11832  r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11833  return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11834 
11836  r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11837  return _IMP_atom.get_volume_from_residue_type(rt)
11838 
11839 def get_molarity(n, volume):
11840  r"""get_molarity(double n, double volume) -> double"""
11841  return _IMP_atom.get_molarity(n, volume)
11842 
11843 def get_kd(na, nb, nab, volume):
11844  r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11845  return _IMP_atom.get_kd(na, nb, nab, volume)
11846 
11847 def get_einstein_diffusion_coefficient(r, temp=-1):
11848  r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11849  return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11850 
11852  r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11853  return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11854 
11855 def get_diffusion_length(*args):
11856  r"""
11857  get_diffusion_length(double D, double t) -> double
11858  get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11859  """
11860  return _IMP_atom.get_diffusion_length(*args)
11861 
11862 def get_diffusion_angle(D, dtfs):
11863  r"""get_diffusion_angle(double D, double dtfs) -> double"""
11864  return _IMP_atom.get_diffusion_angle(D, dtfs)
11865 
11866 def get_diffusion_coefficient(*args):
11867  r"""
11868  get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11869  get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11870  """
11871  return _IMP_atom.get_diffusion_coefficient(*args)
11872 
11873 def get_rotational_diffusion_coefficient(orientations, dt):
11874  r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11875  return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11876 
11877 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11878  r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11879  return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11880 
11881 def get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom):
11882  r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11883  return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11884 
11885 def get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square):
11886  r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11887  return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11888 class EzRestraint(IMP.Restraint):
11889  r"""Proxy of C++ IMP::atom::EzRestraint class."""
11890 
11891  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11892 
11893  def __init__(self, m, ps):
11894  r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11895  _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11896 
11897  def get_version_info(self):
11898  r"""get_version_info(EzRestraint self) -> VersionInfo"""
11899  return _IMP_atom.EzRestraint_get_version_info(self)
11900  __swig_destroy__ = _IMP_atom.delete_EzRestraint
11901 
11902  def __str__(self):
11903  r"""__str__(EzRestraint self) -> std::string"""
11904  return _IMP_atom.EzRestraint___str__(self)
11905 
11906  def __repr__(self):
11907  r"""__repr__(EzRestraint self) -> std::string"""
11908  return _IMP_atom.EzRestraint___repr__(self)
11909 
11910  @staticmethod
11911  def get_from(o):
11912  return _object_cast_to_EzRestraint(o)
11913 
11914 
11915 # Register EzRestraint in _IMP_atom:
11916 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11917 
11918 def create_protein(*args):
11919  r"""
11920  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
11921  create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11922  """
11923  return _IMP_atom.create_protein(*args)
11924 
11926  r"""
11927  create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False, Model m=None) -> Hierarchy
11928  create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False, Model m=None) -> Hierarchy
11929  """
11930  return _IMP_atom.create_simplified_along_backbone(*args)
11931 
11932 def create_simplified_from_volume(h, resolution):
11933  r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11934  return _IMP_atom.create_simplified_from_volume(h, resolution)
11935 
11936 def create_simplified_assembly_from_volume(h, resolution):
11937  r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11938  return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11939 
11940 def get_residue_indexes(h):
11941  r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11942  return _IMP_atom.get_residue_indexes(h)
11943 
11944 def get_residue_type(*args):
11945  r"""
11946  get_residue_type(char c) -> ResidueType
11947  get_residue_type(Hierarchy h) -> ResidueType
11948  """
11949  return _IMP_atom.get_residue_type(*args)
11950 
11951 def get_atom_type(h):
11952  r"""get_atom_type(Hierarchy h) -> AtomType"""
11953  return _IMP_atom.get_atom_type(h)
11954 
11955 def get_domain_name(h):
11956  r"""get_domain_name(Hierarchy h) -> std::string"""
11957  return _IMP_atom.get_domain_name(h)
11958 
11960  r"""
11961  create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11962  create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11963  """
11964  return _IMP_atom.create_excluded_volume_restraint(*args)
11965 
11966 def setup_as_approximation(*args):
11967  r"""
11968  setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11969  setup_as_approximation(Hierarchy h, double resolution=-1)
11970  """
11971  return _IMP_atom.setup_as_approximation(*args)
11972 class _HierarchyTreeVertexIndex(object):
11973  r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11974 
11975  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11976  __repr__ = _swig_repr
11977 
11978  def __init__(self):
11979  r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11980  _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11981  __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11982 
11983 # Register _HierarchyTreeVertexIndex in _IMP_atom:
11984 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11985 
11986 def show_as_graphviz(name, out):
11987  r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11988  return _IMP_atom.show_as_graphviz(name, out)
11989 
11990 def get_vertex_index(g):
11991  r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11992  return _IMP_atom.get_vertex_index(g)
11993 
11994 def get_hierarchy_tree(h):
11995  r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11996  return _IMP_atom.get_hierarchy_tree(h)
11997 class HierarchyGeometry(IMP.display.SingletonGeometry):
11998  r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
11999 
12000  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12001 
12002  def __init__(self, d, resolution=0):
12003  r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
12004  _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
12005 
12006  def get_version_info(self):
12007  r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
12008  return _IMP_atom.HierarchyGeometry_get_version_info(self)
12009  __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
12010 
12011  def __str__(self):
12012  r"""__str__(HierarchyGeometry self) -> std::string"""
12013  return _IMP_atom.HierarchyGeometry___str__(self)
12014 
12015  def __repr__(self):
12016  r"""__repr__(HierarchyGeometry self) -> std::string"""
12017  return _IMP_atom.HierarchyGeometry___repr__(self)
12018 
12019  @staticmethod
12020  def get_from(o):
12021  return _object_cast_to_HierarchyGeometry(o)
12022 
12023 
12024 # Register HierarchyGeometry in _IMP_atom:
12025 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
12026 class HierarchiesGeometry(IMP.display.SingletonsGeometry):
12027  r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
12028 
12029  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12030 
12031  def __init__(self, sc, resolution=-1):
12032  r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
12033  _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
12034 
12035  def get_version_info(self):
12036  r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
12037  return _IMP_atom.HierarchiesGeometry_get_version_info(self)
12038  __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
12039 
12040  def __str__(self):
12041  r"""__str__(HierarchiesGeometry self) -> std::string"""
12042  return _IMP_atom.HierarchiesGeometry___str__(self)
12043 
12044  def __repr__(self):
12045  r"""__repr__(HierarchiesGeometry self) -> std::string"""
12046  return _IMP_atom.HierarchiesGeometry___repr__(self)
12047 
12048  @staticmethod
12049  def get_from(o):
12050  return _object_cast_to_HierarchiesGeometry(o)
12051 
12052 
12053 # Register HierarchiesGeometry in _IMP_atom:
12054 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
12055 
12056 def transform(*args):
12057  r"""
12058  transform(Hierarchy h, Transformation3D tr)
12059  transform(Hierarchy h, Transformation3D tr)
12060  """
12061  return _IMP_atom.transform(*args)
12062 class DopePairScore(_ADopeBase):
12063  r"""Proxy of C++ IMP::atom::DopePairScore class."""
12064 
12065  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12066 
12067  def __init__(self, *args):
12068  r"""
12069  __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
12070  __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
12071  """
12072  _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
12073  __swig_destroy__ = _IMP_atom.delete_DopePairScore
12074 
12075  def __str__(self):
12076  r"""__str__(DopePairScore self) -> std::string"""
12077  return _IMP_atom.DopePairScore___str__(self)
12078 
12079  def __repr__(self):
12080  r"""__repr__(DopePairScore self) -> std::string"""
12081  return _IMP_atom.DopePairScore___repr__(self)
12082 
12083  @staticmethod
12084  def get_from(o):
12085  return _object_cast_to_DopePairScore(o)
12086 
12087 
12088  def _get_jax(self, m, indexes, space):
12089  import jax
12090  import numpy as np
12091  import jax.numpy as jnp
12092  from IMP.core._jax_util import _spline
12093  def score_one(jm, index, minrange, maxrange, spacing, values,
12094  second_derivs):
12095  # Score a single atom pair
12096  xyz = jm['xyz'][index]
12097  dr = space.distance(xyz[1] - xyz[0])
12098  dope_type_pair = jm['dope atom type']
12099  # Get index into values/second_derivs tables
12100  i = jnp.max(dope_type_pair[index])
12101  j = jnp.min(dope_type_pair[index])
12102  dope_type = i * (i + 1) // 2 + j
12103  # tabulated values are for the center of each bin, but
12104  # _spline works with the values at the low side of each bin
12105  x = dr - 0.5 * spacing
12106  # determine bin index and thus the cubic fragment to use:
12107  lowbin = jnp.array((x - minrange) / spacing, dtype=int)
12108  spline_score = _spline(x, minrange, lowbin, lowbin + 1, spacing,
12109  values[dope_type], second_derivs[dope_type])
12110  return jnp.where(
12111  dr <= minrange, 0.,
12112  jnp.where(dr >= maxrange, 0., spline_score))
12113  sf = self.get_score_functor()
12114  if sf.get_is_bipartite() or not sf.get_is_interpolated():
12115  raise TypeError("Only implemented for unipartite splines")
12116  ntyp = sf.get_number_of_particle_types()[0]
12117  # Get spline parameters for all atom types. The matrix is symmetric
12118  # so only store the upper diagonal
12119  values = []
12120  second_derivs = []
12121  for i in range(ntyp):
12122  for j in range(0, i + 1):
12123  values.append(sf.get_values(i, j))
12124  second_derivs.append(sf.get_second_derivatives(i, j))
12125  values = np.vstack(values)
12126  second_derivs = np.vstack(second_derivs)
12127  f = functools.partial(
12128  score_one, minrange=sf.get_offset(),
12129  maxrange=min(sf.get_max(), sf.get_threshold()),
12130  spacing=sf.get_spacing(), values=jnp.asarray(values),
12131  second_derivs=jnp.asarray(second_derivs))
12132  # Vectorize to take multiple indexes (second argument)
12133  # The values should show up in the last axis (-1)
12134  vf = jax.vmap(f, in_axes=(None, 0), out_axes=-1)
12135  return self._wrap_jax(m, lambda jm: vf(jm, indexes),
12136  keys=(sf.get_dope_type_key(),))
12137 
12138 
12139 # Register DopePairScore in _IMP_atom:
12140 _IMP_atom.DopePairScore_swigregister(DopePairScore)
12141 
12142 def add_dope_score_data(h):
12143  r"""add_dope_score_data(Hierarchy h)"""
12144  return _IMP_atom.add_dope_score_data(h)
12145 class LoopStatisticalPairScore(_ALoopStatisticalBase):
12146  r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
12147 
12148  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12149 
12150  def __init__(self, *args):
12151  r"""
12152  __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
12153  __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
12154  """
12155  _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
12156 
12157  def __str__(self):
12158  r"""__str__(LoopStatisticalPairScore self) -> std::string"""
12159  return _IMP_atom.LoopStatisticalPairScore___str__(self)
12160 
12161  def __repr__(self):
12162  r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
12163  return _IMP_atom.LoopStatisticalPairScore___repr__(self)
12164 
12165  @staticmethod
12166  def get_from(o):
12167  return _object_cast_to_LoopStatisticalPairScore(o)
12168 
12169  __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
12170 
12171 # Register LoopStatisticalPairScore in _IMP_atom:
12172 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
12173 
12175  r"""add_loop_statistical_score_data(Hierarchy h)"""
12176  return _IMP_atom.add_loop_statistical_score_data(h)
12177 class OrientedSoapPairScore(_OrientedSoapBase):
12178  r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
12179 
12180  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12181 
12182  def __init__(self, library):
12183  r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
12184  _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
12185 
12186  def get_pair_filter(self):
12187  r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
12188  return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
12189 
12190  def __str__(self):
12191  r"""__str__(OrientedSoapPairScore self) -> std::string"""
12192  return _IMP_atom.OrientedSoapPairScore___str__(self)
12193 
12194  def __repr__(self):
12195  r"""__repr__(OrientedSoapPairScore self) -> std::string"""
12196  return _IMP_atom.OrientedSoapPairScore___repr__(self)
12197 
12198  @staticmethod
12199  def get_from(o):
12200  return _object_cast_to_OrientedSoapPairScore(o)
12201 
12202  __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
12203 
12204 # Register OrientedSoapPairScore in _IMP_atom:
12205 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
12206 class SameResiduePairFilter(IMP.PairPredicate):
12207  r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
12208 
12209  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12210 
12211  def __init__(self):
12212  r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
12213  _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
12214 
12215  def do_get_inputs(self, m, pis):
12216  r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12217  return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
12218 
12219  def get_value(self, *args):
12220  r"""
12221  get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
12222  get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12223  """
12224  return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
12225 
12226  def get_value_index(self, *args):
12227  r"""
12228  get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
12229  get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12230  """
12231  return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
12232 
12233  def get_version_info(self):
12234  r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
12235  return _IMP_atom.SameResiduePairFilter_get_version_info(self)
12236  __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
12237 
12238  def __str__(self):
12239  r"""__str__(SameResiduePairFilter self) -> std::string"""
12240  return _IMP_atom.SameResiduePairFilter___str__(self)
12241 
12242  def __repr__(self):
12243  r"""__repr__(SameResiduePairFilter self) -> std::string"""
12244  return _IMP_atom.SameResiduePairFilter___repr__(self)
12245 
12246  @staticmethod
12247  def get_from(o):
12248  return _object_cast_to_SameResiduePairFilter(o)
12249 
12250 
12251 # Register SameResiduePairFilter in _IMP_atom:
12252 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
12253 class RemoveRigidMotionOptimizerState(IMP.OptimizerState):
12254  r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
12255 
12256  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12257 
12258  def __init__(self, m, pis):
12259  r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
12260  _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
12261 
12262  def set_particles(self, pis):
12263  r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
12264  return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
12265 
12266  def remove_rigid_motion(self):
12267  r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
12268  return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
12269 
12270  def get_version_info(self):
12271  r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
12272  return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
12273  __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
12274 
12275  def __str__(self):
12276  r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
12277  return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
12278 
12279  def __repr__(self):
12280  r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
12281  return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
12282 
12283  @staticmethod
12284  def get_from(o):
12285  return _object_cast_to_RemoveRigidMotionOptimizerState(o)
12286 
12287 
12288 # Register RemoveRigidMotionOptimizerState in _IMP_atom:
12289 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
12290 class BerendsenThermostatOptimizerState(IMP.OptimizerState):
12291  r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
12292 
12293  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12294 
12295  def __init__(self, pis, temperature, tau):
12296  r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
12297  _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
12298 
12299  def set_particles(self, pis):
12300  r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
12301  return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
12302 
12303  def get_particles(self):
12304  r"""get_particles(BerendsenThermostatOptimizerState self) -> IMP::Particles"""
12305  return _IMP_atom.BerendsenThermostatOptimizerState_get_particles(self)
12306 
12307  def get_temperature(self):
12308  r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
12309  return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
12310 
12311  def get_tau(self):
12312  r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
12313  return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
12314 
12315  def set_temperature(self, temperature):
12316  r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
12317  return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
12318 
12319  def set_tau(self, tau):
12320  r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
12321  return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
12322 
12323  def rescale_velocities(self):
12324  r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
12325  return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
12326 
12327  def get_version_info(self):
12328  r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
12329  return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
12330  __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
12331 
12332  def __str__(self):
12333  r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
12334  return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
12335 
12336  def __repr__(self):
12337  r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
12338  return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
12339 
12340  @staticmethod
12341  def get_from(o):
12342  return _object_cast_to_BerendsenThermostatOptimizerState(o)
12343 
12344 
12345  def _get_jax(self, state_index):
12346  import jax
12347  import jax.numpy as jnp
12348 
12349  def scale_velocities(linvel, factor, indexes):
12350  return linvel.at[indexes].multiply(factor)
12351 
12352  def apply_func(md, temperature, tau, indexes):
12353  ekinetic = md.get_kinetic_energy()
12354  tkinetic = md.get_kinetic_temperature(ekinetic)
12355  factor = jnp.sqrt(1.0 + (md.time_step / tau)
12356  * (temperature / tkinetic - 1.0))
12357  scale = scale_velocities
12358  if hasattr(tkinetic, 'ndim') and tkinetic.ndim >= 1:
12359  scale = jax.vmap(scale_velocities, in_axes=(0, 0, None))
12360  md.jm['linvel'] = scale(md.jm['linvel'], factor, indexes)
12361  return md
12362 
12363  f = functools.partial(
12364  apply_func, temperature=self.get_temperature(),
12365  tau=self.get_tau(),
12366  indexes=jnp.asarray(IMP.get_indexes(self.get_particles())))
12367  return self._wrap_jax(lambda x: x, f)
12368 
12369 
12370 # Register BerendsenThermostatOptimizerState in _IMP_atom:
12371 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
12372 class LangevinThermostatOptimizerState(IMP.OptimizerState):
12373  r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
12374 
12375  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12376 
12377  def __init__(self, m, pis, temperature, gamma):
12378  r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
12379  _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
12380 
12381  def set_particles(self, pis):
12382  r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
12383  return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
12384 
12385  def get_particles(self):
12386  r"""get_particles(LangevinThermostatOptimizerState self) -> IMP::Particles"""
12387  return _IMP_atom.LangevinThermostatOptimizerState_get_particles(self)
12388 
12389  def get_temperature(self):
12390  r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
12391  return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
12392 
12393  def get_gamma(self):
12394  r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
12395  return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
12396 
12397  def set_temperature(self, temperature):
12398  r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
12399  return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
12400 
12401  def set_gamma(self, gamma):
12402  r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
12403  return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
12404 
12405  def rescale_velocities(self):
12406  r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
12407  return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
12408 
12409  def get_version_info(self):
12410  r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
12411  return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
12412  __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
12413 
12414  def __str__(self):
12415  r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
12416  return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
12417 
12418  def __repr__(self):
12419  r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
12420  return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
12421 
12422  @staticmethod
12423  def get_from(o):
12424  return _object_cast_to_LangevinThermostatOptimizerState(o)
12425 
12426 
12427  def _get_jax(self, state_index):
12428  import jax.numpy as jnp
12429  import jax.random
12430  gas_constant = 8.31441e-7
12431 
12432  def init_func(md):
12433  # Make our own random key split off from MD's key
12434  md.rkey, subkey = jax.random.split(md.rkey)
12435  md.optimizer_states[state_index] = subkey
12436  return md
12437 
12438  def apply_func(md, temperature, gamma, indexes):
12439  c1 = jnp.exp(-gamma * md.time_step)
12440  c2 = jnp.sqrt((1.0 - c1) * gas_constant * temperature)
12441  md.optimizer_states[state_index], subkey = jax.random.split(
12442  md.optimizer_states[state_index])
12443  indshape = md.jm['linvel'].shape[:-2] + (len(indexes),)
12444  sample = jax.random.normal(subkey, shape=indshape + (3,))
12445  mass = md.jm['mass'][..., indexes]
12446  linvel = md.jm['linvel'].at[..., indexes, :]
12447  md.jm['linvel'] = linvel.set(
12448  c1 * linvel.get()
12449  + c2 * jnp.sqrt((c1 + 1.0) / mass)[:, jnp.newaxis] * sample)
12450  return md
12451 
12452  f = functools.partial(
12453  apply_func, temperature=self.get_temperature(),
12454  gamma=self.get_gamma(),
12455  indexes=jnp.asarray(IMP.get_indexes(self.get_particles())))
12456  return self._wrap_jax(init_func, f)
12457 
12458 
12459 # Register LangevinThermostatOptimizerState in _IMP_atom:
12460 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
12461 class PDBRecord(IMP._Value):
12462  r"""Proxy of C++ IMP::atom::PDBRecord class."""
12463 
12464  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12465 
12466  def __init__(self):
12467  r"""__init__(PDBRecord self) -> PDBRecord"""
12468  _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
12469 
12470  def get_alt_loc_indicator(self):
12471  r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
12472  return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
12473 
12474  def get_is_atom(self):
12475  r"""get_is_atom(PDBRecord self) -> bool"""
12476  return _IMP_atom.PDBRecord_get_is_atom(self)
12477 
12478  def get_trimmed_atom_name(self):
12479  r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
12480  return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
12481 
12482  def get_padded_atom_name(self):
12483  r"""get_padded_atom_name(PDBRecord self) -> std::string"""
12484  return _IMP_atom.PDBRecord_get_padded_atom_name(self)
12485 
12486  def get_residue_name(self):
12487  r"""get_residue_name(PDBRecord self) -> std::string"""
12488  return _IMP_atom.PDBRecord_get_residue_name(self)
12489 
12490  def get_chain_id(self):
12491  r"""get_chain_id(PDBRecord self) -> std::string"""
12492  return _IMP_atom.PDBRecord_get_chain_id(self)
12493 
12494  def get_element(self):
12495  r"""get_element(PDBRecord self) -> std::string"""
12496  return _IMP_atom.PDBRecord_get_element(self)
12497 
12498  def get_residue_number(self):
12499  r"""get_residue_number(PDBRecord self) -> int"""
12500  return _IMP_atom.PDBRecord_get_residue_number(self)
12501 
12502  def show(self, *args):
12503  r"""show(PDBRecord self, _ostream out=std::cout)"""
12504  return _IMP_atom.PDBRecord_show(self, *args)
12505 
12506  def __str__(self):
12507  r"""__str__(PDBRecord self) -> std::string"""
12508  return _IMP_atom.PDBRecord___str__(self)
12509 
12510  def __repr__(self):
12511  r"""__repr__(PDBRecord self) -> std::string"""
12512  return _IMP_atom.PDBRecord___repr__(self)
12513  __swig_destroy__ = _IMP_atom.delete_PDBRecord
12514 
12515 # Register PDBRecord in _IMP_atom:
12516 _IMP_atom.PDBRecord_swigregister(PDBRecord)
12517 class PDBSelector(IMP.Object):
12518  r"""Proxy of C++ IMP::atom::PDBSelector class."""
12519 
12520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12521 
12522  def __init__(self, name):
12523  r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
12524  if self.__class__ == PDBSelector:
12525  _self = None
12526  else:
12527  _self = self
12528  _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
12529 
12530  if self.__class__ != PDBSelector:
12531  _director_objects.register(self)
12532 
12533 
12534 
12535 
12536  def get_is_selected(self, record):
12537  r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
12538  return _IMP_atom.PDBSelector_get_is_selected(self, record)
12539  __swig_destroy__ = _IMP_atom.delete_PDBSelector
12540 
12541  def __str__(self):
12542  r"""__str__(PDBSelector self) -> std::string"""
12543  return _IMP_atom.PDBSelector___str__(self)
12544 
12545  def __repr__(self):
12546  r"""__repr__(PDBSelector self) -> std::string"""
12547  return _IMP_atom.PDBSelector___repr__(self)
12548 
12549  @staticmethod
12550  def get_from(o):
12551  return _object_cast_to_PDBSelector(o)
12552 
12553 
12554  def do_show(self, out):
12555  pass
12556 
12557  @staticmethod
12558  def get_from(o):
12559  return _object_cast_to_PDBSelector(o)
12560 
12561 
12562  def __and__(self, s):
12563  return AndPDBSelector(self, s)
12564  def __or__(self, s):
12565  return OrPDBSelector(self, s)
12566  def __xor__(self, s):
12567  return XorPDBSelector(self, s)
12568  def __invert__(self):
12569  return NotPDBSelector(self)
12570  def __sub__(self, s):
12571  return AndPDBSelector(self, NotPDBSelector(s))
12572 
12573  def __disown__(self):
12574  self.this.disown()
12575  _IMP_atom.disown_PDBSelector(self)
12576  return weakref.proxy(self)
12577 
12578  def do_destroy(self):
12579  r"""do_destroy(PDBSelector self)"""
12580  return _IMP_atom.PDBSelector_do_destroy(self)
12581 
12582 # Register PDBSelector in _IMP_atom:
12583 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12584 class NonAlternativePDBSelector(PDBSelector):
12585  r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12586 
12587  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12588 
12589  def __init__(self, *args):
12590  r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12591  _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12592 
12593  def get_version_info(self):
12594  r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12595  return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12596  __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12597 
12598  def __str__(self):
12599  r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12600  return _IMP_atom.NonAlternativePDBSelector___str__(self)
12601 
12602  def __repr__(self):
12603  r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12604  return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12605 
12606  @staticmethod
12607  def get_from(o):
12608  return _object_cast_to_NonAlternativePDBSelector(o)
12609 
12610 
12611 # Register NonAlternativePDBSelector in _IMP_atom:
12612 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12613 class ATOMPDBSelector(NonAlternativePDBSelector):
12614  r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12615 
12616  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12617 
12618  def __init__(self, *args):
12619  r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12620  _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12621  __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12622 
12623  def __str__(self):
12624  r"""__str__(ATOMPDBSelector self) -> std::string"""
12625  return _IMP_atom.ATOMPDBSelector___str__(self)
12626 
12627  def __repr__(self):
12628  r"""__repr__(ATOMPDBSelector self) -> std::string"""
12629  return _IMP_atom.ATOMPDBSelector___repr__(self)
12630 
12631  @staticmethod
12632  def get_from(o):
12633  return _object_cast_to_ATOMPDBSelector(o)
12634 
12635 
12636 # Register ATOMPDBSelector in _IMP_atom:
12637 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12638 class CAlphaPDBSelector(NonAlternativePDBSelector):
12639  r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12640 
12641  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12642 
12643  def __init__(self, *args):
12644  r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12645  _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12646  __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12647 
12648  def __str__(self):
12649  r"""__str__(CAlphaPDBSelector self) -> std::string"""
12650  return _IMP_atom.CAlphaPDBSelector___str__(self)
12651 
12652  def __repr__(self):
12653  r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12654  return _IMP_atom.CAlphaPDBSelector___repr__(self)
12655 
12656  @staticmethod
12657  def get_from(o):
12658  return _object_cast_to_CAlphaPDBSelector(o)
12659 
12660 
12661 # Register CAlphaPDBSelector in _IMP_atom:
12662 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12663 class CBetaPDBSelector(NonAlternativePDBSelector):
12664  r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12665 
12666  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12667 
12668  def __init__(self, *args):
12669  r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12670  _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12671  __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12672 
12673  def __str__(self):
12674  r"""__str__(CBetaPDBSelector self) -> std::string"""
12675  return _IMP_atom.CBetaPDBSelector___str__(self)
12676 
12677  def __repr__(self):
12678  r"""__repr__(CBetaPDBSelector self) -> std::string"""
12679  return _IMP_atom.CBetaPDBSelector___repr__(self)
12680 
12681  @staticmethod
12682  def get_from(o):
12683  return _object_cast_to_CBetaPDBSelector(o)
12684 
12685 
12686 # Register CBetaPDBSelector in _IMP_atom:
12687 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12688 class AtomTypePDBSelector(PDBSelector):
12689  r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12690 
12691  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12692 
12693  def __init__(self, *args):
12694  r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12695  _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12696 
12697  def get_version_info(self):
12698  r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12699  return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12700  __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12701 
12702  def __str__(self):
12703  r"""__str__(AtomTypePDBSelector self) -> std::string"""
12704  return _IMP_atom.AtomTypePDBSelector___str__(self)
12705 
12706  def __repr__(self):
12707  r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12708  return _IMP_atom.AtomTypePDBSelector___repr__(self)
12709 
12710  @staticmethod
12711  def get_from(o):
12712  return _object_cast_to_AtomTypePDBSelector(o)
12713 
12714 
12715 # Register AtomTypePDBSelector in _IMP_atom:
12716 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12717 class ResidueTypePDBSelector(PDBSelector):
12718  r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12719 
12720  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12721 
12722  def __init__(self, *args):
12723  r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12724  _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12725 
12726  def get_version_info(self):
12727  r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12728  return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12729  __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12730 
12731  def __str__(self):
12732  r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12733  return _IMP_atom.ResidueTypePDBSelector___str__(self)
12734 
12735  def __repr__(self):
12736  r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12737  return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12738 
12739  @staticmethod
12740  def get_from(o):
12741  return _object_cast_to_ResidueTypePDBSelector(o)
12742 
12743 
12744 # Register ResidueTypePDBSelector in _IMP_atom:
12745 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12746 class CPDBSelector(NonAlternativePDBSelector):
12747  r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12748 
12749  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12750 
12751  def __init__(self, *args):
12752  r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12753  _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12754  __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12755 
12756  def __str__(self):
12757  r"""__str__(CPDBSelector self) -> std::string"""
12758  return _IMP_atom.CPDBSelector___str__(self)
12759 
12760  def __repr__(self):
12761  r"""__repr__(CPDBSelector self) -> std::string"""
12762  return _IMP_atom.CPDBSelector___repr__(self)
12763 
12764  @staticmethod
12765  def get_from(o):
12766  return _object_cast_to_CPDBSelector(o)
12767 
12768 
12769 # Register CPDBSelector in _IMP_atom:
12770 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12771 class NPDBSelector(NonAlternativePDBSelector):
12772  r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12773 
12774  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12775 
12776  def __init__(self, *args):
12777  r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12778  _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12779  __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12780 
12781  def __str__(self):
12782  r"""__str__(NPDBSelector self) -> std::string"""
12783  return _IMP_atom.NPDBSelector___str__(self)
12784 
12785  def __repr__(self):
12786  r"""__repr__(NPDBSelector self) -> std::string"""
12787  return _IMP_atom.NPDBSelector___repr__(self)
12788 
12789  @staticmethod
12790  def get_from(o):
12791  return _object_cast_to_NPDBSelector(o)
12792 
12793 
12794 # Register NPDBSelector in _IMP_atom:
12795 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12796 class AllPDBSelector(PDBSelector):
12797  r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12798 
12799  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12800 
12801  def __init__(self, *args):
12802  r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12803  _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12804 
12805  def get_version_info(self):
12806  r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12807  return _IMP_atom.AllPDBSelector_get_version_info(self)
12808  __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12809 
12810  def __str__(self):
12811  r"""__str__(AllPDBSelector self) -> std::string"""
12812  return _IMP_atom.AllPDBSelector___str__(self)
12813 
12814  def __repr__(self):
12815  r"""__repr__(AllPDBSelector self) -> std::string"""
12816  return _IMP_atom.AllPDBSelector___repr__(self)
12817 
12818  @staticmethod
12819  def get_from(o):
12820  return _object_cast_to_AllPDBSelector(o)
12821 
12822 
12823 # Register AllPDBSelector in _IMP_atom:
12824 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12825 class ChainPDBSelector(NonAlternativePDBSelector):
12826  r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12827 
12828  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12829  __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12830 
12831  def __init__(self, *args):
12832  r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12833  _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12834 
12835  def __str__(self):
12836  r"""__str__(ChainPDBSelector self) -> std::string"""
12837  return _IMP_atom.ChainPDBSelector___str__(self)
12838 
12839  def __repr__(self):
12840  r"""__repr__(ChainPDBSelector self) -> std::string"""
12841  return _IMP_atom.ChainPDBSelector___repr__(self)
12842 
12843  @staticmethod
12844  def get_from(o):
12845  return _object_cast_to_ChainPDBSelector(o)
12846 
12847 
12848 # Register ChainPDBSelector in _IMP_atom:
12849 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12850 class WaterPDBSelector(NonAlternativePDBSelector):
12851  r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12852 
12853  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12854 
12855  def __init__(self, *args):
12856  r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12857  _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12858  __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12859 
12860  def __str__(self):
12861  r"""__str__(WaterPDBSelector self) -> std::string"""
12862  return _IMP_atom.WaterPDBSelector___str__(self)
12863 
12864  def __repr__(self):
12865  r"""__repr__(WaterPDBSelector self) -> std::string"""
12866  return _IMP_atom.WaterPDBSelector___repr__(self)
12867 
12868  @staticmethod
12869  def get_from(o):
12870  return _object_cast_to_WaterPDBSelector(o)
12871 
12872 
12873 # Register WaterPDBSelector in _IMP_atom:
12874 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12875 class HydrogenPDBSelector(NonAlternativePDBSelector):
12876  r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12877 
12878  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12879 
12880  def __init__(self, *args):
12881  r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12882  _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12883  __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12884 
12885  def __str__(self):
12886  r"""__str__(HydrogenPDBSelector self) -> std::string"""
12887  return _IMP_atom.HydrogenPDBSelector___str__(self)
12888 
12889  def __repr__(self):
12890  r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12891  return _IMP_atom.HydrogenPDBSelector___repr__(self)
12892 
12893  @staticmethod
12894  def get_from(o):
12895  return _object_cast_to_HydrogenPDBSelector(o)
12896 
12897 
12898 # Register HydrogenPDBSelector in _IMP_atom:
12899 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12900 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12901  r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12902 
12903  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12904  __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12905 
12906  def __init__(self, *args):
12907  r"""
12908  __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12909  __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12910  """
12911  _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12912 
12913  def __str__(self):
12914  r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12915  return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12916 
12917  def __repr__(self):
12918  r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12919  return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12920 
12921  @staticmethod
12922  def get_from(o):
12923  return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12924 
12925 
12926 # Register NonWaterNonHydrogenPDBSelector in _IMP_atom:
12927 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12928 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12929  r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12930 
12931  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12932  __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12933 
12934  def __init__(self, *args):
12935  r"""
12936  __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12937  __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12938  """
12939  _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12940 
12941  def __str__(self):
12942  r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12943  return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12944 
12945  def __repr__(self):
12946  r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12947  return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12948 
12949  @staticmethod
12950  def get_from(o):
12951  return _object_cast_to_NonHydrogenPDBSelector(o)
12952 
12953 
12954 # Register NonHydrogenPDBSelector in _IMP_atom:
12955 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12956 class NonWaterPDBSelector(NonAlternativePDBSelector):
12957  r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12958 
12959  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12960  __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12961 
12962  def __init__(self, *args):
12963  r"""
12964  __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12965  __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12966  """
12967  _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12968 
12969  def __str__(self):
12970  r"""__str__(NonWaterPDBSelector self) -> std::string"""
12971  return _IMP_atom.NonWaterPDBSelector___str__(self)
12972 
12973  def __repr__(self):
12974  r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12975  return _IMP_atom.NonWaterPDBSelector___repr__(self)
12976 
12977  @staticmethod
12978  def get_from(o):
12979  return _object_cast_to_NonWaterPDBSelector(o)
12980 
12981 
12982 # Register NonWaterPDBSelector in _IMP_atom:
12983 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12984 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12985  r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12986 
12987  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12988 
12989  def __init__(self, *args):
12990  r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12991  _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12992  __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12993 
12994  def __str__(self):
12995  r"""__str__(BackbonePDBSelector self) -> std::string"""
12996  return _IMP_atom.BackbonePDBSelector___str__(self)
12997 
12998  def __repr__(self):
12999  r"""__repr__(BackbonePDBSelector self) -> std::string"""
13000  return _IMP_atom.BackbonePDBSelector___repr__(self)
13001 
13002  @staticmethod
13003  def get_from(o):
13004  return _object_cast_to_BackbonePDBSelector(o)
13005 
13006 
13007 # Register BackbonePDBSelector in _IMP_atom:
13008 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
13009 class PPDBSelector(NonAlternativePDBSelector):
13010  r"""Proxy of C++ IMP::atom::PPDBSelector class."""
13011 
13012  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13013 
13014  def __init__(self, *args):
13015  r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
13016  _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
13017  __swig_destroy__ = _IMP_atom.delete_PPDBSelector
13018 
13019  def __str__(self):
13020  r"""__str__(PPDBSelector self) -> std::string"""
13021  return _IMP_atom.PPDBSelector___str__(self)
13022 
13023  def __repr__(self):
13024  r"""__repr__(PPDBSelector self) -> std::string"""
13025  return _IMP_atom.PPDBSelector___repr__(self)
13026 
13027  @staticmethod
13028  def get_from(o):
13029  return _object_cast_to_PPDBSelector(o)
13030 
13031 
13032 # Register PPDBSelector in _IMP_atom:
13033 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
13034 class ResidueRangePDBSelector(PDBSelector):
13035  r"""Proxy of C++ IMP::atom::ResidueRangePDBSelector class."""
13036 
13037  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13038 
13039  def __init__(self, *args):
13040  r"""__init__(ResidueRangePDBSelector self, int low, int high=std::numeric_limits< int >::max(), std::string name="ResidueRangePDBSelector%1%") -> ResidueRangePDBSelector"""
13041  _IMP_atom.ResidueRangePDBSelector_swiginit(self, _IMP_atom.new_ResidueRangePDBSelector(*args))
13042 
13043  def get_version_info(self):
13044  r"""get_version_info(ResidueRangePDBSelector self) -> VersionInfo"""
13045  return _IMP_atom.ResidueRangePDBSelector_get_version_info(self)
13046  __swig_destroy__ = _IMP_atom.delete_ResidueRangePDBSelector
13047 
13048  def __str__(self):
13049  r"""__str__(ResidueRangePDBSelector self) -> std::string"""
13050  return _IMP_atom.ResidueRangePDBSelector___str__(self)
13051 
13052  def __repr__(self):
13053  r"""__repr__(ResidueRangePDBSelector self) -> std::string"""
13054  return _IMP_atom.ResidueRangePDBSelector___repr__(self)
13055 
13056  @staticmethod
13057  def get_from(o):
13058  return _object_cast_to_ResidueRangePDBSelector(o)
13059 
13060 
13061 # Register ResidueRangePDBSelector in _IMP_atom:
13062 _IMP_atom.ResidueRangePDBSelector_swigregister(ResidueRangePDBSelector)
13063 class AndPDBSelector(PDBSelector):
13064  r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
13065 
13066  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13067 
13068  def get_version_info(self):
13069  r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
13070  return _IMP_atom.AndPDBSelector_get_version_info(self)
13071  __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
13072 
13073  def __init__(self, a, b):
13074  r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
13075  _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
13076 
13077  def __str__(self):
13078  r"""__str__(AndPDBSelector self) -> std::string"""
13079  return _IMP_atom.AndPDBSelector___str__(self)
13080 
13081  def __repr__(self):
13082  r"""__repr__(AndPDBSelector self) -> std::string"""
13083  return _IMP_atom.AndPDBSelector___repr__(self)
13084 
13085  @staticmethod
13086  def get_from(o):
13087  return _object_cast_to_AndPDBSelector(o)
13088 
13089 
13090 # Register AndPDBSelector in _IMP_atom:
13091 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
13092 class OrPDBSelector(PDBSelector):
13093  r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
13094 
13095  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13096 
13097  def get_version_info(self):
13098  r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
13099  return _IMP_atom.OrPDBSelector_get_version_info(self)
13100  __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
13101 
13102  def __init__(self, a, b):
13103  r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
13104  _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
13105 
13106  def __str__(self):
13107  r"""__str__(OrPDBSelector self) -> std::string"""
13108  return _IMP_atom.OrPDBSelector___str__(self)
13109 
13110  def __repr__(self):
13111  r"""__repr__(OrPDBSelector self) -> std::string"""
13112  return _IMP_atom.OrPDBSelector___repr__(self)
13113 
13114  @staticmethod
13115  def get_from(o):
13116  return _object_cast_to_OrPDBSelector(o)
13117 
13118 
13119 # Register OrPDBSelector in _IMP_atom:
13120 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
13121 class XorPDBSelector(PDBSelector):
13122  r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
13123 
13124  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13125 
13126  def get_version_info(self):
13127  r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
13128  return _IMP_atom.XorPDBSelector_get_version_info(self)
13129  __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
13130 
13131  def __init__(self, a, b):
13132  r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
13133  _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
13134 
13135  def __str__(self):
13136  r"""__str__(XorPDBSelector self) -> std::string"""
13137  return _IMP_atom.XorPDBSelector___str__(self)
13138 
13139  def __repr__(self):
13140  r"""__repr__(XorPDBSelector self) -> std::string"""
13141  return _IMP_atom.XorPDBSelector___repr__(self)
13142 
13143  @staticmethod
13144  def get_from(o):
13145  return _object_cast_to_XorPDBSelector(o)
13146 
13147 
13148 # Register XorPDBSelector in _IMP_atom:
13149 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
13150 class NotPDBSelector(PDBSelector):
13151  r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
13152 
13153  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13154 
13155  def get_version_info(self):
13156  r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
13157  return _IMP_atom.NotPDBSelector_get_version_info(self)
13158  __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
13159 
13160  def __init__(self, a):
13161  r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
13162  _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
13163 
13164  def __str__(self):
13165  r"""__str__(NotPDBSelector self) -> std::string"""
13166  return _IMP_atom.NotPDBSelector___str__(self)
13167 
13168  def __repr__(self):
13169  r"""__repr__(NotPDBSelector self) -> std::string"""
13170  return _IMP_atom.NotPDBSelector___repr__(self)
13171 
13172  @staticmethod
13173  def get_from(o):
13174  return _object_cast_to_NotPDBSelector(o)
13175 
13176 
13177 # Register NotPDBSelector in _IMP_atom:
13178 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
13179 
13180 def get_default_pdb_selector():
13181  r"""get_default_pdb_selector() -> PDBSelector"""
13182  return _IMP_atom.get_default_pdb_selector()
13183 
13184 def read_pdb(*args):
13185  r"""
13186  read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
13187  read_pdb(TextInput input, int model, Hierarchy h)
13188  """
13189  return _IMP_atom.read_pdb(*args)
13190 
13191 def read_multimodel_pdb(*args):
13192  r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13193  return _IMP_atom.read_multimodel_pdb(*args)
13194 
13195 def write_pdb(mhd, out, model=1):
13196  r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
13197  return _IMP_atom.write_pdb(mhd, out, model)
13198 
13199 def write_pdb_of_c_alphas(mhd, out, model=1):
13200  r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
13201  return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
13202 
13203 def write_multimodel_pdb(mhd, out):
13204  r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
13205  return _IMP_atom.write_multimodel_pdb(mhd, out)
13206 
13207 def get_pdb_string(*args):
13208  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"""
13209  return _IMP_atom.get_pdb_string(*args)
13210 
13211 def get_pdb_conect_record_string(arg1, arg2):
13212  r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
13213  return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
13214 class WritePDBOptimizerState(IMP.OptimizerState):
13215  r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
13216 
13217  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13218 
13219  def __init__(self, *args):
13220  r"""
13221  __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
13222  __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
13223  __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
13224  """
13225  _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
13226 
13227  def get_version_info(self):
13228  r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
13229  return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
13230  __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
13231 
13232  def __str__(self):
13233  r"""__str__(WritePDBOptimizerState self) -> std::string"""
13234  return _IMP_atom.WritePDBOptimizerState___str__(self)
13235 
13236  def __repr__(self):
13237  r"""__repr__(WritePDBOptimizerState self) -> std::string"""
13238  return _IMP_atom.WritePDBOptimizerState___repr__(self)
13239 
13240  @staticmethod
13241  def get_from(o):
13242  return _object_cast_to_WritePDBOptimizerState(o)
13243 
13244 
13245  def _get_as_binary(self):
13246  r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
13247  return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
13248 
13249  def _set_from_binary(self, p):
13250  r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
13251  return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
13252 
13253  def __getstate__(self):
13254  p = self._get_as_binary()
13255  if len(self.__dict__) > 1:
13256  d = self.__dict__.copy()
13257  del d['this']
13258  p = (d, p)
13259  return p
13260 
13261  def __setstate__(self, p):
13262  if not hasattr(self, 'this'):
13263  self.__init__()
13264  if isinstance(p, tuple):
13265  d, p = p
13266  self.__dict__.update(d)
13267  return self._set_from_binary(p)
13268 
13269 
13270 # Register WritePDBOptimizerState in _IMP_atom:
13271 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
13272 
13273 def read_multimodel_mmcif(*args):
13274  r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13275  return _IMP_atom.read_multimodel_mmcif(*args)
13276 
13277 def read_mmcif(*args):
13278  r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13279  return _IMP_atom.read_mmcif(*args)
13280 
13281 def read_multimodel_bcif(*args):
13282  r"""read_multimodel_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13283  return _IMP_atom.read_multimodel_bcif(*args)
13284 
13285 def read_bcif(*args):
13286  r"""read_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13287  return _IMP_atom.read_bcif(*args)
13288 
13289 def read_pdb_any(*args):
13290  r"""read_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
13291  return _IMP_atom.read_pdb_any(*args)
13292 
13293 def read_multimodel_pdb_any(*args):
13294  r"""read_multimodel_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
13295  return _IMP_atom.read_multimodel_pdb_any(*args)
13296 
13297 def get_kt(T):
13298  r"""get_kt(double T) -> double"""
13299  return _IMP_atom.get_kt(T)
13300 class CAAngleRestraint(IMP.Restraint):
13301  r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
13302 
13303  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13304 
13305  def __init__(self, m, p1, p2, p3, phi0, score):
13306  r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
13307  _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
13308 
13309  def do_get_inputs(self):
13310  r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
13311  return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
13312 
13313  def get_version_info(self):
13314  r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
13315  return _IMP_atom.CAAngleRestraint_get_version_info(self)
13316  __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
13317 
13318  def __str__(self):
13319  r"""__str__(CAAngleRestraint self) -> std::string"""
13320  return _IMP_atom.CAAngleRestraint___str__(self)
13321 
13322  def __repr__(self):
13323  r"""__repr__(CAAngleRestraint self) -> std::string"""
13324  return _IMP_atom.CAAngleRestraint___repr__(self)
13325 
13326  @staticmethod
13327  def get_from(o):
13328  return _object_cast_to_CAAngleRestraint(o)
13329 
13330 
13331 # Register CAAngleRestraint in _IMP_atom:
13332 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
13333 class CADihedralRestraint(IMP.Restraint):
13334  r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
13335 
13336  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13337 
13338  def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
13339  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"""
13340  _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
13341 
13342  def do_get_inputs(self):
13343  r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
13344  return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
13345 
13346  def get_version_info(self):
13347  r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
13348  return _IMP_atom.CADihedralRestraint_get_version_info(self)
13349  __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
13350 
13351  def __str__(self):
13352  r"""__str__(CADihedralRestraint self) -> std::string"""
13353  return _IMP_atom.CADihedralRestraint___str__(self)
13354 
13355  def __repr__(self):
13356  r"""__repr__(CADihedralRestraint self) -> std::string"""
13357  return _IMP_atom.CADihedralRestraint___repr__(self)
13358 
13359  @staticmethod
13360  def get_from(o):
13361  return _object_cast_to_CADihedralRestraint(o)
13362 
13363 
13364 # Register CADihedralRestraint in _IMP_atom:
13365 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
13366 class StructureSource(IMP.Decorator):
13367  r"""Proxy of C++ IMP::atom::StructureSource class."""
13368 
13369  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13370 
13371  def get_source_id(self):
13372  r"""get_source_id(StructureSource self) -> std::string"""
13373  return _IMP_atom.StructureSource_get_source_id(self)
13374 
13375  def get_source_chain_id(self):
13376  r"""get_source_chain_id(StructureSource self) -> std::string"""
13377  return _IMP_atom.StructureSource_get_source_chain_id(self)
13378 
13379  def set_source_id(self, source_id):
13380  r"""set_source_id(StructureSource self, std::string source_id)"""
13381  return _IMP_atom.StructureSource_set_source_id(self, source_id)
13382 
13383  def set_source_chain_id(self, source_chain_id):
13384  r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
13385  return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
13386 
13387  def __init__(self, *args):
13388  r"""
13389  __init__(StructureSource self) -> StructureSource
13390  __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
13391  __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
13392  """
13393  _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
13394 
13395  @staticmethod
13396  def get_is_setup(*args):
13397  r"""
13398  get_is_setup(Model m, ParticleIndex pi) -> bool
13399  get_is_setup(_ParticleAdaptor p) -> bool
13400  """
13401  return _IMP_atom.StructureSource_get_is_setup(*args)
13402 
13403  def show(self, *args):
13404  r"""show(StructureSource self, _ostream out=std::cout)"""
13405  return _IMP_atom.StructureSource_show(self, *args)
13406 
13407  @staticmethod
13408  def setup_particle(*args):
13409  r"""
13410  setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
13411  setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
13412  """
13413  return _IMP_atom.StructureSource_setup_particle(*args)
13414 
13415  def add_attribute(self, *args):
13416  r"""
13417  add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
13418  add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
13419  add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
13420  add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
13421  add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
13422  add_attribute(StructureSource self, StringKey a0, IMP::String a1)
13423  add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
13424  add_attribute(StructureSource self, ObjectKey a0, Object a1)
13425  add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13426  add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
13427  add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
13428  add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13429  """
13430  return _IMP_atom.StructureSource_add_attribute(self, *args)
13431 
13432  def get_value(self, *args):
13433  r"""
13434  get_value(StructureSource self, FloatKey a0) -> IMP::Float
13435  get_value(StructureSource self, IntKey a0) -> IMP::Int
13436  get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
13437  get_value(StructureSource self, IntsKey a0) -> IMP::Ints
13438  get_value(StructureSource self, StringKey a0) -> IMP::String
13439  get_value(StructureSource self, ParticleIndexKey a0) -> Particle
13440  get_value(StructureSource self, ObjectKey a0) -> Object
13441  get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
13442  get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
13443  get_value(StructureSource self, SparseStringKey a0) -> IMP::String
13444  get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
13445  """
13446  return _IMP_atom.StructureSource_get_value(self, *args)
13447 
13448  def set_value(self, *args):
13449  r"""
13450  set_value(StructureSource self, FloatKey a0, IMP::Float a1)
13451  set_value(StructureSource self, IntKey a0, IMP::Int a1)
13452  set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
13453  set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
13454  set_value(StructureSource self, StringKey a0, IMP::String a1)
13455  set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
13456  set_value(StructureSource self, ObjectKey a0, Object a1)
13457  set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13458  set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
13459  set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
13460  set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13461  """
13462  return _IMP_atom.StructureSource_set_value(self, *args)
13463 
13464  def remove_attribute(self, *args):
13465  r"""
13466  remove_attribute(StructureSource self, FloatKey a0)
13467  remove_attribute(StructureSource self, IntKey a0)
13468  remove_attribute(StructureSource self, FloatsKey a0)
13469  remove_attribute(StructureSource self, IntsKey a0)
13470  remove_attribute(StructureSource self, StringKey a0)
13471  remove_attribute(StructureSource self, ParticleIndexKey a0)
13472  remove_attribute(StructureSource self, ObjectKey a0)
13473  remove_attribute(StructureSource self, SparseFloatKey a0)
13474  remove_attribute(StructureSource self, SparseIntKey a0)
13475  remove_attribute(StructureSource self, SparseStringKey a0)
13476  remove_attribute(StructureSource self, SparseParticleIndexKey a0)
13477  """
13478  return _IMP_atom.StructureSource_remove_attribute(self, *args)
13479 
13480  def has_attribute(self, *args):
13481  r"""
13482  has_attribute(StructureSource self, FloatKey a0) -> bool
13483  has_attribute(StructureSource self, IntKey a0) -> bool
13484  has_attribute(StructureSource self, FloatsKey a0) -> bool
13485  has_attribute(StructureSource self, IntsKey a0) -> bool
13486  has_attribute(StructureSource self, StringKey a0) -> bool
13487  has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
13488  has_attribute(StructureSource self, ObjectKey a0) -> bool
13489  has_attribute(StructureSource self, SparseFloatKey a0) -> bool
13490  has_attribute(StructureSource self, SparseIntKey a0) -> bool
13491  has_attribute(StructureSource self, SparseStringKey a0) -> bool
13492  has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
13493  """
13494  return _IMP_atom.StructureSource_has_attribute(self, *args)
13495 
13496  def get_derivative(self, a0):
13497  r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
13498  return _IMP_atom.StructureSource_get_derivative(self, a0)
13499 
13500  def get_name(self):
13501  r"""get_name(StructureSource self) -> std::string"""
13502  return _IMP_atom.StructureSource_get_name(self)
13503 
13504  def clear_caches(self):
13505  r"""clear_caches(StructureSource self)"""
13506  return _IMP_atom.StructureSource_clear_caches(self)
13507 
13508  def set_name(self, a0):
13509  r"""set_name(StructureSource self, std::string a0)"""
13510  return _IMP_atom.StructureSource_set_name(self, a0)
13511 
13512  def set_check_level(self, a0):
13513  r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
13514  return _IMP_atom.StructureSource_set_check_level(self, a0)
13515 
13516  def add_to_derivative(self, a0, a1, a2):
13517  r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13518  return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
13519 
13520  def set_is_optimized(self, a0, a1):
13521  r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
13522  return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
13523 
13524  def get_is_optimized(self, a0):
13525  r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
13526  return _IMP_atom.StructureSource_get_is_optimized(self, a0)
13527 
13528  def get_check_level(self):
13529  r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
13530  return _IMP_atom.StructureSource_get_check_level(self)
13531 
13532  def __eq__(self, *args):
13533  r"""
13534  __eq__(StructureSource self, StructureSource o) -> bool
13535  __eq__(StructureSource self, Particle d) -> bool
13536  """
13537  return _IMP_atom.StructureSource___eq__(self, *args)
13538 
13539  def __ne__(self, *args):
13540  r"""
13541  __ne__(StructureSource self, StructureSource o) -> bool
13542  __ne__(StructureSource self, Particle d) -> bool
13543  """
13544  return _IMP_atom.StructureSource___ne__(self, *args)
13545 
13546  def __le__(self, *args):
13547  r"""
13548  __le__(StructureSource self, StructureSource o) -> bool
13549  __le__(StructureSource self, Particle d) -> bool
13550  """
13551  return _IMP_atom.StructureSource___le__(self, *args)
13552 
13553  def __lt__(self, *args):
13554  r"""
13555  __lt__(StructureSource self, StructureSource o) -> bool
13556  __lt__(StructureSource self, Particle d) -> bool
13557  """
13558  return _IMP_atom.StructureSource___lt__(self, *args)
13559 
13560  def __ge__(self, *args):
13561  r"""
13562  __ge__(StructureSource self, StructureSource o) -> bool
13563  __ge__(StructureSource self, Particle d) -> bool
13564  """
13565  return _IMP_atom.StructureSource___ge__(self, *args)
13566 
13567  def __gt__(self, *args):
13568  r"""
13569  __gt__(StructureSource self, StructureSource o) -> bool
13570  __gt__(StructureSource self, Particle d) -> bool
13571  """
13572  return _IMP_atom.StructureSource___gt__(self, *args)
13573 
13574  def __hash__(self):
13575  r"""__hash__(StructureSource self) -> std::size_t"""
13576  return _IMP_atom.StructureSource___hash__(self)
13577 
13578  def __str__(self):
13579  r"""__str__(StructureSource self) -> std::string"""
13580  return _IMP_atom.StructureSource___str__(self)
13581 
13582  def __repr__(self):
13583  r"""__repr__(StructureSource self) -> std::string"""
13584  return _IMP_atom.StructureSource___repr__(self)
13585 
13586  def _get_as_binary(self):
13587  r"""_get_as_binary(StructureSource self) -> PyObject *"""
13588  return _IMP_atom.StructureSource__get_as_binary(self)
13589 
13590  def _set_from_binary(self, p):
13591  r"""_set_from_binary(StructureSource self, PyObject * p)"""
13592  return _IMP_atom.StructureSource__set_from_binary(self, p)
13593 
13594  def __getstate__(self):
13595  p = self._get_as_binary()
13596  if len(self.__dict__) > 1:
13597  d = self.__dict__.copy()
13598  del d['this']
13599  p = (d, p)
13600  return p
13601 
13602  def __setstate__(self, p):
13603  if not hasattr(self, 'this'):
13604  self.__init__()
13605  if isinstance(p, tuple):
13606  d, p = p
13607  self.__dict__.update(d)
13608  return self._set_from_binary(p)
13609 
13610  __swig_destroy__ = _IMP_atom.delete_StructureSource
13611 
13612 # Register StructureSource in _IMP_atom:
13613 _IMP_atom.StructureSource_swigregister(StructureSource)
13614 
13615 def __lshift__(*args):
13616  r"""
13617  __lshift__(_ostream out, Bonded n) -> _ostream
13618  __lshift__(_ostream out, Bond n) -> _ostream
13619  __lshift__(_ostream out, Hierarchy n) -> _ostream
13620  __lshift__(_ostream out, Angle n) -> _ostream
13621  __lshift__(_ostream out, Dihedral n) -> _ostream
13622  __lshift__(_ostream out, CenterOfMass n) -> _ostream
13623  __lshift__(_ostream out, Diffusion n) -> _ostream
13624  __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13625  __lshift__(_ostream out, TAMDParticle n) -> _ostream
13626  __lshift__(_ostream out, Charged n) -> _ostream
13627  __lshift__(_ostream out, Domain n) -> _ostream
13628  __lshift__(_ostream out, LennardJonesTyped n) -> _ostream
13629  __lshift__(_ostream out, Fragment n) -> _ostream
13630  __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13631  __lshift__(_ostream out, Atom n) -> _ostream
13632  __lshift__(_ostream out, Residue n) -> _ostream
13633  __lshift__(_ostream out, Representation n) -> _ostream
13634  __lshift__(_ostream out, State n) -> _ostream
13635  __lshift__(_ostream out, Molecule n) -> _ostream
13636  __lshift__(_ostream out, Copy n) -> _ostream
13637  __lshift__(_ostream out, Chain n) -> _ostream
13638  __lshift__(_ostream out, StructureSource n) -> _ostream
13639  """
13640  return _IMP_atom.__lshift__(*args)
13641 class HelixRestraint(IMP.Restraint):
13642  r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13643 
13644  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13645 
13646  def __init__(self, rs, ideal=True):
13647  r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13648  _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13649 
13650  def get_number_of_bonds(self):
13651  r"""get_number_of_bonds(HelixRestraint self) -> int"""
13652  return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13653 
13654  def get_number_of_dihedrals(self):
13655  r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13656  return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13657 
13658  def do_get_inputs(self):
13659  r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13660  return _IMP_atom.HelixRestraint_do_get_inputs(self)
13661 
13662  def get_version_info(self):
13663  r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13664  return _IMP_atom.HelixRestraint_get_version_info(self)
13665  __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13666 
13667  def __str__(self):
13668  r"""__str__(HelixRestraint self) -> std::string"""
13669  return _IMP_atom.HelixRestraint___str__(self)
13670 
13671  def __repr__(self):
13672  r"""__repr__(HelixRestraint self) -> std::string"""
13673  return _IMP_atom.HelixRestraint___repr__(self)
13674 
13675  @staticmethod
13676  def get_from(o):
13677  return _object_cast_to_HelixRestraint(o)
13678 
13679 
13680 # Register HelixRestraint in _IMP_atom:
13681 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13682 
13684  r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13685  return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13686 
13687 def show_molecular_hierarchy(*args):
13688  r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13689  return _IMP_atom.show_molecular_hierarchy(*args)
13690 class CHARMMBond(object):
13691  r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13692 
13693  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13694  __repr__ = _swig_repr
13695 
13696  def __init__(self, atoms):
13697  r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13698  _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13699 
13700  def get_endpoint(self, i):
13701  r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13702  return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13703 
13704  def get_contains_atom(self, name):
13705  r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13706  return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13707 
13708  def show(self, *args):
13709  r"""show(CHARMMBond self, _ostream out=std::cout)"""
13710  return _IMP_atom.CHARMMBond_show(self, *args)
13711  __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13712 
13713 # Register CHARMMBond in _IMP_atom:
13714 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13715 class CHARMMAngle(object):
13716  r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13717 
13718  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13719  __repr__ = _swig_repr
13720 
13721  def __init__(self, atoms):
13722  r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13723  _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13724 
13725  def get_endpoint(self, i):
13726  r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13727  return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13728 
13729  def get_contains_atom(self, name):
13730  r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13731  return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13732 
13733  def show(self, *args):
13734  r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13735  return _IMP_atom.CHARMMAngle_show(self, *args)
13736  __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13737 
13738 # Register CHARMMAngle in _IMP_atom:
13739 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13740 
13741 def _get_native_overlap_cpp(m1, m2, threshold):
13742  r"""_get_native_overlap_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2, double threshold) -> double"""
13743  return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13744 
13745 def _get_drmsd_cpp(m0, m1):
13746  r"""_get_drmsd_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m0, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1) -> double"""
13747  return _IMP_atom._get_drmsd_cpp(m0, m1)
13748 
13749 def _get_drmsd_Q_cpp(m0, m1, threshold):
13750  r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m0, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, double threshold) -> double"""
13751  return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13752 
13753 def _get_drms_cpp(m1, m2):
13754  r"""_get_drms_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2) -> double"""
13755  return _IMP_atom._get_drms_cpp(m1, m2)
13756 
13757 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13758  r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m1, IMP::Vector< IMP::VectorD< 3 >,std::allocator< IMP::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13759  return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13760 
13761 def get_native_overlap(a, b, d):
13762  va= [IMP.algebra.get_vector(x) for x in a]
13763  vb= [IMP.algebra.get_vector(x) for x in b]
13764  return _get_native_overlap_cpp(va, vb, d)
13765 
13766 def get_drmsd(a, b):
13767  va= [IMP.algebra.get_vector(x) for x in a]
13768  vb= [IMP.algebra.get_vector(x) for x in b]
13769  return _get_drmsd_cpp(va, vb)
13770 
13771 def get_drms(a, b):
13772  va= [IMP.algebra.get_vector(x) for x in a]
13773  vb= [IMP.algebra.get_vector(x) for x in b]
13774  return _get_drms_cpp(va, vb)
13775 
13776 def get_drmsd_Q(a, b, t):
13777  va= [IMP.algebra.get_vector(x) for x in a]
13778  vb= [IMP.algebra.get_vector(x) for x in b]
13779  return _get_drmsd_Q_cpp(va, vb, t)
13780 
13781 def get_rigid_bodies_drms(a, b, ranges):
13782  va= [IMP.algebra.get_vector(x) for x in a]
13783  vb= [IMP.algebra.get_vector(x) for x in b]
13784 #rs = [IMP.IntRange(r[0],r[1]) for r in ranges]
13785  return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13786 
13787 
13788 class _LennardJonesTypedPairScore(IMP.PairScore):
13789  r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::SmoothingFunction > class."""
13790 
13791  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13792  __repr__ = _swig_repr
13793 
13794  def __init__(self, f):
13795  r"""__init__(_LennardJonesTypedPairScore self, SmoothingFunction f) -> _LennardJonesTypedPairScore"""
13796  _IMP_atom._LennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__LennardJonesTypedPairScore(f))
13797 
13798  def set_repulsive_weight(self, repulsive_weight):
13799  r"""set_repulsive_weight(_LennardJonesTypedPairScore self, double repulsive_weight)"""
13800  return _IMP_atom._LennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13801 
13802  def get_repulsive_weight(self):
13803  r"""get_repulsive_weight(_LennardJonesTypedPairScore self) -> double"""
13804  return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_weight(self)
13805 
13806  def set_attractive_weight(self, attractive_weight):
13807  r"""set_attractive_weight(_LennardJonesTypedPairScore self, double attractive_weight)"""
13808  return _IMP_atom._LennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13809 
13810  def get_attractive_weight(self):
13811  r"""get_attractive_weight(_LennardJonesTypedPairScore self) -> double"""
13812  return _IMP_atom._LennardJonesTypedPairScore_get_attractive_weight(self)
13813 
13814  def get_repulsive_type_factors(self):
13815  r"""get_repulsive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13816  return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_type_factors(self)
13817 
13818  def get_attractive_type_factors(self):
13819  r"""get_attractive_type_factors(_LennardJonesTypedPairScore self) -> IMP::Floats"""
13820  return _IMP_atom._LennardJonesTypedPairScore_get_attractive_type_factors(self)
13821 
13822  def get_smoothing_function(self):
13823  r"""get_smoothing_function(_LennardJonesTypedPairScore self) -> SmoothingFunction"""
13824  return _IMP_atom._LennardJonesTypedPairScore_get_smoothing_function(self)
13825 
13826  def do_get_inputs(self, m, pis):
13827  r"""do_get_inputs(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13828  return _IMP_atom._LennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13829 
13830  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13831  r"""evaluate_indexes(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13832  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13833 
13834  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13835  r"""evaluate_indexes_scores(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13836  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13837 
13838  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13839  r"""evaluate_indexes_delta(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13840  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13841 
13842  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13843  r"""evaluate_if_good_indexes(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13844  return _IMP_atom._LennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13845 
13846  def get_version_info(self):
13847  r"""get_version_info(_LennardJonesTypedPairScore self) -> VersionInfo"""
13848  return _IMP_atom._LennardJonesTypedPairScore_get_version_info(self)
13849  __swig_destroy__ = _IMP_atom.delete__LennardJonesTypedPairScore
13850 
13851  @staticmethod
13852  def get_from(o):
13853  return _object_cast_to__LennardJonesTypedPairScore(o)
13854 
13855 
13856  def _get_jax(self, m, indexes, space):
13857  import IMP.atom._jax_util
13858  score = IMP.atom._jax_util._get_lennard_jones_score(
13859  self, indexes, space)
13860  return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13861 
13862 
13863 # Register _LennardJonesTypedPairScore in _IMP_atom:
13864 _IMP_atom._LennardJonesTypedPairScore_swigregister(_LennardJonesTypedPairScore)
13865 class _SwitchedLennardJonesTypedPairScore(IMP.PairScore):
13866  r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::ForceSwitch > class."""
13867 
13868  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13869  __repr__ = _swig_repr
13870 
13871  def __init__(self, f):
13872  r"""__init__(_SwitchedLennardJonesTypedPairScore self, ForceSwitch f) -> _SwitchedLennardJonesTypedPairScore"""
13873  _IMP_atom._SwitchedLennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__SwitchedLennardJonesTypedPairScore(f))
13874 
13875  def set_repulsive_weight(self, repulsive_weight):
13876  r"""set_repulsive_weight(_SwitchedLennardJonesTypedPairScore self, double repulsive_weight)"""
13877  return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13878 
13879  def get_repulsive_weight(self):
13880  r"""get_repulsive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13881  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_weight(self)
13882 
13883  def set_attractive_weight(self, attractive_weight):
13884  r"""set_attractive_weight(_SwitchedLennardJonesTypedPairScore self, double attractive_weight)"""
13885  return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13886 
13887  def get_attractive_weight(self):
13888  r"""get_attractive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13889  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_weight(self)
13890 
13891  def get_repulsive_type_factors(self):
13892  r"""get_repulsive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13893  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_type_factors(self)
13894 
13895  def get_attractive_type_factors(self):
13896  r"""get_attractive_type_factors(_SwitchedLennardJonesTypedPairScore self) -> IMP::Floats"""
13897  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_type_factors(self)
13898 
13899  def get_smoothing_function(self):
13900  r"""get_smoothing_function(_SwitchedLennardJonesTypedPairScore self) -> ForceSwitch"""
13901  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_smoothing_function(self)
13902 
13903  def do_get_inputs(self, m, pis):
13904  r"""do_get_inputs(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13905  return _IMP_atom._SwitchedLennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13906 
13907  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13908  r"""evaluate_indexes(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13909  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13910 
13911  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13912  r"""evaluate_indexes_scores(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13913  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13914 
13915  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13916  r"""evaluate_indexes_delta(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
13917  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13918 
13919  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13920  r"""evaluate_if_good_indexes(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
13921  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13922 
13923  def get_version_info(self):
13924  r"""get_version_info(_SwitchedLennardJonesTypedPairScore self) -> VersionInfo"""
13925  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_version_info(self)
13926  __swig_destroy__ = _IMP_atom.delete__SwitchedLennardJonesTypedPairScore
13927 
13928  @staticmethod
13929  def get_from(o):
13930  return _object_cast_to__SwitchedLennardJonesTypedPairScore(o)
13931 
13932 
13933  def _get_jax(self, m, indexes, space):
13934  import IMP.atom._jax_util
13935  score = IMP.atom._jax_util._get_lennard_jones_score(
13936  self, indexes, space)
13937  return self._wrap_jax(m, score, keys=[LennardJonesTyped.get_type_key()])
13938 
13939 
13940 # Register _SwitchedLennardJonesTypedPairScore in _IMP_atom:
13941 _IMP_atom._SwitchedLennardJonesTypedPairScore_swigregister(_SwitchedLennardJonesTypedPairScore)
13942 
13943 class LennardJonesTypedPairScore(_SwitchedLennardJonesTypedPairScore.__bases__[0]):
13944  def __init__(self, f):
13945  if isinstance(f, ForceSwitch):
13946  p = _SwitchedLennardJonesTypedPairScore(f)
13947  else:
13948  p = _LennardJonesTypedPairScore(f)
13949  self.__dict__['_proxied'] = p
13950  def __getattr__(self, key):
13951  return getattr(self._proxied, key)
13952  def __setattr__(self, key, val):
13953  return setattr(self._proxied, key, val)
13954 
13955  def _get_jax(self, *args, **kwargs):
13956  return self._proxied._get_jax(*args, **kwargs)
13957 
13958  @staticmethod
13959  def get_from(o):
13960  try:
13961  p = _SwitchedLennardJonesTypedPairScore.get_from(o)
13962  except ValueError:
13963  p = _LennardJonesTypedPairScore.get_from(o)
13964  obj = object.__new__(LennardJonesTypedPairScore)
13965  obj.__dict__['_proxied'] = p
13966  return obj
13967 
13968 
13969 def get_module_name():
13970  r"""get_module_name() -> std::string const"""
13971  return _IMP_atom.get_module_name()
13972 
13973 def get_module_version():
13974  r"""get_module_version() -> std::string const"""
13975  return _IMP_atom.get_module_version()
13976 
13977 def get_example_path(fname):
13978  r"""get_example_path(std::string fname) -> std::string"""
13979  return _IMP_atom.get_example_path(fname)
13980 
13981 def get_data_path(fname):
13982  r"""get_data_path(std::string fname) -> std::string"""
13983  return _IMP_atom.get_data_path(fname)
13984 
13985 from . import _version_check
13986 _version_check.check_version(get_module_version())
13987 __version__ = get_module_version()
13988 
13989 
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.
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
A shared container for Pairs.
Definition: PairContainer.h:39
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.
Definition: exception.h:80
Vector< AtomTypes > get_chi_dihedral_atom_types(ResidueType rt)
setup
Definition: setup.py:1
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)
Hierarchies read_multimodel_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the PDB-like file.
Definition: mmcif.h:86
void remove_charmm_untyped_atoms(Hierarchy hierarchy)
Remove any atom from the Hierarchy that does not have a CHARMM type.
Hierarchies read_multimodel_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the BinaryCIF file.
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.
double get_drmsd(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1)
Calculate distance the root mean square deviation between two sets of 3D points.
Definition: atom/distance.h:49
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
Definition: BoundingBoxD.h:301
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.
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.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false, Model *m=nullptr)
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
Hierarchy read_bcif(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 BinaryCIF file.
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)
Definition: estimates.h:101
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.
Hierarchy read_pdb_any(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-like file.
Definition: mmcif.h:61
double get_volume(const BoundingBoxD< D > &bb)
See BoundingBoxD.
Definition: BoundingBoxD.h:188
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.
ParticleIndexPairs get_indexes(const ParticlePairsTemp &ps)
Get the indexes from a list of particle pairs.
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)
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
Definition: Vector3D.h:76
Common base class for heavy weight IMP objects.
Definition: Object.h:111
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
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.
Definition: Optimizer.h:48
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)
Definition: estimates.h:92
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.
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:30
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)
Definition: Decorator.h:119
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)
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.
Definition: PairPredicate.h:31
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())
Provenance create_clone(Provenance p, Model *m=nullptr)
Clone provenance (including previous provenance)
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.
Definition: Refiner.h:36
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)
Definition: atom/distance.h:85
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.
Definition: exception.h:72
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.
Definition: Restraint.h:56