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 show(self, *args):
638 show(CustomXYZR self, _ostream out=std::cout)
639 show(CustomXYZR self)
641 return _IMP_misc.CustomXYZR_show(self, *args)
643 def setup_particle(*args):
645 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
646 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
647 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
648 setup_particle(_ParticleAdaptor d) -> CustomXYZR
649 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
650 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
651 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
652 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
653 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
654 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
655 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
656 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
658 return _IMP_misc.CustomXYZR_setup_particle(*args)
660 if _newclass:setup_particle = staticmethod(setup_particle)
661 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
662 def get_is_setup(*args):
664 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
665 get_is_setup(_ParticleAdaptor p) -> bool
666 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
667 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
669 return _IMP_misc.CustomXYZR_get_is_setup(*args)
671 if _newclass:get_is_setup = staticmethod(get_is_setup)
672 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
673 def get_radius(self):
674 """get_radius(CustomXYZR self) -> IMP::Float"""
675 return _IMP_misc.CustomXYZR_get_radius(self)
677 def set_radius(self, *args):
678 """set_radius(CustomXYZR self, IMP::Float t)"""
679 return _IMP_misc.CustomXYZR_set_radius(self, *args)
681 def get_sphere(self):
682 """get_sphere(CustomXYZR self) -> Sphere3D"""
683 return _IMP_misc.CustomXYZR_get_sphere(self)
685 def set_sphere(self, *args):
686 """set_sphere(CustomXYZR self, Sphere3D s)"""
687 return _IMP_misc.CustomXYZR_set_sphere(self, *args)
689 def get_default_radius_key():
690 """get_default_radius_key() -> FloatKey"""
691 return _IMP_misc.CustomXYZR_get_default_radius_key()
693 if _newclass:get_default_radius_key = staticmethod(get_default_radius_key)
694 __swig_getmethods__[
"get_default_radius_key"] =
lambda x: get_default_radius_key
695 def add_to_radius_derivative(self, *args):
696 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
697 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
699 def get_traits(self):
700 """get_traits(CustomXYZR self) -> FloatKey"""
701 return _IMP_misc.CustomXYZR_get_traits(self)
703 def add_attribute(self, *args):
705 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
706 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
707 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
708 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
709 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
710 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
712 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
714 def get_value(self, *args):
716 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
717 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
718 get_value(CustomXYZR self, StringKey a0) -> IMP::String
719 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
720 get_value(CustomXYZR self, ObjectKey a0) -> Object
722 return _IMP_misc.CustomXYZR_get_value(self, *args)
724 def set_value(self, *args):
726 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
727 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
728 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
729 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
730 set_value(CustomXYZR self, ObjectKey a0, Object a1)
732 return _IMP_misc.CustomXYZR_set_value(self, *args)
734 def remove_attribute(self, *args):
736 remove_attribute(CustomXYZR self, FloatKey a0)
737 remove_attribute(CustomXYZR self, IntKey a0)
738 remove_attribute(CustomXYZR self, StringKey a0)
739 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
740 remove_attribute(CustomXYZR self, ObjectKey a0)
742 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
744 def has_attribute(self, *args):
746 has_attribute(CustomXYZR self, FloatKey a0) -> bool
747 has_attribute(CustomXYZR self, IntKey a0) -> bool
748 has_attribute(CustomXYZR self, StringKey a0) -> bool
749 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
750 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
752 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
754 def get_derivative(self, *args):
755 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
756 return _IMP_misc.CustomXYZR_get_derivative(self, *args)
759 """get_name(CustomXYZR self) -> std::string"""
760 return _IMP_misc.CustomXYZR_get_name(self)
762 def clear_caches(self):
763 """clear_caches(CustomXYZR self)"""
764 return _IMP_misc.CustomXYZR_clear_caches(self)
766 def set_name(self, *args):
767 """set_name(CustomXYZR self, std::string a0)"""
768 return _IMP_misc.CustomXYZR_set_name(self, *args)
771 """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
772 return _IMP_misc.CustomXYZR_set_check_level(self, *args)
774 def add_to_derivative(self, *args):
775 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
776 return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
778 def set_is_optimized(self, *args):
779 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
780 return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
782 def get_is_optimized(self, *args):
783 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
784 return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
787 """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
788 return _IMP_misc.CustomXYZR_get_check_level(self)
790 def __eq__(self, *args):
792 __eq__(CustomXYZR self, CustomXYZR o) -> bool
793 __eq__(CustomXYZR self, Particle d) -> bool
795 return _IMP_misc.CustomXYZR___eq__(self, *args)
797 def __ne__(self, *args):
799 __ne__(CustomXYZR self, CustomXYZR o) -> bool
800 __ne__(CustomXYZR self, Particle d) -> bool
802 return _IMP_misc.CustomXYZR___ne__(self, *args)
804 def __le__(self, *args):
806 __le__(CustomXYZR self, CustomXYZR o) -> bool
807 __le__(CustomXYZR self, Particle d) -> bool
809 return _IMP_misc.CustomXYZR___le__(self, *args)
811 def __lt__(self, *args):
813 __lt__(CustomXYZR self, CustomXYZR o) -> bool
814 __lt__(CustomXYZR self, Particle d) -> bool
816 return _IMP_misc.CustomXYZR___lt__(self, *args)
818 def __ge__(self, *args):
820 __ge__(CustomXYZR self, CustomXYZR o) -> bool
821 __ge__(CustomXYZR self, Particle d) -> bool
823 return _IMP_misc.CustomXYZR___ge__(self, *args)
825 def __gt__(self, *args):
827 __gt__(CustomXYZR self, CustomXYZR o) -> bool
828 __gt__(CustomXYZR self, Particle d) -> bool
830 return _IMP_misc.CustomXYZR___gt__(self, *args)
833 """__str__(CustomXYZR self) -> std::string"""
834 return _IMP_misc.CustomXYZR___str__(self)
837 """__repr__(CustomXYZR self) -> std::string"""
838 return _IMP_misc.CustomXYZR___repr__(self)
840 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
841 __del__ =
lambda self :
None;
842 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
843 CustomXYZR_swigregister(CustomXYZR)
845 def CustomXYZR_get_default_decorator_traits():
846 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
847 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
849 def CustomXYZR_setup_particle(*args):
851 setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
852 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
853 setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
854 setup_particle(_ParticleAdaptor d) -> CustomXYZR
855 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
856 setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
857 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
858 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
859 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
860 setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
861 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
862 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
864 return _IMP_misc.CustomXYZR_setup_particle(*args)
866 def CustomXYZR_get_is_setup(*args):
868 get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
869 get_is_setup(_ParticleAdaptor p) -> bool
870 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
871 CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
873 return _IMP_misc.CustomXYZR_get_is_setup(*args)
875 def CustomXYZR_get_default_radius_key():
876 """CustomXYZR_get_default_radius_key() -> FloatKey"""
877 return _IMP_misc.CustomXYZR_get_default_radius_key()
880 def __lshift__(*args):
881 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
882 return _IMP_misc.__lshift__(*args)
885 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
886 return _IMP_misc.get_distance(*args)
889 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
890 return _IMP_misc.get_sphere_d_geometry(*args)
893 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
894 return _IMP_misc.set_sphere_d_geometry(*args)
896 """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
897 __swig_setmethods__ = {}
898 for _s
in [
IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
899 __setattr__ =
lambda self, name, value: _swig_setattr(self, SoftCylinderPairScore, name, value)
900 __swig_getmethods__ = {}
901 for _s
in [
IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
902 __getattr__ =
lambda self, name: _swig_getattr(self, SoftCylinderPairScore, name)
903 def __init__(self, *args):
904 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
905 this = _IMP_misc.new_SoftCylinderPairScore(*args)
906 try: self.this.append(this)
907 except: self.this = this
908 def do_get_inputs(self, *args):
909 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
910 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
912 def get_version_info(self):
913 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
914 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
917 """__str__(SoftCylinderPairScore self) -> std::string"""
918 return _IMP_misc.SoftCylinderPairScore___str__(self)
921 """__repr__(SoftCylinderPairScore self) -> std::string"""
922 return _IMP_misc.SoftCylinderPairScore___repr__(self)
925 return _object_cast_to_SoftCylinderPairScore(o)
926 get_from = staticmethod(get_from)
928 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
929 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
932 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
933 __swig_setmethods__ = {}
935 __setattr__ =
lambda self, name, value: _swig_setattr(self, DecayPairContainerOptimizerState, name, value)
936 __swig_getmethods__ = {}
938 __getattr__ =
lambda self, name: _swig_getattr(self, DecayPairContainerOptimizerState, name)
939 def __init__(self, *args):
941 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
942 __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
944 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
945 try: self.this.append(this)
946 except: self.this = this
947 def get_output_container(self):
948 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
949 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
951 def do_update(self, *args):
952 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
953 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
955 def get_version_info(self):
956 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
957 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
960 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
961 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
964 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
965 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
968 return _object_cast_to_DecayPairContainerOptimizerState(o)
969 get_from = staticmethod(get_from)
971 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
972 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
975 def get_module_version():
976 """get_module_version() -> std::string const"""
977 return _IMP_misc.get_module_version()
980 """get_example_path(std::string fname) -> std::string"""
981 return _IMP_misc.get_example_path(*args)
984 """get_data_path(std::string fname) -> std::string"""
985 return _IMP_misc.get_data_path(*args)
986 import _version_check
987 _version_check.check_version(get_module_version())
Various classes to hold sets of particles.
Shared optimizer state that is invoked upon commitment of new coordinates.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Make CGAL functionality available to IMP.
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 ...
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 maintain invariants in the Model.
Composable functors to implement scores via compile-time composition.
Abstract class for scoring object(s) of type ParticlePair.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
Base functionality and abstract base classes for representation, scoring and sampling.
A decorator for a particle with x,y,z coordinates.
Abstract predicate function.
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
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.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.
Functionality for loading, creating, manipulating and scoring atomic structures.