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 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
286 IMP_CORE_HAS_IMP_BASE = _IMP_misc.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_misc.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
311 IMP_ATOM_HAS_IMP_BASE = _IMP_misc.IMP_ATOM_HAS_IMP_BASE
312 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
313 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
314 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
315 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
316 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
317 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
318 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
319 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
320 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
321 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
322 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
323 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
324 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
326 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
327 IMP_MISC_HAS_IMP_BASE = _IMP_misc.IMP_MISC_HAS_IMP_BASE
328 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
329 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
330 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
331 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
332 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
333 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
334 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
335 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
336 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
337 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
338 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
339 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
340 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
341 _object_types.append(
"WormLikeChain")
344 def _object_cast_to_WormLikeChain(*args):
345 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
346 return _IMP_misc._object_cast_to_WormLikeChain(*args)
347 _object_types.append(
"StateAdaptor")
350 def _object_cast_to_StateAdaptor(*args):
351 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
352 return _IMP_misc._object_cast_to_StateAdaptor(*args)
353 _object_types.append(
"CommonEndpointPairFilter")
356 def _object_cast_to_CommonEndpointPairFilter(*args):
357 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
358 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(*args)
359 _object_types.append(
"LogPairScore")
362 def _object_cast_to_LogPairScore(*args):
363 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
364 return _IMP_misc._object_cast_to_LogPairScore(*args)
365 _object_types.append(
"LowestRefinedPairScore")
368 def _object_cast_to_LowestRefinedPairScore(*args):
369 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
370 return _IMP_misc._object_cast_to_LowestRefinedPairScore(*args)
371 _object_types.append(
"SoftCylinderPairScore")
374 def _object_cast_to_SoftCylinderPairScore(*args):
375 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
376 return _IMP_misc._object_cast_to_SoftCylinderPairScore(*args)
377 _object_types.append(
"DecayPairContainerOptimizerState")
380 def _object_cast_to_DecayPairContainerOptimizerState(*args):
381 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
382 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(*args)
383 def CustomXYZRs(l=[]):
384 return [CustomXYZR(x)
for x
in l]
385 _plural_types.append(
"CustomXYZRs")
387 _value_types.append(
"CustomXYZR")
390 """Proxy of C++ IMP::misc::WormLikeChain class"""
391 __swig_setmethods__ = {}
393 __setattr__ =
lambda self, name, value: _swig_setattr(self, WormLikeChain, name, value)
394 __swig_getmethods__ = {}
396 __getattr__ =
lambda self, name: _swig_getattr(self, WormLikeChain, name)
397 def __init__(self, *args):
398 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
399 this = _IMP_misc.new_WormLikeChain(*args)
400 try: self.this.append(this)
401 except: self.this = this
402 def get_version_info(self):
403 """get_version_info(WormLikeChain self) -> VersionInfo"""
404 return _IMP_misc.WormLikeChain_get_version_info(self)
406 def do_show(self, *args):
407 """do_show(WormLikeChain self, _ostream out)"""
408 return _IMP_misc.WormLikeChain_do_show(self, *args)
411 """__str__(WormLikeChain self) -> std::string"""
412 return _IMP_misc.WormLikeChain___str__(self)
415 """__repr__(WormLikeChain self) -> std::string"""
416 return _IMP_misc.WormLikeChain___repr__(self)
419 return _object_cast_to_WormLikeChain(o)
420 get_from = staticmethod(get_from)
422 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
423 WormLikeChain_swigregister(WormLikeChain)
426 """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
427 __swig_setmethods__ = {}
428 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
429 __setattr__ =
lambda self, name, value: _swig_setattr(self, LowestRefinedPairScore, name, value)
430 __swig_getmethods__ = {}
431 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
432 __getattr__ =
lambda self, name: _swig_getattr(self, LowestRefinedPairScore, name)
433 def __init__(self, *args):
434 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
435 this = _IMP_misc.new_LowestRefinedPairScore(*args)
436 try: self.this.append(this)
437 except: self.this = this
438 def do_get_inputs(self, *args):
439 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
440 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, *args)
442 def get_version_info(self):
443 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
444 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
447 """__str__(LowestRefinedPairScore self) -> std::string"""
448 return _IMP_misc.LowestRefinedPairScore___str__(self)
451 """__repr__(LowestRefinedPairScore self) -> std::string"""
452 return _IMP_misc.LowestRefinedPairScore___repr__(self)
455 return _object_cast_to_LowestRefinedPairScore(o)
456 get_from = staticmethod(get_from)
458 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
459 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
462 """Proxy of C++ IMP::misc::LogPairScore class"""
463 __swig_setmethods__ = {}
464 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
465 __setattr__ =
lambda self, name, value: _swig_setattr(self, LogPairScore, name, value)
466 __swig_getmethods__ = {}
467 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
468 __getattr__ =
lambda self, name: _swig_getattr(self, LogPairScore, name)
470 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
471 this = _IMP_misc.new_LogPairScore()
472 try: self.this.append(this)
473 except: self.this = this
474 def do_get_inputs(self, *args):
475 """do_get_inputs(LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
476 return _IMP_misc.LogPairScore_do_get_inputs(self, *args)
478 def get_version_info(self):
479 """get_version_info(LogPairScore self) -> VersionInfo"""
480 return _IMP_misc.LogPairScore_get_version_info(self)
482 def get_particle_pairs(self):
483 """get_particle_pairs(LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
484 return _IMP_misc.LogPairScore_get_particle_pairs(self)
487 """clear(LogPairScore self)"""
488 return _IMP_misc.LogPairScore_clear(self)
490 def get_contains(self, *args):
491 """get_contains(LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
492 return _IMP_misc.LogPairScore_get_contains(self, *args)
495 """__str__(LogPairScore self) -> std::string"""
496 return _IMP_misc.LogPairScore___str__(self)
499 """__repr__(LogPairScore self) -> std::string"""
500 return _IMP_misc.LogPairScore___repr__(self)
503 return _object_cast_to_LogPairScore(o)
504 get_from = staticmethod(get_from)
506 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
507 LogPairScore_swigregister(LogPairScore)
510 """Proxy of C++ IMP::misc::StateAdaptor class"""
511 __swig_setmethods__ = {}
513 __setattr__ =
lambda self, name, value: _swig_setattr(self, StateAdaptor, name, value)
514 __swig_getmethods__ = {}
516 __getattr__ =
lambda self, name: _swig_getattr(self, StateAdaptor, name)
517 def __init__(self, *args):
518 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
519 this = _IMP_misc.new_StateAdaptor(*args)
520 try: self.this.append(this)
521 except: self.this = this
522 def do_before_evaluate(self):
523 """do_before_evaluate(StateAdaptor self)"""
524 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
526 def do_after_evaluate(self, *args):
527 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
528 return _IMP_misc.StateAdaptor_do_after_evaluate(self, *args)
530 def do_get_inputs(self):
531 """do_get_inputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
532 return _IMP_misc.StateAdaptor_do_get_inputs(self)
534 def do_get_outputs(self):
535 """do_get_outputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
536 return _IMP_misc.StateAdaptor_do_get_outputs(self)
538 def get_version_info(self):
539 """get_version_info(StateAdaptor self) -> VersionInfo"""
540 return _IMP_misc.StateAdaptor_get_version_info(self)
543 """__str__(StateAdaptor self) -> std::string"""
544 return _IMP_misc.StateAdaptor___str__(self)
547 """__repr__(StateAdaptor self) -> std::string"""
548 return _IMP_misc.StateAdaptor___repr__(self)
551 return _object_cast_to_StateAdaptor(o)
552 get_from = staticmethod(get_from)
554 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
555 StateAdaptor_swigregister(StateAdaptor)
558 """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
559 __swig_setmethods__ = {}
561 __setattr__ =
lambda self, name, value: _swig_setattr(self, CommonEndpointPairFilter, name, value)
562 __swig_getmethods__ = {}
564 __getattr__ =
lambda self, name: _swig_getattr(self, CommonEndpointPairFilter, name)
566 """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
567 this = _IMP_misc.new_CommonEndpointPairFilter()
568 try: self.this.append(this)
569 except: self.this = this
570 def do_get_inputs(self, *args):
571 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
572 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, *args)
574 def get_value(self, *args):
576 get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePair const & a) -> int
577 get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
579 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
581 def get_value_index(self, *args):
583 get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPair const & p) -> int
584 get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
586 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
588 def get_version_info(self):
589 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
590 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
593 """__str__(CommonEndpointPairFilter self) -> std::string"""
594 return _IMP_misc.CommonEndpointPairFilter___str__(self)
597 """__repr__(CommonEndpointPairFilter self) -> std::string"""
598 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
601 return _object_cast_to_CommonEndpointPairFilter(o)
602 get_from = staticmethod(get_from)
604 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
605 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
608 """Proxy of C++ IMP::misc::CustomXYZR class"""
609 __swig_setmethods__ = {}
610 for _s
in [
IMP.core.XYZ]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
611 __setattr__ =
lambda self, name, value: _swig_setattr(self, CustomXYZR, name, value)
612 __swig_getmethods__ = {}
613 for _s
in [
IMP.core.XYZ]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
614 __getattr__ =
lambda self, name: _swig_getattr(self, CustomXYZR, name)
615 def get_decorator_traits(self):
616 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
617 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
619 def get_default_decorator_traits():
620 """get_default_decorator_traits() -> FloatKey"""
621 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
623 if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
624 __swig_getmethods__[
"get_default_decorator_traits"] =
lambda x: get_default_decorator_traits
625 def __init__(self, *args):
627 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
628 __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
629 __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id) -> CustomXYZR
630 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
631 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
633 this = _IMP_misc.new_CustomXYZR(*args)
634 try: self.this.append(this)
635 except: self.this = this
636 def decorate_particle(*args):
638 decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
639 decorate_particle(Particle p) -> CustomXYZR
641 return _IMP_misc.CustomXYZR_decorate_particle(*args)
643 if _newclass:decorate_particle = staticmethod(decorate_particle)
644 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
645 def show(self, *args):
647 show(CustomXYZR self, _ostream out=std::cout)
648 show(CustomXYZR self)
650 return _IMP_misc.CustomXYZR_show(self, *args)
652 def setup_particle(*args):
654 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
655 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
656 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
657 setup_particle(_ParticleAdaptor d) -> CustomXYZR
658 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
659 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
660 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
661 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
662 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
663 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
664 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
665 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
667 return _IMP_misc.CustomXYZR_setup_particle(*args)
669 if _newclass:setup_particle = staticmethod(setup_particle)
670 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
671 def get_is_setup(*args):
673 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
674 get_is_setup(_ParticleAdaptor p) -> bool
675 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
676 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
678 return _IMP_misc.CustomXYZR_get_is_setup(*args)
680 if _newclass:get_is_setup = staticmethod(get_is_setup)
681 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
682 def get_radius(self):
683 """get_radius(CustomXYZR self) -> IMP::Float"""
684 return _IMP_misc.CustomXYZR_get_radius(self)
686 def set_radius(self, *args):
687 """set_radius(CustomXYZR self, IMP::Float t)"""
688 return _IMP_misc.CustomXYZR_set_radius(self, *args)
690 def get_sphere(self):
691 """get_sphere(CustomXYZR self) -> Sphere3D"""
692 return _IMP_misc.CustomXYZR_get_sphere(self)
694 def set_sphere(self, *args):
695 """set_sphere(CustomXYZR self, Sphere3D s)"""
696 return _IMP_misc.CustomXYZR_set_sphere(self, *args)
698 def get_default_radius_key():
699 """get_default_radius_key() -> FloatKey"""
700 return _IMP_misc.CustomXYZR_get_default_radius_key()
702 if _newclass:get_default_radius_key = staticmethod(get_default_radius_key)
703 __swig_getmethods__[
"get_default_radius_key"] =
lambda x: get_default_radius_key
704 def add_to_radius_derivative(self, *args):
705 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
706 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
708 def get_traits(self):
709 """get_traits(CustomXYZR self) -> FloatKey"""
710 return _IMP_misc.CustomXYZR_get_traits(self)
712 def add_attribute(self, *args):
714 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
715 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
716 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
717 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
718 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
719 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
721 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
723 def get_value(self, *args):
725 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
726 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
727 get_value(CustomXYZR self, StringKey a0) -> IMP::String
728 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
729 get_value(CustomXYZR self, ObjectKey a0) -> Object
731 return _IMP_misc.CustomXYZR_get_value(self, *args)
733 def set_value(self, *args):
735 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
736 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
737 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
738 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
739 set_value(CustomXYZR self, ObjectKey a0, Object a1)
741 return _IMP_misc.CustomXYZR_set_value(self, *args)
743 def remove_attribute(self, *args):
745 remove_attribute(CustomXYZR self, FloatKey a0)
746 remove_attribute(CustomXYZR self, IntKey a0)
747 remove_attribute(CustomXYZR self, StringKey a0)
748 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
749 remove_attribute(CustomXYZR self, ObjectKey a0)
751 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
753 def has_attribute(self, *args):
755 has_attribute(CustomXYZR self, FloatKey a0) -> bool
756 has_attribute(CustomXYZR self, IntKey a0) -> bool
757 has_attribute(CustomXYZR self, StringKey a0) -> bool
758 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
759 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
761 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
763 def get_derivative(self, *args):
764 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
765 return _IMP_misc.CustomXYZR_get_derivative(self, *args)
768 """get_name(CustomXYZR self) -> std::string"""
769 return _IMP_misc.CustomXYZR_get_name(self)
771 def clear_caches(self):
772 """clear_caches(CustomXYZR self)"""
773 return _IMP_misc.CustomXYZR_clear_caches(self)
775 def set_name(self, *args):
776 """set_name(CustomXYZR self, std::string a0)"""
777 return _IMP_misc.CustomXYZR_set_name(self, *args)
780 """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
781 return _IMP_misc.CustomXYZR_set_check_level(self, *args)
783 def add_to_derivative(self, *args):
784 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
785 return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
787 def set_is_optimized(self, *args):
788 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
789 return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
791 def get_is_optimized(self, *args):
792 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
793 return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
796 """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
797 return _IMP_misc.CustomXYZR_get_check_level(self)
799 def __eq__(self, *args):
801 __eq__(CustomXYZR self, CustomXYZR o) -> bool
802 __eq__(CustomXYZR self, Particle d) -> bool
804 return _IMP_misc.CustomXYZR___eq__(self, *args)
806 def __ne__(self, *args):
808 __ne__(CustomXYZR self, CustomXYZR o) -> bool
809 __ne__(CustomXYZR self, Particle d) -> bool
811 return _IMP_misc.CustomXYZR___ne__(self, *args)
813 def __le__(self, *args):
815 __le__(CustomXYZR self, CustomXYZR o) -> bool
816 __le__(CustomXYZR self, Particle d) -> bool
818 return _IMP_misc.CustomXYZR___le__(self, *args)
820 def __lt__(self, *args):
822 __lt__(CustomXYZR self, CustomXYZR o) -> bool
823 __lt__(CustomXYZR self, Particle d) -> bool
825 return _IMP_misc.CustomXYZR___lt__(self, *args)
827 def __ge__(self, *args):
829 __ge__(CustomXYZR self, CustomXYZR o) -> bool
830 __ge__(CustomXYZR self, Particle d) -> bool
832 return _IMP_misc.CustomXYZR___ge__(self, *args)
834 def __gt__(self, *args):
836 __gt__(CustomXYZR self, CustomXYZR o) -> bool
837 __gt__(CustomXYZR self, Particle d) -> bool
839 return _IMP_misc.CustomXYZR___gt__(self, *args)
842 """__str__(CustomXYZR self) -> std::string"""
843 return _IMP_misc.CustomXYZR___str__(self)
846 """__repr__(CustomXYZR self) -> std::string"""
847 return _IMP_misc.CustomXYZR___repr__(self)
849 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
850 __del__ =
lambda self :
None;
851 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
852 CustomXYZR_swigregister(CustomXYZR)
854 def CustomXYZR_get_default_decorator_traits():
855 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
856 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
858 def CustomXYZR_decorate_particle(*args):
860 decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
861 CustomXYZR_decorate_particle(Particle p) -> CustomXYZR
863 return _IMP_misc.CustomXYZR_decorate_particle(*args)
865 def CustomXYZR_setup_particle(*args):
867 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
868 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
869 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
870 setup_particle(_ParticleAdaptor d) -> CustomXYZR
871 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
872 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
873 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
874 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
875 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
876 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
877 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
878 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
880 return _IMP_misc.CustomXYZR_setup_particle(*args)
882 def CustomXYZR_get_is_setup(*args):
884 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
885 get_is_setup(_ParticleAdaptor p) -> bool
886 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
887 CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
889 return _IMP_misc.CustomXYZR_get_is_setup(*args)
891 def CustomXYZR_get_default_radius_key():
892 """CustomXYZR_get_default_radius_key() -> FloatKey"""
893 return _IMP_misc.CustomXYZR_get_default_radius_key()
896 def __lshift__(*args):
897 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
898 return _IMP_misc.__lshift__(*args)
901 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
902 return _IMP_misc.get_distance(*args)
905 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
906 return _IMP_misc.get_sphere_d_geometry(*args)
909 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
910 return _IMP_misc.set_sphere_d_geometry(*args)
912 """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
913 __swig_setmethods__ = {}
914 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
915 __setattr__ =
lambda self, name, value: _swig_setattr(self, SoftCylinderPairScore, name, value)
916 __swig_getmethods__ = {}
917 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
918 __getattr__ =
lambda self, name: _swig_getattr(self, SoftCylinderPairScore, name)
919 def __init__(self, *args):
920 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
921 this = _IMP_misc.new_SoftCylinderPairScore(*args)
922 try: self.this.append(this)
923 except: self.this = this
924 def do_get_inputs(self, *args):
925 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
926 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
928 def get_version_info(self):
929 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
930 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
933 """__str__(SoftCylinderPairScore self) -> std::string"""
934 return _IMP_misc.SoftCylinderPairScore___str__(self)
937 """__repr__(SoftCylinderPairScore self) -> std::string"""
938 return _IMP_misc.SoftCylinderPairScore___repr__(self)
941 return _object_cast_to_SoftCylinderPairScore(o)
942 get_from = staticmethod(get_from)
944 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
945 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
948 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
949 __swig_setmethods__ = {}
951 __setattr__ =
lambda self, name, value: _swig_setattr(self, DecayPairContainerOptimizerState, name, value)
952 __swig_getmethods__ = {}
954 __getattr__ =
lambda self, name: _swig_getattr(self, DecayPairContainerOptimizerState, name)
955 def __init__(self, *args):
957 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
958 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
960 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
961 try: self.this.append(this)
962 except: self.this = this
963 def get_output_container(self):
964 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
965 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
967 def do_update(self, *args):
968 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
969 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
971 def get_version_info(self):
972 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
973 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
976 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
977 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
980 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
981 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
984 return _object_cast_to_DecayPairContainerOptimizerState(o)
985 get_from = staticmethod(get_from)
987 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
988 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
991 def get_module_version():
992 """get_module_version() -> std::string const"""
993 return _IMP_misc.get_module_version()
996 """get_example_path(std::string fname) -> std::string"""
997 return _IMP_misc.get_example_path(*args)
1000 """get_data_path(std::string fname) -> std::string"""
1001 return _IMP_misc.get_data_path(*args)
1002 import _version_check
1003 _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.
A decorator for a particle with x,y,z coordinates.
Abstract predicate function.
const SphereD< D > & get_sphere_d_geometry(const SphereD< D > &g)
void set_sphere_d_geometry(SphereD< D > &g, const SphereD< D > &v)
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.