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