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_misc', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_misc', fp, pathname, description)
28 _IMP_misc = 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_MISC_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_MISC_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_MISC_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_MISC_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
91 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
95 incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
96 incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
98 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
102 decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
103 decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
105 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
113 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, *args)
116 """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
117 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
120 """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
121 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
124 """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
125 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
128 """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
129 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
133 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
137 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
141 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
145 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
149 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
153 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
158 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
164 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
171 IMP_DEBUG = _IMP_misc.IMP_DEBUG
172 IMP_RELEASE = _IMP_misc.IMP_RELEASE
173 IMP_SILENT = _IMP_misc.IMP_SILENT
174 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
175 IMP_TERSE = _IMP_misc.IMP_TERSE
176 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
177 IMP_MEMORY = _IMP_misc.IMP_MEMORY
178 IMP_NONE = _IMP_misc.IMP_NONE
179 IMP_USAGE = _IMP_misc.IMP_USAGE
180 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_misc.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_misc.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_misc.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_misc.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_misc.DEFAULT_CHECK
216 NONE = _IMP_misc.NONE
217 USAGE = _IMP_misc.USAGE
218 USAGE_AND_INTERNAL = _IMP_misc.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_misc.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_misc.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_misc._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_misc._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_misc.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_misc.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_misc.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
285 IMP_CORE_HAS_IMP_BASE = _IMP_misc.IMP_CORE_HAS_IMP_BASE
286 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
287 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
288 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
289 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
290 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
291 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
292 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
293 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
295 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
296 IMP_CONTAINER_HAS_IMP_BASE = _IMP_misc.IMP_CONTAINER_HAS_IMP_BASE
297 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
298 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
299 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
300 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
301 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
302 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
303 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
304 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
305 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
306 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
308 IMP_ATOM_HAS_IMP_BASE = _IMP_misc.IMP_ATOM_HAS_IMP_BASE
309 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
310 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
311 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
312 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
313 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
314 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
315 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
316 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
317 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
318 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
319 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
320 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
322 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
323 IMP_MISC_HAS_IMP_BASE = _IMP_misc.IMP_MISC_HAS_IMP_BASE
324 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
325 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
326 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
327 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
328 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
329 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
330 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
331 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
332 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
333 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
334 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
335 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
336 _object_types.append(
"WormLikeChain")
339 def _object_cast_to_WormLikeChain(*args):
340 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
341 return _IMP_misc._object_cast_to_WormLikeChain(*args)
342 _object_types.append(
"StateAdaptor")
345 def _object_cast_to_StateAdaptor(*args):
346 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
347 return _IMP_misc._object_cast_to_StateAdaptor(*args)
348 _object_types.append(
"CommonEndpointPairFilter")
351 def _object_cast_to_CommonEndpointPairFilter(*args):
352 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
353 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(*args)
354 _object_types.append(
"LogPairScore")
357 def _object_cast_to_LogPairScore(*args):
358 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
359 return _IMP_misc._object_cast_to_LogPairScore(*args)
360 _object_types.append(
"LowestRefinedPairScore")
363 def _object_cast_to_LowestRefinedPairScore(*args):
364 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
365 return _IMP_misc._object_cast_to_LowestRefinedPairScore(*args)
366 _object_types.append(
"SoftCylinderPairScore")
369 def _object_cast_to_SoftCylinderPairScore(*args):
370 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
371 return _IMP_misc._object_cast_to_SoftCylinderPairScore(*args)
372 _object_types.append(
"DecayPairContainerOptimizerState")
375 def _object_cast_to_DecayPairContainerOptimizerState(*args):
376 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
377 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(*args)
378 def CustomXYZRs(l=[]):
379 return [CustomXYZR(x)
for x
in l]
380 _plural_types.append(
"CustomXYZRs")
382 _value_types.append(
"CustomXYZR")
385 """Proxy of C++ IMP::misc::WormLikeChain class"""
386 __swig_setmethods__ = {}
388 __setattr__ =
lambda self, name, value: _swig_setattr(self, WormLikeChain, name, value)
389 __swig_getmethods__ = {}
391 __getattr__ =
lambda self, name: _swig_getattr(self, WormLikeChain, name)
392 def __init__(self, *args):
393 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
394 this = _IMP_misc.new_WormLikeChain(*args)
395 try: self.this.append(this)
396 except: self.this = this
397 def get_version_info(self):
398 """get_version_info(WormLikeChain self) -> VersionInfo"""
399 return _IMP_misc.WormLikeChain_get_version_info(self)
401 __swig_destroy__ = _IMP_misc.delete_WormLikeChain
402 __del__ =
lambda self :
None;
403 def do_show(self, *args):
404 """do_show(WormLikeChain self, _ostream out)"""
405 return _IMP_misc.WormLikeChain_do_show(self, *args)
408 """__str__(WormLikeChain self) -> std::string"""
409 return _IMP_misc.WormLikeChain___str__(self)
412 """__repr__(WormLikeChain self) -> std::string"""
413 return _IMP_misc.WormLikeChain___repr__(self)
416 return _object_cast_to_WormLikeChain(o)
417 get_from = staticmethod(get_from)
419 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
420 WormLikeChain_swigregister(WormLikeChain)
423 """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
424 __swig_setmethods__ = {}
425 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
426 __setattr__ =
lambda self, name, value: _swig_setattr(self, LowestRefinedPairScore, name, value)
427 __swig_getmethods__ = {}
428 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
429 __getattr__ =
lambda self, name: _swig_getattr(self, LowestRefinedPairScore, name)
430 def __init__(self, *args):
431 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
432 this = _IMP_misc.new_LowestRefinedPairScore(*args)
433 try: self.this.append(this)
434 except: self.this = this
435 def do_get_inputs(self, *args):
436 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
437 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, *args)
439 def get_version_info(self):
440 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
441 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
443 __swig_destroy__ = _IMP_misc.delete_LowestRefinedPairScore
444 __del__ =
lambda self :
None;
446 """__str__(LowestRefinedPairScore self) -> std::string"""
447 return _IMP_misc.LowestRefinedPairScore___str__(self)
450 """__repr__(LowestRefinedPairScore self) -> std::string"""
451 return _IMP_misc.LowestRefinedPairScore___repr__(self)
454 return _object_cast_to_LowestRefinedPairScore(o)
455 get_from = staticmethod(get_from)
457 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
458 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
461 """Proxy of C++ IMP::misc::LogPairScore class"""
462 __swig_setmethods__ = {}
463 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
464 __setattr__ =
lambda self, name, value: _swig_setattr(self, LogPairScore, name, value)
465 __swig_getmethods__ = {}
466 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
467 __getattr__ =
lambda self, name: _swig_getattr(self, LogPairScore, name)
469 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
470 this = _IMP_misc.new_LogPairScore()
471 try: self.this.append(this)
472 except: self.this = this
473 def do_get_inputs(self, *args):
474 """do_get_inputs(LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
475 return _IMP_misc.LogPairScore_do_get_inputs(self, *args)
477 def get_version_info(self):
478 """get_version_info(LogPairScore self) -> VersionInfo"""
479 return _IMP_misc.LogPairScore_get_version_info(self)
481 __swig_destroy__ = _IMP_misc.delete_LogPairScore
482 __del__ =
lambda self :
None;
483 def get_particle_pairs(self):
484 """get_particle_pairs(LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
485 return _IMP_misc.LogPairScore_get_particle_pairs(self)
488 """clear(LogPairScore self)"""
489 return _IMP_misc.LogPairScore_clear(self)
491 def get_contains(self, *args):
492 """get_contains(LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
493 return _IMP_misc.LogPairScore_get_contains(self, *args)
496 """__str__(LogPairScore self) -> std::string"""
497 return _IMP_misc.LogPairScore___str__(self)
500 """__repr__(LogPairScore self) -> std::string"""
501 return _IMP_misc.LogPairScore___repr__(self)
504 return _object_cast_to_LogPairScore(o)
505 get_from = staticmethod(get_from)
507 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
508 LogPairScore_swigregister(LogPairScore)
511 """Proxy of C++ IMP::misc::StateAdaptor class"""
512 __swig_setmethods__ = {}
514 __setattr__ =
lambda self, name, value: _swig_setattr(self, StateAdaptor, name, value)
515 __swig_getmethods__ = {}
517 __getattr__ =
lambda self, name: _swig_getattr(self, StateAdaptor, name)
518 def __init__(self, *args):
519 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
520 this = _IMP_misc.new_StateAdaptor(*args)
521 try: self.this.append(this)
522 except: self.this = this
523 def do_before_evaluate(self):
524 """do_before_evaluate(StateAdaptor self)"""
525 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
527 def do_after_evaluate(self, *args):
528 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
529 return _IMP_misc.StateAdaptor_do_after_evaluate(self, *args)
531 def do_get_inputs(self):
532 """do_get_inputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
533 return _IMP_misc.StateAdaptor_do_get_inputs(self)
535 def do_get_outputs(self):
536 """do_get_outputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
537 return _IMP_misc.StateAdaptor_do_get_outputs(self)
539 def get_version_info(self):
540 """get_version_info(StateAdaptor self) -> VersionInfo"""
541 return _IMP_misc.StateAdaptor_get_version_info(self)
543 __swig_destroy__ = _IMP_misc.delete_StateAdaptor
544 __del__ =
lambda self :
None;
546 """__str__(StateAdaptor self) -> std::string"""
547 return _IMP_misc.StateAdaptor___str__(self)
550 """__repr__(StateAdaptor self) -> std::string"""
551 return _IMP_misc.StateAdaptor___repr__(self)
554 return _object_cast_to_StateAdaptor(o)
555 get_from = staticmethod(get_from)
557 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
558 StateAdaptor_swigregister(StateAdaptor)
561 """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
562 __swig_setmethods__ = {}
564 __setattr__ =
lambda self, name, value: _swig_setattr(self, CommonEndpointPairFilter, name, value)
565 __swig_getmethods__ = {}
567 __getattr__ =
lambda self, name: _swig_getattr(self, CommonEndpointPairFilter, name)
569 """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
570 this = _IMP_misc.new_CommonEndpointPairFilter()
571 try: self.this.append(this)
572 except: self.this = this
573 def do_get_inputs(self, *args):
574 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
575 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, *args)
577 def get_value(self, *args):
579 get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePair const & a) -> int
580 get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
582 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
584 def get_value_index(self, *args):
586 get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPair const & p) -> int
587 get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
589 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
591 def get_version_info(self):
592 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
593 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
595 __swig_destroy__ = _IMP_misc.delete_CommonEndpointPairFilter
596 __del__ =
lambda self :
None;
598 """__str__(CommonEndpointPairFilter self) -> std::string"""
599 return _IMP_misc.CommonEndpointPairFilter___str__(self)
602 """__repr__(CommonEndpointPairFilter self) -> std::string"""
603 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
606 return _object_cast_to_CommonEndpointPairFilter(o)
607 get_from = staticmethod(get_from)
609 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
610 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
613 """Proxy of C++ IMP::misc::CustomXYZR class"""
614 __swig_setmethods__ = {}
615 for _s
in [
IMP.core.XYZ]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
616 __setattr__ =
lambda self, name, value: _swig_setattr(self, CustomXYZR, name, value)
617 __swig_getmethods__ = {}
618 for _s
in [
IMP.core.XYZ]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
619 __getattr__ =
lambda self, name: _swig_getattr(self, CustomXYZR, name)
620 def get_decorator_traits(self):
621 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
622 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
624 def get_default_decorator_traits():
625 """get_default_decorator_traits() -> FloatKey"""
626 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
628 if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
629 __swig_getmethods__[
"get_default_decorator_traits"] =
lambda x: get_default_decorator_traits
630 def __init__(self, *args):
632 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
633 __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
634 __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id) -> CustomXYZR
635 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
636 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
638 this = _IMP_misc.new_CustomXYZR(*args)
639 try: self.this.append(this)
640 except: self.this = this
641 def decorate_particle(*args):
643 decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
644 decorate_particle(Particle p) -> CustomXYZR
646 return _IMP_misc.CustomXYZR_decorate_particle(*args)
648 if _newclass:decorate_particle = staticmethod(decorate_particle)
649 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
650 def particle_is_instance(*args):
652 particle_is_instance(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
653 particle_is_instance(Particle p) -> bool
654 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
655 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
657 return _IMP_misc.CustomXYZR_particle_is_instance(*args)
659 if _newclass:particle_is_instance = staticmethod(particle_is_instance)
660 __swig_getmethods__[
"particle_is_instance"] =
lambda x: particle_is_instance
661 def show(self, *args):
663 show(CustomXYZR self, _ostream out=std::cout)
664 show(CustomXYZR self)
666 return _IMP_misc.CustomXYZR_show(self, *args)
668 def setup_particle(*args):
670 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
671 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
672 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
673 setup_particle(_ParticleAdaptor d) -> CustomXYZR
674 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
675 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
676 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
677 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
678 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
679 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
680 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
681 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
683 return _IMP_misc.CustomXYZR_setup_particle(*args)
685 if _newclass:setup_particle = staticmethod(setup_particle)
686 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
687 def get_is_setup(*args):
689 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
690 get_is_setup(_ParticleAdaptor p) -> bool
691 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
692 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
694 return _IMP_misc.CustomXYZR_get_is_setup(*args)
696 if _newclass:get_is_setup = staticmethod(get_is_setup)
697 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
698 def get_radius(self):
699 """get_radius(CustomXYZR self) -> IMP::Float"""
700 return _IMP_misc.CustomXYZR_get_radius(self)
702 def set_radius(self, *args):
703 """set_radius(CustomXYZR self, IMP::Float t)"""
704 return _IMP_misc.CustomXYZR_set_radius(self, *args)
706 def get_sphere(self):
707 """get_sphere(CustomXYZR self) -> Sphere3D"""
708 return _IMP_misc.CustomXYZR_get_sphere(self)
710 def set_sphere(self, *args):
711 """set_sphere(CustomXYZR self, Sphere3D s)"""
712 return _IMP_misc.CustomXYZR_set_sphere(self, *args)
714 def get_default_radius_key():
715 """get_default_radius_key() -> FloatKey"""
716 return _IMP_misc.CustomXYZR_get_default_radius_key()
718 if _newclass:get_default_radius_key = staticmethod(get_default_radius_key)
719 __swig_getmethods__[
"get_default_radius_key"] =
lambda x: get_default_radius_key
720 def add_to_radius_derivative(self, *args):
721 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
722 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
724 def get_traits(self):
725 """get_traits(CustomXYZR self) -> FloatKey"""
726 return _IMP_misc.CustomXYZR_get_traits(self)
728 def add_attribute(self, *args):
730 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
731 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
732 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
733 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
734 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
735 add_attribute(CustomXYZR self, ObjectKey a0, IMP::Object * a1)
737 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
739 def get_value(self, *args):
741 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
742 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
743 get_value(CustomXYZR self, StringKey a0) -> IMP::String
744 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
745 get_value(CustomXYZR self, ObjectKey a0) -> IMP::Object *
747 return _IMP_misc.CustomXYZR_get_value(self, *args)
749 def set_value(self, *args):
751 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
752 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
753 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
754 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
755 set_value(CustomXYZR self, ObjectKey a0, IMP::Object * a1)
757 return _IMP_misc.CustomXYZR_set_value(self, *args)
759 def remove_attribute(self, *args):
761 remove_attribute(CustomXYZR self, FloatKey a0)
762 remove_attribute(CustomXYZR self, IntKey a0)
763 remove_attribute(CustomXYZR self, StringKey a0)
764 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
765 remove_attribute(CustomXYZR self, ObjectKey a0)
767 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
769 def has_attribute(self, *args):
771 has_attribute(CustomXYZR self, FloatKey a0) -> bool
772 has_attribute(CustomXYZR self, IntKey a0) -> bool
773 has_attribute(CustomXYZR self, StringKey a0) -> bool
774 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
775 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
777 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
779 def get_derivative(self, *args):
780 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
781 return _IMP_misc.CustomXYZR_get_derivative(self, *args)
784 """get_name(CustomXYZR self) -> std::string"""
785 return _IMP_misc.CustomXYZR_get_name(self)
787 def clear_caches(self):
788 """clear_caches(CustomXYZR self)"""
789 return _IMP_misc.CustomXYZR_clear_caches(self)
791 def set_name(self, *args):
792 """set_name(CustomXYZR self, std::string a0)"""
793 return _IMP_misc.CustomXYZR_set_name(self, *args)
796 """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
797 return _IMP_misc.CustomXYZR_set_check_level(self, *args)
799 def add_to_derivative(self, *args):
800 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
801 return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
803 def set_is_optimized(self, *args):
804 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
805 return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
807 def get_is_optimized(self, *args):
808 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
809 return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
812 """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
813 return _IMP_misc.CustomXYZR_get_check_level(self)
815 def __eq__(self, *args):
817 __eq__(CustomXYZR self, CustomXYZR o) -> bool
818 __eq__(CustomXYZR self, Particle d) -> bool
820 return _IMP_misc.CustomXYZR___eq__(self, *args)
822 def __ne__(self, *args):
824 __ne__(CustomXYZR self, CustomXYZR o) -> bool
825 __ne__(CustomXYZR self, Particle d) -> bool
827 return _IMP_misc.CustomXYZR___ne__(self, *args)
829 def __le__(self, *args):
831 __le__(CustomXYZR self, CustomXYZR o) -> bool
832 __le__(CustomXYZR self, Particle d) -> bool
834 return _IMP_misc.CustomXYZR___le__(self, *args)
836 def __lt__(self, *args):
838 __lt__(CustomXYZR self, CustomXYZR o) -> bool
839 __lt__(CustomXYZR self, Particle d) -> bool
841 return _IMP_misc.CustomXYZR___lt__(self, *args)
843 def __ge__(self, *args):
845 __ge__(CustomXYZR self, CustomXYZR o) -> bool
846 __ge__(CustomXYZR self, Particle d) -> bool
848 return _IMP_misc.CustomXYZR___ge__(self, *args)
850 def __gt__(self, *args):
852 __gt__(CustomXYZR self, CustomXYZR o) -> bool
853 __gt__(CustomXYZR self, Particle d) -> bool
855 return _IMP_misc.CustomXYZR___gt__(self, *args)
858 """__str__(CustomXYZR self) -> std::string"""
859 return _IMP_misc.CustomXYZR___str__(self)
862 """__repr__(CustomXYZR self) -> std::string"""
863 return _IMP_misc.CustomXYZR___repr__(self)
865 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
866 __del__ =
lambda self :
None;
867 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
868 CustomXYZR_swigregister(CustomXYZR)
870 def CustomXYZR_get_default_decorator_traits():
871 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
872 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
874 def CustomXYZR_decorate_particle(*args):
876 decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
877 CustomXYZR_decorate_particle(Particle p) -> CustomXYZR
879 return _IMP_misc.CustomXYZR_decorate_particle(*args)
881 def CustomXYZR_particle_is_instance(*args):
883 particle_is_instance(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
884 particle_is_instance(Particle p) -> bool
885 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
886 CustomXYZR_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
888 return _IMP_misc.CustomXYZR_particle_is_instance(*args)
890 def CustomXYZR_setup_particle(*args):
892 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
893 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
894 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
895 setup_particle(_ParticleAdaptor d) -> CustomXYZR
896 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
897 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
898 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
899 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
900 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
901 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
902 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
903 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
905 return _IMP_misc.CustomXYZR_setup_particle(*args)
907 def CustomXYZR_get_is_setup(*args):
909 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
910 get_is_setup(_ParticleAdaptor p) -> bool
911 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
912 CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
914 return _IMP_misc.CustomXYZR_get_is_setup(*args)
916 def CustomXYZR_get_default_radius_key():
917 """CustomXYZR_get_default_radius_key() -> FloatKey"""
918 return _IMP_misc.CustomXYZR_get_default_radius_key()
921 def __lshift__(*args):
922 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
923 return _IMP_misc.__lshift__(*args)
926 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
927 return _IMP_misc.get_distance(*args)
930 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
931 return _IMP_misc.get_sphere_d_geometry(*args)
934 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
935 return _IMP_misc.set_sphere_d_geometry(*args)
937 """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
938 __swig_setmethods__ = {}
939 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
940 __setattr__ =
lambda self, name, value: _swig_setattr(self, SoftCylinderPairScore, name, value)
941 __swig_getmethods__ = {}
942 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
943 __getattr__ =
lambda self, name: _swig_getattr(self, SoftCylinderPairScore, name)
944 def __init__(self, *args):
945 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
946 this = _IMP_misc.new_SoftCylinderPairScore(*args)
947 try: self.this.append(this)
948 except: self.this = this
949 def do_get_inputs(self, *args):
950 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
951 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
953 def get_version_info(self):
954 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
955 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
957 __swig_destroy__ = _IMP_misc.delete_SoftCylinderPairScore
958 __del__ =
lambda self :
None;
960 """__str__(SoftCylinderPairScore self) -> std::string"""
961 return _IMP_misc.SoftCylinderPairScore___str__(self)
964 """__repr__(SoftCylinderPairScore self) -> std::string"""
965 return _IMP_misc.SoftCylinderPairScore___repr__(self)
968 return _object_cast_to_SoftCylinderPairScore(o)
969 get_from = staticmethod(get_from)
971 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
972 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
975 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
976 __swig_setmethods__ = {}
978 __setattr__ =
lambda self, name, value: _swig_setattr(self, DecayPairContainerOptimizerState, name, value)
979 __swig_getmethods__ = {}
981 __getattr__ =
lambda self, name: _swig_getattr(self, DecayPairContainerOptimizerState, name)
982 def __init__(self, *args):
984 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
985 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
987 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
988 try: self.this.append(this)
989 except: self.this = this
990 def get_output_container(self):
991 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
992 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
994 def do_update(self, *args):
995 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
996 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
998 def get_version_info(self):
999 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1000 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1002 __swig_destroy__ = _IMP_misc.delete_DecayPairContainerOptimizerState
1003 __del__ =
lambda self :
None;
1005 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1006 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1009 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1010 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1013 return _object_cast_to_DecayPairContainerOptimizerState(o)
1014 get_from = staticmethod(get_from)
1016 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1017 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1020 def get_module_version():
1021 """get_module_version() -> std::string const"""
1022 return _IMP_misc.get_module_version()
1025 """get_example_path(std::string fname) -> std::string"""
1026 return _IMP_misc.get_example_path(*args)
1029 """get_data_path(std::string fname) -> std::string"""
1030 return _IMP_misc.get_data_path(*args)
1031 import _version_check
1032 _version_check.check_version(get_module_version())
See IMP.container for more information.
Shared optimizer state that is invoked upon commitment of new coordinates.
See IMP.cgal for more information.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Abstract single variable functor class for score functions.
ScoreStates maintian invariants in the Model.
See IMP.score_functor for more information.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
See IMP.kernel for more information.
void set_sphere_d_geometry(kernel::Particle *p, const algebra::Sphere3D &v)
A decorator for a particle with x,y,z coordinates.
const algebra::Sphere3D get_sphere_d_geometry(kernel::Particle *p)
Abstract predicate function.
See IMP.core for more information.
See IMP.algebra for more information.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
See IMP.display for more information.
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.