IMP logo
IMP Reference Guide  develop.50fdd7fa33,2025/08/31
The Integrative Modeling Platform
atom/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.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-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_atom
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __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 def _swig_add_metaclass(metaclass):
53  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
59 class _SwigNonDynamicMeta(type):
60  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62 
63 
64 import weakref
65 
66 class IMP_ATOM_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_ATOM_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_atom.delete_IMP_ATOM_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
78  return _IMP_atom.IMP_ATOM_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
82  return _IMP_atom.IMP_ATOM_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_ATOM_SwigPyIterator self, size_t n=1) -> IMP_ATOM_SwigPyIterator"""
86  return _IMP_atom.IMP_ATOM_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_atom.IMP_ATOM_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
94  return _IMP_atom.IMP_ATOM_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_ATOM_SwigPyIterator self) -> IMP_ATOM_SwigPyIterator"""
98  return _IMP_atom.IMP_ATOM_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
102  return _IMP_atom.IMP_ATOM_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
106  return _IMP_atom.IMP_ATOM_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_ATOM_SwigPyIterator self) -> PyObject *"""
110  return _IMP_atom.IMP_ATOM_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
114  return _IMP_atom.IMP_ATOM_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
118  return _IMP_atom.IMP_ATOM_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> bool"""
122  return _IMP_atom.IMP_ATOM_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
126  return _IMP_atom.IMP_ATOM_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
130  return _IMP_atom.IMP_ATOM_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator"""
134  return _IMP_atom.IMP_ATOM_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_ATOM_SwigPyIterator self, ptrdiff_t n) -> IMP_ATOM_SwigPyIterator
139  __sub__(IMP_ATOM_SwigPyIterator self, IMP_ATOM_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_atom.IMP_ATOM_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_ATOM_SwigPyIterator in _IMP_atom:
146 _IMP_atom.IMP_ATOM_SwigPyIterator_swigregister(IMP_ATOM_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_atom.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_atom.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_atom.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_atom.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_atom.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_atom.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_atom.IMP_MEMORY
166 
167 IMP_NONE = _IMP_atom.IMP_NONE
168 
169 IMP_USAGE = _IMP_atom.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_atom.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_atom.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_atom.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_atom.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_atom.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_atom.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_atom.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_atom.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_atom.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_atom.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_atom.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_atom.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
204  def register(self, obj):
205  """Take a reference to a director object; will only work for
206  refcounted C++ classes"""
207  if hasattr(obj, 'get_ref_count'):
208  self._objects.append(obj)
209  def cleanup(self):
210  """Only drop our reference and allow cleanup by Python if no other
211  Python references exist (we hold 3 references: one in self._objects,
212  one in x, and one in the argument list for getrefcount) *and* no
213  other C++ references exist (the Python object always holds one)"""
214  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
215  or x.get_ref_count() > 1]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
219  def get_object_count(self):
220  """Get number of director objects (useful for testing only)"""
221  return len(self._objects)
222 _director_objects = _DirectorObjects()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_atom._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_atom:
238 _IMP_atom._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_atom.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_atom.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_atom.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_atom.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_atom.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_atom.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_atom.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_atom.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_atom.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_atom.IMP_DISPLAY_HAS_IMP_CGAL
271 
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
273 
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_atom.IMP_DISPLAY_HAS_BOOST_RANDOM
277 
278 IMP_DISPLAY_HAS_CGAL = _IMP_atom.IMP_DISPLAY_HAS_CGAL
279 
280 IMP_DISPLAY_HAS_NUMPY = _IMP_atom.IMP_DISPLAY_HAS_NUMPY
281 
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_atom.IMPDISPLAY_SHOW_WARNINGS
283 
284 import IMP.display
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
286 
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
292 
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_CGAL
294 
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_HDF5
296 
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_atom.IMP_SCORE_FUNCTOR_HAS_NUMPY
298 
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_atom.IMPSCOREFUNCTOR_SHOW_WARNINGS
300 
301 import IMP.score_functor
302 IMP_CORE_HAS_IMP_CGAL = _IMP_atom.IMP_CORE_HAS_IMP_CGAL
303 
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_atom.IMP_CORE_HAS_IMP_KERNEL
305 
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CORE_HAS_BOOST_FILESYSTEM
307 
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
309 
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_atom.IMP_CORE_HAS_BOOST_RANDOM
311 
312 IMP_CORE_HAS_CGAL = _IMP_atom.IMP_CORE_HAS_CGAL
313 
314 IMP_CORE_HAS_HDF5 = _IMP_atom.IMP_CORE_HAS_HDF5
315 
316 IMP_CORE_HAS_NUMPY = _IMP_atom.IMP_CORE_HAS_NUMPY
317 
318 IMPCORE_SHOW_WARNINGS = _IMP_atom.IMPCORE_SHOW_WARNINGS
319 
320 import IMP.core
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_atom.IMP_CONTAINER_HAS_IMP_ALGEBRA
322 
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_atom.IMP_CONTAINER_HAS_IMP_CGAL
324 
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_atom.IMP_CONTAINER_HAS_IMP_DISPLAY
326 
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_atom.IMP_CONTAINER_HAS_IMP_KERNEL
328 
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
330 
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
332 
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
334 
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_atom.IMP_CONTAINER_HAS_BOOST_RANDOM
336 
337 IMP_CONTAINER_HAS_CGAL = _IMP_atom.IMP_CONTAINER_HAS_CGAL
338 
339 IMP_CONTAINER_HAS_HDF5 = _IMP_atom.IMP_CONTAINER_HAS_HDF5
340 
341 IMP_CONTAINER_HAS_NUMPY = _IMP_atom.IMP_CONTAINER_HAS_NUMPY
342 
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_atom.IMP_CONTAINER_HAS_PYTHON_IHM
344 
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_atom.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
346 
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_atom.IMP_CONTAINER_HAS_ROBIN_MAP
348 
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_atom.IMPCONTAINER_SHOW_WARNINGS
350 
351 import IMP.container
352 IMP_ATOM_HAS_IMP_CGAL = _IMP_atom.IMP_ATOM_HAS_IMP_CGAL
353 
354 IMP_ATOM_HAS_IMP_KERNEL = _IMP_atom.IMP_ATOM_HAS_IMP_KERNEL
355 
356 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_atom.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
357 
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_atom.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
359 
360 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_atom.IMP_ATOM_HAS_BOOST_RANDOM
361 
362 IMP_ATOM_HAS_BOOST_REGEX = _IMP_atom.IMP_ATOM_HAS_BOOST_REGEX
363 
364 IMP_ATOM_HAS_CGAL = _IMP_atom.IMP_ATOM_HAS_CGAL
365 
366 IMP_ATOM_HAS_HDF5 = _IMP_atom.IMP_ATOM_HAS_HDF5
367 
368 IMP_ATOM_HAS_NUMPY = _IMP_atom.IMP_ATOM_HAS_NUMPY
369 
370 IMP_ATOM_HAS_PYTHON_IHM = _IMP_atom.IMP_ATOM_HAS_PYTHON_IHM
371 
372 IMPATOM_SHOW_WARNINGS = _IMP_atom.IMPATOM_SHOW_WARNINGS
373 
374 IMP_ATOM_TYPE_INDEX = _IMP_atom.IMP_ATOM_TYPE_INDEX
375 
376 IMP_RESIDUE_TYPE_INDEX = _IMP_atom.IMP_RESIDUE_TYPE_INDEX
377 
378 IMP_HIERARCHY_TYPE_INDEX = _IMP_atom.IMP_HIERARCHY_TYPE_INDEX
379 
380 IMP_CHAIN_TYPE_INDEX = _IMP_atom.IMP_CHAIN_TYPE_INDEX
381 
383  r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex > class."""
384 
385  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
386  __repr__ = _swig_repr
387 
388  def __init__(self):
389  r"""__init__(HierarchyTree self) -> HierarchyTree"""
390  _IMP_atom.HierarchyTree_swiginit(self, _IMP_atom.new_HierarchyTree())
391 
392  def get_graph(self):
393  r"""get_graph(HierarchyTree self) -> IMP::atom::HierarchyTree const &"""
394  return _IMP_atom.HierarchyTree_get_graph(self)
395 
396  def get_vertices(self):
397  r"""get_vertices(HierarchyTree self) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptors"""
398  return _IMP_atom.HierarchyTree_get_vertices(self)
399 
400  def get_vertex_name(self, i):
401  r"""get_vertex_name(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor i) -> Hierarchy"""
402  return _IMP_atom.HierarchyTree_get_vertex_name(self, i)
403 
404  def get_in_neighbors(self, v):
405  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"""
406  return _IMP_atom.HierarchyTree_get_in_neighbors(self, v)
407 
408  def get_out_neighbors(self, v):
409  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"""
410  return _IMP_atom.HierarchyTree_get_out_neighbors(self, v)
411 
412  def show_graphviz(self, *args):
413  r"""show_graphviz(HierarchyTree self, _ostream out=std::cout)"""
414  return _IMP_atom.HierarchyTree_show_graphviz(self, *args)
415 
416  def get_graphviz_string(self):
417  r"""get_graphviz_string(HierarchyTree self) -> std::string"""
418  return _IMP_atom.HierarchyTree_get_graphviz_string(self)
419 
420  def add_edge(self, v0, v1):
421  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)"""
422  return _IMP_atom.HierarchyTree_add_edge(self, v0, v1)
423 
424  def add_vertex(self, l):
425  r"""add_vertex(HierarchyTree self, Hierarchy l) -> IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor"""
426  return _IMP_atom.HierarchyTree_add_vertex(self, l)
427 
428  def remove_vertex(self, l):
429  r"""remove_vertex(HierarchyTree self, IMP::internal::BoostDigraph< IMP::atom::HierarchyTree,IMP::atom::Hierarchy,IMP::atom::ShowHierarchyTreeVertex >::VertexDescriptor l)"""
430  return _IMP_atom.HierarchyTree_remove_vertex(self, l)
431  __swig_destroy__ = _IMP_atom.delete_HierarchyTree
432 
433 # Register HierarchyTree in _IMP_atom:
434 _IMP_atom.HierarchyTree_swigregister(HierarchyTree)
435 
436 _value_types.append("HierarchyTree")
437 
438 
439 PDBRecords=list
440 _plural_types.append("PDBRecords")
441 _value_types.append("PDBRecord")
442 
443 
444 _object_types.append("LennardJonesType")
445 
446 
447 def _object_cast_to_LennardJonesType(o):
448  r"""_object_cast_to_LennardJonesType(Object o) -> LennardJonesType"""
449  return _IMP_atom._object_cast_to_LennardJonesType(o)
450 
451 _object_types.append("PDBSelector")
452 
453 
454 def _object_cast_to_PDBSelector(o):
455  r"""_object_cast_to_PDBSelector(Object o) -> PDBSelector"""
456  return _IMP_atom._object_cast_to_PDBSelector(o)
457 
458 def Angles(l=[]):
459  return [Angle(x) for x in l]
460 _plural_types.append("Angles")
461 
462 
463 _value_types.append("Angle")
464 
465 
466 def Atoms(l=[]):
467  return [Atom(x) for x in l]
468 _plural_types.append("Atoms")
469 
470 
471 _value_types.append("Atom")
472 
473 
474 def Bonds(l=[]):
475  return [Bond(x) for x in l]
476 _plural_types.append("Bonds")
477 
478 
479 _value_types.append("Bond")
480 
481 
482 def Bondeds(l=[]):
483  return [Bonded(x) for x in l]
484 _plural_types.append("Bondeds")
485 
486 
487 _value_types.append("Bonded")
488 
489 
490 def CHARMMAtomList(l=[]):
491  return [CHARMMAtom(x) for x in l]
492 _plural_types.append("CHARMMAtomList")
493 
494 
495 _value_types.append("CHARMMAtom")
496 
497 
498 def Chains(l=[]):
499  return [Chain(x) for x in l]
500 _plural_types.append("Chains")
501 
502 
503 _value_types.append("Chain")
504 
505 
506 def CenterOfMasses(l=[]):
507  return [CenterOfMass(x) for x in l]
508 _plural_types.append("CenterOfMasses")
509 
510 
511 _value_types.append("CenterOfMass")
512 
513 
514 def Chargeds(l=[]):
515  return [Charged(x) for x in l]
516 _plural_types.append("Chargeds")
517 
518 
519 _value_types.append("Charged")
520 
521 
522 def Diffusions(l=[]):
523  return [Diffusion(x) for x in l]
524 _plural_types.append("Diffusions")
525 
526 
527 _value_types.append("Diffusion")
528 
529 
530 def RigidBodyDiffusions(l=[]):
531  return [RigidBodyDiffusion(x) for x in l]
532 _plural_types.append("RigidBodyDiffusions")
533 
534 
535 _value_types.append("RigidBodyDiffusion")
536 
537 
538 def TAMDParticles(l=[]):
539  return [TAMDParticle(x) for x in l]
540 _plural_types.append("TAMDParticles")
541 
542 
543 _value_types.append("TAMDParticle")
544 
545 
546 def TAMDCentroids(l=[]):
547  return [TAMDCentroid(x) for x in l]
548 _plural_types.append("TAMDCentroids")
549 
550 
551 _value_types.append("TAMDCentroid")
552 
553 
554 def Dihedrals(l=[]):
555  return [Dihedral(x) for x in l]
556 _plural_types.append("Dihedrals")
557 
558 
559 _value_types.append("Dihedral")
560 
561 
562 def Domains(l=[]):
563  return [Domain(x) for x in l]
564 _plural_types.append("Domains")
565 
566 
567 _value_types.append("Domain")
568 
569 
570 def Fragments(l=[]):
571  return [Fragment(x) for x in l]
572 _plural_types.append("Fragments")
573 
574 
575 _value_types.append("Fragment")
576 
577 
578 def Hierarchies(l=[]):
579  return [Hierarchy(x) for x in l]
580 _plural_types.append("Hierarchies")
581 
582 
583 _value_types.append("Hierarchy")
584 
585 
586 def LennardJonesTypeds(l=[]):
587  return [LennardJonesTyped(x) for x in l]
588 _plural_types.append("LennardJonesTypeds")
589 
590 
591 _value_types.append("LennardJonesTyped")
592 
593 
594 def Masses(l=[]):
595  return [Mass(x) for x in l]
596 _plural_types.append("Masses")
597 
598 
599 _value_types.append("Mass")
600 
601 
602 def LinearVelocities(l=[]):
603  return [LinearVelocity(x) for x in l]
604 _plural_types.append("LinearVelocities")
605 
606 
607 _value_types.append("LinearVelocity")
608 
609 
610 def AngularVelocities(l=[]):
611  return [AngularVelocity(x) for x in l]
612 _plural_types.append("AngularVelocities")
613 
614 
615 _value_types.append("AngularVelocity")
616 
617 
618 def Molecules(l=[]):
619  return [Molecule(x) for x in l]
620 _plural_types.append("Molecules")
621 
622 
623 _value_types.append("Molecule")
624 
625 
626 def Residues(l=[]):
627  return [Residue(x) for x in l]
628 _plural_types.append("Residues")
629 
630 
631 _value_types.append("Residue")
632 
633 
634 def Representations(l=[]):
635  return [Representation(x) for x in l]
636 _plural_types.append("Representations")
637 
638 
639 _value_types.append("Representation")
640 
641 
642 def States(l=[]):
643  return [State(x) for x in l]
644 _plural_types.append("States")
645 
646 
647 _value_types.append("State")
648 
649 
650 def Copies(l=[]):
651  return [Copy(x) for x in l]
652 _plural_types.append("Copies")
653 
654 
655 _value_types.append("Copy")
656 
657 
658 def SecondaryStructureResidues(l=[]):
659  return [SecondaryStructureResidue(x) for x in l]
660 _plural_types.append("SecondaryStructureResidues")
661 
662 
663 _value_types.append("SecondaryStructureResidue")
664 
665 
666 def StructureSources(l=[]):
667  return [StructureSource(x) for x in l]
668 _plural_types.append("StructureSources")
669 
670 
671 _value_types.append("StructureSource")
672 
673 
674 _object_types.append("Simulator")
675 
676 
677 def _object_cast_to_Simulator(o):
678  r"""_object_cast_to_Simulator(Object o) -> Simulator"""
679  return _IMP_atom._object_cast_to_Simulator(o)
680 
681 _object_types.append("ATOMPDBSelector")
682 
683 
684 def _object_cast_to_ATOMPDBSelector(o):
685  r"""_object_cast_to_ATOMPDBSelector(Object o) -> ATOMPDBSelector"""
686  return _IMP_atom._object_cast_to_ATOMPDBSelector(o)
687 
688 _object_types.append("AllMol2Selector")
689 
690 
691 def _object_cast_to_AllMol2Selector(o):
692  r"""_object_cast_to_AllMol2Selector(Object o) -> AllMol2Selector"""
693  return _IMP_atom._object_cast_to_AllMol2Selector(o)
694 
695 _object_types.append("AllPDBSelector")
696 
697 
698 def _object_cast_to_AllPDBSelector(o):
699  r"""_object_cast_to_AllPDBSelector(Object o) -> AllPDBSelector"""
700  return _IMP_atom._object_cast_to_AllPDBSelector(o)
701 
702 _object_types.append("AndPDBSelector")
703 
704 
705 def _object_cast_to_AndPDBSelector(o):
706  r"""_object_cast_to_AndPDBSelector(Object o) -> AndPDBSelector"""
707  return _IMP_atom._object_cast_to_AndPDBSelector(o)
708 
709 _object_types.append("XorPDBSelector")
710 
711 
712 def _object_cast_to_XorPDBSelector(o):
713  r"""_object_cast_to_XorPDBSelector(Object o) -> XorPDBSelector"""
714  return _IMP_atom._object_cast_to_XorPDBSelector(o)
715 
716 _object_types.append("ResidueTypePDBSelector")
717 
718 
719 def _object_cast_to_ResidueTypePDBSelector(o):
720  r"""_object_cast_to_ResidueTypePDBSelector(Object o) -> ResidueTypePDBSelector"""
721  return _IMP_atom._object_cast_to_ResidueTypePDBSelector(o)
722 
723 _object_types.append("AtomTypePDBSelector")
724 
725 
726 def _object_cast_to_AtomTypePDBSelector(o):
727  r"""_object_cast_to_AtomTypePDBSelector(Object o) -> AtomTypePDBSelector"""
728  return _IMP_atom._object_cast_to_AtomTypePDBSelector(o)
729 
730 _object_types.append("AngleSingletonScore")
731 
732 
733 def _object_cast_to_AngleSingletonScore(o):
734  r"""_object_cast_to_AngleSingletonScore(Object o) -> AngleSingletonScore"""
735  return _IMP_atom._object_cast_to_AngleSingletonScore(o)
736 
737 _object_types.append("BondEndpointsRefiner")
738 
739 
740 def _object_cast_to_BondEndpointsRefiner(o):
741  r"""_object_cast_to_BondEndpointsRefiner(Object o) -> BondEndpointsRefiner"""
742  return _IMP_atom._object_cast_to_BondEndpointsRefiner(o)
743 
744 _object_types.append("BondPairContainer")
745 
746 
747 def _object_cast_to_BondPairContainer(o):
748  r"""_object_cast_to_BondPairContainer(Object o) -> BondPairContainer"""
749  return _IMP_atom._object_cast_to_BondPairContainer(o)
750 
751 _object_types.append("BondSingletonScore")
752 
753 
754 def _object_cast_to_BondSingletonScore(o):
755  r"""_object_cast_to_BondSingletonScore(Object o) -> BondSingletonScore"""
756  return _IMP_atom._object_cast_to_BondSingletonScore(o)
757 
758 _object_types.append("BondedPairFilter")
759 
760 
761 def _object_cast_to_BondedPairFilter(o):
762  r"""_object_cast_to_BondedPairFilter(Object o) -> BondedPairFilter"""
763  return _IMP_atom._object_cast_to_BondedPairFilter(o)
764 
765 _object_types.append("BrownianDynamics")
766 
767 
768 def _object_cast_to_BrownianDynamics(o):
769  r"""_object_cast_to_BrownianDynamics(Object o) -> BrownianDynamics"""
770  return _IMP_atom._object_cast_to_BrownianDynamics(o)
771 
772 _object_types.append("BrownianDynamicsTAMD")
773 
774 
775 def _object_cast_to_BrownianDynamicsTAMD(o):
776  r"""_object_cast_to_BrownianDynamicsTAMD(Object o) -> BrownianDynamicsTAMD"""
777  return _IMP_atom._object_cast_to_BrownianDynamicsTAMD(o)
778 
779 _object_types.append("CAlphaPDBSelector")
780 
781 
782 def _object_cast_to_CAlphaPDBSelector(o):
783  r"""_object_cast_to_CAlphaPDBSelector(Object o) -> CAlphaPDBSelector"""
784  return _IMP_atom._object_cast_to_CAlphaPDBSelector(o)
785 
786 _object_types.append("CBetaPDBSelector")
787 
788 
789 def _object_cast_to_CBetaPDBSelector(o):
790  r"""_object_cast_to_CBetaPDBSelector(Object o) -> CBetaPDBSelector"""
791  return _IMP_atom._object_cast_to_CBetaPDBSelector(o)
792 
793 _object_types.append("BackbonePDBSelector")
794 
795 
796 def _object_cast_to_BackbonePDBSelector(o):
797  r"""_object_cast_to_BackbonePDBSelector(Object o) -> BackbonePDBSelector"""
798  return _IMP_atom._object_cast_to_BackbonePDBSelector(o)
799 
800 _object_types.append("CHARMMParameters")
801 
802 
803 def _object_cast_to_CHARMMParameters(o):
804  r"""_object_cast_to_CHARMMParameters(Object o) -> CHARMMParameters"""
805  return _IMP_atom._object_cast_to_CHARMMParameters(o)
806 
807 _object_types.append("CHARMMResidueTopology")
808 
809 
810 def _object_cast_to_CHARMMResidueTopology(o):
811  r"""_object_cast_to_CHARMMResidueTopology(Object o) -> CHARMMResidueTopology"""
812  return _IMP_atom._object_cast_to_CHARMMResidueTopology(o)
813 
814 _object_types.append("CHARMMSegmentTopology")
815 
816 
817 def _object_cast_to_CHARMMSegmentTopology(o):
818  r"""_object_cast_to_CHARMMSegmentTopology(Object o) -> CHARMMSegmentTopology"""
819  return _IMP_atom._object_cast_to_CHARMMSegmentTopology(o)
820 
821 _object_types.append("CHARMMStereochemistryRestraint")
822 
823 
824 def _object_cast_to_CHARMMStereochemistryRestraint(o):
825  r"""_object_cast_to_CHARMMStereochemistryRestraint(Object o) -> CHARMMStereochemistryRestraint"""
826  return _IMP_atom._object_cast_to_CHARMMStereochemistryRestraint(o)
827 
828 _object_types.append("CHARMMTopology")
829 
830 
831 def _object_cast_to_CHARMMTopology(o):
832  r"""_object_cast_to_CHARMMTopology(Object o) -> CHARMMTopology"""
833  return _IMP_atom._object_cast_to_CHARMMTopology(o)
834 
835 _object_types.append("CPDBSelector")
836 
837 
838 def _object_cast_to_CPDBSelector(o):
839  r"""_object_cast_to_CPDBSelector(Object o) -> CPDBSelector"""
840  return _IMP_atom._object_cast_to_CPDBSelector(o)
841 
842 _object_types.append("ChainPDBSelector")
843 
844 
845 def _object_cast_to_ChainPDBSelector(o):
846  r"""_object_cast_to_ChainPDBSelector(Object o) -> ChainPDBSelector"""
847  return _IMP_atom._object_cast_to_ChainPDBSelector(o)
848 
849 _object_types.append("CoulombPairScore")
850 
851 
852 def _object_cast_to_CoulombPairScore(o):
853  r"""_object_cast_to_CoulombPairScore(Object o) -> CoulombPairScore"""
854  return _IMP_atom._object_cast_to_CoulombPairScore(o)
855 
856 _object_types.append("CoverBond")
857 
858 
859 def _object_cast_to_CoverBond(o):
860  r"""_object_cast_to_CoverBond(Object o) -> CoverBond"""
861  return _IMP_atom._object_cast_to_CoverBond(o)
862 
863 _object_types.append("DihedralSingletonScore")
864 
865 
866 def _object_cast_to_DihedralSingletonScore(o):
867  r"""_object_cast_to_DihedralSingletonScore(Object o) -> DihedralSingletonScore"""
868  return _IMP_atom._object_cast_to_DihedralSingletonScore(o)
869 
870 _object_types.append("DopePairScore")
871 
872 
873 def _object_cast_to_DopePairScore(o):
874  r"""_object_cast_to_DopePairScore(Object o) -> DopePairScore"""
875  return _IMP_atom._object_cast_to_DopePairScore(o)
876 
877 _object_types.append("LoopStatisticalPairScore")
878 
879 
880 def _object_cast_to_LoopStatisticalPairScore(o):
881  r"""_object_cast_to_LoopStatisticalPairScore(Object o) -> LoopStatisticalPairScore"""
882  return _IMP_atom._object_cast_to_LoopStatisticalPairScore(o)
883 
884 _object_types.append("OrientedSoapPairScore")
885 
886 
887 def _object_cast_to_OrientedSoapPairScore(o):
888  r"""_object_cast_to_OrientedSoapPairScore(Object o) -> OrientedSoapPairScore"""
889  return _IMP_atom._object_cast_to_OrientedSoapPairScore(o)
890 
891 _object_types.append("EzRestraint")
892 
893 
894 def _object_cast_to_EzRestraint(o):
895  r"""_object_cast_to_EzRestraint(Object o) -> EzRestraint"""
896  return _IMP_atom._object_cast_to_EzRestraint(o)
897 
898 _object_types.append("ForceFieldParameters")
899 
900 
901 def _object_cast_to_ForceFieldParameters(o):
902  r"""_object_cast_to_ForceFieldParameters(Object o) -> ForceFieldParameters"""
903  return _IMP_atom._object_cast_to_ForceFieldParameters(o)
904 
905 _object_types.append("ForceSwitch")
906 
907 
908 def _object_cast_to_ForceSwitch(o):
909  r"""_object_cast_to_ForceSwitch(Object o) -> ForceSwitch"""
910  return _IMP_atom._object_cast_to_ForceSwitch(o)
911 
912 _object_types.append("HydrogenPDBSelector")
913 
914 
915 def _object_cast_to_HydrogenPDBSelector(o):
916  r"""_object_cast_to_HydrogenPDBSelector(Object o) -> HydrogenPDBSelector"""
917  return _IMP_atom._object_cast_to_HydrogenPDBSelector(o)
918 
919 _object_types.append("ImproperSingletonScore")
920 
921 
922 def _object_cast_to_ImproperSingletonScore(o):
923  r"""_object_cast_to_ImproperSingletonScore(Object o) -> ImproperSingletonScore"""
924  return _IMP_atom._object_cast_to_ImproperSingletonScore(o)
925 
926 _object_types.append("_LennardJonesTypedPairScore")
927 
928 
929 def _object_cast_to__LennardJonesTypedPairScore(o):
930  r"""_object_cast_to__LennardJonesTypedPairScore(Object o) -> _LennardJonesTypedPairScore"""
931  return _IMP_atom._object_cast_to__LennardJonesTypedPairScore(o)
932 
933 _object_types.append("_SwitchedLennardJonesTypedPairScore")
934 
935 
936 def _object_cast_to__SwitchedLennardJonesTypedPairScore(o):
937  r"""_object_cast_to__SwitchedLennardJonesTypedPairScore(Object o) -> _SwitchedLennardJonesTypedPairScore"""
938  return _IMP_atom._object_cast_to__SwitchedLennardJonesTypedPairScore(o)
939 
940 _object_types.append("Mol2Selector")
941 
942 
943 def _object_cast_to_Mol2Selector(o):
944  r"""_object_cast_to_Mol2Selector(Object o) -> Mol2Selector"""
945  return _IMP_atom._object_cast_to_Mol2Selector(o)
946 
947 _object_types.append("MolecularDynamics")
948 
949 
950 def _object_cast_to_MolecularDynamics(o):
951  r"""_object_cast_to_MolecularDynamics(Object o) -> MolecularDynamics"""
952  return _IMP_atom._object_cast_to_MolecularDynamics(o)
953 
954 _object_types.append("NPDBSelector")
955 
956 
957 def _object_cast_to_NPDBSelector(o):
958  r"""_object_cast_to_NPDBSelector(Object o) -> NPDBSelector"""
959  return _IMP_atom._object_cast_to_NPDBSelector(o)
960 
961 _object_types.append("NonAlternativePDBSelector")
962 
963 
964 def _object_cast_to_NonAlternativePDBSelector(o):
965  r"""_object_cast_to_NonAlternativePDBSelector(Object o) -> NonAlternativePDBSelector"""
966  return _IMP_atom._object_cast_to_NonAlternativePDBSelector(o)
967 
968 _object_types.append("NonHydrogenMol2Selector")
969 
970 
971 def _object_cast_to_NonHydrogenMol2Selector(o):
972  r"""_object_cast_to_NonHydrogenMol2Selector(Object o) -> NonHydrogenMol2Selector"""
973  return _IMP_atom._object_cast_to_NonHydrogenMol2Selector(o)
974 
975 _object_types.append("NonHydrogenPDBSelector")
976 
977 
978 def _object_cast_to_NonHydrogenPDBSelector(o):
979  r"""_object_cast_to_NonHydrogenPDBSelector(Object o) -> NonHydrogenPDBSelector"""
980  return _IMP_atom._object_cast_to_NonHydrogenPDBSelector(o)
981 
982 _object_types.append("NonWaterNonHydrogenPDBSelector")
983 
984 
985 def _object_cast_to_NonWaterNonHydrogenPDBSelector(o):
986  r"""_object_cast_to_NonWaterNonHydrogenPDBSelector(Object o) -> NonWaterNonHydrogenPDBSelector"""
987  return _IMP_atom._object_cast_to_NonWaterNonHydrogenPDBSelector(o)
988 
989 _object_types.append("NonWaterPDBSelector")
990 
991 
992 def _object_cast_to_NonWaterPDBSelector(o):
993  r"""_object_cast_to_NonWaterPDBSelector(Object o) -> NonWaterPDBSelector"""
994  return _IMP_atom._object_cast_to_NonWaterPDBSelector(o)
995 
996 _object_types.append("NotPDBSelector")
997 
998 
999 def _object_cast_to_NotPDBSelector(o):
1000  r"""_object_cast_to_NotPDBSelector(Object o) -> NotPDBSelector"""
1001  return _IMP_atom._object_cast_to_NotPDBSelector(o)
1002 
1003 _object_types.append("OrPDBSelector")
1004 
1005 
1006 def _object_cast_to_OrPDBSelector(o):
1007  r"""_object_cast_to_OrPDBSelector(Object o) -> OrPDBSelector"""
1008  return _IMP_atom._object_cast_to_OrPDBSelector(o)
1009 
1010 _object_types.append("PPDBSelector")
1011 
1012 
1013 def _object_cast_to_PPDBSelector(o):
1014  r"""_object_cast_to_PPDBSelector(Object o) -> PPDBSelector"""
1015  return _IMP_atom._object_cast_to_PPDBSelector(o)
1016 
1017 _object_types.append("ProteinLigandAtomPairScore")
1018 
1019 
1020 def _object_cast_to_ProteinLigandAtomPairScore(o):
1021  r"""_object_cast_to_ProteinLigandAtomPairScore(Object o) -> ProteinLigandAtomPairScore"""
1022  return _IMP_atom._object_cast_to_ProteinLigandAtomPairScore(o)
1023 
1024 _object_types.append("ProteinLigandRestraint")
1025 
1026 
1027 def _object_cast_to_ProteinLigandRestraint(o):
1028  r"""_object_cast_to_ProteinLigandRestraint(Object o) -> ProteinLigandRestraint"""
1029  return _IMP_atom._object_cast_to_ProteinLigandRestraint(o)
1030 
1031 _object_types.append("SameResiduePairFilter")
1032 
1033 
1034 def _object_cast_to_SameResiduePairFilter(o):
1035  r"""_object_cast_to_SameResiduePairFilter(Object o) -> SameResiduePairFilter"""
1036  return _IMP_atom._object_cast_to_SameResiduePairFilter(o)
1037 
1038 _object_types.append("SoapPairFilter")
1039 
1040 
1041 def _object_cast_to_SoapPairFilter(o):
1042  r"""_object_cast_to_SoapPairFilter(Object o) -> SoapPairFilter"""
1043  return _IMP_atom._object_cast_to_SoapPairFilter(o)
1044 
1045 _object_types.append("SmoothingFunction")
1046 
1047 
1048 def _object_cast_to_SmoothingFunction(o):
1049  r"""_object_cast_to_SmoothingFunction(Object o) -> SmoothingFunction"""
1050  return _IMP_atom._object_cast_to_SmoothingFunction(o)
1051 
1052 _object_types.append("StereochemistryPairFilter")
1053 
1054 
1055 def _object_cast_to_StereochemistryPairFilter(o):
1056  r"""_object_cast_to_StereochemistryPairFilter(Object o) -> StereochemistryPairFilter"""
1057  return _IMP_atom._object_cast_to_StereochemistryPairFilter(o)
1058 
1059 _object_types.append("VelocityScalingOptimizerState")
1060 
1061 
1062 def _object_cast_to_VelocityScalingOptimizerState(o):
1063  r"""_object_cast_to_VelocityScalingOptimizerState(Object o) -> VelocityScalingOptimizerState"""
1064  return _IMP_atom._object_cast_to_VelocityScalingOptimizerState(o)
1065 
1066 _object_types.append("WaterPDBSelector")
1067 
1068 
1069 def _object_cast_to_WaterPDBSelector(o):
1070  r"""_object_cast_to_WaterPDBSelector(Object o) -> WaterPDBSelector"""
1071  return _IMP_atom._object_cast_to_WaterPDBSelector(o)
1072 
1073 _object_types.append("WritePDBOptimizerState")
1074 
1075 
1076 def _object_cast_to_WritePDBOptimizerState(o):
1077  r"""_object_cast_to_WritePDBOptimizerState(Object o) -> WritePDBOptimizerState"""
1078  return _IMP_atom._object_cast_to_WritePDBOptimizerState(o)
1079 
1080 AtomTypes=list
1081 _plural_types.append("AtomTypes")
1082 _value_types.append("AtomType")
1083 
1084 
1085 CHARMMAtomTopologies=list
1086 _plural_types.append("CHARMMAtomTopologies")
1087 _value_types.append("CHARMMAtomTopology")
1088 
1089 
1090 CHARMMBondEndpoints=list
1091 _plural_types.append("CHARMMBondEndpoints")
1092 _value_types.append("CHARMMBondEndpoint")
1093 
1094 
1095 CHARMMBondParametersList=list
1096 _plural_types.append("CHARMMBondParametersList")
1097 _value_types.append("CHARMMBondParameters")
1098 
1099 
1100 CHARMMDihedralParametersList=list
1101 _plural_types.append("CHARMMDihedralParametersList")
1102 _value_types.append("CHARMMDihedralParameters")
1103 
1104 
1105 _object_types.append("CHARMMIdealResidueTopology")
1106 
1107 
1108 def _object_cast_to_CHARMMIdealResidueTopology(o):
1109  r"""_object_cast_to_CHARMMIdealResidueTopology(Object o) -> CHARMMIdealResidueTopology"""
1110  return _IMP_atom._object_cast_to_CHARMMIdealResidueTopology(o)
1111 
1112 CHARMMInternalCoordinates=list
1113 _plural_types.append("CHARMMInternalCoordinates")
1114 _value_types.append("CHARMMInternalCoordinate")
1115 
1116 
1117 _object_types.append("CHARMMPatch")
1118 
1119 
1120 def _object_cast_to_CHARMMPatch(o):
1121  r"""_object_cast_to_CHARMMPatch(Object o) -> CHARMMPatch"""
1122  return _IMP_atom._object_cast_to_CHARMMPatch(o)
1123 
1124 _object_types.append("CHARMMResidueTopologyBase")
1125 
1126 
1127 def _object_cast_to_CHARMMResidueTopologyBase(o):
1128  r"""_object_cast_to_CHARMMResidueTopologyBase(Object o) -> CHARMMResidueTopologyBase"""
1129  return _IMP_atom._object_cast_to_CHARMMResidueTopologyBase(o)
1130 
1131 ResidueTypes=list
1132 _plural_types.append("ResidueTypes")
1133 _value_types.append("ResidueType")
1134 
1135 
1136 ChainTypes=list
1137 _plural_types.append("ChainTypes")
1138 _value_types.append("ChainType")
1139 
1140 
1141 Selections=list
1142 _plural_types.append("Selections")
1143 _value_types.append("Selection")
1144 
1145 
1146 _object_types.append("RemoveRigidMotionOptimizerState")
1147 
1148 
1149 def _object_cast_to_RemoveRigidMotionOptimizerState(o):
1150  r"""_object_cast_to_RemoveRigidMotionOptimizerState(Object o) -> RemoveRigidMotionOptimizerState"""
1151  return _IMP_atom._object_cast_to_RemoveRigidMotionOptimizerState(o)
1152 
1153 _object_types.append("BerendsenThermostatOptimizerState")
1154 
1155 
1156 def _object_cast_to_BerendsenThermostatOptimizerState(o):
1157  r"""_object_cast_to_BerendsenThermostatOptimizerState(Object o) -> BerendsenThermostatOptimizerState"""
1158  return _IMP_atom._object_cast_to_BerendsenThermostatOptimizerState(o)
1159 
1160 _object_types.append("LangevinThermostatOptimizerState")
1161 
1162 
1163 def _object_cast_to_LangevinThermostatOptimizerState(o):
1164  r"""_object_cast_to_LangevinThermostatOptimizerState(Object o) -> LangevinThermostatOptimizerState"""
1165  return _IMP_atom._object_cast_to_LangevinThermostatOptimizerState(o)
1166 
1167 _object_types.append("SelectionGeometry")
1168 
1169 
1170 def _object_cast_to_SelectionGeometry(o):
1171  r"""_object_cast_to_SelectionGeometry(Object o) -> SelectionGeometry"""
1172  return _IMP_atom._object_cast_to_SelectionGeometry(o)
1173 
1174 _object_types.append("HierarchyGeometry")
1175 
1176 
1177 def _object_cast_to_HierarchyGeometry(o):
1178  r"""_object_cast_to_HierarchyGeometry(Object o) -> HierarchyGeometry"""
1179  return _IMP_atom._object_cast_to_HierarchyGeometry(o)
1180 
1181 _object_types.append("HierarchiesGeometry")
1182 
1183 
1184 def _object_cast_to_HierarchiesGeometry(o):
1185  r"""_object_cast_to_HierarchiesGeometry(Object o) -> HierarchiesGeometry"""
1186  return _IMP_atom._object_cast_to_HierarchiesGeometry(o)
1187 
1188 _object_types.append("BondGeometry")
1189 
1190 
1191 def _object_cast_to_BondGeometry(o):
1192  r"""_object_cast_to_BondGeometry(Object o) -> BondGeometry"""
1193  return _IMP_atom._object_cast_to_BondGeometry(o)
1194 
1195 _object_types.append("BondsGeometry")
1196 
1197 
1198 def _object_cast_to_BondsGeometry(o):
1199  r"""_object_cast_to_BondsGeometry(Object o) -> BondsGeometry"""
1200  return _IMP_atom._object_cast_to_BondsGeometry(o)
1201 
1202 _object_types.append("CAAngleRestraint")
1203 
1204 
1205 def _object_cast_to_CAAngleRestraint(o):
1206  r"""_object_cast_to_CAAngleRestraint(Object o) -> CAAngleRestraint"""
1207  return _IMP_atom._object_cast_to_CAAngleRestraint(o)
1208 
1209 _object_types.append("CADihedralRestraint")
1210 
1211 
1212 def _object_cast_to_CADihedralRestraint(o):
1213  r"""_object_cast_to_CADihedralRestraint(Object o) -> CADihedralRestraint"""
1214  return _IMP_atom._object_cast_to_CADihedralRestraint(o)
1215 
1216 _object_types.append("HelixRestraint")
1217 
1218 
1219 def _object_cast_to_HelixRestraint(o):
1220  r"""_object_cast_to_HelixRestraint(Object o) -> HelixRestraint"""
1221  return _IMP_atom._object_cast_to_HelixRestraint(o)
1222 
1223 CHARMMDihedrals=list
1224 _plural_types.append("CHARMMDihedrals")
1225 _value_types.append("CHARMMDihedral")
1226 
1227 
1228 CHARMMBonds=list
1229 _plural_types.append("CHARMMBonds")
1230 _value_types.append("CHARMMBond")
1231 
1232 
1233 CHARMMAngles=list
1234 _plural_types.append("CHARMMAngles")
1235 _value_types.append("CHARMMAngle")
1236 
1237 class Bond(IMP.Decorator):
1238  r"""Proxy of C++ IMP::atom::Bond class."""
1239 
1240  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1241 
1242  def __init__(self, *args):
1243  r"""
1244  __init__(Bond self) -> Bond
1245  __init__(Bond self, Model m, ParticleIndex id) -> Bond
1246  __init__(Bond self, _ParticleAdaptor d) -> Bond
1247  """
1248  _IMP_atom.Bond_swiginit(self, _IMP_atom.new_Bond(*args))
1249 
1250  def show(self, *args):
1251  r"""show(Bond self, _ostream out=std::cout)"""
1252  return _IMP_atom.Bond_show(self, *args)
1253 
1254  @staticmethod
1255  def get_is_setup(*args):
1256  r"""
1257  get_is_setup(_ParticleAdaptor p) -> bool
1258  get_is_setup(Model m, ParticleIndex pi) -> bool
1259  """
1260  return _IMP_atom.Bond_get_is_setup(*args)
1261  UNKNOWN = _IMP_atom.Bond_UNKNOWN
1262 
1263  NONBIOLOGICAL = _IMP_atom.Bond_NONBIOLOGICAL
1264 
1265  SINGLE = _IMP_atom.Bond_SINGLE
1266 
1267  DOUBLE = _IMP_atom.Bond_DOUBLE
1268 
1269  TRIPLE = _IMP_atom.Bond_TRIPLE
1270 
1271  HYDROGEN = _IMP_atom.Bond_HYDROGEN
1272 
1273  SALT = _IMP_atom.Bond_SALT
1274 
1275  PEPTIDE = _IMP_atom.Bond_PEPTIDE
1276 
1277  AMIDE = _IMP_atom.Bond_AMIDE
1278 
1279  AROMATIC = _IMP_atom.Bond_AROMATIC
1280 
1281 
1282  def get_bonded(self, i):
1283  r"""get_bonded(Bond self, unsigned int i) -> Bonded"""
1284  return _IMP_atom.Bond_get_bonded(self, i)
1285 
1286  def get_type(self):
1287  r"""get_type(Bond self) -> IMP::Int"""
1288  return _IMP_atom.Bond_get_type(self)
1289 
1290  def set_type(self, t):
1291  r"""set_type(Bond self, IMP::Int t)"""
1292  return _IMP_atom.Bond_set_type(self, t)
1293 
1294  def get_order(self):
1295  r"""get_order(Bond self) -> IMP::Int"""
1296  return _IMP_atom.Bond_get_order(self)
1297 
1298  def set_order(self, t):
1299  r"""set_order(Bond self, IMP::Int t)"""
1300  return _IMP_atom.Bond_set_order(self, t)
1301 
1302  def get_length(self):
1303  r"""get_length(Bond self) -> IMP::Float"""
1304  return _IMP_atom.Bond_get_length(self)
1305 
1306  def set_length(self, t):
1307  r"""set_length(Bond self, IMP::Float t)"""
1308  return _IMP_atom.Bond_set_length(self, t)
1309 
1310  def get_stiffness(self):
1311  r"""get_stiffness(Bond self) -> IMP::Float"""
1312  return _IMP_atom.Bond_get_stiffness(self)
1313 
1314  def set_stiffness(self, t):
1315  r"""set_stiffness(Bond self, IMP::Float t)"""
1316  return _IMP_atom.Bond_set_stiffness(self, t)
1317 
1318  @staticmethod
1319  def get_length_key():
1320  r"""get_length_key() -> FloatKey"""
1321  return _IMP_atom.Bond_get_length_key()
1322 
1323  def add_attribute(self, *args):
1324  r"""
1325  add_attribute(Bond self, FloatKey k, IMP::Float v, bool opt)
1326  add_attribute(Bond self, FloatKey a0, IMP::Float a1)
1327  add_attribute(Bond self, IntKey a0, IMP::Int a1)
1328  add_attribute(Bond self, FloatsKey a0, IMP::Floats a1)
1329  add_attribute(Bond self, IntsKey a0, IMP::Ints a1)
1330  add_attribute(Bond self, StringKey a0, IMP::String a1)
1331  add_attribute(Bond self, ParticleIndexKey a0, Particle a1)
1332  add_attribute(Bond self, ObjectKey a0, Object a1)
1333  add_attribute(Bond self, SparseFloatKey a0, IMP::Float a1)
1334  add_attribute(Bond self, SparseIntKey a0, IMP::Int a1)
1335  add_attribute(Bond self, SparseStringKey a0, IMP::String a1)
1336  add_attribute(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1337  """
1338  return _IMP_atom.Bond_add_attribute(self, *args)
1339 
1340  def get_value(self, *args):
1341  r"""
1342  get_value(Bond self, FloatKey a0) -> IMP::Float
1343  get_value(Bond self, IntKey a0) -> IMP::Int
1344  get_value(Bond self, FloatsKey a0) -> IMP::Floats
1345  get_value(Bond self, IntsKey a0) -> IMP::Ints
1346  get_value(Bond self, StringKey a0) -> IMP::String
1347  get_value(Bond self, ParticleIndexKey a0) -> Particle
1348  get_value(Bond self, ObjectKey a0) -> Object
1349  get_value(Bond self, SparseFloatKey a0) -> IMP::Float
1350  get_value(Bond self, SparseIntKey a0) -> IMP::Int
1351  get_value(Bond self, SparseStringKey a0) -> IMP::String
1352  get_value(Bond self, SparseParticleIndexKey a0) -> ParticleIndex
1353  """
1354  return _IMP_atom.Bond_get_value(self, *args)
1355 
1356  def set_value(self, *args):
1357  r"""
1358  set_value(Bond self, FloatKey a0, IMP::Float a1)
1359  set_value(Bond self, IntKey a0, IMP::Int a1)
1360  set_value(Bond self, FloatsKey a0, IMP::Floats a1)
1361  set_value(Bond self, IntsKey a0, IMP::Ints a1)
1362  set_value(Bond self, StringKey a0, IMP::String a1)
1363  set_value(Bond self, ParticleIndexKey a0, Particle a1)
1364  set_value(Bond self, ObjectKey a0, Object a1)
1365  set_value(Bond self, SparseFloatKey a0, IMP::Float a1)
1366  set_value(Bond self, SparseIntKey a0, IMP::Int a1)
1367  set_value(Bond self, SparseStringKey a0, IMP::String a1)
1368  set_value(Bond self, SparseParticleIndexKey a0, ParticleIndex a1)
1369  """
1370  return _IMP_atom.Bond_set_value(self, *args)
1371 
1372  def remove_attribute(self, *args):
1373  r"""
1374  remove_attribute(Bond self, FloatKey a0)
1375  remove_attribute(Bond self, IntKey a0)
1376  remove_attribute(Bond self, FloatsKey a0)
1377  remove_attribute(Bond self, IntsKey a0)
1378  remove_attribute(Bond self, StringKey a0)
1379  remove_attribute(Bond self, ParticleIndexKey a0)
1380  remove_attribute(Bond self, ObjectKey a0)
1381  remove_attribute(Bond self, SparseFloatKey a0)
1382  remove_attribute(Bond self, SparseIntKey a0)
1383  remove_attribute(Bond self, SparseStringKey a0)
1384  remove_attribute(Bond self, SparseParticleIndexKey a0)
1385  """
1386  return _IMP_atom.Bond_remove_attribute(self, *args)
1387 
1388  def has_attribute(self, *args):
1389  r"""
1390  has_attribute(Bond self, FloatKey a0) -> bool
1391  has_attribute(Bond self, IntKey a0) -> bool
1392  has_attribute(Bond self, FloatsKey a0) -> bool
1393  has_attribute(Bond self, IntsKey a0) -> bool
1394  has_attribute(Bond self, StringKey a0) -> bool
1395  has_attribute(Bond self, ParticleIndexKey a0) -> bool
1396  has_attribute(Bond self, ObjectKey a0) -> bool
1397  has_attribute(Bond self, SparseFloatKey a0) -> bool
1398  has_attribute(Bond self, SparseIntKey a0) -> bool
1399  has_attribute(Bond self, SparseStringKey a0) -> bool
1400  has_attribute(Bond self, SparseParticleIndexKey a0) -> bool
1401  """
1402  return _IMP_atom.Bond_has_attribute(self, *args)
1403 
1404  def get_derivative(self, a0):
1405  r"""get_derivative(Bond self, FloatKey a0) -> double"""
1406  return _IMP_atom.Bond_get_derivative(self, a0)
1407 
1408  def get_name(self):
1409  r"""get_name(Bond self) -> std::string"""
1410  return _IMP_atom.Bond_get_name(self)
1411 
1412  def clear_caches(self):
1413  r"""clear_caches(Bond self)"""
1414  return _IMP_atom.Bond_clear_caches(self)
1415 
1416  def set_name(self, a0):
1417  r"""set_name(Bond self, std::string a0)"""
1418  return _IMP_atom.Bond_set_name(self, a0)
1419 
1420  def set_check_level(self, a0):
1421  r"""set_check_level(Bond self, IMP::CheckLevel a0)"""
1422  return _IMP_atom.Bond_set_check_level(self, a0)
1423 
1424  def add_to_derivative(self, a0, a1, a2):
1425  r"""add_to_derivative(Bond self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1426  return _IMP_atom.Bond_add_to_derivative(self, a0, a1, a2)
1427 
1428  def set_is_optimized(self, a0, a1):
1429  r"""set_is_optimized(Bond self, FloatKey a0, bool a1)"""
1430  return _IMP_atom.Bond_set_is_optimized(self, a0, a1)
1431 
1432  def get_is_optimized(self, a0):
1433  r"""get_is_optimized(Bond self, FloatKey a0) -> bool"""
1434  return _IMP_atom.Bond_get_is_optimized(self, a0)
1435 
1436  def get_check_level(self):
1437  r"""get_check_level(Bond self) -> IMP::CheckLevel"""
1438  return _IMP_atom.Bond_get_check_level(self)
1439 
1440  def __eq__(self, *args):
1441  r"""
1442  __eq__(Bond self, Bond o) -> bool
1443  __eq__(Bond self, Particle d) -> bool
1444  """
1445  return _IMP_atom.Bond___eq__(self, *args)
1446 
1447  def __ne__(self, *args):
1448  r"""
1449  __ne__(Bond self, Bond o) -> bool
1450  __ne__(Bond self, Particle d) -> bool
1451  """
1452  return _IMP_atom.Bond___ne__(self, *args)
1453 
1454  def __le__(self, *args):
1455  r"""
1456  __le__(Bond self, Bond o) -> bool
1457  __le__(Bond self, Particle d) -> bool
1458  """
1459  return _IMP_atom.Bond___le__(self, *args)
1460 
1461  def __lt__(self, *args):
1462  r"""
1463  __lt__(Bond self, Bond o) -> bool
1464  __lt__(Bond self, Particle d) -> bool
1465  """
1466  return _IMP_atom.Bond___lt__(self, *args)
1467 
1468  def __ge__(self, *args):
1469  r"""
1470  __ge__(Bond self, Bond o) -> bool
1471  __ge__(Bond self, Particle d) -> bool
1472  """
1473  return _IMP_atom.Bond___ge__(self, *args)
1474 
1475  def __gt__(self, *args):
1476  r"""
1477  __gt__(Bond self, Bond o) -> bool
1478  __gt__(Bond self, Particle d) -> bool
1479  """
1480  return _IMP_atom.Bond___gt__(self, *args)
1481 
1482  def __hash__(self):
1483  r"""__hash__(Bond self) -> std::size_t"""
1484  return _IMP_atom.Bond___hash__(self)
1485 
1486  def __str__(self):
1487  r"""__str__(Bond self) -> std::string"""
1488  return _IMP_atom.Bond___str__(self)
1489 
1490  def __repr__(self):
1491  r"""__repr__(Bond self) -> std::string"""
1492  return _IMP_atom.Bond___repr__(self)
1493 
1494  def _get_as_binary(self):
1495  r"""_get_as_binary(Bond self) -> PyObject *"""
1496  return _IMP_atom.Bond__get_as_binary(self)
1497 
1498  def _set_from_binary(self, p):
1499  r"""_set_from_binary(Bond self, PyObject * p)"""
1500  return _IMP_atom.Bond__set_from_binary(self, p)
1501 
1502  def __getstate__(self):
1503  p = self._get_as_binary()
1504  if len(self.__dict__) > 1:
1505  d = self.__dict__.copy()
1506  del d['this']
1507  p = (d, p)
1508  return p
1509 
1510  def __setstate__(self, p):
1511  if not hasattr(self, 'this'):
1512  self.__init__()
1513  if isinstance(p, tuple):
1514  d, p = p
1515  self.__dict__.update(d)
1516  return self._set_from_binary(p)
1517 
1518  __swig_destroy__ = _IMP_atom.delete_Bond
1519 
1520 # Register Bond in _IMP_atom:
1521 _IMP_atom.Bond_swigregister(Bond)
1522 class Bonded(IMP.Decorator):
1523  r"""Proxy of C++ IMP::atom::Bonded class."""
1524 
1525  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1526 
1527  def __init__(self, *args):
1528  r"""
1529  __init__(Bonded self) -> Bonded
1530  __init__(Bonded self, Model m, ParticleIndex id) -> Bonded
1531  __init__(Bonded self, _ParticleAdaptor d) -> Bonded
1532  """
1533  _IMP_atom.Bonded_swiginit(self, _IMP_atom.new_Bonded(*args))
1534 
1535  def show(self, *args):
1536  r"""show(Bonded self, _ostream out=std::cout)"""
1537  return _IMP_atom.Bonded_show(self, *args)
1538 
1539  @staticmethod
1540  def setup_particle(*args):
1541  r"""
1542  setup_particle(Model m, ParticleIndex pi) -> Bonded
1543  setup_particle(_ParticleAdaptor pa) -> Bonded
1544  """
1545  return _IMP_atom.Bonded_setup_particle(*args)
1546 
1547  @staticmethod
1548  def get_is_setup(*args):
1549  r"""
1550  get_is_setup(_ParticleAdaptor p) -> bool
1551  get_is_setup(Model m, ParticleIndex pi) -> bool
1552  """
1553  return _IMP_atom.Bonded_get_is_setup(*args)
1554 
1555  def get_number_of_bonds(self):
1556  r"""get_number_of_bonds(Bonded self) -> unsigned int"""
1557  return _IMP_atom.Bonded_get_number_of_bonds(self)
1558 
1559  def get_bond_indexes(self):
1560  r"""get_bond_indexes(Bonded self) -> IMP::ParticleIndexes"""
1561  return _IMP_atom.Bonded_get_bond_indexes(self)
1562 
1563  def get_bond(self, i):
1564  r"""get_bond(Bonded self, unsigned int i) -> Bond"""
1565  return _IMP_atom.Bonded_get_bond(self, i)
1566 
1567  def get_bonded(self, i):
1568  r"""get_bonded(Bonded self, unsigned int i) -> Bonded"""
1569  return _IMP_atom.Bonded_get_bonded(self, i)
1570 
1571  def add_attribute(self, *args):
1572  r"""
1573  add_attribute(Bonded self, FloatKey k, IMP::Float v, bool opt)
1574  add_attribute(Bonded self, FloatKey a0, IMP::Float a1)
1575  add_attribute(Bonded self, IntKey a0, IMP::Int a1)
1576  add_attribute(Bonded self, FloatsKey a0, IMP::Floats a1)
1577  add_attribute(Bonded self, IntsKey a0, IMP::Ints a1)
1578  add_attribute(Bonded self, StringKey a0, IMP::String a1)
1579  add_attribute(Bonded self, ParticleIndexKey a0, Particle a1)
1580  add_attribute(Bonded self, ObjectKey a0, Object a1)
1581  add_attribute(Bonded self, SparseFloatKey a0, IMP::Float a1)
1582  add_attribute(Bonded self, SparseIntKey a0, IMP::Int a1)
1583  add_attribute(Bonded self, SparseStringKey a0, IMP::String a1)
1584  add_attribute(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1585  """
1586  return _IMP_atom.Bonded_add_attribute(self, *args)
1587 
1588  def get_value(self, *args):
1589  r"""
1590  get_value(Bonded self, FloatKey a0) -> IMP::Float
1591  get_value(Bonded self, IntKey a0) -> IMP::Int
1592  get_value(Bonded self, FloatsKey a0) -> IMP::Floats
1593  get_value(Bonded self, IntsKey a0) -> IMP::Ints
1594  get_value(Bonded self, StringKey a0) -> IMP::String
1595  get_value(Bonded self, ParticleIndexKey a0) -> Particle
1596  get_value(Bonded self, ObjectKey a0) -> Object
1597  get_value(Bonded self, SparseFloatKey a0) -> IMP::Float
1598  get_value(Bonded self, SparseIntKey a0) -> IMP::Int
1599  get_value(Bonded self, SparseStringKey a0) -> IMP::String
1600  get_value(Bonded self, SparseParticleIndexKey a0) -> ParticleIndex
1601  """
1602  return _IMP_atom.Bonded_get_value(self, *args)
1603 
1604  def set_value(self, *args):
1605  r"""
1606  set_value(Bonded self, FloatKey a0, IMP::Float a1)
1607  set_value(Bonded self, IntKey a0, IMP::Int a1)
1608  set_value(Bonded self, FloatsKey a0, IMP::Floats a1)
1609  set_value(Bonded self, IntsKey a0, IMP::Ints a1)
1610  set_value(Bonded self, StringKey a0, IMP::String a1)
1611  set_value(Bonded self, ParticleIndexKey a0, Particle a1)
1612  set_value(Bonded self, ObjectKey a0, Object a1)
1613  set_value(Bonded self, SparseFloatKey a0, IMP::Float a1)
1614  set_value(Bonded self, SparseIntKey a0, IMP::Int a1)
1615  set_value(Bonded self, SparseStringKey a0, IMP::String a1)
1616  set_value(Bonded self, SparseParticleIndexKey a0, ParticleIndex a1)
1617  """
1618  return _IMP_atom.Bonded_set_value(self, *args)
1619 
1620  def remove_attribute(self, *args):
1621  r"""
1622  remove_attribute(Bonded self, FloatKey a0)
1623  remove_attribute(Bonded self, IntKey a0)
1624  remove_attribute(Bonded self, FloatsKey a0)
1625  remove_attribute(Bonded self, IntsKey a0)
1626  remove_attribute(Bonded self, StringKey a0)
1627  remove_attribute(Bonded self, ParticleIndexKey a0)
1628  remove_attribute(Bonded self, ObjectKey a0)
1629  remove_attribute(Bonded self, SparseFloatKey a0)
1630  remove_attribute(Bonded self, SparseIntKey a0)
1631  remove_attribute(Bonded self, SparseStringKey a0)
1632  remove_attribute(Bonded self, SparseParticleIndexKey a0)
1633  """
1634  return _IMP_atom.Bonded_remove_attribute(self, *args)
1635 
1636  def has_attribute(self, *args):
1637  r"""
1638  has_attribute(Bonded self, FloatKey a0) -> bool
1639  has_attribute(Bonded self, IntKey a0) -> bool
1640  has_attribute(Bonded self, FloatsKey a0) -> bool
1641  has_attribute(Bonded self, IntsKey a0) -> bool
1642  has_attribute(Bonded self, StringKey a0) -> bool
1643  has_attribute(Bonded self, ParticleIndexKey a0) -> bool
1644  has_attribute(Bonded self, ObjectKey a0) -> bool
1645  has_attribute(Bonded self, SparseFloatKey a0) -> bool
1646  has_attribute(Bonded self, SparseIntKey a0) -> bool
1647  has_attribute(Bonded self, SparseStringKey a0) -> bool
1648  has_attribute(Bonded self, SparseParticleIndexKey a0) -> bool
1649  """
1650  return _IMP_atom.Bonded_has_attribute(self, *args)
1651 
1652  def get_derivative(self, a0):
1653  r"""get_derivative(Bonded self, FloatKey a0) -> double"""
1654  return _IMP_atom.Bonded_get_derivative(self, a0)
1655 
1656  def get_name(self):
1657  r"""get_name(Bonded self) -> std::string"""
1658  return _IMP_atom.Bonded_get_name(self)
1659 
1660  def clear_caches(self):
1661  r"""clear_caches(Bonded self)"""
1662  return _IMP_atom.Bonded_clear_caches(self)
1663 
1664  def set_name(self, a0):
1665  r"""set_name(Bonded self, std::string a0)"""
1666  return _IMP_atom.Bonded_set_name(self, a0)
1667 
1668  def set_check_level(self, a0):
1669  r"""set_check_level(Bonded self, IMP::CheckLevel a0)"""
1670  return _IMP_atom.Bonded_set_check_level(self, a0)
1671 
1672  def add_to_derivative(self, a0, a1, a2):
1673  r"""add_to_derivative(Bonded self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1674  return _IMP_atom.Bonded_add_to_derivative(self, a0, a1, a2)
1675 
1676  def set_is_optimized(self, a0, a1):
1677  r"""set_is_optimized(Bonded self, FloatKey a0, bool a1)"""
1678  return _IMP_atom.Bonded_set_is_optimized(self, a0, a1)
1679 
1680  def get_is_optimized(self, a0):
1681  r"""get_is_optimized(Bonded self, FloatKey a0) -> bool"""
1682  return _IMP_atom.Bonded_get_is_optimized(self, a0)
1683 
1684  def get_check_level(self):
1685  r"""get_check_level(Bonded self) -> IMP::CheckLevel"""
1686  return _IMP_atom.Bonded_get_check_level(self)
1687 
1688  def __eq__(self, *args):
1689  r"""
1690  __eq__(Bonded self, Bonded o) -> bool
1691  __eq__(Bonded self, Particle d) -> bool
1692  """
1693  return _IMP_atom.Bonded___eq__(self, *args)
1694 
1695  def __ne__(self, *args):
1696  r"""
1697  __ne__(Bonded self, Bonded o) -> bool
1698  __ne__(Bonded self, Particle d) -> bool
1699  """
1700  return _IMP_atom.Bonded___ne__(self, *args)
1701 
1702  def __le__(self, *args):
1703  r"""
1704  __le__(Bonded self, Bonded o) -> bool
1705  __le__(Bonded self, Particle d) -> bool
1706  """
1707  return _IMP_atom.Bonded___le__(self, *args)
1708 
1709  def __lt__(self, *args):
1710  r"""
1711  __lt__(Bonded self, Bonded o) -> bool
1712  __lt__(Bonded self, Particle d) -> bool
1713  """
1714  return _IMP_atom.Bonded___lt__(self, *args)
1715 
1716  def __ge__(self, *args):
1717  r"""
1718  __ge__(Bonded self, Bonded o) -> bool
1719  __ge__(Bonded self, Particle d) -> bool
1720  """
1721  return _IMP_atom.Bonded___ge__(self, *args)
1722 
1723  def __gt__(self, *args):
1724  r"""
1725  __gt__(Bonded self, Bonded o) -> bool
1726  __gt__(Bonded self, Particle d) -> bool
1727  """
1728  return _IMP_atom.Bonded___gt__(self, *args)
1729 
1730  def __hash__(self):
1731  r"""__hash__(Bonded self) -> std::size_t"""
1732  return _IMP_atom.Bonded___hash__(self)
1733 
1734  def __str__(self):
1735  r"""__str__(Bonded self) -> std::string"""
1736  return _IMP_atom.Bonded___str__(self)
1737 
1738  def __repr__(self):
1739  r"""__repr__(Bonded self) -> std::string"""
1740  return _IMP_atom.Bonded___repr__(self)
1741 
1742  def _get_as_binary(self):
1743  r"""_get_as_binary(Bonded self) -> PyObject *"""
1744  return _IMP_atom.Bonded__get_as_binary(self)
1745 
1746  def _set_from_binary(self, p):
1747  r"""_set_from_binary(Bonded self, PyObject * p)"""
1748  return _IMP_atom.Bonded__set_from_binary(self, p)
1749 
1750  def __getstate__(self):
1751  p = self._get_as_binary()
1752  if len(self.__dict__) > 1:
1753  d = self.__dict__.copy()
1754  del d['this']
1755  p = (d, p)
1756  return p
1757 
1758  def __setstate__(self, p):
1759  if not hasattr(self, 'this'):
1760  self.__init__()
1761  if isinstance(p, tuple):
1762  d, p = p
1763  self.__dict__.update(d)
1764  return self._set_from_binary(p)
1765 
1766  __swig_destroy__ = _IMP_atom.delete_Bonded
1767 
1768 # Register Bonded in _IMP_atom:
1769 _IMP_atom.Bonded_swigregister(Bonded)
1770 
1771 def create_custom_bond(a, b, length, stiffness=-1):
1772  r"""create_custom_bond(Bonded a, Bonded b, IMP::Float length, IMP::Float stiffness=-1) -> Bond"""
1773  return _IMP_atom.create_custom_bond(a, b, length, stiffness)
1774 
1775 def create_bond(*args):
1776  r"""
1777  create_bond(Bonded a, Bonded b, IMP::Int t) -> Bond
1778  create_bond(Bonded a, Bonded b, Bond o) -> Bond
1779  """
1780  return _IMP_atom.create_bond(*args)
1781 
1782 def destroy_bond(b):
1783  r"""destroy_bond(Bond b)"""
1784  return _IMP_atom.destroy_bond(b)
1785 
1786 def get_bond(a, b):
1787  r"""get_bond(Bonded a, Bonded b) -> Bond"""
1788  return _IMP_atom.get_bond(a, b)
1789 class BondGeometry(IMP.display.SingletonGeometry):
1790  r"""Proxy of C++ IMP::atom::BondGeometry class."""
1791 
1792  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1793 
1794  def __init__(self, *args):
1795  r"""
1796  __init__(BondGeometry self, Particle p) -> BondGeometry
1797  __init__(BondGeometry self, Bond d) -> BondGeometry
1798  """
1799  _IMP_atom.BondGeometry_swiginit(self, _IMP_atom.new_BondGeometry(*args))
1800 
1801  def get_version_info(self):
1802  r"""get_version_info(BondGeometry self) -> VersionInfo"""
1803  return _IMP_atom.BondGeometry_get_version_info(self)
1804  __swig_destroy__ = _IMP_atom.delete_BondGeometry
1805 
1806  def __str__(self):
1807  r"""__str__(BondGeometry self) -> std::string"""
1808  return _IMP_atom.BondGeometry___str__(self)
1809 
1810  def __repr__(self):
1811  r"""__repr__(BondGeometry self) -> std::string"""
1812  return _IMP_atom.BondGeometry___repr__(self)
1813 
1814  @staticmethod
1815  def get_from(o):
1816  return _object_cast_to_BondGeometry(o)
1817 
1818 
1819 # Register BondGeometry in _IMP_atom:
1820 _IMP_atom.BondGeometry_swigregister(BondGeometry)
1821 class BondsGeometry(IMP.display.SingletonsGeometry):
1822  r"""Proxy of C++ IMP::atom::BondsGeometry class."""
1823 
1824  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1825 
1826  def __init__(self, sc):
1827  r"""__init__(BondsGeometry self, SingletonContainer sc) -> BondsGeometry"""
1828  _IMP_atom.BondsGeometry_swiginit(self, _IMP_atom.new_BondsGeometry(sc))
1829 
1830  def get_version_info(self):
1831  r"""get_version_info(BondsGeometry self) -> VersionInfo"""
1832  return _IMP_atom.BondsGeometry_get_version_info(self)
1833  __swig_destroy__ = _IMP_atom.delete_BondsGeometry
1834 
1835  def __str__(self):
1836  r"""__str__(BondsGeometry self) -> std::string"""
1837  return _IMP_atom.BondsGeometry___str__(self)
1838 
1839  def __repr__(self):
1840  r"""__repr__(BondsGeometry self) -> std::string"""
1841  return _IMP_atom.BondsGeometry___repr__(self)
1842 
1843  @staticmethod
1844  def get_from(o):
1845  return _object_cast_to_BondsGeometry(o)
1846 
1847 
1848 # Register BondsGeometry in _IMP_atom:
1849 _IMP_atom.BondsGeometry_swigregister(BondsGeometry)
1850 class Hierarchy(IMP.core.Hierarchy):
1851  r"""Proxy of C++ IMP::atom::Hierarchy class."""
1852 
1853  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1854 
1855  def __init__(self, *args):
1856  r"""
1857  __init__(Hierarchy self, Model m, ParticleIndex pi) -> Hierarchy
1858  __init__(Hierarchy self, _ParticleAdaptor pi) -> Hierarchy
1859  __init__(Hierarchy self) -> Hierarchy
1860  __init__(Hierarchy self, Hierarchy h) -> Hierarchy
1861  """
1862  _IMP_atom.Hierarchy_swiginit(self, _IMP_atom.new_Hierarchy(*args))
1863 
1864  @staticmethod
1865  def setup_particle(*args):
1866  r"""
1867  setup_particle(Particle p, _ParticleIndexesAdaptor children) -> Hierarchy
1868  setup_particle(Particle p) -> Hierarchy
1869  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor children=IMP::ParticleIndexesAdaptor()) -> Hierarchy
1870  """
1871  return _IMP_atom.Hierarchy_setup_particle(*args)
1872 
1873  @staticmethod
1874  def get_is_setup(*args):
1875  r"""
1876  get_is_setup(Particle p) -> bool
1877  get_is_setup(Model m, ParticleIndex p) -> bool
1878  """
1879  return _IMP_atom.Hierarchy_get_is_setup(*args)
1880 
1881  def get_is_valid(self, print_info=False):
1882  r"""get_is_valid(Hierarchy self, bool print_info=False) -> bool"""
1883  return _IMP_atom.Hierarchy_get_is_valid(self, print_info)
1884 
1885  def add_child(self, o):
1886  r"""add_child(Hierarchy self, Hierarchy o)"""
1887  return _IMP_atom.Hierarchy_add_child(self, o)
1888 
1889  def get_child(self, i):
1890  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
1891  return _IMP_atom.Hierarchy_get_child(self, i)
1892 
1893  def get_children(self):
1894  r"""get_children(Hierarchy self) -> IMP::atom::Hierarchies"""
1895  return _IMP_atom.Hierarchy_get_children(self)
1896 
1897  def get_parent(self):
1898  r"""get_parent(Hierarchy self) -> Hierarchy"""
1899  return _IMP_atom.Hierarchy_get_parent(self)
1900 
1901  @staticmethod
1902  def get_traits():
1903  r"""get_traits() -> HierarchyTraits"""
1904  return _IMP_atom.Hierarchy_get_traits()
1905 
1906  def show(self, *args):
1907  r"""
1908  show(Hierarchy self, _ostream out, std::string delimiter)
1909  show(Hierarchy self, _ostream out=std::cout)
1910  """
1911  return _IMP_atom.Hierarchy_show(self, *args)
1912 
1913  def add_attribute(self, *args):
1914  r"""
1915  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
1916  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
1917  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
1918  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1919  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
1920  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
1921  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
1922  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
1923  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1924  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1925  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
1926  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1927  """
1928  return _IMP_atom.Hierarchy_add_attribute(self, *args)
1929 
1930  def get_value(self, *args):
1931  r"""
1932  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
1933  get_value(Hierarchy self, IntKey a0) -> IMP::Int
1934  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
1935  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
1936  get_value(Hierarchy self, StringKey a0) -> IMP::String
1937  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
1938  get_value(Hierarchy self, ObjectKey a0) -> Object
1939  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
1940  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
1941  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
1942  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
1943  """
1944  return _IMP_atom.Hierarchy_get_value(self, *args)
1945 
1946  def set_value(self, *args):
1947  r"""
1948  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
1949  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
1950  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
1951  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
1952  set_value(Hierarchy self, StringKey a0, IMP::String a1)
1953  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
1954  set_value(Hierarchy self, ObjectKey a0, Object a1)
1955  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
1956  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
1957  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
1958  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
1959  """
1960  return _IMP_atom.Hierarchy_set_value(self, *args)
1961 
1962  def remove_attribute(self, *args):
1963  r"""
1964  remove_attribute(Hierarchy self, FloatKey a0)
1965  remove_attribute(Hierarchy self, IntKey a0)
1966  remove_attribute(Hierarchy self, FloatsKey a0)
1967  remove_attribute(Hierarchy self, IntsKey a0)
1968  remove_attribute(Hierarchy self, StringKey a0)
1969  remove_attribute(Hierarchy self, ParticleIndexKey a0)
1970  remove_attribute(Hierarchy self, ObjectKey a0)
1971  remove_attribute(Hierarchy self, SparseFloatKey a0)
1972  remove_attribute(Hierarchy self, SparseIntKey a0)
1973  remove_attribute(Hierarchy self, SparseStringKey a0)
1974  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
1975  """
1976  return _IMP_atom.Hierarchy_remove_attribute(self, *args)
1977 
1978  def has_attribute(self, *args):
1979  r"""
1980  has_attribute(Hierarchy self, FloatKey a0) -> bool
1981  has_attribute(Hierarchy self, IntKey a0) -> bool
1982  has_attribute(Hierarchy self, FloatsKey a0) -> bool
1983  has_attribute(Hierarchy self, IntsKey a0) -> bool
1984  has_attribute(Hierarchy self, StringKey a0) -> bool
1985  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
1986  has_attribute(Hierarchy self, ObjectKey a0) -> bool
1987  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
1988  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
1989  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
1990  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
1991  """
1992  return _IMP_atom.Hierarchy_has_attribute(self, *args)
1993 
1994  def get_derivative(self, a0):
1995  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
1996  return _IMP_atom.Hierarchy_get_derivative(self, a0)
1997 
1998  def get_name(self):
1999  r"""get_name(Hierarchy self) -> std::string"""
2000  return _IMP_atom.Hierarchy_get_name(self)
2001 
2002  def clear_caches(self):
2003  r"""clear_caches(Hierarchy self)"""
2004  return _IMP_atom.Hierarchy_clear_caches(self)
2005 
2006  def set_name(self, a0):
2007  r"""set_name(Hierarchy self, std::string a0)"""
2008  return _IMP_atom.Hierarchy_set_name(self, a0)
2009 
2010  def set_check_level(self, a0):
2011  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
2012  return _IMP_atom.Hierarchy_set_check_level(self, a0)
2013 
2014  def add_to_derivative(self, a0, a1, a2):
2015  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2016  return _IMP_atom.Hierarchy_add_to_derivative(self, a0, a1, a2)
2017 
2018  def set_is_optimized(self, a0, a1):
2019  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
2020  return _IMP_atom.Hierarchy_set_is_optimized(self, a0, a1)
2021 
2022  def get_is_optimized(self, a0):
2023  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
2024  return _IMP_atom.Hierarchy_get_is_optimized(self, a0)
2025 
2026  def get_check_level(self):
2027  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
2028  return _IMP_atom.Hierarchy_get_check_level(self)
2029 
2030  def __eq__(self, *args):
2031  r"""
2032  __eq__(Hierarchy self, Hierarchy o) -> bool
2033  __eq__(Hierarchy self, Particle d) -> bool
2034  """
2035  return _IMP_atom.Hierarchy___eq__(self, *args)
2036 
2037  def __ne__(self, *args):
2038  r"""
2039  __ne__(Hierarchy self, Hierarchy o) -> bool
2040  __ne__(Hierarchy self, Particle d) -> bool
2041  """
2042  return _IMP_atom.Hierarchy___ne__(self, *args)
2043 
2044  def __le__(self, *args):
2045  r"""
2046  __le__(Hierarchy self, Hierarchy o) -> bool
2047  __le__(Hierarchy self, Particle d) -> bool
2048  """
2049  return _IMP_atom.Hierarchy___le__(self, *args)
2050 
2051  def __lt__(self, *args):
2052  r"""
2053  __lt__(Hierarchy self, Hierarchy o) -> bool
2054  __lt__(Hierarchy self, Particle d) -> bool
2055  """
2056  return _IMP_atom.Hierarchy___lt__(self, *args)
2057 
2058  def __ge__(self, *args):
2059  r"""
2060  __ge__(Hierarchy self, Hierarchy o) -> bool
2061  __ge__(Hierarchy self, Particle d) -> bool
2062  """
2063  return _IMP_atom.Hierarchy___ge__(self, *args)
2064 
2065  def __gt__(self, *args):
2066  r"""
2067  __gt__(Hierarchy self, Hierarchy o) -> bool
2068  __gt__(Hierarchy self, Particle d) -> bool
2069  """
2070  return _IMP_atom.Hierarchy___gt__(self, *args)
2071 
2072  def __hash__(self):
2073  r"""__hash__(Hierarchy self) -> std::size_t"""
2074  return _IMP_atom.Hierarchy___hash__(self)
2075 
2076  def __str__(self):
2077  r"""__str__(Hierarchy self) -> std::string"""
2078  return _IMP_atom.Hierarchy___str__(self)
2079 
2080  def __repr__(self):
2081  r"""__repr__(Hierarchy self) -> std::string"""
2082  return _IMP_atom.Hierarchy___repr__(self)
2083 
2084  def _get_as_binary(self):
2085  r"""_get_as_binary(Hierarchy self) -> PyObject *"""
2086  return _IMP_atom.Hierarchy__get_as_binary(self)
2087 
2088  def _set_from_binary(self, p):
2089  r"""_set_from_binary(Hierarchy self, PyObject * p)"""
2090  return _IMP_atom.Hierarchy__set_from_binary(self, p)
2091 
2092  def __getstate__(self):
2093  p = self._get_as_binary()
2094  if len(self.__dict__) > 1:
2095  d = self.__dict__.copy()
2096  del d['this']
2097  p = (d, p)
2098  return p
2099 
2100  def __setstate__(self, p):
2101  if not hasattr(self, 'this'):
2102  self.__init__()
2103  if isinstance(p, tuple):
2104  d, p = p
2105  self.__dict__.update(d)
2106  return self._set_from_binary(p)
2107 
2108  __swig_destroy__ = _IMP_atom.delete_Hierarchy
2109 
2110 # Register Hierarchy in _IMP_atom:
2111 _IMP_atom.Hierarchy_swigregister(Hierarchy)
2112 ATOM_TYPE = _IMP_atom.ATOM_TYPE
2113 
2114 RESIDUE_TYPE = _IMP_atom.RESIDUE_TYPE
2115 
2116 CHAIN_TYPE = _IMP_atom.CHAIN_TYPE
2117 
2118 MOLECULE_TYPE = _IMP_atom.MOLECULE_TYPE
2119 
2120 DOMAIN_TYPE = _IMP_atom.DOMAIN_TYPE
2121 
2122 FRAGMENT_TYPE = _IMP_atom.FRAGMENT_TYPE
2123 
2124 XYZ_TYPE = _IMP_atom.XYZ_TYPE
2125 
2126 XYZR_TYPE = _IMP_atom.XYZR_TYPE
2127 
2128 MASS_TYPE = _IMP_atom.MASS_TYPE
2129 
2130 STATE_TYPE = _IMP_atom.STATE_TYPE
2131 
2132 
2133 def get_by_type(mhd, t):
2134  r"""get_by_type(Hierarchy mhd, IMP::atom::GetByType t) -> IMP::atom::Hierarchies"""
2135  return _IMP_atom.get_by_type(mhd, t)
2136 
2137 def create_fragment(ps):
2138  r"""create_fragment(IMP::atom::Hierarchies const & ps) -> Hierarchy"""
2139  return _IMP_atom.create_fragment(ps)
2140 
2141 def get_internal_bonds(mhd, with_representations=False):
2142  r"""get_internal_bonds(Hierarchy mhd, bool with_representations=False) -> IMP::atom::Bonds"""
2143  return _IMP_atom.get_internal_bonds(mhd, with_representations)
2144 
2145 def get_root(h):
2146  r"""get_root(Hierarchy h) -> Hierarchy"""
2147  return _IMP_atom.get_root(h)
2148 
2149 def show(*args):
2150  r"""show(Hierarchy h, _ostream out=std::cout)"""
2151  return _IMP_atom.show(*args)
2152 
2153 def create_rigid_body(*args):
2154  r"""
2155  create_rigid_body(IMP::atom::Hierarchies const & h, std::string name=std::string("created rigid body")) -> RigidBody
2156  create_rigid_body(Hierarchy h) -> RigidBody
2157  """
2158  return _IMP_atom.create_rigid_body(*args)
2159 
2160 def create_compatible_rigid_body(h, reference):
2161  r"""create_compatible_rigid_body(Hierarchy h, Hierarchy reference) -> RigidBody"""
2162  return _IMP_atom.create_compatible_rigid_body(h, reference)
2163 
2164 def get_is_heterogen(h):
2165  r"""get_is_heterogen(Hierarchy h) -> bool"""
2166  return _IMP_atom.get_is_heterogen(h)
2167 
2168 def create_clone(d):
2169  r"""create_clone(Hierarchy d) -> Hierarchy"""
2170  return _IMP_atom.create_clone(d)
2171 
2172 def create_clone_one(d):
2173  r"""create_clone_one(Hierarchy d) -> Hierarchy"""
2174  return _IMP_atom.create_clone_one(d)
2175 
2176 def destroy(d):
2177  r"""destroy(Hierarchy d)"""
2178  return _IMP_atom.destroy(d)
2179 
2180 def get_bounding_box(h):
2181  r"""get_bounding_box(Hierarchy h) -> BoundingBox3D"""
2182  return _IMP_atom.get_bounding_box(h)
2183 
2184 def get_bounding_sphere(h):
2185  r"""get_bounding_sphere(Hierarchy h) -> Sphere3D"""
2186  return _IMP_atom.get_bounding_sphere(h)
2187 class Angle(IMP.Decorator):
2188  r"""Proxy of C++ IMP::atom::Angle class."""
2189 
2190  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2191 
2192  def __init__(self, *args):
2193  r"""
2194  __init__(Angle self) -> Angle
2195  __init__(Angle self, Model m, ParticleIndex id) -> Angle
2196  __init__(Angle self, _ParticleAdaptor d) -> Angle
2197  """
2198  _IMP_atom.Angle_swiginit(self, _IMP_atom.new_Angle(*args))
2199 
2200  def show(self, *args):
2201  r"""show(Angle self, _ostream out=std::cout)"""
2202  return _IMP_atom.Angle_show(self, *args)
2203 
2204  @staticmethod
2205  def setup_particle(*args):
2206  r"""
2207  setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c) -> Angle
2208  setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c) -> Angle
2209  """
2210  return _IMP_atom.Angle_setup_particle(*args)
2211 
2212  @staticmethod
2213  def get_is_setup(*args):
2214  r"""
2215  get_is_setup(_ParticleAdaptor p) -> bool
2216  get_is_setup(Model m, ParticleIndex pi) -> bool
2217  """
2218  return _IMP_atom.Angle_get_is_setup(*args)
2219 
2220  def get_particle(self, *args):
2221  r"""
2222  get_particle(Angle self) -> Particle
2223  get_particle(Angle self, unsigned int i) -> Particle
2224  """
2225  return _IMP_atom.Angle_get_particle(self, *args)
2226 
2227  def get_ideal(self):
2228  r"""get_ideal(Angle self) -> IMP::Float"""
2229  return _IMP_atom.Angle_get_ideal(self)
2230 
2231  def set_ideal(self, t):
2232  r"""set_ideal(Angle self, IMP::Float t)"""
2233  return _IMP_atom.Angle_set_ideal(self, t)
2234 
2235  def get_stiffness(self):
2236  r"""get_stiffness(Angle self) -> IMP::Float"""
2237  return _IMP_atom.Angle_get_stiffness(self)
2238 
2239  def set_stiffness(self, t):
2240  r"""set_stiffness(Angle self, IMP::Float t)"""
2241  return _IMP_atom.Angle_set_stiffness(self, t)
2242 
2243  @staticmethod
2244  def get_particle_key(i):
2245  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2246  return _IMP_atom.Angle_get_particle_key(i)
2247 
2248  @staticmethod
2249  def get_ideal_key():
2250  r"""get_ideal_key() -> FloatKey"""
2251  return _IMP_atom.Angle_get_ideal_key()
2252 
2253  @staticmethod
2254  def get_stiffness_key():
2255  r"""get_stiffness_key() -> FloatKey"""
2256  return _IMP_atom.Angle_get_stiffness_key()
2257 
2258  def add_attribute(self, *args):
2259  r"""
2260  add_attribute(Angle self, FloatKey k, IMP::Float v, bool opt)
2261  add_attribute(Angle self, FloatKey a0, IMP::Float a1)
2262  add_attribute(Angle self, IntKey a0, IMP::Int a1)
2263  add_attribute(Angle self, FloatsKey a0, IMP::Floats a1)
2264  add_attribute(Angle self, IntsKey a0, IMP::Ints a1)
2265  add_attribute(Angle self, StringKey a0, IMP::String a1)
2266  add_attribute(Angle self, ParticleIndexKey a0, Particle a1)
2267  add_attribute(Angle self, ObjectKey a0, Object a1)
2268  add_attribute(Angle self, SparseFloatKey a0, IMP::Float a1)
2269  add_attribute(Angle self, SparseIntKey a0, IMP::Int a1)
2270  add_attribute(Angle self, SparseStringKey a0, IMP::String a1)
2271  add_attribute(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2272  """
2273  return _IMP_atom.Angle_add_attribute(self, *args)
2274 
2275  def get_value(self, *args):
2276  r"""
2277  get_value(Angle self, FloatKey a0) -> IMP::Float
2278  get_value(Angle self, IntKey a0) -> IMP::Int
2279  get_value(Angle self, FloatsKey a0) -> IMP::Floats
2280  get_value(Angle self, IntsKey a0) -> IMP::Ints
2281  get_value(Angle self, StringKey a0) -> IMP::String
2282  get_value(Angle self, ParticleIndexKey a0) -> Particle
2283  get_value(Angle self, ObjectKey a0) -> Object
2284  get_value(Angle self, SparseFloatKey a0) -> IMP::Float
2285  get_value(Angle self, SparseIntKey a0) -> IMP::Int
2286  get_value(Angle self, SparseStringKey a0) -> IMP::String
2287  get_value(Angle self, SparseParticleIndexKey a0) -> ParticleIndex
2288  """
2289  return _IMP_atom.Angle_get_value(self, *args)
2290 
2291  def set_value(self, *args):
2292  r"""
2293  set_value(Angle self, FloatKey a0, IMP::Float a1)
2294  set_value(Angle self, IntKey a0, IMP::Int a1)
2295  set_value(Angle self, FloatsKey a0, IMP::Floats a1)
2296  set_value(Angle self, IntsKey a0, IMP::Ints a1)
2297  set_value(Angle self, StringKey a0, IMP::String a1)
2298  set_value(Angle self, ParticleIndexKey a0, Particle a1)
2299  set_value(Angle self, ObjectKey a0, Object a1)
2300  set_value(Angle self, SparseFloatKey a0, IMP::Float a1)
2301  set_value(Angle self, SparseIntKey a0, IMP::Int a1)
2302  set_value(Angle self, SparseStringKey a0, IMP::String a1)
2303  set_value(Angle self, SparseParticleIndexKey a0, ParticleIndex a1)
2304  """
2305  return _IMP_atom.Angle_set_value(self, *args)
2306 
2307  def remove_attribute(self, *args):
2308  r"""
2309  remove_attribute(Angle self, FloatKey a0)
2310  remove_attribute(Angle self, IntKey a0)
2311  remove_attribute(Angle self, FloatsKey a0)
2312  remove_attribute(Angle self, IntsKey a0)
2313  remove_attribute(Angle self, StringKey a0)
2314  remove_attribute(Angle self, ParticleIndexKey a0)
2315  remove_attribute(Angle self, ObjectKey a0)
2316  remove_attribute(Angle self, SparseFloatKey a0)
2317  remove_attribute(Angle self, SparseIntKey a0)
2318  remove_attribute(Angle self, SparseStringKey a0)
2319  remove_attribute(Angle self, SparseParticleIndexKey a0)
2320  """
2321  return _IMP_atom.Angle_remove_attribute(self, *args)
2322 
2323  def has_attribute(self, *args):
2324  r"""
2325  has_attribute(Angle self, FloatKey a0) -> bool
2326  has_attribute(Angle self, IntKey a0) -> bool
2327  has_attribute(Angle self, FloatsKey a0) -> bool
2328  has_attribute(Angle self, IntsKey a0) -> bool
2329  has_attribute(Angle self, StringKey a0) -> bool
2330  has_attribute(Angle self, ParticleIndexKey a0) -> bool
2331  has_attribute(Angle self, ObjectKey a0) -> bool
2332  has_attribute(Angle self, SparseFloatKey a0) -> bool
2333  has_attribute(Angle self, SparseIntKey a0) -> bool
2334  has_attribute(Angle self, SparseStringKey a0) -> bool
2335  has_attribute(Angle self, SparseParticleIndexKey a0) -> bool
2336  """
2337  return _IMP_atom.Angle_has_attribute(self, *args)
2338 
2339  def get_derivative(self, a0):
2340  r"""get_derivative(Angle self, FloatKey a0) -> double"""
2341  return _IMP_atom.Angle_get_derivative(self, a0)
2342 
2343  def get_name(self):
2344  r"""get_name(Angle self) -> std::string"""
2345  return _IMP_atom.Angle_get_name(self)
2346 
2347  def clear_caches(self):
2348  r"""clear_caches(Angle self)"""
2349  return _IMP_atom.Angle_clear_caches(self)
2350 
2351  def set_name(self, a0):
2352  r"""set_name(Angle self, std::string a0)"""
2353  return _IMP_atom.Angle_set_name(self, a0)
2354 
2355  def set_check_level(self, a0):
2356  r"""set_check_level(Angle self, IMP::CheckLevel a0)"""
2357  return _IMP_atom.Angle_set_check_level(self, a0)
2358 
2359  def add_to_derivative(self, a0, a1, a2):
2360  r"""add_to_derivative(Angle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2361  return _IMP_atom.Angle_add_to_derivative(self, a0, a1, a2)
2362 
2363  def set_is_optimized(self, a0, a1):
2364  r"""set_is_optimized(Angle self, FloatKey a0, bool a1)"""
2365  return _IMP_atom.Angle_set_is_optimized(self, a0, a1)
2366 
2367  def get_is_optimized(self, a0):
2368  r"""get_is_optimized(Angle self, FloatKey a0) -> bool"""
2369  return _IMP_atom.Angle_get_is_optimized(self, a0)
2370 
2371  def get_check_level(self):
2372  r"""get_check_level(Angle self) -> IMP::CheckLevel"""
2373  return _IMP_atom.Angle_get_check_level(self)
2374 
2375  def __eq__(self, *args):
2376  r"""
2377  __eq__(Angle self, Angle o) -> bool
2378  __eq__(Angle self, Particle d) -> bool
2379  """
2380  return _IMP_atom.Angle___eq__(self, *args)
2381 
2382  def __ne__(self, *args):
2383  r"""
2384  __ne__(Angle self, Angle o) -> bool
2385  __ne__(Angle self, Particle d) -> bool
2386  """
2387  return _IMP_atom.Angle___ne__(self, *args)
2388 
2389  def __le__(self, *args):
2390  r"""
2391  __le__(Angle self, Angle o) -> bool
2392  __le__(Angle self, Particle d) -> bool
2393  """
2394  return _IMP_atom.Angle___le__(self, *args)
2395 
2396  def __lt__(self, *args):
2397  r"""
2398  __lt__(Angle self, Angle o) -> bool
2399  __lt__(Angle self, Particle d) -> bool
2400  """
2401  return _IMP_atom.Angle___lt__(self, *args)
2402 
2403  def __ge__(self, *args):
2404  r"""
2405  __ge__(Angle self, Angle o) -> bool
2406  __ge__(Angle self, Particle d) -> bool
2407  """
2408  return _IMP_atom.Angle___ge__(self, *args)
2409 
2410  def __gt__(self, *args):
2411  r"""
2412  __gt__(Angle self, Angle o) -> bool
2413  __gt__(Angle self, Particle d) -> bool
2414  """
2415  return _IMP_atom.Angle___gt__(self, *args)
2416 
2417  def __hash__(self):
2418  r"""__hash__(Angle self) -> std::size_t"""
2419  return _IMP_atom.Angle___hash__(self)
2420 
2421  def __str__(self):
2422  r"""__str__(Angle self) -> std::string"""
2423  return _IMP_atom.Angle___str__(self)
2424 
2425  def __repr__(self):
2426  r"""__repr__(Angle self) -> std::string"""
2427  return _IMP_atom.Angle___repr__(self)
2428 
2429  def _get_as_binary(self):
2430  r"""_get_as_binary(Angle self) -> PyObject *"""
2431  return _IMP_atom.Angle__get_as_binary(self)
2432 
2433  def _set_from_binary(self, p):
2434  r"""_set_from_binary(Angle self, PyObject * p)"""
2435  return _IMP_atom.Angle__set_from_binary(self, p)
2436 
2437  def __getstate__(self):
2438  p = self._get_as_binary()
2439  if len(self.__dict__) > 1:
2440  d = self.__dict__.copy()
2441  del d['this']
2442  p = (d, p)
2443  return p
2444 
2445  def __setstate__(self, p):
2446  if not hasattr(self, 'this'):
2447  self.__init__()
2448  if isinstance(p, tuple):
2449  d, p = p
2450  self.__dict__.update(d)
2451  return self._set_from_binary(p)
2452 
2453  __swig_destroy__ = _IMP_atom.delete_Angle
2454 
2455 # Register Angle in _IMP_atom:
2456 _IMP_atom.Angle_swigregister(Angle)
2457 class Dihedral(IMP.Decorator):
2458  r"""Proxy of C++ IMP::atom::Dihedral class."""
2459 
2460  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2461 
2462  def __init__(self, *args):
2463  r"""
2464  __init__(Dihedral self) -> Dihedral
2465  __init__(Dihedral self, Model m, ParticleIndex id) -> Dihedral
2466  __init__(Dihedral self, _ParticleAdaptor d) -> Dihedral
2467  """
2468  _IMP_atom.Dihedral_swiginit(self, _IMP_atom.new_Dihedral(*args))
2469 
2470  def show(self, *args):
2471  r"""show(Dihedral self, _ostream out=std::cout)"""
2472  return _IMP_atom.Dihedral_show(self, *args)
2473 
2474  @staticmethod
2475  def setup_particle(*args):
2476  r"""
2477  setup_particle(Model m, ParticleIndex pi, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2478  setup_particle(_ParticleAdaptor pa, XYZ a, XYZ b, XYZ c, XYZ d) -> Dihedral
2479  """
2480  return _IMP_atom.Dihedral_setup_particle(*args)
2481 
2482  @staticmethod
2483  def get_is_setup(*args):
2484  r"""
2485  get_is_setup(_ParticleAdaptor p) -> bool
2486  get_is_setup(Model m, ParticleIndex pi) -> bool
2487  """
2488  return _IMP_atom.Dihedral_get_is_setup(*args)
2489 
2490  def get_particle(self, *args):
2491  r"""
2492  get_particle(Dihedral self) -> Particle
2493  get_particle(Dihedral self, unsigned int i) -> Particle
2494  """
2495  return _IMP_atom.Dihedral_get_particle(self, *args)
2496 
2497  def get_ideal(self):
2498  r"""get_ideal(Dihedral self) -> IMP::Float"""
2499  return _IMP_atom.Dihedral_get_ideal(self)
2500 
2501  def set_ideal(self, t):
2502  r"""set_ideal(Dihedral self, IMP::Float t)"""
2503  return _IMP_atom.Dihedral_set_ideal(self, t)
2504 
2505  def get_multiplicity(self):
2506  r"""get_multiplicity(Dihedral self) -> IMP::Int"""
2507  return _IMP_atom.Dihedral_get_multiplicity(self)
2508 
2509  def set_multiplicity(self, t):
2510  r"""set_multiplicity(Dihedral self, IMP::Int t)"""
2511  return _IMP_atom.Dihedral_set_multiplicity(self, t)
2512 
2513  def get_stiffness(self):
2514  r"""get_stiffness(Dihedral self) -> IMP::Float"""
2515  return _IMP_atom.Dihedral_get_stiffness(self)
2516 
2517  def set_stiffness(self, t):
2518  r"""set_stiffness(Dihedral self, IMP::Float t)"""
2519  return _IMP_atom.Dihedral_set_stiffness(self, t)
2520 
2521  @staticmethod
2522  def get_particle_key(i):
2523  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2524  return _IMP_atom.Dihedral_get_particle_key(i)
2525 
2526  @staticmethod
2527  def get_ideal_key():
2528  r"""get_ideal_key() -> FloatKey"""
2529  return _IMP_atom.Dihedral_get_ideal_key()
2530 
2531  @staticmethod
2532  def get_multiplicity_key():
2533  r"""get_multiplicity_key() -> IntKey"""
2534  return _IMP_atom.Dihedral_get_multiplicity_key()
2535 
2536  @staticmethod
2537  def get_stiffness_key():
2538  r"""get_stiffness_key() -> FloatKey"""
2539  return _IMP_atom.Dihedral_get_stiffness_key()
2540 
2541  def add_attribute(self, *args):
2542  r"""
2543  add_attribute(Dihedral self, FloatKey k, IMP::Float v, bool opt)
2544  add_attribute(Dihedral self, FloatKey a0, IMP::Float a1)
2545  add_attribute(Dihedral self, IntKey a0, IMP::Int a1)
2546  add_attribute(Dihedral self, FloatsKey a0, IMP::Floats a1)
2547  add_attribute(Dihedral self, IntsKey a0, IMP::Ints a1)
2548  add_attribute(Dihedral self, StringKey a0, IMP::String a1)
2549  add_attribute(Dihedral self, ParticleIndexKey a0, Particle a1)
2550  add_attribute(Dihedral self, ObjectKey a0, Object a1)
2551  add_attribute(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2552  add_attribute(Dihedral self, SparseIntKey a0, IMP::Int a1)
2553  add_attribute(Dihedral self, SparseStringKey a0, IMP::String a1)
2554  add_attribute(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2555  """
2556  return _IMP_atom.Dihedral_add_attribute(self, *args)
2557 
2558  def get_value(self, *args):
2559  r"""
2560  get_value(Dihedral self, FloatKey a0) -> IMP::Float
2561  get_value(Dihedral self, IntKey a0) -> IMP::Int
2562  get_value(Dihedral self, FloatsKey a0) -> IMP::Floats
2563  get_value(Dihedral self, IntsKey a0) -> IMP::Ints
2564  get_value(Dihedral self, StringKey a0) -> IMP::String
2565  get_value(Dihedral self, ParticleIndexKey a0) -> Particle
2566  get_value(Dihedral self, ObjectKey a0) -> Object
2567  get_value(Dihedral self, SparseFloatKey a0) -> IMP::Float
2568  get_value(Dihedral self, SparseIntKey a0) -> IMP::Int
2569  get_value(Dihedral self, SparseStringKey a0) -> IMP::String
2570  get_value(Dihedral self, SparseParticleIndexKey a0) -> ParticleIndex
2571  """
2572  return _IMP_atom.Dihedral_get_value(self, *args)
2573 
2574  def set_value(self, *args):
2575  r"""
2576  set_value(Dihedral self, FloatKey a0, IMP::Float a1)
2577  set_value(Dihedral self, IntKey a0, IMP::Int a1)
2578  set_value(Dihedral self, FloatsKey a0, IMP::Floats a1)
2579  set_value(Dihedral self, IntsKey a0, IMP::Ints a1)
2580  set_value(Dihedral self, StringKey a0, IMP::String a1)
2581  set_value(Dihedral self, ParticleIndexKey a0, Particle a1)
2582  set_value(Dihedral self, ObjectKey a0, Object a1)
2583  set_value(Dihedral self, SparseFloatKey a0, IMP::Float a1)
2584  set_value(Dihedral self, SparseIntKey a0, IMP::Int a1)
2585  set_value(Dihedral self, SparseStringKey a0, IMP::String a1)
2586  set_value(Dihedral self, SparseParticleIndexKey a0, ParticleIndex a1)
2587  """
2588  return _IMP_atom.Dihedral_set_value(self, *args)
2589 
2590  def remove_attribute(self, *args):
2591  r"""
2592  remove_attribute(Dihedral self, FloatKey a0)
2593  remove_attribute(Dihedral self, IntKey a0)
2594  remove_attribute(Dihedral self, FloatsKey a0)
2595  remove_attribute(Dihedral self, IntsKey a0)
2596  remove_attribute(Dihedral self, StringKey a0)
2597  remove_attribute(Dihedral self, ParticleIndexKey a0)
2598  remove_attribute(Dihedral self, ObjectKey a0)
2599  remove_attribute(Dihedral self, SparseFloatKey a0)
2600  remove_attribute(Dihedral self, SparseIntKey a0)
2601  remove_attribute(Dihedral self, SparseStringKey a0)
2602  remove_attribute(Dihedral self, SparseParticleIndexKey a0)
2603  """
2604  return _IMP_atom.Dihedral_remove_attribute(self, *args)
2605 
2606  def has_attribute(self, *args):
2607  r"""
2608  has_attribute(Dihedral self, FloatKey a0) -> bool
2609  has_attribute(Dihedral self, IntKey a0) -> bool
2610  has_attribute(Dihedral self, FloatsKey a0) -> bool
2611  has_attribute(Dihedral self, IntsKey a0) -> bool
2612  has_attribute(Dihedral self, StringKey a0) -> bool
2613  has_attribute(Dihedral self, ParticleIndexKey a0) -> bool
2614  has_attribute(Dihedral self, ObjectKey a0) -> bool
2615  has_attribute(Dihedral self, SparseFloatKey a0) -> bool
2616  has_attribute(Dihedral self, SparseIntKey a0) -> bool
2617  has_attribute(Dihedral self, SparseStringKey a0) -> bool
2618  has_attribute(Dihedral self, SparseParticleIndexKey a0) -> bool
2619  """
2620  return _IMP_atom.Dihedral_has_attribute(self, *args)
2621 
2622  def get_derivative(self, a0):
2623  r"""get_derivative(Dihedral self, FloatKey a0) -> double"""
2624  return _IMP_atom.Dihedral_get_derivative(self, a0)
2625 
2626  def get_name(self):
2627  r"""get_name(Dihedral self) -> std::string"""
2628  return _IMP_atom.Dihedral_get_name(self)
2629 
2630  def clear_caches(self):
2631  r"""clear_caches(Dihedral self)"""
2632  return _IMP_atom.Dihedral_clear_caches(self)
2633 
2634  def set_name(self, a0):
2635  r"""set_name(Dihedral self, std::string a0)"""
2636  return _IMP_atom.Dihedral_set_name(self, a0)
2637 
2638  def set_check_level(self, a0):
2639  r"""set_check_level(Dihedral self, IMP::CheckLevel a0)"""
2640  return _IMP_atom.Dihedral_set_check_level(self, a0)
2641 
2642  def add_to_derivative(self, a0, a1, a2):
2643  r"""add_to_derivative(Dihedral self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2644  return _IMP_atom.Dihedral_add_to_derivative(self, a0, a1, a2)
2645 
2646  def set_is_optimized(self, a0, a1):
2647  r"""set_is_optimized(Dihedral self, FloatKey a0, bool a1)"""
2648  return _IMP_atom.Dihedral_set_is_optimized(self, a0, a1)
2649 
2650  def get_is_optimized(self, a0):
2651  r"""get_is_optimized(Dihedral self, FloatKey a0) -> bool"""
2652  return _IMP_atom.Dihedral_get_is_optimized(self, a0)
2653 
2654  def get_check_level(self):
2655  r"""get_check_level(Dihedral self) -> IMP::CheckLevel"""
2656  return _IMP_atom.Dihedral_get_check_level(self)
2657 
2658  def __eq__(self, *args):
2659  r"""
2660  __eq__(Dihedral self, Dihedral o) -> bool
2661  __eq__(Dihedral self, Particle d) -> bool
2662  """
2663  return _IMP_atom.Dihedral___eq__(self, *args)
2664 
2665  def __ne__(self, *args):
2666  r"""
2667  __ne__(Dihedral self, Dihedral o) -> bool
2668  __ne__(Dihedral self, Particle d) -> bool
2669  """
2670  return _IMP_atom.Dihedral___ne__(self, *args)
2671 
2672  def __le__(self, *args):
2673  r"""
2674  __le__(Dihedral self, Dihedral o) -> bool
2675  __le__(Dihedral self, Particle d) -> bool
2676  """
2677  return _IMP_atom.Dihedral___le__(self, *args)
2678 
2679  def __lt__(self, *args):
2680  r"""
2681  __lt__(Dihedral self, Dihedral o) -> bool
2682  __lt__(Dihedral self, Particle d) -> bool
2683  """
2684  return _IMP_atom.Dihedral___lt__(self, *args)
2685 
2686  def __ge__(self, *args):
2687  r"""
2688  __ge__(Dihedral self, Dihedral o) -> bool
2689  __ge__(Dihedral self, Particle d) -> bool
2690  """
2691  return _IMP_atom.Dihedral___ge__(self, *args)
2692 
2693  def __gt__(self, *args):
2694  r"""
2695  __gt__(Dihedral self, Dihedral o) -> bool
2696  __gt__(Dihedral self, Particle d) -> bool
2697  """
2698  return _IMP_atom.Dihedral___gt__(self, *args)
2699 
2700  def __hash__(self):
2701  r"""__hash__(Dihedral self) -> std::size_t"""
2702  return _IMP_atom.Dihedral___hash__(self)
2703 
2704  def __str__(self):
2705  r"""__str__(Dihedral self) -> std::string"""
2706  return _IMP_atom.Dihedral___str__(self)
2707 
2708  def __repr__(self):
2709  r"""__repr__(Dihedral self) -> std::string"""
2710  return _IMP_atom.Dihedral___repr__(self)
2711 
2712  def _get_as_binary(self):
2713  r"""_get_as_binary(Dihedral self) -> PyObject *"""
2714  return _IMP_atom.Dihedral__get_as_binary(self)
2715 
2716  def _set_from_binary(self, p):
2717  r"""_set_from_binary(Dihedral self, PyObject * p)"""
2718  return _IMP_atom.Dihedral__set_from_binary(self, p)
2719 
2720  def __getstate__(self):
2721  p = self._get_as_binary()
2722  if len(self.__dict__) > 1:
2723  d = self.__dict__.copy()
2724  del d['this']
2725  p = (d, p)
2726  return p
2727 
2728  def __setstate__(self, p):
2729  if not hasattr(self, 'this'):
2730  self.__init__()
2731  if isinstance(p, tuple):
2732  d, p = p
2733  self.__dict__.update(d)
2734  return self._set_from_binary(p)
2735 
2736  __swig_destroy__ = _IMP_atom.delete_Dihedral
2737 
2738 # Register Dihedral in _IMP_atom:
2739 _IMP_atom.Dihedral_swigregister(Dihedral)
2740 class SmoothingFunction(IMP.Object):
2741  r"""Proxy of C++ IMP::atom::SmoothingFunction class."""
2742 
2743  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2744 
2745  def __init__(self, *args, **kwargs):
2746  raise AttributeError("No constructor defined - class is abstract")
2747 
2748  def __call__(self, *args):
2749  r"""
2750  __call__(SmoothingFunction self, double score, double distance) -> double
2751  __call__(SmoothingFunction self, double score, double deriv, double distance) -> IMP::DerivativePair
2752  """
2753  return _IMP_atom.SmoothingFunction___call__(self, *args)
2754  __swig_destroy__ = _IMP_atom.delete_SmoothingFunction
2755 
2756  def __str__(self):
2757  r"""__str__(SmoothingFunction self) -> std::string"""
2758  return _IMP_atom.SmoothingFunction___str__(self)
2759 
2760  def __repr__(self):
2761  r"""__repr__(SmoothingFunction self) -> std::string"""
2762  return _IMP_atom.SmoothingFunction___repr__(self)
2763 
2764  @staticmethod
2765  def get_from(o):
2766  return _object_cast_to_SmoothingFunction(o)
2767 
2768 
2769 # Register SmoothingFunction in _IMP_atom:
2770 _IMP_atom.SmoothingFunction_swigregister(SmoothingFunction)
2771 class ForceSwitch(SmoothingFunction):
2772  r"""Proxy of C++ IMP::atom::ForceSwitch class."""
2773 
2774  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2775 
2776  def __init__(self, min_distance, max_distance):
2777  r"""__init__(ForceSwitch self, double min_distance, double max_distance) -> ForceSwitch"""
2778  _IMP_atom.ForceSwitch_swiginit(self, _IMP_atom.new_ForceSwitch(min_distance, max_distance))
2779 
2780  def __call__(self, *args):
2781  r"""
2782  __call__(ForceSwitch self, double score, double distance) -> double
2783  __call__(ForceSwitch self, double score, double deriv, double distance) -> IMP::DerivativePair
2784  """
2785  return _IMP_atom.ForceSwitch___call__(self, *args)
2786 
2787  def get_version_info(self):
2788  r"""get_version_info(ForceSwitch self) -> VersionInfo"""
2789  return _IMP_atom.ForceSwitch_get_version_info(self)
2790  __swig_destroy__ = _IMP_atom.delete_ForceSwitch
2791 
2792  def __str__(self):
2793  r"""__str__(ForceSwitch self) -> std::string"""
2794  return _IMP_atom.ForceSwitch___str__(self)
2795 
2796  def __repr__(self):
2797  r"""__repr__(ForceSwitch self) -> std::string"""
2798  return _IMP_atom.ForceSwitch___repr__(self)
2799 
2800  @staticmethod
2801  def get_from(o):
2802  return _object_cast_to_ForceSwitch(o)
2803 
2804 
2805 # Register ForceSwitch in _IMP_atom:
2806 _IMP_atom.ForceSwitch_swigregister(ForceSwitch)
2807 class AngleSingletonScore(IMP.SingletonScore):
2808  r"""Proxy of C++ IMP::atom::AngleSingletonScore class."""
2809 
2810  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2811 
2812  def __init__(self, f):
2813  r"""__init__(AngleSingletonScore self, UnaryFunction f) -> AngleSingletonScore"""
2814  _IMP_atom.AngleSingletonScore_swiginit(self, _IMP_atom.new_AngleSingletonScore(f))
2815 
2816  def do_get_inputs(self, m, pis):
2817  r"""do_get_inputs(AngleSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2818  return _IMP_atom.AngleSingletonScore_do_get_inputs(self, m, pis)
2819 
2820  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2821  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"""
2822  return _IMP_atom.AngleSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2823 
2824  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2825  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"""
2826  return _IMP_atom.AngleSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2827 
2828  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2829  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"""
2830  return _IMP_atom.AngleSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2831 
2832  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2833  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"""
2834  return _IMP_atom.AngleSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2835 
2836  def get_version_info(self):
2837  r"""get_version_info(AngleSingletonScore self) -> VersionInfo"""
2838  return _IMP_atom.AngleSingletonScore_get_version_info(self)
2839  __swig_destroy__ = _IMP_atom.delete_AngleSingletonScore
2840 
2841  def __str__(self):
2842  r"""__str__(AngleSingletonScore self) -> std::string"""
2843  return _IMP_atom.AngleSingletonScore___str__(self)
2844 
2845  def __repr__(self):
2846  r"""__repr__(AngleSingletonScore self) -> std::string"""
2847  return _IMP_atom.AngleSingletonScore___repr__(self)
2848 
2849  @staticmethod
2850  def get_from(o):
2851  return _object_cast_to_AngleSingletonScore(o)
2852 
2853 
2854 # Register AngleSingletonScore in _IMP_atom:
2855 _IMP_atom.AngleSingletonScore_swigregister(AngleSingletonScore)
2856 class BondEndpointsRefiner(IMP.Refiner):
2857  r"""Proxy of C++ IMP::atom::BondEndpointsRefiner class."""
2858 
2859  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2860 
2861  def __init__(self):
2862  r"""__init__(BondEndpointsRefiner self) -> BondEndpointsRefiner"""
2863  _IMP_atom.BondEndpointsRefiner_swiginit(self, _IMP_atom.new_BondEndpointsRefiner())
2864 
2865  def do_get_inputs(self, m, pis):
2866  r"""do_get_inputs(BondEndpointsRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2867  return _IMP_atom.BondEndpointsRefiner_do_get_inputs(self, m, pis)
2868 
2869  def get_version_info(self):
2870  r"""get_version_info(BondEndpointsRefiner self) -> VersionInfo"""
2871  return _IMP_atom.BondEndpointsRefiner_get_version_info(self)
2872  __swig_destroy__ = _IMP_atom.delete_BondEndpointsRefiner
2873 
2874  def __str__(self):
2875  r"""__str__(BondEndpointsRefiner self) -> std::string"""
2876  return _IMP_atom.BondEndpointsRefiner___str__(self)
2877 
2878  def __repr__(self):
2879  r"""__repr__(BondEndpointsRefiner self) -> std::string"""
2880  return _IMP_atom.BondEndpointsRefiner___repr__(self)
2881 
2882  @staticmethod
2883  def get_from(o):
2884  return _object_cast_to_BondEndpointsRefiner(o)
2885 
2886 
2887 # Register BondEndpointsRefiner in _IMP_atom:
2888 _IMP_atom.BondEndpointsRefiner_swigregister(BondEndpointsRefiner)
2889 class BondPairContainer(IMP.PairContainer):
2890  r"""Proxy of C++ IMP::atom::BondPairContainer class."""
2891 
2892  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2893 
2894  def __init__(self, sc):
2895  r"""__init__(BondPairContainer self, SingletonContainer sc) -> BondPairContainer"""
2896  _IMP_atom.BondPairContainer_swiginit(self, _IMP_atom.new_BondPairContainer(sc))
2897 
2898  def do_get_inputs(self):
2899  r"""do_get_inputs(BondPairContainer self) -> IMP::ModelObjectsTemp"""
2900  return _IMP_atom.BondPairContainer_do_get_inputs(self)
2901 
2902  def do_apply(self, sm):
2903  r"""do_apply(BondPairContainer self, PairModifier sm)"""
2904  return _IMP_atom.BondPairContainer_do_apply(self, sm)
2905 
2906  def do_apply_moved(self, sm, moved_pis, reset_pis):
2907  r"""do_apply_moved(BondPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2908  return _IMP_atom.BondPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
2909 
2910  def get_version_info(self):
2911  r"""get_version_info(BondPairContainer self) -> VersionInfo"""
2912  return _IMP_atom.BondPairContainer_get_version_info(self)
2913  __swig_destroy__ = _IMP_atom.delete_BondPairContainer
2914 
2915  def __str__(self):
2916  r"""__str__(BondPairContainer self) -> std::string"""
2917  return _IMP_atom.BondPairContainer___str__(self)
2918 
2919  def __repr__(self):
2920  r"""__repr__(BondPairContainer self) -> std::string"""
2921  return _IMP_atom.BondPairContainer___repr__(self)
2922 
2923  @staticmethod
2924  def get_from(o):
2925  return _object_cast_to_BondPairContainer(o)
2926 
2927 
2928 # Register BondPairContainer in _IMP_atom:
2929 _IMP_atom.BondPairContainer_swigregister(BondPairContainer)
2930 class BondSingletonScore(IMP.SingletonScore):
2931  r"""Proxy of C++ IMP::atom::BondSingletonScore class."""
2932 
2933  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2934 
2935  def __init__(self, f):
2936  r"""__init__(BondSingletonScore self, UnaryFunction f) -> BondSingletonScore"""
2937  _IMP_atom.BondSingletonScore_swiginit(self, _IMP_atom.new_BondSingletonScore(f))
2938 
2939  def get_unary_function(self):
2940  r"""get_unary_function(BondSingletonScore self) -> UnaryFunction"""
2941  return _IMP_atom.BondSingletonScore_get_unary_function(self)
2942 
2943  def do_get_inputs(self, m, pis):
2944  r"""do_get_inputs(BondSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2945  return _IMP_atom.BondSingletonScore_do_get_inputs(self, m, pis)
2946 
2947  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2948  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"""
2949  return _IMP_atom.BondSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2950 
2951  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2952  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"""
2953  return _IMP_atom.BondSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2954 
2955  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2956  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"""
2957  return _IMP_atom.BondSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2958 
2959  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2960  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"""
2961  return _IMP_atom.BondSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2962 
2963  def get_version_info(self):
2964  r"""get_version_info(BondSingletonScore self) -> VersionInfo"""
2965  return _IMP_atom.BondSingletonScore_get_version_info(self)
2966  __swig_destroy__ = _IMP_atom.delete_BondSingletonScore
2967 
2968  def __str__(self):
2969  r"""__str__(BondSingletonScore self) -> std::string"""
2970  return _IMP_atom.BondSingletonScore___str__(self)
2971 
2972  def __repr__(self):
2973  r"""__repr__(BondSingletonScore self) -> std::string"""
2974  return _IMP_atom.BondSingletonScore___repr__(self)
2975 
2976  @staticmethod
2977  def get_from(o):
2978  return _object_cast_to_BondSingletonScore(o)
2979 
2980 
2981 # Register BondSingletonScore in _IMP_atom:
2982 _IMP_atom.BondSingletonScore_swigregister(BondSingletonScore)
2983 class DihedralSingletonScore(IMP.SingletonScore):
2984  r"""Proxy of C++ IMP::atom::DihedralSingletonScore class."""
2985 
2986  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2987 
2988  def __init__(self):
2989  r"""__init__(DihedralSingletonScore self) -> DihedralSingletonScore"""
2990  _IMP_atom.DihedralSingletonScore_swiginit(self, _IMP_atom.new_DihedralSingletonScore())
2991 
2992  def do_get_inputs(self, m, pis):
2993  r"""do_get_inputs(DihedralSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2994  return _IMP_atom.DihedralSingletonScore_do_get_inputs(self, m, pis)
2995 
2996  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2997  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"""
2998  return _IMP_atom.DihedralSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2999 
3000  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3001  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"""
3002  return _IMP_atom.DihedralSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3003 
3004  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3005  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"""
3006  return _IMP_atom.DihedralSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3007 
3008  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3009  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"""
3010  return _IMP_atom.DihedralSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3011 
3012  def get_version_info(self):
3013  r"""get_version_info(DihedralSingletonScore self) -> VersionInfo"""
3014  return _IMP_atom.DihedralSingletonScore_get_version_info(self)
3015  __swig_destroy__ = _IMP_atom.delete_DihedralSingletonScore
3016 
3017  def __str__(self):
3018  r"""__str__(DihedralSingletonScore self) -> std::string"""
3019  return _IMP_atom.DihedralSingletonScore___str__(self)
3020 
3021  def __repr__(self):
3022  r"""__repr__(DihedralSingletonScore self) -> std::string"""
3023  return _IMP_atom.DihedralSingletonScore___repr__(self)
3024 
3025  @staticmethod
3026  def get_from(o):
3027  return _object_cast_to_DihedralSingletonScore(o)
3028 
3029 
3030  def _get_as_binary(self):
3031  r"""_get_as_binary(DihedralSingletonScore self) -> PyObject *"""
3032  return _IMP_atom.DihedralSingletonScore__get_as_binary(self)
3033 
3034  def _set_from_binary(self, p):
3035  r"""_set_from_binary(DihedralSingletonScore self, PyObject * p)"""
3036  return _IMP_atom.DihedralSingletonScore__set_from_binary(self, p)
3037 
3038  def __getstate__(self):
3039  p = self._get_as_binary()
3040  if len(self.__dict__) > 1:
3041  d = self.__dict__.copy()
3042  del d['this']
3043  p = (d, p)
3044  return p
3045 
3046  def __setstate__(self, p):
3047  if not hasattr(self, 'this'):
3048  self.__init__()
3049  if isinstance(p, tuple):
3050  d, p = p
3051  self.__dict__.update(d)
3052  return self._set_from_binary(p)
3053 
3054 
3055 # Register DihedralSingletonScore in _IMP_atom:
3056 _IMP_atom.DihedralSingletonScore_swigregister(DihedralSingletonScore)
3057 class ImproperSingletonScore(IMP.SingletonScore):
3058  r"""Proxy of C++ IMP::atom::ImproperSingletonScore class."""
3059 
3060  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3061 
3062  def __init__(self, f):
3063  r"""__init__(ImproperSingletonScore self, UnaryFunction f) -> ImproperSingletonScore"""
3064  _IMP_atom.ImproperSingletonScore_swiginit(self, _IMP_atom.new_ImproperSingletonScore(f))
3065 
3066  def do_get_inputs(self, m, pis):
3067  r"""do_get_inputs(ImproperSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3068  return _IMP_atom.ImproperSingletonScore_do_get_inputs(self, m, pis)
3069 
3070  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3071  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"""
3072  return _IMP_atom.ImproperSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3073 
3074  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3075  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"""
3076  return _IMP_atom.ImproperSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3077 
3078  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3079  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"""
3080  return _IMP_atom.ImproperSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3081 
3082  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3083  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"""
3084  return _IMP_atom.ImproperSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3085 
3086  def get_version_info(self):
3087  r"""get_version_info(ImproperSingletonScore self) -> VersionInfo"""
3088  return _IMP_atom.ImproperSingletonScore_get_version_info(self)
3089  __swig_destroy__ = _IMP_atom.delete_ImproperSingletonScore
3090 
3091  def __str__(self):
3092  r"""__str__(ImproperSingletonScore self) -> std::string"""
3093  return _IMP_atom.ImproperSingletonScore___str__(self)
3094 
3095  def __repr__(self):
3096  r"""__repr__(ImproperSingletonScore self) -> std::string"""
3097  return _IMP_atom.ImproperSingletonScore___repr__(self)
3098 
3099  @staticmethod
3100  def get_from(o):
3101  return _object_cast_to_ImproperSingletonScore(o)
3102 
3103 
3104 # Register ImproperSingletonScore in _IMP_atom:
3105 _IMP_atom.ImproperSingletonScore_swigregister(ImproperSingletonScore)
3106 class CenterOfMass(IMP.Decorator):
3107  r"""Proxy of C++ IMP::atom::CenterOfMass class."""
3108 
3109  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3110 
3111  def get_constraint(self):
3112  r"""get_constraint(CenterOfMass self) -> Constraint"""
3113  return _IMP_atom.CenterOfMass_get_constraint(self)
3114 
3115  def get_mass(self):
3116  r"""get_mass(CenterOfMass self) -> IMP::Float"""
3117  return _IMP_atom.CenterOfMass_get_mass(self)
3118 
3119  def get_coordinate(self, i):
3120  r"""get_coordinate(CenterOfMass self, int i) -> IMP::Float"""
3121  return _IMP_atom.CenterOfMass_get_coordinate(self, i)
3122 
3123  def get_coordinates(self):
3124  r"""get_coordinates(CenterOfMass self) -> Vector3D"""
3125  return _IMP_atom.CenterOfMass_get_coordinates(self)
3126 
3127  def __init__(self, *args):
3128  r"""
3129  __init__(CenterOfMass self) -> CenterOfMass
3130  __init__(CenterOfMass self, Model m, ParticleIndex id) -> CenterOfMass
3131  __init__(CenterOfMass self, _ParticleAdaptor d) -> CenterOfMass
3132  """
3133  _IMP_atom.CenterOfMass_swiginit(self, _IMP_atom.new_CenterOfMass(*args))
3134 
3135  def show(self, *args):
3136  r"""show(CenterOfMass self, _ostream out=std::cout)"""
3137  return _IMP_atom.CenterOfMass_show(self, *args)
3138 
3139  @staticmethod
3140  def setup_particle(*args):
3141  r"""
3142  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> CenterOfMass
3143  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> CenterOfMass
3144  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> CenterOfMass
3145  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> CenterOfMass
3146  """
3147  return _IMP_atom.CenterOfMass_setup_particle(*args)
3148 
3149  @staticmethod
3150  def teardown_particle(com):
3151  r"""teardown_particle(CenterOfMass com)"""
3152  return _IMP_atom.CenterOfMass_teardown_particle(com)
3153 
3154  @staticmethod
3155  def get_is_setup(*args):
3156  r"""
3157  get_is_setup(_ParticleAdaptor p) -> bool
3158  get_is_setup(Model m, ParticleIndex pi) -> bool
3159  """
3160  return _IMP_atom.CenterOfMass_get_is_setup(*args)
3161 
3162  def add_attribute(self, *args):
3163  r"""
3164  add_attribute(CenterOfMass self, FloatKey k, IMP::Float v, bool opt)
3165  add_attribute(CenterOfMass self, FloatKey a0, IMP::Float a1)
3166  add_attribute(CenterOfMass self, IntKey a0, IMP::Int a1)
3167  add_attribute(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3168  add_attribute(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3169  add_attribute(CenterOfMass self, StringKey a0, IMP::String a1)
3170  add_attribute(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3171  add_attribute(CenterOfMass self, ObjectKey a0, Object a1)
3172  add_attribute(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3173  add_attribute(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3174  add_attribute(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3175  add_attribute(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3176  """
3177  return _IMP_atom.CenterOfMass_add_attribute(self, *args)
3178 
3179  def get_value(self, *args):
3180  r"""
3181  get_value(CenterOfMass self, FloatKey a0) -> IMP::Float
3182  get_value(CenterOfMass self, IntKey a0) -> IMP::Int
3183  get_value(CenterOfMass self, FloatsKey a0) -> IMP::Floats
3184  get_value(CenterOfMass self, IntsKey a0) -> IMP::Ints
3185  get_value(CenterOfMass self, StringKey a0) -> IMP::String
3186  get_value(CenterOfMass self, ParticleIndexKey a0) -> Particle
3187  get_value(CenterOfMass self, ObjectKey a0) -> Object
3188  get_value(CenterOfMass self, SparseFloatKey a0) -> IMP::Float
3189  get_value(CenterOfMass self, SparseIntKey a0) -> IMP::Int
3190  get_value(CenterOfMass self, SparseStringKey a0) -> IMP::String
3191  get_value(CenterOfMass self, SparseParticleIndexKey a0) -> ParticleIndex
3192  """
3193  return _IMP_atom.CenterOfMass_get_value(self, *args)
3194 
3195  def set_value(self, *args):
3196  r"""
3197  set_value(CenterOfMass self, FloatKey a0, IMP::Float a1)
3198  set_value(CenterOfMass self, IntKey a0, IMP::Int a1)
3199  set_value(CenterOfMass self, FloatsKey a0, IMP::Floats a1)
3200  set_value(CenterOfMass self, IntsKey a0, IMP::Ints a1)
3201  set_value(CenterOfMass self, StringKey a0, IMP::String a1)
3202  set_value(CenterOfMass self, ParticleIndexKey a0, Particle a1)
3203  set_value(CenterOfMass self, ObjectKey a0, Object a1)
3204  set_value(CenterOfMass self, SparseFloatKey a0, IMP::Float a1)
3205  set_value(CenterOfMass self, SparseIntKey a0, IMP::Int a1)
3206  set_value(CenterOfMass self, SparseStringKey a0, IMP::String a1)
3207  set_value(CenterOfMass self, SparseParticleIndexKey a0, ParticleIndex a1)
3208  """
3209  return _IMP_atom.CenterOfMass_set_value(self, *args)
3210 
3211  def remove_attribute(self, *args):
3212  r"""
3213  remove_attribute(CenterOfMass self, FloatKey a0)
3214  remove_attribute(CenterOfMass self, IntKey a0)
3215  remove_attribute(CenterOfMass self, FloatsKey a0)
3216  remove_attribute(CenterOfMass self, IntsKey a0)
3217  remove_attribute(CenterOfMass self, StringKey a0)
3218  remove_attribute(CenterOfMass self, ParticleIndexKey a0)
3219  remove_attribute(CenterOfMass self, ObjectKey a0)
3220  remove_attribute(CenterOfMass self, SparseFloatKey a0)
3221  remove_attribute(CenterOfMass self, SparseIntKey a0)
3222  remove_attribute(CenterOfMass self, SparseStringKey a0)
3223  remove_attribute(CenterOfMass self, SparseParticleIndexKey a0)
3224  """
3225  return _IMP_atom.CenterOfMass_remove_attribute(self, *args)
3226 
3227  def has_attribute(self, *args):
3228  r"""
3229  has_attribute(CenterOfMass self, FloatKey a0) -> bool
3230  has_attribute(CenterOfMass self, IntKey a0) -> bool
3231  has_attribute(CenterOfMass self, FloatsKey a0) -> bool
3232  has_attribute(CenterOfMass self, IntsKey a0) -> bool
3233  has_attribute(CenterOfMass self, StringKey a0) -> bool
3234  has_attribute(CenterOfMass self, ParticleIndexKey a0) -> bool
3235  has_attribute(CenterOfMass self, ObjectKey a0) -> bool
3236  has_attribute(CenterOfMass self, SparseFloatKey a0) -> bool
3237  has_attribute(CenterOfMass self, SparseIntKey a0) -> bool
3238  has_attribute(CenterOfMass self, SparseStringKey a0) -> bool
3239  has_attribute(CenterOfMass self, SparseParticleIndexKey a0) -> bool
3240  """
3241  return _IMP_atom.CenterOfMass_has_attribute(self, *args)
3242 
3243  def get_derivative(self, a0):
3244  r"""get_derivative(CenterOfMass self, FloatKey a0) -> double"""
3245  return _IMP_atom.CenterOfMass_get_derivative(self, a0)
3246 
3247  def get_name(self):
3248  r"""get_name(CenterOfMass self) -> std::string"""
3249  return _IMP_atom.CenterOfMass_get_name(self)
3250 
3251  def clear_caches(self):
3252  r"""clear_caches(CenterOfMass self)"""
3253  return _IMP_atom.CenterOfMass_clear_caches(self)
3254 
3255  def set_name(self, a0):
3256  r"""set_name(CenterOfMass self, std::string a0)"""
3257  return _IMP_atom.CenterOfMass_set_name(self, a0)
3258 
3259  def set_check_level(self, a0):
3260  r"""set_check_level(CenterOfMass self, IMP::CheckLevel a0)"""
3261  return _IMP_atom.CenterOfMass_set_check_level(self, a0)
3262 
3263  def add_to_derivative(self, a0, a1, a2):
3264  r"""add_to_derivative(CenterOfMass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3265  return _IMP_atom.CenterOfMass_add_to_derivative(self, a0, a1, a2)
3266 
3267  def set_is_optimized(self, a0, a1):
3268  r"""set_is_optimized(CenterOfMass self, FloatKey a0, bool a1)"""
3269  return _IMP_atom.CenterOfMass_set_is_optimized(self, a0, a1)
3270 
3271  def get_is_optimized(self, a0):
3272  r"""get_is_optimized(CenterOfMass self, FloatKey a0) -> bool"""
3273  return _IMP_atom.CenterOfMass_get_is_optimized(self, a0)
3274 
3275  def get_check_level(self):
3276  r"""get_check_level(CenterOfMass self) -> IMP::CheckLevel"""
3277  return _IMP_atom.CenterOfMass_get_check_level(self)
3278 
3279  def __eq__(self, *args):
3280  r"""
3281  __eq__(CenterOfMass self, CenterOfMass o) -> bool
3282  __eq__(CenterOfMass self, Particle d) -> bool
3283  """
3284  return _IMP_atom.CenterOfMass___eq__(self, *args)
3285 
3286  def __ne__(self, *args):
3287  r"""
3288  __ne__(CenterOfMass self, CenterOfMass o) -> bool
3289  __ne__(CenterOfMass self, Particle d) -> bool
3290  """
3291  return _IMP_atom.CenterOfMass___ne__(self, *args)
3292 
3293  def __le__(self, *args):
3294  r"""
3295  __le__(CenterOfMass self, CenterOfMass o) -> bool
3296  __le__(CenterOfMass self, Particle d) -> bool
3297  """
3298  return _IMP_atom.CenterOfMass___le__(self, *args)
3299 
3300  def __lt__(self, *args):
3301  r"""
3302  __lt__(CenterOfMass self, CenterOfMass o) -> bool
3303  __lt__(CenterOfMass self, Particle d) -> bool
3304  """
3305  return _IMP_atom.CenterOfMass___lt__(self, *args)
3306 
3307  def __ge__(self, *args):
3308  r"""
3309  __ge__(CenterOfMass self, CenterOfMass o) -> bool
3310  __ge__(CenterOfMass self, Particle d) -> bool
3311  """
3312  return _IMP_atom.CenterOfMass___ge__(self, *args)
3313 
3314  def __gt__(self, *args):
3315  r"""
3316  __gt__(CenterOfMass self, CenterOfMass o) -> bool
3317  __gt__(CenterOfMass self, Particle d) -> bool
3318  """
3319  return _IMP_atom.CenterOfMass___gt__(self, *args)
3320 
3321  def __hash__(self):
3322  r"""__hash__(CenterOfMass self) -> std::size_t"""
3323  return _IMP_atom.CenterOfMass___hash__(self)
3324 
3325  def __str__(self):
3326  r"""__str__(CenterOfMass self) -> std::string"""
3327  return _IMP_atom.CenterOfMass___str__(self)
3328 
3329  def __repr__(self):
3330  r"""__repr__(CenterOfMass self) -> std::string"""
3331  return _IMP_atom.CenterOfMass___repr__(self)
3332 
3333  def _get_as_binary(self):
3334  r"""_get_as_binary(CenterOfMass self) -> PyObject *"""
3335  return _IMP_atom.CenterOfMass__get_as_binary(self)
3336 
3337  def _set_from_binary(self, p):
3338  r"""_set_from_binary(CenterOfMass self, PyObject * p)"""
3339  return _IMP_atom.CenterOfMass__set_from_binary(self, p)
3340 
3341  def __getstate__(self):
3342  p = self._get_as_binary()
3343  if len(self.__dict__) > 1:
3344  d = self.__dict__.copy()
3345  del d['this']
3346  p = (d, p)
3347  return p
3348 
3349  def __setstate__(self, p):
3350  if not hasattr(self, 'this'):
3351  self.__init__()
3352  if isinstance(p, tuple):
3353  d, p = p
3354  self.__dict__.update(d)
3355  return self._set_from_binary(p)
3356 
3357  __swig_destroy__ = _IMP_atom.delete_CenterOfMass
3358 
3359 # Register CenterOfMass in _IMP_atom:
3360 _IMP_atom.CenterOfMass_swigregister(CenterOfMass)
3361 class CoverBond(IMP.SingletonModifier):
3362  r"""Proxy of C++ IMP::atom::CoverBond class."""
3363 
3364  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3365 
3366  def __init__(self):
3367  r"""__init__(CoverBond self) -> CoverBond"""
3368  _IMP_atom.CoverBond_swiginit(self, _IMP_atom.new_CoverBond())
3369 
3370  def do_get_inputs(self, m, pis):
3371  r"""do_get_inputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3372  return _IMP_atom.CoverBond_do_get_inputs(self, m, pis)
3373 
3374  def do_get_outputs(self, m, pis):
3375  r"""do_get_outputs(CoverBond self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3376  return _IMP_atom.CoverBond_do_get_outputs(self, m, pis)
3377 
3378  def get_version_info(self):
3379  r"""get_version_info(CoverBond self) -> VersionInfo"""
3380  return _IMP_atom.CoverBond_get_version_info(self)
3381  __swig_destroy__ = _IMP_atom.delete_CoverBond
3382 
3383  def __str__(self):
3384  r"""__str__(CoverBond self) -> std::string"""
3385  return _IMP_atom.CoverBond___str__(self)
3386 
3387  def __repr__(self):
3388  r"""__repr__(CoverBond self) -> std::string"""
3389  return _IMP_atom.CoverBond___repr__(self)
3390 
3391  @staticmethod
3392  def get_from(o):
3393  return _object_cast_to_CoverBond(o)
3394 
3395 
3396 # Register CoverBond in _IMP_atom:
3397 _IMP_atom.CoverBond_swigregister(CoverBond)
3398 class Simulator(IMP.Optimizer):
3399  r"""Proxy of C++ IMP::atom::Simulator class."""
3400 
3401  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3402 
3403  def __init__(self, *args):
3404  r"""__init__(Simulator self, Model m, std::string name="Simulator %1%", double wave_factor=1.0) -> Simulator"""
3405  if self.__class__ == Simulator:
3406  _self = None
3407  else:
3408  _self = self
3409  _IMP_atom.Simulator_swiginit(self, _IMP_atom.new_Simulator(_self, *args))
3410 
3411  if self.__class__ != Simulator:
3412  _director_objects.register(self)
3413 
3414 
3415 
3416 
3417  def simulate(self, time_in_fs):
3418  r"""simulate(Simulator self, double time_in_fs) -> double"""
3419  return _IMP_atom.Simulator_simulate(self, time_in_fs)
3420 
3421  def simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3422  r"""simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3423  return _IMP_atom.Simulator_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3424 
3425  def get_temperature(self):
3426  r"""get_temperature(Simulator self) -> double"""
3427  return _IMP_atom.Simulator_get_temperature(self)
3428 
3429  def set_temperature(self, d):
3430  r"""set_temperature(Simulator self, double d)"""
3431  return _IMP_atom.Simulator_set_temperature(self, d)
3432 
3433  def set_maximum_time_step(self, ts):
3434  r"""set_maximum_time_step(Simulator self, double ts)"""
3435  return _IMP_atom.Simulator_set_maximum_time_step(self, ts)
3436 
3437  def get_maximum_time_step(self):
3438  r"""get_maximum_time_step(Simulator self) -> double"""
3439  return _IMP_atom.Simulator_get_maximum_time_step(self)
3440 
3441  def get_last_time_step(self):
3442  r"""get_last_time_step(Simulator self) -> double"""
3443  return _IMP_atom.Simulator_get_last_time_step(self)
3444 
3445  def set_time_step(self, ts):
3446  r"""set_time_step(Simulator self, double ts)"""
3447  return _IMP_atom.Simulator_set_time_step(self, ts)
3448 
3449  def get_kt(self):
3450  r"""get_kt(Simulator self) -> double"""
3451  return _IMP_atom.Simulator_get_kt(self)
3452 
3453  def get_current_time(self):
3454  r"""get_current_time(Simulator self) -> double"""
3455  return _IMP_atom.Simulator_get_current_time(self)
3456 
3457  def set_current_time(self, ct):
3458  r"""set_current_time(Simulator self, double ct)"""
3459  return _IMP_atom.Simulator_set_current_time(self, ct)
3460 
3461  def get_simulation_particles(self):
3462  r"""get_simulation_particles(Simulator self) -> IMP::ParticlesTemp"""
3463  return _IMP_atom.Simulator_get_simulation_particles(self)
3464 
3465  def get_simulation_particle_indexes(self):
3466  r"""get_simulation_particle_indexes(Simulator self) -> IMP::ParticleIndexes"""
3467  return _IMP_atom.Simulator_get_simulation_particle_indexes(self)
3468  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)
3469  def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
3470  def __del_particles(self): IMP._list_util.del_varlist(self.particles)
3471  particles = property(__get_particles, __set_particles, __del_particles, doc="List of ##ucnames")
3472 
3473  def remove_particle(self, d):
3474  r"""remove_particle(Simulator self, Particle d)"""
3475  return _IMP_atom.Simulator_remove_particle(self, d)
3476 
3477  def _python_index_particle(self, d, start, stop):
3478  r"""_python_index_particle(Simulator self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
3479  return _IMP_atom.Simulator__python_index_particle(self, d, start, stop)
3480 
3481  def remove_particles(self, d):
3482  r"""remove_particles(Simulator self, IMP::Particles const & d)"""
3483  return _IMP_atom.Simulator_remove_particles(self, d)
3484 
3485  def set_particles(self, ps):
3486  r"""set_particles(Simulator self, IMP::Particles const & ps)"""
3487  return _IMP_atom.Simulator_set_particles(self, ps)
3488 
3489  def set_particles_order(self, objs):
3490  r"""set_particles_order(Simulator self, IMP::Particles const & objs)"""
3491  return _IMP_atom.Simulator_set_particles_order(self, objs)
3492 
3493  def add_particle(self, obj):
3494  r"""add_particle(Simulator self, Particle obj) -> unsigned int"""
3495  return _IMP_atom.Simulator_add_particle(self, obj)
3496 
3497  def add_particles(self, objs):
3498  r"""add_particles(Simulator self, IMP::Particles const & objs)"""
3499  return _IMP_atom.Simulator_add_particles(self, objs)
3500 
3501  def clear_particles(self):
3502  r"""clear_particles(Simulator self)"""
3503  return _IMP_atom.Simulator_clear_particles(self)
3504 
3505  def get_number_of_particles(self):
3506  r"""get_number_of_particles(Simulator self) -> unsigned int"""
3507  return _IMP_atom.Simulator_get_number_of_particles(self)
3508 
3509  def get_has_particles(self):
3510  r"""get_has_particles(Simulator self) -> bool"""
3511  return _IMP_atom.Simulator_get_has_particles(self)
3512 
3513  def get_particle(self, i):
3514  r"""get_particle(Simulator self, unsigned int i) -> Particle"""
3515  return _IMP_atom.Simulator_get_particle(self, i)
3516 
3517  def get_particles(self):
3518  r"""get_particles(Simulator self) -> IMP::Particles"""
3519  return _IMP_atom.Simulator_get_particles(self)
3520 
3521  def erase_particle(self, i):
3522  r"""erase_particle(Simulator self, unsigned int i)"""
3523  return _IMP_atom.Simulator_erase_particle(self, i)
3524 
3525  def reserve_particles(self, sz):
3526  r"""reserve_particles(Simulator self, unsigned int sz)"""
3527  return _IMP_atom.Simulator_reserve_particles(self, sz)
3528 
3529  def do_optimize(self, max_steps):
3530  r"""do_optimize(Simulator self, unsigned int max_steps) -> IMP::Float"""
3531  return _IMP_atom.Simulator_do_optimize(self, max_steps)
3532 
3533  def setup(self, arg0):
3534  r"""setup(Simulator self, IMP::ParticleIndexes const & arg0)"""
3535  return _IMP_atom.Simulator_setup(self, arg0)
3536 
3537  def do_step(self, sc, dt):
3538  r"""do_step(Simulator self, IMP::ParticleIndexes const & sc, double dt) -> double"""
3539  return _IMP_atom.Simulator_do_step(self, sc, dt)
3540 
3541  def get_is_simulation_particle(self, p):
3542  r"""get_is_simulation_particle(Simulator self, ParticleIndex p) -> bool"""
3543  return _IMP_atom.Simulator_get_is_simulation_particle(self, p)
3544 
3545  def do_simulate(self, time):
3546  r"""do_simulate(Simulator self, double time) -> double"""
3547  return _IMP_atom.Simulator_do_simulate(self, time)
3548 
3549  def do_simulate_wave(self, time_in_fs, max_time_step_factor=10.0, base=1.5):
3550  r"""do_simulate_wave(Simulator self, double time_in_fs, double max_time_step_factor=10.0, double base=1.5) -> double"""
3551  return _IMP_atom.Simulator_do_simulate_wave(self, time_in_fs, max_time_step_factor, base)
3552 
3553  def __str__(self):
3554  r"""__str__(Simulator self) -> std::string"""
3555  return _IMP_atom.Simulator___str__(self)
3556 
3557  def __repr__(self):
3558  r"""__repr__(Simulator self) -> std::string"""
3559  return _IMP_atom.Simulator___repr__(self)
3560 
3561  @staticmethod
3562  def get_from(o):
3563  return _object_cast_to_Simulator(o)
3564 
3565 
3566  def do_show(self, out):
3567  pass
3568 
3569  @staticmethod
3570  def get_from(o):
3571  return _object_cast_to_Simulator(o)
3572 
3573  __swig_destroy__ = _IMP_atom.delete_Simulator
3574  def __disown__(self):
3575  self.this.disown()
3576  _IMP_atom.disown_Simulator(self)
3577  return weakref.proxy(self)
3578 
3579  def do_destroy(self):
3580  r"""do_destroy(Simulator self)"""
3581  return _IMP_atom.Simulator_do_destroy(self)
3582 
3583  def handle_set_has_required_score_states(self, arg0):
3584  r"""handle_set_has_required_score_states(Simulator self, bool arg0)"""
3585  return _IMP_atom.Simulator_handle_set_has_required_score_states(self, arg0)
3586 
3587  def do_get_inputs(self):
3588  r"""do_get_inputs(Simulator self) -> IMP::ModelObjectsTemp"""
3589  return _IMP_atom.Simulator_do_get_inputs(self)
3590 
3591  def do_get_outputs(self):
3592  r"""do_get_outputs(Simulator self) -> IMP::ModelObjectsTemp"""
3593  return _IMP_atom.Simulator_do_get_outputs(self)
3594 
3595  def do_get_interactions(self):
3596  r"""do_get_interactions(Simulator self) -> IMP::ModelObjectsTemps"""
3597  return _IMP_atom.Simulator_do_get_interactions(self)
3598 
3599 # Register Simulator in _IMP_atom:
3600 _IMP_atom.Simulator_swigregister(Simulator)
3601 IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE = _IMP_atom.IMP_ATOM_DEFAULT_BD_RANDOM_POOL_SIZE
3602 
3603 class BrownianDynamics(Simulator):
3604  r"""Proxy of C++ IMP::atom::BrownianDynamics class."""
3605 
3606  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3607 
3608  def __init__(self, *args):
3609  r"""__init__(BrownianDynamics self, Model m, std::string name="BrownianDynamics%1%", double wave_factor=1.0, unsigned int random_pool_size=10000) -> BrownianDynamics"""
3610  _IMP_atom.BrownianDynamics_swiginit(self, _IMP_atom.new_BrownianDynamics(*args))
3611 
3612  def set_maximum_move(self, ms_in_A):
3613  r"""set_maximum_move(BrownianDynamics self, double ms_in_A)"""
3614  return _IMP_atom.BrownianDynamics_set_maximum_move(self, ms_in_A)
3615 
3616  def set_use_stochastic_runge_kutta(self, tf):
3617  r"""set_use_stochastic_runge_kutta(BrownianDynamics self, bool tf)"""
3618  return _IMP_atom.BrownianDynamics_set_use_stochastic_runge_kutta(self, tf)
3619 
3620  def get_version_info(self):
3621  r"""get_version_info(BrownianDynamics self) -> VersionInfo"""
3622  return _IMP_atom.BrownianDynamics_get_version_info(self)
3623  __swig_destroy__ = _IMP_atom.delete_BrownianDynamics
3624 
3625  def __str__(self):
3626  r"""__str__(BrownianDynamics self) -> std::string"""
3627  return _IMP_atom.BrownianDynamics___str__(self)
3628 
3629  def __repr__(self):
3630  r"""__repr__(BrownianDynamics self) -> std::string"""
3631  return _IMP_atom.BrownianDynamics___repr__(self)
3632 
3633  @staticmethod
3634  def get_from(o):
3635  return _object_cast_to_BrownianDynamics(o)
3636 
3637 
3638 # Register BrownianDynamics in _IMP_atom:
3639 _IMP_atom.BrownianDynamics_swigregister(BrownianDynamics)
3640 
3642  r"""get_maximum_time_step_estimate(BrownianDynamics bd) -> double"""
3643  return _IMP_atom.get_maximum_time_step_estimate(bd)
3644 
3645 def get_harmonic_sigma(D, f):
3646  r"""get_harmonic_sigma(double D, double f) -> double"""
3647  return _IMP_atom.get_harmonic_sigma(D, f)
3648 class BrownianDynamicsTAMD(BrownianDynamics):
3649  r"""Proxy of C++ IMP::atom::BrownianDynamicsTAMD class."""
3650 
3651  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3652 
3653  def __init__(self, *args):
3654  r"""__init__(BrownianDynamicsTAMD self, Model m, std::string name="BrownianDynamicsTAMD%1%", double wave_factor=1.0) -> BrownianDynamicsTAMD"""
3655  _IMP_atom.BrownianDynamicsTAMD_swiginit(self, _IMP_atom.new_BrownianDynamicsTAMD(*args))
3656 
3657  def __str__(self):
3658  r"""__str__(BrownianDynamicsTAMD self) -> std::string"""
3659  return _IMP_atom.BrownianDynamicsTAMD___str__(self)
3660 
3661  def __repr__(self):
3662  r"""__repr__(BrownianDynamicsTAMD self) -> std::string"""
3663  return _IMP_atom.BrownianDynamicsTAMD___repr__(self)
3664 
3665  @staticmethod
3666  def get_from(o):
3667  return _object_cast_to_BrownianDynamicsTAMD(o)
3668 
3669  __swig_destroy__ = _IMP_atom.delete_BrownianDynamicsTAMD
3670 
3671 # Register BrownianDynamicsTAMD in _IMP_atom:
3672 _IMP_atom.BrownianDynamicsTAMD_swigregister(BrownianDynamicsTAMD)
3673 class Diffusion(IMP.core.XYZ):
3674  r"""Proxy of C++ IMP::atom::Diffusion class."""
3675 
3676  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3677 
3678  def __init__(self, *args):
3679  r"""
3680  __init__(Diffusion self) -> Diffusion
3681  __init__(Diffusion self, Model m, ParticleIndex id) -> Diffusion
3682  __init__(Diffusion self, _ParticleAdaptor d) -> Diffusion
3683  """
3684  _IMP_atom.Diffusion_swiginit(self, _IMP_atom.new_Diffusion(*args))
3685 
3686  def show(self, *args):
3687  r"""show(Diffusion self, _ostream out=std::cout)"""
3688  return _IMP_atom.Diffusion_show(self, *args)
3689 
3690  @staticmethod
3691  def setup_particle(*args):
3692  r"""
3693  setup_particle(Model m, ParticleIndex pi, IMP::Float D) -> Diffusion
3694  setup_particle(_ParticleAdaptor pa, IMP::Float D) -> Diffusion
3695  setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float D) -> Diffusion
3696  setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float D) -> Diffusion
3697  setup_particle(Model m, ParticleIndex pi) -> Diffusion
3698  setup_particle(_ParticleAdaptor pa) -> Diffusion
3699  """
3700  return _IMP_atom.Diffusion_setup_particle(*args)
3701 
3702  @staticmethod
3703  def get_is_setup(*args):
3704  r"""
3705  get_is_setup(_ParticleAdaptor p) -> bool
3706  get_is_setup(Model m, ParticleIndex p) -> bool
3707  """
3708  return _IMP_atom.Diffusion_get_is_setup(*args)
3709 
3710  def set_diffusion_coefficient(self, d):
3711  r"""set_diffusion_coefficient(Diffusion self, double d)"""
3712  return _IMP_atom.Diffusion_set_diffusion_coefficient(self, d)
3713 
3714  def get_diffusion_coefficient(self):
3715  r"""get_diffusion_coefficient(Diffusion self) -> double"""
3716  return _IMP_atom.Diffusion_get_diffusion_coefficient(self)
3717 
3718  @staticmethod
3719  def get_diffusion_coefficient_key():
3720  r"""get_diffusion_coefficient_key() -> FloatKey"""
3721  return _IMP_atom.Diffusion_get_diffusion_coefficient_key()
3722 
3723  def add_attribute(self, *args):
3724  r"""
3725  add_attribute(Diffusion self, FloatKey k, IMP::Float v, bool opt)
3726  add_attribute(Diffusion self, FloatKey a0, IMP::Float a1)
3727  add_attribute(Diffusion self, IntKey a0, IMP::Int a1)
3728  add_attribute(Diffusion self, FloatsKey a0, IMP::Floats a1)
3729  add_attribute(Diffusion self, IntsKey a0, IMP::Ints a1)
3730  add_attribute(Diffusion self, StringKey a0, IMP::String a1)
3731  add_attribute(Diffusion self, ParticleIndexKey a0, Particle a1)
3732  add_attribute(Diffusion self, ObjectKey a0, Object a1)
3733  add_attribute(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3734  add_attribute(Diffusion self, SparseIntKey a0, IMP::Int a1)
3735  add_attribute(Diffusion self, SparseStringKey a0, IMP::String a1)
3736  add_attribute(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3737  """
3738  return _IMP_atom.Diffusion_add_attribute(self, *args)
3739 
3740  def get_value(self, *args):
3741  r"""
3742  get_value(Diffusion self, FloatKey a0) -> IMP::Float
3743  get_value(Diffusion self, IntKey a0) -> IMP::Int
3744  get_value(Diffusion self, FloatsKey a0) -> IMP::Floats
3745  get_value(Diffusion self, IntsKey a0) -> IMP::Ints
3746  get_value(Diffusion self, StringKey a0) -> IMP::String
3747  get_value(Diffusion self, ParticleIndexKey a0) -> Particle
3748  get_value(Diffusion self, ObjectKey a0) -> Object
3749  get_value(Diffusion self, SparseFloatKey a0) -> IMP::Float
3750  get_value(Diffusion self, SparseIntKey a0) -> IMP::Int
3751  get_value(Diffusion self, SparseStringKey a0) -> IMP::String
3752  get_value(Diffusion self, SparseParticleIndexKey a0) -> ParticleIndex
3753  """
3754  return _IMP_atom.Diffusion_get_value(self, *args)
3755 
3756  def set_value(self, *args):
3757  r"""
3758  set_value(Diffusion self, FloatKey a0, IMP::Float a1)
3759  set_value(Diffusion self, IntKey a0, IMP::Int a1)
3760  set_value(Diffusion self, FloatsKey a0, IMP::Floats a1)
3761  set_value(Diffusion self, IntsKey a0, IMP::Ints a1)
3762  set_value(Diffusion self, StringKey a0, IMP::String a1)
3763  set_value(Diffusion self, ParticleIndexKey a0, Particle a1)
3764  set_value(Diffusion self, ObjectKey a0, Object a1)
3765  set_value(Diffusion self, SparseFloatKey a0, IMP::Float a1)
3766  set_value(Diffusion self, SparseIntKey a0, IMP::Int a1)
3767  set_value(Diffusion self, SparseStringKey a0, IMP::String a1)
3768  set_value(Diffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3769  """
3770  return _IMP_atom.Diffusion_set_value(self, *args)
3771 
3772  def remove_attribute(self, *args):
3773  r"""
3774  remove_attribute(Diffusion self, FloatKey a0)
3775  remove_attribute(Diffusion self, IntKey a0)
3776  remove_attribute(Diffusion self, FloatsKey a0)
3777  remove_attribute(Diffusion self, IntsKey a0)
3778  remove_attribute(Diffusion self, StringKey a0)
3779  remove_attribute(Diffusion self, ParticleIndexKey a0)
3780  remove_attribute(Diffusion self, ObjectKey a0)
3781  remove_attribute(Diffusion self, SparseFloatKey a0)
3782  remove_attribute(Diffusion self, SparseIntKey a0)
3783  remove_attribute(Diffusion self, SparseStringKey a0)
3784  remove_attribute(Diffusion self, SparseParticleIndexKey a0)
3785  """
3786  return _IMP_atom.Diffusion_remove_attribute(self, *args)
3787 
3788  def has_attribute(self, *args):
3789  r"""
3790  has_attribute(Diffusion self, FloatKey a0) -> bool
3791  has_attribute(Diffusion self, IntKey a0) -> bool
3792  has_attribute(Diffusion self, FloatsKey a0) -> bool
3793  has_attribute(Diffusion self, IntsKey a0) -> bool
3794  has_attribute(Diffusion self, StringKey a0) -> bool
3795  has_attribute(Diffusion self, ParticleIndexKey a0) -> bool
3796  has_attribute(Diffusion self, ObjectKey a0) -> bool
3797  has_attribute(Diffusion self, SparseFloatKey a0) -> bool
3798  has_attribute(Diffusion self, SparseIntKey a0) -> bool
3799  has_attribute(Diffusion self, SparseStringKey a0) -> bool
3800  has_attribute(Diffusion self, SparseParticleIndexKey a0) -> bool
3801  """
3802  return _IMP_atom.Diffusion_has_attribute(self, *args)
3803 
3804  def get_derivative(self, a0):
3805  r"""get_derivative(Diffusion self, FloatKey a0) -> double"""
3806  return _IMP_atom.Diffusion_get_derivative(self, a0)
3807 
3808  def get_name(self):
3809  r"""get_name(Diffusion self) -> std::string"""
3810  return _IMP_atom.Diffusion_get_name(self)
3811 
3812  def clear_caches(self):
3813  r"""clear_caches(Diffusion self)"""
3814  return _IMP_atom.Diffusion_clear_caches(self)
3815 
3816  def set_name(self, a0):
3817  r"""set_name(Diffusion self, std::string a0)"""
3818  return _IMP_atom.Diffusion_set_name(self, a0)
3819 
3820  def set_check_level(self, a0):
3821  r"""set_check_level(Diffusion self, IMP::CheckLevel a0)"""
3822  return _IMP_atom.Diffusion_set_check_level(self, a0)
3823 
3824  def add_to_derivative(self, a0, a1, a2):
3825  r"""add_to_derivative(Diffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3826  return _IMP_atom.Diffusion_add_to_derivative(self, a0, a1, a2)
3827 
3828  def set_is_optimized(self, a0, a1):
3829  r"""set_is_optimized(Diffusion self, FloatKey a0, bool a1)"""
3830  return _IMP_atom.Diffusion_set_is_optimized(self, a0, a1)
3831 
3832  def get_is_optimized(self, a0):
3833  r"""get_is_optimized(Diffusion self, FloatKey a0) -> bool"""
3834  return _IMP_atom.Diffusion_get_is_optimized(self, a0)
3835 
3836  def get_check_level(self):
3837  r"""get_check_level(Diffusion self) -> IMP::CheckLevel"""
3838  return _IMP_atom.Diffusion_get_check_level(self)
3839 
3840  def __eq__(self, *args):
3841  r"""
3842  __eq__(Diffusion self, Diffusion o) -> bool
3843  __eq__(Diffusion self, Particle d) -> bool
3844  """
3845  return _IMP_atom.Diffusion___eq__(self, *args)
3846 
3847  def __ne__(self, *args):
3848  r"""
3849  __ne__(Diffusion self, Diffusion o) -> bool
3850  __ne__(Diffusion self, Particle d) -> bool
3851  """
3852  return _IMP_atom.Diffusion___ne__(self, *args)
3853 
3854  def __le__(self, *args):
3855  r"""
3856  __le__(Diffusion self, Diffusion o) -> bool
3857  __le__(Diffusion self, Particle d) -> bool
3858  """
3859  return _IMP_atom.Diffusion___le__(self, *args)
3860 
3861  def __lt__(self, *args):
3862  r"""
3863  __lt__(Diffusion self, Diffusion o) -> bool
3864  __lt__(Diffusion self, Particle d) -> bool
3865  """
3866  return _IMP_atom.Diffusion___lt__(self, *args)
3867 
3868  def __ge__(self, *args):
3869  r"""
3870  __ge__(Diffusion self, Diffusion o) -> bool
3871  __ge__(Diffusion self, Particle d) -> bool
3872  """
3873  return _IMP_atom.Diffusion___ge__(self, *args)
3874 
3875  def __gt__(self, *args):
3876  r"""
3877  __gt__(Diffusion self, Diffusion o) -> bool
3878  __gt__(Diffusion self, Particle d) -> bool
3879  """
3880  return _IMP_atom.Diffusion___gt__(self, *args)
3881 
3882  def __hash__(self):
3883  r"""__hash__(Diffusion self) -> std::size_t"""
3884  return _IMP_atom.Diffusion___hash__(self)
3885 
3886  def __str__(self):
3887  r"""__str__(Diffusion self) -> std::string"""
3888  return _IMP_atom.Diffusion___str__(self)
3889 
3890  def __repr__(self):
3891  r"""__repr__(Diffusion self) -> std::string"""
3892  return _IMP_atom.Diffusion___repr__(self)
3893 
3894  def _get_as_binary(self):
3895  r"""_get_as_binary(Diffusion self) -> PyObject *"""
3896  return _IMP_atom.Diffusion__get_as_binary(self)
3897 
3898  def _set_from_binary(self, p):
3899  r"""_set_from_binary(Diffusion self, PyObject * p)"""
3900  return _IMP_atom.Diffusion__set_from_binary(self, p)
3901 
3902  def __getstate__(self):
3903  p = self._get_as_binary()
3904  if len(self.__dict__) > 1:
3905  d = self.__dict__.copy()
3906  del d['this']
3907  p = (d, p)
3908  return p
3909 
3910  def __setstate__(self, p):
3911  if not hasattr(self, 'this'):
3912  self.__init__()
3913  if isinstance(p, tuple):
3914  d, p = p
3915  self.__dict__.update(d)
3916  return self._set_from_binary(p)
3917 
3918  __swig_destroy__ = _IMP_atom.delete_Diffusion
3919 
3920 # Register Diffusion in _IMP_atom:
3921 _IMP_atom.Diffusion_swigregister(Diffusion)
3922 
3923 def get_diffusion_coefficient_from_cm2_per_second(din):
3924  r"""get_diffusion_coefficient_from_cm2_per_second(double din) -> double"""
3925  return _IMP_atom.get_diffusion_coefficient_from_cm2_per_second(din)
3926 class RigidBodyDiffusion(Diffusion):
3927  r"""Proxy of C++ IMP::atom::RigidBodyDiffusion class."""
3928 
3929  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3930 
3931  def __init__(self, *args):
3932  r"""
3933  __init__(RigidBodyDiffusion self) -> RigidBodyDiffusion
3934  __init__(RigidBodyDiffusion self, Model m, ParticleIndex id) -> RigidBodyDiffusion
3935  __init__(RigidBodyDiffusion self, _ParticleAdaptor d) -> RigidBodyDiffusion
3936  """
3937  _IMP_atom.RigidBodyDiffusion_swiginit(self, _IMP_atom.new_RigidBodyDiffusion(*args))
3938 
3939  def show(self, *args):
3940  r"""show(RigidBodyDiffusion self, _ostream out=std::cout)"""
3941  return _IMP_atom.RigidBodyDiffusion_show(self, *args)
3942 
3943  @staticmethod
3944  def setup_particle(*args):
3945  r"""
3946  setup_particle(Model m, ParticleIndex pi) -> RigidBodyDiffusion
3947  setup_particle(_ParticleAdaptor pa) -> RigidBodyDiffusion
3948  """
3949  return _IMP_atom.RigidBodyDiffusion_setup_particle(*args)
3950 
3952  r"""get_rotational_diffusion_coefficient(RigidBodyDiffusion self) -> double"""
3953  return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient(self)
3954 
3955  def set_rotational_diffusion_coefficient(self, d):
3956  r"""set_rotational_diffusion_coefficient(RigidBodyDiffusion self, double d)"""
3957  return _IMP_atom.RigidBodyDiffusion_set_rotational_diffusion_coefficient(self, d)
3958 
3959  @staticmethod
3960  def get_is_setup(*args):
3961  r"""
3962  get_is_setup(_ParticleAdaptor p) -> bool
3963  get_is_setup(Model m, ParticleIndex p) -> bool
3964  """
3965  return _IMP_atom.RigidBodyDiffusion_get_is_setup(*args)
3966 
3967  @staticmethod
3968  def get_rotational_diffusion_coefficient_key():
3969  r"""get_rotational_diffusion_coefficient_key() -> FloatKey"""
3970  return _IMP_atom.RigidBodyDiffusion_get_rotational_diffusion_coefficient_key()
3971 
3972  def add_attribute(self, *args):
3973  r"""
3974  add_attribute(RigidBodyDiffusion self, FloatKey k, IMP::Float v, bool opt)
3975  add_attribute(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
3976  add_attribute(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
3977  add_attribute(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
3978  add_attribute(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
3979  add_attribute(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
3980  add_attribute(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
3981  add_attribute(RigidBodyDiffusion self, ObjectKey a0, Object a1)
3982  add_attribute(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
3983  add_attribute(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
3984  add_attribute(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
3985  add_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
3986  """
3987  return _IMP_atom.RigidBodyDiffusion_add_attribute(self, *args)
3988 
3989  def get_value(self, *args):
3990  r"""
3991  get_value(RigidBodyDiffusion self, FloatKey a0) -> IMP::Float
3992  get_value(RigidBodyDiffusion self, IntKey a0) -> IMP::Int
3993  get_value(RigidBodyDiffusion self, FloatsKey a0) -> IMP::Floats
3994  get_value(RigidBodyDiffusion self, IntsKey a0) -> IMP::Ints
3995  get_value(RigidBodyDiffusion self, StringKey a0) -> IMP::String
3996  get_value(RigidBodyDiffusion self, ParticleIndexKey a0) -> Particle
3997  get_value(RigidBodyDiffusion self, ObjectKey a0) -> Object
3998  get_value(RigidBodyDiffusion self, SparseFloatKey a0) -> IMP::Float
3999  get_value(RigidBodyDiffusion self, SparseIntKey a0) -> IMP::Int
4000  get_value(RigidBodyDiffusion self, SparseStringKey a0) -> IMP::String
4001  get_value(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> ParticleIndex
4002  """
4003  return _IMP_atom.RigidBodyDiffusion_get_value(self, *args)
4004 
4005  def set_value(self, *args):
4006  r"""
4007  set_value(RigidBodyDiffusion self, FloatKey a0, IMP::Float a1)
4008  set_value(RigidBodyDiffusion self, IntKey a0, IMP::Int a1)
4009  set_value(RigidBodyDiffusion self, FloatsKey a0, IMP::Floats a1)
4010  set_value(RigidBodyDiffusion self, IntsKey a0, IMP::Ints a1)
4011  set_value(RigidBodyDiffusion self, StringKey a0, IMP::String a1)
4012  set_value(RigidBodyDiffusion self, ParticleIndexKey a0, Particle a1)
4013  set_value(RigidBodyDiffusion self, ObjectKey a0, Object a1)
4014  set_value(RigidBodyDiffusion self, SparseFloatKey a0, IMP::Float a1)
4015  set_value(RigidBodyDiffusion self, SparseIntKey a0, IMP::Int a1)
4016  set_value(RigidBodyDiffusion self, SparseStringKey a0, IMP::String a1)
4017  set_value(RigidBodyDiffusion self, SparseParticleIndexKey a0, ParticleIndex a1)
4018  """
4019  return _IMP_atom.RigidBodyDiffusion_set_value(self, *args)
4020 
4021  def remove_attribute(self, *args):
4022  r"""
4023  remove_attribute(RigidBodyDiffusion self, FloatKey a0)
4024  remove_attribute(RigidBodyDiffusion self, IntKey a0)
4025  remove_attribute(RigidBodyDiffusion self, FloatsKey a0)
4026  remove_attribute(RigidBodyDiffusion self, IntsKey a0)
4027  remove_attribute(RigidBodyDiffusion self, StringKey a0)
4028  remove_attribute(RigidBodyDiffusion self, ParticleIndexKey a0)
4029  remove_attribute(RigidBodyDiffusion self, ObjectKey a0)
4030  remove_attribute(RigidBodyDiffusion self, SparseFloatKey a0)
4031  remove_attribute(RigidBodyDiffusion self, SparseIntKey a0)
4032  remove_attribute(RigidBodyDiffusion self, SparseStringKey a0)
4033  remove_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0)
4034  """
4035  return _IMP_atom.RigidBodyDiffusion_remove_attribute(self, *args)
4036 
4037  def has_attribute(self, *args):
4038  r"""
4039  has_attribute(RigidBodyDiffusion self, FloatKey a0) -> bool
4040  has_attribute(RigidBodyDiffusion self, IntKey a0) -> bool
4041  has_attribute(RigidBodyDiffusion self, FloatsKey a0) -> bool
4042  has_attribute(RigidBodyDiffusion self, IntsKey a0) -> bool
4043  has_attribute(RigidBodyDiffusion self, StringKey a0) -> bool
4044  has_attribute(RigidBodyDiffusion self, ParticleIndexKey a0) -> bool
4045  has_attribute(RigidBodyDiffusion self, ObjectKey a0) -> bool
4046  has_attribute(RigidBodyDiffusion self, SparseFloatKey a0) -> bool
4047  has_attribute(RigidBodyDiffusion self, SparseIntKey a0) -> bool
4048  has_attribute(RigidBodyDiffusion self, SparseStringKey a0) -> bool
4049  has_attribute(RigidBodyDiffusion self, SparseParticleIndexKey a0) -> bool
4050  """
4051  return _IMP_atom.RigidBodyDiffusion_has_attribute(self, *args)
4052 
4053  def get_derivative(self, a0):
4054  r"""get_derivative(RigidBodyDiffusion self, FloatKey a0) -> double"""
4055  return _IMP_atom.RigidBodyDiffusion_get_derivative(self, a0)
4056 
4057  def get_name(self):
4058  r"""get_name(RigidBodyDiffusion self) -> std::string"""
4059  return _IMP_atom.RigidBodyDiffusion_get_name(self)
4060 
4061  def clear_caches(self):
4062  r"""clear_caches(RigidBodyDiffusion self)"""
4063  return _IMP_atom.RigidBodyDiffusion_clear_caches(self)
4064 
4065  def set_name(self, a0):
4066  r"""set_name(RigidBodyDiffusion self, std::string a0)"""
4067  return _IMP_atom.RigidBodyDiffusion_set_name(self, a0)
4068 
4069  def set_check_level(self, a0):
4070  r"""set_check_level(RigidBodyDiffusion self, IMP::CheckLevel a0)"""
4071  return _IMP_atom.RigidBodyDiffusion_set_check_level(self, a0)
4072 
4073  def add_to_derivative(self, a0, a1, a2):
4074  r"""add_to_derivative(RigidBodyDiffusion self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4075  return _IMP_atom.RigidBodyDiffusion_add_to_derivative(self, a0, a1, a2)
4076 
4077  def set_is_optimized(self, a0, a1):
4078  r"""set_is_optimized(RigidBodyDiffusion self, FloatKey a0, bool a1)"""
4079  return _IMP_atom.RigidBodyDiffusion_set_is_optimized(self, a0, a1)
4080 
4081  def get_is_optimized(self, a0):
4082  r"""get_is_optimized(RigidBodyDiffusion self, FloatKey a0) -> bool"""
4083  return _IMP_atom.RigidBodyDiffusion_get_is_optimized(self, a0)
4084 
4085  def get_check_level(self):
4086  r"""get_check_level(RigidBodyDiffusion self) -> IMP::CheckLevel"""
4087  return _IMP_atom.RigidBodyDiffusion_get_check_level(self)
4088 
4089  def __eq__(self, *args):
4090  r"""
4091  __eq__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4092  __eq__(RigidBodyDiffusion self, Particle d) -> bool
4093  """
4094  return _IMP_atom.RigidBodyDiffusion___eq__(self, *args)
4095 
4096  def __ne__(self, *args):
4097  r"""
4098  __ne__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4099  __ne__(RigidBodyDiffusion self, Particle d) -> bool
4100  """
4101  return _IMP_atom.RigidBodyDiffusion___ne__(self, *args)
4102 
4103  def __le__(self, *args):
4104  r"""
4105  __le__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4106  __le__(RigidBodyDiffusion self, Particle d) -> bool
4107  """
4108  return _IMP_atom.RigidBodyDiffusion___le__(self, *args)
4109 
4110  def __lt__(self, *args):
4111  r"""
4112  __lt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4113  __lt__(RigidBodyDiffusion self, Particle d) -> bool
4114  """
4115  return _IMP_atom.RigidBodyDiffusion___lt__(self, *args)
4116 
4117  def __ge__(self, *args):
4118  r"""
4119  __ge__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4120  __ge__(RigidBodyDiffusion self, Particle d) -> bool
4121  """
4122  return _IMP_atom.RigidBodyDiffusion___ge__(self, *args)
4123 
4124  def __gt__(self, *args):
4125  r"""
4126  __gt__(RigidBodyDiffusion self, RigidBodyDiffusion o) -> bool
4127  __gt__(RigidBodyDiffusion self, Particle d) -> bool
4128  """
4129  return _IMP_atom.RigidBodyDiffusion___gt__(self, *args)
4130 
4131  def __hash__(self):
4132  r"""__hash__(RigidBodyDiffusion self) -> std::size_t"""
4133  return _IMP_atom.RigidBodyDiffusion___hash__(self)
4134 
4135  def __str__(self):
4136  r"""__str__(RigidBodyDiffusion self) -> std::string"""
4137  return _IMP_atom.RigidBodyDiffusion___str__(self)
4138 
4139  def __repr__(self):
4140  r"""__repr__(RigidBodyDiffusion self) -> std::string"""
4141  return _IMP_atom.RigidBodyDiffusion___repr__(self)
4142 
4143  def _get_as_binary(self):
4144  r"""_get_as_binary(RigidBodyDiffusion self) -> PyObject *"""
4145  return _IMP_atom.RigidBodyDiffusion__get_as_binary(self)
4146 
4147  def _set_from_binary(self, p):
4148  r"""_set_from_binary(RigidBodyDiffusion self, PyObject * p)"""
4149  return _IMP_atom.RigidBodyDiffusion__set_from_binary(self, p)
4150 
4151  def __getstate__(self):
4152  p = self._get_as_binary()
4153  if len(self.__dict__) > 1:
4154  d = self.__dict__.copy()
4155  del d['this']
4156  p = (d, p)
4157  return p
4158 
4159  def __setstate__(self, p):
4160  if not hasattr(self, 'this'):
4161  self.__init__()
4162  if isinstance(p, tuple):
4163  d, p = p
4164  self.__dict__.update(d)
4165  return self._set_from_binary(p)
4166 
4167  __swig_destroy__ = _IMP_atom.delete_RigidBodyDiffusion
4168 
4169 # Register RigidBodyDiffusion in _IMP_atom:
4170 _IMP_atom.RigidBodyDiffusion_swigregister(RigidBodyDiffusion)
4171 class TAMDParticle(IMP.Decorator):
4172  r"""Proxy of C++ IMP::atom::TAMDParticle class."""
4173 
4174  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4175 
4176  def __init__(self, *args):
4177  r"""
4178  __init__(TAMDParticle self) -> TAMDParticle
4179  __init__(TAMDParticle self, Model m, ParticleIndex id) -> TAMDParticle
4180  __init__(TAMDParticle self, _ParticleAdaptor d) -> TAMDParticle
4181  """
4182  _IMP_atom.TAMDParticle_swiginit(self, _IMP_atom.new_TAMDParticle(*args))
4183 
4184  def show(self, *args):
4185  r"""show(TAMDParticle self, _ostream out=std::cout)"""
4186  return _IMP_atom.TAMDParticle_show(self, *args)
4187 
4188  @staticmethod
4189  def setup_particle(*args):
4190  r"""
4191  setup_particle(Model m, ParticleIndex pi, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4192  setup_particle(_ParticleAdaptor pa, ParticleIndex pi_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4193  setup_particle(Model m, ParticleIndex pi, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4194  setup_particle(_ParticleAdaptor pa, Particle p_ref, IMP::Float tsf, IMP::Float fsf) -> TAMDParticle
4195  """
4196  return _IMP_atom.TAMDParticle_setup_particle(*args)
4197 
4198  @staticmethod
4199  def get_is_setup(*args):
4200  r"""
4201  get_is_setup(_ParticleAdaptor p) -> bool
4202  get_is_setup(Model m, ParticleIndex p) -> bool
4203  """
4204  return _IMP_atom.TAMDParticle_get_is_setup(*args)
4205 
4206  def get_reference_particle_index(self):
4207  r"""get_reference_particle_index(TAMDParticle self) -> ParticleIndex"""
4208  return _IMP_atom.TAMDParticle_get_reference_particle_index(self)
4209 
4210  def set_temperature_scale_factor(self, tsf):
4211  r"""set_temperature_scale_factor(TAMDParticle self, float tsf)"""
4212  return _IMP_atom.TAMDParticle_set_temperature_scale_factor(self, tsf)
4213 
4214  def get_temperature_scale_factor(self):
4215  r"""get_temperature_scale_factor(TAMDParticle self) -> double"""
4216  return _IMP_atom.TAMDParticle_get_temperature_scale_factor(self)
4217 
4218  def set_friction_scale_factor(self, tsf):
4219  r"""set_friction_scale_factor(TAMDParticle self, float tsf)"""
4220  return _IMP_atom.TAMDParticle_set_friction_scale_factor(self, tsf)
4221 
4222  def get_friction_scale_factor(self):
4223  r"""get_friction_scale_factor(TAMDParticle self) -> double"""
4224  return _IMP_atom.TAMDParticle_get_friction_scale_factor(self)
4225 
4226  def update_coordinates_from_ref(self):
4227  r"""update_coordinates_from_ref(TAMDParticle self)"""
4228  return _IMP_atom.TAMDParticle_update_coordinates_from_ref(self)
4229 
4230  @staticmethod
4231  def get_temperature_scale_factor_key():
4232  r"""get_temperature_scale_factor_key() -> FloatKey"""
4233  return _IMP_atom.TAMDParticle_get_temperature_scale_factor_key()
4234 
4235  @staticmethod
4236  def get_friction_scale_factor_key():
4237  r"""get_friction_scale_factor_key() -> FloatKey"""
4238  return _IMP_atom.TAMDParticle_get_friction_scale_factor_key()
4239 
4240  @staticmethod
4241  def get_reference_particle_index_key():
4242  r"""get_reference_particle_index_key() -> ParticleIndexKey"""
4243  return _IMP_atom.TAMDParticle_get_reference_particle_index_key()
4244 
4245  def add_attribute(self, *args):
4246  r"""
4247  add_attribute(TAMDParticle self, FloatKey k, IMP::Float v, bool opt)
4248  add_attribute(TAMDParticle self, FloatKey a0, IMP::Float a1)
4249  add_attribute(TAMDParticle self, IntKey a0, IMP::Int a1)
4250  add_attribute(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4251  add_attribute(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4252  add_attribute(TAMDParticle self, StringKey a0, IMP::String a1)
4253  add_attribute(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4254  add_attribute(TAMDParticle self, ObjectKey a0, Object a1)
4255  add_attribute(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4256  add_attribute(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4257  add_attribute(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4258  add_attribute(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4259  """
4260  return _IMP_atom.TAMDParticle_add_attribute(self, *args)
4261 
4262  def get_value(self, *args):
4263  r"""
4264  get_value(TAMDParticle self, FloatKey a0) -> IMP::Float
4265  get_value(TAMDParticle self, IntKey a0) -> IMP::Int
4266  get_value(TAMDParticle self, FloatsKey a0) -> IMP::Floats
4267  get_value(TAMDParticle self, IntsKey a0) -> IMP::Ints
4268  get_value(TAMDParticle self, StringKey a0) -> IMP::String
4269  get_value(TAMDParticle self, ParticleIndexKey a0) -> Particle
4270  get_value(TAMDParticle self, ObjectKey a0) -> Object
4271  get_value(TAMDParticle self, SparseFloatKey a0) -> IMP::Float
4272  get_value(TAMDParticle self, SparseIntKey a0) -> IMP::Int
4273  get_value(TAMDParticle self, SparseStringKey a0) -> IMP::String
4274  get_value(TAMDParticle self, SparseParticleIndexKey a0) -> ParticleIndex
4275  """
4276  return _IMP_atom.TAMDParticle_get_value(self, *args)
4277 
4278  def set_value(self, *args):
4279  r"""
4280  set_value(TAMDParticle self, FloatKey a0, IMP::Float a1)
4281  set_value(TAMDParticle self, IntKey a0, IMP::Int a1)
4282  set_value(TAMDParticle self, FloatsKey a0, IMP::Floats a1)
4283  set_value(TAMDParticle self, IntsKey a0, IMP::Ints a1)
4284  set_value(TAMDParticle self, StringKey a0, IMP::String a1)
4285  set_value(TAMDParticle self, ParticleIndexKey a0, Particle a1)
4286  set_value(TAMDParticle self, ObjectKey a0, Object a1)
4287  set_value(TAMDParticle self, SparseFloatKey a0, IMP::Float a1)
4288  set_value(TAMDParticle self, SparseIntKey a0, IMP::Int a1)
4289  set_value(TAMDParticle self, SparseStringKey a0, IMP::String a1)
4290  set_value(TAMDParticle self, SparseParticleIndexKey a0, ParticleIndex a1)
4291  """
4292  return _IMP_atom.TAMDParticle_set_value(self, *args)
4293 
4294  def remove_attribute(self, *args):
4295  r"""
4296  remove_attribute(TAMDParticle self, FloatKey a0)
4297  remove_attribute(TAMDParticle self, IntKey a0)
4298  remove_attribute(TAMDParticle self, FloatsKey a0)
4299  remove_attribute(TAMDParticle self, IntsKey a0)
4300  remove_attribute(TAMDParticle self, StringKey a0)
4301  remove_attribute(TAMDParticle self, ParticleIndexKey a0)
4302  remove_attribute(TAMDParticle self, ObjectKey a0)
4303  remove_attribute(TAMDParticle self, SparseFloatKey a0)
4304  remove_attribute(TAMDParticle self, SparseIntKey a0)
4305  remove_attribute(TAMDParticle self, SparseStringKey a0)
4306  remove_attribute(TAMDParticle self, SparseParticleIndexKey a0)
4307  """
4308  return _IMP_atom.TAMDParticle_remove_attribute(self, *args)
4309 
4310  def has_attribute(self, *args):
4311  r"""
4312  has_attribute(TAMDParticle self, FloatKey a0) -> bool
4313  has_attribute(TAMDParticle self, IntKey a0) -> bool
4314  has_attribute(TAMDParticle self, FloatsKey a0) -> bool
4315  has_attribute(TAMDParticle self, IntsKey a0) -> bool
4316  has_attribute(TAMDParticle self, StringKey a0) -> bool
4317  has_attribute(TAMDParticle self, ParticleIndexKey a0) -> bool
4318  has_attribute(TAMDParticle self, ObjectKey a0) -> bool
4319  has_attribute(TAMDParticle self, SparseFloatKey a0) -> bool
4320  has_attribute(TAMDParticle self, SparseIntKey a0) -> bool
4321  has_attribute(TAMDParticle self, SparseStringKey a0) -> bool
4322  has_attribute(TAMDParticle self, SparseParticleIndexKey a0) -> bool
4323  """
4324  return _IMP_atom.TAMDParticle_has_attribute(self, *args)
4325 
4326  def get_derivative(self, a0):
4327  r"""get_derivative(TAMDParticle self, FloatKey a0) -> double"""
4328  return _IMP_atom.TAMDParticle_get_derivative(self, a0)
4329 
4330  def get_name(self):
4331  r"""get_name(TAMDParticle self) -> std::string"""
4332  return _IMP_atom.TAMDParticle_get_name(self)
4333 
4334  def clear_caches(self):
4335  r"""clear_caches(TAMDParticle self)"""
4336  return _IMP_atom.TAMDParticle_clear_caches(self)
4337 
4338  def set_name(self, a0):
4339  r"""set_name(TAMDParticle self, std::string a0)"""
4340  return _IMP_atom.TAMDParticle_set_name(self, a0)
4341 
4342  def set_check_level(self, a0):
4343  r"""set_check_level(TAMDParticle self, IMP::CheckLevel a0)"""
4344  return _IMP_atom.TAMDParticle_set_check_level(self, a0)
4345 
4346  def add_to_derivative(self, a0, a1, a2):
4347  r"""add_to_derivative(TAMDParticle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4348  return _IMP_atom.TAMDParticle_add_to_derivative(self, a0, a1, a2)
4349 
4350  def set_is_optimized(self, a0, a1):
4351  r"""set_is_optimized(TAMDParticle self, FloatKey a0, bool a1)"""
4352  return _IMP_atom.TAMDParticle_set_is_optimized(self, a0, a1)
4353 
4354  def get_is_optimized(self, a0):
4355  r"""get_is_optimized(TAMDParticle self, FloatKey a0) -> bool"""
4356  return _IMP_atom.TAMDParticle_get_is_optimized(self, a0)
4357 
4358  def get_check_level(self):
4359  r"""get_check_level(TAMDParticle self) -> IMP::CheckLevel"""
4360  return _IMP_atom.TAMDParticle_get_check_level(self)
4361 
4362  def __eq__(self, *args):
4363  r"""
4364  __eq__(TAMDParticle self, TAMDParticle o) -> bool
4365  __eq__(TAMDParticle self, Particle d) -> bool
4366  """
4367  return _IMP_atom.TAMDParticle___eq__(self, *args)
4368 
4369  def __ne__(self, *args):
4370  r"""
4371  __ne__(TAMDParticle self, TAMDParticle o) -> bool
4372  __ne__(TAMDParticle self, Particle d) -> bool
4373  """
4374  return _IMP_atom.TAMDParticle___ne__(self, *args)
4375 
4376  def __le__(self, *args):
4377  r"""
4378  __le__(TAMDParticle self, TAMDParticle o) -> bool
4379  __le__(TAMDParticle self, Particle d) -> bool
4380  """
4381  return _IMP_atom.TAMDParticle___le__(self, *args)
4382 
4383  def __lt__(self, *args):
4384  r"""
4385  __lt__(TAMDParticle self, TAMDParticle o) -> bool
4386  __lt__(TAMDParticle self, Particle d) -> bool
4387  """
4388  return _IMP_atom.TAMDParticle___lt__(self, *args)
4389 
4390  def __ge__(self, *args):
4391  r"""
4392  __ge__(TAMDParticle self, TAMDParticle o) -> bool
4393  __ge__(TAMDParticle self, Particle d) -> bool
4394  """
4395  return _IMP_atom.TAMDParticle___ge__(self, *args)
4396 
4397  def __gt__(self, *args):
4398  r"""
4399  __gt__(TAMDParticle self, TAMDParticle o) -> bool
4400  __gt__(TAMDParticle self, Particle d) -> bool
4401  """
4402  return _IMP_atom.TAMDParticle___gt__(self, *args)
4403 
4404  def __hash__(self):
4405  r"""__hash__(TAMDParticle self) -> std::size_t"""
4406  return _IMP_atom.TAMDParticle___hash__(self)
4407 
4408  def __str__(self):
4409  r"""__str__(TAMDParticle self) -> std::string"""
4410  return _IMP_atom.TAMDParticle___str__(self)
4411 
4412  def __repr__(self):
4413  r"""__repr__(TAMDParticle self) -> std::string"""
4414  return _IMP_atom.TAMDParticle___repr__(self)
4415 
4416  def _get_as_binary(self):
4417  r"""_get_as_binary(TAMDParticle self) -> PyObject *"""
4418  return _IMP_atom.TAMDParticle__get_as_binary(self)
4419 
4420  def _set_from_binary(self, p):
4421  r"""_set_from_binary(TAMDParticle self, PyObject * p)"""
4422  return _IMP_atom.TAMDParticle__set_from_binary(self, p)
4423 
4424  def __getstate__(self):
4425  p = self._get_as_binary()
4426  if len(self.__dict__) > 1:
4427  d = self.__dict__.copy()
4428  del d['this']
4429  p = (d, p)
4430  return p
4431 
4432  def __setstate__(self, p):
4433  if not hasattr(self, 'this'):
4434  self.__init__()
4435  if isinstance(p, tuple):
4436  d, p = p
4437  self.__dict__.update(d)
4438  return self._set_from_binary(p)
4439 
4440  __swig_destroy__ = _IMP_atom.delete_TAMDParticle
4441 
4442 # Register TAMDParticle in _IMP_atom:
4443 _IMP_atom.TAMDParticle_swigregister(TAMDParticle)
4444 class Charged(IMP.core.XYZ):
4445  r"""Proxy of C++ IMP::atom::Charged class."""
4446 
4447  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4448 
4449  def __init__(self, *args):
4450  r"""
4451  __init__(Charged self) -> Charged
4452  __init__(Charged self, Model m, ParticleIndex id) -> Charged
4453  __init__(Charged self, _ParticleAdaptor d) -> Charged
4454  """
4455  _IMP_atom.Charged_swiginit(self, _IMP_atom.new_Charged(*args))
4456 
4457  def show(self, *args):
4458  r"""show(Charged self, _ostream out=std::cout)"""
4459  return _IMP_atom.Charged_show(self, *args)
4460 
4461  @staticmethod
4462  def setup_particle(*args):
4463  r"""
4464  setup_particle(Model m, ParticleIndex pi, IMP::Float charge) -> Charged
4465  setup_particle(_ParticleAdaptor pa, IMP::Float charge) -> Charged
4466  setup_particle(Model m, ParticleIndex pi, Vector3D v, IMP::Float charge) -> Charged
4467  setup_particle(_ParticleAdaptor pa, Vector3D v, IMP::Float charge) -> Charged
4468  """
4469  return _IMP_atom.Charged_setup_particle(*args)
4470 
4471  def get_charge(self):
4472  r"""get_charge(Charged self) -> IMP::Float"""
4473  return _IMP_atom.Charged_get_charge(self)
4474 
4475  def set_charge(self, t):
4476  r"""set_charge(Charged self, IMP::Float t)"""
4477  return _IMP_atom.Charged_set_charge(self, t)
4478 
4479  @staticmethod
4480  def get_is_setup(*args):
4481  r"""
4482  get_is_setup(_ParticleAdaptor p) -> bool
4483  get_is_setup(Model m, ParticleIndex pi) -> bool
4484  """
4485  return _IMP_atom.Charged_get_is_setup(*args)
4486 
4487  @staticmethod
4488  def get_charge_key():
4489  r"""get_charge_key() -> FloatKey"""
4490  return _IMP_atom.Charged_get_charge_key()
4491 
4492  def add_attribute(self, *args):
4493  r"""
4494  add_attribute(Charged self, FloatKey k, IMP::Float v, bool opt)
4495  add_attribute(Charged self, FloatKey a0, IMP::Float a1)
4496  add_attribute(Charged self, IntKey a0, IMP::Int a1)
4497  add_attribute(Charged self, FloatsKey a0, IMP::Floats a1)
4498  add_attribute(Charged self, IntsKey a0, IMP::Ints a1)
4499  add_attribute(Charged self, StringKey a0, IMP::String a1)
4500  add_attribute(Charged self, ParticleIndexKey a0, Particle a1)
4501  add_attribute(Charged self, ObjectKey a0, Object a1)
4502  add_attribute(Charged self, SparseFloatKey a0, IMP::Float a1)
4503  add_attribute(Charged self, SparseIntKey a0, IMP::Int a1)
4504  add_attribute(Charged self, SparseStringKey a0, IMP::String a1)
4505  add_attribute(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4506  """
4507  return _IMP_atom.Charged_add_attribute(self, *args)
4508 
4509  def get_value(self, *args):
4510  r"""
4511  get_value(Charged self, FloatKey a0) -> IMP::Float
4512  get_value(Charged self, IntKey a0) -> IMP::Int
4513  get_value(Charged self, FloatsKey a0) -> IMP::Floats
4514  get_value(Charged self, IntsKey a0) -> IMP::Ints
4515  get_value(Charged self, StringKey a0) -> IMP::String
4516  get_value(Charged self, ParticleIndexKey a0) -> Particle
4517  get_value(Charged self, ObjectKey a0) -> Object
4518  get_value(Charged self, SparseFloatKey a0) -> IMP::Float
4519  get_value(Charged self, SparseIntKey a0) -> IMP::Int
4520  get_value(Charged self, SparseStringKey a0) -> IMP::String
4521  get_value(Charged self, SparseParticleIndexKey a0) -> ParticleIndex
4522  """
4523  return _IMP_atom.Charged_get_value(self, *args)
4524 
4525  def set_value(self, *args):
4526  r"""
4527  set_value(Charged self, FloatKey a0, IMP::Float a1)
4528  set_value(Charged self, IntKey a0, IMP::Int a1)
4529  set_value(Charged self, FloatsKey a0, IMP::Floats a1)
4530  set_value(Charged self, IntsKey a0, IMP::Ints a1)
4531  set_value(Charged self, StringKey a0, IMP::String a1)
4532  set_value(Charged self, ParticleIndexKey a0, Particle a1)
4533  set_value(Charged self, ObjectKey a0, Object a1)
4534  set_value(Charged self, SparseFloatKey a0, IMP::Float a1)
4535  set_value(Charged self, SparseIntKey a0, IMP::Int a1)
4536  set_value(Charged self, SparseStringKey a0, IMP::String a1)
4537  set_value(Charged self, SparseParticleIndexKey a0, ParticleIndex a1)
4538  """
4539  return _IMP_atom.Charged_set_value(self, *args)
4540 
4541  def remove_attribute(self, *args):
4542  r"""
4543  remove_attribute(Charged self, FloatKey a0)
4544  remove_attribute(Charged self, IntKey a0)
4545  remove_attribute(Charged self, FloatsKey a0)
4546  remove_attribute(Charged self, IntsKey a0)
4547  remove_attribute(Charged self, StringKey a0)
4548  remove_attribute(Charged self, ParticleIndexKey a0)
4549  remove_attribute(Charged self, ObjectKey a0)
4550  remove_attribute(Charged self, SparseFloatKey a0)
4551  remove_attribute(Charged self, SparseIntKey a0)
4552  remove_attribute(Charged self, SparseStringKey a0)
4553  remove_attribute(Charged self, SparseParticleIndexKey a0)
4554  """
4555  return _IMP_atom.Charged_remove_attribute(self, *args)
4556 
4557  def has_attribute(self, *args):
4558  r"""
4559  has_attribute(Charged self, FloatKey a0) -> bool
4560  has_attribute(Charged self, IntKey a0) -> bool
4561  has_attribute(Charged self, FloatsKey a0) -> bool
4562  has_attribute(Charged self, IntsKey a0) -> bool
4563  has_attribute(Charged self, StringKey a0) -> bool
4564  has_attribute(Charged self, ParticleIndexKey a0) -> bool
4565  has_attribute(Charged self, ObjectKey a0) -> bool
4566  has_attribute(Charged self, SparseFloatKey a0) -> bool
4567  has_attribute(Charged self, SparseIntKey a0) -> bool
4568  has_attribute(Charged self, SparseStringKey a0) -> bool
4569  has_attribute(Charged self, SparseParticleIndexKey a0) -> bool
4570  """
4571  return _IMP_atom.Charged_has_attribute(self, *args)
4572 
4573  def get_derivative(self, a0):
4574  r"""get_derivative(Charged self, FloatKey a0) -> double"""
4575  return _IMP_atom.Charged_get_derivative(self, a0)
4576 
4577  def get_name(self):
4578  r"""get_name(Charged self) -> std::string"""
4579  return _IMP_atom.Charged_get_name(self)
4580 
4581  def clear_caches(self):
4582  r"""clear_caches(Charged self)"""
4583  return _IMP_atom.Charged_clear_caches(self)
4584 
4585  def set_name(self, a0):
4586  r"""set_name(Charged self, std::string a0)"""
4587  return _IMP_atom.Charged_set_name(self, a0)
4588 
4589  def set_check_level(self, a0):
4590  r"""set_check_level(Charged self, IMP::CheckLevel a0)"""
4591  return _IMP_atom.Charged_set_check_level(self, a0)
4592 
4593  def add_to_derivative(self, a0, a1, a2):
4594  r"""add_to_derivative(Charged self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4595  return _IMP_atom.Charged_add_to_derivative(self, a0, a1, a2)
4596 
4597  def set_is_optimized(self, a0, a1):
4598  r"""set_is_optimized(Charged self, FloatKey a0, bool a1)"""
4599  return _IMP_atom.Charged_set_is_optimized(self, a0, a1)
4600 
4601  def get_is_optimized(self, a0):
4602  r"""get_is_optimized(Charged self, FloatKey a0) -> bool"""
4603  return _IMP_atom.Charged_get_is_optimized(self, a0)
4604 
4605  def get_check_level(self):
4606  r"""get_check_level(Charged self) -> IMP::CheckLevel"""
4607  return _IMP_atom.Charged_get_check_level(self)
4608 
4609  def __eq__(self, *args):
4610  r"""
4611  __eq__(Charged self, Charged o) -> bool
4612  __eq__(Charged self, Particle d) -> bool
4613  """
4614  return _IMP_atom.Charged___eq__(self, *args)
4615 
4616  def __ne__(self, *args):
4617  r"""
4618  __ne__(Charged self, Charged o) -> bool
4619  __ne__(Charged self, Particle d) -> bool
4620  """
4621  return _IMP_atom.Charged___ne__(self, *args)
4622 
4623  def __le__(self, *args):
4624  r"""
4625  __le__(Charged self, Charged o) -> bool
4626  __le__(Charged self, Particle d) -> bool
4627  """
4628  return _IMP_atom.Charged___le__(self, *args)
4629 
4630  def __lt__(self, *args):
4631  r"""
4632  __lt__(Charged self, Charged o) -> bool
4633  __lt__(Charged self, Particle d) -> bool
4634  """
4635  return _IMP_atom.Charged___lt__(self, *args)
4636 
4637  def __ge__(self, *args):
4638  r"""
4639  __ge__(Charged self, Charged o) -> bool
4640  __ge__(Charged self, Particle d) -> bool
4641  """
4642  return _IMP_atom.Charged___ge__(self, *args)
4643 
4644  def __gt__(self, *args):
4645  r"""
4646  __gt__(Charged self, Charged o) -> bool
4647  __gt__(Charged self, Particle d) -> bool
4648  """
4649  return _IMP_atom.Charged___gt__(self, *args)
4650 
4651  def __hash__(self):
4652  r"""__hash__(Charged self) -> std::size_t"""
4653  return _IMP_atom.Charged___hash__(self)
4654 
4655  def __str__(self):
4656  r"""__str__(Charged self) -> std::string"""
4657  return _IMP_atom.Charged___str__(self)
4658 
4659  def __repr__(self):
4660  r"""__repr__(Charged self) -> std::string"""
4661  return _IMP_atom.Charged___repr__(self)
4662 
4663  def _get_as_binary(self):
4664  r"""_get_as_binary(Charged self) -> PyObject *"""
4665  return _IMP_atom.Charged__get_as_binary(self)
4666 
4667  def _set_from_binary(self, p):
4668  r"""_set_from_binary(Charged self, PyObject * p)"""
4669  return _IMP_atom.Charged__set_from_binary(self, p)
4670 
4671  def __getstate__(self):
4672  p = self._get_as_binary()
4673  if len(self.__dict__) > 1:
4674  d = self.__dict__.copy()
4675  del d['this']
4676  p = (d, p)
4677  return p
4678 
4679  def __setstate__(self, p):
4680  if not hasattr(self, 'this'):
4681  self.__init__()
4682  if isinstance(p, tuple):
4683  d, p = p
4684  self.__dict__.update(d)
4685  return self._set_from_binary(p)
4686 
4687  __swig_destroy__ = _IMP_atom.delete_Charged
4688 
4689 # Register Charged in _IMP_atom:
4690 _IMP_atom.Charged_swigregister(Charged)
4691 class CoulombPairScore(IMP.PairScore):
4692  r"""Proxy of C++ IMP::atom::CoulombPairScore class."""
4693 
4694  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4695 
4696  def __init__(self, f):
4697  r"""__init__(CoulombPairScore self, SmoothingFunction f) -> CoulombPairScore"""
4698  _IMP_atom.CoulombPairScore_swiginit(self, _IMP_atom.new_CoulombPairScore(f))
4699 
4700  def set_relative_dielectric(self, relative_dielectric):
4701  r"""set_relative_dielectric(CoulombPairScore self, double relative_dielectric)"""
4702  return _IMP_atom.CoulombPairScore_set_relative_dielectric(self, relative_dielectric)
4703 
4704  def get_relative_dielectric(self):
4705  r"""get_relative_dielectric(CoulombPairScore self) -> double"""
4706  return _IMP_atom.CoulombPairScore_get_relative_dielectric(self)
4707 
4708  def do_get_inputs(self, m, pis):
4709  r"""do_get_inputs(CoulombPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4710  return _IMP_atom.CoulombPairScore_do_get_inputs(self, m, pis)
4711 
4712  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4713  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"""
4714  return _IMP_atom.CoulombPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4715 
4716  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4717  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"""
4718  return _IMP_atom.CoulombPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4719 
4720  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4721  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"""
4722  return _IMP_atom.CoulombPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4723 
4724  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4725  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"""
4726  return _IMP_atom.CoulombPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4727 
4728  def get_version_info(self):
4729  r"""get_version_info(CoulombPairScore self) -> VersionInfo"""
4730  return _IMP_atom.CoulombPairScore_get_version_info(self)
4731  __swig_destroy__ = _IMP_atom.delete_CoulombPairScore
4732 
4733  def __str__(self):
4734  r"""__str__(CoulombPairScore self) -> std::string"""
4735  return _IMP_atom.CoulombPairScore___str__(self)
4736 
4737  def __repr__(self):
4738  r"""__repr__(CoulombPairScore self) -> std::string"""
4739  return _IMP_atom.CoulombPairScore___repr__(self)
4740 
4741  @staticmethod
4742  def get_from(o):
4743  return _object_cast_to_CoulombPairScore(o)
4744 
4745 
4746 # Register CoulombPairScore in _IMP_atom:
4747 _IMP_atom.CoulombPairScore_swigregister(CoulombPairScore)
4748 class Domain(Hierarchy):
4749  r"""Proxy of C++ IMP::atom::Domain class."""
4750 
4751  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4752 
4753  def set_index_range(self, ir):
4754  r"""set_index_range(Domain self, IMP::IntRange ir)"""
4755  return _IMP_atom.Domain_set_index_range(self, ir)
4756 
4757  def get_index_range(self):
4758  r"""get_index_range(Domain self) -> IMP::IntRange"""
4759  return _IMP_atom.Domain_get_index_range(self)
4760 
4761  def __init__(self, *args):
4762  r"""
4763  __init__(Domain self) -> Domain
4764  __init__(Domain self, Model m, ParticleIndex id) -> Domain
4765  __init__(Domain self, _ParticleAdaptor d) -> Domain
4766  """
4767  _IMP_atom.Domain_swiginit(self, _IMP_atom.new_Domain(*args))
4768 
4769  @staticmethod
4770  def get_is_setup(*args):
4771  r"""
4772  get_is_setup(Model m, ParticleIndex pi) -> bool
4773  get_is_setup(_ParticleAdaptor p) -> bool
4774  """
4775  return _IMP_atom.Domain_get_is_setup(*args)
4776 
4777  def show(self, *args):
4778  r"""show(Domain self, _ostream out=std::cout)"""
4779  return _IMP_atom.Domain_show(self, *args)
4780 
4781  @staticmethod
4782  def setup_particle(*args):
4783  r"""
4784  setup_particle(Model m, ParticleIndex pi, Domain other) -> Domain
4785  setup_particle(_ParticleAdaptor pa, Domain other) -> Domain
4786  setup_particle(Model m, ParticleIndex pi, IMP::IntRange residues) -> Domain
4787  setup_particle(_ParticleAdaptor pa, IMP::IntRange residues) -> Domain
4788  """
4789  return _IMP_atom.Domain_setup_particle(*args)
4790 
4791  def add_attribute(self, *args):
4792  r"""
4793  add_attribute(Domain self, FloatKey k, IMP::Float v, bool opt)
4794  add_attribute(Domain self, FloatKey a0, IMP::Float a1)
4795  add_attribute(Domain self, IntKey a0, IMP::Int a1)
4796  add_attribute(Domain self, FloatsKey a0, IMP::Floats a1)
4797  add_attribute(Domain self, IntsKey a0, IMP::Ints a1)
4798  add_attribute(Domain self, StringKey a0, IMP::String a1)
4799  add_attribute(Domain self, ParticleIndexKey a0, Particle a1)
4800  add_attribute(Domain self, ObjectKey a0, Object a1)
4801  add_attribute(Domain self, SparseFloatKey a0, IMP::Float a1)
4802  add_attribute(Domain self, SparseIntKey a0, IMP::Int a1)
4803  add_attribute(Domain self, SparseStringKey a0, IMP::String a1)
4804  add_attribute(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4805  """
4806  return _IMP_atom.Domain_add_attribute(self, *args)
4807 
4808  def get_value(self, *args):
4809  r"""
4810  get_value(Domain self, FloatKey a0) -> IMP::Float
4811  get_value(Domain self, IntKey a0) -> IMP::Int
4812  get_value(Domain self, FloatsKey a0) -> IMP::Floats
4813  get_value(Domain self, IntsKey a0) -> IMP::Ints
4814  get_value(Domain self, StringKey a0) -> IMP::String
4815  get_value(Domain self, ParticleIndexKey a0) -> Particle
4816  get_value(Domain self, ObjectKey a0) -> Object
4817  get_value(Domain self, SparseFloatKey a0) -> IMP::Float
4818  get_value(Domain self, SparseIntKey a0) -> IMP::Int
4819  get_value(Domain self, SparseStringKey a0) -> IMP::String
4820  get_value(Domain self, SparseParticleIndexKey a0) -> ParticleIndex
4821  """
4822  return _IMP_atom.Domain_get_value(self, *args)
4823 
4824  def set_value(self, *args):
4825  r"""
4826  set_value(Domain self, FloatKey a0, IMP::Float a1)
4827  set_value(Domain self, IntKey a0, IMP::Int a1)
4828  set_value(Domain self, FloatsKey a0, IMP::Floats a1)
4829  set_value(Domain self, IntsKey a0, IMP::Ints a1)
4830  set_value(Domain self, StringKey a0, IMP::String a1)
4831  set_value(Domain self, ParticleIndexKey a0, Particle a1)
4832  set_value(Domain self, ObjectKey a0, Object a1)
4833  set_value(Domain self, SparseFloatKey a0, IMP::Float a1)
4834  set_value(Domain self, SparseIntKey a0, IMP::Int a1)
4835  set_value(Domain self, SparseStringKey a0, IMP::String a1)
4836  set_value(Domain self, SparseParticleIndexKey a0, ParticleIndex a1)
4837  """
4838  return _IMP_atom.Domain_set_value(self, *args)
4839 
4840  def remove_attribute(self, *args):
4841  r"""
4842  remove_attribute(Domain self, FloatKey a0)
4843  remove_attribute(Domain self, IntKey a0)
4844  remove_attribute(Domain self, FloatsKey a0)
4845  remove_attribute(Domain self, IntsKey a0)
4846  remove_attribute(Domain self, StringKey a0)
4847  remove_attribute(Domain self, ParticleIndexKey a0)
4848  remove_attribute(Domain self, ObjectKey a0)
4849  remove_attribute(Domain self, SparseFloatKey a0)
4850  remove_attribute(Domain self, SparseIntKey a0)
4851  remove_attribute(Domain self, SparseStringKey a0)
4852  remove_attribute(Domain self, SparseParticleIndexKey a0)
4853  """
4854  return _IMP_atom.Domain_remove_attribute(self, *args)
4855 
4856  def has_attribute(self, *args):
4857  r"""
4858  has_attribute(Domain self, FloatKey a0) -> bool
4859  has_attribute(Domain self, IntKey a0) -> bool
4860  has_attribute(Domain self, FloatsKey a0) -> bool
4861  has_attribute(Domain self, IntsKey a0) -> bool
4862  has_attribute(Domain self, StringKey a0) -> bool
4863  has_attribute(Domain self, ParticleIndexKey a0) -> bool
4864  has_attribute(Domain self, ObjectKey a0) -> bool
4865  has_attribute(Domain self, SparseFloatKey a0) -> bool
4866  has_attribute(Domain self, SparseIntKey a0) -> bool
4867  has_attribute(Domain self, SparseStringKey a0) -> bool
4868  has_attribute(Domain self, SparseParticleIndexKey a0) -> bool
4869  """
4870  return _IMP_atom.Domain_has_attribute(self, *args)
4871 
4872  def get_derivative(self, a0):
4873  r"""get_derivative(Domain self, FloatKey a0) -> double"""
4874  return _IMP_atom.Domain_get_derivative(self, a0)
4875 
4876  def get_name(self):
4877  r"""get_name(Domain self) -> std::string"""
4878  return _IMP_atom.Domain_get_name(self)
4879 
4880  def clear_caches(self):
4881  r"""clear_caches(Domain self)"""
4882  return _IMP_atom.Domain_clear_caches(self)
4883 
4884  def set_name(self, a0):
4885  r"""set_name(Domain self, std::string a0)"""
4886  return _IMP_atom.Domain_set_name(self, a0)
4887 
4888  def set_check_level(self, a0):
4889  r"""set_check_level(Domain self, IMP::CheckLevel a0)"""
4890  return _IMP_atom.Domain_set_check_level(self, a0)
4891 
4892  def add_to_derivative(self, a0, a1, a2):
4893  r"""add_to_derivative(Domain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4894  return _IMP_atom.Domain_add_to_derivative(self, a0, a1, a2)
4895 
4896  def set_is_optimized(self, a0, a1):
4897  r"""set_is_optimized(Domain self, FloatKey a0, bool a1)"""
4898  return _IMP_atom.Domain_set_is_optimized(self, a0, a1)
4899 
4900  def get_is_optimized(self, a0):
4901  r"""get_is_optimized(Domain self, FloatKey a0) -> bool"""
4902  return _IMP_atom.Domain_get_is_optimized(self, a0)
4903 
4904  def get_check_level(self):
4905  r"""get_check_level(Domain self) -> IMP::CheckLevel"""
4906  return _IMP_atom.Domain_get_check_level(self)
4907 
4908  def __eq__(self, *args):
4909  r"""
4910  __eq__(Domain self, Domain o) -> bool
4911  __eq__(Domain self, Particle d) -> bool
4912  """
4913  return _IMP_atom.Domain___eq__(self, *args)
4914 
4915  def __ne__(self, *args):
4916  r"""
4917  __ne__(Domain self, Domain o) -> bool
4918  __ne__(Domain self, Particle d) -> bool
4919  """
4920  return _IMP_atom.Domain___ne__(self, *args)
4921 
4922  def __le__(self, *args):
4923  r"""
4924  __le__(Domain self, Domain o) -> bool
4925  __le__(Domain self, Particle d) -> bool
4926  """
4927  return _IMP_atom.Domain___le__(self, *args)
4928 
4929  def __lt__(self, *args):
4930  r"""
4931  __lt__(Domain self, Domain o) -> bool
4932  __lt__(Domain self, Particle d) -> bool
4933  """
4934  return _IMP_atom.Domain___lt__(self, *args)
4935 
4936  def __ge__(self, *args):
4937  r"""
4938  __ge__(Domain self, Domain o) -> bool
4939  __ge__(Domain self, Particle d) -> bool
4940  """
4941  return _IMP_atom.Domain___ge__(self, *args)
4942 
4943  def __gt__(self, *args):
4944  r"""
4945  __gt__(Domain self, Domain o) -> bool
4946  __gt__(Domain self, Particle d) -> bool
4947  """
4948  return _IMP_atom.Domain___gt__(self, *args)
4949 
4950  def __hash__(self):
4951  r"""__hash__(Domain self) -> std::size_t"""
4952  return _IMP_atom.Domain___hash__(self)
4953 
4954  def __str__(self):
4955  r"""__str__(Domain self) -> std::string"""
4956  return _IMP_atom.Domain___str__(self)
4957 
4958  def __repr__(self):
4959  r"""__repr__(Domain self) -> std::string"""
4960  return _IMP_atom.Domain___repr__(self)
4961 
4962  def _get_as_binary(self):
4963  r"""_get_as_binary(Domain self) -> PyObject *"""
4964  return _IMP_atom.Domain__get_as_binary(self)
4965 
4966  def _set_from_binary(self, p):
4967  r"""_set_from_binary(Domain self, PyObject * p)"""
4968  return _IMP_atom.Domain__set_from_binary(self, p)
4969 
4970  def __getstate__(self):
4971  p = self._get_as_binary()
4972  if len(self.__dict__) > 1:
4973  d = self.__dict__.copy()
4974  del d['this']
4975  p = (d, p)
4976  return p
4977 
4978  def __setstate__(self, p):
4979  if not hasattr(self, 'this'):
4980  self.__init__()
4981  if isinstance(p, tuple):
4982  d, p = p
4983  self.__dict__.update(d)
4984  return self._set_from_binary(p)
4985 
4986  __swig_destroy__ = _IMP_atom.delete_Domain
4987 
4988 # Register Domain in _IMP_atom:
4989 _IMP_atom.Domain_swigregister(Domain)
4990 class LennardJonesType(IMP.Object):
4991  r"""Proxy of C++ IMP::atom::LennardJonesType class."""
4992 
4993  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4994 
4995  def __init__(self, *args):
4996  r"""__init__(LennardJonesType self, double well_depth, double radius, std::string name="LennardJonesType%1%") -> LennardJonesType"""
4997  _IMP_atom.LennardJonesType_swiginit(self, _IMP_atom.new_LennardJonesType(*args))
4998 
4999  def get_well_depth(self):
5000  r"""get_well_depth(LennardJonesType self) -> double"""
5001  return _IMP_atom.LennardJonesType_get_well_depth(self)
5002 
5003  def set_well_depth(self, d):
5004  r"""set_well_depth(LennardJonesType self, double d)"""
5005  return _IMP_atom.LennardJonesType_set_well_depth(self, d)
5006 
5007  def get_radius(self):
5008  r"""get_radius(LennardJonesType self) -> double"""
5009  return _IMP_atom.LennardJonesType_get_radius(self)
5010 
5011  def set_radius(self, r):
5012  r"""set_radius(LennardJonesType self, double r)"""
5013  return _IMP_atom.LennardJonesType_set_radius(self, r)
5014 
5015  def get_index(self):
5016  r"""get_index(LennardJonesType self) -> int"""
5017  return _IMP_atom.LennardJonesType_get_index(self)
5018 
5019  def get_version_info(self):
5020  r"""get_version_info(LennardJonesType self) -> VersionInfo"""
5021  return _IMP_atom.LennardJonesType_get_version_info(self)
5022  __swig_destroy__ = _IMP_atom.delete_LennardJonesType
5023 
5024  def __str__(self):
5025  r"""__str__(LennardJonesType self) -> std::string"""
5026  return _IMP_atom.LennardJonesType___str__(self)
5027 
5028  def __repr__(self):
5029  r"""__repr__(LennardJonesType self) -> std::string"""
5030  return _IMP_atom.LennardJonesType___repr__(self)
5031 
5032  @staticmethod
5033  def get_from(o):
5034  return _object_cast_to_LennardJonesType(o)
5035 
5036 
5037 # Register LennardJonesType in _IMP_atom:
5038 _IMP_atom.LennardJonesType_swigregister(LennardJonesType)
5039 class LennardJonesTyped(IMP.core.XYZ):
5040  r"""Proxy of C++ IMP::atom::LennardJonesTyped class."""
5041 
5042  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5043 
5044  def __init__(self, *args):
5045  r"""
5046  __init__(LennardJonesTyped self) -> LennardJonesTyped
5047  __init__(LennardJonesTyped self, Model m, ParticleIndex id) -> LennardJonesTyped
5048  __init__(LennardJonesTyped self, _ParticleAdaptor d) -> LennardJonesTyped
5049  """
5050  _IMP_atom.LennardJonesTyped_swiginit(self, _IMP_atom.new_LennardJonesTyped(*args))
5051 
5052  def show(self, *args):
5053  r"""show(LennardJonesTyped self, _ostream out=std::cout)"""
5054  return _IMP_atom.LennardJonesTyped_show(self, *args)
5055 
5056  @staticmethod
5057  def setup_particle(*args):
5058  r"""
5059  setup_particle(Model m, ParticleIndex pi, LennardJonesType type) -> LennardJonesTyped
5060  setup_particle(_ParticleAdaptor pa, LennardJonesType type) -> LennardJonesTyped
5061  """
5062  return _IMP_atom.LennardJonesTyped_setup_particle(*args)
5063 
5064  @staticmethod
5065  def get_is_setup(*args):
5066  r"""
5067  get_is_setup(_ParticleAdaptor p) -> bool
5068  get_is_setup(Model m, ParticleIndex pi) -> bool
5069  """
5070  return _IMP_atom.LennardJonesTyped_get_is_setup(*args)
5071 
5072  def set_type(self, type):
5073  r"""set_type(LennardJonesTyped self, LennardJonesType type)"""
5074  return _IMP_atom.LennardJonesTyped_set_type(self, type)
5075 
5076  def get_type(self):
5077  r"""get_type(LennardJonesTyped self) -> LennardJonesType"""
5078  return _IMP_atom.LennardJonesTyped_get_type(self)
5079 
5080  def get_index(self):
5081  r"""get_index(LennardJonesTyped self) -> int"""
5082  return _IMP_atom.LennardJonesTyped_get_index(self)
5083 
5084  def get_well_depth(self):
5085  r"""get_well_depth(LennardJonesTyped self) -> double"""
5086  return _IMP_atom.LennardJonesTyped_get_well_depth(self)
5087 
5088  def get_radius(self):
5089  r"""get_radius(LennardJonesTyped self) -> double"""
5090  return _IMP_atom.LennardJonesTyped_get_radius(self)
5091 
5092  @staticmethod
5093  def get_type_key():
5094  r"""get_type_key() -> IntKey"""
5095  return _IMP_atom.LennardJonesTyped_get_type_key()
5096 
5097  def add_attribute(self, *args):
5098  r"""
5099  add_attribute(LennardJonesTyped self, FloatKey k, IMP::Float v, bool opt)
5100  add_attribute(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5101  add_attribute(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5102  add_attribute(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5103  add_attribute(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5104  add_attribute(LennardJonesTyped self, StringKey a0, IMP::String a1)
5105  add_attribute(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5106  add_attribute(LennardJonesTyped self, ObjectKey a0, Object a1)
5107  add_attribute(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5108  add_attribute(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5109  add_attribute(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5110  add_attribute(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5111  """
5112  return _IMP_atom.LennardJonesTyped_add_attribute(self, *args)
5113 
5114  def get_value(self, *args):
5115  r"""
5116  get_value(LennardJonesTyped self, FloatKey a0) -> IMP::Float
5117  get_value(LennardJonesTyped self, IntKey a0) -> IMP::Int
5118  get_value(LennardJonesTyped self, FloatsKey a0) -> IMP::Floats
5119  get_value(LennardJonesTyped self, IntsKey a0) -> IMP::Ints
5120  get_value(LennardJonesTyped self, StringKey a0) -> IMP::String
5121  get_value(LennardJonesTyped self, ParticleIndexKey a0) -> Particle
5122  get_value(LennardJonesTyped self, ObjectKey a0) -> Object
5123  get_value(LennardJonesTyped self, SparseFloatKey a0) -> IMP::Float
5124  get_value(LennardJonesTyped self, SparseIntKey a0) -> IMP::Int
5125  get_value(LennardJonesTyped self, SparseStringKey a0) -> IMP::String
5126  get_value(LennardJonesTyped self, SparseParticleIndexKey a0) -> ParticleIndex
5127  """
5128  return _IMP_atom.LennardJonesTyped_get_value(self, *args)
5129 
5130  def set_value(self, *args):
5131  r"""
5132  set_value(LennardJonesTyped self, FloatKey a0, IMP::Float a1)
5133  set_value(LennardJonesTyped self, IntKey a0, IMP::Int a1)
5134  set_value(LennardJonesTyped self, FloatsKey a0, IMP::Floats a1)
5135  set_value(LennardJonesTyped self, IntsKey a0, IMP::Ints a1)
5136  set_value(LennardJonesTyped self, StringKey a0, IMP::String a1)
5137  set_value(LennardJonesTyped self, ParticleIndexKey a0, Particle a1)
5138  set_value(LennardJonesTyped self, ObjectKey a0, Object a1)
5139  set_value(LennardJonesTyped self, SparseFloatKey a0, IMP::Float a1)
5140  set_value(LennardJonesTyped self, SparseIntKey a0, IMP::Int a1)
5141  set_value(LennardJonesTyped self, SparseStringKey a0, IMP::String a1)
5142  set_value(LennardJonesTyped self, SparseParticleIndexKey a0, ParticleIndex a1)
5143  """
5144  return _IMP_atom.LennardJonesTyped_set_value(self, *args)
5145 
5146  def remove_attribute(self, *args):
5147  r"""
5148  remove_attribute(LennardJonesTyped self, FloatKey a0)
5149  remove_attribute(LennardJonesTyped self, IntKey a0)
5150  remove_attribute(LennardJonesTyped self, FloatsKey a0)
5151  remove_attribute(LennardJonesTyped self, IntsKey a0)
5152  remove_attribute(LennardJonesTyped self, StringKey a0)
5153  remove_attribute(LennardJonesTyped self, ParticleIndexKey a0)
5154  remove_attribute(LennardJonesTyped self, ObjectKey a0)
5155  remove_attribute(LennardJonesTyped self, SparseFloatKey a0)
5156  remove_attribute(LennardJonesTyped self, SparseIntKey a0)
5157  remove_attribute(LennardJonesTyped self, SparseStringKey a0)
5158  remove_attribute(LennardJonesTyped self, SparseParticleIndexKey a0)
5159  """
5160  return _IMP_atom.LennardJonesTyped_remove_attribute(self, *args)
5161 
5162  def has_attribute(self, *args):
5163  r"""
5164  has_attribute(LennardJonesTyped self, FloatKey a0) -> bool
5165  has_attribute(LennardJonesTyped self, IntKey a0) -> bool
5166  has_attribute(LennardJonesTyped self, FloatsKey a0) -> bool
5167  has_attribute(LennardJonesTyped self, IntsKey a0) -> bool
5168  has_attribute(LennardJonesTyped self, StringKey a0) -> bool
5169  has_attribute(LennardJonesTyped self, ParticleIndexKey a0) -> bool
5170  has_attribute(LennardJonesTyped self, ObjectKey a0) -> bool
5171  has_attribute(LennardJonesTyped self, SparseFloatKey a0) -> bool
5172  has_attribute(LennardJonesTyped self, SparseIntKey a0) -> bool
5173  has_attribute(LennardJonesTyped self, SparseStringKey a0) -> bool
5174  has_attribute(LennardJonesTyped self, SparseParticleIndexKey a0) -> bool
5175  """
5176  return _IMP_atom.LennardJonesTyped_has_attribute(self, *args)
5177 
5178  def get_derivative(self, a0):
5179  r"""get_derivative(LennardJonesTyped self, FloatKey a0) -> double"""
5180  return _IMP_atom.LennardJonesTyped_get_derivative(self, a0)
5181 
5182  def get_name(self):
5183  r"""get_name(LennardJonesTyped self) -> std::string"""
5184  return _IMP_atom.LennardJonesTyped_get_name(self)
5185 
5186  def clear_caches(self):
5187  r"""clear_caches(LennardJonesTyped self)"""
5188  return _IMP_atom.LennardJonesTyped_clear_caches(self)
5189 
5190  def set_name(self, a0):
5191  r"""set_name(LennardJonesTyped self, std::string a0)"""
5192  return _IMP_atom.LennardJonesTyped_set_name(self, a0)
5193 
5194  def set_check_level(self, a0):
5195  r"""set_check_level(LennardJonesTyped self, IMP::CheckLevel a0)"""
5196  return _IMP_atom.LennardJonesTyped_set_check_level(self, a0)
5197 
5198  def add_to_derivative(self, a0, a1, a2):
5199  r"""add_to_derivative(LennardJonesTyped self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5200  return _IMP_atom.LennardJonesTyped_add_to_derivative(self, a0, a1, a2)
5201 
5202  def set_is_optimized(self, a0, a1):
5203  r"""set_is_optimized(LennardJonesTyped self, FloatKey a0, bool a1)"""
5204  return _IMP_atom.LennardJonesTyped_set_is_optimized(self, a0, a1)
5205 
5206  def get_is_optimized(self, a0):
5207  r"""get_is_optimized(LennardJonesTyped self, FloatKey a0) -> bool"""
5208  return _IMP_atom.LennardJonesTyped_get_is_optimized(self, a0)
5209 
5210  def get_check_level(self):
5211  r"""get_check_level(LennardJonesTyped self) -> IMP::CheckLevel"""
5212  return _IMP_atom.LennardJonesTyped_get_check_level(self)
5213 
5214  def __eq__(self, *args):
5215  r"""
5216  __eq__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5217  __eq__(LennardJonesTyped self, Particle d) -> bool
5218  """
5219  return _IMP_atom.LennardJonesTyped___eq__(self, *args)
5220 
5221  def __ne__(self, *args):
5222  r"""
5223  __ne__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5224  __ne__(LennardJonesTyped self, Particle d) -> bool
5225  """
5226  return _IMP_atom.LennardJonesTyped___ne__(self, *args)
5227 
5228  def __le__(self, *args):
5229  r"""
5230  __le__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5231  __le__(LennardJonesTyped self, Particle d) -> bool
5232  """
5233  return _IMP_atom.LennardJonesTyped___le__(self, *args)
5234 
5235  def __lt__(self, *args):
5236  r"""
5237  __lt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5238  __lt__(LennardJonesTyped self, Particle d) -> bool
5239  """
5240  return _IMP_atom.LennardJonesTyped___lt__(self, *args)
5241 
5242  def __ge__(self, *args):
5243  r"""
5244  __ge__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5245  __ge__(LennardJonesTyped self, Particle d) -> bool
5246  """
5247  return _IMP_atom.LennardJonesTyped___ge__(self, *args)
5248 
5249  def __gt__(self, *args):
5250  r"""
5251  __gt__(LennardJonesTyped self, LennardJonesTyped o) -> bool
5252  __gt__(LennardJonesTyped self, Particle d) -> bool
5253  """
5254  return _IMP_atom.LennardJonesTyped___gt__(self, *args)
5255 
5256  def __hash__(self):
5257  r"""__hash__(LennardJonesTyped self) -> std::size_t"""
5258  return _IMP_atom.LennardJonesTyped___hash__(self)
5259 
5260  def __str__(self):
5261  r"""__str__(LennardJonesTyped self) -> std::string"""
5262  return _IMP_atom.LennardJonesTyped___str__(self)
5263 
5264  def __repr__(self):
5265  r"""__repr__(LennardJonesTyped self) -> std::string"""
5266  return _IMP_atom.LennardJonesTyped___repr__(self)
5267 
5268  def _get_as_binary(self):
5269  r"""_get_as_binary(LennardJonesTyped self) -> PyObject *"""
5270  return _IMP_atom.LennardJonesTyped__get_as_binary(self)
5271 
5272  def _set_from_binary(self, p):
5273  r"""_set_from_binary(LennardJonesTyped self, PyObject * p)"""
5274  return _IMP_atom.LennardJonesTyped__set_from_binary(self, p)
5275 
5276  def __getstate__(self):
5277  p = self._get_as_binary()
5278  if len(self.__dict__) > 1:
5279  d = self.__dict__.copy()
5280  del d['this']
5281  p = (d, p)
5282  return p
5283 
5284  def __setstate__(self, p):
5285  if not hasattr(self, 'this'):
5286  self.__init__()
5287  if isinstance(p, tuple):
5288  d, p = p
5289  self.__dict__.update(d)
5290  return self._set_from_binary(p)
5291 
5292  __swig_destroy__ = _IMP_atom.delete_LennardJonesTyped
5293 
5294 # Register LennardJonesTyped in _IMP_atom:
5295 _IMP_atom.LennardJonesTyped_swigregister(LennardJonesTyped)
5296 class LinearVelocity(IMP.Decorator):
5297  r"""Proxy of C++ IMP::atom::LinearVelocity class."""
5298 
5299  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5300 
5301  def __init__(self, *args):
5302  r"""
5303  __init__(LinearVelocity self) -> LinearVelocity
5304  __init__(LinearVelocity self, Model m, ParticleIndex id) -> LinearVelocity
5305  __init__(LinearVelocity self, _ParticleAdaptor d) -> LinearVelocity
5306  """
5307  _IMP_atom.LinearVelocity_swiginit(self, _IMP_atom.new_LinearVelocity(*args))
5308 
5309  @staticmethod
5310  def get_is_setup(*args):
5311  r"""
5312  get_is_setup(Model m, ParticleIndex pi) -> bool
5313  get_is_setup(_ParticleAdaptor p) -> bool
5314  """
5315  return _IMP_atom.LinearVelocity_get_is_setup(*args)
5316 
5317  def show(self, *args):
5318  r"""show(LinearVelocity self, _ostream out=std::cout)"""
5319  return _IMP_atom.LinearVelocity_show(self, *args)
5320 
5321  @staticmethod
5322  def setup_particle(*args):
5323  r"""
5324  setup_particle(Model m, ParticleIndex pi) -> LinearVelocity
5325  setup_particle(_ParticleAdaptor pa) -> LinearVelocity
5326  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> LinearVelocity
5327  setup_particle(_ParticleAdaptor pa, Vector3D v) -> LinearVelocity
5328  """
5329  return _IMP_atom.LinearVelocity_setup_particle(*args)
5330 
5331  def set_velocity(self, v):
5332  r"""set_velocity(LinearVelocity self, Vector3D v)"""
5333  return _IMP_atom.LinearVelocity_set_velocity(self, v)
5334 
5335  def get_velocity(self):
5336  r"""get_velocity(LinearVelocity self) -> Vector3D"""
5337  return _IMP_atom.LinearVelocity_get_velocity(self)
5338 
5339  def add_attribute(self, *args):
5340  r"""
5341  add_attribute(LinearVelocity self, FloatKey k, IMP::Float v, bool opt)
5342  add_attribute(LinearVelocity self, FloatKey a0, IMP::Float a1)
5343  add_attribute(LinearVelocity self, IntKey a0, IMP::Int a1)
5344  add_attribute(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5345  add_attribute(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5346  add_attribute(LinearVelocity self, StringKey a0, IMP::String a1)
5347  add_attribute(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5348  add_attribute(LinearVelocity self, ObjectKey a0, Object a1)
5349  add_attribute(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5350  add_attribute(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5351  add_attribute(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5352  add_attribute(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5353  """
5354  return _IMP_atom.LinearVelocity_add_attribute(self, *args)
5355 
5356  def get_value(self, *args):
5357  r"""
5358  get_value(LinearVelocity self, FloatKey a0) -> IMP::Float
5359  get_value(LinearVelocity self, IntKey a0) -> IMP::Int
5360  get_value(LinearVelocity self, FloatsKey a0) -> IMP::Floats
5361  get_value(LinearVelocity self, IntsKey a0) -> IMP::Ints
5362  get_value(LinearVelocity self, StringKey a0) -> IMP::String
5363  get_value(LinearVelocity self, ParticleIndexKey a0) -> Particle
5364  get_value(LinearVelocity self, ObjectKey a0) -> Object
5365  get_value(LinearVelocity self, SparseFloatKey a0) -> IMP::Float
5366  get_value(LinearVelocity self, SparseIntKey a0) -> IMP::Int
5367  get_value(LinearVelocity self, SparseStringKey a0) -> IMP::String
5368  get_value(LinearVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5369  """
5370  return _IMP_atom.LinearVelocity_get_value(self, *args)
5371 
5372  def set_value(self, *args):
5373  r"""
5374  set_value(LinearVelocity self, FloatKey a0, IMP::Float a1)
5375  set_value(LinearVelocity self, IntKey a0, IMP::Int a1)
5376  set_value(LinearVelocity self, FloatsKey a0, IMP::Floats a1)
5377  set_value(LinearVelocity self, IntsKey a0, IMP::Ints a1)
5378  set_value(LinearVelocity self, StringKey a0, IMP::String a1)
5379  set_value(LinearVelocity self, ParticleIndexKey a0, Particle a1)
5380  set_value(LinearVelocity self, ObjectKey a0, Object a1)
5381  set_value(LinearVelocity self, SparseFloatKey a0, IMP::Float a1)
5382  set_value(LinearVelocity self, SparseIntKey a0, IMP::Int a1)
5383  set_value(LinearVelocity self, SparseStringKey a0, IMP::String a1)
5384  set_value(LinearVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5385  """
5386  return _IMP_atom.LinearVelocity_set_value(self, *args)
5387 
5388  def remove_attribute(self, *args):
5389  r"""
5390  remove_attribute(LinearVelocity self, FloatKey a0)
5391  remove_attribute(LinearVelocity self, IntKey a0)
5392  remove_attribute(LinearVelocity self, FloatsKey a0)
5393  remove_attribute(LinearVelocity self, IntsKey a0)
5394  remove_attribute(LinearVelocity self, StringKey a0)
5395  remove_attribute(LinearVelocity self, ParticleIndexKey a0)
5396  remove_attribute(LinearVelocity self, ObjectKey a0)
5397  remove_attribute(LinearVelocity self, SparseFloatKey a0)
5398  remove_attribute(LinearVelocity self, SparseIntKey a0)
5399  remove_attribute(LinearVelocity self, SparseStringKey a0)
5400  remove_attribute(LinearVelocity self, SparseParticleIndexKey a0)
5401  """
5402  return _IMP_atom.LinearVelocity_remove_attribute(self, *args)
5403 
5404  def has_attribute(self, *args):
5405  r"""
5406  has_attribute(LinearVelocity self, FloatKey a0) -> bool
5407  has_attribute(LinearVelocity self, IntKey a0) -> bool
5408  has_attribute(LinearVelocity self, FloatsKey a0) -> bool
5409  has_attribute(LinearVelocity self, IntsKey a0) -> bool
5410  has_attribute(LinearVelocity self, StringKey a0) -> bool
5411  has_attribute(LinearVelocity self, ParticleIndexKey a0) -> bool
5412  has_attribute(LinearVelocity self, ObjectKey a0) -> bool
5413  has_attribute(LinearVelocity self, SparseFloatKey a0) -> bool
5414  has_attribute(LinearVelocity self, SparseIntKey a0) -> bool
5415  has_attribute(LinearVelocity self, SparseStringKey a0) -> bool
5416  has_attribute(LinearVelocity self, SparseParticleIndexKey a0) -> bool
5417  """
5418  return _IMP_atom.LinearVelocity_has_attribute(self, *args)
5419 
5420  def get_derivative(self, a0):
5421  r"""get_derivative(LinearVelocity self, FloatKey a0) -> double"""
5422  return _IMP_atom.LinearVelocity_get_derivative(self, a0)
5423 
5424  def get_name(self):
5425  r"""get_name(LinearVelocity self) -> std::string"""
5426  return _IMP_atom.LinearVelocity_get_name(self)
5427 
5428  def clear_caches(self):
5429  r"""clear_caches(LinearVelocity self)"""
5430  return _IMP_atom.LinearVelocity_clear_caches(self)
5431 
5432  def set_name(self, a0):
5433  r"""set_name(LinearVelocity self, std::string a0)"""
5434  return _IMP_atom.LinearVelocity_set_name(self, a0)
5435 
5436  def set_check_level(self, a0):
5437  r"""set_check_level(LinearVelocity self, IMP::CheckLevel a0)"""
5438  return _IMP_atom.LinearVelocity_set_check_level(self, a0)
5439 
5440  def add_to_derivative(self, a0, a1, a2):
5441  r"""add_to_derivative(LinearVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5442  return _IMP_atom.LinearVelocity_add_to_derivative(self, a0, a1, a2)
5443 
5444  def set_is_optimized(self, a0, a1):
5445  r"""set_is_optimized(LinearVelocity self, FloatKey a0, bool a1)"""
5446  return _IMP_atom.LinearVelocity_set_is_optimized(self, a0, a1)
5447 
5448  def get_is_optimized(self, a0):
5449  r"""get_is_optimized(LinearVelocity self, FloatKey a0) -> bool"""
5450  return _IMP_atom.LinearVelocity_get_is_optimized(self, a0)
5451 
5452  def get_check_level(self):
5453  r"""get_check_level(LinearVelocity self) -> IMP::CheckLevel"""
5454  return _IMP_atom.LinearVelocity_get_check_level(self)
5455 
5456  def __eq__(self, *args):
5457  r"""
5458  __eq__(LinearVelocity self, LinearVelocity o) -> bool
5459  __eq__(LinearVelocity self, Particle d) -> bool
5460  """
5461  return _IMP_atom.LinearVelocity___eq__(self, *args)
5462 
5463  def __ne__(self, *args):
5464  r"""
5465  __ne__(LinearVelocity self, LinearVelocity o) -> bool
5466  __ne__(LinearVelocity self, Particle d) -> bool
5467  """
5468  return _IMP_atom.LinearVelocity___ne__(self, *args)
5469 
5470  def __le__(self, *args):
5471  r"""
5472  __le__(LinearVelocity self, LinearVelocity o) -> bool
5473  __le__(LinearVelocity self, Particle d) -> bool
5474  """
5475  return _IMP_atom.LinearVelocity___le__(self, *args)
5476 
5477  def __lt__(self, *args):
5478  r"""
5479  __lt__(LinearVelocity self, LinearVelocity o) -> bool
5480  __lt__(LinearVelocity self, Particle d) -> bool
5481  """
5482  return _IMP_atom.LinearVelocity___lt__(self, *args)
5483 
5484  def __ge__(self, *args):
5485  r"""
5486  __ge__(LinearVelocity self, LinearVelocity o) -> bool
5487  __ge__(LinearVelocity self, Particle d) -> bool
5488  """
5489  return _IMP_atom.LinearVelocity___ge__(self, *args)
5490 
5491  def __gt__(self, *args):
5492  r"""
5493  __gt__(LinearVelocity self, LinearVelocity o) -> bool
5494  __gt__(LinearVelocity self, Particle d) -> bool
5495  """
5496  return _IMP_atom.LinearVelocity___gt__(self, *args)
5497 
5498  def __hash__(self):
5499  r"""__hash__(LinearVelocity self) -> std::size_t"""
5500  return _IMP_atom.LinearVelocity___hash__(self)
5501 
5502  def __str__(self):
5503  r"""__str__(LinearVelocity self) -> std::string"""
5504  return _IMP_atom.LinearVelocity___str__(self)
5505 
5506  def __repr__(self):
5507  r"""__repr__(LinearVelocity self) -> std::string"""
5508  return _IMP_atom.LinearVelocity___repr__(self)
5509 
5510  def _get_as_binary(self):
5511  r"""_get_as_binary(LinearVelocity self) -> PyObject *"""
5512  return _IMP_atom.LinearVelocity__get_as_binary(self)
5513 
5514  def _set_from_binary(self, p):
5515  r"""_set_from_binary(LinearVelocity self, PyObject * p)"""
5516  return _IMP_atom.LinearVelocity__set_from_binary(self, p)
5517 
5518  def __getstate__(self):
5519  p = self._get_as_binary()
5520  if len(self.__dict__) > 1:
5521  d = self.__dict__.copy()
5522  del d['this']
5523  p = (d, p)
5524  return p
5525 
5526  def __setstate__(self, p):
5527  if not hasattr(self, 'this'):
5528  self.__init__()
5529  if isinstance(p, tuple):
5530  d, p = p
5531  self.__dict__.update(d)
5532  return self._set_from_binary(p)
5533 
5534  __swig_destroy__ = _IMP_atom.delete_LinearVelocity
5535 
5536 # Register LinearVelocity in _IMP_atom:
5537 _IMP_atom.LinearVelocity_swigregister(LinearVelocity)
5538 class AngularVelocity(IMP.Decorator):
5539  r"""Proxy of C++ IMP::atom::AngularVelocity class."""
5540 
5541  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5542 
5543  def __init__(self, *args):
5544  r"""
5545  __init__(AngularVelocity self) -> AngularVelocity
5546  __init__(AngularVelocity self, Model m, ParticleIndex id) -> AngularVelocity
5547  __init__(AngularVelocity self, _ParticleAdaptor d) -> AngularVelocity
5548  """
5549  _IMP_atom.AngularVelocity_swiginit(self, _IMP_atom.new_AngularVelocity(*args))
5550 
5551  @staticmethod
5552  def get_is_setup(*args):
5553  r"""
5554  get_is_setup(Model m, ParticleIndex pi) -> bool
5555  get_is_setup(_ParticleAdaptor p) -> bool
5556  """
5557  return _IMP_atom.AngularVelocity_get_is_setup(*args)
5558 
5559  def show(self, *args):
5560  r"""show(AngularVelocity self, _ostream out=std::cout)"""
5561  return _IMP_atom.AngularVelocity_show(self, *args)
5562 
5563  @staticmethod
5564  def setup_particle(*args):
5565  r"""
5566  setup_particle(Model m, ParticleIndex pi) -> AngularVelocity
5567  setup_particle(_ParticleAdaptor pa) -> AngularVelocity
5568  setup_particle(Model m, ParticleIndex pi, Vector4D v) -> AngularVelocity
5569  setup_particle(_ParticleAdaptor pa, Vector4D v) -> AngularVelocity
5570  """
5571  return _IMP_atom.AngularVelocity_setup_particle(*args)
5572 
5573  def set_velocity(self, v):
5574  r"""set_velocity(AngularVelocity self, Vector4D v)"""
5575  return _IMP_atom.AngularVelocity_set_velocity(self, v)
5576 
5577  def get_velocity(self):
5578  r"""get_velocity(AngularVelocity self) -> Vector4D"""
5579  return _IMP_atom.AngularVelocity_get_velocity(self)
5580 
5581  def add_attribute(self, *args):
5582  r"""
5583  add_attribute(AngularVelocity self, FloatKey k, IMP::Float v, bool opt)
5584  add_attribute(AngularVelocity self, FloatKey a0, IMP::Float a1)
5585  add_attribute(AngularVelocity self, IntKey a0, IMP::Int a1)
5586  add_attribute(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5587  add_attribute(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5588  add_attribute(AngularVelocity self, StringKey a0, IMP::String a1)
5589  add_attribute(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5590  add_attribute(AngularVelocity self, ObjectKey a0, Object a1)
5591  add_attribute(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5592  add_attribute(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5593  add_attribute(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5594  add_attribute(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5595  """
5596  return _IMP_atom.AngularVelocity_add_attribute(self, *args)
5597 
5598  def get_value(self, *args):
5599  r"""
5600  get_value(AngularVelocity self, FloatKey a0) -> IMP::Float
5601  get_value(AngularVelocity self, IntKey a0) -> IMP::Int
5602  get_value(AngularVelocity self, FloatsKey a0) -> IMP::Floats
5603  get_value(AngularVelocity self, IntsKey a0) -> IMP::Ints
5604  get_value(AngularVelocity self, StringKey a0) -> IMP::String
5605  get_value(AngularVelocity self, ParticleIndexKey a0) -> Particle
5606  get_value(AngularVelocity self, ObjectKey a0) -> Object
5607  get_value(AngularVelocity self, SparseFloatKey a0) -> IMP::Float
5608  get_value(AngularVelocity self, SparseIntKey a0) -> IMP::Int
5609  get_value(AngularVelocity self, SparseStringKey a0) -> IMP::String
5610  get_value(AngularVelocity self, SparseParticleIndexKey a0) -> ParticleIndex
5611  """
5612  return _IMP_atom.AngularVelocity_get_value(self, *args)
5613 
5614  def set_value(self, *args):
5615  r"""
5616  set_value(AngularVelocity self, FloatKey a0, IMP::Float a1)
5617  set_value(AngularVelocity self, IntKey a0, IMP::Int a1)
5618  set_value(AngularVelocity self, FloatsKey a0, IMP::Floats a1)
5619  set_value(AngularVelocity self, IntsKey a0, IMP::Ints a1)
5620  set_value(AngularVelocity self, StringKey a0, IMP::String a1)
5621  set_value(AngularVelocity self, ParticleIndexKey a0, Particle a1)
5622  set_value(AngularVelocity self, ObjectKey a0, Object a1)
5623  set_value(AngularVelocity self, SparseFloatKey a0, IMP::Float a1)
5624  set_value(AngularVelocity self, SparseIntKey a0, IMP::Int a1)
5625  set_value(AngularVelocity self, SparseStringKey a0, IMP::String a1)
5626  set_value(AngularVelocity self, SparseParticleIndexKey a0, ParticleIndex a1)
5627  """
5628  return _IMP_atom.AngularVelocity_set_value(self, *args)
5629 
5630  def remove_attribute(self, *args):
5631  r"""
5632  remove_attribute(AngularVelocity self, FloatKey a0)
5633  remove_attribute(AngularVelocity self, IntKey a0)
5634  remove_attribute(AngularVelocity self, FloatsKey a0)
5635  remove_attribute(AngularVelocity self, IntsKey a0)
5636  remove_attribute(AngularVelocity self, StringKey a0)
5637  remove_attribute(AngularVelocity self, ParticleIndexKey a0)
5638  remove_attribute(AngularVelocity self, ObjectKey a0)
5639  remove_attribute(AngularVelocity self, SparseFloatKey a0)
5640  remove_attribute(AngularVelocity self, SparseIntKey a0)
5641  remove_attribute(AngularVelocity self, SparseStringKey a0)
5642  remove_attribute(AngularVelocity self, SparseParticleIndexKey a0)
5643  """
5644  return _IMP_atom.AngularVelocity_remove_attribute(self, *args)
5645 
5646  def has_attribute(self, *args):
5647  r"""
5648  has_attribute(AngularVelocity self, FloatKey a0) -> bool
5649  has_attribute(AngularVelocity self, IntKey a0) -> bool
5650  has_attribute(AngularVelocity self, FloatsKey a0) -> bool
5651  has_attribute(AngularVelocity self, IntsKey a0) -> bool
5652  has_attribute(AngularVelocity self, StringKey a0) -> bool
5653  has_attribute(AngularVelocity self, ParticleIndexKey a0) -> bool
5654  has_attribute(AngularVelocity self, ObjectKey a0) -> bool
5655  has_attribute(AngularVelocity self, SparseFloatKey a0) -> bool
5656  has_attribute(AngularVelocity self, SparseIntKey a0) -> bool
5657  has_attribute(AngularVelocity self, SparseStringKey a0) -> bool
5658  has_attribute(AngularVelocity self, SparseParticleIndexKey a0) -> bool
5659  """
5660  return _IMP_atom.AngularVelocity_has_attribute(self, *args)
5661 
5662  def get_derivative(self, a0):
5663  r"""get_derivative(AngularVelocity self, FloatKey a0) -> double"""
5664  return _IMP_atom.AngularVelocity_get_derivative(self, a0)
5665 
5666  def get_name(self):
5667  r"""get_name(AngularVelocity self) -> std::string"""
5668  return _IMP_atom.AngularVelocity_get_name(self)
5669 
5670  def clear_caches(self):
5671  r"""clear_caches(AngularVelocity self)"""
5672  return _IMP_atom.AngularVelocity_clear_caches(self)
5673 
5674  def set_name(self, a0):
5675  r"""set_name(AngularVelocity self, std::string a0)"""
5676  return _IMP_atom.AngularVelocity_set_name(self, a0)
5677 
5678  def set_check_level(self, a0):
5679  r"""set_check_level(AngularVelocity self, IMP::CheckLevel a0)"""
5680  return _IMP_atom.AngularVelocity_set_check_level(self, a0)
5681 
5682  def add_to_derivative(self, a0, a1, a2):
5683  r"""add_to_derivative(AngularVelocity self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5684  return _IMP_atom.AngularVelocity_add_to_derivative(self, a0, a1, a2)
5685 
5686  def set_is_optimized(self, a0, a1):
5687  r"""set_is_optimized(AngularVelocity self, FloatKey a0, bool a1)"""
5688  return _IMP_atom.AngularVelocity_set_is_optimized(self, a0, a1)
5689 
5690  def get_is_optimized(self, a0):
5691  r"""get_is_optimized(AngularVelocity self, FloatKey a0) -> bool"""
5692  return _IMP_atom.AngularVelocity_get_is_optimized(self, a0)
5693 
5694  def get_check_level(self):
5695  r"""get_check_level(AngularVelocity self) -> IMP::CheckLevel"""
5696  return _IMP_atom.AngularVelocity_get_check_level(self)
5697 
5698  def __eq__(self, *args):
5699  r"""
5700  __eq__(AngularVelocity self, AngularVelocity o) -> bool
5701  __eq__(AngularVelocity self, Particle d) -> bool
5702  """
5703  return _IMP_atom.AngularVelocity___eq__(self, *args)
5704 
5705  def __ne__(self, *args):
5706  r"""
5707  __ne__(AngularVelocity self, AngularVelocity o) -> bool
5708  __ne__(AngularVelocity self, Particle d) -> bool
5709  """
5710  return _IMP_atom.AngularVelocity___ne__(self, *args)
5711 
5712  def __le__(self, *args):
5713  r"""
5714  __le__(AngularVelocity self, AngularVelocity o) -> bool
5715  __le__(AngularVelocity self, Particle d) -> bool
5716  """
5717  return _IMP_atom.AngularVelocity___le__(self, *args)
5718 
5719  def __lt__(self, *args):
5720  r"""
5721  __lt__(AngularVelocity self, AngularVelocity o) -> bool
5722  __lt__(AngularVelocity self, Particle d) -> bool
5723  """
5724  return _IMP_atom.AngularVelocity___lt__(self, *args)
5725 
5726  def __ge__(self, *args):
5727  r"""
5728  __ge__(AngularVelocity self, AngularVelocity o) -> bool
5729  __ge__(AngularVelocity self, Particle d) -> bool
5730  """
5731  return _IMP_atom.AngularVelocity___ge__(self, *args)
5732 
5733  def __gt__(self, *args):
5734  r"""
5735  __gt__(AngularVelocity self, AngularVelocity o) -> bool
5736  __gt__(AngularVelocity self, Particle d) -> bool
5737  """
5738  return _IMP_atom.AngularVelocity___gt__(self, *args)
5739 
5740  def __hash__(self):
5741  r"""__hash__(AngularVelocity self) -> std::size_t"""
5742  return _IMP_atom.AngularVelocity___hash__(self)
5743 
5744  def __str__(self):
5745  r"""__str__(AngularVelocity self) -> std::string"""
5746  return _IMP_atom.AngularVelocity___str__(self)
5747 
5748  def __repr__(self):
5749  r"""__repr__(AngularVelocity self) -> std::string"""
5750  return _IMP_atom.AngularVelocity___repr__(self)
5751 
5752  def _get_as_binary(self):
5753  r"""_get_as_binary(AngularVelocity self) -> PyObject *"""
5754  return _IMP_atom.AngularVelocity__get_as_binary(self)
5755 
5756  def _set_from_binary(self, p):
5757  r"""_set_from_binary(AngularVelocity self, PyObject * p)"""
5758  return _IMP_atom.AngularVelocity__set_from_binary(self, p)
5759 
5760  def __getstate__(self):
5761  p = self._get_as_binary()
5762  if len(self.__dict__) > 1:
5763  d = self.__dict__.copy()
5764  del d['this']
5765  p = (d, p)
5766  return p
5767 
5768  def __setstate__(self, p):
5769  if not hasattr(self, 'this'):
5770  self.__init__()
5771  if isinstance(p, tuple):
5772  d, p = p
5773  self.__dict__.update(d)
5774  return self._set_from_binary(p)
5775 
5776  __swig_destroy__ = _IMP_atom.delete_AngularVelocity
5777 
5778 # Register AngularVelocity in _IMP_atom:
5779 _IMP_atom.AngularVelocity_swigregister(AngularVelocity)
5780 class MolecularDynamics(Simulator):
5781  r"""Proxy of C++ IMP::atom::MolecularDynamics class."""
5782 
5783  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5784 
5785  def __init__(self, m):
5786  r"""__init__(MolecularDynamics self, Model m) -> MolecularDynamics"""
5787  _IMP_atom.MolecularDynamics_swiginit(self, _IMP_atom.new_MolecularDynamics(m))
5788 
5789  def get_kinetic_energy(self):
5790  r"""get_kinetic_energy(MolecularDynamics self) -> IMP::Float"""
5791  return _IMP_atom.MolecularDynamics_get_kinetic_energy(self)
5792 
5793  def get_kinetic_temperature(self, ekinetic):
5794  r"""get_kinetic_temperature(MolecularDynamics self, IMP::Float ekinetic) -> IMP::Float"""
5795  return _IMP_atom.MolecularDynamics_get_kinetic_temperature(self, ekinetic)
5796 
5797  def set_velocity_cap(self, velocity_cap):
5798  r"""set_velocity_cap(MolecularDynamics self, IMP::Float velocity_cap)"""
5799  return _IMP_atom.MolecularDynamics_set_velocity_cap(self, velocity_cap)
5800 
5801  def assign_velocities(self, temperature):
5802  r"""assign_velocities(MolecularDynamics self, IMP::Float temperature)"""
5803  return _IMP_atom.MolecularDynamics_assign_velocities(self, temperature)
5804 
5805  def setup(self, ps):
5806  r"""setup(MolecularDynamics self, IMP::ParticleIndexes const & ps)"""
5807  return _IMP_atom.MolecularDynamics_setup(self, ps)
5808 
5809  def do_step(self, sc, dt):
5810  r"""do_step(MolecularDynamics self, IMP::ParticleIndexes const & sc, double dt) -> double"""
5811  return _IMP_atom.MolecularDynamics_do_step(self, sc, dt)
5812 
5813  def get_is_simulation_particle(self, p):
5814  r"""get_is_simulation_particle(MolecularDynamics self, ParticleIndex p) -> bool"""
5815  return _IMP_atom.MolecularDynamics_get_is_simulation_particle(self, p)
5816 
5817  def get_version_info(self):
5818  r"""get_version_info(MolecularDynamics self) -> VersionInfo"""
5819  return _IMP_atom.MolecularDynamics_get_version_info(self)
5820  __swig_destroy__ = _IMP_atom.delete_MolecularDynamics
5821 
5822  def __str__(self):
5823  r"""__str__(MolecularDynamics self) -> std::string"""
5824  return _IMP_atom.MolecularDynamics___str__(self)
5825 
5826  def __repr__(self):
5827  r"""__repr__(MolecularDynamics self) -> std::string"""
5828  return _IMP_atom.MolecularDynamics___repr__(self)
5829 
5830  @staticmethod
5831  def get_from(o):
5832  return _object_cast_to_MolecularDynamics(o)
5833 
5834 
5835 # Register MolecularDynamics in _IMP_atom:
5836 _IMP_atom.MolecularDynamics_swigregister(MolecularDynamics)
5837 class VelocityScalingOptimizerState(IMP.OptimizerState):
5838  r"""Proxy of C++ IMP::atom::VelocityScalingOptimizerState class."""
5839 
5840  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5841 
5842  def __init__(self, m, pis, temperature):
5843  r"""__init__(VelocityScalingOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature) -> VelocityScalingOptimizerState"""
5844  _IMP_atom.VelocityScalingOptimizerState_swiginit(self, _IMP_atom.new_VelocityScalingOptimizerState(m, pis, temperature))
5845 
5846  def set_particles(self, pis):
5847  r"""set_particles(VelocityScalingOptimizerState self, IMP::Particles const & pis)"""
5848  return _IMP_atom.VelocityScalingOptimizerState_set_particles(self, pis)
5849 
5850  def set_temperature(self, temperature):
5851  r"""set_temperature(VelocityScalingOptimizerState self, IMP::Float temperature)"""
5852  return _IMP_atom.VelocityScalingOptimizerState_set_temperature(self, temperature)
5853 
5854  def rescale_velocities(self):
5855  r"""rescale_velocities(VelocityScalingOptimizerState self)"""
5856  return _IMP_atom.VelocityScalingOptimizerState_rescale_velocities(self)
5857 
5858  def get_version_info(self):
5859  r"""get_version_info(VelocityScalingOptimizerState self) -> VersionInfo"""
5860  return _IMP_atom.VelocityScalingOptimizerState_get_version_info(self)
5861  __swig_destroy__ = _IMP_atom.delete_VelocityScalingOptimizerState
5862 
5863  def __str__(self):
5864  r"""__str__(VelocityScalingOptimizerState self) -> std::string"""
5865  return _IMP_atom.VelocityScalingOptimizerState___str__(self)
5866 
5867  def __repr__(self):
5868  r"""__repr__(VelocityScalingOptimizerState self) -> std::string"""
5869  return _IMP_atom.VelocityScalingOptimizerState___repr__(self)
5870 
5871  @staticmethod
5872  def get_from(o):
5873  return _object_cast_to_VelocityScalingOptimizerState(o)
5874 
5875 
5876 # Register VelocityScalingOptimizerState in _IMP_atom:
5877 _IMP_atom.VelocityScalingOptimizerState_swigregister(VelocityScalingOptimizerState)
5878 class Fragment(Hierarchy):
5879  r"""Proxy of C++ IMP::atom::Fragment class."""
5880 
5881  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5882 
5883  def set_residue_indexes(self, o):
5884  r"""set_residue_indexes(Fragment self, IMP::Ints o)"""
5885  return _IMP_atom.Fragment_set_residue_indexes(self, o)
5886 
5887  def get_residue_indexes(self):
5888  r"""get_residue_indexes(Fragment self) -> IMP::Ints"""
5889  return _IMP_atom.Fragment_get_residue_indexes(self)
5890 
5891  def get_contains_residue(self, rindex):
5892  r"""get_contains_residue(Fragment self, int rindex) -> bool"""
5893  return _IMP_atom.Fragment_get_contains_residue(self, rindex)
5894 
5895  def get_contains_any_sorted_residue(self, rinds):
5896  r"""get_contains_any_sorted_residue(Fragment self, IMP::Ints const & rinds) -> bool"""
5897  return _IMP_atom.Fragment_get_contains_any_sorted_residue(self, rinds)
5898 
5899  def __init__(self, *args):
5900  r"""
5901  __init__(Fragment self) -> Fragment
5902  __init__(Fragment self, Model m, ParticleIndex id) -> Fragment
5903  __init__(Fragment self, _ParticleAdaptor d) -> Fragment
5904  """
5905  _IMP_atom.Fragment_swiginit(self, _IMP_atom.new_Fragment(*args))
5906 
5907  @staticmethod
5908  def get_is_setup(*args):
5909  r"""
5910  get_is_setup(Model m, ParticleIndex pi) -> bool
5911  get_is_setup(_ParticleAdaptor p) -> bool
5912  """
5913  return _IMP_atom.Fragment_get_is_setup(*args)
5914 
5915  def show(self, *args):
5916  r"""show(Fragment self, _ostream out=std::cout)"""
5917  return _IMP_atom.Fragment_show(self, *args)
5918 
5919  @staticmethod
5920  def setup_particle(*args):
5921  r"""
5922  setup_particle(Model m, ParticleIndex pi) -> Fragment
5923  setup_particle(_ParticleAdaptor pa) -> Fragment
5924  setup_particle(Model m, ParticleIndex pi, Fragment other) -> Fragment
5925  setup_particle(_ParticleAdaptor pa, Fragment other) -> Fragment
5926  setup_particle(Model m, ParticleIndex pi, IMP::Ints residue_indexes) -> Fragment
5927  setup_particle(_ParticleAdaptor pa, IMP::Ints residue_indexes) -> Fragment
5928  """
5929  return _IMP_atom.Fragment_setup_particle(*args)
5930 
5931  def add_attribute(self, *args):
5932  r"""
5933  add_attribute(Fragment self, FloatKey k, IMP::Float v, bool opt)
5934  add_attribute(Fragment self, FloatKey a0, IMP::Float a1)
5935  add_attribute(Fragment self, IntKey a0, IMP::Int a1)
5936  add_attribute(Fragment self, FloatsKey a0, IMP::Floats a1)
5937  add_attribute(Fragment self, IntsKey a0, IMP::Ints a1)
5938  add_attribute(Fragment self, StringKey a0, IMP::String a1)
5939  add_attribute(Fragment self, ParticleIndexKey a0, Particle a1)
5940  add_attribute(Fragment self, ObjectKey a0, Object a1)
5941  add_attribute(Fragment self, SparseFloatKey a0, IMP::Float a1)
5942  add_attribute(Fragment self, SparseIntKey a0, IMP::Int a1)
5943  add_attribute(Fragment self, SparseStringKey a0, IMP::String a1)
5944  add_attribute(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5945  """
5946  return _IMP_atom.Fragment_add_attribute(self, *args)
5947 
5948  def get_value(self, *args):
5949  r"""
5950  get_value(Fragment self, FloatKey a0) -> IMP::Float
5951  get_value(Fragment self, IntKey a0) -> IMP::Int
5952  get_value(Fragment self, FloatsKey a0) -> IMP::Floats
5953  get_value(Fragment self, IntsKey a0) -> IMP::Ints
5954  get_value(Fragment self, StringKey a0) -> IMP::String
5955  get_value(Fragment self, ParticleIndexKey a0) -> Particle
5956  get_value(Fragment self, ObjectKey a0) -> Object
5957  get_value(Fragment self, SparseFloatKey a0) -> IMP::Float
5958  get_value(Fragment self, SparseIntKey a0) -> IMP::Int
5959  get_value(Fragment self, SparseStringKey a0) -> IMP::String
5960  get_value(Fragment self, SparseParticleIndexKey a0) -> ParticleIndex
5961  """
5962  return _IMP_atom.Fragment_get_value(self, *args)
5963 
5964  def set_value(self, *args):
5965  r"""
5966  set_value(Fragment self, FloatKey a0, IMP::Float a1)
5967  set_value(Fragment self, IntKey a0, IMP::Int a1)
5968  set_value(Fragment self, FloatsKey a0, IMP::Floats a1)
5969  set_value(Fragment self, IntsKey a0, IMP::Ints a1)
5970  set_value(Fragment self, StringKey a0, IMP::String a1)
5971  set_value(Fragment self, ParticleIndexKey a0, Particle a1)
5972  set_value(Fragment self, ObjectKey a0, Object a1)
5973  set_value(Fragment self, SparseFloatKey a0, IMP::Float a1)
5974  set_value(Fragment self, SparseIntKey a0, IMP::Int a1)
5975  set_value(Fragment self, SparseStringKey a0, IMP::String a1)
5976  set_value(Fragment self, SparseParticleIndexKey a0, ParticleIndex a1)
5977  """
5978  return _IMP_atom.Fragment_set_value(self, *args)
5979 
5980  def remove_attribute(self, *args):
5981  r"""
5982  remove_attribute(Fragment self, FloatKey a0)
5983  remove_attribute(Fragment self, IntKey a0)
5984  remove_attribute(Fragment self, FloatsKey a0)
5985  remove_attribute(Fragment self, IntsKey a0)
5986  remove_attribute(Fragment self, StringKey a0)
5987  remove_attribute(Fragment self, ParticleIndexKey a0)
5988  remove_attribute(Fragment self, ObjectKey a0)
5989  remove_attribute(Fragment self, SparseFloatKey a0)
5990  remove_attribute(Fragment self, SparseIntKey a0)
5991  remove_attribute(Fragment self, SparseStringKey a0)
5992  remove_attribute(Fragment self, SparseParticleIndexKey a0)
5993  """
5994  return _IMP_atom.Fragment_remove_attribute(self, *args)
5995 
5996  def has_attribute(self, *args):
5997  r"""
5998  has_attribute(Fragment self, FloatKey a0) -> bool
5999  has_attribute(Fragment self, IntKey a0) -> bool
6000  has_attribute(Fragment self, FloatsKey a0) -> bool
6001  has_attribute(Fragment self, IntsKey a0) -> bool
6002  has_attribute(Fragment self, StringKey a0) -> bool
6003  has_attribute(Fragment self, ParticleIndexKey a0) -> bool
6004  has_attribute(Fragment self, ObjectKey a0) -> bool
6005  has_attribute(Fragment self, SparseFloatKey a0) -> bool
6006  has_attribute(Fragment self, SparseIntKey a0) -> bool
6007  has_attribute(Fragment self, SparseStringKey a0) -> bool
6008  has_attribute(Fragment self, SparseParticleIndexKey a0) -> bool
6009  """
6010  return _IMP_atom.Fragment_has_attribute(self, *args)
6011 
6012  def get_derivative(self, a0):
6013  r"""get_derivative(Fragment self, FloatKey a0) -> double"""
6014  return _IMP_atom.Fragment_get_derivative(self, a0)
6015 
6016  def get_name(self):
6017  r"""get_name(Fragment self) -> std::string"""
6018  return _IMP_atom.Fragment_get_name(self)
6019 
6020  def clear_caches(self):
6021  r"""clear_caches(Fragment self)"""
6022  return _IMP_atom.Fragment_clear_caches(self)
6023 
6024  def set_name(self, a0):
6025  r"""set_name(Fragment self, std::string a0)"""
6026  return _IMP_atom.Fragment_set_name(self, a0)
6027 
6028  def set_check_level(self, a0):
6029  r"""set_check_level(Fragment self, IMP::CheckLevel a0)"""
6030  return _IMP_atom.Fragment_set_check_level(self, a0)
6031 
6032  def add_to_derivative(self, a0, a1, a2):
6033  r"""add_to_derivative(Fragment self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6034  return _IMP_atom.Fragment_add_to_derivative(self, a0, a1, a2)
6035 
6036  def set_is_optimized(self, a0, a1):
6037  r"""set_is_optimized(Fragment self, FloatKey a0, bool a1)"""
6038  return _IMP_atom.Fragment_set_is_optimized(self, a0, a1)
6039 
6040  def get_is_optimized(self, a0):
6041  r"""get_is_optimized(Fragment self, FloatKey a0) -> bool"""
6042  return _IMP_atom.Fragment_get_is_optimized(self, a0)
6043 
6044  def get_check_level(self):
6045  r"""get_check_level(Fragment self) -> IMP::CheckLevel"""
6046  return _IMP_atom.Fragment_get_check_level(self)
6047 
6048  def __eq__(self, *args):
6049  r"""
6050  __eq__(Fragment self, Fragment o) -> bool
6051  __eq__(Fragment self, Particle d) -> bool
6052  """
6053  return _IMP_atom.Fragment___eq__(self, *args)
6054 
6055  def __ne__(self, *args):
6056  r"""
6057  __ne__(Fragment self, Fragment o) -> bool
6058  __ne__(Fragment self, Particle d) -> bool
6059  """
6060  return _IMP_atom.Fragment___ne__(self, *args)
6061 
6062  def __le__(self, *args):
6063  r"""
6064  __le__(Fragment self, Fragment o) -> bool
6065  __le__(Fragment self, Particle d) -> bool
6066  """
6067  return _IMP_atom.Fragment___le__(self, *args)
6068 
6069  def __lt__(self, *args):
6070  r"""
6071  __lt__(Fragment self, Fragment o) -> bool
6072  __lt__(Fragment self, Particle d) -> bool
6073  """
6074  return _IMP_atom.Fragment___lt__(self, *args)
6075 
6076  def __ge__(self, *args):
6077  r"""
6078  __ge__(Fragment self, Fragment o) -> bool
6079  __ge__(Fragment self, Particle d) -> bool
6080  """
6081  return _IMP_atom.Fragment___ge__(self, *args)
6082 
6083  def __gt__(self, *args):
6084  r"""
6085  __gt__(Fragment self, Fragment o) -> bool
6086  __gt__(Fragment self, Particle d) -> bool
6087  """
6088  return _IMP_atom.Fragment___gt__(self, *args)
6089 
6090  def __hash__(self):
6091  r"""__hash__(Fragment self) -> std::size_t"""
6092  return _IMP_atom.Fragment___hash__(self)
6093 
6094  def __str__(self):
6095  r"""__str__(Fragment self) -> std::string"""
6096  return _IMP_atom.Fragment___str__(self)
6097 
6098  def __repr__(self):
6099  r"""__repr__(Fragment self) -> std::string"""
6100  return _IMP_atom.Fragment___repr__(self)
6101 
6102  def _get_as_binary(self):
6103  r"""_get_as_binary(Fragment self) -> PyObject *"""
6104  return _IMP_atom.Fragment__get_as_binary(self)
6105 
6106  def _set_from_binary(self, p):
6107  r"""_set_from_binary(Fragment self, PyObject * p)"""
6108  return _IMP_atom.Fragment__set_from_binary(self, p)
6109 
6110  def __getstate__(self):
6111  p = self._get_as_binary()
6112  if len(self.__dict__) > 1:
6113  d = self.__dict__.copy()
6114  del d['this']
6115  p = (d, p)
6116  return p
6117 
6118  def __setstate__(self, p):
6119  if not hasattr(self, 'this'):
6120  self.__init__()
6121  if isinstance(p, tuple):
6122  d, p = p
6123  self.__dict__.update(d)
6124  return self._set_from_binary(p)
6125 
6126  __swig_destroy__ = _IMP_atom.delete_Fragment
6127 
6128 # Register Fragment in _IMP_atom:
6129 _IMP_atom.Fragment_swigregister(Fragment)
6130 class StereochemistryPairFilter(IMP.PairPredicate):
6131  r"""Proxy of C++ IMP::atom::StereochemistryPairFilter class."""
6132 
6133  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6134 
6135  def __init__(self):
6136  r"""__init__(StereochemistryPairFilter self) -> StereochemistryPairFilter"""
6137  _IMP_atom.StereochemistryPairFilter_swiginit(self, _IMP_atom.new_StereochemistryPairFilter())
6138 
6139  def set_bonds(self, bonds):
6140  r"""set_bonds(StereochemistryPairFilter self, IMP::Particles const & bonds)"""
6141  return _IMP_atom.StereochemistryPairFilter_set_bonds(self, bonds)
6142 
6143  def set_angles(self, angles):
6144  r"""set_angles(StereochemistryPairFilter self, IMP::Particles const & angles)"""
6145  return _IMP_atom.StereochemistryPairFilter_set_angles(self, angles)
6146 
6147  def set_dihedrals(self, dihedrals):
6148  r"""set_dihedrals(StereochemistryPairFilter self, IMP::Particles const & dihedrals)"""
6149  return _IMP_atom.StereochemistryPairFilter_set_dihedrals(self, dihedrals)
6150 
6151  def do_get_inputs(self, m, pis):
6152  r"""do_get_inputs(StereochemistryPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6153  return _IMP_atom.StereochemistryPairFilter_do_get_inputs(self, m, pis)
6154 
6155  def get_value(self, *args):
6156  r"""
6157  get_value(StereochemistryPairFilter self, IMP::ParticlePair const & a) -> int
6158  get_value(StereochemistryPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6159  """
6160  return _IMP_atom.StereochemistryPairFilter_get_value(self, *args)
6161 
6162  def get_value_index(self, *args):
6163  r"""
6164  get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6165  get_value_index(StereochemistryPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6166  """
6167  return _IMP_atom.StereochemistryPairFilter_get_value_index(self, *args)
6168 
6169  def get_version_info(self):
6170  r"""get_version_info(StereochemistryPairFilter self) -> VersionInfo"""
6171  return _IMP_atom.StereochemistryPairFilter_get_version_info(self)
6172  __swig_destroy__ = _IMP_atom.delete_StereochemistryPairFilter
6173 
6174  def __str__(self):
6175  r"""__str__(StereochemistryPairFilter self) -> std::string"""
6176  return _IMP_atom.StereochemistryPairFilter___str__(self)
6177 
6178  def __repr__(self):
6179  r"""__repr__(StereochemistryPairFilter self) -> std::string"""
6180  return _IMP_atom.StereochemistryPairFilter___repr__(self)
6181 
6182  @staticmethod
6183  def get_from(o):
6184  return _object_cast_to_StereochemistryPairFilter(o)
6185 
6186 
6187 # Register StereochemistryPairFilter in _IMP_atom:
6188 _IMP_atom.StereochemistryPairFilter_swigregister(StereochemistryPairFilter)
6189 class SoapPairFilter(IMP.PairPredicate):
6190  r"""Proxy of C++ IMP::atom::SoapPairFilter class."""
6191 
6192  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6193 
6194  def __init__(self, library):
6195  r"""__init__(SoapPairFilter self, std::string library) -> SoapPairFilter"""
6196  _IMP_atom.SoapPairFilter_swiginit(self, _IMP_atom.new_SoapPairFilter(library))
6197 
6198  def do_get_inputs(self, m, pis):
6199  r"""do_get_inputs(SoapPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6200  return _IMP_atom.SoapPairFilter_do_get_inputs(self, m, pis)
6201 
6202  def get_value(self, *args):
6203  r"""
6204  get_value(SoapPairFilter self, IMP::ParticlePair const & a) -> int
6205  get_value(SoapPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6206  """
6207  return _IMP_atom.SoapPairFilter_get_value(self, *args)
6208 
6209  def get_value_index(self, *args):
6210  r"""
6211  get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6212  get_value_index(SoapPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6213  """
6214  return _IMP_atom.SoapPairFilter_get_value_index(self, *args)
6215 
6216  def get_version_info(self):
6217  r"""get_version_info(SoapPairFilter self) -> VersionInfo"""
6218  return _IMP_atom.SoapPairFilter_get_version_info(self)
6219  __swig_destroy__ = _IMP_atom.delete_SoapPairFilter
6220 
6221  def __str__(self):
6222  r"""__str__(SoapPairFilter self) -> std::string"""
6223  return _IMP_atom.SoapPairFilter___str__(self)
6224 
6225  def __repr__(self):
6226  r"""__repr__(SoapPairFilter self) -> std::string"""
6227  return _IMP_atom.SoapPairFilter___repr__(self)
6228 
6229  @staticmethod
6230  def get_from(o):
6231  return _object_cast_to_SoapPairFilter(o)
6232 
6233 
6234 # Register SoapPairFilter in _IMP_atom:
6235 _IMP_atom.SoapPairFilter_swigregister(SoapPairFilter)
6236 class Mass(IMP.Decorator):
6237  r"""Proxy of C++ IMP::atom::Mass class."""
6238 
6239  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6240 
6241  def get_mass(self):
6242  r"""get_mass(Mass self) -> IMP::Float"""
6243  return _IMP_atom.Mass_get_mass(self)
6244 
6245  def set_mass(self, d):
6246  r"""set_mass(Mass self, IMP::Float d)"""
6247  return _IMP_atom.Mass_set_mass(self, d)
6248 
6249  def __init__(self, *args):
6250  r"""
6251  __init__(Mass self) -> Mass
6252  __init__(Mass self, Model m, ParticleIndex id) -> Mass
6253  __init__(Mass self, _ParticleAdaptor d) -> Mass
6254  """
6255  _IMP_atom.Mass_swiginit(self, _IMP_atom.new_Mass(*args))
6256 
6257  @staticmethod
6258  def get_is_setup(*args):
6259  r"""
6260  get_is_setup(Model m, ParticleIndex pi) -> bool
6261  get_is_setup(_ParticleAdaptor p) -> bool
6262  """
6263  return _IMP_atom.Mass_get_is_setup(*args)
6264 
6265  def show(self, *args):
6266  r"""show(Mass self, _ostream out=std::cout)"""
6267  return _IMP_atom.Mass_show(self, *args)
6268 
6269  @staticmethod
6270  def setup_particle(*args):
6271  r"""
6272  setup_particle(Model m, ParticleIndex pi, IMP::Float mass) -> Mass
6273  setup_particle(_ParticleAdaptor pa, IMP::Float mass) -> Mass
6274  setup_particle(Model m, ParticleIndex pi, Mass other) -> Mass
6275  setup_particle(_ParticleAdaptor pa, Mass other) -> Mass
6276  """
6277  return _IMP_atom.Mass_setup_particle(*args)
6278 
6279  @staticmethod
6280  def get_mass_key():
6281  r"""get_mass_key() -> FloatKey"""
6282  return _IMP_atom.Mass_get_mass_key()
6283 
6284  def add_attribute(self, *args):
6285  r"""
6286  add_attribute(Mass self, FloatKey k, IMP::Float v, bool opt)
6287  add_attribute(Mass self, FloatKey a0, IMP::Float a1)
6288  add_attribute(Mass self, IntKey a0, IMP::Int a1)
6289  add_attribute(Mass self, FloatsKey a0, IMP::Floats a1)
6290  add_attribute(Mass self, IntsKey a0, IMP::Ints a1)
6291  add_attribute(Mass self, StringKey a0, IMP::String a1)
6292  add_attribute(Mass self, ParticleIndexKey a0, Particle a1)
6293  add_attribute(Mass self, ObjectKey a0, Object a1)
6294  add_attribute(Mass self, SparseFloatKey a0, IMP::Float a1)
6295  add_attribute(Mass self, SparseIntKey a0, IMP::Int a1)
6296  add_attribute(Mass self, SparseStringKey a0, IMP::String a1)
6297  add_attribute(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6298  """
6299  return _IMP_atom.Mass_add_attribute(self, *args)
6300 
6301  def get_value(self, *args):
6302  r"""
6303  get_value(Mass self, FloatKey a0) -> IMP::Float
6304  get_value(Mass self, IntKey a0) -> IMP::Int
6305  get_value(Mass self, FloatsKey a0) -> IMP::Floats
6306  get_value(Mass self, IntsKey a0) -> IMP::Ints
6307  get_value(Mass self, StringKey a0) -> IMP::String
6308  get_value(Mass self, ParticleIndexKey a0) -> Particle
6309  get_value(Mass self, ObjectKey a0) -> Object
6310  get_value(Mass self, SparseFloatKey a0) -> IMP::Float
6311  get_value(Mass self, SparseIntKey a0) -> IMP::Int
6312  get_value(Mass self, SparseStringKey a0) -> IMP::String
6313  get_value(Mass self, SparseParticleIndexKey a0) -> ParticleIndex
6314  """
6315  return _IMP_atom.Mass_get_value(self, *args)
6316 
6317  def set_value(self, *args):
6318  r"""
6319  set_value(Mass self, FloatKey a0, IMP::Float a1)
6320  set_value(Mass self, IntKey a0, IMP::Int a1)
6321  set_value(Mass self, FloatsKey a0, IMP::Floats a1)
6322  set_value(Mass self, IntsKey a0, IMP::Ints a1)
6323  set_value(Mass self, StringKey a0, IMP::String a1)
6324  set_value(Mass self, ParticleIndexKey a0, Particle a1)
6325  set_value(Mass self, ObjectKey a0, Object a1)
6326  set_value(Mass self, SparseFloatKey a0, IMP::Float a1)
6327  set_value(Mass self, SparseIntKey a0, IMP::Int a1)
6328  set_value(Mass self, SparseStringKey a0, IMP::String a1)
6329  set_value(Mass self, SparseParticleIndexKey a0, ParticleIndex a1)
6330  """
6331  return _IMP_atom.Mass_set_value(self, *args)
6332 
6333  def remove_attribute(self, *args):
6334  r"""
6335  remove_attribute(Mass self, FloatKey a0)
6336  remove_attribute(Mass self, IntKey a0)
6337  remove_attribute(Mass self, FloatsKey a0)
6338  remove_attribute(Mass self, IntsKey a0)
6339  remove_attribute(Mass self, StringKey a0)
6340  remove_attribute(Mass self, ParticleIndexKey a0)
6341  remove_attribute(Mass self, ObjectKey a0)
6342  remove_attribute(Mass self, SparseFloatKey a0)
6343  remove_attribute(Mass self, SparseIntKey a0)
6344  remove_attribute(Mass self, SparseStringKey a0)
6345  remove_attribute(Mass self, SparseParticleIndexKey a0)
6346  """
6347  return _IMP_atom.Mass_remove_attribute(self, *args)
6348 
6349  def has_attribute(self, *args):
6350  r"""
6351  has_attribute(Mass self, FloatKey a0) -> bool
6352  has_attribute(Mass self, IntKey a0) -> bool
6353  has_attribute(Mass self, FloatsKey a0) -> bool
6354  has_attribute(Mass self, IntsKey a0) -> bool
6355  has_attribute(Mass self, StringKey a0) -> bool
6356  has_attribute(Mass self, ParticleIndexKey a0) -> bool
6357  has_attribute(Mass self, ObjectKey a0) -> bool
6358  has_attribute(Mass self, SparseFloatKey a0) -> bool
6359  has_attribute(Mass self, SparseIntKey a0) -> bool
6360  has_attribute(Mass self, SparseStringKey a0) -> bool
6361  has_attribute(Mass self, SparseParticleIndexKey a0) -> bool
6362  """
6363  return _IMP_atom.Mass_has_attribute(self, *args)
6364 
6365  def get_derivative(self, a0):
6366  r"""get_derivative(Mass self, FloatKey a0) -> double"""
6367  return _IMP_atom.Mass_get_derivative(self, a0)
6368 
6369  def get_name(self):
6370  r"""get_name(Mass self) -> std::string"""
6371  return _IMP_atom.Mass_get_name(self)
6372 
6373  def clear_caches(self):
6374  r"""clear_caches(Mass self)"""
6375  return _IMP_atom.Mass_clear_caches(self)
6376 
6377  def set_name(self, a0):
6378  r"""set_name(Mass self, std::string a0)"""
6379  return _IMP_atom.Mass_set_name(self, a0)
6380 
6381  def set_check_level(self, a0):
6382  r"""set_check_level(Mass self, IMP::CheckLevel a0)"""
6383  return _IMP_atom.Mass_set_check_level(self, a0)
6384 
6385  def add_to_derivative(self, a0, a1, a2):
6386  r"""add_to_derivative(Mass self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6387  return _IMP_atom.Mass_add_to_derivative(self, a0, a1, a2)
6388 
6389  def set_is_optimized(self, a0, a1):
6390  r"""set_is_optimized(Mass self, FloatKey a0, bool a1)"""
6391  return _IMP_atom.Mass_set_is_optimized(self, a0, a1)
6392 
6393  def get_is_optimized(self, a0):
6394  r"""get_is_optimized(Mass self, FloatKey a0) -> bool"""
6395  return _IMP_atom.Mass_get_is_optimized(self, a0)
6396 
6397  def get_check_level(self):
6398  r"""get_check_level(Mass self) -> IMP::CheckLevel"""
6399  return _IMP_atom.Mass_get_check_level(self)
6400 
6401  def __eq__(self, *args):
6402  r"""
6403  __eq__(Mass self, Mass o) -> bool
6404  __eq__(Mass self, Particle d) -> bool
6405  """
6406  return _IMP_atom.Mass___eq__(self, *args)
6407 
6408  def __ne__(self, *args):
6409  r"""
6410  __ne__(Mass self, Mass o) -> bool
6411  __ne__(Mass self, Particle d) -> bool
6412  """
6413  return _IMP_atom.Mass___ne__(self, *args)
6414 
6415  def __le__(self, *args):
6416  r"""
6417  __le__(Mass self, Mass o) -> bool
6418  __le__(Mass self, Particle d) -> bool
6419  """
6420  return _IMP_atom.Mass___le__(self, *args)
6421 
6422  def __lt__(self, *args):
6423  r"""
6424  __lt__(Mass self, Mass o) -> bool
6425  __lt__(Mass self, Particle d) -> bool
6426  """
6427  return _IMP_atom.Mass___lt__(self, *args)
6428 
6429  def __ge__(self, *args):
6430  r"""
6431  __ge__(Mass self, Mass o) -> bool
6432  __ge__(Mass self, Particle d) -> bool
6433  """
6434  return _IMP_atom.Mass___ge__(self, *args)
6435 
6436  def __gt__(self, *args):
6437  r"""
6438  __gt__(Mass self, Mass o) -> bool
6439  __gt__(Mass self, Particle d) -> bool
6440  """
6441  return _IMP_atom.Mass___gt__(self, *args)
6442 
6443  def __hash__(self):
6444  r"""__hash__(Mass self) -> std::size_t"""
6445  return _IMP_atom.Mass___hash__(self)
6446 
6447  def __str__(self):
6448  r"""__str__(Mass self) -> std::string"""
6449  return _IMP_atom.Mass___str__(self)
6450 
6451  def __repr__(self):
6452  r"""__repr__(Mass self) -> std::string"""
6453  return _IMP_atom.Mass___repr__(self)
6454 
6455  def _get_as_binary(self):
6456  r"""_get_as_binary(Mass self) -> PyObject *"""
6457  return _IMP_atom.Mass__get_as_binary(self)
6458 
6459  def _set_from_binary(self, p):
6460  r"""_set_from_binary(Mass self, PyObject * p)"""
6461  return _IMP_atom.Mass__set_from_binary(self, p)
6462 
6463  def __getstate__(self):
6464  p = self._get_as_binary()
6465  if len(self.__dict__) > 1:
6466  d = self.__dict__.copy()
6467  del d['this']
6468  p = (d, p)
6469  return p
6470 
6471  def __setstate__(self, p):
6472  if not hasattr(self, 'this'):
6473  self.__init__()
6474  if isinstance(p, tuple):
6475  d, p = p
6476  self.__dict__.update(d)
6477  return self._set_from_binary(p)
6478 
6479  __swig_destroy__ = _IMP_atom.delete_Mass
6480 
6481 # Register Mass in _IMP_atom:
6482 _IMP_atom.Mass_swigregister(Mass)
6483 class BondedPairFilter(IMP.PairPredicate):
6484  r"""Proxy of C++ IMP::atom::BondedPairFilter class."""
6485 
6486  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6487 
6488  def __init__(self):
6489  r"""__init__(BondedPairFilter self) -> BondedPairFilter"""
6490  _IMP_atom.BondedPairFilter_swiginit(self, _IMP_atom.new_BondedPairFilter())
6491 
6492  def do_get_inputs(self, m, pis):
6493  r"""do_get_inputs(BondedPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6494  return _IMP_atom.BondedPairFilter_do_get_inputs(self, m, pis)
6495 
6496  def get_value(self, *args):
6497  r"""
6498  get_value(BondedPairFilter self, IMP::ParticlePair const & a) -> int
6499  get_value(BondedPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6500  """
6501  return _IMP_atom.BondedPairFilter_get_value(self, *args)
6502 
6503  def get_value_index(self, *args):
6504  r"""
6505  get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
6506  get_value_index(BondedPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6507  """
6508  return _IMP_atom.BondedPairFilter_get_value_index(self, *args)
6509 
6510  def get_version_info(self):
6511  r"""get_version_info(BondedPairFilter self) -> VersionInfo"""
6512  return _IMP_atom.BondedPairFilter_get_version_info(self)
6513  __swig_destroy__ = _IMP_atom.delete_BondedPairFilter
6514 
6515  def __str__(self):
6516  r"""__str__(BondedPairFilter self) -> std::string"""
6517  return _IMP_atom.BondedPairFilter___str__(self)
6518 
6519  def __repr__(self):
6520  r"""__repr__(BondedPairFilter self) -> std::string"""
6521  return _IMP_atom.BondedPairFilter___repr__(self)
6522 
6523  @staticmethod
6524  def get_from(o):
6525  return _object_cast_to_BondedPairFilter(o)
6526 
6527 
6528 # Register BondedPairFilter in _IMP_atom:
6529 _IMP_atom.BondedPairFilter_swigregister(BondedPairFilter)
6530 class Mol2Selector(IMP.Object):
6531  r"""Proxy of C++ IMP::atom::Mol2Selector class."""
6532 
6533  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6534 
6535  def __init__(self, *args, **kwargs):
6536  raise AttributeError("No constructor defined - class is abstract")
6537 
6538  def get_is_selected(self, atom_line):
6539  r"""get_is_selected(Mol2Selector self, std::string const & atom_line) -> bool"""
6540  return _IMP_atom.Mol2Selector_get_is_selected(self, atom_line)
6541  __swig_destroy__ = _IMP_atom.delete_Mol2Selector
6542 
6543  def __str__(self):
6544  r"""__str__(Mol2Selector self) -> std::string"""
6545  return _IMP_atom.Mol2Selector___str__(self)
6546 
6547  def __repr__(self):
6548  r"""__repr__(Mol2Selector self) -> std::string"""
6549  return _IMP_atom.Mol2Selector___repr__(self)
6550 
6551  @staticmethod
6552  def get_from(o):
6553  return _object_cast_to_Mol2Selector(o)
6554 
6555 
6556 # Register Mol2Selector in _IMP_atom:
6557 _IMP_atom.Mol2Selector_swigregister(Mol2Selector)
6558 class AllMol2Selector(Mol2Selector):
6559  r"""Proxy of C++ IMP::atom::AllMol2Selector class."""
6560 
6561  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6562 
6563  def __str__(self):
6564  r"""__str__(AllMol2Selector self) -> std::string"""
6565  return _IMP_atom.AllMol2Selector___str__(self)
6566 
6567  def __repr__(self):
6568  r"""__repr__(AllMol2Selector self) -> std::string"""
6569  return _IMP_atom.AllMol2Selector___repr__(self)
6570 
6571  @staticmethod
6572  def get_from(o):
6573  return _object_cast_to_AllMol2Selector(o)
6574 
6575 
6576  def __init__(self):
6577  r"""__init__(AllMol2Selector self) -> AllMol2Selector"""
6578  _IMP_atom.AllMol2Selector_swiginit(self, _IMP_atom.new_AllMol2Selector())
6579  __swig_destroy__ = _IMP_atom.delete_AllMol2Selector
6580 
6581 # Register AllMol2Selector in _IMP_atom:
6582 _IMP_atom.AllMol2Selector_swigregister(AllMol2Selector)
6583 class NonHydrogenMol2Selector(Mol2Selector):
6584  r"""Proxy of C++ IMP::atom::NonHydrogenMol2Selector class."""
6585 
6586  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6587 
6588  def __str__(self):
6589  r"""__str__(NonHydrogenMol2Selector self) -> std::string"""
6590  return _IMP_atom.NonHydrogenMol2Selector___str__(self)
6591 
6592  def __repr__(self):
6593  r"""__repr__(NonHydrogenMol2Selector self) -> std::string"""
6594  return _IMP_atom.NonHydrogenMol2Selector___repr__(self)
6595 
6596  @staticmethod
6597  def get_from(o):
6598  return _object_cast_to_NonHydrogenMol2Selector(o)
6599 
6600 
6601  def __init__(self):
6602  r"""__init__(NonHydrogenMol2Selector self) -> NonHydrogenMol2Selector"""
6603  _IMP_atom.NonHydrogenMol2Selector_swiginit(self, _IMP_atom.new_NonHydrogenMol2Selector())
6604  __swig_destroy__ = _IMP_atom.delete_NonHydrogenMol2Selector
6605 
6606 # Register NonHydrogenMol2Selector in _IMP_atom:
6607 _IMP_atom.NonHydrogenMol2Selector_swigregister(NonHydrogenMol2Selector)
6608 
6609 def read_mol2(mol2_file, model, mol2sel=None):
6610  r"""read_mol2(TextInput mol2_file, Model model, Mol2Selector mol2sel=None) -> Hierarchy"""
6611  return _IMP_atom.read_mol2(mol2_file, model, mol2sel)
6612 
6613 def write_mol2(rhd, file_name):
6614  r"""write_mol2(Hierarchy rhd, TextOutput file_name)"""
6615  return _IMP_atom.write_mol2(rhd, file_name)
6616 class SecondaryStructureResidue(IMP.Decorator):
6617  r"""Proxy of C++ IMP::atom::SecondaryStructureResidue class."""
6618 
6619  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6620 
6621  def __init__(self, *args):
6622  r"""
6623  __init__(SecondaryStructureResidue self) -> SecondaryStructureResidue
6624  __init__(SecondaryStructureResidue self, Model m, ParticleIndex id) -> SecondaryStructureResidue
6625  __init__(SecondaryStructureResidue self, _ParticleAdaptor d) -> SecondaryStructureResidue
6626  """
6627  _IMP_atom.SecondaryStructureResidue_swiginit(self, _IMP_atom.new_SecondaryStructureResidue(*args))
6628 
6629  def show(self, *args):
6630  r"""show(SecondaryStructureResidue self, _ostream out=std::cout)"""
6631  return _IMP_atom.SecondaryStructureResidue_show(self, *args)
6632 
6633  @staticmethod
6634  def setup_particle(*args):
6635  r"""
6636  setup_particle(Model m, ParticleIndex pi, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6637  setup_particle(_ParticleAdaptor pa, IMP::Float prob_helix, IMP::Float prob_strand, IMP::Float prob_coil) -> SecondaryStructureResidue
6638  setup_particle(Particle res_p) -> SecondaryStructureResidue
6639  """
6640  return _IMP_atom.SecondaryStructureResidue_setup_particle(*args)
6641 
6642  @staticmethod
6643  def get_is_setup(*args):
6644  r"""
6645  get_is_setup(_ParticleAdaptor p) -> bool
6646  get_is_setup(Model m, ParticleIndex pi) -> bool
6647  """
6648  return _IMP_atom.SecondaryStructureResidue_get_is_setup(*args)
6649 
6650  def get_particle(self):
6651  r"""get_particle(SecondaryStructureResidue self) -> Particle"""
6652  return _IMP_atom.SecondaryStructureResidue_get_particle(self)
6653 
6654  def get_all_probabilities(self):
6655  r"""get_all_probabilities(SecondaryStructureResidue self) -> IMP::Floats"""
6656  return _IMP_atom.SecondaryStructureResidue_get_all_probabilities(self)
6657 
6658  def get_prob_helix(self):
6659  r"""get_prob_helix(SecondaryStructureResidue self) -> IMP::Float"""
6660  return _IMP_atom.SecondaryStructureResidue_get_prob_helix(self)
6661 
6662  def set_prob_helix(self, t):
6663  r"""set_prob_helix(SecondaryStructureResidue self, IMP::Float t)"""
6664  return _IMP_atom.SecondaryStructureResidue_set_prob_helix(self, t)
6665 
6666  def get_prob_strand(self):
6667  r"""get_prob_strand(SecondaryStructureResidue self) -> IMP::Float"""
6668  return _IMP_atom.SecondaryStructureResidue_get_prob_strand(self)
6669 
6670  def set_prob_strand(self, t):
6671  r"""set_prob_strand(SecondaryStructureResidue self, IMP::Float t)"""
6672  return _IMP_atom.SecondaryStructureResidue_set_prob_strand(self, t)
6673 
6674  def get_prob_coil(self):
6675  r"""get_prob_coil(SecondaryStructureResidue self) -> IMP::Float"""
6676  return _IMP_atom.SecondaryStructureResidue_get_prob_coil(self)
6677 
6678  def set_prob_coil(self, t):
6679  r"""set_prob_coil(SecondaryStructureResidue self, IMP::Float t)"""
6680  return _IMP_atom.SecondaryStructureResidue_set_prob_coil(self, t)
6681 
6682  @staticmethod
6683  def get_prob_helix_key():
6684  r"""get_prob_helix_key() -> FloatKey"""
6685  return _IMP_atom.SecondaryStructureResidue_get_prob_helix_key()
6686 
6687  @staticmethod
6688  def get_prob_strand_key():
6689  r"""get_prob_strand_key() -> FloatKey"""
6690  return _IMP_atom.SecondaryStructureResidue_get_prob_strand_key()
6691 
6692  @staticmethod
6693  def get_prob_coil_key():
6694  r"""get_prob_coil_key() -> FloatKey"""
6695  return _IMP_atom.SecondaryStructureResidue_get_prob_coil_key()
6696 
6697  def add_attribute(self, *args):
6698  r"""
6699  add_attribute(SecondaryStructureResidue self, FloatKey k, IMP::Float v, bool opt)
6700  add_attribute(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6701  add_attribute(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6702  add_attribute(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6703  add_attribute(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6704  add_attribute(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6705  add_attribute(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6706  add_attribute(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6707  add_attribute(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6708  add_attribute(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6709  add_attribute(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6710  add_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6711  """
6712  return _IMP_atom.SecondaryStructureResidue_add_attribute(self, *args)
6713 
6714  def get_value(self, *args):
6715  r"""
6716  get_value(SecondaryStructureResidue self, FloatKey a0) -> IMP::Float
6717  get_value(SecondaryStructureResidue self, IntKey a0) -> IMP::Int
6718  get_value(SecondaryStructureResidue self, FloatsKey a0) -> IMP::Floats
6719  get_value(SecondaryStructureResidue self, IntsKey a0) -> IMP::Ints
6720  get_value(SecondaryStructureResidue self, StringKey a0) -> IMP::String
6721  get_value(SecondaryStructureResidue self, ParticleIndexKey a0) -> Particle
6722  get_value(SecondaryStructureResidue self, ObjectKey a0) -> Object
6723  get_value(SecondaryStructureResidue self, SparseFloatKey a0) -> IMP::Float
6724  get_value(SecondaryStructureResidue self, SparseIntKey a0) -> IMP::Int
6725  get_value(SecondaryStructureResidue self, SparseStringKey a0) -> IMP::String
6726  get_value(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> ParticleIndex
6727  """
6728  return _IMP_atom.SecondaryStructureResidue_get_value(self, *args)
6729 
6730  def set_value(self, *args):
6731  r"""
6732  set_value(SecondaryStructureResidue self, FloatKey a0, IMP::Float a1)
6733  set_value(SecondaryStructureResidue self, IntKey a0, IMP::Int a1)
6734  set_value(SecondaryStructureResidue self, FloatsKey a0, IMP::Floats a1)
6735  set_value(SecondaryStructureResidue self, IntsKey a0, IMP::Ints a1)
6736  set_value(SecondaryStructureResidue self, StringKey a0, IMP::String a1)
6737  set_value(SecondaryStructureResidue self, ParticleIndexKey a0, Particle a1)
6738  set_value(SecondaryStructureResidue self, ObjectKey a0, Object a1)
6739  set_value(SecondaryStructureResidue self, SparseFloatKey a0, IMP::Float a1)
6740  set_value(SecondaryStructureResidue self, SparseIntKey a0, IMP::Int a1)
6741  set_value(SecondaryStructureResidue self, SparseStringKey a0, IMP::String a1)
6742  set_value(SecondaryStructureResidue self, SparseParticleIndexKey a0, ParticleIndex a1)
6743  """
6744  return _IMP_atom.SecondaryStructureResidue_set_value(self, *args)
6745 
6746  def remove_attribute(self, *args):
6747  r"""
6748  remove_attribute(SecondaryStructureResidue self, FloatKey a0)
6749  remove_attribute(SecondaryStructureResidue self, IntKey a0)
6750  remove_attribute(SecondaryStructureResidue self, FloatsKey a0)
6751  remove_attribute(SecondaryStructureResidue self, IntsKey a0)
6752  remove_attribute(SecondaryStructureResidue self, StringKey a0)
6753  remove_attribute(SecondaryStructureResidue self, ParticleIndexKey a0)
6754  remove_attribute(SecondaryStructureResidue self, ObjectKey a0)
6755  remove_attribute(SecondaryStructureResidue self, SparseFloatKey a0)
6756  remove_attribute(SecondaryStructureResidue self, SparseIntKey a0)
6757  remove_attribute(SecondaryStructureResidue self, SparseStringKey a0)
6758  remove_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0)
6759  """
6760  return _IMP_atom.SecondaryStructureResidue_remove_attribute(self, *args)
6761 
6762  def has_attribute(self, *args):
6763  r"""
6764  has_attribute(SecondaryStructureResidue self, FloatKey a0) -> bool
6765  has_attribute(SecondaryStructureResidue self, IntKey a0) -> bool
6766  has_attribute(SecondaryStructureResidue self, FloatsKey a0) -> bool
6767  has_attribute(SecondaryStructureResidue self, IntsKey a0) -> bool
6768  has_attribute(SecondaryStructureResidue self, StringKey a0) -> bool
6769  has_attribute(SecondaryStructureResidue self, ParticleIndexKey a0) -> bool
6770  has_attribute(SecondaryStructureResidue self, ObjectKey a0) -> bool
6771  has_attribute(SecondaryStructureResidue self, SparseFloatKey a0) -> bool
6772  has_attribute(SecondaryStructureResidue self, SparseIntKey a0) -> bool
6773  has_attribute(SecondaryStructureResidue self, SparseStringKey a0) -> bool
6774  has_attribute(SecondaryStructureResidue self, SparseParticleIndexKey a0) -> bool
6775  """
6776  return _IMP_atom.SecondaryStructureResidue_has_attribute(self, *args)
6777 
6778  def get_derivative(self, a0):
6779  r"""get_derivative(SecondaryStructureResidue self, FloatKey a0) -> double"""
6780  return _IMP_atom.SecondaryStructureResidue_get_derivative(self, a0)
6781 
6782  def get_name(self):
6783  r"""get_name(SecondaryStructureResidue self) -> std::string"""
6784  return _IMP_atom.SecondaryStructureResidue_get_name(self)
6785 
6786  def clear_caches(self):
6787  r"""clear_caches(SecondaryStructureResidue self)"""
6788  return _IMP_atom.SecondaryStructureResidue_clear_caches(self)
6789 
6790  def set_name(self, a0):
6791  r"""set_name(SecondaryStructureResidue self, std::string a0)"""
6792  return _IMP_atom.SecondaryStructureResidue_set_name(self, a0)
6793 
6794  def set_check_level(self, a0):
6795  r"""set_check_level(SecondaryStructureResidue self, IMP::CheckLevel a0)"""
6796  return _IMP_atom.SecondaryStructureResidue_set_check_level(self, a0)
6797 
6798  def add_to_derivative(self, a0, a1, a2):
6799  r"""add_to_derivative(SecondaryStructureResidue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6800  return _IMP_atom.SecondaryStructureResidue_add_to_derivative(self, a0, a1, a2)
6801 
6802  def set_is_optimized(self, a0, a1):
6803  r"""set_is_optimized(SecondaryStructureResidue self, FloatKey a0, bool a1)"""
6804  return _IMP_atom.SecondaryStructureResidue_set_is_optimized(self, a0, a1)
6805 
6806  def get_is_optimized(self, a0):
6807  r"""get_is_optimized(SecondaryStructureResidue self, FloatKey a0) -> bool"""
6808  return _IMP_atom.SecondaryStructureResidue_get_is_optimized(self, a0)
6809 
6810  def get_check_level(self):
6811  r"""get_check_level(SecondaryStructureResidue self) -> IMP::CheckLevel"""
6812  return _IMP_atom.SecondaryStructureResidue_get_check_level(self)
6813 
6814  def __eq__(self, *args):
6815  r"""
6816  __eq__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6817  __eq__(SecondaryStructureResidue self, Particle d) -> bool
6818  """
6819  return _IMP_atom.SecondaryStructureResidue___eq__(self, *args)
6820 
6821  def __ne__(self, *args):
6822  r"""
6823  __ne__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6824  __ne__(SecondaryStructureResidue self, Particle d) -> bool
6825  """
6826  return _IMP_atom.SecondaryStructureResidue___ne__(self, *args)
6827 
6828  def __le__(self, *args):
6829  r"""
6830  __le__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6831  __le__(SecondaryStructureResidue self, Particle d) -> bool
6832  """
6833  return _IMP_atom.SecondaryStructureResidue___le__(self, *args)
6834 
6835  def __lt__(self, *args):
6836  r"""
6837  __lt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6838  __lt__(SecondaryStructureResidue self, Particle d) -> bool
6839  """
6840  return _IMP_atom.SecondaryStructureResidue___lt__(self, *args)
6841 
6842  def __ge__(self, *args):
6843  r"""
6844  __ge__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6845  __ge__(SecondaryStructureResidue self, Particle d) -> bool
6846  """
6847  return _IMP_atom.SecondaryStructureResidue___ge__(self, *args)
6848 
6849  def __gt__(self, *args):
6850  r"""
6851  __gt__(SecondaryStructureResidue self, SecondaryStructureResidue o) -> bool
6852  __gt__(SecondaryStructureResidue self, Particle d) -> bool
6853  """
6854  return _IMP_atom.SecondaryStructureResidue___gt__(self, *args)
6855 
6856  def __hash__(self):
6857  r"""__hash__(SecondaryStructureResidue self) -> std::size_t"""
6858  return _IMP_atom.SecondaryStructureResidue___hash__(self)
6859 
6860  def __str__(self):
6861  r"""__str__(SecondaryStructureResidue self) -> std::string"""
6862  return _IMP_atom.SecondaryStructureResidue___str__(self)
6863 
6864  def __repr__(self):
6865  r"""__repr__(SecondaryStructureResidue self) -> std::string"""
6866  return _IMP_atom.SecondaryStructureResidue___repr__(self)
6867 
6868  def _get_as_binary(self):
6869  r"""_get_as_binary(SecondaryStructureResidue self) -> PyObject *"""
6870  return _IMP_atom.SecondaryStructureResidue__get_as_binary(self)
6871 
6872  def _set_from_binary(self, p):
6873  r"""_set_from_binary(SecondaryStructureResidue self, PyObject * p)"""
6874  return _IMP_atom.SecondaryStructureResidue__set_from_binary(self, p)
6875 
6876  def __getstate__(self):
6877  p = self._get_as_binary()
6878  if len(self.__dict__) > 1:
6879  d = self.__dict__.copy()
6880  del d['this']
6881  p = (d, p)
6882  return p
6883 
6884  def __setstate__(self, p):
6885  if not hasattr(self, 'this'):
6886  self.__init__()
6887  if isinstance(p, tuple):
6888  d, p = p
6889  self.__dict__.update(d)
6890  return self._set_from_binary(p)
6891 
6892  __swig_destroy__ = _IMP_atom.delete_SecondaryStructureResidue
6893 
6894 # Register SecondaryStructureResidue in _IMP_atom:
6895 _IMP_atom.SecondaryStructureResidue_swigregister(SecondaryStructureResidue)
6896 
6897 def setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res=False):
6898  r"""setup_coarse_secondary_structure_residue(IMP::Particles const & ssr_ps, Model mdl, bool winner_takes_all_per_res=False) -> SecondaryStructureResidue"""
6899  return _IMP_atom.setup_coarse_secondary_structure_residue(ssr_ps, mdl, winner_takes_all_per_res)
6900 
6901 def setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res=False):
6902  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"""
6903  return _IMP_atom.setup_coarse_secondary_structure_residues(ssr_ps, mdl, coarse_factor, start_res_num, winner_takes_all_per_res)
6904 
6905 def get_secondary_structure_match_score(ssr1, ssr2):
6906  r"""get_secondary_structure_match_score(SecondaryStructureResidue ssr1, SecondaryStructureResidue ssr2) -> IMP::Float"""
6907  return _IMP_atom.get_secondary_structure_match_score(ssr1, ssr2)
6908 
6909 def read_psipred(*args):
6910  r"""
6911  read_psipred(TextInput inf, Model mdl) -> IMP::atom::SecondaryStructureResidues
6912  read_psipred(TextInput inf, IMP::Particles ps) -> IMP::atom::SecondaryStructureResidues
6913  """
6914  return _IMP_atom.read_psipred(*args)
6915 class _ADopeBase(IMP.PairScore):
6916  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Dope > class."""
6917 
6918  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6919  __repr__ = _swig_repr
6920 
6921  def __init__(self, *args):
6922  r"""
6923  __init__(_ADopeBase self, Dope t0, std::string name="FunctorDistancePairScore %1%") -> _ADopeBase
6924  __init__(_ADopeBase self) -> _ADopeBase
6925  """
6926  _IMP_atom._ADopeBase_swiginit(self, _IMP_atom.new__ADopeBase(*args))
6927 
6928  def do_get_inputs(self, m, pis):
6929  r"""do_get_inputs(_ADopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6930  return _IMP_atom._ADopeBase_do_get_inputs(self, m, pis)
6931 
6932  def get_score_functor(self):
6933  r"""get_score_functor(_ADopeBase self) -> Dope"""
6934  return _IMP_atom._ADopeBase_get_score_functor(self)
6935 
6936  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6937  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"""
6938  return _IMP_atom._ADopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6939 
6940  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6941  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"""
6942  return _IMP_atom._ADopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6943 
6944  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6945  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"""
6946  return _IMP_atom._ADopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6947 
6948  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6949  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"""
6950  return _IMP_atom._ADopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6951 
6952  def get_version_info(self):
6953  r"""get_version_info(_ADopeBase self) -> VersionInfo"""
6954  return _IMP_atom._ADopeBase_get_version_info(self)
6955  __swig_destroy__ = _IMP_atom.delete__ADopeBase
6956 
6957 # Register _ADopeBase in _IMP_atom:
6958 _IMP_atom._ADopeBase_swigregister(_ADopeBase)
6959 class _BDopeBase(IMP.PairScore):
6960  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::DopeType,false,true,false > > class."""
6961 
6962  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6963  __repr__ = _swig_repr
6964 
6965  def __init__(self, *args):
6966  r"""
6967  __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
6968  __init__(_BDopeBase self) -> _BDopeBase
6969  """
6970  _IMP_atom._BDopeBase_swiginit(self, _IMP_atom.new__BDopeBase(*args))
6971 
6972  def do_get_inputs(self, m, pis):
6973  r"""do_get_inputs(_BDopeBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6974  return _IMP_atom._BDopeBase_do_get_inputs(self, m, pis)
6975 
6976  def get_score_functor(self):
6977  r"""get_score_functor(_BDopeBase self) -> _DopeBase"""
6978  return _IMP_atom._BDopeBase_get_score_functor(self)
6979 
6980  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
6981  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"""
6982  return _IMP_atom._BDopeBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
6983 
6984  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
6985  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"""
6986  return _IMP_atom._BDopeBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
6987 
6988  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
6989  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"""
6990  return _IMP_atom._BDopeBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
6991 
6992  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6993  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"""
6994  return _IMP_atom._BDopeBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6995 
6996  def get_version_info(self):
6997  r"""get_version_info(_BDopeBase self) -> VersionInfo"""
6998  return _IMP_atom._BDopeBase_get_version_info(self)
6999  __swig_destroy__ = _IMP_atom.delete__BDopeBase
7000 
7001 # Register _BDopeBase in _IMP_atom:
7002 _IMP_atom._BDopeBase_swigregister(_BDopeBase)
7003 class _ALoopStatisticalBase(IMP.PairScore):
7004  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::LoopStatistical > class."""
7005 
7006  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7007  __repr__ = _swig_repr
7008 
7009  def __init__(self, *args):
7010  r"""
7011  __init__(_ALoopStatisticalBase self, LoopStatistical t0, std::string name="FunctorDistancePairScore %1%") -> _ALoopStatisticalBase
7012  __init__(_ALoopStatisticalBase self) -> _ALoopStatisticalBase
7013  """
7014  _IMP_atom._ALoopStatisticalBase_swiginit(self, _IMP_atom.new__ALoopStatisticalBase(*args))
7015 
7016  def do_get_inputs(self, m, pis):
7017  r"""do_get_inputs(_ALoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7018  return _IMP_atom._ALoopStatisticalBase_do_get_inputs(self, m, pis)
7019 
7020  def get_score_functor(self):
7021  r"""get_score_functor(_ALoopStatisticalBase self) -> LoopStatistical"""
7022  return _IMP_atom._ALoopStatisticalBase_get_score_functor(self)
7023 
7024  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7025  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"""
7026  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7027 
7028  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7029  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"""
7030  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7031 
7032  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7033  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"""
7034  return _IMP_atom._ALoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7035 
7036  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7037  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"""
7038  return _IMP_atom._ALoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7039 
7040  def get_version_info(self):
7041  r"""get_version_info(_ALoopStatisticalBase self) -> VersionInfo"""
7042  return _IMP_atom._ALoopStatisticalBase_get_version_info(self)
7043  __swig_destroy__ = _IMP_atom.delete__ALoopStatisticalBase
7044 
7045 # Register _ALoopStatisticalBase in _IMP_atom:
7046 _IMP_atom._ALoopStatisticalBase_swigregister(_ALoopStatisticalBase)
7047 class _BLoopStatisticalBase(IMP.PairScore):
7048  r"""Proxy of C++ IMP::score_functor::DistancePairScore< IMP::score_functor::Statistical< IMP::atom::LoopStatisticalType,false,true,false > > class."""
7049 
7050  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7051  __repr__ = _swig_repr
7052 
7053  def __init__(self, *args):
7054  r"""
7055  __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
7056  __init__(_BLoopStatisticalBase self) -> _BLoopStatisticalBase
7057  """
7058  _IMP_atom._BLoopStatisticalBase_swiginit(self, _IMP_atom.new__BLoopStatisticalBase(*args))
7059 
7060  def do_get_inputs(self, m, pis):
7061  r"""do_get_inputs(_BLoopStatisticalBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7062  return _IMP_atom._BLoopStatisticalBase_do_get_inputs(self, m, pis)
7063 
7064  def get_score_functor(self):
7065  r"""get_score_functor(_BLoopStatisticalBase self) -> _LoopStatisticalBase"""
7066  return _IMP_atom._BLoopStatisticalBase_get_score_functor(self)
7067 
7068  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7069  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"""
7070  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7071 
7072  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7073  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"""
7074  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7075 
7076  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7077  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"""
7078  return _IMP_atom._BLoopStatisticalBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7079 
7080  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7081  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"""
7082  return _IMP_atom._BLoopStatisticalBase_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7083 
7084  def get_version_info(self):
7085  r"""get_version_info(_BLoopStatisticalBase self) -> VersionInfo"""
7086  return _IMP_atom._BLoopStatisticalBase_get_version_info(self)
7087  __swig_destroy__ = _IMP_atom.delete__BLoopStatisticalBase
7088 
7089 # Register _BLoopStatisticalBase in _IMP_atom:
7090 _IMP_atom._BLoopStatisticalBase_swigregister(_BLoopStatisticalBase)
7091 class _OrientedSoapBase(IMP.PairScore):
7092  r"""Proxy of C++ IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap > class."""
7093 
7094  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7095  __repr__ = _swig_repr
7096 
7097  def __init__(self, *args):
7098  r"""__init__(_OrientedSoapBase self, IMP::score_functor::DistancePairScoreWithCache< IMP::score_functor::OrientedSoap >::DistanceScore const & t0, std::string name="FunctorDistancePairScoreWithCache %1%") -> _OrientedSoapBase"""
7099  _IMP_atom._OrientedSoapBase_swiginit(self, _IMP_atom.new__OrientedSoapBase(*args))
7100 
7101  def do_get_inputs(self, m, pis):
7102  r"""do_get_inputs(_OrientedSoapBase self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7103  return _IMP_atom._OrientedSoapBase_do_get_inputs(self, m, pis)
7104 
7105  def get_score_functor(self):
7106  r"""get_score_functor(_OrientedSoapBase self) -> IMP::score_functor::OrientedSoap &"""
7107  return _IMP_atom._OrientedSoapBase_get_score_functor(self)
7108 
7109  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7110  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"""
7111  return _IMP_atom._OrientedSoapBase_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7112 
7113  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7114  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"""
7115  return _IMP_atom._OrientedSoapBase_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7116 
7117  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7118  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"""
7119  return _IMP_atom._OrientedSoapBase_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7120 
7121  def get_version_info(self):
7122  r"""get_version_info(_OrientedSoapBase self) -> VersionInfo"""
7123  return _IMP_atom._OrientedSoapBase_get_version_info(self)
7124  __swig_destroy__ = _IMP_atom.delete__OrientedSoapBase
7125 
7126 # Register _OrientedSoapBase in _IMP_atom:
7127 _IMP_atom._OrientedSoapBase_swigregister(_OrientedSoapBase)
7128 class _SPSFTB(IMP.PairScore):
7129  r"""Proxy of C++ IMP::score_functor::DistancePairScore< score_functor::Statistical< IMP::atom::ProteinLigandType,true,false > > class."""
7130 
7131  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7132  __repr__ = _swig_repr
7133 
7134  def __init__(self, *args):
7135  r"""
7136  __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
7137  __init__(_SPSFTB self) -> _SPSFTB
7138  """
7139  _IMP_atom._SPSFTB_swiginit(self, _IMP_atom.new__SPSFTB(*args))
7140 
7141  def do_get_inputs(self, m, pis):
7142  r"""do_get_inputs(_SPSFTB self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7143  return _IMP_atom._SPSFTB_do_get_inputs(self, m, pis)
7144 
7145  def get_score_functor(self):
7146  r"""get_score_functor(_SPSFTB self) -> IMP::score_functor::Statistical< IMP::atom::ProteinLigandType,true,false,false > &"""
7147  return _IMP_atom._SPSFTB_get_score_functor(self)
7148 
7149  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7150  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"""
7151  return _IMP_atom._SPSFTB_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7152 
7153  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7154  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"""
7155  return _IMP_atom._SPSFTB_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7156 
7157  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7158  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"""
7159  return _IMP_atom._SPSFTB_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7160 
7161  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7162  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"""
7163  return _IMP_atom._SPSFTB_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7164 
7165  def get_version_info(self):
7166  r"""get_version_info(_SPSFTB self) -> VersionInfo"""
7167  return _IMP_atom._SPSFTB_get_version_info(self)
7168  __swig_destroy__ = _IMP_atom.delete__SPSFTB
7169 
7170 # Register _SPSFTB in _IMP_atom:
7171 _IMP_atom._SPSFTB_swigregister(_SPSFTB)
7172 class _SPSTF(_SPSFTB):
7173  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::ProteinLigandType,true,false > class."""
7174 
7175  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7176  __repr__ = _swig_repr
7177 
7178  def __init__(self, *args):
7179  r"""
7180  __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file) -> _SPSTF
7181  __init__(_SPSTF self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSTF
7182  """
7183  _IMP_atom._SPSTF_swiginit(self, _IMP_atom.new__SPSTF(*args))
7184  __swig_destroy__ = _IMP_atom.delete__SPSTF
7185 
7186 # Register _SPSTF in _IMP_atom:
7187 _IMP_atom._SPSTF_swigregister(_SPSTF)
7188 class _SPSFT(_BDopeBase):
7189  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::DopeType,false,true > class."""
7190 
7191  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7192  __repr__ = _swig_repr
7193 
7194  def __init__(self, *args):
7195  r"""
7196  __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file) -> _SPSFT
7197  __init__(_SPSFT self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFT
7198  """
7199  _IMP_atom._SPSFT_swiginit(self, _IMP_atom.new__SPSFT(*args))
7200  __swig_destroy__ = _IMP_atom.delete__SPSFT
7201 
7202 # Register _SPSFT in _IMP_atom:
7203 _IMP_atom._SPSFT_swigregister(_SPSFT)
7204 class _SPSFTL(_BLoopStatisticalBase):
7205  r"""Proxy of C++ IMP::core::StatisticalPairScore< IMP::atom::LoopStatisticalType,false,true > class."""
7206 
7207  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7208  __repr__ = _swig_repr
7209 
7210  def __init__(self, *args):
7211  r"""
7212  __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file) -> _SPSFTL
7213  __init__(_SPSFTL self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _SPSFTL
7214  """
7215  _IMP_atom._SPSFTL_swiginit(self, _IMP_atom.new__SPSFTL(*args))
7216  __swig_destroy__ = _IMP_atom.delete__SPSFTL
7217 
7218 # Register _SPSFTL in _IMP_atom:
7219 _IMP_atom._SPSFTL_swigregister(_SPSFTL)
7220 class ProteinLigandAtomPairScore(_SPSTF):
7221  r"""Proxy of C++ IMP::atom::ProteinLigandAtomPairScore class."""
7222 
7223  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7224 
7225  def __init__(self, *args):
7226  r"""
7227  __init__(ProteinLigandAtomPairScore self, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandAtomPairScore
7228  __init__(ProteinLigandAtomPairScore self, double threshold, TextInput data_file) -> ProteinLigandAtomPairScore
7229  """
7230  _IMP_atom.ProteinLigandAtomPairScore_swiginit(self, _IMP_atom.new_ProteinLigandAtomPairScore(*args))
7231 
7232  def get_maximum_distance(self):
7233  r"""get_maximum_distance(ProteinLigandAtomPairScore self) -> double"""
7234  return _IMP_atom.ProteinLigandAtomPairScore_get_maximum_distance(self)
7235 
7236  def __str__(self):
7237  r"""__str__(ProteinLigandAtomPairScore self) -> std::string"""
7238  return _IMP_atom.ProteinLigandAtomPairScore___str__(self)
7239 
7240  def __repr__(self):
7241  r"""__repr__(ProteinLigandAtomPairScore self) -> std::string"""
7242  return _IMP_atom.ProteinLigandAtomPairScore___repr__(self)
7243 
7244  @staticmethod
7245  def get_from(o):
7246  return _object_cast_to_ProteinLigandAtomPairScore(o)
7247 
7248  __swig_destroy__ = _IMP_atom.delete_ProteinLigandAtomPairScore
7249 
7250 # Register ProteinLigandAtomPairScore in _IMP_atom:
7251 _IMP_atom.ProteinLigandAtomPairScore_swigregister(ProteinLigandAtomPairScore)
7252 class ProteinLigandRestraint(IMP.container.PairsRestraint):
7253  r"""Proxy of C++ IMP::atom::ProteinLigandRestraint class."""
7254 
7255  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7256 
7257  def __init__(self, *args):
7258  r"""
7259  __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold=std::numeric_limits< double >::max()) -> ProteinLigandRestraint
7260  __init__(ProteinLigandRestraint self, Hierarchy protein, Hierarchy ligand, double threshold, TextInput data_file) -> ProteinLigandRestraint
7261  """
7262  _IMP_atom.ProteinLigandRestraint_swiginit(self, _IMP_atom.new_ProteinLigandRestraint(*args))
7263 
7264  def __str__(self):
7265  r"""__str__(ProteinLigandRestraint self) -> std::string"""
7266  return _IMP_atom.ProteinLigandRestraint___str__(self)
7267 
7268  def __repr__(self):
7269  r"""__repr__(ProteinLigandRestraint self) -> std::string"""
7270  return _IMP_atom.ProteinLigandRestraint___repr__(self)
7271 
7272  @staticmethod
7273  def get_from(o):
7274  return _object_cast_to_ProteinLigandRestraint(o)
7275 
7276  __swig_destroy__ = _IMP_atom.delete_ProteinLigandRestraint
7277 
7278 # Register ProteinLigandRestraint in _IMP_atom:
7279 _IMP_atom.ProteinLigandRestraint_swigregister(ProteinLigandRestraint)
7280 
7282  r"""add_protein_ligand_score_data(Hierarchy h)"""
7283  return _IMP_atom.add_protein_ligand_score_data(h)
7284 class AtomType(IMP._Value):
7285  r"""Proxy of C++ IMP::Key< 8974343 > class."""
7286 
7287  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7288 
7289  def __init__(self, *args):
7290  r"""
7291  __init__(AtomType self) -> AtomType
7292  __init__(AtomType self, std::string const & c, bool is_implicit_add_permitted=True) -> AtomType
7293  __init__(AtomType self, unsigned int i) -> AtomType
7294  """
7295  _IMP_atom.AtomType_swiginit(self, _IMP_atom.new_AtomType(*args))
7296 
7297  @staticmethod
7298  def add_key(sc):
7299  r"""add_key(std::string sc) -> unsigned int"""
7300  return _IMP_atom.AtomType_add_key(sc)
7301 
7302  @staticmethod
7303  def get_key_exists(sc):
7304  r"""get_key_exists(std::string sc) -> bool"""
7305  return _IMP_atom.AtomType_get_key_exists(sc)
7306 
7307  def get_string(self):
7308  r"""get_string(AtomType self) -> std::string const"""
7309  return _IMP_atom.AtomType_get_string(self)
7310 
7311  def __cmp__(self, o):
7312  r"""__cmp__(AtomType self, AtomType o) -> int"""
7313  return _IMP_atom.AtomType___cmp__(self, o)
7314 
7315  def __eq__(self, o):
7316  r"""__eq__(AtomType self, AtomType o) -> bool"""
7317  return _IMP_atom.AtomType___eq__(self, o)
7318 
7319  def __ne__(self, o):
7320  r"""__ne__(AtomType self, AtomType o) -> bool"""
7321  return _IMP_atom.AtomType___ne__(self, o)
7322 
7323  def __lt__(self, o):
7324  r"""__lt__(AtomType self, AtomType o) -> bool"""
7325  return _IMP_atom.AtomType___lt__(self, o)
7326 
7327  def __gt__(self, o):
7328  r"""__gt__(AtomType self, AtomType o) -> bool"""
7329  return _IMP_atom.AtomType___gt__(self, o)
7330 
7331  def __ge__(self, o):
7332  r"""__ge__(AtomType self, AtomType o) -> bool"""
7333  return _IMP_atom.AtomType___ge__(self, o)
7334 
7335  def __le__(self, o):
7336  r"""__le__(AtomType self, AtomType o) -> bool"""
7337  return _IMP_atom.AtomType___le__(self, o)
7338 
7339  def __hash__(self):
7340  r"""__hash__(AtomType self) -> std::size_t"""
7341  return _IMP_atom.AtomType___hash__(self)
7342 
7343  def show(self, *args):
7344  r"""show(AtomType self, _ostream out=std::cout)"""
7345  return _IMP_atom.AtomType_show(self, *args)
7346 
7347  @staticmethod
7348  def add_alias(old_key, new_name):
7349  r"""add_alias(AtomType old_key, std::string new_name) -> AtomType"""
7350  return _IMP_atom.AtomType_add_alias(old_key, new_name)
7351 
7352  @staticmethod
7353  def get_number_of_keys():
7354  r"""get_number_of_keys() -> unsigned int"""
7355  return _IMP_atom.AtomType_get_number_of_keys()
7356 
7357  def get_index(self):
7358  r"""get_index(AtomType self) -> unsigned int"""
7359  return _IMP_atom.AtomType_get_index(self)
7360 
7361  @staticmethod
7362  def show_all(out):
7363  r"""show_all(_ostream out)"""
7364  return _IMP_atom.AtomType_show_all(out)
7365 
7366  @staticmethod
7367  def get_all_strings():
7368  r"""get_all_strings() -> IMP::Vector< std::string >"""
7369  return _IMP_atom.AtomType_get_all_strings()
7370 
7371  @staticmethod
7372  def get_number_unique():
7373  r"""get_number_unique() -> unsigned int"""
7374  return _IMP_atom.AtomType_get_number_unique()
7375 
7376  def __str__(self):
7377  r"""__str__(AtomType self) -> std::string"""
7378  return _IMP_atom.AtomType___str__(self)
7379 
7380  def __repr__(self):
7381  r"""__repr__(AtomType self) -> std::string"""
7382  return _IMP_atom.AtomType___repr__(self)
7383  __swig_destroy__ = _IMP_atom.delete_AtomType
7384 
7385 # Register AtomType in _IMP_atom:
7386 _IMP_atom.AtomType_swigregister(AtomType)
7387 class ResidueType(IMP._Value):
7388  r"""Proxy of C++ IMP::Key< 90784334 > class."""
7389 
7390  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7391 
7392  def __init__(self, *args):
7393  r"""
7394  __init__(ResidueType self) -> ResidueType
7395  __init__(ResidueType self, std::string const & c, bool is_implicit_add_permitted=True) -> ResidueType
7396  __init__(ResidueType self, unsigned int i) -> ResidueType
7397  """
7398  _IMP_atom.ResidueType_swiginit(self, _IMP_atom.new_ResidueType(*args))
7399 
7400  @staticmethod
7401  def add_key(sc):
7402  r"""add_key(std::string sc) -> unsigned int"""
7403  return _IMP_atom.ResidueType_add_key(sc)
7404 
7405  @staticmethod
7406  def get_key_exists(sc):
7407  r"""get_key_exists(std::string sc) -> bool"""
7408  return _IMP_atom.ResidueType_get_key_exists(sc)
7409 
7410  def get_string(self):
7411  r"""get_string(ResidueType self) -> std::string const"""
7412  return _IMP_atom.ResidueType_get_string(self)
7413 
7414  def __cmp__(self, o):
7415  r"""__cmp__(ResidueType self, ResidueType o) -> int"""
7416  return _IMP_atom.ResidueType___cmp__(self, o)
7417 
7418  def __eq__(self, o):
7419  r"""__eq__(ResidueType self, ResidueType o) -> bool"""
7420  return _IMP_atom.ResidueType___eq__(self, o)
7421 
7422  def __ne__(self, o):
7423  r"""__ne__(ResidueType self, ResidueType o) -> bool"""
7424  return _IMP_atom.ResidueType___ne__(self, o)
7425 
7426  def __lt__(self, o):
7427  r"""__lt__(ResidueType self, ResidueType o) -> bool"""
7428  return _IMP_atom.ResidueType___lt__(self, o)
7429 
7430  def __gt__(self, o):
7431  r"""__gt__(ResidueType self, ResidueType o) -> bool"""
7432  return _IMP_atom.ResidueType___gt__(self, o)
7433 
7434  def __ge__(self, o):
7435  r"""__ge__(ResidueType self, ResidueType o) -> bool"""
7436  return _IMP_atom.ResidueType___ge__(self, o)
7437 
7438  def __le__(self, o):
7439  r"""__le__(ResidueType self, ResidueType o) -> bool"""
7440  return _IMP_atom.ResidueType___le__(self, o)
7441 
7442  def __hash__(self):
7443  r"""__hash__(ResidueType self) -> std::size_t"""
7444  return _IMP_atom.ResidueType___hash__(self)
7445 
7446  def show(self, *args):
7447  r"""show(ResidueType self, _ostream out=std::cout)"""
7448  return _IMP_atom.ResidueType_show(self, *args)
7449 
7450  @staticmethod
7451  def add_alias(old_key, new_name):
7452  r"""add_alias(ResidueType old_key, std::string new_name) -> ResidueType"""
7453  return _IMP_atom.ResidueType_add_alias(old_key, new_name)
7454 
7455  @staticmethod
7456  def get_number_of_keys():
7457  r"""get_number_of_keys() -> unsigned int"""
7458  return _IMP_atom.ResidueType_get_number_of_keys()
7459 
7460  def get_index(self):
7461  r"""get_index(ResidueType self) -> unsigned int"""
7462  return _IMP_atom.ResidueType_get_index(self)
7463 
7464  @staticmethod
7465  def show_all(out):
7466  r"""show_all(_ostream out)"""
7467  return _IMP_atom.ResidueType_show_all(out)
7468 
7469  @staticmethod
7470  def get_all_strings():
7471  r"""get_all_strings() -> IMP::Vector< std::string >"""
7472  return _IMP_atom.ResidueType_get_all_strings()
7473 
7474  @staticmethod
7475  def get_number_unique():
7476  r"""get_number_unique() -> unsigned int"""
7477  return _IMP_atom.ResidueType_get_number_unique()
7478 
7479  def __str__(self):
7480  r"""__str__(ResidueType self) -> std::string"""
7481  return _IMP_atom.ResidueType___str__(self)
7482 
7483  def __repr__(self):
7484  r"""__repr__(ResidueType self) -> std::string"""
7485  return _IMP_atom.ResidueType___repr__(self)
7486  __swig_destroy__ = _IMP_atom.delete_ResidueType
7487 
7488 # Register ResidueType in _IMP_atom:
7489 _IMP_atom.ResidueType_swigregister(ResidueType)
7490 class ChainType(IMP._Value):
7491  r"""Proxy of C++ IMP::Key< 90784336 > class."""
7492 
7493  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7494 
7495  def __init__(self, *args):
7496  r"""
7497  __init__(ChainType self) -> ChainType
7498  __init__(ChainType self, std::string const & c, bool is_implicit_add_permitted=True) -> ChainType
7499  __init__(ChainType self, unsigned int i) -> ChainType
7500  """
7501  _IMP_atom.ChainType_swiginit(self, _IMP_atom.new_ChainType(*args))
7502 
7503  @staticmethod
7504  def add_key(sc):
7505  r"""add_key(std::string sc) -> unsigned int"""
7506  return _IMP_atom.ChainType_add_key(sc)
7507 
7508  @staticmethod
7509  def get_key_exists(sc):
7510  r"""get_key_exists(std::string sc) -> bool"""
7511  return _IMP_atom.ChainType_get_key_exists(sc)
7512 
7513  def get_string(self):
7514  r"""get_string(ChainType self) -> std::string const"""
7515  return _IMP_atom.ChainType_get_string(self)
7516 
7517  def __cmp__(self, o):
7518  r"""__cmp__(ChainType self, ChainType o) -> int"""
7519  return _IMP_atom.ChainType___cmp__(self, o)
7520 
7521  def __eq__(self, o):
7522  r"""__eq__(ChainType self, ChainType o) -> bool"""
7523  return _IMP_atom.ChainType___eq__(self, o)
7524 
7525  def __ne__(self, o):
7526  r"""__ne__(ChainType self, ChainType o) -> bool"""
7527  return _IMP_atom.ChainType___ne__(self, o)
7528 
7529  def __lt__(self, o):
7530  r"""__lt__(ChainType self, ChainType o) -> bool"""
7531  return _IMP_atom.ChainType___lt__(self, o)
7532 
7533  def __gt__(self, o):
7534  r"""__gt__(ChainType self, ChainType o) -> bool"""
7535  return _IMP_atom.ChainType___gt__(self, o)
7536 
7537  def __ge__(self, o):
7538  r"""__ge__(ChainType self, ChainType o) -> bool"""
7539  return _IMP_atom.ChainType___ge__(self, o)
7540 
7541  def __le__(self, o):
7542  r"""__le__(ChainType self, ChainType o) -> bool"""
7543  return _IMP_atom.ChainType___le__(self, o)
7544 
7545  def __hash__(self):
7546  r"""__hash__(ChainType self) -> std::size_t"""
7547  return _IMP_atom.ChainType___hash__(self)
7548 
7549  def show(self, *args):
7550  r"""show(ChainType self, _ostream out=std::cout)"""
7551  return _IMP_atom.ChainType_show(self, *args)
7552 
7553  @staticmethod
7554  def add_alias(old_key, new_name):
7555  r"""add_alias(ChainType old_key, std::string new_name) -> ChainType"""
7556  return _IMP_atom.ChainType_add_alias(old_key, new_name)
7557 
7558  @staticmethod
7559  def get_number_of_keys():
7560  r"""get_number_of_keys() -> unsigned int"""
7561  return _IMP_atom.ChainType_get_number_of_keys()
7562 
7563  def get_index(self):
7564  r"""get_index(ChainType self) -> unsigned int"""
7565  return _IMP_atom.ChainType_get_index(self)
7566 
7567  @staticmethod
7568  def show_all(out):
7569  r"""show_all(_ostream out)"""
7570  return _IMP_atom.ChainType_show_all(out)
7571 
7572  @staticmethod
7573  def get_all_strings():
7574  r"""get_all_strings() -> IMP::Vector< std::string >"""
7575  return _IMP_atom.ChainType_get_all_strings()
7576 
7577  @staticmethod
7578  def get_number_unique():
7579  r"""get_number_unique() -> unsigned int"""
7580  return _IMP_atom.ChainType_get_number_unique()
7581 
7582  def __str__(self):
7583  r"""__str__(ChainType self) -> std::string"""
7584  return _IMP_atom.ChainType___str__(self)
7585 
7586  def __repr__(self):
7587  r"""__repr__(ChainType self) -> std::string"""
7588  return _IMP_atom.ChainType___repr__(self)
7589  __swig_destroy__ = _IMP_atom.delete_ChainType
7590 
7591 # Register ChainType in _IMP_atom:
7592 _IMP_atom.ChainType_swigregister(ChainType)
7593 UNKNOWN_ELEMENT = _IMP_atom.UNKNOWN_ELEMENT
7594 
7595 OH = _IMP_atom.OH
7596 
7597 H2O = _IMP_atom.H2O
7598 
7599 H = _IMP_atom.H
7600 
7601 He = _IMP_atom.He
7602 
7603 Li = _IMP_atom.Li
7604 
7605 Be = _IMP_atom.Be
7606 
7607 B = _IMP_atom.B
7608 
7609 C = _IMP_atom.C
7610 
7611 N = _IMP_atom.N
7612 
7613 O = _IMP_atom.O
7614 
7615 F = _IMP_atom.F
7616 
7617 Ne = _IMP_atom.Ne
7618 
7619 Na = _IMP_atom.Na
7620 
7621 Mg = _IMP_atom.Mg
7622 
7623 Al = _IMP_atom.Al
7624 
7625 Si = _IMP_atom.Si
7626 
7627 P = _IMP_atom.P
7628 
7629 S = _IMP_atom.S
7630 
7631 Cl = _IMP_atom.Cl
7632 
7633 Ar = _IMP_atom.Ar
7634 
7635 K = _IMP_atom.K
7636 
7637 Ca = _IMP_atom.Ca
7638 
7639 Sc = _IMP_atom.Sc
7640 
7641 Ti = _IMP_atom.Ti
7642 
7643 V = _IMP_atom.V
7644 
7645 Cr = _IMP_atom.Cr
7646 
7647 Mn = _IMP_atom.Mn
7648 
7649 Fe = _IMP_atom.Fe
7650 
7651 Co = _IMP_atom.Co
7652 
7653 Ni = _IMP_atom.Ni
7654 
7655 Cu = _IMP_atom.Cu
7656 
7657 Zn = _IMP_atom.Zn
7658 
7659 Ga = _IMP_atom.Ga
7660 
7661 Ge = _IMP_atom.Ge
7662 
7663 As = _IMP_atom.As
7664 
7665 Se = _IMP_atom.Se
7666 
7667 Br = _IMP_atom.Br
7668 
7669 Kr = _IMP_atom.Kr
7670 
7671 Rb = _IMP_atom.Rb
7672 
7673 Sr = _IMP_atom.Sr
7674 
7675 Y = _IMP_atom.Y
7676 
7677 Zr = _IMP_atom.Zr
7678 
7679 Nb = _IMP_atom.Nb
7680 
7681 Mo = _IMP_atom.Mo
7682 
7683 Tc = _IMP_atom.Tc
7684 
7685 Ru = _IMP_atom.Ru
7686 
7687 Rh = _IMP_atom.Rh
7688 
7689 Pd = _IMP_atom.Pd
7690 
7691 Ag = _IMP_atom.Ag
7692 
7693 Cd = _IMP_atom.Cd
7694 
7695 In = _IMP_atom.In
7696 
7697 Sn = _IMP_atom.Sn
7698 
7699 Sb = _IMP_atom.Sb
7700 
7701 Te = _IMP_atom.Te
7702 
7703 I = _IMP_atom.I
7704 
7705 Xe = _IMP_atom.Xe
7706 
7707 Cs = _IMP_atom.Cs
7708 
7709 Ba = _IMP_atom.Ba
7710 
7711 La = _IMP_atom.La
7712 
7713 Ce = _IMP_atom.Ce
7714 
7715 Pr = _IMP_atom.Pr
7716 
7717 Nd = _IMP_atom.Nd
7718 
7719 Pm = _IMP_atom.Pm
7720 
7721 Sm = _IMP_atom.Sm
7722 
7723 Eu = _IMP_atom.Eu
7724 
7725 Gd = _IMP_atom.Gd
7726 
7727 Tb = _IMP_atom.Tb
7728 
7729 Dy = _IMP_atom.Dy
7730 
7731 Ho = _IMP_atom.Ho
7732 
7733 Er = _IMP_atom.Er
7734 
7735 Tm = _IMP_atom.Tm
7736 
7737 Yb = _IMP_atom.Yb
7738 
7739 Lu = _IMP_atom.Lu
7740 
7741 Hf = _IMP_atom.Hf
7742 
7743 Ta = _IMP_atom.Ta
7744 
7745 W = _IMP_atom.W
7746 
7747 Re = _IMP_atom.Re
7748 
7749 Os = _IMP_atom.Os
7750 
7751 Ir = _IMP_atom.Ir
7752 
7753 Pt = _IMP_atom.Pt
7754 
7755 Au = _IMP_atom.Au
7756 
7757 Hg = _IMP_atom.Hg
7758 
7759 Tl = _IMP_atom.Tl
7760 
7761 Pb = _IMP_atom.Pb
7762 
7763 Bi = _IMP_atom.Bi
7764 
7765 Po = _IMP_atom.Po
7766 
7767 At = _IMP_atom.At
7768 
7769 Rn = _IMP_atom.Rn
7770 
7771 Fr = _IMP_atom.Fr
7772 
7773 Ra = _IMP_atom.Ra
7774 
7775 Ac = _IMP_atom.Ac
7776 
7777 Th = _IMP_atom.Th
7778 
7779 Pa = _IMP_atom.Pa
7780 
7781 U = _IMP_atom.U
7782 
7783 Np = _IMP_atom.Np
7784 
7785 Pu = _IMP_atom.Pu
7786 
7787 Am = _IMP_atom.Am
7788 
7789 Cm = _IMP_atom.Cm
7790 
7791 Bk = _IMP_atom.Bk
7792 
7793 Cf = _IMP_atom.Cf
7794 
7795 Es = _IMP_atom.Es
7796 
7797 Fm = _IMP_atom.Fm
7798 
7799 Md = _IMP_atom.Md
7800 
7801 No = _IMP_atom.No
7802 
7803 Lr = _IMP_atom.Lr
7804 
7805 Db = _IMP_atom.Db
7806 
7807 Jl = _IMP_atom.Jl
7808 
7809 Rf = _IMP_atom.Rf
7810 
7811 NUMBER_OF_ELEMENTS = _IMP_atom.NUMBER_OF_ELEMENTS
7812 
7813 
7814 def hash_value(e):
7815  r"""hash_value(IMP::atom::Element e) -> size_t"""
7816  return _IMP_atom.hash_value(e)
7817 class ElementTable(object):
7818  r"""Proxy of C++ IMP::atom::ElementTable class."""
7819 
7820  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7821  __repr__ = _swig_repr
7822 
7823  def __init__(self):
7824  r"""__init__(ElementTable self) -> ElementTable"""
7825  _IMP_atom.ElementTable_swiginit(self, _IMP_atom.new_ElementTable())
7826 
7827  def get_element(self, s):
7828  r"""get_element(ElementTable self, std::string const & s) -> IMP::atom::Element"""
7829  return _IMP_atom.ElementTable_get_element(self, s)
7830 
7831  def get_name(self, e):
7832  r"""get_name(ElementTable self, IMP::atom::Element e) -> std::string"""
7833  return _IMP_atom.ElementTable_get_name(self, e)
7834 
7835  def get_mass(self, e):
7836  r"""get_mass(ElementTable self, IMP::atom::Element e) -> IMP::Float"""
7837  return _IMP_atom.ElementTable_get_mass(self, e)
7838  __swig_destroy__ = _IMP_atom.delete_ElementTable
7839 
7840 # Register ElementTable in _IMP_atom:
7841 _IMP_atom.ElementTable_swigregister(ElementTable)
7842 
7843 def get_element_table():
7844  r"""get_element_table() -> ElementTable"""
7845  return _IMP_atom.get_element_table()
7846 class Atom(Hierarchy):
7847  r"""Proxy of C++ IMP::atom::Atom class."""
7848 
7849  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7850 
7851  def __init__(self, *args):
7852  r"""
7853  __init__(Atom self) -> Atom
7854  __init__(Atom self, Model m, ParticleIndex id) -> Atom
7855  __init__(Atom self, _ParticleAdaptor d) -> Atom
7856  """
7857  _IMP_atom.Atom_swiginit(self, _IMP_atom.new_Atom(*args))
7858 
7859  def show(self, *args):
7860  r"""show(Atom self, _ostream out=std::cout)"""
7861  return _IMP_atom.Atom_show(self, *args)
7862 
7863  @staticmethod
7864  def setup_particle(*args):
7865  r"""
7866  setup_particle(Model m, ParticleIndex pi, Atom other) -> Atom
7867  setup_particle(_ParticleAdaptor pa, Atom other) -> Atom
7868  setup_particle(Model m, ParticleIndex pi, AtomType atom_type) -> Atom
7869  setup_particle(_ParticleAdaptor pa, AtomType atom_type) -> Atom
7870  """
7871  return _IMP_atom.Atom_setup_particle(*args)
7872 
7873  @staticmethod
7874  def get_is_setup(*args):
7875  r"""
7876  get_is_setup(_ParticleAdaptor p) -> bool
7877  get_is_setup(Model m, ParticleIndex pi) -> bool
7878  """
7879  return _IMP_atom.Atom_get_is_setup(*args)
7880 
7881  def get_atom_type(self):
7882  r"""get_atom_type(Atom self) -> AtomType"""
7883  return _IMP_atom.Atom_get_atom_type(self)
7884 
7885  def set_atom_type(self, t):
7886  r"""set_atom_type(Atom self, AtomType t)"""
7887  return _IMP_atom.Atom_set_atom_type(self, t)
7888 
7889  def get_element(self):
7890  r"""get_element(Atom self) -> IMP::atom::Element"""
7891  return _IMP_atom.Atom_get_element(self)
7892 
7893  def set_element(self, e):
7894  r"""set_element(Atom self, IMP::atom::Element e)"""
7895  return _IMP_atom.Atom_set_element(self, e)
7896 
7897  def get_occupancy(self):
7898  r"""get_occupancy(Atom self) -> double"""
7899  return _IMP_atom.Atom_get_occupancy(self)
7900 
7901  def set_occupancy(self, occupancy):
7902  r"""set_occupancy(Atom self, double occupancy)"""
7903  return _IMP_atom.Atom_set_occupancy(self, occupancy)
7904 
7905  def get_temperature_factor(self):
7906  r"""get_temperature_factor(Atom self) -> double"""
7907  return _IMP_atom.Atom_get_temperature_factor(self)
7908 
7909  def set_temperature_factor(self, tempFactor):
7910  r"""set_temperature_factor(Atom self, double tempFactor)"""
7911  return _IMP_atom.Atom_set_temperature_factor(self, tempFactor)
7912 
7913  def get_input_index(self):
7914  r"""get_input_index(Atom self) -> IMP::Int"""
7915  return _IMP_atom.Atom_get_input_index(self)
7916 
7917  def set_input_index(self, t):
7918  r"""set_input_index(Atom self, IMP::Int t)"""
7919  return _IMP_atom.Atom_set_input_index(self, t)
7920 
7921  @staticmethod
7922  def get_atom_type_key():
7923  r"""get_atom_type_key() -> IntKey"""
7924  return _IMP_atom.Atom_get_atom_type_key()
7925 
7926  @staticmethod
7927  def get_element_key():
7928  r"""get_element_key() -> IntKey"""
7929  return _IMP_atom.Atom_get_element_key()
7930 
7931  @staticmethod
7932  def get_input_index_key():
7933  r"""get_input_index_key() -> IntKey"""
7934  return _IMP_atom.Atom_get_input_index_key()
7935 
7936  @staticmethod
7937  def get_occupancy_key():
7938  r"""get_occupancy_key() -> FloatKey"""
7939  return _IMP_atom.Atom_get_occupancy_key()
7940 
7941  @staticmethod
7942  def get_temperature_factor_key():
7943  r"""get_temperature_factor_key() -> FloatKey"""
7944  return _IMP_atom.Atom_get_temperature_factor_key()
7945 
7946  def add_attribute(self, *args):
7947  r"""
7948  add_attribute(Atom self, FloatKey k, IMP::Float v, bool opt)
7949  add_attribute(Atom self, FloatKey a0, IMP::Float a1)
7950  add_attribute(Atom self, IntKey a0, IMP::Int a1)
7951  add_attribute(Atom self, FloatsKey a0, IMP::Floats a1)
7952  add_attribute(Atom self, IntsKey a0, IMP::Ints a1)
7953  add_attribute(Atom self, StringKey a0, IMP::String a1)
7954  add_attribute(Atom self, ParticleIndexKey a0, Particle a1)
7955  add_attribute(Atom self, ObjectKey a0, Object a1)
7956  add_attribute(Atom self, SparseFloatKey a0, IMP::Float a1)
7957  add_attribute(Atom self, SparseIntKey a0, IMP::Int a1)
7958  add_attribute(Atom self, SparseStringKey a0, IMP::String a1)
7959  add_attribute(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7960  """
7961  return _IMP_atom.Atom_add_attribute(self, *args)
7962 
7963  def get_value(self, *args):
7964  r"""
7965  get_value(Atom self, FloatKey a0) -> IMP::Float
7966  get_value(Atom self, IntKey a0) -> IMP::Int
7967  get_value(Atom self, FloatsKey a0) -> IMP::Floats
7968  get_value(Atom self, IntsKey a0) -> IMP::Ints
7969  get_value(Atom self, StringKey a0) -> IMP::String
7970  get_value(Atom self, ParticleIndexKey a0) -> Particle
7971  get_value(Atom self, ObjectKey a0) -> Object
7972  get_value(Atom self, SparseFloatKey a0) -> IMP::Float
7973  get_value(Atom self, SparseIntKey a0) -> IMP::Int
7974  get_value(Atom self, SparseStringKey a0) -> IMP::String
7975  get_value(Atom self, SparseParticleIndexKey a0) -> ParticleIndex
7976  """
7977  return _IMP_atom.Atom_get_value(self, *args)
7978 
7979  def set_value(self, *args):
7980  r"""
7981  set_value(Atom self, FloatKey a0, IMP::Float a1)
7982  set_value(Atom self, IntKey a0, IMP::Int a1)
7983  set_value(Atom self, FloatsKey a0, IMP::Floats a1)
7984  set_value(Atom self, IntsKey a0, IMP::Ints a1)
7985  set_value(Atom self, StringKey a0, IMP::String a1)
7986  set_value(Atom self, ParticleIndexKey a0, Particle a1)
7987  set_value(Atom self, ObjectKey a0, Object a1)
7988  set_value(Atom self, SparseFloatKey a0, IMP::Float a1)
7989  set_value(Atom self, SparseIntKey a0, IMP::Int a1)
7990  set_value(Atom self, SparseStringKey a0, IMP::String a1)
7991  set_value(Atom self, SparseParticleIndexKey a0, ParticleIndex a1)
7992  """
7993  return _IMP_atom.Atom_set_value(self, *args)
7994 
7995  def remove_attribute(self, *args):
7996  r"""
7997  remove_attribute(Atom self, FloatKey a0)
7998  remove_attribute(Atom self, IntKey a0)
7999  remove_attribute(Atom self, FloatsKey a0)
8000  remove_attribute(Atom self, IntsKey a0)
8001  remove_attribute(Atom self, StringKey a0)
8002  remove_attribute(Atom self, ParticleIndexKey a0)
8003  remove_attribute(Atom self, ObjectKey a0)
8004  remove_attribute(Atom self, SparseFloatKey a0)
8005  remove_attribute(Atom self, SparseIntKey a0)
8006  remove_attribute(Atom self, SparseStringKey a0)
8007  remove_attribute(Atom self, SparseParticleIndexKey a0)
8008  """
8009  return _IMP_atom.Atom_remove_attribute(self, *args)
8010 
8011  def has_attribute(self, *args):
8012  r"""
8013  has_attribute(Atom self, FloatKey a0) -> bool
8014  has_attribute(Atom self, IntKey a0) -> bool
8015  has_attribute(Atom self, FloatsKey a0) -> bool
8016  has_attribute(Atom self, IntsKey a0) -> bool
8017  has_attribute(Atom self, StringKey a0) -> bool
8018  has_attribute(Atom self, ParticleIndexKey a0) -> bool
8019  has_attribute(Atom self, ObjectKey a0) -> bool
8020  has_attribute(Atom self, SparseFloatKey a0) -> bool
8021  has_attribute(Atom self, SparseIntKey a0) -> bool
8022  has_attribute(Atom self, SparseStringKey a0) -> bool
8023  has_attribute(Atom self, SparseParticleIndexKey a0) -> bool
8024  """
8025  return _IMP_atom.Atom_has_attribute(self, *args)
8026 
8027  def get_derivative(self, a0):
8028  r"""get_derivative(Atom self, FloatKey a0) -> double"""
8029  return _IMP_atom.Atom_get_derivative(self, a0)
8030 
8031  def get_name(self):
8032  r"""get_name(Atom self) -> std::string"""
8033  return _IMP_atom.Atom_get_name(self)
8034 
8035  def clear_caches(self):
8036  r"""clear_caches(Atom self)"""
8037  return _IMP_atom.Atom_clear_caches(self)
8038 
8039  def set_name(self, a0):
8040  r"""set_name(Atom self, std::string a0)"""
8041  return _IMP_atom.Atom_set_name(self, a0)
8042 
8043  def set_check_level(self, a0):
8044  r"""set_check_level(Atom self, IMP::CheckLevel a0)"""
8045  return _IMP_atom.Atom_set_check_level(self, a0)
8046 
8047  def add_to_derivative(self, a0, a1, a2):
8048  r"""add_to_derivative(Atom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8049  return _IMP_atom.Atom_add_to_derivative(self, a0, a1, a2)
8050 
8051  def set_is_optimized(self, a0, a1):
8052  r"""set_is_optimized(Atom self, FloatKey a0, bool a1)"""
8053  return _IMP_atom.Atom_set_is_optimized(self, a0, a1)
8054 
8055  def get_is_optimized(self, a0):
8056  r"""get_is_optimized(Atom self, FloatKey a0) -> bool"""
8057  return _IMP_atom.Atom_get_is_optimized(self, a0)
8058 
8059  def get_check_level(self):
8060  r"""get_check_level(Atom self) -> IMP::CheckLevel"""
8061  return _IMP_atom.Atom_get_check_level(self)
8062 
8063  def __eq__(self, *args):
8064  r"""
8065  __eq__(Atom self, Atom o) -> bool
8066  __eq__(Atom self, Particle d) -> bool
8067  """
8068  return _IMP_atom.Atom___eq__(self, *args)
8069 
8070  def __ne__(self, *args):
8071  r"""
8072  __ne__(Atom self, Atom o) -> bool
8073  __ne__(Atom self, Particle d) -> bool
8074  """
8075  return _IMP_atom.Atom___ne__(self, *args)
8076 
8077  def __le__(self, *args):
8078  r"""
8079  __le__(Atom self, Atom o) -> bool
8080  __le__(Atom self, Particle d) -> bool
8081  """
8082  return _IMP_atom.Atom___le__(self, *args)
8083 
8084  def __lt__(self, *args):
8085  r"""
8086  __lt__(Atom self, Atom o) -> bool
8087  __lt__(Atom self, Particle d) -> bool
8088  """
8089  return _IMP_atom.Atom___lt__(self, *args)
8090 
8091  def __ge__(self, *args):
8092  r"""
8093  __ge__(Atom self, Atom o) -> bool
8094  __ge__(Atom self, Particle d) -> bool
8095  """
8096  return _IMP_atom.Atom___ge__(self, *args)
8097 
8098  def __gt__(self, *args):
8099  r"""
8100  __gt__(Atom self, Atom o) -> bool
8101  __gt__(Atom self, Particle d) -> bool
8102  """
8103  return _IMP_atom.Atom___gt__(self, *args)
8104 
8105  def __hash__(self):
8106  r"""__hash__(Atom self) -> std::size_t"""
8107  return _IMP_atom.Atom___hash__(self)
8108 
8109  def __str__(self):
8110  r"""__str__(Atom self) -> std::string"""
8111  return _IMP_atom.Atom___str__(self)
8112 
8113  def __repr__(self):
8114  r"""__repr__(Atom self) -> std::string"""
8115  return _IMP_atom.Atom___repr__(self)
8116 
8117  def _get_as_binary(self):
8118  r"""_get_as_binary(Atom self) -> PyObject *"""
8119  return _IMP_atom.Atom__get_as_binary(self)
8120 
8121  def _set_from_binary(self, p):
8122  r"""_set_from_binary(Atom self, PyObject * p)"""
8123  return _IMP_atom.Atom__set_from_binary(self, p)
8124 
8125  def __getstate__(self):
8126  p = self._get_as_binary()
8127  if len(self.__dict__) > 1:
8128  d = self.__dict__.copy()
8129  del d['this']
8130  p = (d, p)
8131  return p
8132 
8133  def __setstate__(self, p):
8134  if not hasattr(self, 'this'):
8135  self.__init__()
8136  if isinstance(p, tuple):
8137  d, p = p
8138  self.__dict__.update(d)
8139  return self._set_from_binary(p)
8140 
8141  __swig_destroy__ = _IMP_atom.delete_Atom
8142 
8143 # Register Atom in _IMP_atom:
8144 _IMP_atom.Atom_swigregister(Atom)
8145 cvar = _IMP_atom.cvar
8146 AT_UNKNOWN = cvar.AT_UNKNOWN
8147 AT_N = cvar.AT_N
8148 AT_CA = cvar.AT_CA
8149 AT_C = cvar.AT_C
8150 AT_O = cvar.AT_O
8151 AT_H = cvar.AT_H
8152 AT_H1 = cvar.AT_H1
8153 AT_H2 = cvar.AT_H2
8154 AT_H3 = cvar.AT_H3
8155 AT_HA = cvar.AT_HA
8156 AT_HA1 = cvar.AT_HA1
8157 AT_HA2 = cvar.AT_HA2
8158 AT_HA3 = cvar.AT_HA3
8159 AT_CB = cvar.AT_CB
8160 AT_HB = cvar.AT_HB
8161 AT_HB1 = cvar.AT_HB1
8162 AT_HB2 = cvar.AT_HB2
8163 AT_HB3 = cvar.AT_HB3
8164 AT_OXT = cvar.AT_OXT
8165 AT_CH3 = cvar.AT_CH3
8166 AT_CH = cvar.AT_CH
8167 AT_CG = cvar.AT_CG
8168 AT_CG1 = cvar.AT_CG1
8169 AT_CG2 = cvar.AT_CG2
8170 AT_HG = cvar.AT_HG
8171 AT_HG1 = cvar.AT_HG1
8172 AT_HG2 = cvar.AT_HG2
8173 AT_HG3 = cvar.AT_HG3
8174 AT_HG11 = cvar.AT_HG11
8175 AT_HG21 = cvar.AT_HG21
8176 AT_HG31 = cvar.AT_HG31
8177 AT_HG12 = cvar.AT_HG12
8178 AT_HG13 = cvar.AT_HG13
8179 AT_HG22 = cvar.AT_HG22
8180 AT_HG23 = cvar.AT_HG23
8181 AT_HG32 = cvar.AT_HG32
8182 AT_OG = cvar.AT_OG
8183 AT_OG1 = cvar.AT_OG1
8184 AT_SG = cvar.AT_SG
8185 AT_CD = cvar.AT_CD
8186 AT_CD1 = cvar.AT_CD1
8187 AT_CD2 = cvar.AT_CD2
8188 AT_HD = cvar.AT_HD
8189 AT_HD1 = cvar.AT_HD1
8190 AT_HD2 = cvar.AT_HD2
8191 AT_HD3 = cvar.AT_HD3
8192 AT_HD11 = cvar.AT_HD11
8193 AT_HD21 = cvar.AT_HD21
8194 AT_HD31 = cvar.AT_HD31
8195 AT_HD12 = cvar.AT_HD12
8196 AT_HD13 = cvar.AT_HD13
8197 AT_HD22 = cvar.AT_HD22
8198 AT_HD23 = cvar.AT_HD23
8199 AT_HD32 = cvar.AT_HD32
8200 AT_SD = cvar.AT_SD
8201 AT_OD1 = cvar.AT_OD1
8202 AT_OD2 = cvar.AT_OD2
8203 AT_ND1 = cvar.AT_ND1
8204 AT_ND2 = cvar.AT_ND2
8205 AT_CE = cvar.AT_CE
8206 AT_CE1 = cvar.AT_CE1
8207 AT_CE2 = cvar.AT_CE2
8208 AT_CE3 = cvar.AT_CE3
8209 AT_HE = cvar.AT_HE
8210 AT_HE1 = cvar.AT_HE1
8211 AT_HE2 = cvar.AT_HE2
8212 AT_HE3 = cvar.AT_HE3
8213 AT_HE21 = cvar.AT_HE21
8214 AT_HE22 = cvar.AT_HE22
8215 AT_OE1 = cvar.AT_OE1
8216 AT_OE2 = cvar.AT_OE2
8217 AT_NE = cvar.AT_NE
8218 AT_NE1 = cvar.AT_NE1
8219 AT_NE2 = cvar.AT_NE2
8220 AT_CZ = cvar.AT_CZ
8221 AT_CZ2 = cvar.AT_CZ2
8222 AT_CZ3 = cvar.AT_CZ3
8223 AT_NZ = cvar.AT_NZ
8224 AT_HZ = cvar.AT_HZ
8225 AT_HZ1 = cvar.AT_HZ1
8226 AT_HZ2 = cvar.AT_HZ2
8227 AT_HZ3 = cvar.AT_HZ3
8228 AT_CH2 = cvar.AT_CH2
8229 AT_NH1 = cvar.AT_NH1
8230 AT_NH2 = cvar.AT_NH2
8231 AT_OH = cvar.AT_OH
8232 AT_HH = cvar.AT_HH
8233 AT_HH11 = cvar.AT_HH11
8234 AT_HH21 = cvar.AT_HH21
8235 AT_HH2 = cvar.AT_HH2
8236 AT_HH12 = cvar.AT_HH12
8237 AT_HH22 = cvar.AT_HH22
8238 AT_HH13 = cvar.AT_HH13
8239 AT_HH23 = cvar.AT_HH23
8240 AT_HH33 = cvar.AT_HH33
8241 AT_P = cvar.AT_P
8242 AT_OP1 = cvar.AT_OP1
8243 AT_OP2 = cvar.AT_OP2
8244 AT_OP3 = cvar.AT_OP3
8245 AT_O5p = cvar.AT_O5p
8246 AT_C5p = cvar.AT_C5p
8247 AT_H5p = cvar.AT_H5p
8248 AT_H5pp = cvar.AT_H5pp
8249 AT_C4p = cvar.AT_C4p
8250 AT_H4p = cvar.AT_H4p
8251 AT_O4p = cvar.AT_O4p
8252 AT_C1p = cvar.AT_C1p
8253 AT_H1p = cvar.AT_H1p
8254 AT_C3p = cvar.AT_C3p
8255 AT_H3p = cvar.AT_H3p
8256 AT_O3p = cvar.AT_O3p
8257 AT_C2p = cvar.AT_C2p
8258 AT_H2p = cvar.AT_H2p
8259 AT_H2pp = cvar.AT_H2pp
8260 AT_O2p = cvar.AT_O2p
8261 AT_HO2p = cvar.AT_HO2p
8262 AT_N9 = cvar.AT_N9
8263 AT_C8 = cvar.AT_C8
8264 AT_H8 = cvar.AT_H8
8265 AT_N7 = cvar.AT_N7
8266 AT_C5 = cvar.AT_C5
8267 AT_C4 = cvar.AT_C4
8268 AT_N3 = cvar.AT_N3
8269 AT_C2 = cvar.AT_C2
8270 AT_N1 = cvar.AT_N1
8271 AT_C6 = cvar.AT_C6
8272 AT_N6 = cvar.AT_N6
8273 AT_H61 = cvar.AT_H61
8274 AT_H62 = cvar.AT_H62
8275 AT_O6 = cvar.AT_O6
8276 AT_N2 = cvar.AT_N2
8277 AT_NT = cvar.AT_NT
8278 AT_H21 = cvar.AT_H21
8279 AT_H22 = cvar.AT_H22
8280 AT_H6 = cvar.AT_H6
8281 AT_H5 = cvar.AT_H5
8282 AT_O2 = cvar.AT_O2
8283 AT_N4 = cvar.AT_N4
8284 AT_H41 = cvar.AT_H41
8285 AT_H42 = cvar.AT_H42
8286 AT_O4 = cvar.AT_O4
8287 AT_C7 = cvar.AT_C7
8288 AT_H71 = cvar.AT_H71
8289 AT_H72 = cvar.AT_H72
8290 AT_H73 = cvar.AT_H73
8291 AT_O1A = cvar.AT_O1A
8292 AT_O2A = cvar.AT_O2A
8293 AT_O3A = cvar.AT_O3A
8294 AT_O1B = cvar.AT_O1B
8295 AT_O2B = cvar.AT_O2B
8296 AT_O3B = cvar.AT_O3B
8297 AT_CAY = cvar.AT_CAY
8298 AT_CY = cvar.AT_CY
8299 AT_OY = cvar.AT_OY
8300 AT_CAT = cvar.AT_CAT
8301 
8302 
8303 def get_residue(*args):
8304  r"""
8305  get_residue(Hierarchy mhd, unsigned int index) -> Hierarchy
8306  get_residue(Atom d, bool nothrow=False) -> Residue
8307  """
8308  return _IMP_atom.get_residue(*args)
8309 
8310 def get_atom(rd, at):
8311  r"""get_atom(Residue rd, AtomType at) -> Atom"""
8312  return _IMP_atom.get_atom(rd, at)
8313 
8314 def add_atom_type(name, e):
8315  r"""add_atom_type(std::string name, IMP::atom::Element e) -> AtomType"""
8316  return _IMP_atom.add_atom_type(name, e)
8317 
8318 def get_element_for_atom_type(at):
8319  r"""get_element_for_atom_type(AtomType at) -> IMP::atom::Element"""
8320  return _IMP_atom.get_element_for_atom_type(at)
8321 
8322 def get_atom_type_exists(name):
8323  r"""get_atom_type_exists(std::string name) -> bool"""
8324  return _IMP_atom.get_atom_type_exists(name)
8325 class Residue(Hierarchy):
8326  r"""Proxy of C++ IMP::atom::Residue class."""
8327 
8328  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8329 
8330  def __init__(self, *args):
8331  r"""
8332  __init__(Residue self) -> Residue
8333  __init__(Residue self, Model m, ParticleIndex id) -> Residue
8334  __init__(Residue self, _ParticleAdaptor d) -> Residue
8335  """
8336  _IMP_atom.Residue_swiginit(self, _IMP_atom.new_Residue(*args))
8337 
8338  def show(self, *args):
8339  r"""show(Residue self, _ostream out=std::cout)"""
8340  return _IMP_atom.Residue_show(self, *args)
8341 
8342  @staticmethod
8343  def setup_particle(*args):
8344  r"""
8345  setup_particle(Model m, ParticleIndex pi, ResidueType t, int index, int insertion_code) -> Residue
8346  setup_particle(_ParticleAdaptor pa, ResidueType t, int index, int insertion_code) -> Residue
8347  setup_particle(Model m, ParticleIndex pi, ResidueType t, int index) -> Residue
8348  setup_particle(_ParticleAdaptor pa, ResidueType t, int index) -> Residue
8349  setup_particle(Model m, ParticleIndex pi, ResidueType t) -> Residue
8350  setup_particle(_ParticleAdaptor pa, ResidueType t) -> Residue
8351  setup_particle(Model m, ParticleIndex pi, Residue other) -> Residue
8352  setup_particle(_ParticleAdaptor pa, Residue other) -> Residue
8353  """
8354  return _IMP_atom.Residue_setup_particle(*args)
8355 
8356  @staticmethod
8357  def get_is_setup(*args):
8358  r"""
8359  get_is_setup(_ParticleAdaptor p) -> bool
8360  get_is_setup(Model m, ParticleIndex pi) -> bool
8361  """
8362  return _IMP_atom.Residue_get_is_setup(*args)
8363 
8364  def get_residue_type(self):
8365  r"""get_residue_type(Residue self) -> ResidueType"""
8366  return _IMP_atom.Residue_get_residue_type(self)
8367 
8368  def set_residue_type(self, t):
8369  r"""set_residue_type(Residue self, ResidueType t)"""
8370  return _IMP_atom.Residue_set_residue_type(self, t)
8371 
8372  def get_is_protein(self):
8373  r"""get_is_protein(Residue self) -> bool"""
8374  return _IMP_atom.Residue_get_is_protein(self)
8375 
8376  def get_is_dna(self):
8377  r"""get_is_dna(Residue self) -> bool"""
8378  return _IMP_atom.Residue_get_is_dna(self)
8379 
8380  def get_is_rna(self):
8381  r"""get_is_rna(Residue self) -> bool"""
8382  return _IMP_atom.Residue_get_is_rna(self)
8383 
8384  def get_index(self):
8385  r"""get_index(Residue self) -> IMP::Int"""
8386  return _IMP_atom.Residue_get_index(self)
8387 
8388  def set_index(self, t):
8389  r"""set_index(Residue self, IMP::Int t)"""
8390  return _IMP_atom.Residue_set_index(self, t)
8391 
8392  def get_insertion_code(self):
8393  r"""get_insertion_code(Residue self) -> char"""
8394  return _IMP_atom.Residue_get_insertion_code(self)
8395 
8396  def set_insertion_code(self, insertion_code):
8397  r"""set_insertion_code(Residue self, char insertion_code)"""
8398  return _IMP_atom.Residue_set_insertion_code(self, insertion_code)
8399 
8400  @staticmethod
8401  def get_index_key():
8402  r"""get_index_key() -> IntKey"""
8403  return _IMP_atom.Residue_get_index_key()
8404 
8405  @staticmethod
8406  def get_residue_type_key():
8407  r"""get_residue_type_key() -> IntKey"""
8408  return _IMP_atom.Residue_get_residue_type_key()
8409 
8410  @staticmethod
8411  def get_insertion_code_key():
8412  r"""get_insertion_code_key() -> IntKey"""
8413  return _IMP_atom.Residue_get_insertion_code_key()
8414 
8415  @staticmethod
8416  def get_type_changed_key():
8417  r"""get_type_changed_key() -> TriggerKey"""
8418  return _IMP_atom.Residue_get_type_changed_key()
8419 
8420  def add_attribute(self, *args):
8421  r"""
8422  add_attribute(Residue self, FloatKey k, IMP::Float v, bool opt)
8423  add_attribute(Residue self, FloatKey a0, IMP::Float a1)
8424  add_attribute(Residue self, IntKey a0, IMP::Int a1)
8425  add_attribute(Residue self, FloatsKey a0, IMP::Floats a1)
8426  add_attribute(Residue self, IntsKey a0, IMP::Ints a1)
8427  add_attribute(Residue self, StringKey a0, IMP::String a1)
8428  add_attribute(Residue self, ParticleIndexKey a0, Particle a1)
8429  add_attribute(Residue self, ObjectKey a0, Object a1)
8430  add_attribute(Residue self, SparseFloatKey a0, IMP::Float a1)
8431  add_attribute(Residue self, SparseIntKey a0, IMP::Int a1)
8432  add_attribute(Residue self, SparseStringKey a0, IMP::String a1)
8433  add_attribute(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8434  """
8435  return _IMP_atom.Residue_add_attribute(self, *args)
8436 
8437  def get_value(self, *args):
8438  r"""
8439  get_value(Residue self, FloatKey a0) -> IMP::Float
8440  get_value(Residue self, IntKey a0) -> IMP::Int
8441  get_value(Residue self, FloatsKey a0) -> IMP::Floats
8442  get_value(Residue self, IntsKey a0) -> IMP::Ints
8443  get_value(Residue self, StringKey a0) -> IMP::String
8444  get_value(Residue self, ParticleIndexKey a0) -> Particle
8445  get_value(Residue self, ObjectKey a0) -> Object
8446  get_value(Residue self, SparseFloatKey a0) -> IMP::Float
8447  get_value(Residue self, SparseIntKey a0) -> IMP::Int
8448  get_value(Residue self, SparseStringKey a0) -> IMP::String
8449  get_value(Residue self, SparseParticleIndexKey a0) -> ParticleIndex
8450  """
8451  return _IMP_atom.Residue_get_value(self, *args)
8452 
8453  def set_value(self, *args):
8454  r"""
8455  set_value(Residue self, FloatKey a0, IMP::Float a1)
8456  set_value(Residue self, IntKey a0, IMP::Int a1)
8457  set_value(Residue self, FloatsKey a0, IMP::Floats a1)
8458  set_value(Residue self, IntsKey a0, IMP::Ints a1)
8459  set_value(Residue self, StringKey a0, IMP::String a1)
8460  set_value(Residue self, ParticleIndexKey a0, Particle a1)
8461  set_value(Residue self, ObjectKey a0, Object a1)
8462  set_value(Residue self, SparseFloatKey a0, IMP::Float a1)
8463  set_value(Residue self, SparseIntKey a0, IMP::Int a1)
8464  set_value(Residue self, SparseStringKey a0, IMP::String a1)
8465  set_value(Residue self, SparseParticleIndexKey a0, ParticleIndex a1)
8466  """
8467  return _IMP_atom.Residue_set_value(self, *args)
8468 
8469  def remove_attribute(self, *args):
8470  r"""
8471  remove_attribute(Residue self, FloatKey a0)
8472  remove_attribute(Residue self, IntKey a0)
8473  remove_attribute(Residue self, FloatsKey a0)
8474  remove_attribute(Residue self, IntsKey a0)
8475  remove_attribute(Residue self, StringKey a0)
8476  remove_attribute(Residue self, ParticleIndexKey a0)
8477  remove_attribute(Residue self, ObjectKey a0)
8478  remove_attribute(Residue self, SparseFloatKey a0)
8479  remove_attribute(Residue self, SparseIntKey a0)
8480  remove_attribute(Residue self, SparseStringKey a0)
8481  remove_attribute(Residue self, SparseParticleIndexKey a0)
8482  """
8483  return _IMP_atom.Residue_remove_attribute(self, *args)
8484 
8485  def has_attribute(self, *args):
8486  r"""
8487  has_attribute(Residue self, FloatKey a0) -> bool
8488  has_attribute(Residue self, IntKey a0) -> bool
8489  has_attribute(Residue self, FloatsKey a0) -> bool
8490  has_attribute(Residue self, IntsKey a0) -> bool
8491  has_attribute(Residue self, StringKey a0) -> bool
8492  has_attribute(Residue self, ParticleIndexKey a0) -> bool
8493  has_attribute(Residue self, ObjectKey a0) -> bool
8494  has_attribute(Residue self, SparseFloatKey a0) -> bool
8495  has_attribute(Residue self, SparseIntKey a0) -> bool
8496  has_attribute(Residue self, SparseStringKey a0) -> bool
8497  has_attribute(Residue self, SparseParticleIndexKey a0) -> bool
8498  """
8499  return _IMP_atom.Residue_has_attribute(self, *args)
8500 
8501  def get_derivative(self, a0):
8502  r"""get_derivative(Residue self, FloatKey a0) -> double"""
8503  return _IMP_atom.Residue_get_derivative(self, a0)
8504 
8505  def get_name(self):
8506  r"""get_name(Residue self) -> std::string"""
8507  return _IMP_atom.Residue_get_name(self)
8508 
8509  def clear_caches(self):
8510  r"""clear_caches(Residue self)"""
8511  return _IMP_atom.Residue_clear_caches(self)
8512 
8513  def set_name(self, a0):
8514  r"""set_name(Residue self, std::string a0)"""
8515  return _IMP_atom.Residue_set_name(self, a0)
8516 
8517  def set_check_level(self, a0):
8518  r"""set_check_level(Residue self, IMP::CheckLevel a0)"""
8519  return _IMP_atom.Residue_set_check_level(self, a0)
8520 
8521  def add_to_derivative(self, a0, a1, a2):
8522  r"""add_to_derivative(Residue self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8523  return _IMP_atom.Residue_add_to_derivative(self, a0, a1, a2)
8524 
8525  def set_is_optimized(self, a0, a1):
8526  r"""set_is_optimized(Residue self, FloatKey a0, bool a1)"""
8527  return _IMP_atom.Residue_set_is_optimized(self, a0, a1)
8528 
8529  def get_is_optimized(self, a0):
8530  r"""get_is_optimized(Residue self, FloatKey a0) -> bool"""
8531  return _IMP_atom.Residue_get_is_optimized(self, a0)
8532 
8533  def get_check_level(self):
8534  r"""get_check_level(Residue self) -> IMP::CheckLevel"""
8535  return _IMP_atom.Residue_get_check_level(self)
8536 
8537  def __eq__(self, *args):
8538  r"""
8539  __eq__(Residue self, Residue o) -> bool
8540  __eq__(Residue self, Particle d) -> bool
8541  """
8542  return _IMP_atom.Residue___eq__(self, *args)
8543 
8544  def __ne__(self, *args):
8545  r"""
8546  __ne__(Residue self, Residue o) -> bool
8547  __ne__(Residue self, Particle d) -> bool
8548  """
8549  return _IMP_atom.Residue___ne__(self, *args)
8550 
8551  def __le__(self, *args):
8552  r"""
8553  __le__(Residue self, Residue o) -> bool
8554  __le__(Residue self, Particle d) -> bool
8555  """
8556  return _IMP_atom.Residue___le__(self, *args)
8557 
8558  def __lt__(self, *args):
8559  r"""
8560  __lt__(Residue self, Residue o) -> bool
8561  __lt__(Residue self, Particle d) -> bool
8562  """
8563  return _IMP_atom.Residue___lt__(self, *args)
8564 
8565  def __ge__(self, *args):
8566  r"""
8567  __ge__(Residue self, Residue o) -> bool
8568  __ge__(Residue self, Particle d) -> bool
8569  """
8570  return _IMP_atom.Residue___ge__(self, *args)
8571 
8572  def __gt__(self, *args):
8573  r"""
8574  __gt__(Residue self, Residue o) -> bool
8575  __gt__(Residue self, Particle d) -> bool
8576  """
8577  return _IMP_atom.Residue___gt__(self, *args)
8578 
8579  def __hash__(self):
8580  r"""__hash__(Residue self) -> std::size_t"""
8581  return _IMP_atom.Residue___hash__(self)
8582 
8583  def __str__(self):
8584  r"""__str__(Residue self) -> std::string"""
8585  return _IMP_atom.Residue___str__(self)
8586 
8587  def __repr__(self):
8588  r"""__repr__(Residue self) -> std::string"""
8589  return _IMP_atom.Residue___repr__(self)
8590 
8591  def _get_as_binary(self):
8592  r"""_get_as_binary(Residue self) -> PyObject *"""
8593  return _IMP_atom.Residue__get_as_binary(self)
8594 
8595  def _set_from_binary(self, p):
8596  r"""_set_from_binary(Residue self, PyObject * p)"""
8597  return _IMP_atom.Residue__set_from_binary(self, p)
8598 
8599  def __getstate__(self):
8600  p = self._get_as_binary()
8601  if len(self.__dict__) > 1:
8602  d = self.__dict__.copy()
8603  del d['this']
8604  p = (d, p)
8605  return p
8606 
8607  def __setstate__(self, p):
8608  if not hasattr(self, 'this'):
8609  self.__init__()
8610  if isinstance(p, tuple):
8611  d, p = p
8612  self.__dict__.update(d)
8613  return self._set_from_binary(p)
8614 
8615  __swig_destroy__ = _IMP_atom.delete_Residue
8616 
8617 # Register Residue in _IMP_atom:
8618 _IMP_atom.Residue_swigregister(Residue)
8619 UNK = cvar.UNK
8620 GLY = cvar.GLY
8621 ALA = cvar.ALA
8622 VAL = cvar.VAL
8623 LEU = cvar.LEU
8624 ILE = cvar.ILE
8625 SER = cvar.SER
8626 THR = cvar.THR
8627 CYS = cvar.CYS
8628 MET = cvar.MET
8629 PRO = cvar.PRO
8630 ASP = cvar.ASP
8631 ASN = cvar.ASN
8632 GLU = cvar.GLU
8633 GLN = cvar.GLN
8634 LYS = cvar.LYS
8635 ARG = cvar.ARG
8636 HIS = cvar.HIS
8637 PHE = cvar.PHE
8638 TYR = cvar.TYR
8639 TRP = cvar.TRP
8640 ACE = cvar.ACE
8641 NH2 = cvar.NH2
8642 MSE = cvar.MSE
8643 ADE = cvar.ADE
8644 URA = cvar.URA
8645 CYT = cvar.CYT
8646 GUA = cvar.GUA
8647 THY = cvar.THY
8648 DADE = cvar.DADE
8649 DURA = cvar.DURA
8650 DCYT = cvar.DCYT
8651 DGUA = cvar.DGUA
8652 DTHY = cvar.DTHY
8653 HOH = cvar.HOH
8654 HEME = cvar.HEME
8655 POP = cvar.POP
8656 
8657 
8658 def get_next_residue(rd):
8659  r"""get_next_residue(Residue rd) -> Hierarchy"""
8660  return _IMP_atom.get_next_residue(rd)
8661 
8662 def get_previous_residue(rd):
8663  r"""get_previous_residue(Residue rd) -> Hierarchy"""
8664  return _IMP_atom.get_previous_residue(rd)
8665 
8666 def get_one_letter_code(c):
8667  r"""get_one_letter_code(ResidueType c) -> char"""
8668  return _IMP_atom.get_one_letter_code(c)
8669 BALLS = _IMP_atom.BALLS
8670 
8671 DENSITIES = _IMP_atom.DENSITIES
8672 
8673 class Representation(Hierarchy):
8674  r"""Proxy of C++ IMP::atom::Representation class."""
8675 
8676  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8677 
8678  @staticmethod
8679  def setup_particle(*args):
8680  r"""
8681  setup_particle(Model m, ParticleIndex pi) -> Representation
8682  setup_particle(_ParticleAdaptor pa) -> Representation
8683  setup_particle(Model m, ParticleIndex pi, double resolution) -> Representation
8684  setup_particle(_ParticleAdaptor pa, double resolution) -> Representation
8685  setup_particle(Model m, ParticleIndex pi, Representation other) -> Representation
8686  setup_particle(_ParticleAdaptor pa, Representation other) -> Representation
8687  """
8688  return _IMP_atom.Representation_setup_particle(*args)
8689 
8690  def __init__(self, *args):
8691  r"""
8692  __init__(Representation self) -> Representation
8693  __init__(Representation self, Model m, ParticleIndex id) -> Representation
8694  __init__(Representation self, _ParticleAdaptor d) -> Representation
8695  """
8696  _IMP_atom.Representation_swiginit(self, _IMP_atom.new_Representation(*args))
8697 
8698  def show(self, *args):
8699  r"""show(Representation self, _ostream out=std::cout)"""
8700  return _IMP_atom.Representation_show(self, *args)
8701 
8702  @staticmethod
8703  def get_is_setup(*args):
8704  r"""
8705  get_is_setup(_ParticleAdaptor p) -> bool
8706  get_is_setup(Model m, ParticleIndex pi) -> bool
8707  """
8708  return _IMP_atom.Representation_get_is_setup(*args)
8709 
8710  def get_representation(self, *args):
8711  r"""get_representation(Representation self, double resolution, IMP::atom::RepresentationType type=BALLS) -> Hierarchy"""
8712  return _IMP_atom.Representation_get_representation(self, *args)
8713 
8714  def get_representations(self, *args):
8715  r"""get_representations(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::atom::Hierarchies"""
8716  return _IMP_atom.Representation_get_representations(self, *args)
8717 
8718  def add_representation(self, *args):
8719  r"""add_representation(Representation self, _ParticleIndexAdaptor rep, IMP::atom::RepresentationType type=BALLS, double resolution=-1)"""
8720  return _IMP_atom.Representation_add_representation(self, *args)
8721 
8722  def get_resolutions(self, *args):
8723  r"""get_resolutions(Representation self, IMP::atom::RepresentationType type=BALLS) -> IMP::Floats"""
8724  return _IMP_atom.Representation_get_resolutions(self, *args)
8725 
8726  def remove_representation(self, rep):
8727  r"""remove_representation(Representation self, _ParticleIndexAdaptor rep)"""
8728  return _IMP_atom.Representation_remove_representation(self, rep)
8729 
8730  def update_parents(self):
8731  r"""update_parents(Representation self)"""
8732  return _IMP_atom.Representation_update_parents(self)
8733 
8734  def add_attribute(self, *args):
8735  r"""
8736  add_attribute(Representation self, FloatKey k, IMP::Float v, bool opt)
8737  add_attribute(Representation self, FloatKey a0, IMP::Float a1)
8738  add_attribute(Representation self, IntKey a0, IMP::Int a1)
8739  add_attribute(Representation self, FloatsKey a0, IMP::Floats a1)
8740  add_attribute(Representation self, IntsKey a0, IMP::Ints a1)
8741  add_attribute(Representation self, StringKey a0, IMP::String a1)
8742  add_attribute(Representation self, ParticleIndexKey a0, Particle a1)
8743  add_attribute(Representation self, ObjectKey a0, Object a1)
8744  add_attribute(Representation self, SparseFloatKey a0, IMP::Float a1)
8745  add_attribute(Representation self, SparseIntKey a0, IMP::Int a1)
8746  add_attribute(Representation self, SparseStringKey a0, IMP::String a1)
8747  add_attribute(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8748  """
8749  return _IMP_atom.Representation_add_attribute(self, *args)
8750 
8751  def get_value(self, *args):
8752  r"""
8753  get_value(Representation self, FloatKey a0) -> IMP::Float
8754  get_value(Representation self, IntKey a0) -> IMP::Int
8755  get_value(Representation self, FloatsKey a0) -> IMP::Floats
8756  get_value(Representation self, IntsKey a0) -> IMP::Ints
8757  get_value(Representation self, StringKey a0) -> IMP::String
8758  get_value(Representation self, ParticleIndexKey a0) -> Particle
8759  get_value(Representation self, ObjectKey a0) -> Object
8760  get_value(Representation self, SparseFloatKey a0) -> IMP::Float
8761  get_value(Representation self, SparseIntKey a0) -> IMP::Int
8762  get_value(Representation self, SparseStringKey a0) -> IMP::String
8763  get_value(Representation self, SparseParticleIndexKey a0) -> ParticleIndex
8764  """
8765  return _IMP_atom.Representation_get_value(self, *args)
8766 
8767  def set_value(self, *args):
8768  r"""
8769  set_value(Representation self, FloatKey a0, IMP::Float a1)
8770  set_value(Representation self, IntKey a0, IMP::Int a1)
8771  set_value(Representation self, FloatsKey a0, IMP::Floats a1)
8772  set_value(Representation self, IntsKey a0, IMP::Ints a1)
8773  set_value(Representation self, StringKey a0, IMP::String a1)
8774  set_value(Representation self, ParticleIndexKey a0, Particle a1)
8775  set_value(Representation self, ObjectKey a0, Object a1)
8776  set_value(Representation self, SparseFloatKey a0, IMP::Float a1)
8777  set_value(Representation self, SparseIntKey a0, IMP::Int a1)
8778  set_value(Representation self, SparseStringKey a0, IMP::String a1)
8779  set_value(Representation self, SparseParticleIndexKey a0, ParticleIndex a1)
8780  """
8781  return _IMP_atom.Representation_set_value(self, *args)
8782 
8783  def remove_attribute(self, *args):
8784  r"""
8785  remove_attribute(Representation self, FloatKey a0)
8786  remove_attribute(Representation self, IntKey a0)
8787  remove_attribute(Representation self, FloatsKey a0)
8788  remove_attribute(Representation self, IntsKey a0)
8789  remove_attribute(Representation self, StringKey a0)
8790  remove_attribute(Representation self, ParticleIndexKey a0)
8791  remove_attribute(Representation self, ObjectKey a0)
8792  remove_attribute(Representation self, SparseFloatKey a0)
8793  remove_attribute(Representation self, SparseIntKey a0)
8794  remove_attribute(Representation self, SparseStringKey a0)
8795  remove_attribute(Representation self, SparseParticleIndexKey a0)
8796  """
8797  return _IMP_atom.Representation_remove_attribute(self, *args)
8798 
8799  def has_attribute(self, *args):
8800  r"""
8801  has_attribute(Representation self, FloatKey a0) -> bool
8802  has_attribute(Representation self, IntKey a0) -> bool
8803  has_attribute(Representation self, FloatsKey a0) -> bool
8804  has_attribute(Representation self, IntsKey a0) -> bool
8805  has_attribute(Representation self, StringKey a0) -> bool
8806  has_attribute(Representation self, ParticleIndexKey a0) -> bool
8807  has_attribute(Representation self, ObjectKey a0) -> bool
8808  has_attribute(Representation self, SparseFloatKey a0) -> bool
8809  has_attribute(Representation self, SparseIntKey a0) -> bool
8810  has_attribute(Representation self, SparseStringKey a0) -> bool
8811  has_attribute(Representation self, SparseParticleIndexKey a0) -> bool
8812  """
8813  return _IMP_atom.Representation_has_attribute(self, *args)
8814 
8815  def get_derivative(self, a0):
8816  r"""get_derivative(Representation self, FloatKey a0) -> double"""
8817  return _IMP_atom.Representation_get_derivative(self, a0)
8818 
8819  def get_name(self):
8820  r"""get_name(Representation self) -> std::string"""
8821  return _IMP_atom.Representation_get_name(self)
8822 
8823  def clear_caches(self):
8824  r"""clear_caches(Representation self)"""
8825  return _IMP_atom.Representation_clear_caches(self)
8826 
8827  def set_name(self, a0):
8828  r"""set_name(Representation self, std::string a0)"""
8829  return _IMP_atom.Representation_set_name(self, a0)
8830 
8831  def set_check_level(self, a0):
8832  r"""set_check_level(Representation self, IMP::CheckLevel a0)"""
8833  return _IMP_atom.Representation_set_check_level(self, a0)
8834 
8835  def add_to_derivative(self, a0, a1, a2):
8836  r"""add_to_derivative(Representation self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8837  return _IMP_atom.Representation_add_to_derivative(self, a0, a1, a2)
8838 
8839  def set_is_optimized(self, a0, a1):
8840  r"""set_is_optimized(Representation self, FloatKey a0, bool a1)"""
8841  return _IMP_atom.Representation_set_is_optimized(self, a0, a1)
8842 
8843  def get_is_optimized(self, a0):
8844  r"""get_is_optimized(Representation self, FloatKey a0) -> bool"""
8845  return _IMP_atom.Representation_get_is_optimized(self, a0)
8846 
8847  def get_check_level(self):
8848  r"""get_check_level(Representation self) -> IMP::CheckLevel"""
8849  return _IMP_atom.Representation_get_check_level(self)
8850 
8851  def __eq__(self, *args):
8852  r"""
8853  __eq__(Representation self, Representation o) -> bool
8854  __eq__(Representation self, Particle d) -> bool
8855  """
8856  return _IMP_atom.Representation___eq__(self, *args)
8857 
8858  def __ne__(self, *args):
8859  r"""
8860  __ne__(Representation self, Representation o) -> bool
8861  __ne__(Representation self, Particle d) -> bool
8862  """
8863  return _IMP_atom.Representation___ne__(self, *args)
8864 
8865  def __le__(self, *args):
8866  r"""
8867  __le__(Representation self, Representation o) -> bool
8868  __le__(Representation self, Particle d) -> bool
8869  """
8870  return _IMP_atom.Representation___le__(self, *args)
8871 
8872  def __lt__(self, *args):
8873  r"""
8874  __lt__(Representation self, Representation o) -> bool
8875  __lt__(Representation self, Particle d) -> bool
8876  """
8877  return _IMP_atom.Representation___lt__(self, *args)
8878 
8879  def __ge__(self, *args):
8880  r"""
8881  __ge__(Representation self, Representation o) -> bool
8882  __ge__(Representation self, Particle d) -> bool
8883  """
8884  return _IMP_atom.Representation___ge__(self, *args)
8885 
8886  def __gt__(self, *args):
8887  r"""
8888  __gt__(Representation self, Representation o) -> bool
8889  __gt__(Representation self, Particle d) -> bool
8890  """
8891  return _IMP_atom.Representation___gt__(self, *args)
8892 
8893  def __hash__(self):
8894  r"""__hash__(Representation self) -> std::size_t"""
8895  return _IMP_atom.Representation___hash__(self)
8896 
8897  def __str__(self):
8898  r"""__str__(Representation self) -> std::string"""
8899  return _IMP_atom.Representation___str__(self)
8900 
8901  def __repr__(self):
8902  r"""__repr__(Representation self) -> std::string"""
8903  return _IMP_atom.Representation___repr__(self)
8904 
8905  def _get_as_binary(self):
8906  r"""_get_as_binary(Representation self) -> PyObject *"""
8907  return _IMP_atom.Representation__get_as_binary(self)
8908 
8909  def _set_from_binary(self, p):
8910  r"""_set_from_binary(Representation self, PyObject * p)"""
8911  return _IMP_atom.Representation__set_from_binary(self, p)
8912 
8913  def __getstate__(self):
8914  p = self._get_as_binary()
8915  if len(self.__dict__) > 1:
8916  d = self.__dict__.copy()
8917  del d['this']
8918  p = (d, p)
8919  return p
8920 
8921  def __setstate__(self, p):
8922  if not hasattr(self, 'this'):
8923  self.__init__()
8924  if isinstance(p, tuple):
8925  d, p = p
8926  self.__dict__.update(d)
8927  return self._set_from_binary(p)
8928 
8929  __swig_destroy__ = _IMP_atom.delete_Representation
8930 
8931 # Register Representation in _IMP_atom:
8932 _IMP_atom.Representation_swigregister(Representation)
8933 ALL_RESOLUTIONS = cvar.ALL_RESOLUTIONS
8934 
8935 
8936 def get_resolution(*args):
8937  r"""
8938  get_resolution(Model m, ParticleIndex pi) -> double
8939  get_resolution(Hierarchy h) -> double
8940  """
8941  return _IMP_atom.get_resolution(*args)
8942 
8943 def get_representation(h, nothrow=False):
8944  r"""get_representation(Hierarchy h, bool nothrow=False) -> Representation"""
8945  return _IMP_atom.get_representation(h, nothrow)
8946 
8947 def show_with_representations(*args):
8948  r"""show_with_representations(Hierarchy h, _ostream out=std::cout)"""
8949  return _IMP_atom.show_with_representations(*args)
8950 class State(Hierarchy):
8951  r"""Proxy of C++ IMP::atom::State class."""
8952 
8953  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8954 
8955  @staticmethod
8956  def setup_particle(*args):
8957  r"""
8958  setup_particle(Model m, ParticleIndex pi, unsigned int index) -> State
8959  setup_particle(_ParticleAdaptor pa, unsigned int index) -> State
8960  setup_particle(Model m, ParticleIndex pi, State other) -> State
8961  setup_particle(_ParticleAdaptor pa, State other) -> State
8962  """
8963  return _IMP_atom.State_setup_particle(*args)
8964 
8965  def __init__(self, *args):
8966  r"""
8967  __init__(State self) -> State
8968  __init__(State self, Model m, ParticleIndex id) -> State
8969  __init__(State self, _ParticleAdaptor d) -> State
8970  """
8971  _IMP_atom.State_swiginit(self, _IMP_atom.new_State(*args))
8972 
8973  def show(self, *args):
8974  r"""show(State self, _ostream out=std::cout)"""
8975  return _IMP_atom.State_show(self, *args)
8976 
8977  @staticmethod
8978  def get_is_setup(*args):
8979  r"""
8980  get_is_setup(_ParticleAdaptor p) -> bool
8981  get_is_setup(Model m, ParticleIndex pi) -> bool
8982  """
8983  return _IMP_atom.State_get_is_setup(*args)
8984 
8985  def get_state_index(self):
8986  r"""get_state_index(State self) -> unsigned int"""
8987  return _IMP_atom.State_get_state_index(self)
8988 
8989  def add_attribute(self, *args):
8990  r"""
8991  add_attribute(State self, FloatKey k, IMP::Float v, bool opt)
8992  add_attribute(State self, FloatKey a0, IMP::Float a1)
8993  add_attribute(State self, IntKey a0, IMP::Int a1)
8994  add_attribute(State self, FloatsKey a0, IMP::Floats a1)
8995  add_attribute(State self, IntsKey a0, IMP::Ints a1)
8996  add_attribute(State self, StringKey a0, IMP::String a1)
8997  add_attribute(State self, ParticleIndexKey a0, Particle a1)
8998  add_attribute(State self, ObjectKey a0, Object a1)
8999  add_attribute(State self, SparseFloatKey a0, IMP::Float a1)
9000  add_attribute(State self, SparseIntKey a0, IMP::Int a1)
9001  add_attribute(State self, SparseStringKey a0, IMP::String a1)
9002  add_attribute(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9003  """
9004  return _IMP_atom.State_add_attribute(self, *args)
9005 
9006  def get_value(self, *args):
9007  r"""
9008  get_value(State self, FloatKey a0) -> IMP::Float
9009  get_value(State self, IntKey a0) -> IMP::Int
9010  get_value(State self, FloatsKey a0) -> IMP::Floats
9011  get_value(State self, IntsKey a0) -> IMP::Ints
9012  get_value(State self, StringKey a0) -> IMP::String
9013  get_value(State self, ParticleIndexKey a0) -> Particle
9014  get_value(State self, ObjectKey a0) -> Object
9015  get_value(State self, SparseFloatKey a0) -> IMP::Float
9016  get_value(State self, SparseIntKey a0) -> IMP::Int
9017  get_value(State self, SparseStringKey a0) -> IMP::String
9018  get_value(State self, SparseParticleIndexKey a0) -> ParticleIndex
9019  """
9020  return _IMP_atom.State_get_value(self, *args)
9021 
9022  def set_value(self, *args):
9023  r"""
9024  set_value(State self, FloatKey a0, IMP::Float a1)
9025  set_value(State self, IntKey a0, IMP::Int a1)
9026  set_value(State self, FloatsKey a0, IMP::Floats a1)
9027  set_value(State self, IntsKey a0, IMP::Ints a1)
9028  set_value(State self, StringKey a0, IMP::String a1)
9029  set_value(State self, ParticleIndexKey a0, Particle a1)
9030  set_value(State self, ObjectKey a0, Object a1)
9031  set_value(State self, SparseFloatKey a0, IMP::Float a1)
9032  set_value(State self, SparseIntKey a0, IMP::Int a1)
9033  set_value(State self, SparseStringKey a0, IMP::String a1)
9034  set_value(State self, SparseParticleIndexKey a0, ParticleIndex a1)
9035  """
9036  return _IMP_atom.State_set_value(self, *args)
9037 
9038  def remove_attribute(self, *args):
9039  r"""
9040  remove_attribute(State self, FloatKey a0)
9041  remove_attribute(State self, IntKey a0)
9042  remove_attribute(State self, FloatsKey a0)
9043  remove_attribute(State self, IntsKey a0)
9044  remove_attribute(State self, StringKey a0)
9045  remove_attribute(State self, ParticleIndexKey a0)
9046  remove_attribute(State self, ObjectKey a0)
9047  remove_attribute(State self, SparseFloatKey a0)
9048  remove_attribute(State self, SparseIntKey a0)
9049  remove_attribute(State self, SparseStringKey a0)
9050  remove_attribute(State self, SparseParticleIndexKey a0)
9051  """
9052  return _IMP_atom.State_remove_attribute(self, *args)
9053 
9054  def has_attribute(self, *args):
9055  r"""
9056  has_attribute(State self, FloatKey a0) -> bool
9057  has_attribute(State self, IntKey a0) -> bool
9058  has_attribute(State self, FloatsKey a0) -> bool
9059  has_attribute(State self, IntsKey a0) -> bool
9060  has_attribute(State self, StringKey a0) -> bool
9061  has_attribute(State self, ParticleIndexKey a0) -> bool
9062  has_attribute(State self, ObjectKey a0) -> bool
9063  has_attribute(State self, SparseFloatKey a0) -> bool
9064  has_attribute(State self, SparseIntKey a0) -> bool
9065  has_attribute(State self, SparseStringKey a0) -> bool
9066  has_attribute(State self, SparseParticleIndexKey a0) -> bool
9067  """
9068  return _IMP_atom.State_has_attribute(self, *args)
9069 
9070  def get_derivative(self, a0):
9071  r"""get_derivative(State self, FloatKey a0) -> double"""
9072  return _IMP_atom.State_get_derivative(self, a0)
9073 
9074  def get_name(self):
9075  r"""get_name(State self) -> std::string"""
9076  return _IMP_atom.State_get_name(self)
9077 
9078  def clear_caches(self):
9079  r"""clear_caches(State self)"""
9080  return _IMP_atom.State_clear_caches(self)
9081 
9082  def set_name(self, a0):
9083  r"""set_name(State self, std::string a0)"""
9084  return _IMP_atom.State_set_name(self, a0)
9085 
9086  def set_check_level(self, a0):
9087  r"""set_check_level(State self, IMP::CheckLevel a0)"""
9088  return _IMP_atom.State_set_check_level(self, a0)
9089 
9090  def add_to_derivative(self, a0, a1, a2):
9091  r"""add_to_derivative(State self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9092  return _IMP_atom.State_add_to_derivative(self, a0, a1, a2)
9093 
9094  def set_is_optimized(self, a0, a1):
9095  r"""set_is_optimized(State self, FloatKey a0, bool a1)"""
9096  return _IMP_atom.State_set_is_optimized(self, a0, a1)
9097 
9098  def get_is_optimized(self, a0):
9099  r"""get_is_optimized(State self, FloatKey a0) -> bool"""
9100  return _IMP_atom.State_get_is_optimized(self, a0)
9101 
9102  def get_check_level(self):
9103  r"""get_check_level(State self) -> IMP::CheckLevel"""
9104  return _IMP_atom.State_get_check_level(self)
9105 
9106  def __eq__(self, *args):
9107  r"""
9108  __eq__(State self, State o) -> bool
9109  __eq__(State self, Particle d) -> bool
9110  """
9111  return _IMP_atom.State___eq__(self, *args)
9112 
9113  def __ne__(self, *args):
9114  r"""
9115  __ne__(State self, State o) -> bool
9116  __ne__(State self, Particle d) -> bool
9117  """
9118  return _IMP_atom.State___ne__(self, *args)
9119 
9120  def __le__(self, *args):
9121  r"""
9122  __le__(State self, State o) -> bool
9123  __le__(State self, Particle d) -> bool
9124  """
9125  return _IMP_atom.State___le__(self, *args)
9126 
9127  def __lt__(self, *args):
9128  r"""
9129  __lt__(State self, State o) -> bool
9130  __lt__(State self, Particle d) -> bool
9131  """
9132  return _IMP_atom.State___lt__(self, *args)
9133 
9134  def __ge__(self, *args):
9135  r"""
9136  __ge__(State self, State o) -> bool
9137  __ge__(State self, Particle d) -> bool
9138  """
9139  return _IMP_atom.State___ge__(self, *args)
9140 
9141  def __gt__(self, *args):
9142  r"""
9143  __gt__(State self, State o) -> bool
9144  __gt__(State self, Particle d) -> bool
9145  """
9146  return _IMP_atom.State___gt__(self, *args)
9147 
9148  def __hash__(self):
9149  r"""__hash__(State self) -> std::size_t"""
9150  return _IMP_atom.State___hash__(self)
9151 
9152  def __str__(self):
9153  r"""__str__(State self) -> std::string"""
9154  return _IMP_atom.State___str__(self)
9155 
9156  def __repr__(self):
9157  r"""__repr__(State self) -> std::string"""
9158  return _IMP_atom.State___repr__(self)
9159 
9160  def _get_as_binary(self):
9161  r"""_get_as_binary(State self) -> PyObject *"""
9162  return _IMP_atom.State__get_as_binary(self)
9163 
9164  def _set_from_binary(self, p):
9165  r"""_set_from_binary(State self, PyObject * p)"""
9166  return _IMP_atom.State__set_from_binary(self, p)
9167 
9168  def __getstate__(self):
9169  p = self._get_as_binary()
9170  if len(self.__dict__) > 1:
9171  d = self.__dict__.copy()
9172  del d['this']
9173  p = (d, p)
9174  return p
9175 
9176  def __setstate__(self, p):
9177  if not hasattr(self, 'this'):
9178  self.__init__()
9179  if isinstance(p, tuple):
9180  d, p = p
9181  self.__dict__.update(d)
9182  return self._set_from_binary(p)
9183 
9184  __swig_destroy__ = _IMP_atom.delete_State
9185 
9186 # Register State in _IMP_atom:
9187 _IMP_atom.State_swigregister(State)
9188 
9189 def get_state_index(h):
9190  r"""get_state_index(Hierarchy h) -> int"""
9191  return _IMP_atom.get_state_index(h)
9192 
9193 def get_phi_dihedral_atoms(rd):
9194  r"""get_phi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9195  return _IMP_atom.get_phi_dihedral_atoms(rd)
9196 
9197 def get_psi_dihedral_atoms(rd):
9198  r"""get_psi_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9199  return _IMP_atom.get_psi_dihedral_atoms(rd)
9200 
9201 def get_omega_dihedral_atoms(rd):
9202  r"""get_omega_dihedral_atoms(Residue rd) -> IMP::atom::Atoms"""
9203  return _IMP_atom.get_omega_dihedral_atoms(rd)
9204 
9206  r"""get_chi_dihedral_atom_types(ResidueType rt) -> IMP::Vector< IMP::atom::AtomTypes >"""
9207  return _IMP_atom.get_chi_dihedral_atom_types(rt)
9208 
9209 def get_chi_dihedral_atoms(rd):
9210  r"""get_chi_dihedral_atoms(Residue rd) -> IMP::Vector< IMP::atom::Atoms >"""
9211  return _IMP_atom.get_chi_dihedral_atoms(rd)
9212 
9214  r"""get_chi_dihedral_particle_indexes(Residue rd) -> IMP::ParticleIndexQuads"""
9215  return _IMP_atom.get_chi_dihedral_particle_indexes(rd)
9216 class Molecule(Hierarchy):
9217  r"""Proxy of C++ IMP::atom::Molecule class."""
9218 
9219  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9220 
9221  def __init__(self, *args):
9222  r"""
9223  __init__(Molecule self) -> Molecule
9224  __init__(Molecule self, Model m, ParticleIndex id) -> Molecule
9225  __init__(Molecule self, _ParticleAdaptor d) -> Molecule
9226  """
9227  _IMP_atom.Molecule_swiginit(self, _IMP_atom.new_Molecule(*args))
9228 
9229  def show(self, *args):
9230  r"""show(Molecule self, _ostream out=std::cout)"""
9231  return _IMP_atom.Molecule_show(self, *args)
9232 
9233  @staticmethod
9234  def setup_particle(*args):
9235  r"""
9236  setup_particle(Model m, ParticleIndex pi) -> Molecule
9237  setup_particle(_ParticleAdaptor pa) -> Molecule
9238  setup_particle(Model m, ParticleIndex pi, Molecule other) -> Molecule
9239  setup_particle(_ParticleAdaptor pa, Molecule other) -> Molecule
9240  """
9241  return _IMP_atom.Molecule_setup_particle(*args)
9242 
9243  @staticmethod
9244  def get_is_setup(*args):
9245  r"""
9246  get_is_setup(_ParticleAdaptor p) -> bool
9247  get_is_setup(Model m, ParticleIndex pi) -> bool
9248  """
9249  return _IMP_atom.Molecule_get_is_setup(*args)
9250 
9251  def add_attribute(self, *args):
9252  r"""
9253  add_attribute(Molecule self, FloatKey k, IMP::Float v, bool opt)
9254  add_attribute(Molecule self, FloatKey a0, IMP::Float a1)
9255  add_attribute(Molecule self, IntKey a0, IMP::Int a1)
9256  add_attribute(Molecule self, FloatsKey a0, IMP::Floats a1)
9257  add_attribute(Molecule self, IntsKey a0, IMP::Ints a1)
9258  add_attribute(Molecule self, StringKey a0, IMP::String a1)
9259  add_attribute(Molecule self, ParticleIndexKey a0, Particle a1)
9260  add_attribute(Molecule self, ObjectKey a0, Object a1)
9261  add_attribute(Molecule self, SparseFloatKey a0, IMP::Float a1)
9262  add_attribute(Molecule self, SparseIntKey a0, IMP::Int a1)
9263  add_attribute(Molecule self, SparseStringKey a0, IMP::String a1)
9264  add_attribute(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9265  """
9266  return _IMP_atom.Molecule_add_attribute(self, *args)
9267 
9268  def get_value(self, *args):
9269  r"""
9270  get_value(Molecule self, FloatKey a0) -> IMP::Float
9271  get_value(Molecule self, IntKey a0) -> IMP::Int
9272  get_value(Molecule self, FloatsKey a0) -> IMP::Floats
9273  get_value(Molecule self, IntsKey a0) -> IMP::Ints
9274  get_value(Molecule self, StringKey a0) -> IMP::String
9275  get_value(Molecule self, ParticleIndexKey a0) -> Particle
9276  get_value(Molecule self, ObjectKey a0) -> Object
9277  get_value(Molecule self, SparseFloatKey a0) -> IMP::Float
9278  get_value(Molecule self, SparseIntKey a0) -> IMP::Int
9279  get_value(Molecule self, SparseStringKey a0) -> IMP::String
9280  get_value(Molecule self, SparseParticleIndexKey a0) -> ParticleIndex
9281  """
9282  return _IMP_atom.Molecule_get_value(self, *args)
9283 
9284  def set_value(self, *args):
9285  r"""
9286  set_value(Molecule self, FloatKey a0, IMP::Float a1)
9287  set_value(Molecule self, IntKey a0, IMP::Int a1)
9288  set_value(Molecule self, FloatsKey a0, IMP::Floats a1)
9289  set_value(Molecule self, IntsKey a0, IMP::Ints a1)
9290  set_value(Molecule self, StringKey a0, IMP::String a1)
9291  set_value(Molecule self, ParticleIndexKey a0, Particle a1)
9292  set_value(Molecule self, ObjectKey a0, Object a1)
9293  set_value(Molecule self, SparseFloatKey a0, IMP::Float a1)
9294  set_value(Molecule self, SparseIntKey a0, IMP::Int a1)
9295  set_value(Molecule self, SparseStringKey a0, IMP::String a1)
9296  set_value(Molecule self, SparseParticleIndexKey a0, ParticleIndex a1)
9297  """
9298  return _IMP_atom.Molecule_set_value(self, *args)
9299 
9300  def remove_attribute(self, *args):
9301  r"""
9302  remove_attribute(Molecule self, FloatKey a0)
9303  remove_attribute(Molecule self, IntKey a0)
9304  remove_attribute(Molecule self, FloatsKey a0)
9305  remove_attribute(Molecule self, IntsKey a0)
9306  remove_attribute(Molecule self, StringKey a0)
9307  remove_attribute(Molecule self, ParticleIndexKey a0)
9308  remove_attribute(Molecule self, ObjectKey a0)
9309  remove_attribute(Molecule self, SparseFloatKey a0)
9310  remove_attribute(Molecule self, SparseIntKey a0)
9311  remove_attribute(Molecule self, SparseStringKey a0)
9312  remove_attribute(Molecule self, SparseParticleIndexKey a0)
9313  """
9314  return _IMP_atom.Molecule_remove_attribute(self, *args)
9315 
9316  def has_attribute(self, *args):
9317  r"""
9318  has_attribute(Molecule self, FloatKey a0) -> bool
9319  has_attribute(Molecule self, IntKey a0) -> bool
9320  has_attribute(Molecule self, FloatsKey a0) -> bool
9321  has_attribute(Molecule self, IntsKey a0) -> bool
9322  has_attribute(Molecule self, StringKey a0) -> bool
9323  has_attribute(Molecule self, ParticleIndexKey a0) -> bool
9324  has_attribute(Molecule self, ObjectKey a0) -> bool
9325  has_attribute(Molecule self, SparseFloatKey a0) -> bool
9326  has_attribute(Molecule self, SparseIntKey a0) -> bool
9327  has_attribute(Molecule self, SparseStringKey a0) -> bool
9328  has_attribute(Molecule self, SparseParticleIndexKey a0) -> bool
9329  """
9330  return _IMP_atom.Molecule_has_attribute(self, *args)
9331 
9332  def get_derivative(self, a0):
9333  r"""get_derivative(Molecule self, FloatKey a0) -> double"""
9334  return _IMP_atom.Molecule_get_derivative(self, a0)
9335 
9336  def get_name(self):
9337  r"""get_name(Molecule self) -> std::string"""
9338  return _IMP_atom.Molecule_get_name(self)
9339 
9340  def clear_caches(self):
9341  r"""clear_caches(Molecule self)"""
9342  return _IMP_atom.Molecule_clear_caches(self)
9343 
9344  def set_name(self, a0):
9345  r"""set_name(Molecule self, std::string a0)"""
9346  return _IMP_atom.Molecule_set_name(self, a0)
9347 
9348  def set_check_level(self, a0):
9349  r"""set_check_level(Molecule self, IMP::CheckLevel a0)"""
9350  return _IMP_atom.Molecule_set_check_level(self, a0)
9351 
9352  def add_to_derivative(self, a0, a1, a2):
9353  r"""add_to_derivative(Molecule self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9354  return _IMP_atom.Molecule_add_to_derivative(self, a0, a1, a2)
9355 
9356  def set_is_optimized(self, a0, a1):
9357  r"""set_is_optimized(Molecule self, FloatKey a0, bool a1)"""
9358  return _IMP_atom.Molecule_set_is_optimized(self, a0, a1)
9359 
9360  def get_is_optimized(self, a0):
9361  r"""get_is_optimized(Molecule self, FloatKey a0) -> bool"""
9362  return _IMP_atom.Molecule_get_is_optimized(self, a0)
9363 
9364  def get_check_level(self):
9365  r"""get_check_level(Molecule self) -> IMP::CheckLevel"""
9366  return _IMP_atom.Molecule_get_check_level(self)
9367 
9368  def __eq__(self, *args):
9369  r"""
9370  __eq__(Molecule self, Molecule o) -> bool
9371  __eq__(Molecule self, Particle d) -> bool
9372  """
9373  return _IMP_atom.Molecule___eq__(self, *args)
9374 
9375  def __ne__(self, *args):
9376  r"""
9377  __ne__(Molecule self, Molecule o) -> bool
9378  __ne__(Molecule self, Particle d) -> bool
9379  """
9380  return _IMP_atom.Molecule___ne__(self, *args)
9381 
9382  def __le__(self, *args):
9383  r"""
9384  __le__(Molecule self, Molecule o) -> bool
9385  __le__(Molecule self, Particle d) -> bool
9386  """
9387  return _IMP_atom.Molecule___le__(self, *args)
9388 
9389  def __lt__(self, *args):
9390  r"""
9391  __lt__(Molecule self, Molecule o) -> bool
9392  __lt__(Molecule self, Particle d) -> bool
9393  """
9394  return _IMP_atom.Molecule___lt__(self, *args)
9395 
9396  def __ge__(self, *args):
9397  r"""
9398  __ge__(Molecule self, Molecule o) -> bool
9399  __ge__(Molecule self, Particle d) -> bool
9400  """
9401  return _IMP_atom.Molecule___ge__(self, *args)
9402 
9403  def __gt__(self, *args):
9404  r"""
9405  __gt__(Molecule self, Molecule o) -> bool
9406  __gt__(Molecule self, Particle d) -> bool
9407  """
9408  return _IMP_atom.Molecule___gt__(self, *args)
9409 
9410  def __hash__(self):
9411  r"""__hash__(Molecule self) -> std::size_t"""
9412  return _IMP_atom.Molecule___hash__(self)
9413 
9414  def __str__(self):
9415  r"""__str__(Molecule self) -> std::string"""
9416  return _IMP_atom.Molecule___str__(self)
9417 
9418  def __repr__(self):
9419  r"""__repr__(Molecule self) -> std::string"""
9420  return _IMP_atom.Molecule___repr__(self)
9421 
9422  def _get_as_binary(self):
9423  r"""_get_as_binary(Molecule self) -> PyObject *"""
9424  return _IMP_atom.Molecule__get_as_binary(self)
9425 
9426  def _set_from_binary(self, p):
9427  r"""_set_from_binary(Molecule self, PyObject * p)"""
9428  return _IMP_atom.Molecule__set_from_binary(self, p)
9429 
9430  def __getstate__(self):
9431  p = self._get_as_binary()
9432  if len(self.__dict__) > 1:
9433  d = self.__dict__.copy()
9434  del d['this']
9435  p = (d, p)
9436  return p
9437 
9438  def __setstate__(self, p):
9439  if not hasattr(self, 'this'):
9440  self.__init__()
9441  if isinstance(p, tuple):
9442  d, p = p
9443  self.__dict__.update(d)
9444  return self._set_from_binary(p)
9445 
9446  __swig_destroy__ = _IMP_atom.delete_Molecule
9447 
9448 # Register Molecule in _IMP_atom:
9449 _IMP_atom.Molecule_swigregister(Molecule)
9450 
9451 def get_molecule_name(h):
9452  r"""get_molecule_name(Hierarchy h) -> std::string"""
9453  return _IMP_atom.get_molecule_name(h)
9454 class Copy(Molecule):
9455  r"""Proxy of C++ IMP::atom::Copy class."""
9456 
9457  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9458 
9459  @staticmethod
9460  def get_copy_index_key():
9461  r"""get_copy_index_key() -> IntKey"""
9462  return _IMP_atom.Copy_get_copy_index_key()
9463 
9464  def __init__(self, *args):
9465  r"""
9466  __init__(Copy self) -> Copy
9467  __init__(Copy self, Model m, ParticleIndex id) -> Copy
9468  __init__(Copy self, _ParticleAdaptor d) -> Copy
9469  """
9470  _IMP_atom.Copy_swiginit(self, _IMP_atom.new_Copy(*args))
9471 
9472  def show(self, *args):
9473  r"""show(Copy self, _ostream out=std::cout)"""
9474  return _IMP_atom.Copy_show(self, *args)
9475 
9476  @staticmethod
9477  def setup_particle(*args):
9478  r"""
9479  setup_particle(Model m, ParticleIndex pi, IMP::Int number) -> Copy
9480  setup_particle(_ParticleAdaptor pa, IMP::Int number) -> Copy
9481  """
9482  return _IMP_atom.Copy_setup_particle(*args)
9483 
9484  @staticmethod
9485  def get_is_setup(*args):
9486  r"""
9487  get_is_setup(_ParticleAdaptor p) -> bool
9488  get_is_setup(Model m, ParticleIndex pi) -> bool
9489  """
9490  return _IMP_atom.Copy_get_is_setup(*args)
9491 
9492  def get_copy_index(self):
9493  r"""get_copy_index(Copy self) -> int"""
9494  return _IMP_atom.Copy_get_copy_index(self)
9495 
9496  def add_attribute(self, *args):
9497  r"""
9498  add_attribute(Copy self, FloatKey k, IMP::Float v, bool opt)
9499  add_attribute(Copy self, FloatKey a0, IMP::Float a1)
9500  add_attribute(Copy self, IntKey a0, IMP::Int a1)
9501  add_attribute(Copy self, FloatsKey a0, IMP::Floats a1)
9502  add_attribute(Copy self, IntsKey a0, IMP::Ints a1)
9503  add_attribute(Copy self, StringKey a0, IMP::String a1)
9504  add_attribute(Copy self, ParticleIndexKey a0, Particle a1)
9505  add_attribute(Copy self, ObjectKey a0, Object a1)
9506  add_attribute(Copy self, SparseFloatKey a0, IMP::Float a1)
9507  add_attribute(Copy self, SparseIntKey a0, IMP::Int a1)
9508  add_attribute(Copy self, SparseStringKey a0, IMP::String a1)
9509  add_attribute(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9510  """
9511  return _IMP_atom.Copy_add_attribute(self, *args)
9512 
9513  def get_value(self, *args):
9514  r"""
9515  get_value(Copy self, FloatKey a0) -> IMP::Float
9516  get_value(Copy self, IntKey a0) -> IMP::Int
9517  get_value(Copy self, FloatsKey a0) -> IMP::Floats
9518  get_value(Copy self, IntsKey a0) -> IMP::Ints
9519  get_value(Copy self, StringKey a0) -> IMP::String
9520  get_value(Copy self, ParticleIndexKey a0) -> Particle
9521  get_value(Copy self, ObjectKey a0) -> Object
9522  get_value(Copy self, SparseFloatKey a0) -> IMP::Float
9523  get_value(Copy self, SparseIntKey a0) -> IMP::Int
9524  get_value(Copy self, SparseStringKey a0) -> IMP::String
9525  get_value(Copy self, SparseParticleIndexKey a0) -> ParticleIndex
9526  """
9527  return _IMP_atom.Copy_get_value(self, *args)
9528 
9529  def set_value(self, *args):
9530  r"""
9531  set_value(Copy self, FloatKey a0, IMP::Float a1)
9532  set_value(Copy self, IntKey a0, IMP::Int a1)
9533  set_value(Copy self, FloatsKey a0, IMP::Floats a1)
9534  set_value(Copy self, IntsKey a0, IMP::Ints a1)
9535  set_value(Copy self, StringKey a0, IMP::String a1)
9536  set_value(Copy self, ParticleIndexKey a0, Particle a1)
9537  set_value(Copy self, ObjectKey a0, Object a1)
9538  set_value(Copy self, SparseFloatKey a0, IMP::Float a1)
9539  set_value(Copy self, SparseIntKey a0, IMP::Int a1)
9540  set_value(Copy self, SparseStringKey a0, IMP::String a1)
9541  set_value(Copy self, SparseParticleIndexKey a0, ParticleIndex a1)
9542  """
9543  return _IMP_atom.Copy_set_value(self, *args)
9544 
9545  def remove_attribute(self, *args):
9546  r"""
9547  remove_attribute(Copy self, FloatKey a0)
9548  remove_attribute(Copy self, IntKey a0)
9549  remove_attribute(Copy self, FloatsKey a0)
9550  remove_attribute(Copy self, IntsKey a0)
9551  remove_attribute(Copy self, StringKey a0)
9552  remove_attribute(Copy self, ParticleIndexKey a0)
9553  remove_attribute(Copy self, ObjectKey a0)
9554  remove_attribute(Copy self, SparseFloatKey a0)
9555  remove_attribute(Copy self, SparseIntKey a0)
9556  remove_attribute(Copy self, SparseStringKey a0)
9557  remove_attribute(Copy self, SparseParticleIndexKey a0)
9558  """
9559  return _IMP_atom.Copy_remove_attribute(self, *args)
9560 
9561  def has_attribute(self, *args):
9562  r"""
9563  has_attribute(Copy self, FloatKey a0) -> bool
9564  has_attribute(Copy self, IntKey a0) -> bool
9565  has_attribute(Copy self, FloatsKey a0) -> bool
9566  has_attribute(Copy self, IntsKey a0) -> bool
9567  has_attribute(Copy self, StringKey a0) -> bool
9568  has_attribute(Copy self, ParticleIndexKey a0) -> bool
9569  has_attribute(Copy self, ObjectKey a0) -> bool
9570  has_attribute(Copy self, SparseFloatKey a0) -> bool
9571  has_attribute(Copy self, SparseIntKey a0) -> bool
9572  has_attribute(Copy self, SparseStringKey a0) -> bool
9573  has_attribute(Copy self, SparseParticleIndexKey a0) -> bool
9574  """
9575  return _IMP_atom.Copy_has_attribute(self, *args)
9576 
9577  def get_derivative(self, a0):
9578  r"""get_derivative(Copy self, FloatKey a0) -> double"""
9579  return _IMP_atom.Copy_get_derivative(self, a0)
9580 
9581  def get_name(self):
9582  r"""get_name(Copy self) -> std::string"""
9583  return _IMP_atom.Copy_get_name(self)
9584 
9585  def clear_caches(self):
9586  r"""clear_caches(Copy self)"""
9587  return _IMP_atom.Copy_clear_caches(self)
9588 
9589  def set_name(self, a0):
9590  r"""set_name(Copy self, std::string a0)"""
9591  return _IMP_atom.Copy_set_name(self, a0)
9592 
9593  def set_check_level(self, a0):
9594  r"""set_check_level(Copy self, IMP::CheckLevel a0)"""
9595  return _IMP_atom.Copy_set_check_level(self, a0)
9596 
9597  def add_to_derivative(self, a0, a1, a2):
9598  r"""add_to_derivative(Copy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9599  return _IMP_atom.Copy_add_to_derivative(self, a0, a1, a2)
9600 
9601  def set_is_optimized(self, a0, a1):
9602  r"""set_is_optimized(Copy self, FloatKey a0, bool a1)"""
9603  return _IMP_atom.Copy_set_is_optimized(self, a0, a1)
9604 
9605  def get_is_optimized(self, a0):
9606  r"""get_is_optimized(Copy self, FloatKey a0) -> bool"""
9607  return _IMP_atom.Copy_get_is_optimized(self, a0)
9608 
9609  def get_check_level(self):
9610  r"""get_check_level(Copy self) -> IMP::CheckLevel"""
9611  return _IMP_atom.Copy_get_check_level(self)
9612 
9613  def __eq__(self, *args):
9614  r"""
9615  __eq__(Copy self, Copy o) -> bool
9616  __eq__(Copy self, Particle d) -> bool
9617  """
9618  return _IMP_atom.Copy___eq__(self, *args)
9619 
9620  def __ne__(self, *args):
9621  r"""
9622  __ne__(Copy self, Copy o) -> bool
9623  __ne__(Copy self, Particle d) -> bool
9624  """
9625  return _IMP_atom.Copy___ne__(self, *args)
9626 
9627  def __le__(self, *args):
9628  r"""
9629  __le__(Copy self, Copy o) -> bool
9630  __le__(Copy self, Particle d) -> bool
9631  """
9632  return _IMP_atom.Copy___le__(self, *args)
9633 
9634  def __lt__(self, *args):
9635  r"""
9636  __lt__(Copy self, Copy o) -> bool
9637  __lt__(Copy self, Particle d) -> bool
9638  """
9639  return _IMP_atom.Copy___lt__(self, *args)
9640 
9641  def __ge__(self, *args):
9642  r"""
9643  __ge__(Copy self, Copy o) -> bool
9644  __ge__(Copy self, Particle d) -> bool
9645  """
9646  return _IMP_atom.Copy___ge__(self, *args)
9647 
9648  def __gt__(self, *args):
9649  r"""
9650  __gt__(Copy self, Copy o) -> bool
9651  __gt__(Copy self, Particle d) -> bool
9652  """
9653  return _IMP_atom.Copy___gt__(self, *args)
9654 
9655  def __hash__(self):
9656  r"""__hash__(Copy self) -> std::size_t"""
9657  return _IMP_atom.Copy___hash__(self)
9658 
9659  def __str__(self):
9660  r"""__str__(Copy self) -> std::string"""
9661  return _IMP_atom.Copy___str__(self)
9662 
9663  def __repr__(self):
9664  r"""__repr__(Copy self) -> std::string"""
9665  return _IMP_atom.Copy___repr__(self)
9666 
9667  def _get_as_binary(self):
9668  r"""_get_as_binary(Copy self) -> PyObject *"""
9669  return _IMP_atom.Copy__get_as_binary(self)
9670 
9671  def _set_from_binary(self, p):
9672  r"""_set_from_binary(Copy self, PyObject * p)"""
9673  return _IMP_atom.Copy__set_from_binary(self, p)
9674 
9675  def __getstate__(self):
9676  p = self._get_as_binary()
9677  if len(self.__dict__) > 1:
9678  d = self.__dict__.copy()
9679  del d['this']
9680  p = (d, p)
9681  return p
9682 
9683  def __setstate__(self, p):
9684  if not hasattr(self, 'this'):
9685  self.__init__()
9686  if isinstance(p, tuple):
9687  d, p = p
9688  self.__dict__.update(d)
9689  return self._set_from_binary(p)
9690 
9691  __swig_destroy__ = _IMP_atom.delete_Copy
9692 
9693 # Register Copy in _IMP_atom:
9694 _IMP_atom.Copy_swigregister(Copy)
9695 
9696 def get_copy_index(h):
9697  r"""get_copy_index(Hierarchy h) -> int"""
9698  return _IMP_atom.get_copy_index(h)
9699 class Chain(Hierarchy):
9700  r"""Proxy of C++ IMP::atom::Chain class."""
9701 
9702  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9703 
9704  def __init__(self, *args):
9705  r"""
9706  __init__(Chain self) -> Chain
9707  __init__(Chain self, Model m, ParticleIndex id) -> Chain
9708  __init__(Chain self, _ParticleAdaptor d) -> Chain
9709  """
9710  _IMP_atom.Chain_swiginit(self, _IMP_atom.new_Chain(*args))
9711 
9712  def show(self, *args):
9713  r"""show(Chain self, _ostream out=std::cout)"""
9714  return _IMP_atom.Chain_show(self, *args)
9715 
9716  @staticmethod
9717  def setup_particle(*args):
9718  r"""
9719  setup_particle(Model m, ParticleIndex pi, std::string id) -> Chain
9720  setup_particle(_ParticleAdaptor pa, std::string id) -> Chain
9721  setup_particle(Model m, ParticleIndex pi, char id) -> Chain
9722  setup_particle(_ParticleAdaptor pa, char id) -> Chain
9723  setup_particle(Model m, ParticleIndex pi, Chain other) -> Chain
9724  setup_particle(_ParticleAdaptor pa, Chain other) -> Chain
9725  """
9726  return _IMP_atom.Chain_setup_particle(*args)
9727 
9728  @staticmethod
9729  def get_is_setup(*args):
9730  r"""
9731  get_is_setup(_ParticleAdaptor p) -> bool
9732  get_is_setup(Model m, ParticleIndex pi) -> bool
9733  """
9734  return _IMP_atom.Chain_get_is_setup(*args)
9735 
9736  def get_id(self):
9737  r"""get_id(Chain self) -> std::string"""
9738  return _IMP_atom.Chain_get_id(self)
9739 
9740  def set_id(self, c):
9741  r"""set_id(Chain self, std::string c)"""
9742  return _IMP_atom.Chain_set_id(self, c)
9743 
9744  def get_label_asym_id(self):
9745  r"""get_label_asym_id(Chain self) -> std::string"""
9746  return _IMP_atom.Chain_get_label_asym_id(self)
9747 
9748  def set_label_asym_id(self, c):
9749  r"""set_label_asym_id(Chain self, std::string c)"""
9750  return _IMP_atom.Chain_set_label_asym_id(self, c)
9751 
9752  def get_sequence(self):
9753  r"""get_sequence(Chain self) -> std::string"""
9754  return _IMP_atom.Chain_get_sequence(self)
9755 
9756  def set_sequence(self, sequence):
9757  r"""set_sequence(Chain self, std::string sequence)"""
9758  return _IMP_atom.Chain_set_sequence(self, sequence)
9759 
9760  def get_sequence_offset(self):
9761  r"""get_sequence_offset(Chain self) -> int"""
9762  return _IMP_atom.Chain_get_sequence_offset(self)
9763 
9764  def set_sequence_offset(self, offset):
9765  r"""set_sequence_offset(Chain self, int offset)"""
9766  return _IMP_atom.Chain_set_sequence_offset(self, offset)
9767 
9768  def get_uniprot_accession(self):
9769  r"""get_uniprot_accession(Chain self) -> std::string"""
9770  return _IMP_atom.Chain_get_uniprot_accession(self)
9771 
9772  def set_uniprot_accession(self, accession):
9773  r"""set_uniprot_accession(Chain self, std::string accession)"""
9774  return _IMP_atom.Chain_set_uniprot_accession(self, accession)
9775 
9776  def get_chain_type(self):
9777  r"""get_chain_type(Chain self) -> ChainType"""
9778  return _IMP_atom.Chain_get_chain_type(self)
9779 
9780  def set_chain_type(self, t):
9781  r"""set_chain_type(Chain self, ChainType t)"""
9782  return _IMP_atom.Chain_set_chain_type(self, t)
9783 
9784  @staticmethod
9785  def get_id_key():
9786  r"""get_id_key() -> SparseStringKey"""
9787  return _IMP_atom.Chain_get_id_key()
9788 
9789  @staticmethod
9790  def get_label_asym_id_key():
9791  r"""get_label_asym_id_key() -> SparseStringKey"""
9792  return _IMP_atom.Chain_get_label_asym_id_key()
9793 
9794  @staticmethod
9795  def get_sequence_key():
9796  r"""get_sequence_key() -> SparseStringKey"""
9797  return _IMP_atom.Chain_get_sequence_key()
9798 
9799  @staticmethod
9800  def get_sequence_offset_key():
9801  r"""get_sequence_offset_key() -> SparseIntKey"""
9802  return _IMP_atom.Chain_get_sequence_offset_key()
9803 
9804  @staticmethod
9805  def get_uniprot_accession_key():
9806  r"""get_uniprot_accession_key() -> SparseStringKey"""
9807  return _IMP_atom.Chain_get_uniprot_accession_key()
9808 
9809  @staticmethod
9810  def get_chain_type_key():
9811  r"""get_chain_type_key() -> SparseIntKey"""
9812  return _IMP_atom.Chain_get_chain_type_key()
9813 
9814  def add_attribute(self, *args):
9815  r"""
9816  add_attribute(Chain self, FloatKey k, IMP::Float v, bool opt)
9817  add_attribute(Chain self, FloatKey a0, IMP::Float a1)
9818  add_attribute(Chain self, IntKey a0, IMP::Int a1)
9819  add_attribute(Chain self, FloatsKey a0, IMP::Floats a1)
9820  add_attribute(Chain self, IntsKey a0, IMP::Ints a1)
9821  add_attribute(Chain self, StringKey a0, IMP::String a1)
9822  add_attribute(Chain self, ParticleIndexKey a0, Particle a1)
9823  add_attribute(Chain self, ObjectKey a0, Object a1)
9824  add_attribute(Chain self, SparseFloatKey a0, IMP::Float a1)
9825  add_attribute(Chain self, SparseIntKey a0, IMP::Int a1)
9826  add_attribute(Chain self, SparseStringKey a0, IMP::String a1)
9827  add_attribute(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9828  """
9829  return _IMP_atom.Chain_add_attribute(self, *args)
9830 
9831  def get_value(self, *args):
9832  r"""
9833  get_value(Chain self, FloatKey a0) -> IMP::Float
9834  get_value(Chain self, IntKey a0) -> IMP::Int
9835  get_value(Chain self, FloatsKey a0) -> IMP::Floats
9836  get_value(Chain self, IntsKey a0) -> IMP::Ints
9837  get_value(Chain self, StringKey a0) -> IMP::String
9838  get_value(Chain self, ParticleIndexKey a0) -> Particle
9839  get_value(Chain self, ObjectKey a0) -> Object
9840  get_value(Chain self, SparseFloatKey a0) -> IMP::Float
9841  get_value(Chain self, SparseIntKey a0) -> IMP::Int
9842  get_value(Chain self, SparseStringKey a0) -> IMP::String
9843  get_value(Chain self, SparseParticleIndexKey a0) -> ParticleIndex
9844  """
9845  return _IMP_atom.Chain_get_value(self, *args)
9846 
9847  def set_value(self, *args):
9848  r"""
9849  set_value(Chain self, FloatKey a0, IMP::Float a1)
9850  set_value(Chain self, IntKey a0, IMP::Int a1)
9851  set_value(Chain self, FloatsKey a0, IMP::Floats a1)
9852  set_value(Chain self, IntsKey a0, IMP::Ints a1)
9853  set_value(Chain self, StringKey a0, IMP::String a1)
9854  set_value(Chain self, ParticleIndexKey a0, Particle a1)
9855  set_value(Chain self, ObjectKey a0, Object a1)
9856  set_value(Chain self, SparseFloatKey a0, IMP::Float a1)
9857  set_value(Chain self, SparseIntKey a0, IMP::Int a1)
9858  set_value(Chain self, SparseStringKey a0, IMP::String a1)
9859  set_value(Chain self, SparseParticleIndexKey a0, ParticleIndex a1)
9860  """
9861  return _IMP_atom.Chain_set_value(self, *args)
9862 
9863  def remove_attribute(self, *args):
9864  r"""
9865  remove_attribute(Chain self, FloatKey a0)
9866  remove_attribute(Chain self, IntKey a0)
9867  remove_attribute(Chain self, FloatsKey a0)
9868  remove_attribute(Chain self, IntsKey a0)
9869  remove_attribute(Chain self, StringKey a0)
9870  remove_attribute(Chain self, ParticleIndexKey a0)
9871  remove_attribute(Chain self, ObjectKey a0)
9872  remove_attribute(Chain self, SparseFloatKey a0)
9873  remove_attribute(Chain self, SparseIntKey a0)
9874  remove_attribute(Chain self, SparseStringKey a0)
9875  remove_attribute(Chain self, SparseParticleIndexKey a0)
9876  """
9877  return _IMP_atom.Chain_remove_attribute(self, *args)
9878 
9879  def has_attribute(self, *args):
9880  r"""
9881  has_attribute(Chain self, FloatKey a0) -> bool
9882  has_attribute(Chain self, IntKey a0) -> bool
9883  has_attribute(Chain self, FloatsKey a0) -> bool
9884  has_attribute(Chain self, IntsKey a0) -> bool
9885  has_attribute(Chain self, StringKey a0) -> bool
9886  has_attribute(Chain self, ParticleIndexKey a0) -> bool
9887  has_attribute(Chain self, ObjectKey a0) -> bool
9888  has_attribute(Chain self, SparseFloatKey a0) -> bool
9889  has_attribute(Chain self, SparseIntKey a0) -> bool
9890  has_attribute(Chain self, SparseStringKey a0) -> bool
9891  has_attribute(Chain self, SparseParticleIndexKey a0) -> bool
9892  """
9893  return _IMP_atom.Chain_has_attribute(self, *args)
9894 
9895  def get_derivative(self, a0):
9896  r"""get_derivative(Chain self, FloatKey a0) -> double"""
9897  return _IMP_atom.Chain_get_derivative(self, a0)
9898 
9899  def get_name(self):
9900  r"""get_name(Chain self) -> std::string"""
9901  return _IMP_atom.Chain_get_name(self)
9902 
9903  def clear_caches(self):
9904  r"""clear_caches(Chain self)"""
9905  return _IMP_atom.Chain_clear_caches(self)
9906 
9907  def set_name(self, a0):
9908  r"""set_name(Chain self, std::string a0)"""
9909  return _IMP_atom.Chain_set_name(self, a0)
9910 
9911  def set_check_level(self, a0):
9912  r"""set_check_level(Chain self, IMP::CheckLevel a0)"""
9913  return _IMP_atom.Chain_set_check_level(self, a0)
9914 
9915  def add_to_derivative(self, a0, a1, a2):
9916  r"""add_to_derivative(Chain self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9917  return _IMP_atom.Chain_add_to_derivative(self, a0, a1, a2)
9918 
9919  def set_is_optimized(self, a0, a1):
9920  r"""set_is_optimized(Chain self, FloatKey a0, bool a1)"""
9921  return _IMP_atom.Chain_set_is_optimized(self, a0, a1)
9922 
9923  def get_is_optimized(self, a0):
9924  r"""get_is_optimized(Chain self, FloatKey a0) -> bool"""
9925  return _IMP_atom.Chain_get_is_optimized(self, a0)
9926 
9927  def get_check_level(self):
9928  r"""get_check_level(Chain self) -> IMP::CheckLevel"""
9929  return _IMP_atom.Chain_get_check_level(self)
9930 
9931  def __eq__(self, *args):
9932  r"""
9933  __eq__(Chain self, Chain o) -> bool
9934  __eq__(Chain self, Particle d) -> bool
9935  """
9936  return _IMP_atom.Chain___eq__(self, *args)
9937 
9938  def __ne__(self, *args):
9939  r"""
9940  __ne__(Chain self, Chain o) -> bool
9941  __ne__(Chain self, Particle d) -> bool
9942  """
9943  return _IMP_atom.Chain___ne__(self, *args)
9944 
9945  def __le__(self, *args):
9946  r"""
9947  __le__(Chain self, Chain o) -> bool
9948  __le__(Chain self, Particle d) -> bool
9949  """
9950  return _IMP_atom.Chain___le__(self, *args)
9951 
9952  def __lt__(self, *args):
9953  r"""
9954  __lt__(Chain self, Chain o) -> bool
9955  __lt__(Chain self, Particle d) -> bool
9956  """
9957  return _IMP_atom.Chain___lt__(self, *args)
9958 
9959  def __ge__(self, *args):
9960  r"""
9961  __ge__(Chain self, Chain o) -> bool
9962  __ge__(Chain self, Particle d) -> bool
9963  """
9964  return _IMP_atom.Chain___ge__(self, *args)
9965 
9966  def __gt__(self, *args):
9967  r"""
9968  __gt__(Chain self, Chain o) -> bool
9969  __gt__(Chain self, Particle d) -> bool
9970  """
9971  return _IMP_atom.Chain___gt__(self, *args)
9972 
9973  def __hash__(self):
9974  r"""__hash__(Chain self) -> std::size_t"""
9975  return _IMP_atom.Chain___hash__(self)
9976 
9977  def __str__(self):
9978  r"""__str__(Chain self) -> std::string"""
9979  return _IMP_atom.Chain___str__(self)
9980 
9981  def __repr__(self):
9982  r"""__repr__(Chain self) -> std::string"""
9983  return _IMP_atom.Chain___repr__(self)
9984 
9985  def _get_as_binary(self):
9986  r"""_get_as_binary(Chain self) -> PyObject *"""
9987  return _IMP_atom.Chain__get_as_binary(self)
9988 
9989  def _set_from_binary(self, p):
9990  r"""_set_from_binary(Chain self, PyObject * p)"""
9991  return _IMP_atom.Chain__set_from_binary(self, p)
9992 
9993  def __getstate__(self):
9994  p = self._get_as_binary()
9995  if len(self.__dict__) > 1:
9996  d = self.__dict__.copy()
9997  del d['this']
9998  p = (d, p)
9999  return p
10000 
10001  def __setstate__(self, p):
10002  if not hasattr(self, 'this'):
10003  self.__init__()
10004  if isinstance(p, tuple):
10005  d, p = p
10006  self.__dict__.update(d)
10007  return self._set_from_binary(p)
10008 
10009  __swig_destroy__ = _IMP_atom.delete_Chain
10010 
10011 # Register Chain in _IMP_atom:
10012 _IMP_atom.Chain_swigregister(Chain)
10013 UnknownChainType = cvar.UnknownChainType
10014 DPolypeptide = cvar.DPolypeptide
10015 LPolypeptide = cvar.LPolypeptide
10016 Polydeoxyribonucleotide = cvar.Polydeoxyribonucleotide
10017 Polyribonucleotide = cvar.Polyribonucleotide
10018 DPolysaccharide = cvar.DPolysaccharide
10019 LPolysaccharide = cvar.LPolysaccharide
10020 Protein = cvar.Protein
10021 DNA = cvar.DNA
10022 RNA = cvar.RNA
10023 
10024 
10025 def get_chain(h):
10026  r"""get_chain(Hierarchy h) -> Chain"""
10027  return _IMP_atom.get_chain(h)
10028 
10029 def get_chain_id(h):
10030  r"""get_chain_id(Hierarchy h) -> std::string"""
10031  return _IMP_atom.get_chain_id(h)
10032 class Selection(IMP._ParticleIndexesAdaptor):
10033  r"""Proxy of C++ IMP::atom::Selection class."""
10034 
10035  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10036  NONE = _IMP_atom.Selection_NONE
10037 
10038  C = _IMP_atom.Selection_C
10039 
10040  N = _IMP_atom.Selection_N
10041 
10042 
10043  def __init__(self, *args):
10044  r"""
10045  __init__(Selection self) -> Selection
10046  __init__(Selection self, Hierarchy h) -> Selection
10047  __init__(Selection self, Particle h) -> Selection
10048  __init__(Selection self, Model m, IMP::ParticleIndexes const & pis) -> Selection
10049  __init__(Selection self, IMP::ParticlesTemp const & h) -> Selection
10050  """
10051  _IMP_atom.Selection_swiginit(self, _IMP_atom.new_Selection(*args))
10052 
10053  def create_clone(self):
10054  r"""create_clone(Selection self) -> Selection"""
10055  return _IMP_atom.Selection_create_clone(self)
10056 
10057  def get_hierarchies(self):
10058  r"""get_hierarchies(Selection self) -> IMP::atom::Hierarchies"""
10059  return _IMP_atom.Selection_get_hierarchies(self)
10060 
10061  def set_molecules(self, mols):
10062  r"""set_molecules(Selection self, IMP::Strings mols)"""
10063  return _IMP_atom.Selection_set_molecules(self, mols)
10064 
10065  def set_resolution(self, r):
10066  r"""set_resolution(Selection self, double r)"""
10067  return _IMP_atom.Selection_set_resolution(self, r)
10068 
10069  def set_representation_type(self, t):
10070  r"""set_representation_type(Selection self, IMP::atom::RepresentationType t)"""
10071  return _IMP_atom.Selection_set_representation_type(self, t)
10072 
10073  def set_state_index(self, state):
10074  r"""set_state_index(Selection self, int state)"""
10075  return _IMP_atom.Selection_set_state_index(self, state)
10076 
10077  def set_state_indexes(self, states):
10078  r"""set_state_indexes(Selection self, IMP::Ints states)"""
10079  return _IMP_atom.Selection_set_state_indexes(self, states)
10080 
10081  def set_terminus(self, t):
10082  r"""set_terminus(Selection self, IMP::atom::Selection::Terminus t)"""
10083  return _IMP_atom.Selection_set_terminus(self, t)
10084 
10085  def set_element(self, e):
10086  r"""set_element(Selection self, IMP::atom::Element e)"""
10087  return _IMP_atom.Selection_set_element(self, e)
10088 
10089  def set_chain_ids(self, chains):
10090  r"""set_chain_ids(Selection self, IMP::Strings chains)"""
10091  return _IMP_atom.Selection_set_chain_ids(self, chains)
10092 
10093  def set_chains(self, chains):
10094  r"""set_chains(Selection self, IMP::Strings chains)"""
10095  return _IMP_atom.Selection_set_chains(self, chains)
10096 
10097  def set_residue_indexes(self, indexes):
10098  r"""set_residue_indexes(Selection self, IMP::Ints indexes)"""
10099  return _IMP_atom.Selection_set_residue_indexes(self, indexes)
10100 
10101  def set_atom_types(self, types):
10102  r"""set_atom_types(Selection self, IMP::atom::AtomTypes types)"""
10103  return _IMP_atom.Selection_set_atom_types(self, types)
10104 
10105  def set_residue_types(self, types):
10106  r"""set_residue_types(Selection self, IMP::atom::ResidueTypes types)"""
10107  return _IMP_atom.Selection_set_residue_types(self, types)
10108 
10109  def set_domains(self, names):
10110  r"""set_domains(Selection self, IMP::Strings names)"""
10111  return _IMP_atom.Selection_set_domains(self, names)
10112 
10113  def set_molecule(self, mol):
10114  r"""set_molecule(Selection self, std::string mol)"""
10115  return _IMP_atom.Selection_set_molecule(self, mol)
10116 
10117  def set_chain_id(self, c):
10118  r"""set_chain_id(Selection self, std::string c)"""
10119  return _IMP_atom.Selection_set_chain_id(self, c)
10120 
10121  def set_chain(self, c):
10122  r"""set_chain(Selection self, std::string c)"""
10123  return _IMP_atom.Selection_set_chain(self, c)
10124 
10125  def set_residue_index(self, i):
10126  r"""set_residue_index(Selection self, int i)"""
10127  return _IMP_atom.Selection_set_residue_index(self, i)
10128 
10129  def set_atom_type(self, types):
10130  r"""set_atom_type(Selection self, AtomType types)"""
10131  return _IMP_atom.Selection_set_atom_type(self, types)
10132 
10133  def set_residue_type(self, type):
10134  r"""set_residue_type(Selection self, ResidueType type)"""
10135  return _IMP_atom.Selection_set_residue_type(self, type)
10136 
10137  def set_domain(self, name):
10138  r"""set_domain(Selection self, std::string name)"""
10139  return _IMP_atom.Selection_set_domain(self, name)
10140 
10141  def set_copy_index(self, copy):
10142  r"""set_copy_index(Selection self, unsigned int copy)"""
10143  return _IMP_atom.Selection_set_copy_index(self, copy)
10144 
10145  def set_copy_indexes(self, copies):
10146  r"""set_copy_indexes(Selection self, IMP::Ints copies)"""
10147  return _IMP_atom.Selection_set_copy_indexes(self, copies)
10148 
10149  def set_particle_type(self, t):
10150  r"""set_particle_type(Selection self, ParticleType t)"""
10151  return _IMP_atom.Selection_set_particle_type(self, t)
10152 
10153  def set_particle_types(self, t):
10154  r"""set_particle_types(Selection self, IMP::core::ParticleTypes t)"""
10155  return _IMP_atom.Selection_set_particle_types(self, t)
10156 
10157  def set_hierarchy_types(self, types):
10158  r"""set_hierarchy_types(Selection self, IMP::Ints types)"""
10159  return _IMP_atom.Selection_set_hierarchy_types(self, types)
10160 
10161  def set_intersection(self, s):
10162  r"""set_intersection(Selection self, Selection s)"""
10163  return _IMP_atom.Selection_set_intersection(self, s)
10164 
10165  def set_union(self, s):
10166  r"""set_union(Selection self, Selection s)"""
10167  return _IMP_atom.Selection_set_union(self, s)
10168 
10169  def set_symmetric_difference(self, s):
10170  r"""set_symmetric_difference(Selection self, Selection s)"""
10171  return _IMP_atom.Selection_set_symmetric_difference(self, s)
10172 
10173  def set_difference(self, s):
10174  r"""set_difference(Selection self, Selection s)"""
10175  return _IMP_atom.Selection_set_difference(self, s)
10176 
10177  def get_selected_particles(self, with_representation=True):
10178  r"""get_selected_particles(Selection self, bool with_representation=True) -> IMP::ParticlesTemp"""
10179  return _IMP_atom.Selection_get_selected_particles(self, with_representation)
10180 
10181  def get_selected_particle_indexes(self, with_representation=True):
10182  r"""get_selected_particle_indexes(Selection self, bool with_representation=True) -> IMP::ParticleIndexes"""
10183  return _IMP_atom.Selection_get_selected_particle_indexes(self, with_representation)
10184 
10185  def show(self, *args):
10186  r"""show(Selection self, _ostream out=std::cout)"""
10187  return _IMP_atom.Selection_show(self, *args)
10188 
10189  def __str__(self):
10190  r"""__str__(Selection self) -> std::string"""
10191  return _IMP_atom.Selection___str__(self)
10192 
10193  def __repr__(self):
10194  r"""__repr__(Selection self) -> std::string"""
10195  return _IMP_atom.Selection___repr__(self)
10196 
10197  def __init__(self, hierarchy=None,
10198  hierarchies=None, **params):
10199  if hierarchy and hierarchies:
10200  raise RuntimeError("You can't pass both hierarchy and hierarchies to Selection")
10201  if hierarchy:
10202  this = _IMP_atom.new_Selection(hierarchy)
10203  try: self.this.append(this)
10204  except: self.this = this
10205  elif hierarchies:
10206  this = _IMP_atom.new_Selection(hierarchies)
10207  try: self.this.append(this)
10208  except: self.this = this
10209  else:
10210  raise ValueError("Either hierarchy or hierarchies must be provided.")
10211  for k in params.keys():
10212  eval("self.set_%s(params[k])"%k)
10213 
10214  def union(self, s):
10215  news = self.create_clone()
10216  news.union_update(s)
10217  return news
10218  def intersection(self, s):
10219  news = self.create_clone()
10220  news.intersection_update(s)
10221  return news
10222  def symmetric_difference(self, s):
10223  news = self.create_clone()
10224  news.symmetric_difference_update(s)
10225  return news
10226  def difference(self, s):
10227  news = self.create_clone()
10228  news.difference_update(s)
10229  return news
10230  def union_update(self, s):
10231  self.set_union(s)
10232  return self
10233  def intersection_update(self, s):
10234  self.set_intersection(s)
10235  return self
10236  def symmetric_difference_update(self, s):
10237  self.set_symmetric_difference(s)
10238  return self
10239  def difference_update(self, s):
10240  self.set_difference(s)
10241  return self
10242  __or__ = union
10243  __and__ = intersection
10244  __xor__ = symmetric_difference
10245  __sub__ = difference
10246  __ior__ = union_update
10247  __iand__ = intersection_update
10248  __ixor__ = symmetric_difference_update
10249  __isub__ = difference_update
10250 
10251  __swig_destroy__ = _IMP_atom.delete_Selection
10252 
10253 # Register Selection in _IMP_atom:
10254 _IMP_atom.Selection_swigregister(Selection)
10255 
10256 def create_distance_restraint(*args):
10257  r"""create_distance_restraint(Selection n0, Selection n1, double x0, double k, std::string name="Distance%1%") -> Restraint"""
10258  return _IMP_atom.create_distance_restraint(*args)
10259 
10261  r"""
10262  create_connectivity_restraint(IMP::atom::Selections const & s, double k, std::string name="Connectivity%1%") -> Restraint
10263  create_connectivity_restraint(IMP::atom::Selections const & s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10264  """
10265  return _IMP_atom.create_connectivity_restraint(*args)
10266 
10268  r"""
10269  create_internal_connectivity_restraint(Selection s, double k, std::string name="Connectivity%1%") -> Restraint
10270  create_internal_connectivity_restraint(Selection s, double x0, double k, std::string name="Connectivity%1%") -> Restraint
10271  """
10272  return _IMP_atom.create_internal_connectivity_restraint(*args)
10273 
10274 def create_cover(*args):
10275  r"""create_cover(Selection s, std::string name=std::string()) -> XYZR"""
10276  return _IMP_atom.create_cover(*args)
10277 
10278 def get_mass(*args):
10279  r"""
10280  get_mass(ResidueType c) -> double
10281  get_mass(Selection s) -> double
10282  """
10283  return _IMP_atom.get_mass(*args)
10284 
10285 def get_volume(s):
10286  r"""get_volume(Selection s) -> double"""
10287  return _IMP_atom.get_volume(s)
10288 
10289 def get_surface_area(s):
10290  r"""get_surface_area(Selection s) -> double"""
10291  return _IMP_atom.get_surface_area(s)
10292 
10293 def get_leaves(*args):
10294  r"""
10295  get_leaves(Hierarchy h) -> IMP::atom::Hierarchies
10296  get_leaves(IMP::atom::Hierarchies const & h) -> IMP::atom::Hierarchies
10297  get_leaves(Selection h) -> IMP::atom::Hierarchies
10298  """
10299  return _IMP_atom.get_leaves(*args)
10300 class SelectionGeometry(IMP.display.Geometry):
10301  r"""Proxy of C++ IMP::atom::SelectionGeometry class."""
10302 
10303  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10304 
10305  def __init__(self, *args):
10306  r"""__init__(SelectionGeometry self, Selection d, std::string name="Selection") -> SelectionGeometry"""
10307  _IMP_atom.SelectionGeometry_swiginit(self, _IMP_atom.new_SelectionGeometry(*args))
10308 
10309  def get_version_info(self):
10310  r"""get_version_info(SelectionGeometry self) -> VersionInfo"""
10311  return _IMP_atom.SelectionGeometry_get_version_info(self)
10312  __swig_destroy__ = _IMP_atom.delete_SelectionGeometry
10313 
10314  def __str__(self):
10315  r"""__str__(SelectionGeometry self) -> std::string"""
10316  return _IMP_atom.SelectionGeometry___str__(self)
10317 
10318  def __repr__(self):
10319  r"""__repr__(SelectionGeometry self) -> std::string"""
10320  return _IMP_atom.SelectionGeometry___repr__(self)
10321 
10322  @staticmethod
10323  def get_from(o):
10324  return _object_cast_to_SelectionGeometry(o)
10325 
10326 
10327 # Register SelectionGeometry in _IMP_atom:
10328 _IMP_atom.SelectionGeometry_swigregister(SelectionGeometry)
10329 
10330 def get_rmsd(*args):
10331  r"""
10332  get_rmsd(IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10333  get_rmsd(Selection s0, Selection s1) -> double
10334  """
10335  return _IMP_atom.get_rmsd(*args)
10336 
10337 def get_rmsd_transforming_first(*args):
10338  r"""
10339  get_rmsd_transforming_first(Transformation3D tr, IMP::core::XYZs const & s0, IMP::core::XYZs const & s1) -> double
10340  get_rmsd_transforming_first(Transformation3D tr, Selection s0, Selection s1) -> double
10341  """
10342  return _IMP_atom.get_rmsd_transforming_first(*args)
10343 
10344 def get_placement_score(source, target):
10345  r"""get_placement_score(IMP::core::XYZs const & source, IMP::core::XYZs const & target) -> IMP::FloatPair"""
10346  return _IMP_atom.get_placement_score(source, target)
10347 
10348 def get_component_placement_score(ref1, ref2, mdl1, mdl2):
10349  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"""
10350  return _IMP_atom.get_component_placement_score(ref1, ref2, mdl1, mdl2)
10351 
10352 def get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2):
10353  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"""
10354  return _IMP_atom.get_pairwise_rmsd_score(ref1, ref2, mdl1, mdl2)
10355 
10356 def get_radius_of_gyration(*args):
10357  r"""
10358  get_radius_of_gyration(Selection s) -> double
10359  get_radius_of_gyration(IMP::ParticlesTemp const & ps, bool weighted=True) -> double
10360  """
10361  return _IMP_atom.get_radius_of_gyration(*args)
10362 class ForceFieldParameters(IMP.Object):
10363  r"""Proxy of C++ IMP::atom::ForceFieldParameters class."""
10364 
10365  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10366 
10367  def __init__(self):
10368  r"""__init__(ForceFieldParameters self) -> ForceFieldParameters"""
10369  _IMP_atom.ForceFieldParameters_swiginit(self, _IMP_atom.new_ForceFieldParameters())
10370 
10371  def get_radius(self, atom):
10372  r"""get_radius(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10373  return _IMP_atom.ForceFieldParameters_get_radius(self, atom)
10374 
10375  def get_epsilon(self, atom):
10376  r"""get_epsilon(ForceFieldParameters self, Atom atom) -> IMP::Float"""
10377  return _IMP_atom.ForceFieldParameters_get_epsilon(self, atom)
10378 
10379  def add_radii(self, *args):
10380  r"""add_radii(ForceFieldParameters self, Hierarchy mhd, double scale=1.0, FloatKey radius_key=IMP::FloatKey("radius"))"""
10381  return _IMP_atom.ForceFieldParameters_add_radii(self, *args)
10382 
10383  def add_lennard_jones_types(self, mhd):
10384  r"""add_lennard_jones_types(ForceFieldParameters self, Hierarchy mhd)"""
10385  return _IMP_atom.ForceFieldParameters_add_lennard_jones_types(self, mhd)
10386 
10387  def add_bonds(self, mhd):
10388  r"""add_bonds(ForceFieldParameters self, Hierarchy mhd)"""
10389  return _IMP_atom.ForceFieldParameters_add_bonds(self, mhd)
10390  __swig_destroy__ = _IMP_atom.delete_ForceFieldParameters
10391 
10392  def __str__(self):
10393  r"""__str__(ForceFieldParameters self) -> std::string"""
10394  return _IMP_atom.ForceFieldParameters___str__(self)
10395 
10396  def __repr__(self):
10397  r"""__repr__(ForceFieldParameters self) -> std::string"""
10398  return _IMP_atom.ForceFieldParameters___repr__(self)
10399 
10400  @staticmethod
10401  def get_from(o):
10402  return _object_cast_to_ForceFieldParameters(o)
10403 
10404 
10405 # Register ForceFieldParameters in _IMP_atom:
10406 _IMP_atom.ForceFieldParameters_swigregister(ForceFieldParameters)
10407 class CHARMMAtomTopology(object):
10408  r"""Proxy of C++ IMP::atom::CHARMMAtomTopology class."""
10409 
10410  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10411 
10412  def __init__(self, *args):
10413  r"""
10414  __init__(CHARMMAtomTopology self) -> CHARMMAtomTopology
10415  __init__(CHARMMAtomTopology self, std::string name) -> CHARMMAtomTopology
10416  __init__(CHARMMAtomTopology self, std::string name, CHARMMAtomTopology other) -> CHARMMAtomTopology
10417  """
10418  _IMP_atom.CHARMMAtomTopology_swiginit(self, _IMP_atom.new_CHARMMAtomTopology(*args))
10419 
10420  def get_name(self):
10421  r"""get_name(CHARMMAtomTopology self) -> std::string"""
10422  return _IMP_atom.CHARMMAtomTopology_get_name(self)
10423 
10424  def get_charmm_type(self):
10425  r"""get_charmm_type(CHARMMAtomTopology self) -> std::string"""
10426  return _IMP_atom.CHARMMAtomTopology_get_charmm_type(self)
10427 
10428  def get_charge(self):
10429  r"""get_charge(CHARMMAtomTopology self) -> double"""
10430  return _IMP_atom.CHARMMAtomTopology_get_charge(self)
10431 
10432  def set_charmm_type(self, charmm_type):
10433  r"""set_charmm_type(CHARMMAtomTopology self, std::string charmm_type)"""
10434  return _IMP_atom.CHARMMAtomTopology_set_charmm_type(self, charmm_type)
10435 
10436  def set_charge(self, charge):
10437  r"""set_charge(CHARMMAtomTopology self, double charge)"""
10438  return _IMP_atom.CHARMMAtomTopology_set_charge(self, charge)
10439 
10440  def show(self, *args):
10441  r"""show(CHARMMAtomTopology self, _ostream out=std::cout)"""
10442  return _IMP_atom.CHARMMAtomTopology_show(self, *args)
10443 
10444  def __str__(self):
10445  r"""__str__(CHARMMAtomTopology self) -> std::string"""
10446  return _IMP_atom.CHARMMAtomTopology___str__(self)
10447 
10448  def __repr__(self):
10449  r"""__repr__(CHARMMAtomTopology self) -> std::string"""
10450  return _IMP_atom.CHARMMAtomTopology___repr__(self)
10451 
10452  def _get_as_binary(self):
10453  r"""_get_as_binary(CHARMMAtomTopology self) -> PyObject *"""
10454  return _IMP_atom.CHARMMAtomTopology__get_as_binary(self)
10455 
10456  def _set_from_binary(self, p):
10457  r"""_set_from_binary(CHARMMAtomTopology self, PyObject * p)"""
10458  return _IMP_atom.CHARMMAtomTopology__set_from_binary(self, p)
10459 
10460  def __getstate__(self):
10461  p = self._get_as_binary()
10462  if len(self.__dict__) > 1:
10463  d = self.__dict__.copy()
10464  del d['this']
10465  p = (d, p)
10466  return p
10467 
10468  def __setstate__(self, p):
10469  if not hasattr(self, 'this'):
10470  self.__init__()
10471  if isinstance(p, tuple):
10472  d, p = p
10473  self.__dict__.update(d)
10474  return self._set_from_binary(p)
10475 
10476  __swig_destroy__ = _IMP_atom.delete_CHARMMAtomTopology
10477 
10478 # Register CHARMMAtomTopology in _IMP_atom:
10479 _IMP_atom.CHARMMAtomTopology_swigregister(CHARMMAtomTopology)
10480 class CHARMMBondEndpoint(object):
10481  r"""Proxy of C++ IMP::atom::CHARMMBondEndpoint class."""
10482 
10483  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10484 
10485  def __init__(self, atom_name, residue=None):
10486  r"""__init__(CHARMMBondEndpoint self, std::string atom_name, CHARMMResidueTopology residue=None) -> CHARMMBondEndpoint"""
10487  _IMP_atom.CHARMMBondEndpoint_swiginit(self, _IMP_atom.new_CHARMMBondEndpoint(atom_name, residue))
10488 
10489  def get_atom_name(self):
10490  r"""get_atom_name(CHARMMBondEndpoint self) -> std::string"""
10491  return _IMP_atom.CHARMMBondEndpoint_get_atom_name(self)
10492 
10493  def get_atom(self, current_residue, previous_residue, next_residue, resmap):
10494  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"""
10495  return _IMP_atom.CHARMMBondEndpoint_get_atom(self, current_residue, previous_residue, next_residue, resmap)
10496 
10497  def show(self, *args):
10498  r"""show(CHARMMBondEndpoint self, _ostream out=std::cout)"""
10499  return _IMP_atom.CHARMMBondEndpoint_show(self, *args)
10500 
10501  def __str__(self):
10502  r"""__str__(CHARMMBondEndpoint self) -> std::string"""
10503  return _IMP_atom.CHARMMBondEndpoint___str__(self)
10504 
10505  def __repr__(self):
10506  r"""__repr__(CHARMMBondEndpoint self) -> std::string"""
10507  return _IMP_atom.CHARMMBondEndpoint___repr__(self)
10508  __swig_destroy__ = _IMP_atom.delete_CHARMMBondEndpoint
10509 
10510 # Register CHARMMBondEndpoint in _IMP_atom:
10511 _IMP_atom.CHARMMBondEndpoint_swigregister(CHARMMBondEndpoint)
10512 class CHARMMDihedral(object):
10513  r"""Proxy of C++ IMP::atom::CHARMMConnection< 4 > class."""
10514 
10515  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10516  __repr__ = _swig_repr
10517 
10518  def __init__(self, atoms):
10519  r"""__init__(CHARMMDihedral self, IMP::Strings const & atoms) -> CHARMMDihedral"""
10520  _IMP_atom.CHARMMDihedral_swiginit(self, _IMP_atom.new_CHARMMDihedral(atoms))
10521 
10522  def get_endpoint(self, i):
10523  r"""get_endpoint(CHARMMDihedral self, unsigned int i) -> CHARMMBondEndpoint"""
10524  return _IMP_atom.CHARMMDihedral_get_endpoint(self, i)
10525 
10526  def get_contains_atom(self, name):
10527  r"""get_contains_atom(CHARMMDihedral self, std::string name) -> bool"""
10528  return _IMP_atom.CHARMMDihedral_get_contains_atom(self, name)
10529 
10530  def show(self, *args):
10531  r"""show(CHARMMDihedral self, _ostream out=std::cout)"""
10532  return _IMP_atom.CHARMMDihedral_show(self, *args)
10533  __swig_destroy__ = _IMP_atom.delete_CHARMMDihedral
10534 
10535 # Register CHARMMDihedral in _IMP_atom:
10536 _IMP_atom.CHARMMDihedral_swigregister(CHARMMDihedral)
10537 class CHARMMInternalCoordinate(CHARMMDihedral):
10538  r"""Proxy of C++ IMP::atom::CHARMMInternalCoordinate class."""
10539 
10540  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10541 
10542  def __init__(self, *args):
10543  r"""
10544  __init__(CHARMMInternalCoordinate self, IMP::Strings const & atoms, float first_distance, float first_angle, float dihedral, float second_angle, float second_distance, bool improper) -> CHARMMInternalCoordinate
10545  __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
10546  """
10547  _IMP_atom.CHARMMInternalCoordinate_swiginit(self, _IMP_atom.new_CHARMMInternalCoordinate(*args))
10548 
10549  def get_first_distance(self):
10550  r"""get_first_distance(CHARMMInternalCoordinate self) -> float"""
10551  return _IMP_atom.CHARMMInternalCoordinate_get_first_distance(self)
10552 
10553  def get_second_distance(self):
10554  r"""get_second_distance(CHARMMInternalCoordinate self) -> float"""
10555  return _IMP_atom.CHARMMInternalCoordinate_get_second_distance(self)
10556 
10557  def get_first_angle(self):
10558  r"""get_first_angle(CHARMMInternalCoordinate self) -> float"""
10559  return _IMP_atom.CHARMMInternalCoordinate_get_first_angle(self)
10560 
10561  def get_second_angle(self):
10562  r"""get_second_angle(CHARMMInternalCoordinate self) -> float"""
10563  return _IMP_atom.CHARMMInternalCoordinate_get_second_angle(self)
10564 
10565  def get_dihedral(self):
10566  r"""get_dihedral(CHARMMInternalCoordinate self) -> float"""
10567  return _IMP_atom.CHARMMInternalCoordinate_get_dihedral(self)
10568 
10569  def get_improper(self):
10570  r"""get_improper(CHARMMInternalCoordinate self) -> bool"""
10571  return _IMP_atom.CHARMMInternalCoordinate_get_improper(self)
10572 
10573  def show(self, *args):
10574  r"""show(CHARMMInternalCoordinate self, _ostream out=std::cout)"""
10575  return _IMP_atom.CHARMMInternalCoordinate_show(self, *args)
10576 
10577  def __str__(self):
10578  r"""__str__(CHARMMInternalCoordinate self) -> std::string"""
10579  return _IMP_atom.CHARMMInternalCoordinate___str__(self)
10580 
10581  def __repr__(self):
10582  r"""__repr__(CHARMMInternalCoordinate self) -> std::string"""
10583  return _IMP_atom.CHARMMInternalCoordinate___repr__(self)
10584  __swig_destroy__ = _IMP_atom.delete_CHARMMInternalCoordinate
10585 
10586 # Register CHARMMInternalCoordinate in _IMP_atom:
10587 _IMP_atom.CHARMMInternalCoordinate_swigregister(CHARMMInternalCoordinate)
10588 class CHARMMResidueTopologyBase(IMP.Object):
10589  r"""Proxy of C++ IMP::atom::CHARMMResidueTopologyBase class."""
10590 
10591  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10592 
10593  def __init__(self, *args, **kwargs):
10594  raise AttributeError("No constructor defined")
10595 
10596  def get_type(self):
10597  r"""get_type(CHARMMResidueTopologyBase self) -> std::string"""
10598  return _IMP_atom.CHARMMResidueTopologyBase_get_type(self)
10599 
10600  def get_number_of_atoms(self):
10601  r"""get_number_of_atoms(CHARMMResidueTopologyBase self) -> unsigned int"""
10602  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_atoms(self)
10603 
10604  def add_atom(self, atom):
10605  r"""add_atom(CHARMMResidueTopologyBase self, CHARMMAtomTopology atom)"""
10606  return _IMP_atom.CHARMMResidueTopologyBase_add_atom(self, atom)
10607 
10608  def get_atom(self, *args):
10609  r"""
10610  get_atom(CHARMMResidueTopologyBase self, unsigned int i) -> CHARMMAtomTopology
10611  get_atom(CHARMMResidueTopologyBase self, AtomType type) -> CHARMMAtomTopology
10612  get_atom(CHARMMResidueTopologyBase self, std::string name) -> CHARMMAtomTopology
10613  """
10614  return _IMP_atom.CHARMMResidueTopologyBase_get_atom(self, *args)
10615 
10616  def get_number_of_bonds(self):
10617  r"""get_number_of_bonds(CHARMMResidueTopologyBase self) -> unsigned int"""
10618  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_bonds(self)
10619 
10620  def add_bond(self, bond):
10621  r"""add_bond(CHARMMResidueTopologyBase self, CHARMMBond bond)"""
10622  return _IMP_atom.CHARMMResidueTopologyBase_add_bond(self, bond)
10623 
10624  def get_number_of_angles(self):
10625  r"""get_number_of_angles(CHARMMResidueTopologyBase self) -> unsigned int"""
10626  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_angles(self)
10627 
10628  def add_angle(self, bond):
10629  r"""add_angle(CHARMMResidueTopologyBase self, CHARMMAngle bond)"""
10630  return _IMP_atom.CHARMMResidueTopologyBase_add_angle(self, bond)
10631 
10632  def get_number_of_dihedrals(self):
10633  r"""get_number_of_dihedrals(CHARMMResidueTopologyBase self) -> unsigned int"""
10634  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_dihedrals(self)
10635 
10636  def add_dihedral(self, bond):
10637  r"""add_dihedral(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10638  return _IMP_atom.CHARMMResidueTopologyBase_add_dihedral(self, bond)
10639 
10640  def get_number_of_impropers(self):
10641  r"""get_number_of_impropers(CHARMMResidueTopologyBase self) -> unsigned int"""
10642  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_impropers(self)
10643 
10644  def add_improper(self, bond):
10645  r"""add_improper(CHARMMResidueTopologyBase self, CHARMMDihedral bond)"""
10646  return _IMP_atom.CHARMMResidueTopologyBase_add_improper(self, bond)
10647 
10648  def get_number_of_internal_coordinates(self):
10649  r"""get_number_of_internal_coordinates(CHARMMResidueTopologyBase self) -> unsigned int"""
10650  return _IMP_atom.CHARMMResidueTopologyBase_get_number_of_internal_coordinates(self)
10651 
10652  def add_internal_coordinate(self, ic):
10653  r"""add_internal_coordinate(CHARMMResidueTopologyBase self, CHARMMInternalCoordinate ic)"""
10654  return _IMP_atom.CHARMMResidueTopologyBase_add_internal_coordinate(self, ic)
10655 
10656  def get_internal_coordinate(self, index):
10657  r"""get_internal_coordinate(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMInternalCoordinate"""
10658  return _IMP_atom.CHARMMResidueTopologyBase_get_internal_coordinate(self, index)
10659 
10660  def get_bond(self, index):
10661  r"""get_bond(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMBond"""
10662  return _IMP_atom.CHARMMResidueTopologyBase_get_bond(self, index)
10663 
10664  def get_angle(self, index):
10665  r"""get_angle(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMAngle"""
10666  return _IMP_atom.CHARMMResidueTopologyBase_get_angle(self, index)
10667 
10668  def get_dihedral(self, index):
10669  r"""get_dihedral(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10670  return _IMP_atom.CHARMMResidueTopologyBase_get_dihedral(self, index)
10671 
10672  def get_improper(self, index):
10673  r"""get_improper(CHARMMResidueTopologyBase self, unsigned int index) -> CHARMMDihedral"""
10674  return _IMP_atom.CHARMMResidueTopologyBase_get_improper(self, index)
10675 
10676  def get_version_info(self):
10677  r"""get_version_info(CHARMMResidueTopologyBase self) -> VersionInfo"""
10678  return _IMP_atom.CHARMMResidueTopologyBase_get_version_info(self)
10679  __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopologyBase
10680 
10681  def __str__(self):
10682  r"""__str__(CHARMMResidueTopologyBase self) -> std::string"""
10683  return _IMP_atom.CHARMMResidueTopologyBase___str__(self)
10684 
10685  def __repr__(self):
10686  r"""__repr__(CHARMMResidueTopologyBase self) -> std::string"""
10687  return _IMP_atom.CHARMMResidueTopologyBase___repr__(self)
10688 
10689  @staticmethod
10690  def get_from(o):
10691  return _object_cast_to_CHARMMResidueTopologyBase(o)
10692 
10693 
10694 # Register CHARMMResidueTopologyBase in _IMP_atom:
10695 _IMP_atom.CHARMMResidueTopologyBase_swigregister(CHARMMResidueTopologyBase)
10696 class CHARMMIdealResidueTopology(CHARMMResidueTopologyBase):
10697  r"""Proxy of C++ IMP::atom::CHARMMIdealResidueTopology class."""
10698 
10699  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10700 
10701  def __init__(self, *args):
10702  r"""
10703  __init__(CHARMMIdealResidueTopology self, std::string type) -> CHARMMIdealResidueTopology
10704  __init__(CHARMMIdealResidueTopology self, ResidueType type) -> CHARMMIdealResidueTopology
10705  """
10706  _IMP_atom.CHARMMIdealResidueTopology_swiginit(self, _IMP_atom.new_CHARMMIdealResidueTopology(*args))
10707 
10708  def remove_atom(self, name):
10709  r"""remove_atom(CHARMMIdealResidueTopology self, std::string name)"""
10710  return _IMP_atom.CHARMMIdealResidueTopology_remove_atom(self, name)
10711 
10712  def set_default_first_patch(self, patch):
10713  r"""set_default_first_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10714  return _IMP_atom.CHARMMIdealResidueTopology_set_default_first_patch(self, patch)
10715 
10716  def set_default_last_patch(self, patch):
10717  r"""set_default_last_patch(CHARMMIdealResidueTopology self, std::string patch)"""
10718  return _IMP_atom.CHARMMIdealResidueTopology_set_default_last_patch(self, patch)
10719 
10720  def get_default_first_patch(self):
10721  r"""get_default_first_patch(CHARMMIdealResidueTopology self) -> std::string"""
10722  return _IMP_atom.CHARMMIdealResidueTopology_get_default_first_patch(self)
10723 
10724  def get_default_last_patch(self):
10725  r"""get_default_last_patch(CHARMMIdealResidueTopology self) -> std::string"""
10726  return _IMP_atom.CHARMMIdealResidueTopology_get_default_last_patch(self)
10727  __swig_destroy__ = _IMP_atom.delete_CHARMMIdealResidueTopology
10728 
10729  def __str__(self):
10730  r"""__str__(CHARMMIdealResidueTopology self) -> std::string"""
10731  return _IMP_atom.CHARMMIdealResidueTopology___str__(self)
10732 
10733  def __repr__(self):
10734  r"""__repr__(CHARMMIdealResidueTopology self) -> std::string"""
10735  return _IMP_atom.CHARMMIdealResidueTopology___repr__(self)
10736 
10737  @staticmethod
10738  def get_from(o):
10739  return _object_cast_to_CHARMMIdealResidueTopology(o)
10740 
10741 
10742 # Register CHARMMIdealResidueTopology in _IMP_atom:
10743 _IMP_atom.CHARMMIdealResidueTopology_swigregister(CHARMMIdealResidueTopology)
10744 class CHARMMPatch(CHARMMResidueTopologyBase):
10745  r"""Proxy of C++ IMP::atom::CHARMMPatch class."""
10746 
10747  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10748 
10749  def __init__(self, type):
10750  r"""__init__(CHARMMPatch self, std::string type) -> CHARMMPatch"""
10751  _IMP_atom.CHARMMPatch_swiginit(self, _IMP_atom.new_CHARMMPatch(type))
10752 
10753  def add_removed_atom(self, name):
10754  r"""add_removed_atom(CHARMMPatch self, std::string name)"""
10755  return _IMP_atom.CHARMMPatch_add_removed_atom(self, name)
10756 
10757  def get_number_of_removed_atoms(self):
10758  r"""get_number_of_removed_atoms(CHARMMPatch self) -> unsigned int"""
10759  return _IMP_atom.CHARMMPatch_get_number_of_removed_atoms(self)
10760 
10761  def get_removed_atom(self, i):
10762  r"""get_removed_atom(CHARMMPatch self, unsigned int i) -> std::string"""
10763  return _IMP_atom.CHARMMPatch_get_removed_atom(self, i)
10764 
10765  def apply(self, *args):
10766  r"""
10767  apply(CHARMMPatch self, CHARMMResidueTopology res)
10768  apply(CHARMMPatch self, CHARMMResidueTopology res1, CHARMMResidueTopology res2)
10769  """
10770  return _IMP_atom.CHARMMPatch_apply(self, *args)
10771  __swig_destroy__ = _IMP_atom.delete_CHARMMPatch
10772 
10773  def __str__(self):
10774  r"""__str__(CHARMMPatch self) -> std::string"""
10775  return _IMP_atom.CHARMMPatch___str__(self)
10776 
10777  def __repr__(self):
10778  r"""__repr__(CHARMMPatch self) -> std::string"""
10779  return _IMP_atom.CHARMMPatch___repr__(self)
10780 
10781  @staticmethod
10782  def get_from(o):
10783  return _object_cast_to_CHARMMPatch(o)
10784 
10785 
10786 # Register CHARMMPatch in _IMP_atom:
10787 _IMP_atom.CHARMMPatch_swigregister(CHARMMPatch)
10788 class CHARMMResidueTopology(CHARMMIdealResidueTopology):
10789  r"""Proxy of C++ IMP::atom::CHARMMResidueTopology class."""
10790 
10791  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10792 
10793  def __init__(self, *args):
10794  r"""
10795  __init__(CHARMMResidueTopology self, ResidueType type) -> CHARMMResidueTopology
10796  __init__(CHARMMResidueTopology self, CHARMMIdealResidueTopology ideal) -> CHARMMResidueTopology
10797  """
10798  _IMP_atom.CHARMMResidueTopology_swiginit(self, _IMP_atom.new_CHARMMResidueTopology(*args))
10799 
10800  def get_patched(self):
10801  r"""get_patched(CHARMMResidueTopology self) -> bool"""
10802  return _IMP_atom.CHARMMResidueTopology_get_patched(self)
10803 
10804  def set_patched(self, patched):
10805  r"""set_patched(CHARMMResidueTopology self, bool patched)"""
10806  return _IMP_atom.CHARMMResidueTopology_set_patched(self, patched)
10807  __swig_destroy__ = _IMP_atom.delete_CHARMMResidueTopology
10808 
10809  def __str__(self):
10810  r"""__str__(CHARMMResidueTopology self) -> std::string"""
10811  return _IMP_atom.CHARMMResidueTopology___str__(self)
10812 
10813  def __repr__(self):
10814  r"""__repr__(CHARMMResidueTopology self) -> std::string"""
10815  return _IMP_atom.CHARMMResidueTopology___repr__(self)
10816 
10817  @staticmethod
10818  def get_from(o):
10819  return _object_cast_to_CHARMMResidueTopology(o)
10820 
10821 
10822 # Register CHARMMResidueTopology in _IMP_atom:
10823 _IMP_atom.CHARMMResidueTopology_swigregister(CHARMMResidueTopology)
10824 class CHARMMAtom(Atom):
10825  r"""Proxy of C++ IMP::atom::CHARMMAtom class."""
10826 
10827  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10828 
10829  def __init__(self, *args):
10830  r"""
10831  __init__(CHARMMAtom self) -> CHARMMAtom
10832  __init__(CHARMMAtom self, Model m, ParticleIndex id) -> CHARMMAtom
10833  __init__(CHARMMAtom self, _ParticleAdaptor d) -> CHARMMAtom
10834  """
10835  _IMP_atom.CHARMMAtom_swiginit(self, _IMP_atom.new_CHARMMAtom(*args))
10836 
10837  def show(self, *args):
10838  r"""show(CHARMMAtom self, _ostream out=std::cout)"""
10839  return _IMP_atom.CHARMMAtom_show(self, *args)
10840 
10841  @staticmethod
10842  def setup_particle(*args):
10843  r"""
10844  setup_particle(Model m, ParticleIndex pi, IMP::String charmm_type) -> CHARMMAtom
10845  setup_particle(_ParticleAdaptor pa, IMP::String charmm_type) -> CHARMMAtom
10846  """
10847  return _IMP_atom.CHARMMAtom_setup_particle(*args)
10848 
10849  def get_charmm_type(self):
10850  r"""get_charmm_type(CHARMMAtom self) -> IMP::String"""
10851  return _IMP_atom.CHARMMAtom_get_charmm_type(self)
10852 
10853  def set_charmm_type(self, t):
10854  r"""set_charmm_type(CHARMMAtom self, IMP::String t)"""
10855  return _IMP_atom.CHARMMAtom_set_charmm_type(self, t)
10856 
10857  @staticmethod
10858  def get_is_setup(*args):
10859  r"""
10860  get_is_setup(_ParticleAdaptor p) -> bool
10861  get_is_setup(Model m, ParticleIndex pi) -> bool
10862  """
10863  return _IMP_atom.CHARMMAtom_get_is_setup(*args)
10864 
10865  @staticmethod
10866  def get_charmm_type_key():
10867  r"""get_charmm_type_key() -> StringKey"""
10868  return _IMP_atom.CHARMMAtom_get_charmm_type_key()
10869 
10870  def add_attribute(self, *args):
10871  r"""
10872  add_attribute(CHARMMAtom self, FloatKey k, IMP::Float v, bool opt)
10873  add_attribute(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10874  add_attribute(CHARMMAtom self, IntKey a0, IMP::Int a1)
10875  add_attribute(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10876  add_attribute(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10877  add_attribute(CHARMMAtom self, StringKey a0, IMP::String a1)
10878  add_attribute(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10879  add_attribute(CHARMMAtom self, ObjectKey a0, Object a1)
10880  add_attribute(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10881  add_attribute(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10882  add_attribute(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10883  add_attribute(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10884  """
10885  return _IMP_atom.CHARMMAtom_add_attribute(self, *args)
10886 
10887  def get_value(self, *args):
10888  r"""
10889  get_value(CHARMMAtom self, FloatKey a0) -> IMP::Float
10890  get_value(CHARMMAtom self, IntKey a0) -> IMP::Int
10891  get_value(CHARMMAtom self, FloatsKey a0) -> IMP::Floats
10892  get_value(CHARMMAtom self, IntsKey a0) -> IMP::Ints
10893  get_value(CHARMMAtom self, StringKey a0) -> IMP::String
10894  get_value(CHARMMAtom self, ParticleIndexKey a0) -> Particle
10895  get_value(CHARMMAtom self, ObjectKey a0) -> Object
10896  get_value(CHARMMAtom self, SparseFloatKey a0) -> IMP::Float
10897  get_value(CHARMMAtom self, SparseIntKey a0) -> IMP::Int
10898  get_value(CHARMMAtom self, SparseStringKey a0) -> IMP::String
10899  get_value(CHARMMAtom self, SparseParticleIndexKey a0) -> ParticleIndex
10900  """
10901  return _IMP_atom.CHARMMAtom_get_value(self, *args)
10902 
10903  def set_value(self, *args):
10904  r"""
10905  set_value(CHARMMAtom self, FloatKey a0, IMP::Float a1)
10906  set_value(CHARMMAtom self, IntKey a0, IMP::Int a1)
10907  set_value(CHARMMAtom self, FloatsKey a0, IMP::Floats a1)
10908  set_value(CHARMMAtom self, IntsKey a0, IMP::Ints a1)
10909  set_value(CHARMMAtom self, StringKey a0, IMP::String a1)
10910  set_value(CHARMMAtom self, ParticleIndexKey a0, Particle a1)
10911  set_value(CHARMMAtom self, ObjectKey a0, Object a1)
10912  set_value(CHARMMAtom self, SparseFloatKey a0, IMP::Float a1)
10913  set_value(CHARMMAtom self, SparseIntKey a0, IMP::Int a1)
10914  set_value(CHARMMAtom self, SparseStringKey a0, IMP::String a1)
10915  set_value(CHARMMAtom self, SparseParticleIndexKey a0, ParticleIndex a1)
10916  """
10917  return _IMP_atom.CHARMMAtom_set_value(self, *args)
10918 
10919  def remove_attribute(self, *args):
10920  r"""
10921  remove_attribute(CHARMMAtom self, FloatKey a0)
10922  remove_attribute(CHARMMAtom self, IntKey a0)
10923  remove_attribute(CHARMMAtom self, FloatsKey a0)
10924  remove_attribute(CHARMMAtom self, IntsKey a0)
10925  remove_attribute(CHARMMAtom self, StringKey a0)
10926  remove_attribute(CHARMMAtom self, ParticleIndexKey a0)
10927  remove_attribute(CHARMMAtom self, ObjectKey a0)
10928  remove_attribute(CHARMMAtom self, SparseFloatKey a0)
10929  remove_attribute(CHARMMAtom self, SparseIntKey a0)
10930  remove_attribute(CHARMMAtom self, SparseStringKey a0)
10931  remove_attribute(CHARMMAtom self, SparseParticleIndexKey a0)
10932  """
10933  return _IMP_atom.CHARMMAtom_remove_attribute(self, *args)
10934 
10935  def has_attribute(self, *args):
10936  r"""
10937  has_attribute(CHARMMAtom self, FloatKey a0) -> bool
10938  has_attribute(CHARMMAtom self, IntKey a0) -> bool
10939  has_attribute(CHARMMAtom self, FloatsKey a0) -> bool
10940  has_attribute(CHARMMAtom self, IntsKey a0) -> bool
10941  has_attribute(CHARMMAtom self, StringKey a0) -> bool
10942  has_attribute(CHARMMAtom self, ParticleIndexKey a0) -> bool
10943  has_attribute(CHARMMAtom self, ObjectKey a0) -> bool
10944  has_attribute(CHARMMAtom self, SparseFloatKey a0) -> bool
10945  has_attribute(CHARMMAtom self, SparseIntKey a0) -> bool
10946  has_attribute(CHARMMAtom self, SparseStringKey a0) -> bool
10947  has_attribute(CHARMMAtom self, SparseParticleIndexKey a0) -> bool
10948  """
10949  return _IMP_atom.CHARMMAtom_has_attribute(self, *args)
10950 
10951  def get_derivative(self, a0):
10952  r"""get_derivative(CHARMMAtom self, FloatKey a0) -> double"""
10953  return _IMP_atom.CHARMMAtom_get_derivative(self, a0)
10954 
10955  def get_name(self):
10956  r"""get_name(CHARMMAtom self) -> std::string"""
10957  return _IMP_atom.CHARMMAtom_get_name(self)
10958 
10959  def clear_caches(self):
10960  r"""clear_caches(CHARMMAtom self)"""
10961  return _IMP_atom.CHARMMAtom_clear_caches(self)
10962 
10963  def set_name(self, a0):
10964  r"""set_name(CHARMMAtom self, std::string a0)"""
10965  return _IMP_atom.CHARMMAtom_set_name(self, a0)
10966 
10967  def set_check_level(self, a0):
10968  r"""set_check_level(CHARMMAtom self, IMP::CheckLevel a0)"""
10969  return _IMP_atom.CHARMMAtom_set_check_level(self, a0)
10970 
10971  def add_to_derivative(self, a0, a1, a2):
10972  r"""add_to_derivative(CHARMMAtom self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10973  return _IMP_atom.CHARMMAtom_add_to_derivative(self, a0, a1, a2)
10974 
10975  def set_is_optimized(self, a0, a1):
10976  r"""set_is_optimized(CHARMMAtom self, FloatKey a0, bool a1)"""
10977  return _IMP_atom.CHARMMAtom_set_is_optimized(self, a0, a1)
10978 
10979  def get_is_optimized(self, a0):
10980  r"""get_is_optimized(CHARMMAtom self, FloatKey a0) -> bool"""
10981  return _IMP_atom.CHARMMAtom_get_is_optimized(self, a0)
10982 
10983  def get_check_level(self):
10984  r"""get_check_level(CHARMMAtom self) -> IMP::CheckLevel"""
10985  return _IMP_atom.CHARMMAtom_get_check_level(self)
10986 
10987  def __eq__(self, *args):
10988  r"""
10989  __eq__(CHARMMAtom self, CHARMMAtom o) -> bool
10990  __eq__(CHARMMAtom self, Particle d) -> bool
10991  """
10992  return _IMP_atom.CHARMMAtom___eq__(self, *args)
10993 
10994  def __ne__(self, *args):
10995  r"""
10996  __ne__(CHARMMAtom self, CHARMMAtom o) -> bool
10997  __ne__(CHARMMAtom self, Particle d) -> bool
10998  """
10999  return _IMP_atom.CHARMMAtom___ne__(self, *args)
11000 
11001  def __le__(self, *args):
11002  r"""
11003  __le__(CHARMMAtom self, CHARMMAtom o) -> bool
11004  __le__(CHARMMAtom self, Particle d) -> bool
11005  """
11006  return _IMP_atom.CHARMMAtom___le__(self, *args)
11007 
11008  def __lt__(self, *args):
11009  r"""
11010  __lt__(CHARMMAtom self, CHARMMAtom o) -> bool
11011  __lt__(CHARMMAtom self, Particle d) -> bool
11012  """
11013  return _IMP_atom.CHARMMAtom___lt__(self, *args)
11014 
11015  def __ge__(self, *args):
11016  r"""
11017  __ge__(CHARMMAtom self, CHARMMAtom o) -> bool
11018  __ge__(CHARMMAtom self, Particle d) -> bool
11019  """
11020  return _IMP_atom.CHARMMAtom___ge__(self, *args)
11021 
11022  def __gt__(self, *args):
11023  r"""
11024  __gt__(CHARMMAtom self, CHARMMAtom o) -> bool
11025  __gt__(CHARMMAtom self, Particle d) -> bool
11026  """
11027  return _IMP_atom.CHARMMAtom___gt__(self, *args)
11028 
11029  def __hash__(self):
11030  r"""__hash__(CHARMMAtom self) -> std::size_t"""
11031  return _IMP_atom.CHARMMAtom___hash__(self)
11032 
11033  def __str__(self):
11034  r"""__str__(CHARMMAtom self) -> std::string"""
11035  return _IMP_atom.CHARMMAtom___str__(self)
11036 
11037  def __repr__(self):
11038  r"""__repr__(CHARMMAtom self) -> std::string"""
11039  return _IMP_atom.CHARMMAtom___repr__(self)
11040 
11041  def _get_as_binary(self):
11042  r"""_get_as_binary(CHARMMAtom self) -> PyObject *"""
11043  return _IMP_atom.CHARMMAtom__get_as_binary(self)
11044 
11045  def _set_from_binary(self, p):
11046  r"""_set_from_binary(CHARMMAtom self, PyObject * p)"""
11047  return _IMP_atom.CHARMMAtom__set_from_binary(self, p)
11048 
11049  def __getstate__(self):
11050  p = self._get_as_binary()
11051  if len(self.__dict__) > 1:
11052  d = self.__dict__.copy()
11053  del d['this']
11054  p = (d, p)
11055  return p
11056 
11057  def __setstate__(self, p):
11058  if not hasattr(self, 'this'):
11059  self.__init__()
11060  if isinstance(p, tuple):
11061  d, p = p
11062  self.__dict__.update(d)
11063  return self._set_from_binary(p)
11064 
11065  __swig_destroy__ = _IMP_atom.delete_CHARMMAtom
11066 
11067 # Register CHARMMAtom in _IMP_atom:
11068 _IMP_atom.CHARMMAtom_swigregister(CHARMMAtom)
11069 
11070 def get_charmm_untyped_atoms(hierarchy):
11071  r"""get_charmm_untyped_atoms(Hierarchy hierarchy) -> IMP::atom::Atoms"""
11072  return _IMP_atom.get_charmm_untyped_atoms(hierarchy)
11073 
11074 def remove_charmm_untyped_atoms(hierarchy):
11075  r"""remove_charmm_untyped_atoms(Hierarchy hierarchy)"""
11076  return _IMP_atom.remove_charmm_untyped_atoms(hierarchy)
11077 class CHARMMBondParameters(object):
11078  r"""Proxy of C++ IMP::atom::CHARMMBondParameters class."""
11079 
11080  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11081  force_constant = property(_IMP_atom.CHARMMBondParameters_force_constant_get, _IMP_atom.CHARMMBondParameters_force_constant_set, doc=r"""force_constant : double""")
11082  ideal = property(_IMP_atom.CHARMMBondParameters_ideal_get, _IMP_atom.CHARMMBondParameters_ideal_set, doc=r"""ideal : double""")
11083 
11084  def __init__(self):
11085  r"""__init__(CHARMMBondParameters self) -> CHARMMBondParameters"""
11086  _IMP_atom.CHARMMBondParameters_swiginit(self, _IMP_atom.new_CHARMMBondParameters())
11087 
11088  def show(self, *args):
11089  r"""show(CHARMMBondParameters self, _ostream out=std::cout)"""
11090  return _IMP_atom.CHARMMBondParameters_show(self, *args)
11091 
11092  def __str__(self):
11093  r"""__str__(CHARMMBondParameters self) -> std::string"""
11094  return _IMP_atom.CHARMMBondParameters___str__(self)
11095 
11096  def __repr__(self):
11097  r"""__repr__(CHARMMBondParameters self) -> std::string"""
11098  return _IMP_atom.CHARMMBondParameters___repr__(self)
11099 
11100  def _get_as_binary(self):
11101  r"""_get_as_binary(CHARMMBondParameters self) -> PyObject *"""
11102  return _IMP_atom.CHARMMBondParameters__get_as_binary(self)
11103 
11104  def _set_from_binary(self, p):
11105  r"""_set_from_binary(CHARMMBondParameters self, PyObject * p)"""
11106  return _IMP_atom.CHARMMBondParameters__set_from_binary(self, p)
11107 
11108  def __getstate__(self):
11109  p = self._get_as_binary()
11110  if len(self.__dict__) > 1:
11111  d = self.__dict__.copy()
11112  del d['this']
11113  p = (d, p)
11114  return p
11115 
11116  def __setstate__(self, p):
11117  if not hasattr(self, 'this'):
11118  self.__init__()
11119  if isinstance(p, tuple):
11120  d, p = p
11121  self.__dict__.update(d)
11122  return self._set_from_binary(p)
11123 
11124  __swig_destroy__ = _IMP_atom.delete_CHARMMBondParameters
11125 
11126 # Register CHARMMBondParameters in _IMP_atom:
11127 _IMP_atom.CHARMMBondParameters_swigregister(CHARMMBondParameters)
11128 class CHARMMDihedralParameters(object):
11129  r"""Proxy of C++ IMP::atom::CHARMMDihedralParameters class."""
11130 
11131  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11132  force_constant = property(_IMP_atom.CHARMMDihedralParameters_force_constant_get, _IMP_atom.CHARMMDihedralParameters_force_constant_set, doc=r"""force_constant : double""")
11133  multiplicity = property(_IMP_atom.CHARMMDihedralParameters_multiplicity_get, _IMP_atom.CHARMMDihedralParameters_multiplicity_set, doc=r"""multiplicity : int""")
11134  ideal = property(_IMP_atom.CHARMMDihedralParameters_ideal_get, _IMP_atom.CHARMMDihedralParameters_ideal_set, doc=r"""ideal : double""")
11135 
11136  def __init__(self):
11137  r"""__init__(CHARMMDihedralParameters self) -> CHARMMDihedralParameters"""
11138  _IMP_atom.CHARMMDihedralParameters_swiginit(self, _IMP_atom.new_CHARMMDihedralParameters())
11139 
11140  def show(self, *args):
11141  r"""show(CHARMMDihedralParameters self, _ostream out=std::cout)"""
11142  return _IMP_atom.CHARMMDihedralParameters_show(self, *args)
11143 
11144  def __str__(self):
11145  r"""__str__(CHARMMDihedralParameters self) -> std::string"""
11146  return _IMP_atom.CHARMMDihedralParameters___str__(self)
11147 
11148  def __repr__(self):
11149  r"""__repr__(CHARMMDihedralParameters self) -> std::string"""
11150  return _IMP_atom.CHARMMDihedralParameters___repr__(self)
11151 
11152  def _get_as_binary(self):
11153  r"""_get_as_binary(CHARMMDihedralParameters self) -> PyObject *"""
11154  return _IMP_atom.CHARMMDihedralParameters__get_as_binary(self)
11155 
11156  def _set_from_binary(self, p):
11157  r"""_set_from_binary(CHARMMDihedralParameters self, PyObject * p)"""
11158  return _IMP_atom.CHARMMDihedralParameters__set_from_binary(self, p)
11159 
11160  def __getstate__(self):
11161  p = self._get_as_binary()
11162  if len(self.__dict__) > 1:
11163  d = self.__dict__.copy()
11164  del d['this']
11165  p = (d, p)
11166  return p
11167 
11168  def __setstate__(self, p):
11169  if not hasattr(self, 'this'):
11170  self.__init__()
11171  if isinstance(p, tuple):
11172  d, p = p
11173  self.__dict__.update(d)
11174  return self._set_from_binary(p)
11175 
11176  __swig_destroy__ = _IMP_atom.delete_CHARMMDihedralParameters
11177 
11178 # Register CHARMMDihedralParameters in _IMP_atom:
11179 _IMP_atom.CHARMMDihedralParameters_swigregister(CHARMMDihedralParameters)
11180 class CHARMMParameters(ForceFieldParameters):
11181  r"""Proxy of C++ IMP::atom::CHARMMParameters class."""
11182 
11183  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11184 
11185  def __init__(self, *args):
11186  r"""__init__(CHARMMParameters self, TextInput topology_file_name, TextInput par_file_name=IMP::TextInput(), bool translate_names_to_pdb=False) -> CHARMMParameters"""
11187  _IMP_atom.CHARMMParameters_swiginit(self, _IMP_atom.new_CHARMMParameters(*args))
11188 
11189  def add_residue_topology(self, res):
11190  r"""add_residue_topology(CHARMMParameters self, CHARMMIdealResidueTopology res)"""
11191  return _IMP_atom.CHARMMParameters_add_residue_topology(self, res)
11192 
11193  def get_residue_topology(self, type):
11194  r"""get_residue_topology(CHARMMParameters self, ResidueType type) -> CHARMMIdealResidueTopology"""
11195  return _IMP_atom.CHARMMParameters_get_residue_topology(self, type)
11196 
11197  def add_patch(self, patch):
11198  r"""add_patch(CHARMMParameters self, CHARMMPatch patch)"""
11199  return _IMP_atom.CHARMMParameters_add_patch(self, patch)
11200 
11201  def get_patch(self, name):
11202  r"""get_patch(CHARMMParameters self, std::string name) -> CHARMMPatch"""
11203  return _IMP_atom.CHARMMParameters_get_patch(self, name)
11204 
11205  def create_topology(self, hierarchy):
11206  r"""create_topology(CHARMMParameters self, Hierarchy hierarchy) -> CHARMMTopology"""
11207  return _IMP_atom.CHARMMParameters_create_topology(self, hierarchy)
11208 
11209  def get_bond_parameters(self, type1, type2):
11210  r"""get_bond_parameters(CHARMMParameters self, std::string type1, std::string type2) -> CHARMMBondParameters"""
11211  return _IMP_atom.CHARMMParameters_get_bond_parameters(self, type1, type2)
11212 
11213  def get_angle_parameters(self, type1, type2, type3):
11214  r"""get_angle_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3) -> CHARMMBondParameters"""
11215  return _IMP_atom.CHARMMParameters_get_angle_parameters(self, type1, type2, type3)
11216 
11217  def get_dihedral_parameters(self, type1, type2, type3, type4):
11218  r"""get_dihedral_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> IMP::atom::CHARMMDihedralParametersList"""
11219  return _IMP_atom.CHARMMParameters_get_dihedral_parameters(self, type1, type2, type3, type4)
11220 
11221  def get_improper_parameters(self, type1, type2, type3, type4):
11222  r"""get_improper_parameters(CHARMMParameters self, std::string type1, std::string type2, std::string type3, std::string type4) -> CHARMMDihedralParameters"""
11223  return _IMP_atom.CHARMMParameters_get_improper_parameters(self, type1, type2, type3, type4)
11224 
11225  def create_angles(self, bonds):
11226  r"""create_angles(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11227  return _IMP_atom.CHARMMParameters_create_angles(self, bonds)
11228 
11229  def create_dihedrals(self, bonds):
11230  r"""create_dihedrals(CHARMMParameters self, IMP::Particles bonds) -> IMP::Particles"""
11231  return _IMP_atom.CHARMMParameters_create_dihedrals(self, bonds)
11232 
11233  def get_version_info(self):
11234  r"""get_version_info(CHARMMParameters self) -> VersionInfo"""
11235  return _IMP_atom.CHARMMParameters_get_version_info(self)
11236  __swig_destroy__ = _IMP_atom.delete_CHARMMParameters
11237 
11238  def __str__(self):
11239  r"""__str__(CHARMMParameters self) -> std::string"""
11240  return _IMP_atom.CHARMMParameters___str__(self)
11241 
11242  def __repr__(self):
11243  r"""__repr__(CHARMMParameters self) -> std::string"""
11244  return _IMP_atom.CHARMMParameters___repr__(self)
11245 
11246  @staticmethod
11247  def get_from(o):
11248  return _object_cast_to_CHARMMParameters(o)
11249 
11250 
11251 # Register CHARMMParameters in _IMP_atom:
11252 _IMP_atom.CHARMMParameters_swigregister(CHARMMParameters)
11253 
11255  r"""get_heavy_atom_CHARMM_parameters() -> CHARMMParameters"""
11256  return _IMP_atom.get_heavy_atom_CHARMM_parameters()
11257 
11259  r"""get_all_atom_CHARMM_parameters() -> CHARMMParameters"""
11260  return _IMP_atom.get_all_atom_CHARMM_parameters()
11261 class CHARMMSegmentTopology(IMP.Object):
11262  r"""Proxy of C++ IMP::atom::CHARMMSegmentTopology class."""
11263 
11264  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11265  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)
11266  def __set_residues(self, obj): IMP._list_util.set_varlist(self.residues, obj)
11267  def __del_residues(self): IMP._list_util.del_varlist(self.residues)
11268  residues = property(__get_residues, __set_residues, __del_residues, doc="List of ##ucnames")
11269 
11270  def remove_residue(self, d):
11271  r"""remove_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d)"""
11272  return _IMP_atom.CHARMMSegmentTopology_remove_residue(self, d)
11273 
11274  def _python_index_residue(self, d, start, stop):
11275  r"""_python_index_residue(CHARMMSegmentTopology self, CHARMMResidueTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11276  return _IMP_atom.CHARMMSegmentTopology__python_index_residue(self, d, start, stop)
11277 
11278  def remove_residues(self, d):
11279  r"""remove_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & d)"""
11280  return _IMP_atom.CHARMMSegmentTopology_remove_residues(self, d)
11281 
11282  def set_residues(self, ps):
11283  r"""set_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & ps)"""
11284  return _IMP_atom.CHARMMSegmentTopology_set_residues(self, ps)
11285 
11286  def set_residues_order(self, objs):
11287  r"""set_residues_order(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11288  return _IMP_atom.CHARMMSegmentTopology_set_residues_order(self, objs)
11289 
11290  def add_residue(self, obj):
11291  r"""add_residue(CHARMMSegmentTopology self, CHARMMResidueTopology obj) -> unsigned int"""
11292  return _IMP_atom.CHARMMSegmentTopology_add_residue(self, obj)
11293 
11294  def add_residues(self, objs):
11295  r"""add_residues(CHARMMSegmentTopology self, IMP::atom::CHARMMResidueTopologies const & objs)"""
11296  return _IMP_atom.CHARMMSegmentTopology_add_residues(self, objs)
11297 
11298  def clear_residues(self):
11299  r"""clear_residues(CHARMMSegmentTopology self)"""
11300  return _IMP_atom.CHARMMSegmentTopology_clear_residues(self)
11301 
11302  def get_number_of_residues(self):
11303  r"""get_number_of_residues(CHARMMSegmentTopology self) -> unsigned int"""
11304  return _IMP_atom.CHARMMSegmentTopology_get_number_of_residues(self)
11305 
11306  def get_has_residues(self):
11307  r"""get_has_residues(CHARMMSegmentTopology self) -> bool"""
11308  return _IMP_atom.CHARMMSegmentTopology_get_has_residues(self)
11309 
11310  def get_residue(self, i):
11311  r"""get_residue(CHARMMSegmentTopology self, unsigned int i) -> CHARMMResidueTopology"""
11312  return _IMP_atom.CHARMMSegmentTopology_get_residue(self, i)
11313 
11314  def get_residues(self):
11315  r"""get_residues(CHARMMSegmentTopology self) -> IMP::atom::CHARMMResidueTopologies"""
11316  return _IMP_atom.CHARMMSegmentTopology_get_residues(self)
11317 
11318  def erase_residue(self, i):
11319  r"""erase_residue(CHARMMSegmentTopology self, unsigned int i)"""
11320  return _IMP_atom.CHARMMSegmentTopology_erase_residue(self, i)
11321 
11322  def reserve_residues(self, sz):
11323  r"""reserve_residues(CHARMMSegmentTopology self, unsigned int sz)"""
11324  return _IMP_atom.CHARMMSegmentTopology_reserve_residues(self, sz)
11325 
11326  def get_version_info(self):
11327  r"""get_version_info(CHARMMSegmentTopology self) -> VersionInfo"""
11328  return _IMP_atom.CHARMMSegmentTopology_get_version_info(self)
11329  __swig_destroy__ = _IMP_atom.delete_CHARMMSegmentTopology
11330 
11331  def __init__(self, *args):
11332  r"""__init__(CHARMMSegmentTopology self, std::string name="CHARMM segment topology %1%") -> CHARMMSegmentTopology"""
11333  _IMP_atom.CHARMMSegmentTopology_swiginit(self, _IMP_atom.new_CHARMMSegmentTopology(*args))
11334 
11335  def apply_default_patches(self, ff):
11336  r"""apply_default_patches(CHARMMSegmentTopology self, CHARMMParameters ff)"""
11337  return _IMP_atom.CHARMMSegmentTopology_apply_default_patches(self, ff)
11338 
11339  def __str__(self):
11340  r"""__str__(CHARMMSegmentTopology self) -> std::string"""
11341  return _IMP_atom.CHARMMSegmentTopology___str__(self)
11342 
11343  def __repr__(self):
11344  r"""__repr__(CHARMMSegmentTopology self) -> std::string"""
11345  return _IMP_atom.CHARMMSegmentTopology___repr__(self)
11346 
11347  @staticmethod
11348  def get_from(o):
11349  return _object_cast_to_CHARMMSegmentTopology(o)
11350 
11351 
11352 # Register CHARMMSegmentTopology in _IMP_atom:
11353 _IMP_atom.CHARMMSegmentTopology_swigregister(CHARMMSegmentTopology)
11354 class CHARMMTopology(IMP.Object):
11355  r"""Proxy of C++ IMP::atom::CHARMMTopology class."""
11356 
11357  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11358 
11359  def __init__(self, *args):
11360  r"""__init__(CHARMMTopology self, CHARMMParameters force_field, std::string name="CHARMM topology %1%") -> CHARMMTopology"""
11361  _IMP_atom.CHARMMTopology_swiginit(self, _IMP_atom.new_CHARMMTopology(*args))
11362 
11363  def get_parameters(self):
11364  r"""get_parameters(CHARMMTopology self) -> CHARMMParameters"""
11365  return _IMP_atom.CHARMMTopology_get_parameters(self)
11366 
11367  def add_sequence(self, sequence):
11368  r"""add_sequence(CHARMMTopology self, std::string sequence)"""
11369  return _IMP_atom.CHARMMTopology_add_sequence(self, sequence)
11370 
11371  def apply_default_patches(self):
11372  r"""apply_default_patches(CHARMMTopology self)"""
11373  return _IMP_atom.CHARMMTopology_apply_default_patches(self)
11374 
11375  def create_hierarchy(self, model):
11376  r"""create_hierarchy(CHARMMTopology self, Model model) -> Hierarchy"""
11377  return _IMP_atom.CHARMMTopology_create_hierarchy(self, model)
11378 
11379  def add_atom_types(self, hierarchy):
11380  r"""add_atom_types(CHARMMTopology self, Hierarchy hierarchy)"""
11381  return _IMP_atom.CHARMMTopology_add_atom_types(self, hierarchy)
11382 
11383  def add_coordinates(self, hierarchy):
11384  r"""add_coordinates(CHARMMTopology self, Hierarchy hierarchy)"""
11385  return _IMP_atom.CHARMMTopology_add_coordinates(self, hierarchy)
11386 
11387  def add_missing_atoms(self, hierarchy):
11388  r"""add_missing_atoms(CHARMMTopology self, Hierarchy hierarchy)"""
11389  return _IMP_atom.CHARMMTopology_add_missing_atoms(self, hierarchy)
11390 
11391  def setup_hierarchy(self, hierarchy):
11392  r"""setup_hierarchy(CHARMMTopology self, Hierarchy hierarchy)"""
11393  return _IMP_atom.CHARMMTopology_setup_hierarchy(self, hierarchy)
11394 
11395  def add_charges(self, hierarchy):
11396  r"""add_charges(CHARMMTopology self, Hierarchy hierarchy)"""
11397  return _IMP_atom.CHARMMTopology_add_charges(self, hierarchy)
11398 
11399  def add_bonds(self, hierarchy):
11400  r"""add_bonds(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11401  return _IMP_atom.CHARMMTopology_add_bonds(self, hierarchy)
11402 
11403  def add_dihedrals(self, hierarchy):
11404  r"""add_dihedrals(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11405  return _IMP_atom.CHARMMTopology_add_dihedrals(self, hierarchy)
11406 
11407  def add_impropers(self, hierarchy):
11408  r"""add_impropers(CHARMMTopology self, Hierarchy hierarchy) -> IMP::Particles"""
11409  return _IMP_atom.CHARMMTopology_add_impropers(self, hierarchy)
11410  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)
11411  def __set_segments(self, obj): IMP._list_util.set_varlist(self.segments, obj)
11412  def __del_segments(self): IMP._list_util.del_varlist(self.segments)
11413  segments = property(__get_segments, __set_segments, __del_segments, doc="List of ##ucnames")
11414 
11415  def remove_segment(self, d):
11416  r"""remove_segment(CHARMMTopology self, CHARMMSegmentTopology d)"""
11417  return _IMP_atom.CHARMMTopology_remove_segment(self, d)
11418 
11419  def _python_index_segment(self, d, start, stop):
11420  r"""_python_index_segment(CHARMMTopology self, CHARMMSegmentTopology d, unsigned int start, unsigned int stop) -> unsigned int"""
11421  return _IMP_atom.CHARMMTopology__python_index_segment(self, d, start, stop)
11422 
11423  def remove_segments(self, d):
11424  r"""remove_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & d)"""
11425  return _IMP_atom.CHARMMTopology_remove_segments(self, d)
11426 
11427  def set_segments(self, ps):
11428  r"""set_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & ps)"""
11429  return _IMP_atom.CHARMMTopology_set_segments(self, ps)
11430 
11431  def set_segments_order(self, objs):
11432  r"""set_segments_order(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11433  return _IMP_atom.CHARMMTopology_set_segments_order(self, objs)
11434 
11435  def add_segment(self, obj):
11436  r"""add_segment(CHARMMTopology self, CHARMMSegmentTopology obj) -> unsigned int"""
11437  return _IMP_atom.CHARMMTopology_add_segment(self, obj)
11438 
11439  def add_segments(self, objs):
11440  r"""add_segments(CHARMMTopology self, IMP::atom::CHARMMSegmentTopologies const & objs)"""
11441  return _IMP_atom.CHARMMTopology_add_segments(self, objs)
11442 
11443  def clear_segments(self):
11444  r"""clear_segments(CHARMMTopology self)"""
11445  return _IMP_atom.CHARMMTopology_clear_segments(self)
11446 
11447  def get_number_of_segments(self):
11448  r"""get_number_of_segments(CHARMMTopology self) -> unsigned int"""
11449  return _IMP_atom.CHARMMTopology_get_number_of_segments(self)
11450 
11451  def get_has_segments(self):
11452  r"""get_has_segments(CHARMMTopology self) -> bool"""
11453  return _IMP_atom.CHARMMTopology_get_has_segments(self)
11454 
11455  def get_segment(self, i):
11456  r"""get_segment(CHARMMTopology self, unsigned int i) -> CHARMMSegmentTopology"""
11457  return _IMP_atom.CHARMMTopology_get_segment(self, i)
11458 
11459  def get_segments(self):
11460  r"""get_segments(CHARMMTopology self) -> IMP::atom::CHARMMSegmentTopologies"""
11461  return _IMP_atom.CHARMMTopology_get_segments(self)
11462 
11463  def erase_segment(self, i):
11464  r"""erase_segment(CHARMMTopology self, unsigned int i)"""
11465  return _IMP_atom.CHARMMTopology_erase_segment(self, i)
11466 
11467  def reserve_segments(self, sz):
11468  r"""reserve_segments(CHARMMTopology self, unsigned int sz)"""
11469  return _IMP_atom.CHARMMTopology_reserve_segments(self, sz)
11470 
11471  def get_version_info(self):
11472  r"""get_version_info(CHARMMTopology self) -> VersionInfo"""
11473  return _IMP_atom.CHARMMTopology_get_version_info(self)
11474  __swig_destroy__ = _IMP_atom.delete_CHARMMTopology
11475 
11476  def __str__(self):
11477  r"""__str__(CHARMMTopology self) -> std::string"""
11478  return _IMP_atom.CHARMMTopology___str__(self)
11479 
11480  def __repr__(self):
11481  r"""__repr__(CHARMMTopology self) -> std::string"""
11482  return _IMP_atom.CHARMMTopology___repr__(self)
11483 
11484  @staticmethod
11485  def get_from(o):
11486  return _object_cast_to_CHARMMTopology(o)
11487 
11488 
11489 # Register CHARMMTopology in _IMP_atom:
11490 _IMP_atom.CHARMMTopology_swigregister(CHARMMTopology)
11491 class CHARMMStereochemistryRestraint(IMP.Restraint):
11492  r"""Proxy of C++ IMP::atom::CHARMMStereochemistryRestraint class."""
11493 
11494  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11495 
11496  def __init__(self, *args):
11497  r"""
11498  __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology) -> CHARMMStereochemistryRestraint
11499  __init__(CHARMMStereochemistryRestraint self, Hierarchy h, CHARMMTopology topology, IMP::ParticlesTemp limit_to_these_particles) -> CHARMMStereochemistryRestraint
11500  """
11501  _IMP_atom.CHARMMStereochemistryRestraint_swiginit(self, _IMP_atom.new_CHARMMStereochemistryRestraint(*args))
11502 
11503  def get_pair_filter(self):
11504  r"""get_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11505  return _IMP_atom.CHARMMStereochemistryRestraint_get_pair_filter(self)
11506 
11507  def get_full_pair_filter(self):
11508  r"""get_full_pair_filter(CHARMMStereochemistryRestraint self) -> StereochemistryPairFilter"""
11509  return _IMP_atom.CHARMMStereochemistryRestraint_get_full_pair_filter(self)
11510 
11511  def do_get_inputs(self):
11512  r"""do_get_inputs(CHARMMStereochemistryRestraint self) -> IMP::ModelObjectsTemp"""
11513  return _IMP_atom.CHARMMStereochemistryRestraint_do_get_inputs(self)
11514 
11515  def get_version_info(self):
11516  r"""get_version_info(CHARMMStereochemistryRestraint self) -> VersionInfo"""
11517  return _IMP_atom.CHARMMStereochemistryRestraint_get_version_info(self)
11518  __swig_destroy__ = _IMP_atom.delete_CHARMMStereochemistryRestraint
11519 
11520  def __str__(self):
11521  r"""__str__(CHARMMStereochemistryRestraint self) -> std::string"""
11522  return _IMP_atom.CHARMMStereochemistryRestraint___str__(self)
11523 
11524  def __repr__(self):
11525  r"""__repr__(CHARMMStereochemistryRestraint self) -> std::string"""
11526  return _IMP_atom.CHARMMStereochemistryRestraint___repr__(self)
11527 
11528  @staticmethod
11529  def get_from(o):
11530  return _object_cast_to_CHARMMStereochemistryRestraint(o)
11531 
11532 
11533 # Register CHARMMStereochemistryRestraint in _IMP_atom:
11534 _IMP_atom.CHARMMStereochemistryRestraint_swigregister(CHARMMStereochemistryRestraint)
11535 
11536 def add_bonds(*args):
11537  r"""add_bonds(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters())"""
11538  return _IMP_atom.add_bonds(*args)
11539 
11540 def add_radii(*args):
11541  r"""add_radii(Hierarchy d, ForceFieldParameters ffp=IMP::atom::get_all_atom_CHARMM_parameters(), FloatKey radius_key=IMP::FloatKey("radius"))"""
11542  return _IMP_atom.add_radii(*args)
11543 ALBER = _IMP_atom.ALBER
11544 
11545 HARPAZ = _IMP_atom.HARPAZ
11546 
11547 ANDERSSON = _IMP_atom.ANDERSSON
11548 
11549 TSAI = _IMP_atom.TSAI
11550 
11551 QUILLIN = _IMP_atom.QUILLIN
11552 
11553 SQUIRE = _IMP_atom.SQUIRE
11554 
11555 
11556 def get_protein_density_from_reference(densityReference):
11557  r"""get_protein_density_from_reference(IMP::atom::ProteinDensityReference densityReference) -> double"""
11558  return _IMP_atom.get_protein_density_from_reference(densityReference)
11559 
11560 def get_volume_from_mass(*args):
11561  r"""get_volume_from_mass(double m, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11562  return _IMP_atom.get_volume_from_mass(*args)
11563 
11564 def get_mass_from_volume(*args):
11565  r"""get_mass_from_volume(double v, IMP::atom::ProteinDensityReference ref=ALBER) -> double"""
11566  return _IMP_atom.get_mass_from_volume(*args)
11567 
11569  r"""get_mass_from_number_of_residues(unsigned int num_aa) -> double"""
11570  return _IMP_atom.get_mass_from_number_of_residues(num_aa)
11571 
11573  r"""get_volume_from_residue_type(ResidueType rt) -> double"""
11574  return _IMP_atom.get_volume_from_residue_type(rt)
11575 
11576 def get_molarity(n, volume):
11577  r"""get_molarity(double n, double volume) -> double"""
11578  return _IMP_atom.get_molarity(n, volume)
11579 
11580 def get_kd(na, nb, nab, volume):
11581  r"""get_kd(double na, double nb, double nab, double volume) -> double"""
11582  return _IMP_atom.get_kd(na, nb, nab, volume)
11583 
11584 def get_einstein_diffusion_coefficient(r, temp=-1):
11585  r"""get_einstein_diffusion_coefficient(double r, double temp=-1) -> double"""
11586  return _IMP_atom.get_einstein_diffusion_coefficient(r, temp)
11587 
11589  r"""get_einstein_rotational_diffusion_coefficient(double r, double temp=-1) -> double"""
11590  return _IMP_atom.get_einstein_rotational_diffusion_coefficient(r, temp)
11591 
11592 def get_diffusion_length(*args):
11593  r"""
11594  get_diffusion_length(double D, double t) -> double
11595  get_diffusion_length(double D, double force, double t, double temp=-1) -> double
11596  """
11597  return _IMP_atom.get_diffusion_length(*args)
11598 
11599 def get_diffusion_angle(D, dtfs):
11600  r"""get_diffusion_angle(double D, double dtfs) -> double"""
11601  return _IMP_atom.get_diffusion_angle(D, dtfs)
11602 
11603 def get_diffusion_coefficient(*args):
11604  r"""
11605  get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, double dt) -> double
11606  get_diffusion_coefficient(IMP::algebra::Vector3Ds const & displacements, IMP::Floats const & dts) -> double
11607  """
11608  return _IMP_atom.get_diffusion_coefficient(*args)
11609 
11610 def get_rotational_diffusion_coefficient(orientations, dt):
11611  r"""get_rotational_diffusion_coefficient(IMP::algebra::Rotation3Ds const & orientations, double dt) -> double"""
11612  return _IMP_atom.get_rotational_diffusion_coefficient(orientations, dt)
11613 
11614 def get_energy_in_femto_joules(energy_in_kcal_per_mol):
11615  r"""get_energy_in_femto_joules(double energy_in_kcal_per_mol) -> double"""
11616  return _IMP_atom.get_energy_in_femto_joules(energy_in_kcal_per_mol)
11617 
11618 def get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom):
11619  r"""get_force_in_femto_newtons(double force_in_kcal_per_mol_per_angstrom) -> double"""
11620  return _IMP_atom.get_force_in_femto_newtons(force_in_kcal_per_mol_per_angstrom)
11621 
11622 def get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square):
11623  r"""get_spring_constant_in_femto_newtons_per_angstrom(double k_in_kcal_per_mol_per_angstrom_square) -> double"""
11624  return _IMP_atom.get_spring_constant_in_femto_newtons_per_angstrom(k_in_kcal_per_mol_per_angstrom_square)
11625 class EzRestraint(IMP.Restraint):
11626  r"""Proxy of C++ IMP::atom::EzRestraint class."""
11627 
11628  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11629 
11630  def __init__(self, m, ps):
11631  r"""__init__(EzRestraint self, Model m, _ParticleIndexesAdaptor ps) -> EzRestraint"""
11632  _IMP_atom.EzRestraint_swiginit(self, _IMP_atom.new_EzRestraint(m, ps))
11633 
11634  def get_version_info(self):
11635  r"""get_version_info(EzRestraint self) -> VersionInfo"""
11636  return _IMP_atom.EzRestraint_get_version_info(self)
11637  __swig_destroy__ = _IMP_atom.delete_EzRestraint
11638 
11639  def __str__(self):
11640  r"""__str__(EzRestraint self) -> std::string"""
11641  return _IMP_atom.EzRestraint___str__(self)
11642 
11643  def __repr__(self):
11644  r"""__repr__(EzRestraint self) -> std::string"""
11645  return _IMP_atom.EzRestraint___repr__(self)
11646 
11647  @staticmethod
11648  def get_from(o):
11649  return _object_cast_to_EzRestraint(o)
11650 
11651 
11652 # Register EzRestraint in _IMP_atom:
11653 _IMP_atom.EzRestraint_swigregister(EzRestraint)
11654 
11655 def create_protein(*args):
11656  r"""
11657  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
11658  create_protein(Model m, std::string name, double target_radius, IMP::Ints const domain_boundaries) -> Hierarchy
11659  """
11660  return _IMP_atom.create_protein(*args)
11661 
11663  r"""
11664  create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=False) -> Hierarchy
11665  create_simplified_along_backbone(Chain input, IMP::IntRanges const & residue_segments, bool keep_detailed=False) -> Hierarchy
11666  """
11667  return _IMP_atom.create_simplified_along_backbone(*args)
11668 
11669 def create_simplified_from_volume(h, resolution):
11670  r"""create_simplified_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11671  return _IMP_atom.create_simplified_from_volume(h, resolution)
11672 
11673 def create_simplified_assembly_from_volume(h, resolution):
11674  r"""create_simplified_assembly_from_volume(Hierarchy h, double resolution) -> Hierarchy"""
11675  return _IMP_atom.create_simplified_assembly_from_volume(h, resolution)
11676 
11677 def get_residue_indexes(h):
11678  r"""get_residue_indexes(Hierarchy h) -> IMP::Ints"""
11679  return _IMP_atom.get_residue_indexes(h)
11680 
11681 def get_residue_type(*args):
11682  r"""
11683  get_residue_type(char c) -> ResidueType
11684  get_residue_type(Hierarchy h) -> ResidueType
11685  """
11686  return _IMP_atom.get_residue_type(*args)
11687 
11688 def get_atom_type(h):
11689  r"""get_atom_type(Hierarchy h) -> AtomType"""
11690  return _IMP_atom.get_atom_type(h)
11691 
11692 def get_domain_name(h):
11693  r"""get_domain_name(Hierarchy h) -> std::string"""
11694  return _IMP_atom.get_domain_name(h)
11695 
11697  r"""
11698  create_excluded_volume_restraint(IMP::atom::Selections const & s) -> Restraint
11699  create_excluded_volume_restraint(IMP::atom::Hierarchies const & hs, double resolution=-1) -> Restraint
11700  """
11701  return _IMP_atom.create_excluded_volume_restraint(*args)
11702 
11703 def setup_as_approximation(*args):
11704  r"""
11705  setup_as_approximation(Particle h, IMP::ParticlesTemp const & other, double resolution=-1)
11706  setup_as_approximation(Hierarchy h, double resolution=-1)
11707  """
11708  return _IMP_atom.setup_as_approximation(*args)
11709 class _HierarchyTreeVertexIndex(object):
11710  r"""Proxy of C++ IMP::atom::HierarchyTreeVertexIndex class."""
11711 
11712  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11713  __repr__ = _swig_repr
11714 
11715  def __init__(self):
11716  r"""__init__(_HierarchyTreeVertexIndex self) -> _HierarchyTreeVertexIndex"""
11717  _IMP_atom._HierarchyTreeVertexIndex_swiginit(self, _IMP_atom.new__HierarchyTreeVertexIndex())
11718  __swig_destroy__ = _IMP_atom.delete__HierarchyTreeVertexIndex
11719 
11720 # Register _HierarchyTreeVertexIndex in _IMP_atom:
11721 _IMP_atom._HierarchyTreeVertexIndex_swigregister(_HierarchyTreeVertexIndex)
11722 
11723 def show_as_graphviz(name, out):
11724  r"""show_as_graphviz(IMP::atom::HierarchyTree const & name, TextOutput out)"""
11725  return _IMP_atom.show_as_graphviz(name, out)
11726 
11727 def get_vertex_index(g):
11728  r"""get_vertex_index(IMP::atom::HierarchyTree const & g) -> _HierarchyTreeVertexIndex"""
11729  return _IMP_atom.get_vertex_index(g)
11730 
11731 def get_hierarchy_tree(h):
11732  r"""get_hierarchy_tree(Hierarchy h) -> IMP::atom::HierarchyTree"""
11733  return _IMP_atom.get_hierarchy_tree(h)
11734 class HierarchyGeometry(IMP.display.SingletonGeometry):
11735  r"""Proxy of C++ IMP::atom::HierarchyGeometry class."""
11736 
11737  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11738 
11739  def __init__(self, d, resolution=0):
11740  r"""__init__(HierarchyGeometry self, Hierarchy d, double resolution=0) -> HierarchyGeometry"""
11741  _IMP_atom.HierarchyGeometry_swiginit(self, _IMP_atom.new_HierarchyGeometry(d, resolution))
11742 
11743  def get_version_info(self):
11744  r"""get_version_info(HierarchyGeometry self) -> VersionInfo"""
11745  return _IMP_atom.HierarchyGeometry_get_version_info(self)
11746  __swig_destroy__ = _IMP_atom.delete_HierarchyGeometry
11747 
11748  def __str__(self):
11749  r"""__str__(HierarchyGeometry self) -> std::string"""
11750  return _IMP_atom.HierarchyGeometry___str__(self)
11751 
11752  def __repr__(self):
11753  r"""__repr__(HierarchyGeometry self) -> std::string"""
11754  return _IMP_atom.HierarchyGeometry___repr__(self)
11755 
11756  @staticmethod
11757  def get_from(o):
11758  return _object_cast_to_HierarchyGeometry(o)
11759 
11760 
11761 # Register HierarchyGeometry in _IMP_atom:
11762 _IMP_atom.HierarchyGeometry_swigregister(HierarchyGeometry)
11763 class HierarchiesGeometry(IMP.display.SingletonsGeometry):
11764  r"""Proxy of C++ IMP::atom::HierarchiesGeometry class."""
11765 
11766  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11767 
11768  def __init__(self, sc, resolution=-1):
11769  r"""__init__(HierarchiesGeometry self, SingletonContainer sc, double resolution=-1) -> HierarchiesGeometry"""
11770  _IMP_atom.HierarchiesGeometry_swiginit(self, _IMP_atom.new_HierarchiesGeometry(sc, resolution))
11771 
11772  def get_version_info(self):
11773  r"""get_version_info(HierarchiesGeometry self) -> VersionInfo"""
11774  return _IMP_atom.HierarchiesGeometry_get_version_info(self)
11775  __swig_destroy__ = _IMP_atom.delete_HierarchiesGeometry
11776 
11777  def __str__(self):
11778  r"""__str__(HierarchiesGeometry self) -> std::string"""
11779  return _IMP_atom.HierarchiesGeometry___str__(self)
11780 
11781  def __repr__(self):
11782  r"""__repr__(HierarchiesGeometry self) -> std::string"""
11783  return _IMP_atom.HierarchiesGeometry___repr__(self)
11784 
11785  @staticmethod
11786  def get_from(o):
11787  return _object_cast_to_HierarchiesGeometry(o)
11788 
11789 
11790 # Register HierarchiesGeometry in _IMP_atom:
11791 _IMP_atom.HierarchiesGeometry_swigregister(HierarchiesGeometry)
11792 
11793 def transform(*args):
11794  r"""
11795  transform(Hierarchy h, Transformation3D tr)
11796  transform(Hierarchy h, Transformation3D tr)
11797  """
11798  return _IMP_atom.transform(*args)
11799 class DopePairScore(_ADopeBase):
11800  r"""Proxy of C++ IMP::atom::DopePairScore class."""
11801 
11802  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11803 
11804  def __init__(self, *args):
11805  r"""
11806  __init__(DopePairScore self, double threshold=std::numeric_limits< double >::max()) -> DopePairScore
11807  __init__(DopePairScore self, double threshold, TextInput data_file) -> DopePairScore
11808  """
11809  _IMP_atom.DopePairScore_swiginit(self, _IMP_atom.new_DopePairScore(*args))
11810 
11811  def __str__(self):
11812  r"""__str__(DopePairScore self) -> std::string"""
11813  return _IMP_atom.DopePairScore___str__(self)
11814 
11815  def __repr__(self):
11816  r"""__repr__(DopePairScore self) -> std::string"""
11817  return _IMP_atom.DopePairScore___repr__(self)
11818 
11819  @staticmethod
11820  def get_from(o):
11821  return _object_cast_to_DopePairScore(o)
11822 
11823  __swig_destroy__ = _IMP_atom.delete_DopePairScore
11824 
11825 # Register DopePairScore in _IMP_atom:
11826 _IMP_atom.DopePairScore_swigregister(DopePairScore)
11827 
11828 def add_dope_score_data(h):
11829  r"""add_dope_score_data(Hierarchy h)"""
11830  return _IMP_atom.add_dope_score_data(h)
11831 class LoopStatisticalPairScore(_ALoopStatisticalBase):
11832  r"""Proxy of C++ IMP::atom::LoopStatisticalPairScore class."""
11833 
11834  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11835 
11836  def __init__(self, *args):
11837  r"""
11838  __init__(LoopStatisticalPairScore self, double threshold=std::numeric_limits< double >::max()) -> LoopStatisticalPairScore
11839  __init__(LoopStatisticalPairScore self, double threshold, TextInput data_file) -> LoopStatisticalPairScore
11840  """
11841  _IMP_atom.LoopStatisticalPairScore_swiginit(self, _IMP_atom.new_LoopStatisticalPairScore(*args))
11842 
11843  def __str__(self):
11844  r"""__str__(LoopStatisticalPairScore self) -> std::string"""
11845  return _IMP_atom.LoopStatisticalPairScore___str__(self)
11846 
11847  def __repr__(self):
11848  r"""__repr__(LoopStatisticalPairScore self) -> std::string"""
11849  return _IMP_atom.LoopStatisticalPairScore___repr__(self)
11850 
11851  @staticmethod
11852  def get_from(o):
11853  return _object_cast_to_LoopStatisticalPairScore(o)
11854 
11855  __swig_destroy__ = _IMP_atom.delete_LoopStatisticalPairScore
11856 
11857 # Register LoopStatisticalPairScore in _IMP_atom:
11858 _IMP_atom.LoopStatisticalPairScore_swigregister(LoopStatisticalPairScore)
11859 
11861  r"""add_loop_statistical_score_data(Hierarchy h)"""
11862  return _IMP_atom.add_loop_statistical_score_data(h)
11863 class OrientedSoapPairScore(_OrientedSoapBase):
11864  r"""Proxy of C++ IMP::atom::OrientedSoapPairScore class."""
11865 
11866  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11867 
11868  def __init__(self, library):
11869  r"""__init__(OrientedSoapPairScore self, std::string library) -> OrientedSoapPairScore"""
11870  _IMP_atom.OrientedSoapPairScore_swiginit(self, _IMP_atom.new_OrientedSoapPairScore(library))
11871 
11872  def get_pair_filter(self):
11873  r"""get_pair_filter(OrientedSoapPairScore self) -> SoapPairFilter"""
11874  return _IMP_atom.OrientedSoapPairScore_get_pair_filter(self)
11875 
11876  def __str__(self):
11877  r"""__str__(OrientedSoapPairScore self) -> std::string"""
11878  return _IMP_atom.OrientedSoapPairScore___str__(self)
11879 
11880  def __repr__(self):
11881  r"""__repr__(OrientedSoapPairScore self) -> std::string"""
11882  return _IMP_atom.OrientedSoapPairScore___repr__(self)
11883 
11884  @staticmethod
11885  def get_from(o):
11886  return _object_cast_to_OrientedSoapPairScore(o)
11887 
11888  __swig_destroy__ = _IMP_atom.delete_OrientedSoapPairScore
11889 
11890 # Register OrientedSoapPairScore in _IMP_atom:
11891 _IMP_atom.OrientedSoapPairScore_swigregister(OrientedSoapPairScore)
11892 class SameResiduePairFilter(IMP.PairPredicate):
11893  r"""Proxy of C++ IMP::atom::SameResiduePairFilter class."""
11894 
11895  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11896 
11897  def __init__(self):
11898  r"""__init__(SameResiduePairFilter self) -> SameResiduePairFilter"""
11899  _IMP_atom.SameResiduePairFilter_swiginit(self, _IMP_atom.new_SameResiduePairFilter())
11900 
11901  def do_get_inputs(self, m, pis):
11902  r"""do_get_inputs(SameResiduePairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11903  return _IMP_atom.SameResiduePairFilter_do_get_inputs(self, m, pis)
11904 
11905  def get_value(self, *args):
11906  r"""
11907  get_value(SameResiduePairFilter self, IMP::ParticlePair const & a) -> int
11908  get_value(SameResiduePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11909  """
11910  return _IMP_atom.SameResiduePairFilter_get_value(self, *args)
11911 
11912  def get_value_index(self, *args):
11913  r"""
11914  get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
11915  get_value_index(SameResiduePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11916  """
11917  return _IMP_atom.SameResiduePairFilter_get_value_index(self, *args)
11918 
11919  def get_version_info(self):
11920  r"""get_version_info(SameResiduePairFilter self) -> VersionInfo"""
11921  return _IMP_atom.SameResiduePairFilter_get_version_info(self)
11922  __swig_destroy__ = _IMP_atom.delete_SameResiduePairFilter
11923 
11924  def __str__(self):
11925  r"""__str__(SameResiduePairFilter self) -> std::string"""
11926  return _IMP_atom.SameResiduePairFilter___str__(self)
11927 
11928  def __repr__(self):
11929  r"""__repr__(SameResiduePairFilter self) -> std::string"""
11930  return _IMP_atom.SameResiduePairFilter___repr__(self)
11931 
11932  @staticmethod
11933  def get_from(o):
11934  return _object_cast_to_SameResiduePairFilter(o)
11935 
11936 
11937 # Register SameResiduePairFilter in _IMP_atom:
11938 _IMP_atom.SameResiduePairFilter_swigregister(SameResiduePairFilter)
11939 class RemoveRigidMotionOptimizerState(IMP.OptimizerState):
11940  r"""Proxy of C++ IMP::atom::RemoveRigidMotionOptimizerState class."""
11941 
11942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11943 
11944  def __init__(self, m, pis):
11945  r"""__init__(RemoveRigidMotionOptimizerState self, Model m, _ParticleIndexesAdaptor pis) -> RemoveRigidMotionOptimizerState"""
11946  _IMP_atom.RemoveRigidMotionOptimizerState_swiginit(self, _IMP_atom.new_RemoveRigidMotionOptimizerState(m, pis))
11947 
11948  def set_particles(self, pis):
11949  r"""set_particles(RemoveRigidMotionOptimizerState self, IMP::Particles const & pis)"""
11950  return _IMP_atom.RemoveRigidMotionOptimizerState_set_particles(self, pis)
11951 
11952  def remove_rigid_motion(self):
11953  r"""remove_rigid_motion(RemoveRigidMotionOptimizerState self)"""
11954  return _IMP_atom.RemoveRigidMotionOptimizerState_remove_rigid_motion(self)
11955 
11956  def get_version_info(self):
11957  r"""get_version_info(RemoveRigidMotionOptimizerState self) -> VersionInfo"""
11958  return _IMP_atom.RemoveRigidMotionOptimizerState_get_version_info(self)
11959  __swig_destroy__ = _IMP_atom.delete_RemoveRigidMotionOptimizerState
11960 
11961  def __str__(self):
11962  r"""__str__(RemoveRigidMotionOptimizerState self) -> std::string"""
11963  return _IMP_atom.RemoveRigidMotionOptimizerState___str__(self)
11964 
11965  def __repr__(self):
11966  r"""__repr__(RemoveRigidMotionOptimizerState self) -> std::string"""
11967  return _IMP_atom.RemoveRigidMotionOptimizerState___repr__(self)
11968 
11969  @staticmethod
11970  def get_from(o):
11971  return _object_cast_to_RemoveRigidMotionOptimizerState(o)
11972 
11973 
11974 # Register RemoveRigidMotionOptimizerState in _IMP_atom:
11975 _IMP_atom.RemoveRigidMotionOptimizerState_swigregister(RemoveRigidMotionOptimizerState)
11976 class BerendsenThermostatOptimizerState(IMP.OptimizerState):
11977  r"""Proxy of C++ IMP::atom::BerendsenThermostatOptimizerState class."""
11978 
11979  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11980 
11981  def __init__(self, pis, temperature, tau):
11982  r"""__init__(BerendsenThermostatOptimizerState self, IMP::Particles const & pis, double temperature, double tau) -> BerendsenThermostatOptimizerState"""
11983  _IMP_atom.BerendsenThermostatOptimizerState_swiginit(self, _IMP_atom.new_BerendsenThermostatOptimizerState(pis, temperature, tau))
11984 
11985  def set_particles(self, pis):
11986  r"""set_particles(BerendsenThermostatOptimizerState self, IMP::Particles const & pis)"""
11987  return _IMP_atom.BerendsenThermostatOptimizerState_set_particles(self, pis)
11988 
11989  def get_temperature(self):
11990  r"""get_temperature(BerendsenThermostatOptimizerState self) -> double"""
11991  return _IMP_atom.BerendsenThermostatOptimizerState_get_temperature(self)
11992 
11993  def get_tau(self):
11994  r"""get_tau(BerendsenThermostatOptimizerState self) -> double"""
11995  return _IMP_atom.BerendsenThermostatOptimizerState_get_tau(self)
11996 
11997  def set_temperature(self, temperature):
11998  r"""set_temperature(BerendsenThermostatOptimizerState self, double temperature)"""
11999  return _IMP_atom.BerendsenThermostatOptimizerState_set_temperature(self, temperature)
12000 
12001  def set_tau(self, tau):
12002  r"""set_tau(BerendsenThermostatOptimizerState self, double tau)"""
12003  return _IMP_atom.BerendsenThermostatOptimizerState_set_tau(self, tau)
12004 
12005  def rescale_velocities(self):
12006  r"""rescale_velocities(BerendsenThermostatOptimizerState self)"""
12007  return _IMP_atom.BerendsenThermostatOptimizerState_rescale_velocities(self)
12008 
12009  def get_version_info(self):
12010  r"""get_version_info(BerendsenThermostatOptimizerState self) -> VersionInfo"""
12011  return _IMP_atom.BerendsenThermostatOptimizerState_get_version_info(self)
12012  __swig_destroy__ = _IMP_atom.delete_BerendsenThermostatOptimizerState
12013 
12014  def __str__(self):
12015  r"""__str__(BerendsenThermostatOptimizerState self) -> std::string"""
12016  return _IMP_atom.BerendsenThermostatOptimizerState___str__(self)
12017 
12018  def __repr__(self):
12019  r"""__repr__(BerendsenThermostatOptimizerState self) -> std::string"""
12020  return _IMP_atom.BerendsenThermostatOptimizerState___repr__(self)
12021 
12022  @staticmethod
12023  def get_from(o):
12024  return _object_cast_to_BerendsenThermostatOptimizerState(o)
12025 
12026 
12027 # Register BerendsenThermostatOptimizerState in _IMP_atom:
12028 _IMP_atom.BerendsenThermostatOptimizerState_swigregister(BerendsenThermostatOptimizerState)
12029 class LangevinThermostatOptimizerState(IMP.OptimizerState):
12030  r"""Proxy of C++ IMP::atom::LangevinThermostatOptimizerState class."""
12031 
12032  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12033 
12034  def __init__(self, m, pis, temperature, gamma):
12035  r"""__init__(LangevinThermostatOptimizerState self, Model m, _ParticleIndexesAdaptor pis, double temperature, double gamma) -> LangevinThermostatOptimizerState"""
12036  _IMP_atom.LangevinThermostatOptimizerState_swiginit(self, _IMP_atom.new_LangevinThermostatOptimizerState(m, pis, temperature, gamma))
12037 
12038  def set_particles(self, pis):
12039  r"""set_particles(LangevinThermostatOptimizerState self, IMP::Particles const & pis)"""
12040  return _IMP_atom.LangevinThermostatOptimizerState_set_particles(self, pis)
12041 
12042  def get_temperature(self):
12043  r"""get_temperature(LangevinThermostatOptimizerState self) -> double"""
12044  return _IMP_atom.LangevinThermostatOptimizerState_get_temperature(self)
12045 
12046  def get_gamma(self):
12047  r"""get_gamma(LangevinThermostatOptimizerState self) -> double"""
12048  return _IMP_atom.LangevinThermostatOptimizerState_get_gamma(self)
12049 
12050  def set_temperature(self, temperature):
12051  r"""set_temperature(LangevinThermostatOptimizerState self, double temperature)"""
12052  return _IMP_atom.LangevinThermostatOptimizerState_set_temperature(self, temperature)
12053 
12054  def set_gamma(self, gamma):
12055  r"""set_gamma(LangevinThermostatOptimizerState self, double gamma)"""
12056  return _IMP_atom.LangevinThermostatOptimizerState_set_gamma(self, gamma)
12057 
12058  def rescale_velocities(self):
12059  r"""rescale_velocities(LangevinThermostatOptimizerState self)"""
12060  return _IMP_atom.LangevinThermostatOptimizerState_rescale_velocities(self)
12061 
12062  def get_version_info(self):
12063  r"""get_version_info(LangevinThermostatOptimizerState self) -> VersionInfo"""
12064  return _IMP_atom.LangevinThermostatOptimizerState_get_version_info(self)
12065  __swig_destroy__ = _IMP_atom.delete_LangevinThermostatOptimizerState
12066 
12067  def __str__(self):
12068  r"""__str__(LangevinThermostatOptimizerState self) -> std::string"""
12069  return _IMP_atom.LangevinThermostatOptimizerState___str__(self)
12070 
12071  def __repr__(self):
12072  r"""__repr__(LangevinThermostatOptimizerState self) -> std::string"""
12073  return _IMP_atom.LangevinThermostatOptimizerState___repr__(self)
12074 
12075  @staticmethod
12076  def get_from(o):
12077  return _object_cast_to_LangevinThermostatOptimizerState(o)
12078 
12079 
12080 # Register LangevinThermostatOptimizerState in _IMP_atom:
12081 _IMP_atom.LangevinThermostatOptimizerState_swigregister(LangevinThermostatOptimizerState)
12082 class PDBRecord(IMP._Value):
12083  r"""Proxy of C++ IMP::atom::PDBRecord class."""
12084 
12085  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12086 
12087  def __init__(self):
12088  r"""__init__(PDBRecord self) -> PDBRecord"""
12089  _IMP_atom.PDBRecord_swiginit(self, _IMP_atom.new_PDBRecord())
12090 
12091  def get_alt_loc_indicator(self):
12092  r"""get_alt_loc_indicator(PDBRecord self) -> std::string"""
12093  return _IMP_atom.PDBRecord_get_alt_loc_indicator(self)
12094 
12095  def get_is_atom(self):
12096  r"""get_is_atom(PDBRecord self) -> bool"""
12097  return _IMP_atom.PDBRecord_get_is_atom(self)
12098 
12099  def get_trimmed_atom_name(self):
12100  r"""get_trimmed_atom_name(PDBRecord self) -> std::string"""
12101  return _IMP_atom.PDBRecord_get_trimmed_atom_name(self)
12102 
12103  def get_padded_atom_name(self):
12104  r"""get_padded_atom_name(PDBRecord self) -> std::string"""
12105  return _IMP_atom.PDBRecord_get_padded_atom_name(self)
12106 
12107  def get_residue_name(self):
12108  r"""get_residue_name(PDBRecord self) -> std::string"""
12109  return _IMP_atom.PDBRecord_get_residue_name(self)
12110 
12111  def get_chain_id(self):
12112  r"""get_chain_id(PDBRecord self) -> std::string"""
12113  return _IMP_atom.PDBRecord_get_chain_id(self)
12114 
12115  def get_element(self):
12116  r"""get_element(PDBRecord self) -> std::string"""
12117  return _IMP_atom.PDBRecord_get_element(self)
12118 
12119  def show(self, *args):
12120  r"""show(PDBRecord self, _ostream out=std::cout)"""
12121  return _IMP_atom.PDBRecord_show(self, *args)
12122 
12123  def __str__(self):
12124  r"""__str__(PDBRecord self) -> std::string"""
12125  return _IMP_atom.PDBRecord___str__(self)
12126 
12127  def __repr__(self):
12128  r"""__repr__(PDBRecord self) -> std::string"""
12129  return _IMP_atom.PDBRecord___repr__(self)
12130  __swig_destroy__ = _IMP_atom.delete_PDBRecord
12131 
12132 # Register PDBRecord in _IMP_atom:
12133 _IMP_atom.PDBRecord_swigregister(PDBRecord)
12134 class PDBSelector(IMP.Object):
12135  r"""Proxy of C++ IMP::atom::PDBSelector class."""
12136 
12137  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12138 
12139  def __init__(self, name):
12140  r"""__init__(PDBSelector self, std::string name) -> PDBSelector"""
12141  if self.__class__ == PDBSelector:
12142  _self = None
12143  else:
12144  _self = self
12145  _IMP_atom.PDBSelector_swiginit(self, _IMP_atom.new_PDBSelector(_self, name))
12146 
12147  if self.__class__ != PDBSelector:
12148  _director_objects.register(self)
12149 
12150 
12151 
12152 
12153  def get_is_selected(self, record):
12154  r"""get_is_selected(PDBSelector self, PDBRecord record) -> bool"""
12155  return _IMP_atom.PDBSelector_get_is_selected(self, record)
12156  __swig_destroy__ = _IMP_atom.delete_PDBSelector
12157 
12158  def __str__(self):
12159  r"""__str__(PDBSelector self) -> std::string"""
12160  return _IMP_atom.PDBSelector___str__(self)
12161 
12162  def __repr__(self):
12163  r"""__repr__(PDBSelector self) -> std::string"""
12164  return _IMP_atom.PDBSelector___repr__(self)
12165 
12166  @staticmethod
12167  def get_from(o):
12168  return _object_cast_to_PDBSelector(o)
12169 
12170 
12171  def do_show(self, out):
12172  pass
12173 
12174  @staticmethod
12175  def get_from(o):
12176  return _object_cast_to_PDBSelector(o)
12177 
12178 
12179  def __and__(self, s):
12180  return AndPDBSelector(self, s)
12181  def __or__(self, s):
12182  return OrPDBSelector(self, s)
12183  def __xor__(self, s):
12184  return XorPDBSelector(self, s)
12185  def __invert__(self):
12186  return NotPDBSelector(self)
12187  def __sub__(self, s):
12188  return AndPDBSelector(self, NotPDBSelector(s))
12189 
12190  def __disown__(self):
12191  self.this.disown()
12192  _IMP_atom.disown_PDBSelector(self)
12193  return weakref.proxy(self)
12194 
12195  def do_destroy(self):
12196  r"""do_destroy(PDBSelector self)"""
12197  return _IMP_atom.PDBSelector_do_destroy(self)
12198 
12199 # Register PDBSelector in _IMP_atom:
12200 _IMP_atom.PDBSelector_swigregister(PDBSelector)
12201 class NonAlternativePDBSelector(PDBSelector):
12202  r"""Proxy of C++ IMP::atom::NonAlternativePDBSelector class."""
12203 
12204  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12205 
12206  def __init__(self, *args):
12207  r"""__init__(NonAlternativePDBSelector self, std::string name="NonAlternativePDBSelector%1%") -> NonAlternativePDBSelector"""
12208  _IMP_atom.NonAlternativePDBSelector_swiginit(self, _IMP_atom.new_NonAlternativePDBSelector(*args))
12209 
12210  def get_version_info(self):
12211  r"""get_version_info(NonAlternativePDBSelector self) -> VersionInfo"""
12212  return _IMP_atom.NonAlternativePDBSelector_get_version_info(self)
12213  __swig_destroy__ = _IMP_atom.delete_NonAlternativePDBSelector
12214 
12215  def __str__(self):
12216  r"""__str__(NonAlternativePDBSelector self) -> std::string"""
12217  return _IMP_atom.NonAlternativePDBSelector___str__(self)
12218 
12219  def __repr__(self):
12220  r"""__repr__(NonAlternativePDBSelector self) -> std::string"""
12221  return _IMP_atom.NonAlternativePDBSelector___repr__(self)
12222 
12223  @staticmethod
12224  def get_from(o):
12225  return _object_cast_to_NonAlternativePDBSelector(o)
12226 
12227 
12228 # Register NonAlternativePDBSelector in _IMP_atom:
12229 _IMP_atom.NonAlternativePDBSelector_swigregister(NonAlternativePDBSelector)
12230 class ATOMPDBSelector(NonAlternativePDBSelector):
12231  r"""Proxy of C++ IMP::atom::ATOMPDBSelector class."""
12232 
12233  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12234 
12235  def __init__(self, *args):
12236  r"""__init__(ATOMPDBSelector self, std::string name="ATOMPDBSelector%1%") -> ATOMPDBSelector"""
12237  _IMP_atom.ATOMPDBSelector_swiginit(self, _IMP_atom.new_ATOMPDBSelector(*args))
12238  __swig_destroy__ = _IMP_atom.delete_ATOMPDBSelector
12239 
12240  def __str__(self):
12241  r"""__str__(ATOMPDBSelector self) -> std::string"""
12242  return _IMP_atom.ATOMPDBSelector___str__(self)
12243 
12244  def __repr__(self):
12245  r"""__repr__(ATOMPDBSelector self) -> std::string"""
12246  return _IMP_atom.ATOMPDBSelector___repr__(self)
12247 
12248  @staticmethod
12249  def get_from(o):
12250  return _object_cast_to_ATOMPDBSelector(o)
12251 
12252 
12253 # Register ATOMPDBSelector in _IMP_atom:
12254 _IMP_atom.ATOMPDBSelector_swigregister(ATOMPDBSelector)
12255 class CAlphaPDBSelector(NonAlternativePDBSelector):
12256  r"""Proxy of C++ IMP::atom::CAlphaPDBSelector class."""
12257 
12258  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12259 
12260  def __init__(self, *args):
12261  r"""__init__(CAlphaPDBSelector self, std::string name="CAlphaPDBSelector%1%") -> CAlphaPDBSelector"""
12262  _IMP_atom.CAlphaPDBSelector_swiginit(self, _IMP_atom.new_CAlphaPDBSelector(*args))
12263  __swig_destroy__ = _IMP_atom.delete_CAlphaPDBSelector
12264 
12265  def __str__(self):
12266  r"""__str__(CAlphaPDBSelector self) -> std::string"""
12267  return _IMP_atom.CAlphaPDBSelector___str__(self)
12268 
12269  def __repr__(self):
12270  r"""__repr__(CAlphaPDBSelector self) -> std::string"""
12271  return _IMP_atom.CAlphaPDBSelector___repr__(self)
12272 
12273  @staticmethod
12274  def get_from(o):
12275  return _object_cast_to_CAlphaPDBSelector(o)
12276 
12277 
12278 # Register CAlphaPDBSelector in _IMP_atom:
12279 _IMP_atom.CAlphaPDBSelector_swigregister(CAlphaPDBSelector)
12280 class CBetaPDBSelector(NonAlternativePDBSelector):
12281  r"""Proxy of C++ IMP::atom::CBetaPDBSelector class."""
12282 
12283  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12284 
12285  def __init__(self, *args):
12286  r"""__init__(CBetaPDBSelector self, std::string name="CBetaPDBSelector%1%") -> CBetaPDBSelector"""
12287  _IMP_atom.CBetaPDBSelector_swiginit(self, _IMP_atom.new_CBetaPDBSelector(*args))
12288  __swig_destroy__ = _IMP_atom.delete_CBetaPDBSelector
12289 
12290  def __str__(self):
12291  r"""__str__(CBetaPDBSelector self) -> std::string"""
12292  return _IMP_atom.CBetaPDBSelector___str__(self)
12293 
12294  def __repr__(self):
12295  r"""__repr__(CBetaPDBSelector self) -> std::string"""
12296  return _IMP_atom.CBetaPDBSelector___repr__(self)
12297 
12298  @staticmethod
12299  def get_from(o):
12300  return _object_cast_to_CBetaPDBSelector(o)
12301 
12302 
12303 # Register CBetaPDBSelector in _IMP_atom:
12304 _IMP_atom.CBetaPDBSelector_swigregister(CBetaPDBSelector)
12305 class AtomTypePDBSelector(PDBSelector):
12306  r"""Proxy of C++ IMP::atom::AtomTypePDBSelector class."""
12307 
12308  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12309 
12310  def __init__(self, *args):
12311  r"""__init__(AtomTypePDBSelector self, IMP::Strings atom_types, std::string name="AtomTypePDBSelector%1%") -> AtomTypePDBSelector"""
12312  _IMP_atom.AtomTypePDBSelector_swiginit(self, _IMP_atom.new_AtomTypePDBSelector(*args))
12313 
12314  def get_version_info(self):
12315  r"""get_version_info(AtomTypePDBSelector self) -> VersionInfo"""
12316  return _IMP_atom.AtomTypePDBSelector_get_version_info(self)
12317  __swig_destroy__ = _IMP_atom.delete_AtomTypePDBSelector
12318 
12319  def __str__(self):
12320  r"""__str__(AtomTypePDBSelector self) -> std::string"""
12321  return _IMP_atom.AtomTypePDBSelector___str__(self)
12322 
12323  def __repr__(self):
12324  r"""__repr__(AtomTypePDBSelector self) -> std::string"""
12325  return _IMP_atom.AtomTypePDBSelector___repr__(self)
12326 
12327  @staticmethod
12328  def get_from(o):
12329  return _object_cast_to_AtomTypePDBSelector(o)
12330 
12331 
12332 # Register AtomTypePDBSelector in _IMP_atom:
12333 _IMP_atom.AtomTypePDBSelector_swigregister(AtomTypePDBSelector)
12334 class ResidueTypePDBSelector(PDBSelector):
12335  r"""Proxy of C++ IMP::atom::ResidueTypePDBSelector class."""
12336 
12337  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12338 
12339  def __init__(self, *args):
12340  r"""__init__(ResidueTypePDBSelector self, IMP::Strings residue_types, std::string name="ResidueTypePDBSelector%1%") -> ResidueTypePDBSelector"""
12341  _IMP_atom.ResidueTypePDBSelector_swiginit(self, _IMP_atom.new_ResidueTypePDBSelector(*args))
12342 
12343  def get_version_info(self):
12344  r"""get_version_info(ResidueTypePDBSelector self) -> VersionInfo"""
12345  return _IMP_atom.ResidueTypePDBSelector_get_version_info(self)
12346  __swig_destroy__ = _IMP_atom.delete_ResidueTypePDBSelector
12347 
12348  def __str__(self):
12349  r"""__str__(ResidueTypePDBSelector self) -> std::string"""
12350  return _IMP_atom.ResidueTypePDBSelector___str__(self)
12351 
12352  def __repr__(self):
12353  r"""__repr__(ResidueTypePDBSelector self) -> std::string"""
12354  return _IMP_atom.ResidueTypePDBSelector___repr__(self)
12355 
12356  @staticmethod
12357  def get_from(o):
12358  return _object_cast_to_ResidueTypePDBSelector(o)
12359 
12360 
12361 # Register ResidueTypePDBSelector in _IMP_atom:
12362 _IMP_atom.ResidueTypePDBSelector_swigregister(ResidueTypePDBSelector)
12363 class CPDBSelector(NonAlternativePDBSelector):
12364  r"""Proxy of C++ IMP::atom::CPDBSelector class."""
12365 
12366  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12367 
12368  def __init__(self, *args):
12369  r"""__init__(CPDBSelector self, std::string name="CPDBSelector%1%") -> CPDBSelector"""
12370  _IMP_atom.CPDBSelector_swiginit(self, _IMP_atom.new_CPDBSelector(*args))
12371  __swig_destroy__ = _IMP_atom.delete_CPDBSelector
12372 
12373  def __str__(self):
12374  r"""__str__(CPDBSelector self) -> std::string"""
12375  return _IMP_atom.CPDBSelector___str__(self)
12376 
12377  def __repr__(self):
12378  r"""__repr__(CPDBSelector self) -> std::string"""
12379  return _IMP_atom.CPDBSelector___repr__(self)
12380 
12381  @staticmethod
12382  def get_from(o):
12383  return _object_cast_to_CPDBSelector(o)
12384 
12385 
12386 # Register CPDBSelector in _IMP_atom:
12387 _IMP_atom.CPDBSelector_swigregister(CPDBSelector)
12388 class NPDBSelector(NonAlternativePDBSelector):
12389  r"""Proxy of C++ IMP::atom::NPDBSelector class."""
12390 
12391  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12392 
12393  def __init__(self, *args):
12394  r"""__init__(NPDBSelector self, std::string name="NPDBSelector%1%") -> NPDBSelector"""
12395  _IMP_atom.NPDBSelector_swiginit(self, _IMP_atom.new_NPDBSelector(*args))
12396  __swig_destroy__ = _IMP_atom.delete_NPDBSelector
12397 
12398  def __str__(self):
12399  r"""__str__(NPDBSelector self) -> std::string"""
12400  return _IMP_atom.NPDBSelector___str__(self)
12401 
12402  def __repr__(self):
12403  r"""__repr__(NPDBSelector self) -> std::string"""
12404  return _IMP_atom.NPDBSelector___repr__(self)
12405 
12406  @staticmethod
12407  def get_from(o):
12408  return _object_cast_to_NPDBSelector(o)
12409 
12410 
12411 # Register NPDBSelector in _IMP_atom:
12412 _IMP_atom.NPDBSelector_swigregister(NPDBSelector)
12413 class AllPDBSelector(PDBSelector):
12414  r"""Proxy of C++ IMP::atom::AllPDBSelector class."""
12415 
12416  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12417 
12418  def __init__(self, *args):
12419  r"""__init__(AllPDBSelector self, std::string name="AllPDBSelector%1%") -> AllPDBSelector"""
12420  _IMP_atom.AllPDBSelector_swiginit(self, _IMP_atom.new_AllPDBSelector(*args))
12421 
12422  def get_version_info(self):
12423  r"""get_version_info(AllPDBSelector self) -> VersionInfo"""
12424  return _IMP_atom.AllPDBSelector_get_version_info(self)
12425  __swig_destroy__ = _IMP_atom.delete_AllPDBSelector
12426 
12427  def __str__(self):
12428  r"""__str__(AllPDBSelector self) -> std::string"""
12429  return _IMP_atom.AllPDBSelector___str__(self)
12430 
12431  def __repr__(self):
12432  r"""__repr__(AllPDBSelector self) -> std::string"""
12433  return _IMP_atom.AllPDBSelector___repr__(self)
12434 
12435  @staticmethod
12436  def get_from(o):
12437  return _object_cast_to_AllPDBSelector(o)
12438 
12439 
12440 # Register AllPDBSelector in _IMP_atom:
12441 _IMP_atom.AllPDBSelector_swigregister(AllPDBSelector)
12442 class ChainPDBSelector(NonAlternativePDBSelector):
12443  r"""Proxy of C++ IMP::atom::ChainPDBSelector class."""
12444 
12445  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12446  __swig_destroy__ = _IMP_atom.delete_ChainPDBSelector
12447 
12448  def __init__(self, *args):
12449  r"""__init__(ChainPDBSelector self, IMP::Strings chains, std::string name="ChainPDBSelector%1%") -> ChainPDBSelector"""
12450  _IMP_atom.ChainPDBSelector_swiginit(self, _IMP_atom.new_ChainPDBSelector(*args))
12451 
12452  def __str__(self):
12453  r"""__str__(ChainPDBSelector self) -> std::string"""
12454  return _IMP_atom.ChainPDBSelector___str__(self)
12455 
12456  def __repr__(self):
12457  r"""__repr__(ChainPDBSelector self) -> std::string"""
12458  return _IMP_atom.ChainPDBSelector___repr__(self)
12459 
12460  @staticmethod
12461  def get_from(o):
12462  return _object_cast_to_ChainPDBSelector(o)
12463 
12464 
12465 # Register ChainPDBSelector in _IMP_atom:
12466 _IMP_atom.ChainPDBSelector_swigregister(ChainPDBSelector)
12467 class WaterPDBSelector(NonAlternativePDBSelector):
12468  r"""Proxy of C++ IMP::atom::WaterPDBSelector class."""
12469 
12470  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12471 
12472  def __init__(self, *args):
12473  r"""__init__(WaterPDBSelector self, std::string name="WaterPDBSelector%1%") -> WaterPDBSelector"""
12474  _IMP_atom.WaterPDBSelector_swiginit(self, _IMP_atom.new_WaterPDBSelector(*args))
12475  __swig_destroy__ = _IMP_atom.delete_WaterPDBSelector
12476 
12477  def __str__(self):
12478  r"""__str__(WaterPDBSelector self) -> std::string"""
12479  return _IMP_atom.WaterPDBSelector___str__(self)
12480 
12481  def __repr__(self):
12482  r"""__repr__(WaterPDBSelector self) -> std::string"""
12483  return _IMP_atom.WaterPDBSelector___repr__(self)
12484 
12485  @staticmethod
12486  def get_from(o):
12487  return _object_cast_to_WaterPDBSelector(o)
12488 
12489 
12490 # Register WaterPDBSelector in _IMP_atom:
12491 _IMP_atom.WaterPDBSelector_swigregister(WaterPDBSelector)
12492 class HydrogenPDBSelector(NonAlternativePDBSelector):
12493  r"""Proxy of C++ IMP::atom::HydrogenPDBSelector class."""
12494 
12495  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12496 
12497  def __init__(self, *args):
12498  r"""__init__(HydrogenPDBSelector self, std::string name="HydrogenPDBSelector%1%") -> HydrogenPDBSelector"""
12499  _IMP_atom.HydrogenPDBSelector_swiginit(self, _IMP_atom.new_HydrogenPDBSelector(*args))
12500  __swig_destroy__ = _IMP_atom.delete_HydrogenPDBSelector
12501 
12502  def __str__(self):
12503  r"""__str__(HydrogenPDBSelector self) -> std::string"""
12504  return _IMP_atom.HydrogenPDBSelector___str__(self)
12505 
12506  def __repr__(self):
12507  r"""__repr__(HydrogenPDBSelector self) -> std::string"""
12508  return _IMP_atom.HydrogenPDBSelector___repr__(self)
12509 
12510  @staticmethod
12511  def get_from(o):
12512  return _object_cast_to_HydrogenPDBSelector(o)
12513 
12514 
12515 # Register HydrogenPDBSelector in _IMP_atom:
12516 _IMP_atom.HydrogenPDBSelector_swigregister(HydrogenPDBSelector)
12517 class NonWaterNonHydrogenPDBSelector(NonAlternativePDBSelector):
12518  r"""Proxy of C++ IMP::atom::NonWaterNonHydrogenPDBSelector class."""
12519 
12520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12521  __swig_destroy__ = _IMP_atom.delete_NonWaterNonHydrogenPDBSelector
12522 
12523  def __init__(self, *args):
12524  r"""
12525  __init__(NonWaterNonHydrogenPDBSelector self, std::string name) -> NonWaterNonHydrogenPDBSelector
12526  __init__(NonWaterNonHydrogenPDBSelector self) -> NonWaterNonHydrogenPDBSelector
12527  """
12528  _IMP_atom.NonWaterNonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonWaterNonHydrogenPDBSelector(*args))
12529 
12530  def __str__(self):
12531  r"""__str__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12532  return _IMP_atom.NonWaterNonHydrogenPDBSelector___str__(self)
12533 
12534  def __repr__(self):
12535  r"""__repr__(NonWaterNonHydrogenPDBSelector self) -> std::string"""
12536  return _IMP_atom.NonWaterNonHydrogenPDBSelector___repr__(self)
12537 
12538  @staticmethod
12539  def get_from(o):
12540  return _object_cast_to_NonWaterNonHydrogenPDBSelector(o)
12541 
12542 
12543 # Register NonWaterNonHydrogenPDBSelector in _IMP_atom:
12544 _IMP_atom.NonWaterNonHydrogenPDBSelector_swigregister(NonWaterNonHydrogenPDBSelector)
12545 class NonHydrogenPDBSelector(NonAlternativePDBSelector):
12546  r"""Proxy of C++ IMP::atom::NonHydrogenPDBSelector class."""
12547 
12548  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12549  __swig_destroy__ = _IMP_atom.delete_NonHydrogenPDBSelector
12550 
12551  def __init__(self, *args):
12552  r"""
12553  __init__(NonHydrogenPDBSelector self, std::string name) -> NonHydrogenPDBSelector
12554  __init__(NonHydrogenPDBSelector self) -> NonHydrogenPDBSelector
12555  """
12556  _IMP_atom.NonHydrogenPDBSelector_swiginit(self, _IMP_atom.new_NonHydrogenPDBSelector(*args))
12557 
12558  def __str__(self):
12559  r"""__str__(NonHydrogenPDBSelector self) -> std::string"""
12560  return _IMP_atom.NonHydrogenPDBSelector___str__(self)
12561 
12562  def __repr__(self):
12563  r"""__repr__(NonHydrogenPDBSelector self) -> std::string"""
12564  return _IMP_atom.NonHydrogenPDBSelector___repr__(self)
12565 
12566  @staticmethod
12567  def get_from(o):
12568  return _object_cast_to_NonHydrogenPDBSelector(o)
12569 
12570 
12571 # Register NonHydrogenPDBSelector in _IMP_atom:
12572 _IMP_atom.NonHydrogenPDBSelector_swigregister(NonHydrogenPDBSelector)
12573 class NonWaterPDBSelector(NonAlternativePDBSelector):
12574  r"""Proxy of C++ IMP::atom::NonWaterPDBSelector class."""
12575 
12576  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12577  __swig_destroy__ = _IMP_atom.delete_NonWaterPDBSelector
12578 
12579  def __init__(self, *args):
12580  r"""
12581  __init__(NonWaterPDBSelector self, std::string name) -> NonWaterPDBSelector
12582  __init__(NonWaterPDBSelector self) -> NonWaterPDBSelector
12583  """
12584  _IMP_atom.NonWaterPDBSelector_swiginit(self, _IMP_atom.new_NonWaterPDBSelector(*args))
12585 
12586  def __str__(self):
12587  r"""__str__(NonWaterPDBSelector self) -> std::string"""
12588  return _IMP_atom.NonWaterPDBSelector___str__(self)
12589 
12590  def __repr__(self):
12591  r"""__repr__(NonWaterPDBSelector self) -> std::string"""
12592  return _IMP_atom.NonWaterPDBSelector___repr__(self)
12593 
12594  @staticmethod
12595  def get_from(o):
12596  return _object_cast_to_NonWaterPDBSelector(o)
12597 
12598 
12599 # Register NonWaterPDBSelector in _IMP_atom:
12600 _IMP_atom.NonWaterPDBSelector_swigregister(NonWaterPDBSelector)
12601 class BackbonePDBSelector(NonWaterNonHydrogenPDBSelector):
12602  r"""Proxy of C++ IMP::atom::BackbonePDBSelector class."""
12603 
12604  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12605 
12606  def __init__(self, *args):
12607  r"""__init__(BackbonePDBSelector self, std::string name="BackbonePDBSelector%1%") -> BackbonePDBSelector"""
12608  _IMP_atom.BackbonePDBSelector_swiginit(self, _IMP_atom.new_BackbonePDBSelector(*args))
12609  __swig_destroy__ = _IMP_atom.delete_BackbonePDBSelector
12610 
12611  def __str__(self):
12612  r"""__str__(BackbonePDBSelector self) -> std::string"""
12613  return _IMP_atom.BackbonePDBSelector___str__(self)
12614 
12615  def __repr__(self):
12616  r"""__repr__(BackbonePDBSelector self) -> std::string"""
12617  return _IMP_atom.BackbonePDBSelector___repr__(self)
12618 
12619  @staticmethod
12620  def get_from(o):
12621  return _object_cast_to_BackbonePDBSelector(o)
12622 
12623 
12624 # Register BackbonePDBSelector in _IMP_atom:
12625 _IMP_atom.BackbonePDBSelector_swigregister(BackbonePDBSelector)
12626 class PPDBSelector(NonAlternativePDBSelector):
12627  r"""Proxy of C++ IMP::atom::PPDBSelector class."""
12628 
12629  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12630 
12631  def __init__(self, *args):
12632  r"""__init__(PPDBSelector self, std::string name="PPDBSelector%1%") -> PPDBSelector"""
12633  _IMP_atom.PPDBSelector_swiginit(self, _IMP_atom.new_PPDBSelector(*args))
12634  __swig_destroy__ = _IMP_atom.delete_PPDBSelector
12635 
12636  def __str__(self):
12637  r"""__str__(PPDBSelector self) -> std::string"""
12638  return _IMP_atom.PPDBSelector___str__(self)
12639 
12640  def __repr__(self):
12641  r"""__repr__(PPDBSelector self) -> std::string"""
12642  return _IMP_atom.PPDBSelector___repr__(self)
12643 
12644  @staticmethod
12645  def get_from(o):
12646  return _object_cast_to_PPDBSelector(o)
12647 
12648 
12649 # Register PPDBSelector in _IMP_atom:
12650 _IMP_atom.PPDBSelector_swigregister(PPDBSelector)
12651 class AndPDBSelector(PDBSelector):
12652  r"""Proxy of C++ IMP::atom::AndPDBSelector class."""
12653 
12654  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12655 
12656  def get_version_info(self):
12657  r"""get_version_info(AndPDBSelector self) -> VersionInfo"""
12658  return _IMP_atom.AndPDBSelector_get_version_info(self)
12659  __swig_destroy__ = _IMP_atom.delete_AndPDBSelector
12660 
12661  def __init__(self, a, b):
12662  r"""__init__(AndPDBSelector self, PDBSelector a, PDBSelector b) -> AndPDBSelector"""
12663  _IMP_atom.AndPDBSelector_swiginit(self, _IMP_atom.new_AndPDBSelector(a, b))
12664 
12665  def __str__(self):
12666  r"""__str__(AndPDBSelector self) -> std::string"""
12667  return _IMP_atom.AndPDBSelector___str__(self)
12668 
12669  def __repr__(self):
12670  r"""__repr__(AndPDBSelector self) -> std::string"""
12671  return _IMP_atom.AndPDBSelector___repr__(self)
12672 
12673  @staticmethod
12674  def get_from(o):
12675  return _object_cast_to_AndPDBSelector(o)
12676 
12677 
12678 # Register AndPDBSelector in _IMP_atom:
12679 _IMP_atom.AndPDBSelector_swigregister(AndPDBSelector)
12680 class OrPDBSelector(PDBSelector):
12681  r"""Proxy of C++ IMP::atom::OrPDBSelector class."""
12682 
12683  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12684 
12685  def get_version_info(self):
12686  r"""get_version_info(OrPDBSelector self) -> VersionInfo"""
12687  return _IMP_atom.OrPDBSelector_get_version_info(self)
12688  __swig_destroy__ = _IMP_atom.delete_OrPDBSelector
12689 
12690  def __init__(self, a, b):
12691  r"""__init__(OrPDBSelector self, PDBSelector a, PDBSelector b) -> OrPDBSelector"""
12692  _IMP_atom.OrPDBSelector_swiginit(self, _IMP_atom.new_OrPDBSelector(a, b))
12693 
12694  def __str__(self):
12695  r"""__str__(OrPDBSelector self) -> std::string"""
12696  return _IMP_atom.OrPDBSelector___str__(self)
12697 
12698  def __repr__(self):
12699  r"""__repr__(OrPDBSelector self) -> std::string"""
12700  return _IMP_atom.OrPDBSelector___repr__(self)
12701 
12702  @staticmethod
12703  def get_from(o):
12704  return _object_cast_to_OrPDBSelector(o)
12705 
12706 
12707 # Register OrPDBSelector in _IMP_atom:
12708 _IMP_atom.OrPDBSelector_swigregister(OrPDBSelector)
12709 class XorPDBSelector(PDBSelector):
12710  r"""Proxy of C++ IMP::atom::XorPDBSelector class."""
12711 
12712  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12713 
12714  def get_version_info(self):
12715  r"""get_version_info(XorPDBSelector self) -> VersionInfo"""
12716  return _IMP_atom.XorPDBSelector_get_version_info(self)
12717  __swig_destroy__ = _IMP_atom.delete_XorPDBSelector
12718 
12719  def __init__(self, a, b):
12720  r"""__init__(XorPDBSelector self, PDBSelector a, PDBSelector b) -> XorPDBSelector"""
12721  _IMP_atom.XorPDBSelector_swiginit(self, _IMP_atom.new_XorPDBSelector(a, b))
12722 
12723  def __str__(self):
12724  r"""__str__(XorPDBSelector self) -> std::string"""
12725  return _IMP_atom.XorPDBSelector___str__(self)
12726 
12727  def __repr__(self):
12728  r"""__repr__(XorPDBSelector self) -> std::string"""
12729  return _IMP_atom.XorPDBSelector___repr__(self)
12730 
12731  @staticmethod
12732  def get_from(o):
12733  return _object_cast_to_XorPDBSelector(o)
12734 
12735 
12736 # Register XorPDBSelector in _IMP_atom:
12737 _IMP_atom.XorPDBSelector_swigregister(XorPDBSelector)
12738 class NotPDBSelector(PDBSelector):
12739  r"""Proxy of C++ IMP::atom::NotPDBSelector class."""
12740 
12741  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12742 
12743  def get_version_info(self):
12744  r"""get_version_info(NotPDBSelector self) -> VersionInfo"""
12745  return _IMP_atom.NotPDBSelector_get_version_info(self)
12746  __swig_destroy__ = _IMP_atom.delete_NotPDBSelector
12747 
12748  def __init__(self, a):
12749  r"""__init__(NotPDBSelector self, PDBSelector a) -> NotPDBSelector"""
12750  _IMP_atom.NotPDBSelector_swiginit(self, _IMP_atom.new_NotPDBSelector(a))
12751 
12752  def __str__(self):
12753  r"""__str__(NotPDBSelector self) -> std::string"""
12754  return _IMP_atom.NotPDBSelector___str__(self)
12755 
12756  def __repr__(self):
12757  r"""__repr__(NotPDBSelector self) -> std::string"""
12758  return _IMP_atom.NotPDBSelector___repr__(self)
12759 
12760  @staticmethod
12761  def get_from(o):
12762  return _object_cast_to_NotPDBSelector(o)
12763 
12764 
12765 # Register NotPDBSelector in _IMP_atom:
12766 _IMP_atom.NotPDBSelector_swigregister(NotPDBSelector)
12767 
12768 def get_default_pdb_selector():
12769  r"""get_default_pdb_selector() -> PDBSelector"""
12770  return _IMP_atom.get_default_pdb_selector()
12771 
12772 def read_pdb(*args):
12773  r"""
12774  read_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool no_radii=False) -> Hierarchy
12775  read_pdb(TextInput input, int model, Hierarchy h)
12776  """
12777  return _IMP_atom.read_pdb(*args)
12778 
12779 def read_multimodel_pdb(*args):
12780  r"""read_multimodel_pdb(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12781  return _IMP_atom.read_multimodel_pdb(*args)
12782 
12783 def write_pdb(mhd, out, model=1):
12784  r"""write_pdb(Selection mhd, TextOutput out, unsigned int model=1)"""
12785  return _IMP_atom.write_pdb(mhd, out, model)
12786 
12787 def write_pdb_of_c_alphas(mhd, out, model=1):
12788  r"""write_pdb_of_c_alphas(Selection mhd, TextOutput out, unsigned int model=1)"""
12789  return _IMP_atom.write_pdb_of_c_alphas(mhd, out, model)
12790 
12791 def write_multimodel_pdb(mhd, out):
12792  r"""write_multimodel_pdb(IMP::atom::Hierarchies const & mhd, TextOutput out)"""
12793  return _IMP_atom.write_multimodel_pdb(mhd, out)
12794 
12795 def get_pdb_string(*args):
12796  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"""
12797  return _IMP_atom.get_pdb_string(*args)
12798 
12799 def get_pdb_conect_record_string(arg1, arg2):
12800  r"""get_pdb_conect_record_string(int arg1, int arg2) -> std::string"""
12801  return _IMP_atom.get_pdb_conect_record_string(arg1, arg2)
12802 class WritePDBOptimizerState(IMP.OptimizerState):
12803  r"""Proxy of C++ IMP::atom::WritePDBOptimizerState class."""
12804 
12805  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12806 
12807  def __init__(self, *args):
12808  r"""
12809  __init__(WritePDBOptimizerState self, Model m, _ParticleIndexesAdaptor pis, std::string filename) -> WritePDBOptimizerState
12810  __init__(WritePDBOptimizerState self, IMP::atom::Hierarchies const mh, std::string filename) -> WritePDBOptimizerState
12811  __init__(WritePDBOptimizerState self) -> WritePDBOptimizerState
12812  """
12813  _IMP_atom.WritePDBOptimizerState_swiginit(self, _IMP_atom.new_WritePDBOptimizerState(*args))
12814 
12815  def get_version_info(self):
12816  r"""get_version_info(WritePDBOptimizerState self) -> VersionInfo"""
12817  return _IMP_atom.WritePDBOptimizerState_get_version_info(self)
12818  __swig_destroy__ = _IMP_atom.delete_WritePDBOptimizerState
12819 
12820  def __str__(self):
12821  r"""__str__(WritePDBOptimizerState self) -> std::string"""
12822  return _IMP_atom.WritePDBOptimizerState___str__(self)
12823 
12824  def __repr__(self):
12825  r"""__repr__(WritePDBOptimizerState self) -> std::string"""
12826  return _IMP_atom.WritePDBOptimizerState___repr__(self)
12827 
12828  @staticmethod
12829  def get_from(o):
12830  return _object_cast_to_WritePDBOptimizerState(o)
12831 
12832 
12833  def _get_as_binary(self):
12834  r"""_get_as_binary(WritePDBOptimizerState self) -> PyObject *"""
12835  return _IMP_atom.WritePDBOptimizerState__get_as_binary(self)
12836 
12837  def _set_from_binary(self, p):
12838  r"""_set_from_binary(WritePDBOptimizerState self, PyObject * p)"""
12839  return _IMP_atom.WritePDBOptimizerState__set_from_binary(self, p)
12840 
12841  def __getstate__(self):
12842  p = self._get_as_binary()
12843  if len(self.__dict__) > 1:
12844  d = self.__dict__.copy()
12845  del d['this']
12846  p = (d, p)
12847  return p
12848 
12849  def __setstate__(self, p):
12850  if not hasattr(self, 'this'):
12851  self.__init__()
12852  if isinstance(p, tuple):
12853  d, p = p
12854  self.__dict__.update(d)
12855  return self._set_from_binary(p)
12856 
12857 
12858 # Register WritePDBOptimizerState in _IMP_atom:
12859 _IMP_atom.WritePDBOptimizerState_swigregister(WritePDBOptimizerState)
12860 
12861 def read_multimodel_mmcif(*args):
12862  r"""read_multimodel_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12863  return _IMP_atom.read_multimodel_mmcif(*args)
12864 
12865 def read_mmcif(*args):
12866  r"""read_mmcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12867  return _IMP_atom.read_mmcif(*args)
12868 
12869 def read_multimodel_bcif(*args):
12870  r"""read_multimodel_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12871  return _IMP_atom.read_multimodel_bcif(*args)
12872 
12873 def read_bcif(*args):
12874  r"""read_bcif(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool select_first_model=True, bool noradii=False) -> Hierarchy"""
12875  return _IMP_atom.read_bcif(*args)
12876 
12877 def read_pdb_any(*args):
12878  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"""
12879  return _IMP_atom.read_pdb_any(*args)
12880 
12881 def read_multimodel_pdb_any(*args):
12882  r"""read_multimodel_pdb_any(TextInput input, Model model, PDBSelector selector=IMP::atom::get_default_pdb_selector(), bool noradii=False) -> IMP::atom::Hierarchies"""
12883  return _IMP_atom.read_multimodel_pdb_any(*args)
12884 
12885 def get_kt(T):
12886  r"""get_kt(double T) -> double"""
12887  return _IMP_atom.get_kt(T)
12888 class CAAngleRestraint(IMP.Restraint):
12889  r"""Proxy of C++ IMP::atom::CAAngleRestraint class."""
12890 
12891  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12892 
12893  def __init__(self, m, p1, p2, p3, phi0, score):
12894  r"""__init__(CAAngleRestraint self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, IMP::Floats phi0, IMP::Floats score) -> CAAngleRestraint"""
12895  _IMP_atom.CAAngleRestraint_swiginit(self, _IMP_atom.new_CAAngleRestraint(m, p1, p2, p3, phi0, score))
12896 
12897  def do_get_inputs(self):
12898  r"""do_get_inputs(CAAngleRestraint self) -> IMP::ModelObjectsTemp"""
12899  return _IMP_atom.CAAngleRestraint_do_get_inputs(self)
12900 
12901  def get_version_info(self):
12902  r"""get_version_info(CAAngleRestraint self) -> VersionInfo"""
12903  return _IMP_atom.CAAngleRestraint_get_version_info(self)
12904  __swig_destroy__ = _IMP_atom.delete_CAAngleRestraint
12905 
12906  def __str__(self):
12907  r"""__str__(CAAngleRestraint self) -> std::string"""
12908  return _IMP_atom.CAAngleRestraint___str__(self)
12909 
12910  def __repr__(self):
12911  r"""__repr__(CAAngleRestraint self) -> std::string"""
12912  return _IMP_atom.CAAngleRestraint___repr__(self)
12913 
12914  @staticmethod
12915  def get_from(o):
12916  return _object_cast_to_CAAngleRestraint(o)
12917 
12918 
12919 # Register CAAngleRestraint in _IMP_atom:
12920 _IMP_atom.CAAngleRestraint_swigregister(CAAngleRestraint)
12921 class CADihedralRestraint(IMP.Restraint):
12922  r"""Proxy of C++ IMP::atom::CADihedralRestraint class."""
12923 
12924  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12925 
12926  def __init__(self, m, p1, p2, p3, p4, p5, phi0, phi1, score):
12927  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"""
12928  _IMP_atom.CADihedralRestraint_swiginit(self, _IMP_atom.new_CADihedralRestraint(m, p1, p2, p3, p4, p5, phi0, phi1, score))
12929 
12930  def do_get_inputs(self):
12931  r"""do_get_inputs(CADihedralRestraint self) -> IMP::ModelObjectsTemp"""
12932  return _IMP_atom.CADihedralRestraint_do_get_inputs(self)
12933 
12934  def get_version_info(self):
12935  r"""get_version_info(CADihedralRestraint self) -> VersionInfo"""
12936  return _IMP_atom.CADihedralRestraint_get_version_info(self)
12937  __swig_destroy__ = _IMP_atom.delete_CADihedralRestraint
12938 
12939  def __str__(self):
12940  r"""__str__(CADihedralRestraint self) -> std::string"""
12941  return _IMP_atom.CADihedralRestraint___str__(self)
12942 
12943  def __repr__(self):
12944  r"""__repr__(CADihedralRestraint self) -> std::string"""
12945  return _IMP_atom.CADihedralRestraint___repr__(self)
12946 
12947  @staticmethod
12948  def get_from(o):
12949  return _object_cast_to_CADihedralRestraint(o)
12950 
12951 
12952 # Register CADihedralRestraint in _IMP_atom:
12953 _IMP_atom.CADihedralRestraint_swigregister(CADihedralRestraint)
12954 class StructureSource(IMP.Decorator):
12955  r"""Proxy of C++ IMP::atom::StructureSource class."""
12956 
12957  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12958 
12959  def get_source_id(self):
12960  r"""get_source_id(StructureSource self) -> std::string"""
12961  return _IMP_atom.StructureSource_get_source_id(self)
12962 
12963  def get_source_chain_id(self):
12964  r"""get_source_chain_id(StructureSource self) -> std::string"""
12965  return _IMP_atom.StructureSource_get_source_chain_id(self)
12966 
12967  def set_source_id(self, source_id):
12968  r"""set_source_id(StructureSource self, std::string source_id)"""
12969  return _IMP_atom.StructureSource_set_source_id(self, source_id)
12970 
12971  def set_source_chain_id(self, source_chain_id):
12972  r"""set_source_chain_id(StructureSource self, std::string source_chain_id)"""
12973  return _IMP_atom.StructureSource_set_source_chain_id(self, source_chain_id)
12974 
12975  def __init__(self, *args):
12976  r"""
12977  __init__(StructureSource self) -> StructureSource
12978  __init__(StructureSource self, Model m, ParticleIndex id) -> StructureSource
12979  __init__(StructureSource self, _ParticleAdaptor d) -> StructureSource
12980  """
12981  _IMP_atom.StructureSource_swiginit(self, _IMP_atom.new_StructureSource(*args))
12982 
12983  @staticmethod
12984  def get_is_setup(*args):
12985  r"""
12986  get_is_setup(Model m, ParticleIndex pi) -> bool
12987  get_is_setup(_ParticleAdaptor p) -> bool
12988  """
12989  return _IMP_atom.StructureSource_get_is_setup(*args)
12990 
12991  def show(self, *args):
12992  r"""show(StructureSource self, _ostream out=std::cout)"""
12993  return _IMP_atom.StructureSource_show(self, *args)
12994 
12995  @staticmethod
12996  def setup_particle(*args):
12997  r"""
12998  setup_particle(Model m, ParticleIndex pi, std::string source_id, std::string source_chain_id) -> StructureSource
12999  setup_particle(_ParticleAdaptor pa, std::string source_id, std::string source_chain_id) -> StructureSource
13000  """
13001  return _IMP_atom.StructureSource_setup_particle(*args)
13002 
13003  def add_attribute(self, *args):
13004  r"""
13005  add_attribute(StructureSource self, FloatKey k, IMP::Float v, bool opt)
13006  add_attribute(StructureSource self, FloatKey a0, IMP::Float a1)
13007  add_attribute(StructureSource self, IntKey a0, IMP::Int a1)
13008  add_attribute(StructureSource self, FloatsKey a0, IMP::Floats a1)
13009  add_attribute(StructureSource self, IntsKey a0, IMP::Ints a1)
13010  add_attribute(StructureSource self, StringKey a0, IMP::String a1)
13011  add_attribute(StructureSource self, ParticleIndexKey a0, Particle a1)
13012  add_attribute(StructureSource self, ObjectKey a0, Object a1)
13013  add_attribute(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13014  add_attribute(StructureSource self, SparseIntKey a0, IMP::Int a1)
13015  add_attribute(StructureSource self, SparseStringKey a0, IMP::String a1)
13016  add_attribute(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13017  """
13018  return _IMP_atom.StructureSource_add_attribute(self, *args)
13019 
13020  def get_value(self, *args):
13021  r"""
13022  get_value(StructureSource self, FloatKey a0) -> IMP::Float
13023  get_value(StructureSource self, IntKey a0) -> IMP::Int
13024  get_value(StructureSource self, FloatsKey a0) -> IMP::Floats
13025  get_value(StructureSource self, IntsKey a0) -> IMP::Ints
13026  get_value(StructureSource self, StringKey a0) -> IMP::String
13027  get_value(StructureSource self, ParticleIndexKey a0) -> Particle
13028  get_value(StructureSource self, ObjectKey a0) -> Object
13029  get_value(StructureSource self, SparseFloatKey a0) -> IMP::Float
13030  get_value(StructureSource self, SparseIntKey a0) -> IMP::Int
13031  get_value(StructureSource self, SparseStringKey a0) -> IMP::String
13032  get_value(StructureSource self, SparseParticleIndexKey a0) -> ParticleIndex
13033  """
13034  return _IMP_atom.StructureSource_get_value(self, *args)
13035 
13036  def set_value(self, *args):
13037  r"""
13038  set_value(StructureSource self, FloatKey a0, IMP::Float a1)
13039  set_value(StructureSource self, IntKey a0, IMP::Int a1)
13040  set_value(StructureSource self, FloatsKey a0, IMP::Floats a1)
13041  set_value(StructureSource self, IntsKey a0, IMP::Ints a1)
13042  set_value(StructureSource self, StringKey a0, IMP::String a1)
13043  set_value(StructureSource self, ParticleIndexKey a0, Particle a1)
13044  set_value(StructureSource self, ObjectKey a0, Object a1)
13045  set_value(StructureSource self, SparseFloatKey a0, IMP::Float a1)
13046  set_value(StructureSource self, SparseIntKey a0, IMP::Int a1)
13047  set_value(StructureSource self, SparseStringKey a0, IMP::String a1)
13048  set_value(StructureSource self, SparseParticleIndexKey a0, ParticleIndex a1)
13049  """
13050  return _IMP_atom.StructureSource_set_value(self, *args)
13051 
13052  def remove_attribute(self, *args):
13053  r"""
13054  remove_attribute(StructureSource self, FloatKey a0)
13055  remove_attribute(StructureSource self, IntKey a0)
13056  remove_attribute(StructureSource self, FloatsKey a0)
13057  remove_attribute(StructureSource self, IntsKey a0)
13058  remove_attribute(StructureSource self, StringKey a0)
13059  remove_attribute(StructureSource self, ParticleIndexKey a0)
13060  remove_attribute(StructureSource self, ObjectKey a0)
13061  remove_attribute(StructureSource self, SparseFloatKey a0)
13062  remove_attribute(StructureSource self, SparseIntKey a0)
13063  remove_attribute(StructureSource self, SparseStringKey a0)
13064  remove_attribute(StructureSource self, SparseParticleIndexKey a0)
13065  """
13066  return _IMP_atom.StructureSource_remove_attribute(self, *args)
13067 
13068  def has_attribute(self, *args):
13069  r"""
13070  has_attribute(StructureSource self, FloatKey a0) -> bool
13071  has_attribute(StructureSource self, IntKey a0) -> bool
13072  has_attribute(StructureSource self, FloatsKey a0) -> bool
13073  has_attribute(StructureSource self, IntsKey a0) -> bool
13074  has_attribute(StructureSource self, StringKey a0) -> bool
13075  has_attribute(StructureSource self, ParticleIndexKey a0) -> bool
13076  has_attribute(StructureSource self, ObjectKey a0) -> bool
13077  has_attribute(StructureSource self, SparseFloatKey a0) -> bool
13078  has_attribute(StructureSource self, SparseIntKey a0) -> bool
13079  has_attribute(StructureSource self, SparseStringKey a0) -> bool
13080  has_attribute(StructureSource self, SparseParticleIndexKey a0) -> bool
13081  """
13082  return _IMP_atom.StructureSource_has_attribute(self, *args)
13083 
13084  def get_derivative(self, a0):
13085  r"""get_derivative(StructureSource self, FloatKey a0) -> double"""
13086  return _IMP_atom.StructureSource_get_derivative(self, a0)
13087 
13088  def get_name(self):
13089  r"""get_name(StructureSource self) -> std::string"""
13090  return _IMP_atom.StructureSource_get_name(self)
13091 
13092  def clear_caches(self):
13093  r"""clear_caches(StructureSource self)"""
13094  return _IMP_atom.StructureSource_clear_caches(self)
13095 
13096  def set_name(self, a0):
13097  r"""set_name(StructureSource self, std::string a0)"""
13098  return _IMP_atom.StructureSource_set_name(self, a0)
13099 
13100  def set_check_level(self, a0):
13101  r"""set_check_level(StructureSource self, IMP::CheckLevel a0)"""
13102  return _IMP_atom.StructureSource_set_check_level(self, a0)
13103 
13104  def add_to_derivative(self, a0, a1, a2):
13105  r"""add_to_derivative(StructureSource self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13106  return _IMP_atom.StructureSource_add_to_derivative(self, a0, a1, a2)
13107 
13108  def set_is_optimized(self, a0, a1):
13109  r"""set_is_optimized(StructureSource self, FloatKey a0, bool a1)"""
13110  return _IMP_atom.StructureSource_set_is_optimized(self, a0, a1)
13111 
13112  def get_is_optimized(self, a0):
13113  r"""get_is_optimized(StructureSource self, FloatKey a0) -> bool"""
13114  return _IMP_atom.StructureSource_get_is_optimized(self, a0)
13115 
13116  def get_check_level(self):
13117  r"""get_check_level(StructureSource self) -> IMP::CheckLevel"""
13118  return _IMP_atom.StructureSource_get_check_level(self)
13119 
13120  def __eq__(self, *args):
13121  r"""
13122  __eq__(StructureSource self, StructureSource o) -> bool
13123  __eq__(StructureSource self, Particle d) -> bool
13124  """
13125  return _IMP_atom.StructureSource___eq__(self, *args)
13126 
13127  def __ne__(self, *args):
13128  r"""
13129  __ne__(StructureSource self, StructureSource o) -> bool
13130  __ne__(StructureSource self, Particle d) -> bool
13131  """
13132  return _IMP_atom.StructureSource___ne__(self, *args)
13133 
13134  def __le__(self, *args):
13135  r"""
13136  __le__(StructureSource self, StructureSource o) -> bool
13137  __le__(StructureSource self, Particle d) -> bool
13138  """
13139  return _IMP_atom.StructureSource___le__(self, *args)
13140 
13141  def __lt__(self, *args):
13142  r"""
13143  __lt__(StructureSource self, StructureSource o) -> bool
13144  __lt__(StructureSource self, Particle d) -> bool
13145  """
13146  return _IMP_atom.StructureSource___lt__(self, *args)
13147 
13148  def __ge__(self, *args):
13149  r"""
13150  __ge__(StructureSource self, StructureSource o) -> bool
13151  __ge__(StructureSource self, Particle d) -> bool
13152  """
13153  return _IMP_atom.StructureSource___ge__(self, *args)
13154 
13155  def __gt__(self, *args):
13156  r"""
13157  __gt__(StructureSource self, StructureSource o) -> bool
13158  __gt__(StructureSource self, Particle d) -> bool
13159  """
13160  return _IMP_atom.StructureSource___gt__(self, *args)
13161 
13162  def __hash__(self):
13163  r"""__hash__(StructureSource self) -> std::size_t"""
13164  return _IMP_atom.StructureSource___hash__(self)
13165 
13166  def __str__(self):
13167  r"""__str__(StructureSource self) -> std::string"""
13168  return _IMP_atom.StructureSource___str__(self)
13169 
13170  def __repr__(self):
13171  r"""__repr__(StructureSource self) -> std::string"""
13172  return _IMP_atom.StructureSource___repr__(self)
13173 
13174  def _get_as_binary(self):
13175  r"""_get_as_binary(StructureSource self) -> PyObject *"""
13176  return _IMP_atom.StructureSource__get_as_binary(self)
13177 
13178  def _set_from_binary(self, p):
13179  r"""_set_from_binary(StructureSource self, PyObject * p)"""
13180  return _IMP_atom.StructureSource__set_from_binary(self, p)
13181 
13182  def __getstate__(self):
13183  p = self._get_as_binary()
13184  if len(self.__dict__) > 1:
13185  d = self.__dict__.copy()
13186  del d['this']
13187  p = (d, p)
13188  return p
13189 
13190  def __setstate__(self, p):
13191  if not hasattr(self, 'this'):
13192  self.__init__()
13193  if isinstance(p, tuple):
13194  d, p = p
13195  self.__dict__.update(d)
13196  return self._set_from_binary(p)
13197 
13198  __swig_destroy__ = _IMP_atom.delete_StructureSource
13199 
13200 # Register StructureSource in _IMP_atom:
13201 _IMP_atom.StructureSource_swigregister(StructureSource)
13202 
13203 def __lshift__(*args):
13204  r"""
13205  __lshift__(_ostream out, Bonded n) -> _ostream
13206  __lshift__(_ostream out, Bond n) -> _ostream
13207  __lshift__(_ostream out, Hierarchy n) -> _ostream
13208  __lshift__(_ostream out, Angle n) -> _ostream
13209  __lshift__(_ostream out, Dihedral n) -> _ostream
13210  __lshift__(_ostream out, CenterOfMass n) -> _ostream
13211  __lshift__(_ostream out, Diffusion n) -> _ostream
13212  __lshift__(_ostream out, RigidBodyDiffusion n) -> _ostream
13213  __lshift__(_ostream out, TAMDParticle n) -> _ostream
13214  __lshift__(_ostream out, Charged n) -> _ostream
13215  __lshift__(_ostream out, Domain n) -> _ostream
13216  __lshift__(_ostream out, LennardJonesTyped n) -> _ostream
13217  __lshift__(_ostream out, Fragment n) -> _ostream
13218  __lshift__(_ostream out, SecondaryStructureResidue n) -> _ostream
13219  __lshift__(_ostream out, Atom n) -> _ostream
13220  __lshift__(_ostream out, Residue n) -> _ostream
13221  __lshift__(_ostream out, Representation n) -> _ostream
13222  __lshift__(_ostream out, State n) -> _ostream
13223  __lshift__(_ostream out, Molecule n) -> _ostream
13224  __lshift__(_ostream out, Copy n) -> _ostream
13225  __lshift__(_ostream out, Chain n) -> _ostream
13226  __lshift__(_ostream out, StructureSource n) -> _ostream
13227  """
13228  return _IMP_atom.__lshift__(*args)
13229 class HelixRestraint(IMP.Restraint):
13230  r"""Proxy of C++ IMP::atom::HelixRestraint class."""
13231 
13232  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13233 
13234  def __init__(self, rs, ideal=True):
13235  r"""__init__(HelixRestraint self, IMP::atom::Residues rs, bool ideal=True) -> HelixRestraint"""
13236  _IMP_atom.HelixRestraint_swiginit(self, _IMP_atom.new_HelixRestraint(rs, ideal))
13237 
13238  def get_number_of_bonds(self):
13239  r"""get_number_of_bonds(HelixRestraint self) -> int"""
13240  return _IMP_atom.HelixRestraint_get_number_of_bonds(self)
13241 
13242  def get_number_of_dihedrals(self):
13243  r"""get_number_of_dihedrals(HelixRestraint self) -> int"""
13244  return _IMP_atom.HelixRestraint_get_number_of_dihedrals(self)
13245 
13246  def do_get_inputs(self):
13247  r"""do_get_inputs(HelixRestraint self) -> IMP::ModelObjectsTemp"""
13248  return _IMP_atom.HelixRestraint_do_get_inputs(self)
13249 
13250  def get_version_info(self):
13251  r"""get_version_info(HelixRestraint self) -> VersionInfo"""
13252  return _IMP_atom.HelixRestraint_get_version_info(self)
13253  __swig_destroy__ = _IMP_atom.delete_HelixRestraint
13254 
13255  def __str__(self):
13256  r"""__str__(HelixRestraint self) -> std::string"""
13257  return _IMP_atom.HelixRestraint___str__(self)
13258 
13259  def __repr__(self):
13260  r"""__repr__(HelixRestraint self) -> std::string"""
13261  return _IMP_atom.HelixRestraint___repr__(self)
13262 
13263  @staticmethod
13264  def get_from(o):
13265  return _object_cast_to_HelixRestraint(o)
13266 
13267 
13268 # Register HelixRestraint in _IMP_atom:
13269 _IMP_atom.HelixRestraint_swigregister(HelixRestraint)
13270 
13272  r"""get_transformation_aligning_first_to_second(Selection s1, Selection s2) -> Transformation3D"""
13273  return _IMP_atom.get_transformation_aligning_first_to_second(s1, s2)
13274 
13275 def show_molecular_hierarchy(*args):
13276  r"""show_molecular_hierarchy(Hierarchy h, _ostream out=std::cout) -> _ostream"""
13277  return _IMP_atom.show_molecular_hierarchy(*args)
13278 class CHARMMBond(object):
13279  r"""Proxy of C++ IMP::atom::CHARMMConnection< 2 > class."""
13280 
13281  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13282  __repr__ = _swig_repr
13283 
13284  def __init__(self, atoms):
13285  r"""__init__(CHARMMBond self, IMP::Strings const & atoms) -> CHARMMBond"""
13286  _IMP_atom.CHARMMBond_swiginit(self, _IMP_atom.new_CHARMMBond(atoms))
13287 
13288  def get_endpoint(self, i):
13289  r"""get_endpoint(CHARMMBond self, unsigned int i) -> CHARMMBondEndpoint"""
13290  return _IMP_atom.CHARMMBond_get_endpoint(self, i)
13291 
13292  def get_contains_atom(self, name):
13293  r"""get_contains_atom(CHARMMBond self, std::string name) -> bool"""
13294  return _IMP_atom.CHARMMBond_get_contains_atom(self, name)
13295 
13296  def show(self, *args):
13297  r"""show(CHARMMBond self, _ostream out=std::cout)"""
13298  return _IMP_atom.CHARMMBond_show(self, *args)
13299  __swig_destroy__ = _IMP_atom.delete_CHARMMBond
13300 
13301 # Register CHARMMBond in _IMP_atom:
13302 _IMP_atom.CHARMMBond_swigregister(CHARMMBond)
13303 class CHARMMAngle(object):
13304  r"""Proxy of C++ IMP::atom::CHARMMConnection< 3 > class."""
13305 
13306  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13307  __repr__ = _swig_repr
13308 
13309  def __init__(self, atoms):
13310  r"""__init__(CHARMMAngle self, IMP::Strings const & atoms) -> CHARMMAngle"""
13311  _IMP_atom.CHARMMAngle_swiginit(self, _IMP_atom.new_CHARMMAngle(atoms))
13312 
13313  def get_endpoint(self, i):
13314  r"""get_endpoint(CHARMMAngle self, unsigned int i) -> CHARMMBondEndpoint"""
13315  return _IMP_atom.CHARMMAngle_get_endpoint(self, i)
13316 
13317  def get_contains_atom(self, name):
13318  r"""get_contains_atom(CHARMMAngle self, std::string name) -> bool"""
13319  return _IMP_atom.CHARMMAngle_get_contains_atom(self, name)
13320 
13321  def show(self, *args):
13322  r"""show(CHARMMAngle self, _ostream out=std::cout)"""
13323  return _IMP_atom.CHARMMAngle_show(self, *args)
13324  __swig_destroy__ = _IMP_atom.delete_CHARMMAngle
13325 
13326 # Register CHARMMAngle in _IMP_atom:
13327 _IMP_atom.CHARMMAngle_swigregister(CHARMMAngle)
13328 
13329 def _get_native_overlap_cpp(m1, m2, threshold):
13330  r"""_get_native_overlap_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, double threshold) -> double"""
13331  return _IMP_atom._get_native_overlap_cpp(m1, m2, threshold)
13332 
13333 def _get_drmsd_cpp(m0, m1):
13334  r"""_get_drmsd_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1) -> double"""
13335  return _IMP_atom._get_drmsd_cpp(m0, m1)
13336 
13337 def _get_drmsd_Q_cpp(m0, m1, threshold):
13338  r"""_get_drmsd_Q_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m0, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, double threshold) -> double"""
13339  return _IMP_atom._get_drmsd_Q_cpp(m0, m1, threshold)
13340 
13341 def _get_drms_cpp(m1, m2):
13342  r"""_get_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2) -> double"""
13343  return _IMP_atom._get_drms_cpp(m1, m2)
13344 
13345 def _get_rigid_bodies_drms_cpp(m1, m2, ranges):
13346  r"""_get_rigid_bodies_drms_cpp(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m1, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & m2, IMP::IntRanges const & ranges) -> double"""
13347  return _IMP_atom._get_rigid_bodies_drms_cpp(m1, m2, ranges)
13348 
13349 def get_native_overlap(a, b, d):
13350  va= [IMP.algebra.get_vector(x) for x in a]
13351  vb= [IMP.algebra.get_vector(x) for x in b]
13352  return _get_native_overlap_cpp(va, vb, d)
13353 
13354 def get_drmsd(a, b):
13355  va= [IMP.algebra.get_vector(x) for x in a]
13356  vb= [IMP.algebra.get_vector(x) for x in b]
13357  return _get_drmsd_cpp(va, vb)
13358 
13359 def get_drms(a, b):
13360  va= [IMP.algebra.get_vector(x) for x in a]
13361  vb= [IMP.algebra.get_vector(x) for x in b]
13362  return _get_drms_cpp(va, vb)
13363 
13364 def get_drmsd_Q(a, b, t):
13365  va= [IMP.algebra.get_vector(x) for x in a]
13366  vb= [IMP.algebra.get_vector(x) for x in b]
13367  return _get_drmsd_Q_cpp(va, vb, t)
13368 
13369 def get_rigid_bodies_drms(a, b, ranges):
13370  va= [IMP.algebra.get_vector(x) for x in a]
13371  vb= [IMP.algebra.get_vector(x) for x in b]
13372 #rs = [IMP.IntRange(r[0],r[1]) for r in ranges]
13373  return _get_rigid_bodies_drms_cpp(va, vb, ranges)
13374 
13375 
13376 class _LennardJonesTypedPairScore(IMP.PairScore):
13377  r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::SmoothingFunction > class."""
13378 
13379  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13380  __repr__ = _swig_repr
13381 
13382  def __init__(self, f):
13383  r"""__init__(_LennardJonesTypedPairScore self, SmoothingFunction f) -> _LennardJonesTypedPairScore"""
13384  _IMP_atom._LennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__LennardJonesTypedPairScore(f))
13385 
13386  def set_repulsive_weight(self, repulsive_weight):
13387  r"""set_repulsive_weight(_LennardJonesTypedPairScore self, double repulsive_weight)"""
13388  return _IMP_atom._LennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13389 
13390  def get_repulsive_weight(self):
13391  r"""get_repulsive_weight(_LennardJonesTypedPairScore self) -> double"""
13392  return _IMP_atom._LennardJonesTypedPairScore_get_repulsive_weight(self)
13393 
13394  def set_attractive_weight(self, attractive_weight):
13395  r"""set_attractive_weight(_LennardJonesTypedPairScore self, double attractive_weight)"""
13396  return _IMP_atom._LennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13397 
13398  def get_attractive_weight(self):
13399  r"""get_attractive_weight(_LennardJonesTypedPairScore self) -> double"""
13400  return _IMP_atom._LennardJonesTypedPairScore_get_attractive_weight(self)
13401 
13402  def do_get_inputs(self, m, pis):
13403  r"""do_get_inputs(_LennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13404  return _IMP_atom._LennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13405 
13406  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13407  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"""
13408  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13409 
13410  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13411  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"""
13412  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13413 
13414  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13415  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"""
13416  return _IMP_atom._LennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13417 
13418  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13419  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"""
13420  return _IMP_atom._LennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13421 
13422  def get_version_info(self):
13423  r"""get_version_info(_LennardJonesTypedPairScore self) -> VersionInfo"""
13424  return _IMP_atom._LennardJonesTypedPairScore_get_version_info(self)
13425  __swig_destroy__ = _IMP_atom.delete__LennardJonesTypedPairScore
13426 
13427  @staticmethod
13428  def get_from(o):
13429  return _object_cast_to__LennardJonesTypedPairScore(o)
13430 
13431 
13432 # Register _LennardJonesTypedPairScore in _IMP_atom:
13433 _IMP_atom._LennardJonesTypedPairScore_swigregister(_LennardJonesTypedPairScore)
13434 class _SwitchedLennardJonesTypedPairScore(IMP.PairScore):
13435  r"""Proxy of C++ IMP::atom::LennardJonesTypedPairScore< IMP::atom::ForceSwitch > class."""
13436 
13437  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13438  __repr__ = _swig_repr
13439 
13440  def __init__(self, f):
13441  r"""__init__(_SwitchedLennardJonesTypedPairScore self, ForceSwitch f) -> _SwitchedLennardJonesTypedPairScore"""
13442  _IMP_atom._SwitchedLennardJonesTypedPairScore_swiginit(self, _IMP_atom.new__SwitchedLennardJonesTypedPairScore(f))
13443 
13444  def set_repulsive_weight(self, repulsive_weight):
13445  r"""set_repulsive_weight(_SwitchedLennardJonesTypedPairScore self, double repulsive_weight)"""
13446  return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_repulsive_weight(self, repulsive_weight)
13447 
13448  def get_repulsive_weight(self):
13449  r"""get_repulsive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13450  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_repulsive_weight(self)
13451 
13452  def set_attractive_weight(self, attractive_weight):
13453  r"""set_attractive_weight(_SwitchedLennardJonesTypedPairScore self, double attractive_weight)"""
13454  return _IMP_atom._SwitchedLennardJonesTypedPairScore_set_attractive_weight(self, attractive_weight)
13455 
13456  def get_attractive_weight(self):
13457  r"""get_attractive_weight(_SwitchedLennardJonesTypedPairScore self) -> double"""
13458  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_attractive_weight(self)
13459 
13460  def do_get_inputs(self, m, pis):
13461  r"""do_get_inputs(_SwitchedLennardJonesTypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
13462  return _IMP_atom._SwitchedLennardJonesTypedPairScore_do_get_inputs(self, m, pis)
13463 
13464  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
13465  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"""
13466  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
13467 
13468  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
13469  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"""
13470  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
13471 
13472  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
13473  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"""
13474  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
13475 
13476  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
13477  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"""
13478  return _IMP_atom._SwitchedLennardJonesTypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
13479 
13480  def get_version_info(self):
13481  r"""get_version_info(_SwitchedLennardJonesTypedPairScore self) -> VersionInfo"""
13482  return _IMP_atom._SwitchedLennardJonesTypedPairScore_get_version_info(self)
13483  __swig_destroy__ = _IMP_atom.delete__SwitchedLennardJonesTypedPairScore
13484 
13485  @staticmethod
13486  def get_from(o):
13487  return _object_cast_to__SwitchedLennardJonesTypedPairScore(o)
13488 
13489 
13490 # Register _SwitchedLennardJonesTypedPairScore in _IMP_atom:
13491 _IMP_atom._SwitchedLennardJonesTypedPairScore_swigregister(_SwitchedLennardJonesTypedPairScore)
13492 
13493 class LennardJonesTypedPairScore(_SwitchedLennardJonesTypedPairScore.__bases__[0]):
13494  def __init__(self, f):
13495  if isinstance(f, ForceSwitch):
13496  p = _SwitchedLennardJonesTypedPairScore(f)
13497  else:
13498  p = _LennardJonesTypedPairScore(f)
13499  self.__dict__['_proxied'] = p
13500  def __getattr__(self, key):
13501  return getattr(self._proxied, key)
13502  def __setattr__(self, key, val):
13503  return setattr(self._proxied, key, val)
13504 
13505  @staticmethod
13506  def get_from(o):
13507  try:
13508  p = _SwitchedLennardJonesTypedPairScore.get_from(o)
13509  except ValueError:
13510  p = _LennardJonesTypedPairScore.get_from(o)
13511  obj = object.__new__(LennardJonesTypedPairScore)
13512  obj.__dict__['_proxied'] = p
13513  return obj
13514 
13515 
13516 def get_module_name():
13517  r"""get_module_name() -> std::string const"""
13518  return _IMP_atom.get_module_name()
13519 
13520 def get_module_version():
13521  r"""get_module_version() -> std::string const"""
13522  return _IMP_atom.get_module_version()
13523 
13524 def get_example_path(fname):
13525  r"""get_example_path(std::string fname) -> std::string"""
13526  return _IMP_atom.get_example_path(fname)
13527 
13528 def get_data_path(fname):
13529  r"""get_data_path(std::string fname) -> std::string"""
13530  return _IMP_atom.get_data_path(fname)
13531 
13532 from . import _version_check
13533 _version_check.check_version(get_module_version())
13534 __version__ = get_module_version()
13535 
13536 
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.
Hierarchy create_simplified_along_backbone(Hierarchy input, int num_res, bool keep_detailed=false)
double get_drmsd(const Vector3DsOrXYZs0 &m0, const Vector3DsOrXYZs1 &m1)
Calculate distance the root mean square deviation between two sets of 3D points.
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:281
double get_mass(ResidueType c)
Get the mass from the residue type.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
Add vdW radius from given force field.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
double get_mass_from_number_of_residues(unsigned int num_aa)
Estimate the mass of a protein from the number of amino acids.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
Atoms get_omega_dihedral_atoms(Residue rd)
Return the atoms comprising the omega dihedral.
ParticleIndexQuads get_chi_dihedral_particle_indexes(Residue rd)
void write_pdb(const Selection &mhd, TextOutput out, unsigned int model=1)
void setup_as_approximation(Particle *h, const ParticlesTemp &other)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
double get_mass_from_volume(double v, ProteinDensityReference ref=ALBER)
Estimate the mass of a protein from its volume.
void destroy_bond(Bond b)
Destroy the bond connecting two particles.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
void add_particle(RMF::FileHandle fh, Particle *hs)
Atoms get_charmm_untyped_atoms(Hierarchy hierarchy)
Get all atoms in the Hierarchy that do not have CHARMM types.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
char get_one_letter_code(ResidueType c)
Get the 1-letter amino acid code from the residue type.
Atom get_atom(Residue rd, AtomType at)
Return a particle atom from the residue.
Composable functors to implement scores via compile-time composition.
double get_angle(const Line3D &a, const Line3D &b)
Get angle in radians between two lines around their closest points.
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:170
FloatPair get_component_placement_score(const core::XYZs &ref1, const core::XYZs &ref2, const core::XYZs &mdl1, const core::XYZs &mdl2)
Measure the difference between two placements of the same set of points.
void transform(Hierarchy h, const algebra::Transformation3D &tr)
Transform a hierarchy. This is aware of rigid bodies.
core::XYZR create_cover(const Selection &s, std::string name=std::string())
double get_volume_from_mass(double m, ProteinDensityReference ref=ALBER)
Estimate the volume of a protein from its mass.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Definition: Object.h:111
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.
double get_radius_of_gyration(const Vector3Ds &ps)
Return the radius of gyration of a set of points.
Definition: Vector3D.h:77
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())
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:34
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