IMP logo
IMP Reference Guide  develop.50fdd7fa33,2025/08/31
The Integrative Modeling Platform
misc/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_misc
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
43 def _swig_setattr_nondynamic_class_variable(set):
44  def set_class_attr(cls, name, value):
45  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 def _swig_add_metaclass(metaclass):
53  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
59 class _SwigNonDynamicMeta(type):
60  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62 
63 
64 import weakref
65 
66 class IMP_MISC_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_MISC_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
78  return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator"""
82  return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator"""
86  return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
94  return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
98  return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
102  return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
106  return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
110  return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
114  return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
118  return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
122  return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
126  return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
130  return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
134  return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
139  __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_MISC_SwigPyIterator in _IMP_misc:
146 _IMP_misc.IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_misc.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_misc.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_misc.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_misc.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_misc.IMP_MEMORY
166 
167 IMP_NONE = _IMP_misc.IMP_NONE
168 
169 IMP_USAGE = _IMP_misc.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_misc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_misc.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_misc.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
204  def register(self, obj):
205  """Take a reference to a director object; will only work for
206  refcounted C++ classes"""
207  if hasattr(obj, 'get_ref_count'):
208  self._objects.append(obj)
209  def cleanup(self):
210  """Only drop our reference and allow cleanup by Python if no other
211  Python references exist (we hold 3 references: one in self._objects,
212  one in x, and one in the argument list for getrefcount) *and* no
213  other C++ references exist (the Python object always holds one)"""
214  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
215  or x.get_ref_count() > 1]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
219  def get_object_count(self):
220  """Get number of director objects (useful for testing only)"""
221  return len(self._objects)
222 _director_objects = _DirectorObjects()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_misc._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_misc:
238 _IMP_misc._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_misc.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_misc.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_misc.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
271 
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
273 
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
277 
278 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
279 
280 IMP_DISPLAY_HAS_NUMPY = _IMP_misc.IMP_DISPLAY_HAS_NUMPY
281 
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
283 
284 import IMP.display
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
286 
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
292 
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
294 
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
296 
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY
298 
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
300 
301 import IMP.score_functor
302 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
303 
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
305 
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
307 
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
309 
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
311 
312 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
313 
314 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
315 
316 IMP_CORE_HAS_NUMPY = _IMP_misc.IMP_CORE_HAS_NUMPY
317 
318 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
319 
320 import IMP.core
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
322 
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
324 
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
326 
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
328 
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
330 
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
332 
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
334 
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
336 
337 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
338 
339 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
340 
341 IMP_CONTAINER_HAS_NUMPY = _IMP_misc.IMP_CONTAINER_HAS_NUMPY
342 
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM
344 
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
346 
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP
348 
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
350 
351 import IMP.container
352 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
353 
354 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
355 
356 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
357 
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
359 
360 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
361 
362 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
363 
364 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
365 
366 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
367 
368 IMP_ATOM_HAS_NUMPY = _IMP_misc.IMP_ATOM_HAS_NUMPY
369 
370 IMP_ATOM_HAS_PYTHON_IHM = _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM
371 
372 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
373 
374 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
375 
376 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
377 
378 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
379 
380 IMP_CHAIN_TYPE_INDEX = _IMP_misc.IMP_CHAIN_TYPE_INDEX
381 
382 import IMP.atom
383 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
384 
385 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
386 
387 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
388 
389 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
390 
391 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
392 
393 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
394 
395 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
396 
397 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
398 
399 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
400 
401 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
402 
403 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
404 
405 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
406 
407 IMP_MISC_HAS_NUMPY = _IMP_misc.IMP_MISC_HAS_NUMPY
408 
409 IMP_MISC_HAS_PYTHON_IHM = _IMP_misc.IMP_MISC_HAS_PYTHON_IHM
410 
411 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
412 
413 
414 _object_types.append("WormLikeChain")
415 
416 
417 def _object_cast_to_WormLikeChain(o):
418  r"""_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
419  return _IMP_misc._object_cast_to_WormLikeChain(o)
420 
421 _object_types.append("FreelyJointedChain")
422 
423 
424 def _object_cast_to_FreelyJointedChain(o):
425  r"""_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
426  return _IMP_misc._object_cast_to_FreelyJointedChain(o)
427 
428 _object_types.append("StateAdaptor")
429 
430 
431 def _object_cast_to_StateAdaptor(o):
432  r"""_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
433  return _IMP_misc._object_cast_to_StateAdaptor(o)
434 
435 _object_types.append("CommonEndpointPairFilter")
436 
437 
438 def _object_cast_to_CommonEndpointPairFilter(o):
439  r"""_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
440  return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
441 
442 _object_types.append("LogPairScore")
443 
444 
445 def _object_cast_to_LogPairScore(o):
446  r"""_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
447  return _IMP_misc._object_cast_to_LogPairScore(o)
448 
449 _object_types.append("LowestRefinedPairScore")
450 
451 
452 def _object_cast_to_LowestRefinedPairScore(o):
453  r"""_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
454  return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
455 
456 _object_types.append("SoftCylinderPairScore")
457 
458 
459 def _object_cast_to_SoftCylinderPairScore(o):
460  r"""_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
461  return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
462 
463 _object_types.append("DecayPairContainerOptimizerState")
464 
465 
466 def _object_cast_to_DecayPairContainerOptimizerState(o):
467  r"""_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
468  return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
469 
470 def CustomXYZRs(l=[]):
471  return [CustomXYZR(x) for x in l]
472 _plural_types.append("CustomXYZRs")
473 
474 
475 _value_types.append("CustomXYZR")
476 
477 class WormLikeChain(IMP.UnaryFunction):
478  r"""Proxy of C++ IMP::misc::WormLikeChain class."""
479 
480  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
481 
482  def __init__(self, l_max, lp):
483  r"""__init__(WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
484  _IMP_misc.WormLikeChain_swiginit(self, _IMP_misc.new_WormLikeChain(l_max, lp))
485 
486  def get_version_info(self):
487  r"""get_version_info(WormLikeChain self) -> VersionInfo"""
488  return _IMP_misc.WormLikeChain_get_version_info(self)
489  __swig_destroy__ = _IMP_misc.delete_WormLikeChain
490 
491  def do_show(self, out):
492  r"""do_show(WormLikeChain self, _ostream out)"""
493  return _IMP_misc.WormLikeChain_do_show(self, out)
494 
495  def __str__(self):
496  r"""__str__(WormLikeChain self) -> std::string"""
497  return _IMP_misc.WormLikeChain___str__(self)
498 
499  def __repr__(self):
500  r"""__repr__(WormLikeChain self) -> std::string"""
501  return _IMP_misc.WormLikeChain___repr__(self)
502 
503  @staticmethod
504  def get_from(o):
505  return _object_cast_to_WormLikeChain(o)
506 
507 
508 # Register WormLikeChain in _IMP_misc:
509 _IMP_misc.WormLikeChain_swigregister(WormLikeChain)
510 class FreelyJointedChain(IMP.UnaryFunction):
511  r"""Proxy of C++ IMP::misc::FreelyJointedChain class."""
512 
513  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
514 
515  def __init__(self, link_num, link_length):
516  r"""__init__(FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
517  _IMP_misc.FreelyJointedChain_swiginit(self, _IMP_misc.new_FreelyJointedChain(link_num, link_length))
518 
519  def get_version_info(self):
520  r"""get_version_info(FreelyJointedChain self) -> VersionInfo"""
521  return _IMP_misc.FreelyJointedChain_get_version_info(self)
522  __swig_destroy__ = _IMP_misc.delete_FreelyJointedChain
523 
524  def get_link_number(self):
525  r"""get_link_number(FreelyJointedChain self) -> int"""
526  return _IMP_misc.FreelyJointedChain_get_link_number(self)
527 
528  def get_link_length(self):
529  r"""get_link_length(FreelyJointedChain self) -> double"""
530  return _IMP_misc.FreelyJointedChain_get_link_length(self)
531 
532  def set_link_number(self, N):
533  r"""set_link_number(FreelyJointedChain self, int N)"""
534  return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
535 
536  def set_link_length(self, b):
537  r"""set_link_length(FreelyJointedChain self, double b)"""
538  return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
539 
540  def get_distance_at_minimum(self):
541  r"""get_distance_at_minimum(FreelyJointedChain self) -> double"""
542  return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
543 
544  def get_average_distance(self):
545  r"""get_average_distance(FreelyJointedChain self) -> double"""
546  return _IMP_misc.FreelyJointedChain_get_average_distance(self)
547 
548  def __str__(self):
549  r"""__str__(FreelyJointedChain self) -> std::string"""
550  return _IMP_misc.FreelyJointedChain___str__(self)
551 
552  def __repr__(self):
553  r"""__repr__(FreelyJointedChain self) -> std::string"""
554  return _IMP_misc.FreelyJointedChain___repr__(self)
555 
556  @staticmethod
557  def get_from(o):
558  return _object_cast_to_FreelyJointedChain(o)
559 
560 
561 # Register FreelyJointedChain in _IMP_misc:
562 _IMP_misc.FreelyJointedChain_swigregister(FreelyJointedChain)
563 class LowestRefinedPairScore(IMP.PairScore):
564  r"""Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
565 
566  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
567 
568  def __init__(self, r, f):
569  r"""__init__(LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
570  _IMP_misc.LowestRefinedPairScore_swiginit(self, _IMP_misc.new_LowestRefinedPairScore(r, f))
571 
572  def do_get_inputs(self, m, pis):
573  r"""do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
574  return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
575 
576  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
577  r"""evaluate_indexes(LowestRefinedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
578  return _IMP_misc.LowestRefinedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
579 
580  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
581  r"""evaluate_indexes_scores(LowestRefinedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
582  return _IMP_misc.LowestRefinedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
583 
584  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
585  r"""evaluate_indexes_delta(LowestRefinedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
586  return _IMP_misc.LowestRefinedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
587 
588  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
589  r"""evaluate_if_good_indexes(LowestRefinedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
590  return _IMP_misc.LowestRefinedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
591 
592  def get_version_info(self):
593  r"""get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
594  return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
595  __swig_destroy__ = _IMP_misc.delete_LowestRefinedPairScore
596 
597  def __str__(self):
598  r"""__str__(LowestRefinedPairScore self) -> std::string"""
599  return _IMP_misc.LowestRefinedPairScore___str__(self)
600 
601  def __repr__(self):
602  r"""__repr__(LowestRefinedPairScore self) -> std::string"""
603  return _IMP_misc.LowestRefinedPairScore___repr__(self)
604 
605  @staticmethod
606  def get_from(o):
607  return _object_cast_to_LowestRefinedPairScore(o)
608 
609 
610 # Register LowestRefinedPairScore in _IMP_misc:
611 _IMP_misc.LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
612 class LogPairScore(IMP.PairScore):
613  r"""Proxy of C++ IMP::misc::LogPairScore class."""
614 
615  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
616 
617  def __init__(self):
618  r"""__init__(LogPairScore self) -> LogPairScore"""
619  _IMP_misc.LogPairScore_swiginit(self, _IMP_misc.new_LogPairScore())
620 
621  def do_get_inputs(self, arg2, arg3):
622  r"""do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
623  return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
624 
625  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
626  r"""evaluate_indexes(LogPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
627  return _IMP_misc.LogPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
628 
629  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
630  r"""evaluate_indexes_scores(LogPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
631  return _IMP_misc.LogPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
632 
633  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
634  r"""evaluate_indexes_delta(LogPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
635  return _IMP_misc.LogPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
636 
637  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
638  r"""evaluate_if_good_indexes(LogPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
639  return _IMP_misc.LogPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
640 
641  def get_version_info(self):
642  r"""get_version_info(LogPairScore self) -> VersionInfo"""
643  return _IMP_misc.LogPairScore_get_version_info(self)
644  __swig_destroy__ = _IMP_misc.delete_LogPairScore
645 
646  def get_particle_pairs(self):
647  r"""get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
648  return _IMP_misc.LogPairScore_get_particle_pairs(self)
649 
650  def clear(self):
651  r"""clear(LogPairScore self)"""
652  return _IMP_misc.LogPairScore_clear(self)
653 
654  def get_contains(self, pp):
655  r"""get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
656  return _IMP_misc.LogPairScore_get_contains(self, pp)
657 
658  def __str__(self):
659  r"""__str__(LogPairScore self) -> std::string"""
660  return _IMP_misc.LogPairScore___str__(self)
661 
662  def __repr__(self):
663  r"""__repr__(LogPairScore self) -> std::string"""
664  return _IMP_misc.LogPairScore___repr__(self)
665 
666  @staticmethod
667  def get_from(o):
668  return _object_cast_to_LogPairScore(o)
669 
670 
671 # Register LogPairScore in _IMP_misc:
672 _IMP_misc.LogPairScore_swigregister(LogPairScore)
673 class StateAdaptor(IMP.ScoreState):
674  r"""Proxy of C++ IMP::misc::StateAdaptor class."""
675 
676  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
677 
678  def __init__(self, m, before, after):
679  r"""__init__(StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
680  _IMP_misc.StateAdaptor_swiginit(self, _IMP_misc.new_StateAdaptor(m, before, after))
681 
682  def do_before_evaluate(self):
683  r"""do_before_evaluate(StateAdaptor self)"""
684  return _IMP_misc.StateAdaptor_do_before_evaluate(self)
685 
686  def do_after_evaluate(self, da):
687  r"""do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
688  return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
689 
690  def do_get_inputs(self):
691  r"""do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
692  return _IMP_misc.StateAdaptor_do_get_inputs(self)
693 
694  def do_get_outputs(self):
695  r"""do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
696  return _IMP_misc.StateAdaptor_do_get_outputs(self)
697 
698  def get_version_info(self):
699  r"""get_version_info(StateAdaptor self) -> VersionInfo"""
700  return _IMP_misc.StateAdaptor_get_version_info(self)
701  __swig_destroy__ = _IMP_misc.delete_StateAdaptor
702 
703  def __str__(self):
704  r"""__str__(StateAdaptor self) -> std::string"""
705  return _IMP_misc.StateAdaptor___str__(self)
706 
707  def __repr__(self):
708  r"""__repr__(StateAdaptor self) -> std::string"""
709  return _IMP_misc.StateAdaptor___repr__(self)
710 
711  @staticmethod
712  def get_from(o):
713  return _object_cast_to_StateAdaptor(o)
714 
715 
716 # Register StateAdaptor in _IMP_misc:
717 _IMP_misc.StateAdaptor_swigregister(StateAdaptor)
718 class CommonEndpointPairFilter(IMP.PairPredicate):
719  r"""Proxy of C++ IMP::misc::CommonEndpointPairFilter class."""
720 
721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
722 
723  def __init__(self):
724  r"""__init__(CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
725  _IMP_misc.CommonEndpointPairFilter_swiginit(self, _IMP_misc.new_CommonEndpointPairFilter())
726 
727  def do_get_inputs(self, m, pis):
728  r"""do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
729  return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
730 
731  def get_value(self, *args):
732  r"""
733  get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
734  get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
735  """
736  return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
737 
738  def get_value_index(self, *args):
739  r"""
740  get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
741  get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
742  """
743  return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
744 
745  def get_version_info(self):
746  r"""get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
747  return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
748  __swig_destroy__ = _IMP_misc.delete_CommonEndpointPairFilter
749 
750  def __str__(self):
751  r"""__str__(CommonEndpointPairFilter self) -> std::string"""
752  return _IMP_misc.CommonEndpointPairFilter___str__(self)
753 
754  def __repr__(self):
755  r"""__repr__(CommonEndpointPairFilter self) -> std::string"""
756  return _IMP_misc.CommonEndpointPairFilter___repr__(self)
757 
758  @staticmethod
759  def get_from(o):
760  return _object_cast_to_CommonEndpointPairFilter(o)
761 
762 
763 # Register CommonEndpointPairFilter in _IMP_misc:
764 _IMP_misc.CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
765 class CustomXYZR(IMP.core.XYZ):
766  r"""Proxy of C++ IMP::misc::CustomXYZR class."""
767 
768  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
769 
770  def get_decorator_traits(self):
771  r"""get_decorator_traits(CustomXYZR self) -> FloatKey"""
772  return _IMP_misc.CustomXYZR_get_decorator_traits(self)
773 
774  @staticmethod
775  def get_default_decorator_traits():
776  r"""get_default_decorator_traits() -> FloatKey"""
777  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
778 
779  def __init__(self, *args):
780  r"""
781  __init__(CustomXYZR self) -> CustomXYZR
782  __init__(CustomXYZR self, Model m, ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
783  __init__(CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
784  """
785  _IMP_misc.CustomXYZR_swiginit(self, _IMP_misc.new_CustomXYZR(*args))
786 
787  def show(self, *args):
788  r"""show(CustomXYZR self, _ostream out=std::cout)"""
789  return _IMP_misc.CustomXYZR_show(self, *args)
790 
791  @staticmethod
792  def setup_particle(*args):
793  r"""
794  setup_particle(Model m, ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
795  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
796  setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
797  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
798  setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
799  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
800  """
801  return _IMP_misc.CustomXYZR_setup_particle(*args)
802 
803  @staticmethod
804  def get_is_setup(*args):
805  r"""
806  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
807  get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
808  """
809  return _IMP_misc.CustomXYZR_get_is_setup(*args)
810 
811  def get_radius(self):
812  r"""get_radius(CustomXYZR self) -> IMP::Float"""
813  return _IMP_misc.CustomXYZR_get_radius(self)
814 
815  def set_radius(self, t):
816  r"""set_radius(CustomXYZR self, IMP::Float t)"""
817  return _IMP_misc.CustomXYZR_set_radius(self, t)
818 
819  def get_sphere(self):
820  r"""get_sphere(CustomXYZR self) -> Sphere3D"""
821  return _IMP_misc.CustomXYZR_get_sphere(self)
822 
823  def set_sphere(self, s):
824  r"""set_sphere(CustomXYZR self, Sphere3D s)"""
825  return _IMP_misc.CustomXYZR_set_sphere(self, s)
826 
827  @staticmethod
828  def get_default_radius_key():
829  r"""get_default_radius_key() -> FloatKey"""
830  return _IMP_misc.CustomXYZR_get_default_radius_key()
831 
832  def add_to_radius_derivative(self, v, d):
833  r"""add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
834  return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
835 
836  def get_traits(self):
837  r"""get_traits(CustomXYZR self) -> FloatKey"""
838  return _IMP_misc.CustomXYZR_get_traits(self)
839 
840  def add_attribute(self, *args):
841  r"""
842  add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
843  add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
844  add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
845  add_attribute(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
846  add_attribute(CustomXYZR self, IntsKey a0, IMP::Ints a1)
847  add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
848  add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
849  add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
850  add_attribute(CustomXYZR self, SparseFloatKey a0, IMP::Float a1)
851  add_attribute(CustomXYZR self, SparseIntKey a0, IMP::Int a1)
852  add_attribute(CustomXYZR self, SparseStringKey a0, IMP::String a1)
853  add_attribute(CustomXYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
854  """
855  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
856 
857  def get_value(self, *args):
858  r"""
859  get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
860  get_value(CustomXYZR self, IntKey a0) -> IMP::Int
861  get_value(CustomXYZR self, FloatsKey a0) -> IMP::Floats
862  get_value(CustomXYZR self, IntsKey a0) -> IMP::Ints
863  get_value(CustomXYZR self, StringKey a0) -> IMP::String
864  get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
865  get_value(CustomXYZR self, ObjectKey a0) -> Object
866  get_value(CustomXYZR self, SparseFloatKey a0) -> IMP::Float
867  get_value(CustomXYZR self, SparseIntKey a0) -> IMP::Int
868  get_value(CustomXYZR self, SparseStringKey a0) -> IMP::String
869  get_value(CustomXYZR self, SparseParticleIndexKey a0) -> ParticleIndex
870  """
871  return _IMP_misc.CustomXYZR_get_value(self, *args)
872 
873  def set_value(self, *args):
874  r"""
875  set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
876  set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
877  set_value(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
878  set_value(CustomXYZR self, IntsKey a0, IMP::Ints a1)
879  set_value(CustomXYZR self, StringKey a0, IMP::String a1)
880  set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
881  set_value(CustomXYZR self, ObjectKey a0, Object a1)
882  set_value(CustomXYZR self, SparseFloatKey a0, IMP::Float a1)
883  set_value(CustomXYZR self, SparseIntKey a0, IMP::Int a1)
884  set_value(CustomXYZR self, SparseStringKey a0, IMP::String a1)
885  set_value(CustomXYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
886  """
887  return _IMP_misc.CustomXYZR_set_value(self, *args)
888 
889  def remove_attribute(self, *args):
890  r"""
891  remove_attribute(CustomXYZR self, FloatKey a0)
892  remove_attribute(CustomXYZR self, IntKey a0)
893  remove_attribute(CustomXYZR self, FloatsKey a0)
894  remove_attribute(CustomXYZR self, IntsKey a0)
895  remove_attribute(CustomXYZR self, StringKey a0)
896  remove_attribute(CustomXYZR self, ParticleIndexKey a0)
897  remove_attribute(CustomXYZR self, ObjectKey a0)
898  remove_attribute(CustomXYZR self, SparseFloatKey a0)
899  remove_attribute(CustomXYZR self, SparseIntKey a0)
900  remove_attribute(CustomXYZR self, SparseStringKey a0)
901  remove_attribute(CustomXYZR self, SparseParticleIndexKey a0)
902  """
903  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
904 
905  def has_attribute(self, *args):
906  r"""
907  has_attribute(CustomXYZR self, FloatKey a0) -> bool
908  has_attribute(CustomXYZR self, IntKey a0) -> bool
909  has_attribute(CustomXYZR self, FloatsKey a0) -> bool
910  has_attribute(CustomXYZR self, IntsKey a0) -> bool
911  has_attribute(CustomXYZR self, StringKey a0) -> bool
912  has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
913  has_attribute(CustomXYZR self, ObjectKey a0) -> bool
914  has_attribute(CustomXYZR self, SparseFloatKey a0) -> bool
915  has_attribute(CustomXYZR self, SparseIntKey a0) -> bool
916  has_attribute(CustomXYZR self, SparseStringKey a0) -> bool
917  has_attribute(CustomXYZR self, SparseParticleIndexKey a0) -> bool
918  """
919  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
920 
921  def get_derivative(self, a0):
922  r"""get_derivative(CustomXYZR self, FloatKey a0) -> double"""
923  return _IMP_misc.CustomXYZR_get_derivative(self, a0)
924 
925  def get_name(self):
926  r"""get_name(CustomXYZR self) -> std::string"""
927  return _IMP_misc.CustomXYZR_get_name(self)
928 
929  def clear_caches(self):
930  r"""clear_caches(CustomXYZR self)"""
931  return _IMP_misc.CustomXYZR_clear_caches(self)
932 
933  def set_name(self, a0):
934  r"""set_name(CustomXYZR self, std::string a0)"""
935  return _IMP_misc.CustomXYZR_set_name(self, a0)
936 
937  def set_check_level(self, a0):
938  r"""set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
939  return _IMP_misc.CustomXYZR_set_check_level(self, a0)
940 
941  def add_to_derivative(self, a0, a1, a2):
942  r"""add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
943  return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
944 
945  def set_is_optimized(self, a0, a1):
946  r"""set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
947  return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
948 
949  def get_is_optimized(self, a0):
950  r"""get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
951  return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
952 
953  def get_check_level(self):
954  r"""get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
955  return _IMP_misc.CustomXYZR_get_check_level(self)
956 
957  def __eq__(self, *args):
958  r"""
959  __eq__(CustomXYZR self, CustomXYZR o) -> bool
960  __eq__(CustomXYZR self, Particle d) -> bool
961  """
962  return _IMP_misc.CustomXYZR___eq__(self, *args)
963 
964  def __ne__(self, *args):
965  r"""
966  __ne__(CustomXYZR self, CustomXYZR o) -> bool
967  __ne__(CustomXYZR self, Particle d) -> bool
968  """
969  return _IMP_misc.CustomXYZR___ne__(self, *args)
970 
971  def __le__(self, *args):
972  r"""
973  __le__(CustomXYZR self, CustomXYZR o) -> bool
974  __le__(CustomXYZR self, Particle d) -> bool
975  """
976  return _IMP_misc.CustomXYZR___le__(self, *args)
977 
978  def __lt__(self, *args):
979  r"""
980  __lt__(CustomXYZR self, CustomXYZR o) -> bool
981  __lt__(CustomXYZR self, Particle d) -> bool
982  """
983  return _IMP_misc.CustomXYZR___lt__(self, *args)
984 
985  def __ge__(self, *args):
986  r"""
987  __ge__(CustomXYZR self, CustomXYZR o) -> bool
988  __ge__(CustomXYZR self, Particle d) -> bool
989  """
990  return _IMP_misc.CustomXYZR___ge__(self, *args)
991 
992  def __gt__(self, *args):
993  r"""
994  __gt__(CustomXYZR self, CustomXYZR o) -> bool
995  __gt__(CustomXYZR self, Particle d) -> bool
996  """
997  return _IMP_misc.CustomXYZR___gt__(self, *args)
998 
999  def __hash__(self):
1000  r"""__hash__(CustomXYZR self) -> std::size_t"""
1001  return _IMP_misc.CustomXYZR___hash__(self)
1002 
1003  def __str__(self):
1004  r"""__str__(CustomXYZR self) -> std::string"""
1005  return _IMP_misc.CustomXYZR___str__(self)
1006 
1007  def __repr__(self):
1008  r"""__repr__(CustomXYZR self) -> std::string"""
1009  return _IMP_misc.CustomXYZR___repr__(self)
1010  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1011 
1012 # Register CustomXYZR in _IMP_misc:
1013 _IMP_misc.CustomXYZR_swigregister(CustomXYZR)
1014 
1015 def __lshift__(out, n):
1016  r"""__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1017  return _IMP_misc.__lshift__(out, n)
1018 
1019 def get_distance(a, b):
1020  r"""get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1021  return _IMP_misc.get_distance(a, b)
1022 
1023 def get_sphere_d_geometry(d):
1024  r"""get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1025  return _IMP_misc.get_sphere_d_geometry(d)
1026 
1027 def set_sphere_d_geometry(d, v):
1028  r"""set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1029  return _IMP_misc.set_sphere_d_geometry(d, v)
1030 class SoftCylinderPairScore(IMP.PairScore):
1031  r"""Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1032 
1033  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1034 
1035  def __init__(self, k):
1036  r"""__init__(SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1037  _IMP_misc.SoftCylinderPairScore_swiginit(self, _IMP_misc.new_SoftCylinderPairScore(k))
1038 
1039  def do_get_inputs(self, m, pis):
1040  r"""do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1041  return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1042 
1043  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1044  r"""evaluate_indexes(SoftCylinderPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1045  return _IMP_misc.SoftCylinderPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1046 
1047  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1048  r"""evaluate_indexes_scores(SoftCylinderPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1049  return _IMP_misc.SoftCylinderPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1050 
1051  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1052  r"""evaluate_indexes_delta(SoftCylinderPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1053  return _IMP_misc.SoftCylinderPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
1054 
1055  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
1056  r"""evaluate_if_good_indexes(SoftCylinderPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1057  return _IMP_misc.SoftCylinderPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
1058 
1059  def get_version_info(self):
1060  r"""get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1061  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1062  __swig_destroy__ = _IMP_misc.delete_SoftCylinderPairScore
1063 
1064  def __str__(self):
1065  r"""__str__(SoftCylinderPairScore self) -> std::string"""
1066  return _IMP_misc.SoftCylinderPairScore___str__(self)
1067 
1068  def __repr__(self):
1069  r"""__repr__(SoftCylinderPairScore self) -> std::string"""
1070  return _IMP_misc.SoftCylinderPairScore___repr__(self)
1071 
1072  @staticmethod
1073  def get_from(o):
1074  return _object_cast_to_SoftCylinderPairScore(o)
1075 
1076 
1077 # Register SoftCylinderPairScore in _IMP_misc:
1078 _IMP_misc.SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1079 class DecayPairContainerOptimizerState(IMP.OptimizerState):
1080  r"""Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1081 
1082  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1083 
1084  def __init__(self, *args):
1085  r"""__init__(DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState"""
1086  _IMP_misc.DecayPairContainerOptimizerState_swiginit(self, _IMP_misc.new_DecayPairContainerOptimizerState(*args))
1087 
1088  def get_output_container(self):
1089  r"""get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1090  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1091 
1092  def do_update(self, call_num):
1093  r"""do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1094  return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1095 
1096  def get_version_info(self):
1097  r"""get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1098  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1099  __swig_destroy__ = _IMP_misc.delete_DecayPairContainerOptimizerState
1100 
1101  def __str__(self):
1102  r"""__str__(DecayPairContainerOptimizerState self) -> std::string"""
1103  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1104 
1105  def __repr__(self):
1106  r"""__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1107  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1108 
1109  @staticmethod
1110  def get_from(o):
1111  return _object_cast_to_DecayPairContainerOptimizerState(o)
1112 
1113 
1114 # Register DecayPairContainerOptimizerState in _IMP_misc:
1115 _IMP_misc.DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1116 
1117 def get_module_name():
1118  r"""get_module_name() -> std::string const"""
1119  return _IMP_misc.get_module_name()
1120 
1121 def get_module_version():
1122  r"""get_module_version() -> std::string const"""
1123  return _IMP_misc.get_module_version()
1124 
1125 def get_example_path(fname):
1126  r"""get_example_path(std::string fname) -> std::string"""
1127  return _IMP_misc.get_example_path(fname)
1128 
1129 def get_data_path(fname):
1130  r"""get_data_path(std::string fname) -> std::string"""
1131  return _IMP_misc.get_data_path(fname)
1132 
1133 from . import _version_check
1134 _version_check.check_version(get_module_version())
1135 __version__ = get_module_version()
1136 
1137 
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
Various classes to hold sets of particles.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Definition: CustomXYZR.h:90
Make CGAL functionality available to IMP.
virtual void clear_caches()
Definition: Object.h:270
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:56
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:30
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
Definition: CustomXYZR.h:95
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
Definition: PairPredicate.h:31
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
Definition: Object.h:206
Shared optimizer state that is invoked upon commitment of new coordinates.
void set_check_level(CheckLevel l)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract single variable functor class for score functions.
Definition: UnaryFunction.h:27
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.