11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_pmi', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_pmi', fp, pathname, description)
28 _IMP_pmi = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_PMI_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_PMI_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_PMI_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_PMI_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_pmi.delete_IMP_PMI_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_PMI_SwigPyIterator self) -> PyObject *"""
91 return _IMP_pmi.IMP_PMI_SwigPyIterator_value(self)
95 incr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
96 incr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
98 return _IMP_pmi.IMP_PMI_SwigPyIterator_incr(self, n)
102 decr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
103 decr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
105 return _IMP_pmi.IMP_PMI_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_pmi.IMP_PMI_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
113 return _IMP_pmi.IMP_PMI_SwigPyIterator_equal(self, *args)
116 """copy(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator"""
117 return _IMP_pmi.IMP_PMI_SwigPyIterator_copy(self)
120 """next(IMP_PMI_SwigPyIterator self) -> PyObject *"""
121 return _IMP_pmi.IMP_PMI_SwigPyIterator_next(self)
124 """__next__(IMP_PMI_SwigPyIterator self) -> PyObject *"""
125 return _IMP_pmi.IMP_PMI_SwigPyIterator___next__(self)
128 """previous(IMP_PMI_SwigPyIterator self) -> PyObject *"""
129 return _IMP_pmi.IMP_PMI_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
133 return _IMP_pmi.IMP_PMI_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
137 return _IMP_pmi.IMP_PMI_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
141 return _IMP_pmi.IMP_PMI_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
145 return _IMP_pmi.IMP_PMI_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
149 return _IMP_pmi.IMP_PMI_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
153 return _IMP_pmi.IMP_PMI_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator
158 __sub__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_pmi.IMP_PMI_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_PMI_SwigPyIterator_swigregister = _IMP_pmi.IMP_PMI_SwigPyIterator_swigregister
164 IMP_PMI_SwigPyIterator_swigregister(IMP_PMI_SwigPyIterator)
171 IMP_DEBUG = _IMP_pmi.IMP_DEBUG
172 IMP_RELEASE = _IMP_pmi.IMP_RELEASE
173 IMP_SILENT = _IMP_pmi.IMP_SILENT
174 IMP_PROGRESS = _IMP_pmi.IMP_PROGRESS
175 IMP_TERSE = _IMP_pmi.IMP_TERSE
176 IMP_VERBOSE = _IMP_pmi.IMP_VERBOSE
177 IMP_MEMORY = _IMP_pmi.IMP_MEMORY
178 IMP_NONE = _IMP_pmi.IMP_NONE
179 IMP_USAGE = _IMP_pmi.IMP_USAGE
180 IMP_INTERNAL = _IMP_pmi.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_pmi.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_pmi.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_pmi.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_pmi.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_pmi.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_pmi.DEFAULT_CHECK
217 USAGE = _IMP_pmi.USAGE
218 USAGE_AND_INTERNAL = _IMP_pmi.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_pmi.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_pmi.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_pmi._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_pmi._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_pmi.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_pmi.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_pmi.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_pmi.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_pmi.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_pmi.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_pmi.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_pmi.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_pmi.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_pmi.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_pmi.IMPDISPLAY_SHOW_WARNINGS
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_pmi.IMPSCOREFUNCTOR_SHOW_WARNINGS
286 IMP_CORE_HAS_IMP_BASE = _IMP_pmi.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_pmi.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_pmi.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_pmi.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_pmi.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_pmi.IMPCORE_SHOW_WARNINGS
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_pmi.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_pmi.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_pmi.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_pmi.IMPCONTAINER_SHOW_WARNINGS
311 IMP_PMI_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_PMI_HAS_IMP_ALGEBRA
312 IMP_PMI_HAS_IMP_BASE = _IMP_pmi.IMP_PMI_HAS_IMP_BASE
313 IMP_PMI_HAS_IMP_CGAL = _IMP_pmi.IMP_PMI_HAS_IMP_CGAL
314 IMP_PMI_HAS_IMP_DISPLAY = _IMP_pmi.IMP_PMI_HAS_IMP_DISPLAY
315 IMP_PMI_HAS_IMP_KERNEL = _IMP_pmi.IMP_PMI_HAS_IMP_KERNEL
316 IMP_PMI_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_PMI_HAS_IMP_SCORE_FUNCTOR
317 IMP_PMI_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_FILESYSTEM
318 IMP_PMI_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_PMI_HAS_BOOST_PROGRAMOPTIONS
319 IMP_PMI_HAS_BOOST_RANDOM = _IMP_pmi.IMP_PMI_HAS_BOOST_RANDOM
320 IMP_PMI_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_SYSTEM
321 IMP_PMI_HAS_CGAL = _IMP_pmi.IMP_PMI_HAS_CGAL
322 IMP_PMI_HAS_HDF5 = _IMP_pmi.IMP_PMI_HAS_HDF5
323 IMPPMI_SHOW_WARNINGS = _IMP_pmi.IMPPMI_SHOW_WARNINGS
324 _object_types.append(
"CompositeRestraint")
327 def _object_cast_to_CompositeRestraint(*args):
328 """_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
329 return _IMP_pmi._object_cast_to_CompositeRestraint(*args)
330 def Uncertainties(l=[]):
331 return [Uncertainty(x)
for x
in l]
332 _plural_types.append(
"Uncertainties")
334 _value_types.append(
"Uncertainty")
336 def Resolutions(l=[]):
337 return [Resolution(x)
for x
in l]
338 _plural_types.append(
"Resolutions")
340 _value_types.append(
"Resolution")
342 def Symmetrics(l=[]):
343 return [Symmetric(x)
for x
in l]
344 _plural_types.append(
"Symmetrics")
346 _value_types.append(
"Symmetric")
348 _object_types.append(
"SigmoidRestraintSphere")
351 def _object_cast_to_SigmoidRestraintSphere(*args):
352 """_object_cast_to_SigmoidRestraintSphere(Object o) -> SigmoidRestraintSphere"""
353 return _IMP_pmi._object_cast_to_SigmoidRestraintSphere(*args)
354 _object_types.append(
"TransformMover")
357 def _object_cast_to_TransformMover(*args):
358 """_object_cast_to_TransformMover(Object o) -> TransformMover"""
359 return _IMP_pmi._object_cast_to_TransformMover(*args)
361 """Proxy of C++ IMP::pmi::CompositeRestraint class"""
362 __swig_setmethods__ = {}
363 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
364 __setattr__ =
lambda self, name, value: _swig_setattr(self, CompositeRestraint, name, value)
365 __swig_getmethods__ = {}
366 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
367 __getattr__ =
lambda self, name: _swig_getattr(self, CompositeRestraint, name)
368 def __init__(self, *args):
370 __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
371 bool tabprob, double plateau, std::string name="CompositeRestraint%1%") -> CompositeRestraint
372 __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
373 bool tabprob, double plateau) -> CompositeRestraint
375 this = _IMP_pmi.new_CompositeRestraint(*args)
376 try: self.this.append(this)
377 except: self.this = this
378 def add_composite_particle(self, *args):
379 """add_composite_particle(CompositeRestraint self, _ParticleIndexesAdaptor pi)"""
380 return _IMP_pmi.CompositeRestraint_add_composite_particle(self, *args)
382 def get_number_of_elements(self):
383 """get_number_of_elements(CompositeRestraint self) -> unsigned int"""
384 return _IMP_pmi.CompositeRestraint_get_number_of_elements(self)
386 def do_get_inputs(self):
387 """do_get_inputs(CompositeRestraint self) -> IMP::kernel::ModelObjectsTemp"""
388 return _IMP_pmi.CompositeRestraint_do_get_inputs(self)
390 def get_version_info(self):
391 """get_version_info(CompositeRestraint self) -> VersionInfo"""
392 return _IMP_pmi.CompositeRestraint_get_version_info(self)
394 def get_probability(self):
395 """get_probability(CompositeRestraint self) -> double"""
396 return _IMP_pmi.CompositeRestraint_get_probability(self)
399 """__str__(CompositeRestraint self) -> std::string"""
400 return _IMP_pmi.CompositeRestraint___str__(self)
403 """__repr__(CompositeRestraint self) -> std::string"""
404 return _IMP_pmi.CompositeRestraint___repr__(self)
407 return _object_cast_to_CompositeRestraint(o)
408 get_from = staticmethod(get_from)
410 CompositeRestraint_swigregister = _IMP_pmi.CompositeRestraint_swigregister
411 CompositeRestraint_swigregister(CompositeRestraint)
414 """Proxy of C++ IMP::pmi::Uncertainty class"""
415 __swig_setmethods__ = {}
416 for _s
in [
IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
417 __setattr__ =
lambda self, name, value: _swig_setattr(self, Uncertainty, name, value)
418 __swig_getmethods__ = {}
419 for _s
in [
IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
420 __getattr__ =
lambda self, name: _swig_getattr(self, Uncertainty, name)
421 def get_uncertainty(self):
422 """get_uncertainty(Uncertainty self) -> IMP::Float"""
423 return _IMP_pmi.Uncertainty_get_uncertainty(self)
425 def set_uncertainty(self, *args):
426 """set_uncertainty(Uncertainty self, IMP::Float d)"""
427 return _IMP_pmi.Uncertainty_set_uncertainty(self, *args)
429 def __init__(self, *args):
431 __init__(IMP::pmi::Uncertainty self) -> Uncertainty
432 __init__(IMP::pmi::Uncertainty self, Model m, ::IMP::kernel::ParticleIndex id) -> Uncertainty
433 __init__(IMP::pmi::Uncertainty self, _ParticleAdaptor d) -> Uncertainty
435 this = _IMP_pmi.new_Uncertainty(*args)
436 try: self.this.append(this)
437 except: self.this = this
438 def get_is_setup(*args):
440 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
441 get_is_setup(_ParticleAdaptor p) -> bool
443 return _IMP_pmi.Uncertainty_get_is_setup(*args)
445 if _newclass:get_is_setup = staticmethod(get_is_setup)
446 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
447 def show(self, *args):
449 show(Uncertainty self, _ostream out=std::cout)
450 show(Uncertainty self)
452 return _IMP_pmi.Uncertainty_show(self, *args)
454 def setup_particle(*args):
456 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
457 setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
459 return _IMP_pmi.Uncertainty_setup_particle(*args)
461 if _newclass:setup_particle = staticmethod(setup_particle)
462 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
463 def get_uncertainty_key():
464 """get_uncertainty_key() -> FloatKey"""
465 return _IMP_pmi.Uncertainty_get_uncertainty_key()
467 if _newclass:get_uncertainty_key = staticmethod(get_uncertainty_key)
468 __swig_getmethods__[
"get_uncertainty_key"] =
lambda x: get_uncertainty_key
469 def add_attribute(self, *args):
471 add_attribute(Uncertainty self, FloatKey k, IMP::Float v, bool opt)
472 add_attribute(Uncertainty self, FloatKey a0, IMP::Float a1)
473 add_attribute(Uncertainty self, IntKey a0, IMP::Int a1)
474 add_attribute(Uncertainty self, StringKey a0, IMP::String a1)
475 add_attribute(Uncertainty self, ParticleIndexKey a0, Particle a1)
476 add_attribute(Uncertainty self, ObjectKey a0, Object a1)
478 return _IMP_pmi.Uncertainty_add_attribute(self, *args)
480 def get_value(self, *args):
482 get_value(Uncertainty self, FloatKey a0) -> IMP::Float
483 get_value(Uncertainty self, IntKey a0) -> IMP::Int
484 get_value(Uncertainty self, StringKey a0) -> IMP::String
485 get_value(Uncertainty self, ParticleIndexKey a0) -> Particle
486 get_value(Uncertainty self, ObjectKey a0) -> Object
488 return _IMP_pmi.Uncertainty_get_value(self, *args)
490 def set_value(self, *args):
492 set_value(Uncertainty self, FloatKey a0, IMP::Float a1)
493 set_value(Uncertainty self, IntKey a0, IMP::Int a1)
494 set_value(Uncertainty self, StringKey a0, IMP::String a1)
495 set_value(Uncertainty self, ParticleIndexKey a0, Particle a1)
496 set_value(Uncertainty self, ObjectKey a0, Object a1)
498 return _IMP_pmi.Uncertainty_set_value(self, *args)
500 def remove_attribute(self, *args):
502 remove_attribute(Uncertainty self, FloatKey a0)
503 remove_attribute(Uncertainty self, IntKey a0)
504 remove_attribute(Uncertainty self, StringKey a0)
505 remove_attribute(Uncertainty self, ParticleIndexKey a0)
506 remove_attribute(Uncertainty self, ObjectKey a0)
508 return _IMP_pmi.Uncertainty_remove_attribute(self, *args)
510 def has_attribute(self, *args):
512 has_attribute(Uncertainty self, FloatKey a0) -> bool
513 has_attribute(Uncertainty self, IntKey a0) -> bool
514 has_attribute(Uncertainty self, StringKey a0) -> bool
515 has_attribute(Uncertainty self, ParticleIndexKey a0) -> bool
516 has_attribute(Uncertainty self, ObjectKey a0) -> bool
518 return _IMP_pmi.Uncertainty_has_attribute(self, *args)
520 def get_derivative(self, *args):
521 """get_derivative(Uncertainty self, FloatKey a0) -> double"""
522 return _IMP_pmi.Uncertainty_get_derivative(self, *args)
525 """get_name(Uncertainty self) -> std::string"""
526 return _IMP_pmi.Uncertainty_get_name(self)
528 def clear_caches(self):
529 """clear_caches(Uncertainty self)"""
530 return _IMP_pmi.Uncertainty_clear_caches(self)
532 def set_name(self, *args):
533 """set_name(Uncertainty self, std::string a0)"""
534 return _IMP_pmi.Uncertainty_set_name(self, *args)
537 """set_check_level(Uncertainty self, IMP::base::CheckLevel a0)"""
538 return _IMP_pmi.Uncertainty_set_check_level(self, *args)
540 def add_to_derivative(self, *args):
541 """add_to_derivative(Uncertainty self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
542 return _IMP_pmi.Uncertainty_add_to_derivative(self, *args)
544 def set_is_optimized(self, *args):
545 """set_is_optimized(Uncertainty self, FloatKey a0, bool a1)"""
546 return _IMP_pmi.Uncertainty_set_is_optimized(self, *args)
548 def get_is_optimized(self, *args):
549 """get_is_optimized(Uncertainty self, FloatKey a0) -> bool"""
550 return _IMP_pmi.Uncertainty_get_is_optimized(self, *args)
553 """get_check_level(Uncertainty self) -> IMP::base::CheckLevel"""
554 return _IMP_pmi.Uncertainty_get_check_level(self)
556 def __eq__(self, *args):
558 __eq__(Uncertainty self, Uncertainty o) -> bool
559 __eq__(Uncertainty self, Particle d) -> bool
561 return _IMP_pmi.Uncertainty___eq__(self, *args)
563 def __ne__(self, *args):
565 __ne__(Uncertainty self, Uncertainty o) -> bool
566 __ne__(Uncertainty self, Particle d) -> bool
568 return _IMP_pmi.Uncertainty___ne__(self, *args)
570 def __le__(self, *args):
572 __le__(Uncertainty self, Uncertainty o) -> bool
573 __le__(Uncertainty self, Particle d) -> bool
575 return _IMP_pmi.Uncertainty___le__(self, *args)
577 def __lt__(self, *args):
579 __lt__(Uncertainty self, Uncertainty o) -> bool
580 __lt__(Uncertainty self, Particle d) -> bool
582 return _IMP_pmi.Uncertainty___lt__(self, *args)
584 def __ge__(self, *args):
586 __ge__(Uncertainty self, Uncertainty o) -> bool
587 __ge__(Uncertainty self, Particle d) -> bool
589 return _IMP_pmi.Uncertainty___ge__(self, *args)
591 def __gt__(self, *args):
593 __gt__(Uncertainty self, Uncertainty o) -> bool
594 __gt__(Uncertainty self, Particle d) -> bool
596 return _IMP_pmi.Uncertainty___gt__(self, *args)
599 """__str__(Uncertainty self) -> std::string"""
600 return _IMP_pmi.Uncertainty___str__(self)
603 """__repr__(Uncertainty self) -> std::string"""
604 return _IMP_pmi.Uncertainty___repr__(self)
606 __swig_destroy__ = _IMP_pmi.delete_Uncertainty
607 __del__ =
lambda self :
None;
608 Uncertainty_swigregister = _IMP_pmi.Uncertainty_swigregister
609 Uncertainty_swigregister(Uncertainty)
611 def Uncertainty_get_is_setup(*args):
613 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
614 Uncertainty_get_is_setup(_ParticleAdaptor p) -> bool
616 return _IMP_pmi.Uncertainty_get_is_setup(*args)
618 def Uncertainty_setup_particle(*args):
620 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
621 Uncertainty_setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
623 return _IMP_pmi.Uncertainty_setup_particle(*args)
625 def Uncertainty_get_uncertainty_key():
626 """Uncertainty_get_uncertainty_key() -> FloatKey"""
627 return _IMP_pmi.Uncertainty_get_uncertainty_key()
630 """Proxy of C++ IMP::pmi::Resolution class"""
631 __swig_setmethods__ = {}
632 for _s
in [
IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
633 __setattr__ =
lambda self, name, value: _swig_setattr(self, Resolution, name, value)
634 __swig_getmethods__ = {}
635 for _s
in [
IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
636 __getattr__ =
lambda self, name: _swig_getattr(self, Resolution, name)
638 """get_resolution(Resolution self) -> IMP::Float"""
639 return _IMP_pmi.Resolution_get_resolution(self)
641 def set_resolution(self, *args):
642 """set_resolution(Resolution self, IMP::Float d)"""
643 return _IMP_pmi.Resolution_set_resolution(self, *args)
645 def __init__(self, *args):
647 __init__(IMP::pmi::Resolution self) -> Resolution
648 __init__(IMP::pmi::Resolution self, Model m, ::IMP::kernel::ParticleIndex id) -> Resolution
649 __init__(IMP::pmi::Resolution self, _ParticleAdaptor d) -> Resolution
651 this = _IMP_pmi.new_Resolution(*args)
652 try: self.this.append(this)
653 except: self.this = this
654 def get_is_setup(*args):
656 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
657 get_is_setup(_ParticleAdaptor p) -> bool
659 return _IMP_pmi.Resolution_get_is_setup(*args)
661 if _newclass:get_is_setup = staticmethod(get_is_setup)
662 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
663 def show(self, *args):
665 show(Resolution self, _ostream out=std::cout)
666 show(Resolution self)
668 return _IMP_pmi.Resolution_show(self, *args)
670 def setup_particle(*args):
672 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
673 setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
675 return _IMP_pmi.Resolution_setup_particle(*args)
677 if _newclass:setup_particle = staticmethod(setup_particle)
678 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
679 def get_resolution_key():
680 """get_resolution_key() -> FloatKey"""
681 return _IMP_pmi.Resolution_get_resolution_key()
683 if _newclass:get_resolution_key = staticmethod(get_resolution_key)
684 __swig_getmethods__[
"get_resolution_key"] =
lambda x: get_resolution_key
685 def add_attribute(self, *args):
687 add_attribute(Resolution self, FloatKey k, IMP::Float v, bool opt)
688 add_attribute(Resolution self, FloatKey a0, IMP::Float a1)
689 add_attribute(Resolution self, IntKey a0, IMP::Int a1)
690 add_attribute(Resolution self, StringKey a0, IMP::String a1)
691 add_attribute(Resolution self, ParticleIndexKey a0, Particle a1)
692 add_attribute(Resolution self, ObjectKey a0, Object a1)
694 return _IMP_pmi.Resolution_add_attribute(self, *args)
696 def get_value(self, *args):
698 get_value(Resolution self, FloatKey a0) -> IMP::Float
699 get_value(Resolution self, IntKey a0) -> IMP::Int
700 get_value(Resolution self, StringKey a0) -> IMP::String
701 get_value(Resolution self, ParticleIndexKey a0) -> Particle
702 get_value(Resolution self, ObjectKey a0) -> Object
704 return _IMP_pmi.Resolution_get_value(self, *args)
706 def set_value(self, *args):
708 set_value(Resolution self, FloatKey a0, IMP::Float a1)
709 set_value(Resolution self, IntKey a0, IMP::Int a1)
710 set_value(Resolution self, StringKey a0, IMP::String a1)
711 set_value(Resolution self, ParticleIndexKey a0, Particle a1)
712 set_value(Resolution self, ObjectKey a0, Object a1)
714 return _IMP_pmi.Resolution_set_value(self, *args)
716 def remove_attribute(self, *args):
718 remove_attribute(Resolution self, FloatKey a0)
719 remove_attribute(Resolution self, IntKey a0)
720 remove_attribute(Resolution self, StringKey a0)
721 remove_attribute(Resolution self, ParticleIndexKey a0)
722 remove_attribute(Resolution self, ObjectKey a0)
724 return _IMP_pmi.Resolution_remove_attribute(self, *args)
726 def has_attribute(self, *args):
728 has_attribute(Resolution self, FloatKey a0) -> bool
729 has_attribute(Resolution self, IntKey a0) -> bool
730 has_attribute(Resolution self, StringKey a0) -> bool
731 has_attribute(Resolution self, ParticleIndexKey a0) -> bool
732 has_attribute(Resolution self, ObjectKey a0) -> bool
734 return _IMP_pmi.Resolution_has_attribute(self, *args)
736 def get_derivative(self, *args):
737 """get_derivative(Resolution self, FloatKey a0) -> double"""
738 return _IMP_pmi.Resolution_get_derivative(self, *args)
741 """get_name(Resolution self) -> std::string"""
742 return _IMP_pmi.Resolution_get_name(self)
744 def clear_caches(self):
745 """clear_caches(Resolution self)"""
746 return _IMP_pmi.Resolution_clear_caches(self)
748 def set_name(self, *args):
749 """set_name(Resolution self, std::string a0)"""
750 return _IMP_pmi.Resolution_set_name(self, *args)
753 """set_check_level(Resolution self, IMP::base::CheckLevel a0)"""
754 return _IMP_pmi.Resolution_set_check_level(self, *args)
756 def add_to_derivative(self, *args):
757 """add_to_derivative(Resolution self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
758 return _IMP_pmi.Resolution_add_to_derivative(self, *args)
760 def set_is_optimized(self, *args):
761 """set_is_optimized(Resolution self, FloatKey a0, bool a1)"""
762 return _IMP_pmi.Resolution_set_is_optimized(self, *args)
764 def get_is_optimized(self, *args):
765 """get_is_optimized(Resolution self, FloatKey a0) -> bool"""
766 return _IMP_pmi.Resolution_get_is_optimized(self, *args)
769 """get_check_level(Resolution self) -> IMP::base::CheckLevel"""
770 return _IMP_pmi.Resolution_get_check_level(self)
772 def __eq__(self, *args):
774 __eq__(Resolution self, Resolution o) -> bool
775 __eq__(Resolution self, Particle d) -> bool
777 return _IMP_pmi.Resolution___eq__(self, *args)
779 def __ne__(self, *args):
781 __ne__(Resolution self, Resolution o) -> bool
782 __ne__(Resolution self, Particle d) -> bool
784 return _IMP_pmi.Resolution___ne__(self, *args)
786 def __le__(self, *args):
788 __le__(Resolution self, Resolution o) -> bool
789 __le__(Resolution self, Particle d) -> bool
791 return _IMP_pmi.Resolution___le__(self, *args)
793 def __lt__(self, *args):
795 __lt__(Resolution self, Resolution o) -> bool
796 __lt__(Resolution self, Particle d) -> bool
798 return _IMP_pmi.Resolution___lt__(self, *args)
800 def __ge__(self, *args):
802 __ge__(Resolution self, Resolution o) -> bool
803 __ge__(Resolution self, Particle d) -> bool
805 return _IMP_pmi.Resolution___ge__(self, *args)
807 def __gt__(self, *args):
809 __gt__(Resolution self, Resolution o) -> bool
810 __gt__(Resolution self, Particle d) -> bool
812 return _IMP_pmi.Resolution___gt__(self, *args)
815 """__str__(Resolution self) -> std::string"""
816 return _IMP_pmi.Resolution___str__(self)
819 """__repr__(Resolution self) -> std::string"""
820 return _IMP_pmi.Resolution___repr__(self)
822 __swig_destroy__ = _IMP_pmi.delete_Resolution
823 __del__ =
lambda self :
None;
824 Resolution_swigregister = _IMP_pmi.Resolution_swigregister
825 Resolution_swigregister(Resolution)
827 def Resolution_get_is_setup(*args):
829 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
830 Resolution_get_is_setup(_ParticleAdaptor p) -> bool
832 return _IMP_pmi.Resolution_get_is_setup(*args)
834 def Resolution_setup_particle(*args):
836 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
837 Resolution_setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
839 return _IMP_pmi.Resolution_setup_particle(*args)
841 def Resolution_get_resolution_key():
842 """Resolution_get_resolution_key() -> FloatKey"""
843 return _IMP_pmi.Resolution_get_resolution_key()
846 """Proxy of C++ IMP::pmi::Symmetric class"""
847 __swig_setmethods__ = {}
848 for _s
in [
IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
849 __setattr__ =
lambda self, name, value: _swig_setattr(self, Symmetric, name, value)
850 __swig_getmethods__ = {}
851 for _s
in [
IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
852 __getattr__ =
lambda self, name: _swig_getattr(self, Symmetric, name)
853 def get_symmetric(self):
854 """get_symmetric(Symmetric self) -> IMP::Float"""
855 return _IMP_pmi.Symmetric_get_symmetric(self)
857 def set_symmetric(self, *args):
858 """set_symmetric(Symmetric self, IMP::Float d)"""
859 return _IMP_pmi.Symmetric_set_symmetric(self, *args)
861 def __init__(self, *args):
863 __init__(IMP::pmi::Symmetric self) -> Symmetric
864 __init__(IMP::pmi::Symmetric self, Model m, ::IMP::kernel::ParticleIndex id) -> Symmetric
865 __init__(IMP::pmi::Symmetric self, _ParticleAdaptor d) -> Symmetric
867 this = _IMP_pmi.new_Symmetric(*args)
868 try: self.this.append(this)
869 except: self.this = this
870 def get_is_setup(*args):
872 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
873 get_is_setup(_ParticleAdaptor p) -> bool
875 return _IMP_pmi.Symmetric_get_is_setup(*args)
877 if _newclass:get_is_setup = staticmethod(get_is_setup)
878 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
879 def show(self, *args):
881 show(Symmetric self, _ostream out=std::cout)
884 return _IMP_pmi.Symmetric_show(self, *args)
886 def setup_particle(*args):
888 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
889 setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
891 return _IMP_pmi.Symmetric_setup_particle(*args)
893 if _newclass:setup_particle = staticmethod(setup_particle)
894 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
895 def get_symmetric_key():
896 """get_symmetric_key() -> FloatKey"""
897 return _IMP_pmi.Symmetric_get_symmetric_key()
899 if _newclass:get_symmetric_key = staticmethod(get_symmetric_key)
900 __swig_getmethods__[
"get_symmetric_key"] =
lambda x: get_symmetric_key
901 def add_attribute(self, *args):
903 add_attribute(Symmetric self, FloatKey k, IMP::Float v, bool opt)
904 add_attribute(Symmetric self, FloatKey a0, IMP::Float a1)
905 add_attribute(Symmetric self, IntKey a0, IMP::Int a1)
906 add_attribute(Symmetric self, StringKey a0, IMP::String a1)
907 add_attribute(Symmetric self, ParticleIndexKey a0, Particle a1)
908 add_attribute(Symmetric self, ObjectKey a0, Object a1)
910 return _IMP_pmi.Symmetric_add_attribute(self, *args)
912 def get_value(self, *args):
914 get_value(Symmetric self, FloatKey a0) -> IMP::Float
915 get_value(Symmetric self, IntKey a0) -> IMP::Int
916 get_value(Symmetric self, StringKey a0) -> IMP::String
917 get_value(Symmetric self, ParticleIndexKey a0) -> Particle
918 get_value(Symmetric self, ObjectKey a0) -> Object
920 return _IMP_pmi.Symmetric_get_value(self, *args)
922 def set_value(self, *args):
924 set_value(Symmetric self, FloatKey a0, IMP::Float a1)
925 set_value(Symmetric self, IntKey a0, IMP::Int a1)
926 set_value(Symmetric self, StringKey a0, IMP::String a1)
927 set_value(Symmetric self, ParticleIndexKey a0, Particle a1)
928 set_value(Symmetric self, ObjectKey a0, Object a1)
930 return _IMP_pmi.Symmetric_set_value(self, *args)
932 def remove_attribute(self, *args):
934 remove_attribute(Symmetric self, FloatKey a0)
935 remove_attribute(Symmetric self, IntKey a0)
936 remove_attribute(Symmetric self, StringKey a0)
937 remove_attribute(Symmetric self, ParticleIndexKey a0)
938 remove_attribute(Symmetric self, ObjectKey a0)
940 return _IMP_pmi.Symmetric_remove_attribute(self, *args)
942 def has_attribute(self, *args):
944 has_attribute(Symmetric self, FloatKey a0) -> bool
945 has_attribute(Symmetric self, IntKey a0) -> bool
946 has_attribute(Symmetric self, StringKey a0) -> bool
947 has_attribute(Symmetric self, ParticleIndexKey a0) -> bool
948 has_attribute(Symmetric self, ObjectKey a0) -> bool
950 return _IMP_pmi.Symmetric_has_attribute(self, *args)
952 def get_derivative(self, *args):
953 """get_derivative(Symmetric self, FloatKey a0) -> double"""
954 return _IMP_pmi.Symmetric_get_derivative(self, *args)
957 """get_name(Symmetric self) -> std::string"""
958 return _IMP_pmi.Symmetric_get_name(self)
960 def clear_caches(self):
961 """clear_caches(Symmetric self)"""
962 return _IMP_pmi.Symmetric_clear_caches(self)
964 def set_name(self, *args):
965 """set_name(Symmetric self, std::string a0)"""
966 return _IMP_pmi.Symmetric_set_name(self, *args)
969 """set_check_level(Symmetric self, IMP::base::CheckLevel a0)"""
970 return _IMP_pmi.Symmetric_set_check_level(self, *args)
972 def add_to_derivative(self, *args):
973 """add_to_derivative(Symmetric self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
974 return _IMP_pmi.Symmetric_add_to_derivative(self, *args)
976 def set_is_optimized(self, *args):
977 """set_is_optimized(Symmetric self, FloatKey a0, bool a1)"""
978 return _IMP_pmi.Symmetric_set_is_optimized(self, *args)
980 def get_is_optimized(self, *args):
981 """get_is_optimized(Symmetric self, FloatKey a0) -> bool"""
982 return _IMP_pmi.Symmetric_get_is_optimized(self, *args)
985 """get_check_level(Symmetric self) -> IMP::base::CheckLevel"""
986 return _IMP_pmi.Symmetric_get_check_level(self)
988 def __eq__(self, *args):
990 __eq__(Symmetric self, Symmetric o) -> bool
991 __eq__(Symmetric self, Particle d) -> bool
993 return _IMP_pmi.Symmetric___eq__(self, *args)
995 def __ne__(self, *args):
997 __ne__(Symmetric self, Symmetric o) -> bool
998 __ne__(Symmetric self, Particle d) -> bool
1000 return _IMP_pmi.Symmetric___ne__(self, *args)
1002 def __le__(self, *args):
1004 __le__(Symmetric self, Symmetric o) -> bool
1005 __le__(Symmetric self, Particle d) -> bool
1007 return _IMP_pmi.Symmetric___le__(self, *args)
1009 def __lt__(self, *args):
1011 __lt__(Symmetric self, Symmetric o) -> bool
1012 __lt__(Symmetric self, Particle d) -> bool
1014 return _IMP_pmi.Symmetric___lt__(self, *args)
1016 def __ge__(self, *args):
1018 __ge__(Symmetric self, Symmetric o) -> bool
1019 __ge__(Symmetric self, Particle d) -> bool
1021 return _IMP_pmi.Symmetric___ge__(self, *args)
1023 def __gt__(self, *args):
1025 __gt__(Symmetric self, Symmetric o) -> bool
1026 __gt__(Symmetric self, Particle d) -> bool
1028 return _IMP_pmi.Symmetric___gt__(self, *args)
1031 """__str__(Symmetric self) -> std::string"""
1032 return _IMP_pmi.Symmetric___str__(self)
1035 """__repr__(Symmetric self) -> std::string"""
1036 return _IMP_pmi.Symmetric___repr__(self)
1038 __swig_destroy__ = _IMP_pmi.delete_Symmetric
1039 __del__ =
lambda self :
None;
1040 Symmetric_swigregister = _IMP_pmi.Symmetric_swigregister
1041 Symmetric_swigregister(Symmetric)
1043 def Symmetric_get_is_setup(*args):
1045 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1046 Symmetric_get_is_setup(_ParticleAdaptor p) -> bool
1048 return _IMP_pmi.Symmetric_get_is_setup(*args)
1050 def Symmetric_setup_particle(*args):
1052 setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
1053 Symmetric_setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
1055 return _IMP_pmi.Symmetric_setup_particle(*args)
1057 def Symmetric_get_symmetric_key():
1058 """Symmetric_get_symmetric_key() -> FloatKey"""
1059 return _IMP_pmi.Symmetric_get_symmetric_key()
1062 """Proxy of C++ IMP::pmi::SigmoidRestraintSphere class"""
1063 __swig_setmethods__ = {}
1064 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1065 __setattr__ =
lambda self, name, value: _swig_setattr(self, SigmoidRestraintSphere, name, value)
1066 __swig_getmethods__ = {}
1067 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1068 __getattr__ =
lambda self, name: _swig_getattr(self, SigmoidRestraintSphere, name)
1069 def __init__(self, *args):
1071 __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1072 double amplitude, double line_slope_=0, std::string name="SigmoidRestraintSphere%1%") -> SigmoidRestraintSphere
1073 __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1074 double amplitude, double line_slope_=0) -> SigmoidRestraintSphere
1075 __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1076 double amplitude) -> SigmoidRestraintSphere
1078 this = _IMP_pmi.new_SigmoidRestraintSphere(*args)
1079 try: self.this.append(this)
1080 except: self.this = this
1081 def set_amplitude(self, *args):
1082 """set_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1083 return _IMP_pmi.SigmoidRestraintSphere_set_amplitude(self, *args)
1085 def increment_amplitude(self, *args):
1086 """increment_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1087 return _IMP_pmi.SigmoidRestraintSphere_increment_amplitude(self, *args)
1089 def get_amplitude(self):
1090 """get_amplitude(SigmoidRestraintSphere self) -> double"""
1091 return _IMP_pmi.SigmoidRestraintSphere_get_amplitude(self)
1093 def do_get_inputs(self):
1094 """do_get_inputs(SigmoidRestraintSphere self) -> IMP::kernel::ModelObjectsTemp"""
1095 return _IMP_pmi.SigmoidRestraintSphere_do_get_inputs(self)
1097 def get_version_info(self):
1098 """get_version_info(SigmoidRestraintSphere self) -> VersionInfo"""
1099 return _IMP_pmi.SigmoidRestraintSphere_get_version_info(self)
1102 """__str__(SigmoidRestraintSphere self) -> std::string"""
1103 return _IMP_pmi.SigmoidRestraintSphere___str__(self)
1106 """__repr__(SigmoidRestraintSphere self) -> std::string"""
1107 return _IMP_pmi.SigmoidRestraintSphere___repr__(self)
1110 return _object_cast_to_SigmoidRestraintSphere(o)
1111 get_from = staticmethod(get_from)
1113 SigmoidRestraintSphere_swigregister = _IMP_pmi.SigmoidRestraintSphere_swigregister
1114 SigmoidRestraintSphere_swigregister(SigmoidRestraintSphere)
1117 """Proxy of C++ IMP::pmi::TransformMover class"""
1118 __swig_setmethods__ = {}
1120 __setattr__ =
lambda self, name, value: _swig_setattr(self, TransformMover, name, value)
1121 __swig_getmethods__ = {}
1123 __getattr__ =
lambda self, name: _swig_getattr(self, TransformMover, name)
1124 def __init__(self, *args):
1126 __init__(IMP::pmi::TransformMover self, Model m, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1127 __init__(IMP::pmi::TransformMover self, Model m, Vector3D axis, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1129 this = _IMP_pmi.new_TransformMover(*args)
1130 try: self.this.append(this)
1131 except: self.this = this
1132 def add_xyz_particle(self, *args):
1133 """add_xyz_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1134 return _IMP_pmi.TransformMover_add_xyz_particle(self, *args)
1136 def add_rigid_body_particle(self, *args):
1137 """add_rigid_body_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1138 return _IMP_pmi.TransformMover_add_rigid_body_particle(self, *args)
1140 def set_maximum_translation(self, *args):
1141 """set_maximum_translation(TransformMover self, IMP::Float mt)"""
1142 return _IMP_pmi.TransformMover_set_maximum_translation(self, *args)
1144 def set_maximum_rotation(self, *args):
1145 """set_maximum_rotation(TransformMover self, IMP::Float mr)"""
1146 return _IMP_pmi.TransformMover_set_maximum_rotation(self, *args)
1148 def get_maximum_translation(self):
1149 """get_maximum_translation(TransformMover self) -> IMP::Float"""
1150 return _IMP_pmi.TransformMover_get_maximum_translation(self)
1152 def get_maximum_rotation(self):
1153 """get_maximum_rotation(TransformMover self) -> IMP::Float"""
1154 return _IMP_pmi.TransformMover_get_maximum_rotation(self)
1156 def get_version_info(self):
1157 """get_version_info(TransformMover self) -> VersionInfo"""
1158 return _IMP_pmi.TransformMover_get_version_info(self)
1161 """__str__(TransformMover self) -> std::string"""
1162 return _IMP_pmi.TransformMover___str__(self)
1165 """__repr__(TransformMover self) -> std::string"""
1166 return _IMP_pmi.TransformMover___repr__(self)
1169 return _object_cast_to_TransformMover(o)
1170 get_from = staticmethod(get_from)
1172 TransformMover_swigregister = _IMP_pmi.TransformMover_swigregister
1173 TransformMover_swigregister(TransformMover)
1177 """create_elastic_network(IMP::kernel::Particles const & ps, IMP::Float dist_cutoff, IMP::Float strength) -> RestraintSet"""
1178 return _IMP_pmi.create_elastic_network(*args)
1180 def get_module_version():
1181 """get_module_version() -> std::string const"""
1182 return _IMP_pmi.get_module_version()
1185 """get_example_path(std::string fname) -> std::string"""
1186 return _IMP_pmi.get_example_path(*args)
1189 """get_data_path(std::string fname) -> std::string"""
1190 return _IMP_pmi.get_data_path(*args)
1191 import _version_check
1192 _version_check.check_version(get_module_version())
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.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Composable functors to implement scores via compile-time composition.
RestraintSet * create_elastic_network(const Particles &ps, Float dist_cutoff, Float strength)
Create an elastic network restraint set.
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.
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.