IMP  2.4.0
The Integrative Modeling Platform
pmi/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
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 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_pmi', [dirname(__file__)])
19  except ImportError:
20  import _IMP_pmi
21  return _IMP_pmi
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_pmi', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_pmi = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_pmi
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_PMI_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_PMI_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_pmi.delete_IMP_PMI_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_PMI_SwigPyIterator self) -> PyObject *"""
98  return _IMP_pmi.IMP_PMI_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
103  incr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
104  """
105  return _IMP_pmi.IMP_PMI_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
110  decr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
111  """
112  return _IMP_pmi.IMP_PMI_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_pmi.IMP_PMI_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
120  return _IMP_pmi.IMP_PMI_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator"""
124  return _IMP_pmi.IMP_PMI_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_PMI_SwigPyIterator self) -> PyObject *"""
128  return _IMP_pmi.IMP_PMI_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_PMI_SwigPyIterator self) -> PyObject *"""
132  return _IMP_pmi.IMP_PMI_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_PMI_SwigPyIterator self) -> PyObject *"""
136  return _IMP_pmi.IMP_PMI_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
140  return _IMP_pmi.IMP_PMI_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
144  return _IMP_pmi.IMP_PMI_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
148  return _IMP_pmi.IMP_PMI_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
152  return _IMP_pmi.IMP_PMI_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
156  return _IMP_pmi.IMP_PMI_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
160  return _IMP_pmi.IMP_PMI_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator
165  __sub__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_pmi.IMP_PMI_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_PMI_SwigPyIterator_swigregister = _IMP_pmi.IMP_PMI_SwigPyIterator_swigregister
171 IMP_PMI_SwigPyIterator_swigregister(IMP_PMI_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_pmi.IMP_DEBUG
179 IMP_RELEASE = _IMP_pmi.IMP_RELEASE
180 IMP_SILENT = _IMP_pmi.IMP_SILENT
181 IMP_PROGRESS = _IMP_pmi.IMP_PROGRESS
182 IMP_TERSE = _IMP_pmi.IMP_TERSE
183 IMP_VERBOSE = _IMP_pmi.IMP_VERBOSE
184 IMP_MEMORY = _IMP_pmi.IMP_MEMORY
185 IMP_NONE = _IMP_pmi.IMP_NONE
186 IMP_USAGE = _IMP_pmi.IMP_USAGE
187 IMP_INTERNAL = _IMP_pmi.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_pmi.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_pmi.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_pmi.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_pmi.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_pmi.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214  # Do in two steps so the references are kept until the end of the
215  # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  """Proxy of C++ std::ostream class"""
224  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
225  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
226  __repr__ = _swig_repr
227  def write(self, *args):
228  """write(_ostream self, char const * osa_buf)"""
229  return _IMP_pmi._ostream_write(self, *args)
230 
231 _ostream_swigregister = _IMP_pmi._ostream_swigregister
232 _ostream_swigregister(_ostream)
233 
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_pmi.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_pmi.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_pmi.IMP_HAS_NOEXCEPT
237 import IMP.base
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_pmi.IMPCGAL_SHOW_WARNINGS
243 import IMP.cgal
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_pmi.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_pmi.IMPALGEBRA_SHOW_WARNINGS
252 import IMP.algebra
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_pmi.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_pmi.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_pmi.IMPKERNEL_SHOW_WARNINGS
259 import IMP.kernel
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_pmi.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_pmi.IMPDISPLAY_SHOW_WARNINGS
268 import IMP.display
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_pmi.IMPSCOREFUNCTOR_SHOW_WARNINGS
277 import IMP.score_functor
278 IMP_CORE_HAS_IMP_BASE = _IMP_pmi.IMP_CORE_HAS_IMP_BASE
279 IMP_CORE_HAS_IMP_CGAL = _IMP_pmi.IMP_CORE_HAS_IMP_CGAL
280 IMP_CORE_HAS_IMP_KERNEL = _IMP_pmi.IMP_CORE_HAS_IMP_KERNEL
281 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_FILESYSTEM
282 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
283 IMP_CORE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CORE_HAS_BOOST_RANDOM
284 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_SYSTEM
285 IMP_CORE_HAS_CGAL = _IMP_pmi.IMP_CORE_HAS_CGAL
286 IMP_CORE_HAS_HDF5 = _IMP_pmi.IMP_CORE_HAS_HDF5
287 IMPCORE_SHOW_WARNINGS = _IMP_pmi.IMPCORE_SHOW_WARNINGS
288 import IMP.core
289 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_CONTAINER_HAS_IMP_ALGEBRA
290 IMP_CONTAINER_HAS_IMP_BASE = _IMP_pmi.IMP_CONTAINER_HAS_IMP_BASE
291 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_CGAL
292 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_pmi.IMP_CONTAINER_HAS_IMP_DISPLAY
293 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_KERNEL
294 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
295 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
296 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
297 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_RANDOM
298 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_SYSTEM
299 IMP_CONTAINER_HAS_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_CGAL
300 IMP_CONTAINER_HAS_HDF5 = _IMP_pmi.IMP_CONTAINER_HAS_HDF5
301 IMPCONTAINER_SHOW_WARNINGS = _IMP_pmi.IMPCONTAINER_SHOW_WARNINGS
302 import IMP.container
303 IMP_PMI_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_PMI_HAS_IMP_ALGEBRA
304 IMP_PMI_HAS_IMP_BASE = _IMP_pmi.IMP_PMI_HAS_IMP_BASE
305 IMP_PMI_HAS_IMP_CGAL = _IMP_pmi.IMP_PMI_HAS_IMP_CGAL
306 IMP_PMI_HAS_IMP_DISPLAY = _IMP_pmi.IMP_PMI_HAS_IMP_DISPLAY
307 IMP_PMI_HAS_IMP_KERNEL = _IMP_pmi.IMP_PMI_HAS_IMP_KERNEL
308 IMP_PMI_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_PMI_HAS_IMP_SCORE_FUNCTOR
309 IMP_PMI_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_FILESYSTEM
310 IMP_PMI_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_PMI_HAS_BOOST_PROGRAMOPTIONS
311 IMP_PMI_HAS_BOOST_RANDOM = _IMP_pmi.IMP_PMI_HAS_BOOST_RANDOM
312 IMP_PMI_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_SYSTEM
313 IMP_PMI_HAS_CGAL = _IMP_pmi.IMP_PMI_HAS_CGAL
314 IMP_PMI_HAS_HDF5 = _IMP_pmi.IMP_PMI_HAS_HDF5
315 IMPPMI_SHOW_WARNINGS = _IMP_pmi.IMPPMI_SHOW_WARNINGS
316 _object_types.append("CompositeRestraint")
317 
318 
319 def _object_cast_to_CompositeRestraint(*args):
320  """_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
321  return _IMP_pmi._object_cast_to_CompositeRestraint(*args)
322 def Uncertainties(l=[]):
323  return [Uncertainty(x) for x in l]
324 _plural_types.append("Uncertainties")
325 
326 _value_types.append("Uncertainty")
327 
328 def Resolutions(l=[]):
329  return [Resolution(x) for x in l]
330 _plural_types.append("Resolutions")
331 
332 _value_types.append("Resolution")
333 
334 def Symmetrics(l=[]):
335  return [Symmetric(x) for x in l]
336 _plural_types.append("Symmetrics")
337 
338 _value_types.append("Symmetric")
339 
340 _object_types.append("SigmoidRestraintSphere")
341 
342 
343 def _object_cast_to_SigmoidRestraintSphere(*args):
344  """_object_cast_to_SigmoidRestraintSphere(Object o) -> SigmoidRestraintSphere"""
345  return _IMP_pmi._object_cast_to_SigmoidRestraintSphere(*args)
346 _object_types.append("TransformMover")
347 
348 
349 def _object_cast_to_TransformMover(*args):
350  """_object_cast_to_TransformMover(Object o) -> TransformMover"""
351  return _IMP_pmi._object_cast_to_TransformMover(*args)
352 class CompositeRestraint(IMP.kernel.Restraint):
353  """Proxy of C++ IMP::pmi::CompositeRestraint class"""
354  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
355  def __init__(self, *args):
356  """
357  __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
358  bool tabprob, double plateau, std::string name="CompositeRestraint%1%") -> CompositeRestraint
359  __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
360  bool tabprob, double plateau) -> CompositeRestraint
361  """
362  this = _IMP_pmi.new_CompositeRestraint(*args)
363  try: self.this.append(this)
364  except: self.this = this
365  def add_composite_particle(self, *args):
366  """add_composite_particle(CompositeRestraint self, _ParticleIndexesAdaptor pi)"""
367  return _IMP_pmi.CompositeRestraint_add_composite_particle(self, *args)
368 
369  def get_number_of_elements(self):
370  """get_number_of_elements(CompositeRestraint self) -> unsigned int"""
371  return _IMP_pmi.CompositeRestraint_get_number_of_elements(self)
372 
373  def do_get_inputs(self):
374  """do_get_inputs(CompositeRestraint self) -> IMP::kernel::ModelObjectsTemp"""
375  return _IMP_pmi.CompositeRestraint_do_get_inputs(self)
376 
377  def get_version_info(self):
378  """get_version_info(CompositeRestraint self) -> VersionInfo"""
379  return _IMP_pmi.CompositeRestraint_get_version_info(self)
380 
381  def get_probability(self):
382  """get_probability(CompositeRestraint self) -> double"""
383  return _IMP_pmi.CompositeRestraint_get_probability(self)
384 
385  def __str__(self):
386  """__str__(CompositeRestraint self) -> std::string"""
387  return _IMP_pmi.CompositeRestraint___str__(self)
388 
389  def __repr__(self):
390  """__repr__(CompositeRestraint self) -> std::string"""
391  return _IMP_pmi.CompositeRestraint___repr__(self)
392 
393  def get_from(o):
394  return _object_cast_to_CompositeRestraint(o)
395  get_from = staticmethod(get_from)
396 
397 CompositeRestraint_swigregister = _IMP_pmi.CompositeRestraint_swigregister
398 CompositeRestraint_swigregister(CompositeRestraint)
399 
400 class Uncertainty(IMP.kernel.Decorator):
401  """Proxy of C++ IMP::pmi::Uncertainty class"""
402  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
403  def get_uncertainty(self):
404  """get_uncertainty(Uncertainty self) -> IMP::Float"""
405  return _IMP_pmi.Uncertainty_get_uncertainty(self)
406 
407  def set_uncertainty(self, *args):
408  """set_uncertainty(Uncertainty self, IMP::Float d)"""
409  return _IMP_pmi.Uncertainty_set_uncertainty(self, *args)
410 
411  def __init__(self, *args):
412  """
413  __init__(IMP::pmi::Uncertainty self) -> Uncertainty
414  __init__(IMP::pmi::Uncertainty self, Model m, ::IMP::kernel::ParticleIndex id) -> Uncertainty
415  __init__(IMP::pmi::Uncertainty self, _ParticleAdaptor d) -> Uncertainty
416  """
417  this = _IMP_pmi.new_Uncertainty(*args)
418  try: self.this.append(this)
419  except: self.this = this
420  def get_is_setup(*args):
421  """
422  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
423  get_is_setup(_ParticleAdaptor p) -> bool
424  """
425  return _IMP_pmi.Uncertainty_get_is_setup(*args)
426 
427  get_is_setup = staticmethod(get_is_setup)
428  def show(self, *args):
429  """
430  show(Uncertainty self, _ostream out=std::cout)
431  show(Uncertainty self)
432  """
433  return _IMP_pmi.Uncertainty_show(self, *args)
434 
435  def setup_particle(*args):
436  """
437  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
438  setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
439  """
440  return _IMP_pmi.Uncertainty_setup_particle(*args)
441 
442  setup_particle = staticmethod(setup_particle)
443  def get_uncertainty_key():
444  """get_uncertainty_key() -> FloatKey"""
445  return _IMP_pmi.Uncertainty_get_uncertainty_key()
446 
447  get_uncertainty_key = staticmethod(get_uncertainty_key)
448  def add_attribute(self, *args):
449  """
450  add_attribute(Uncertainty self, FloatKey k, IMP::Float v, bool opt)
451  add_attribute(Uncertainty self, FloatKey a0, IMP::Float a1)
452  add_attribute(Uncertainty self, IntKey a0, IMP::Int a1)
453  add_attribute(Uncertainty self, StringKey a0, IMP::String a1)
454  add_attribute(Uncertainty self, ParticleIndexKey a0, Particle a1)
455  add_attribute(Uncertainty self, ObjectKey a0, Object a1)
456  """
457  return _IMP_pmi.Uncertainty_add_attribute(self, *args)
458 
459  def get_value(self, *args):
460  """
461  get_value(Uncertainty self, FloatKey a0) -> IMP::Float
462  get_value(Uncertainty self, IntKey a0) -> IMP::Int
463  get_value(Uncertainty self, StringKey a0) -> IMP::String
464  get_value(Uncertainty self, ParticleIndexKey a0) -> Particle
465  get_value(Uncertainty self, ObjectKey a0) -> Object
466  """
467  return _IMP_pmi.Uncertainty_get_value(self, *args)
468 
469  def set_value(self, *args):
470  """
471  set_value(Uncertainty self, FloatKey a0, IMP::Float a1)
472  set_value(Uncertainty self, IntKey a0, IMP::Int a1)
473  set_value(Uncertainty self, StringKey a0, IMP::String a1)
474  set_value(Uncertainty self, ParticleIndexKey a0, Particle a1)
475  set_value(Uncertainty self, ObjectKey a0, Object a1)
476  """
477  return _IMP_pmi.Uncertainty_set_value(self, *args)
478 
479  def remove_attribute(self, *args):
480  """
481  remove_attribute(Uncertainty self, FloatKey a0)
482  remove_attribute(Uncertainty self, IntKey a0)
483  remove_attribute(Uncertainty self, StringKey a0)
484  remove_attribute(Uncertainty self, ParticleIndexKey a0)
485  remove_attribute(Uncertainty self, ObjectKey a0)
486  """
487  return _IMP_pmi.Uncertainty_remove_attribute(self, *args)
488 
489  def has_attribute(self, *args):
490  """
491  has_attribute(Uncertainty self, FloatKey a0) -> bool
492  has_attribute(Uncertainty self, IntKey a0) -> bool
493  has_attribute(Uncertainty self, StringKey a0) -> bool
494  has_attribute(Uncertainty self, ParticleIndexKey a0) -> bool
495  has_attribute(Uncertainty self, ObjectKey a0) -> bool
496  """
497  return _IMP_pmi.Uncertainty_has_attribute(self, *args)
498 
499  def get_derivative(self, *args):
500  """get_derivative(Uncertainty self, FloatKey a0) -> double"""
501  return _IMP_pmi.Uncertainty_get_derivative(self, *args)
502 
503  def get_name(self):
504  """get_name(Uncertainty self) -> std::string"""
505  return _IMP_pmi.Uncertainty_get_name(self)
506 
507  def clear_caches(self):
508  """clear_caches(Uncertainty self)"""
509  return _IMP_pmi.Uncertainty_clear_caches(self)
510 
511  def set_name(self, *args):
512  """set_name(Uncertainty self, std::string a0)"""
513  return _IMP_pmi.Uncertainty_set_name(self, *args)
514 
515  def set_check_level(self, *args):
516  """set_check_level(Uncertainty self, IMP::base::CheckLevel a0)"""
517  return _IMP_pmi.Uncertainty_set_check_level(self, *args)
518 
519  def add_to_derivative(self, *args):
520  """add_to_derivative(Uncertainty self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
521  return _IMP_pmi.Uncertainty_add_to_derivative(self, *args)
522 
523  def set_is_optimized(self, *args):
524  """set_is_optimized(Uncertainty self, FloatKey a0, bool a1)"""
525  return _IMP_pmi.Uncertainty_set_is_optimized(self, *args)
526 
527  def get_is_optimized(self, *args):
528  """get_is_optimized(Uncertainty self, FloatKey a0) -> bool"""
529  return _IMP_pmi.Uncertainty_get_is_optimized(self, *args)
530 
531  def get_check_level(self):
532  """get_check_level(Uncertainty self) -> IMP::base::CheckLevel"""
533  return _IMP_pmi.Uncertainty_get_check_level(self)
534 
535  def __eq__(self, *args):
536  """
537  __eq__(Uncertainty self, Uncertainty o) -> bool
538  __eq__(Uncertainty self, Particle d) -> bool
539  """
540  return _IMP_pmi.Uncertainty___eq__(self, *args)
541 
542  def __ne__(self, *args):
543  """
544  __ne__(Uncertainty self, Uncertainty o) -> bool
545  __ne__(Uncertainty self, Particle d) -> bool
546  """
547  return _IMP_pmi.Uncertainty___ne__(self, *args)
548 
549  def __le__(self, *args):
550  """
551  __le__(Uncertainty self, Uncertainty o) -> bool
552  __le__(Uncertainty self, Particle d) -> bool
553  """
554  return _IMP_pmi.Uncertainty___le__(self, *args)
555 
556  def __lt__(self, *args):
557  """
558  __lt__(Uncertainty self, Uncertainty o) -> bool
559  __lt__(Uncertainty self, Particle d) -> bool
560  """
561  return _IMP_pmi.Uncertainty___lt__(self, *args)
562 
563  def __ge__(self, *args):
564  """
565  __ge__(Uncertainty self, Uncertainty o) -> bool
566  __ge__(Uncertainty self, Particle d) -> bool
567  """
568  return _IMP_pmi.Uncertainty___ge__(self, *args)
569 
570  def __gt__(self, *args):
571  """
572  __gt__(Uncertainty self, Uncertainty o) -> bool
573  __gt__(Uncertainty self, Particle d) -> bool
574  """
575  return _IMP_pmi.Uncertainty___gt__(self, *args)
576 
577  def __hash__(self):
578  """__hash__(Uncertainty self) -> std::size_t"""
579  return _IMP_pmi.Uncertainty___hash__(self)
580 
581  def __str__(self):
582  """__str__(Uncertainty self) -> std::string"""
583  return _IMP_pmi.Uncertainty___str__(self)
584 
585  def __repr__(self):
586  """__repr__(Uncertainty self) -> std::string"""
587  return _IMP_pmi.Uncertainty___repr__(self)
588 
589  __swig_destroy__ = _IMP_pmi.delete_Uncertainty
590  __del__ = lambda self : None;
591 Uncertainty_swigregister = _IMP_pmi.Uncertainty_swigregister
592 Uncertainty_swigregister(Uncertainty)
593 
594 def Uncertainty_get_is_setup(*args):
595  """
596  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
597  Uncertainty_get_is_setup(_ParticleAdaptor p) -> bool
598  """
599  return _IMP_pmi.Uncertainty_get_is_setup(*args)
600 
601 def Uncertainty_setup_particle(*args):
602  """
603  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
604  Uncertainty_setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
605  """
606  return _IMP_pmi.Uncertainty_setup_particle(*args)
607 
608 def Uncertainty_get_uncertainty_key():
609  """Uncertainty_get_uncertainty_key() -> FloatKey"""
610  return _IMP_pmi.Uncertainty_get_uncertainty_key()
611 
612 class Resolution(IMP.kernel.Decorator):
613  """Proxy of C++ IMP::pmi::Resolution class"""
614  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
615  def get_resolution(self):
616  """get_resolution(Resolution self) -> IMP::Float"""
617  return _IMP_pmi.Resolution_get_resolution(self)
618 
619  def set_resolution(self, *args):
620  """set_resolution(Resolution self, IMP::Float d)"""
621  return _IMP_pmi.Resolution_set_resolution(self, *args)
622 
623  def __init__(self, *args):
624  """
625  __init__(IMP::pmi::Resolution self) -> Resolution
626  __init__(IMP::pmi::Resolution self, Model m, ::IMP::kernel::ParticleIndex id) -> Resolution
627  __init__(IMP::pmi::Resolution self, _ParticleAdaptor d) -> Resolution
628  """
629  this = _IMP_pmi.new_Resolution(*args)
630  try: self.this.append(this)
631  except: self.this = this
632  def get_is_setup(*args):
633  """
634  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
635  get_is_setup(_ParticleAdaptor p) -> bool
636  """
637  return _IMP_pmi.Resolution_get_is_setup(*args)
638 
639  get_is_setup = staticmethod(get_is_setup)
640  def show(self, *args):
641  """
642  show(Resolution self, _ostream out=std::cout)
643  show(Resolution self)
644  """
645  return _IMP_pmi.Resolution_show(self, *args)
646 
647  def setup_particle(*args):
648  """
649  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
650  setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
651  """
652  return _IMP_pmi.Resolution_setup_particle(*args)
653 
654  setup_particle = staticmethod(setup_particle)
655  def get_resolution_key():
656  """get_resolution_key() -> FloatKey"""
657  return _IMP_pmi.Resolution_get_resolution_key()
658 
659  get_resolution_key = staticmethod(get_resolution_key)
660  def add_attribute(self, *args):
661  """
662  add_attribute(Resolution self, FloatKey k, IMP::Float v, bool opt)
663  add_attribute(Resolution self, FloatKey a0, IMP::Float a1)
664  add_attribute(Resolution self, IntKey a0, IMP::Int a1)
665  add_attribute(Resolution self, StringKey a0, IMP::String a1)
666  add_attribute(Resolution self, ParticleIndexKey a0, Particle a1)
667  add_attribute(Resolution self, ObjectKey a0, Object a1)
668  """
669  return _IMP_pmi.Resolution_add_attribute(self, *args)
670 
671  def get_value(self, *args):
672  """
673  get_value(Resolution self, FloatKey a0) -> IMP::Float
674  get_value(Resolution self, IntKey a0) -> IMP::Int
675  get_value(Resolution self, StringKey a0) -> IMP::String
676  get_value(Resolution self, ParticleIndexKey a0) -> Particle
677  get_value(Resolution self, ObjectKey a0) -> Object
678  """
679  return _IMP_pmi.Resolution_get_value(self, *args)
680 
681  def set_value(self, *args):
682  """
683  set_value(Resolution self, FloatKey a0, IMP::Float a1)
684  set_value(Resolution self, IntKey a0, IMP::Int a1)
685  set_value(Resolution self, StringKey a0, IMP::String a1)
686  set_value(Resolution self, ParticleIndexKey a0, Particle a1)
687  set_value(Resolution self, ObjectKey a0, Object a1)
688  """
689  return _IMP_pmi.Resolution_set_value(self, *args)
690 
691  def remove_attribute(self, *args):
692  """
693  remove_attribute(Resolution self, FloatKey a0)
694  remove_attribute(Resolution self, IntKey a0)
695  remove_attribute(Resolution self, StringKey a0)
696  remove_attribute(Resolution self, ParticleIndexKey a0)
697  remove_attribute(Resolution self, ObjectKey a0)
698  """
699  return _IMP_pmi.Resolution_remove_attribute(self, *args)
700 
701  def has_attribute(self, *args):
702  """
703  has_attribute(Resolution self, FloatKey a0) -> bool
704  has_attribute(Resolution self, IntKey a0) -> bool
705  has_attribute(Resolution self, StringKey a0) -> bool
706  has_attribute(Resolution self, ParticleIndexKey a0) -> bool
707  has_attribute(Resolution self, ObjectKey a0) -> bool
708  """
709  return _IMP_pmi.Resolution_has_attribute(self, *args)
710 
711  def get_derivative(self, *args):
712  """get_derivative(Resolution self, FloatKey a0) -> double"""
713  return _IMP_pmi.Resolution_get_derivative(self, *args)
714 
715  def get_name(self):
716  """get_name(Resolution self) -> std::string"""
717  return _IMP_pmi.Resolution_get_name(self)
718 
719  def clear_caches(self):
720  """clear_caches(Resolution self)"""
721  return _IMP_pmi.Resolution_clear_caches(self)
722 
723  def set_name(self, *args):
724  """set_name(Resolution self, std::string a0)"""
725  return _IMP_pmi.Resolution_set_name(self, *args)
726 
727  def set_check_level(self, *args):
728  """set_check_level(Resolution self, IMP::base::CheckLevel a0)"""
729  return _IMP_pmi.Resolution_set_check_level(self, *args)
730 
731  def add_to_derivative(self, *args):
732  """add_to_derivative(Resolution self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
733  return _IMP_pmi.Resolution_add_to_derivative(self, *args)
734 
735  def set_is_optimized(self, *args):
736  """set_is_optimized(Resolution self, FloatKey a0, bool a1)"""
737  return _IMP_pmi.Resolution_set_is_optimized(self, *args)
738 
739  def get_is_optimized(self, *args):
740  """get_is_optimized(Resolution self, FloatKey a0) -> bool"""
741  return _IMP_pmi.Resolution_get_is_optimized(self, *args)
742 
743  def get_check_level(self):
744  """get_check_level(Resolution self) -> IMP::base::CheckLevel"""
745  return _IMP_pmi.Resolution_get_check_level(self)
746 
747  def __eq__(self, *args):
748  """
749  __eq__(Resolution self, Resolution o) -> bool
750  __eq__(Resolution self, Particle d) -> bool
751  """
752  return _IMP_pmi.Resolution___eq__(self, *args)
753 
754  def __ne__(self, *args):
755  """
756  __ne__(Resolution self, Resolution o) -> bool
757  __ne__(Resolution self, Particle d) -> bool
758  """
759  return _IMP_pmi.Resolution___ne__(self, *args)
760 
761  def __le__(self, *args):
762  """
763  __le__(Resolution self, Resolution o) -> bool
764  __le__(Resolution self, Particle d) -> bool
765  """
766  return _IMP_pmi.Resolution___le__(self, *args)
767 
768  def __lt__(self, *args):
769  """
770  __lt__(Resolution self, Resolution o) -> bool
771  __lt__(Resolution self, Particle d) -> bool
772  """
773  return _IMP_pmi.Resolution___lt__(self, *args)
774 
775  def __ge__(self, *args):
776  """
777  __ge__(Resolution self, Resolution o) -> bool
778  __ge__(Resolution self, Particle d) -> bool
779  """
780  return _IMP_pmi.Resolution___ge__(self, *args)
781 
782  def __gt__(self, *args):
783  """
784  __gt__(Resolution self, Resolution o) -> bool
785  __gt__(Resolution self, Particle d) -> bool
786  """
787  return _IMP_pmi.Resolution___gt__(self, *args)
788 
789  def __hash__(self):
790  """__hash__(Resolution self) -> std::size_t"""
791  return _IMP_pmi.Resolution___hash__(self)
792 
793  def __str__(self):
794  """__str__(Resolution self) -> std::string"""
795  return _IMP_pmi.Resolution___str__(self)
796 
797  def __repr__(self):
798  """__repr__(Resolution self) -> std::string"""
799  return _IMP_pmi.Resolution___repr__(self)
800 
801  __swig_destroy__ = _IMP_pmi.delete_Resolution
802  __del__ = lambda self : None;
803 Resolution_swigregister = _IMP_pmi.Resolution_swigregister
804 Resolution_swigregister(Resolution)
805 
806 def Resolution_get_is_setup(*args):
807  """
808  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
809  Resolution_get_is_setup(_ParticleAdaptor p) -> bool
810  """
811  return _IMP_pmi.Resolution_get_is_setup(*args)
812 
813 def Resolution_setup_particle(*args):
814  """
815  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
816  Resolution_setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
817  """
818  return _IMP_pmi.Resolution_setup_particle(*args)
819 
820 def Resolution_get_resolution_key():
821  """Resolution_get_resolution_key() -> FloatKey"""
822  return _IMP_pmi.Resolution_get_resolution_key()
823 
824 class Symmetric(IMP.kernel.Decorator):
825  """Proxy of C++ IMP::pmi::Symmetric class"""
826  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
827  def get_symmetric(self):
828  """get_symmetric(Symmetric self) -> IMP::Float"""
829  return _IMP_pmi.Symmetric_get_symmetric(self)
830 
831  def set_symmetric(self, *args):
832  """set_symmetric(Symmetric self, IMP::Float d)"""
833  return _IMP_pmi.Symmetric_set_symmetric(self, *args)
834 
835  def __init__(self, *args):
836  """
837  __init__(IMP::pmi::Symmetric self) -> Symmetric
838  __init__(IMP::pmi::Symmetric self, Model m, ::IMP::kernel::ParticleIndex id) -> Symmetric
839  __init__(IMP::pmi::Symmetric self, _ParticleAdaptor d) -> Symmetric
840  """
841  this = _IMP_pmi.new_Symmetric(*args)
842  try: self.this.append(this)
843  except: self.this = this
844  def get_is_setup(*args):
845  """
846  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
847  get_is_setup(_ParticleAdaptor p) -> bool
848  """
849  return _IMP_pmi.Symmetric_get_is_setup(*args)
850 
851  get_is_setup = staticmethod(get_is_setup)
852  def show(self, *args):
853  """
854  show(Symmetric self, _ostream out=std::cout)
855  show(Symmetric self)
856  """
857  return _IMP_pmi.Symmetric_show(self, *args)
858 
859  def setup_particle(*args):
860  """
861  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
862  setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
863  """
864  return _IMP_pmi.Symmetric_setup_particle(*args)
865 
866  setup_particle = staticmethod(setup_particle)
867  def get_symmetric_key():
868  """get_symmetric_key() -> FloatKey"""
869  return _IMP_pmi.Symmetric_get_symmetric_key()
870 
871  get_symmetric_key = staticmethod(get_symmetric_key)
872  def add_attribute(self, *args):
873  """
874  add_attribute(Symmetric self, FloatKey k, IMP::Float v, bool opt)
875  add_attribute(Symmetric self, FloatKey a0, IMP::Float a1)
876  add_attribute(Symmetric self, IntKey a0, IMP::Int a1)
877  add_attribute(Symmetric self, StringKey a0, IMP::String a1)
878  add_attribute(Symmetric self, ParticleIndexKey a0, Particle a1)
879  add_attribute(Symmetric self, ObjectKey a0, Object a1)
880  """
881  return _IMP_pmi.Symmetric_add_attribute(self, *args)
882 
883  def get_value(self, *args):
884  """
885  get_value(Symmetric self, FloatKey a0) -> IMP::Float
886  get_value(Symmetric self, IntKey a0) -> IMP::Int
887  get_value(Symmetric self, StringKey a0) -> IMP::String
888  get_value(Symmetric self, ParticleIndexKey a0) -> Particle
889  get_value(Symmetric self, ObjectKey a0) -> Object
890  """
891  return _IMP_pmi.Symmetric_get_value(self, *args)
892 
893  def set_value(self, *args):
894  """
895  set_value(Symmetric self, FloatKey a0, IMP::Float a1)
896  set_value(Symmetric self, IntKey a0, IMP::Int a1)
897  set_value(Symmetric self, StringKey a0, IMP::String a1)
898  set_value(Symmetric self, ParticleIndexKey a0, Particle a1)
899  set_value(Symmetric self, ObjectKey a0, Object a1)
900  """
901  return _IMP_pmi.Symmetric_set_value(self, *args)
902 
903  def remove_attribute(self, *args):
904  """
905  remove_attribute(Symmetric self, FloatKey a0)
906  remove_attribute(Symmetric self, IntKey a0)
907  remove_attribute(Symmetric self, StringKey a0)
908  remove_attribute(Symmetric self, ParticleIndexKey a0)
909  remove_attribute(Symmetric self, ObjectKey a0)
910  """
911  return _IMP_pmi.Symmetric_remove_attribute(self, *args)
912 
913  def has_attribute(self, *args):
914  """
915  has_attribute(Symmetric self, FloatKey a0) -> bool
916  has_attribute(Symmetric self, IntKey a0) -> bool
917  has_attribute(Symmetric self, StringKey a0) -> bool
918  has_attribute(Symmetric self, ParticleIndexKey a0) -> bool
919  has_attribute(Symmetric self, ObjectKey a0) -> bool
920  """
921  return _IMP_pmi.Symmetric_has_attribute(self, *args)
922 
923  def get_derivative(self, *args):
924  """get_derivative(Symmetric self, FloatKey a0) -> double"""
925  return _IMP_pmi.Symmetric_get_derivative(self, *args)
926 
927  def get_name(self):
928  """get_name(Symmetric self) -> std::string"""
929  return _IMP_pmi.Symmetric_get_name(self)
930 
931  def clear_caches(self):
932  """clear_caches(Symmetric self)"""
933  return _IMP_pmi.Symmetric_clear_caches(self)
934 
935  def set_name(self, *args):
936  """set_name(Symmetric self, std::string a0)"""
937  return _IMP_pmi.Symmetric_set_name(self, *args)
938 
939  def set_check_level(self, *args):
940  """set_check_level(Symmetric self, IMP::base::CheckLevel a0)"""
941  return _IMP_pmi.Symmetric_set_check_level(self, *args)
942 
943  def add_to_derivative(self, *args):
944  """add_to_derivative(Symmetric self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
945  return _IMP_pmi.Symmetric_add_to_derivative(self, *args)
946 
947  def set_is_optimized(self, *args):
948  """set_is_optimized(Symmetric self, FloatKey a0, bool a1)"""
949  return _IMP_pmi.Symmetric_set_is_optimized(self, *args)
950 
951  def get_is_optimized(self, *args):
952  """get_is_optimized(Symmetric self, FloatKey a0) -> bool"""
953  return _IMP_pmi.Symmetric_get_is_optimized(self, *args)
954 
955  def get_check_level(self):
956  """get_check_level(Symmetric self) -> IMP::base::CheckLevel"""
957  return _IMP_pmi.Symmetric_get_check_level(self)
958 
959  def __eq__(self, *args):
960  """
961  __eq__(Symmetric self, Symmetric o) -> bool
962  __eq__(Symmetric self, Particle d) -> bool
963  """
964  return _IMP_pmi.Symmetric___eq__(self, *args)
965 
966  def __ne__(self, *args):
967  """
968  __ne__(Symmetric self, Symmetric o) -> bool
969  __ne__(Symmetric self, Particle d) -> bool
970  """
971  return _IMP_pmi.Symmetric___ne__(self, *args)
972 
973  def __le__(self, *args):
974  """
975  __le__(Symmetric self, Symmetric o) -> bool
976  __le__(Symmetric self, Particle d) -> bool
977  """
978  return _IMP_pmi.Symmetric___le__(self, *args)
979 
980  def __lt__(self, *args):
981  """
982  __lt__(Symmetric self, Symmetric o) -> bool
983  __lt__(Symmetric self, Particle d) -> bool
984  """
985  return _IMP_pmi.Symmetric___lt__(self, *args)
986 
987  def __ge__(self, *args):
988  """
989  __ge__(Symmetric self, Symmetric o) -> bool
990  __ge__(Symmetric self, Particle d) -> bool
991  """
992  return _IMP_pmi.Symmetric___ge__(self, *args)
993 
994  def __gt__(self, *args):
995  """
996  __gt__(Symmetric self, Symmetric o) -> bool
997  __gt__(Symmetric self, Particle d) -> bool
998  """
999  return _IMP_pmi.Symmetric___gt__(self, *args)
1000 
1001  def __hash__(self):
1002  """__hash__(Symmetric self) -> std::size_t"""
1003  return _IMP_pmi.Symmetric___hash__(self)
1004 
1005  def __str__(self):
1006  """__str__(Symmetric self) -> std::string"""
1007  return _IMP_pmi.Symmetric___str__(self)
1008 
1009  def __repr__(self):
1010  """__repr__(Symmetric self) -> std::string"""
1011  return _IMP_pmi.Symmetric___repr__(self)
1012 
1013  __swig_destroy__ = _IMP_pmi.delete_Symmetric
1014  __del__ = lambda self : None;
1015 Symmetric_swigregister = _IMP_pmi.Symmetric_swigregister
1016 Symmetric_swigregister(Symmetric)
1017 
1018 def Symmetric_get_is_setup(*args):
1019  """
1020  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1021  Symmetric_get_is_setup(_ParticleAdaptor p) -> bool
1022  """
1023  return _IMP_pmi.Symmetric_get_is_setup(*args)
1024 
1025 def Symmetric_setup_particle(*args):
1026  """
1027  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
1028  Symmetric_setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
1029  """
1030  return _IMP_pmi.Symmetric_setup_particle(*args)
1031 
1032 def Symmetric_get_symmetric_key():
1033  """Symmetric_get_symmetric_key() -> FloatKey"""
1034  return _IMP_pmi.Symmetric_get_symmetric_key()
1035 
1036 class SigmoidRestraintSphere(IMP.kernel.Restraint):
1037  """Proxy of C++ IMP::pmi::SigmoidRestraintSphere class"""
1038  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1039  def __init__(self, *args):
1040  """
1041  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1042  double amplitude, double line_slope_=0, std::string name="SigmoidRestraintSphere%1%") -> SigmoidRestraintSphere
1043  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1044  double amplitude, double line_slope_=0) -> SigmoidRestraintSphere
1045  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1046  double amplitude) -> SigmoidRestraintSphere
1047  """
1048  this = _IMP_pmi.new_SigmoidRestraintSphere(*args)
1049  try: self.this.append(this)
1050  except: self.this = this
1051  def set_amplitude(self, *args):
1052  """set_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1053  return _IMP_pmi.SigmoidRestraintSphere_set_amplitude(self, *args)
1054 
1055  def increment_amplitude(self, *args):
1056  """increment_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1057  return _IMP_pmi.SigmoidRestraintSphere_increment_amplitude(self, *args)
1058 
1059  def get_amplitude(self):
1060  """get_amplitude(SigmoidRestraintSphere self) -> double"""
1061  return _IMP_pmi.SigmoidRestraintSphere_get_amplitude(self)
1062 
1063  def do_get_inputs(self):
1064  """do_get_inputs(SigmoidRestraintSphere self) -> IMP::kernel::ModelObjectsTemp"""
1065  return _IMP_pmi.SigmoidRestraintSphere_do_get_inputs(self)
1066 
1067  def get_version_info(self):
1068  """get_version_info(SigmoidRestraintSphere self) -> VersionInfo"""
1069  return _IMP_pmi.SigmoidRestraintSphere_get_version_info(self)
1070 
1071  def __str__(self):
1072  """__str__(SigmoidRestraintSphere self) -> std::string"""
1073  return _IMP_pmi.SigmoidRestraintSphere___str__(self)
1074 
1075  def __repr__(self):
1076  """__repr__(SigmoidRestraintSphere self) -> std::string"""
1077  return _IMP_pmi.SigmoidRestraintSphere___repr__(self)
1078 
1079  def get_from(o):
1080  return _object_cast_to_SigmoidRestraintSphere(o)
1081  get_from = staticmethod(get_from)
1082 
1083 SigmoidRestraintSphere_swigregister = _IMP_pmi.SigmoidRestraintSphere_swigregister
1084 SigmoidRestraintSphere_swigregister(SigmoidRestraintSphere)
1085 
1086 class TransformMover(IMP.core.MonteCarloMover):
1087  """Proxy of C++ IMP::pmi::TransformMover class"""
1088  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1089  def __init__(self, *args):
1090  """
1091  __init__(IMP::pmi::TransformMover self, Model m, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1092  __init__(IMP::pmi::TransformMover self, Model m, Vector3D axis, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1093  """
1094  this = _IMP_pmi.new_TransformMover(*args)
1095  try: self.this.append(this)
1096  except: self.this = this
1097  def add_xyz_particle(self, *args):
1098  """add_xyz_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1099  return _IMP_pmi.TransformMover_add_xyz_particle(self, *args)
1100 
1101  def add_rigid_body_particle(self, *args):
1102  """add_rigid_body_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1103  return _IMP_pmi.TransformMover_add_rigid_body_particle(self, *args)
1104 
1105  def set_maximum_translation(self, *args):
1106  """set_maximum_translation(TransformMover self, IMP::Float mt)"""
1107  return _IMP_pmi.TransformMover_set_maximum_translation(self, *args)
1108 
1109  def set_maximum_rotation(self, *args):
1110  """set_maximum_rotation(TransformMover self, IMP::Float mr)"""
1111  return _IMP_pmi.TransformMover_set_maximum_rotation(self, *args)
1112 
1113  def get_maximum_translation(self):
1114  """get_maximum_translation(TransformMover self) -> IMP::Float"""
1115  return _IMP_pmi.TransformMover_get_maximum_translation(self)
1116 
1117  def get_maximum_rotation(self):
1118  """get_maximum_rotation(TransformMover self) -> IMP::Float"""
1119  return _IMP_pmi.TransformMover_get_maximum_rotation(self)
1120 
1121  def get_version_info(self):
1122  """get_version_info(TransformMover self) -> VersionInfo"""
1123  return _IMP_pmi.TransformMover_get_version_info(self)
1124 
1125  def __str__(self):
1126  """__str__(TransformMover self) -> std::string"""
1127  return _IMP_pmi.TransformMover___str__(self)
1128 
1129  def __repr__(self):
1130  """__repr__(TransformMover self) -> std::string"""
1131  return _IMP_pmi.TransformMover___repr__(self)
1132 
1133  def get_from(o):
1134  return _object_cast_to_TransformMover(o)
1135  get_from = staticmethod(get_from)
1136 
1137 TransformMover_swigregister = _IMP_pmi.TransformMover_swigregister
1138 TransformMover_swigregister(TransformMover)
1139 
1140 
1141 def create_elastic_network(*args):
1142  """create_elastic_network(IMP::kernel::Particles const & ps, IMP::Float dist_cutoff, IMP::Float strength) -> RestraintSet"""
1143  return _IMP_pmi.create_elastic_network(*args)
1144 
1145 def get_module_version():
1146  """get_module_version() -> std::string const"""
1147  return _IMP_pmi.get_module_version()
1148 
1149 def get_example_path(*args):
1150  """get_example_path(std::string fname) -> std::string"""
1151  return _IMP_pmi.get_example_path(*args)
1152 
1153 def get_data_path(*args):
1154  """get_data_path(std::string fname) -> std::string"""
1155  return _IMP_pmi.get_data_path(*args)
1156 from . import _version_check
1157 _version_check.check_version(get_module_version())
1158 
1159 
1160 
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
double get_resolution(kernel::Model *m, kernel::ParticleIndex pi)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Composable functors to implement scores via compile-time composition.
def __init__
Constructor.
RestraintSet * create_elastic_network(const Particles &ps, Float dist_cutoff, Float strength)
Create an elastic network restraint set.
Definition: utilities.h:19
A base class for classes which perturb particles.
Base functionality and abstract base classes for representation, scoring and sampling.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
A restraint is a term in an IMP ScoringFunction.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
Output IMP model data in various file formats.