IMP logo
IMP Reference Guide  develop.7400db2aee,2024/11/24
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.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-2024 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_rmf
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_RMF_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_RMF_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_rmf.delete_IMP_RMF_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_RMF_SwigPyIterator self) -> PyObject *"""
78  return _IMP_rmf.IMP_RMF_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator"""
82  return _IMP_rmf.IMP_RMF_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator"""
86  return _IMP_rmf.IMP_RMF_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_rmf.IMP_RMF_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
94  return _IMP_rmf.IMP_RMF_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator"""
98  return _IMP_rmf.IMP_RMF_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_RMF_SwigPyIterator self) -> PyObject *"""
102  return _IMP_rmf.IMP_RMF_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_RMF_SwigPyIterator self) -> PyObject *"""
106  return _IMP_rmf.IMP_RMF_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_RMF_SwigPyIterator self) -> PyObject *"""
110  return _IMP_rmf.IMP_RMF_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
114  return _IMP_rmf.IMP_RMF_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
118  return _IMP_rmf.IMP_RMF_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
122  return _IMP_rmf.IMP_RMF_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
126  return _IMP_rmf.IMP_RMF_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
130  return _IMP_rmf.IMP_RMF_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
134  return _IMP_rmf.IMP_RMF_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator
139  __sub__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_rmf.IMP_RMF_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_RMF_SwigPyIterator in _IMP_rmf:
146 _IMP_rmf.IMP_RMF_SwigPyIterator_swigregister(IMP_RMF_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_rmf.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_rmf.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
166 
167 IMP_NONE = _IMP_rmf.IMP_NONE
168 
169 IMP_USAGE = _IMP_rmf.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_rmf.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_rmf.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_rmf.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_rmf.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_rmf._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_rmf:
236 _IMP_rmf._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_rmf.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_rmf.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_rmf.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_rmf.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_rmf.IMP_STATISTICS_HAS_IMP_CGAL
309 
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
311 
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
313 
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_RANDOM
315 
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_SYSTEM
317 
318 IMP_STATISTICS_HAS_CGAL = _IMP_rmf.IMP_STATISTICS_HAS_CGAL
319 
320 IMP_STATISTICS_HAS_NUMPY = _IMP_rmf.IMP_STATISTICS_HAS_NUMPY
321 
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_rmf.IMPSTATISTICS_SHOW_WARNINGS
323 
324 import IMP.statistics
325 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
326 
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
328 
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
330 
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
332 
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
334 
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
336 
337 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
338 
339 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
340 
341 IMP_CORE_HAS_NUMPY = _IMP_rmf.IMP_CORE_HAS_NUMPY
342 
343 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
344 
345 import IMP.core
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
347 
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
349 
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
351 
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
353 
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
355 
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
357 
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
359 
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
361 
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
363 
364 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
365 
366 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
367 
368 IMP_CONTAINER_HAS_NUMPY = _IMP_rmf.IMP_CONTAINER_HAS_NUMPY
369 
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_rmf.IMP_CONTAINER_HAS_PYTHON_IHM
371 
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_rmf.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
373 
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_rmf.IMP_CONTAINER_HAS_ROBIN_MAP
375 
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
377 
378 import IMP.container
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
380 
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
382 
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
384 
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
386 
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
388 
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
390 
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
392 
393 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
394 
395 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
396 
397 IMP_ATOM_HAS_NUMPY = _IMP_rmf.IMP_ATOM_HAS_NUMPY
398 
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_rmf.IMP_ATOM_HAS_PYTHON_IHM
400 
401 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
402 
403 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
404 
405 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
406 
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
408 
409 IMP_CHAIN_TYPE_INDEX = _IMP_rmf.IMP_CHAIN_TYPE_INDEX
410 
411 import IMP.atom
412 IMP_EM_HAS_IMP_CGAL = _IMP_rmf.IMP_EM_HAS_IMP_CGAL
413 
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_rmf.IMP_EM_HAS_IMP_CONTAINER
415 
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_rmf.IMP_EM_HAS_IMP_DISPLAY
417 
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_EM_HAS_IMP_SCORE_FUNCTOR
419 
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_EM_HAS_BOOST_FILESYSTEM
421 
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
423 
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_EM_HAS_BOOST_RANDOM
425 
426 IMP_EM_HAS_BOOST_REGEX = _IMP_rmf.IMP_EM_HAS_BOOST_REGEX
427 
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_EM_HAS_BOOST_SYSTEM
429 
430 IMP_EM_HAS_CGAL = _IMP_rmf.IMP_EM_HAS_CGAL
431 
432 IMP_EM_HAS_HDF5 = _IMP_rmf.IMP_EM_HAS_HDF5
433 
434 IMP_EM_HAS_NUMPY = _IMP_rmf.IMP_EM_HAS_NUMPY
435 
436 IMP_EM_HAS_PYTHON_IHM = _IMP_rmf.IMP_EM_HAS_PYTHON_IHM
437 
438 IMPEM_SHOW_WARNINGS = _IMP_rmf.IMPEM_SHOW_WARNINGS
439 
440 import IMP.em
441 IMP_SAXS_HAS_IMP_CGAL = _IMP_rmf.IMP_SAXS_HAS_IMP_CGAL
442 
443 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_rmf.IMP_SAXS_HAS_IMP_CONTAINER
444 
445 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_rmf.IMP_SAXS_HAS_IMP_DISPLAY
446 
447 IMP_SAXS_HAS_IMP_KERNEL = _IMP_rmf.IMP_SAXS_HAS_IMP_KERNEL
448 
449 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
450 
451 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SAXS_HAS_BOOST_FILESYSTEM
452 
453 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
454 
455 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SAXS_HAS_BOOST_RANDOM
456 
457 IMP_SAXS_HAS_BOOST_REGEX = _IMP_rmf.IMP_SAXS_HAS_BOOST_REGEX
458 
459 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SAXS_HAS_BOOST_SYSTEM
460 
461 IMP_SAXS_HAS_CGAL = _IMP_rmf.IMP_SAXS_HAS_CGAL
462 
463 IMP_SAXS_HAS_HDF5 = _IMP_rmf.IMP_SAXS_HAS_HDF5
464 
465 IMP_SAXS_HAS_NUMPY = _IMP_rmf.IMP_SAXS_HAS_NUMPY
466 
467 IMP_SAXS_HAS_PYTHON_IHM = _IMP_rmf.IMP_SAXS_HAS_PYTHON_IHM
468 
469 IMPSAXS_SHOW_WARNINGS = _IMP_rmf.IMPSAXS_SHOW_WARNINGS
470 
471 import IMP.saxs
472 IMP_ISD_HAS_IMP_CGAL = _IMP_rmf.IMP_ISD_HAS_IMP_CGAL
473 
474 IMP_ISD_HAS_IMP_DISPLAY = _IMP_rmf.IMP_ISD_HAS_IMP_DISPLAY
475 
476 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
477 
478 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ISD_HAS_BOOST_FILESYSTEM
479 
480 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
481 
482 IMP_ISD_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ISD_HAS_BOOST_RANDOM
483 
484 IMP_ISD_HAS_BOOST_REGEX = _IMP_rmf.IMP_ISD_HAS_BOOST_REGEX
485 
486 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ISD_HAS_BOOST_SYSTEM
487 
488 IMP_ISD_HAS_CGAL = _IMP_rmf.IMP_ISD_HAS_CGAL
489 
490 IMP_ISD_HAS_HDF5 = _IMP_rmf.IMP_ISD_HAS_HDF5
491 
492 IMP_ISD_HAS_NUMPY = _IMP_rmf.IMP_ISD_HAS_NUMPY
493 
494 IMP_ISD_HAS_PYTHON_IHM = _IMP_rmf.IMP_ISD_HAS_PYTHON_IHM
495 
496 IMPISD_SHOW_WARNINGS = _IMP_rmf.IMPISD_SHOW_WARNINGS
497 
498 import IMP.isd
499 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
500 
501 IMP_RMF_HAS_IMP_EM = _IMP_rmf.IMP_RMF_HAS_IMP_EM
502 
503 IMP_RMF_HAS_IMP_SAXS = _IMP_rmf.IMP_RMF_HAS_IMP_SAXS
504 
505 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
506 
507 IMP_RMF_HAS_IMP_STATISTICS = _IMP_rmf.IMP_RMF_HAS_IMP_STATISTICS
508 
509 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
510 
511 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
512 
513 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
514 
515 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
516 
517 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
518 
519 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
520 
521 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
522 
523 IMP_RMF_HAS_NUMPY = _IMP_rmf.IMP_RMF_HAS_NUMPY
524 
525 IMP_RMF_HAS_PYTHON_IHM = _IMP_rmf.IMP_RMF_HAS_PYTHON_IHM
526 
527 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
528 
529 import RMF
530 
531 _object_types.append("SaveOptimizerState")
532 
533 
534 def _object_cast_to_SaveOptimizerState(o):
535  r"""_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
536  return _IMP_rmf._object_cast_to_SaveOptimizerState(o)
537 
538 _object_types.append("LoadLink")
539 
540 
541 def _object_cast_to_LoadLink(o):
542  r"""_object_cast_to_LoadLink(Object o) -> LoadLink"""
543  return _IMP_rmf._object_cast_to_LoadLink(o)
544 
545 _object_types.append("SaveLink")
546 
547 
548 def _object_cast_to_SaveLink(o):
549  r"""_object_cast_to_SaveLink(Object o) -> SaveLink"""
550  return _IMP_rmf._object_cast_to_SaveLink(o)
551 
552 _object_types.append("HierarchySaveLink")
553 
554 
555 def _object_cast_to_HierarchySaveLink(o):
556  r"""_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
557  return _IMP_rmf._object_cast_to_HierarchySaveLink(o)
558 
559 _object_types.append("HierarchyLoadLink")
560 
561 
562 def _object_cast_to_HierarchyLoadLink(o):
563  r"""_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
564  return _IMP_rmf._object_cast_to_HierarchyLoadLink(o)
565 class LoadLink(IMP.Object):
566  r"""Proxy of C++ IMP::rmf::LoadLink class."""
567 
568  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
569 
570  def do_load(self, fh):
571  r"""do_load(LoadLink self, FileConstHandle fh)"""
572  return _IMP_rmf.LoadLink_do_load(self, fh)
573 
574  def __init__(self, name):
575  r"""__init__(LoadLink self, std::string name) -> LoadLink"""
576  if self.__class__ == LoadLink:
577  _self = None
578  else:
579  _self = self
580  _IMP_rmf.LoadLink_swiginit(self, _IMP_rmf.new_LoadLink(_self, name))
581 
582  if self.__class__ != LoadLink:
583  _director_objects.register(self)
584 
585 
586 
587 
588  def load(self, fh):
589  r"""load(LoadLink self, FileConstHandle fh)"""
590  return _IMP_rmf.LoadLink_load(self, fh)
591  __swig_destroy__ = _IMP_rmf.delete_LoadLink
592 
593  def __str__(self):
594  r"""__str__(LoadLink self) -> std::string"""
595  return _IMP_rmf.LoadLink___str__(self)
596 
597  def __repr__(self):
598  r"""__repr__(LoadLink self) -> std::string"""
599  return _IMP_rmf.LoadLink___repr__(self)
600 
601  @staticmethod
602  def get_from(o):
603  return _object_cast_to_LoadLink(o)
604 
605 
606  def get_type_name(self):
607  return self.__class__.__name__
608  def do_show(self, out):
609  pass
610  def get_version_info(self):
611  if"IMP::rmf" == "IMP":
612  return VersionInfo(self.__module__,
613  __import__(self.__module__).get_module_version())
614  else:
615  return IMP.VersionInfo(self.__module__,
616  __import__(self.__module__).get_module_version())
617  @staticmethod
618  def get_from(o):
619  return _object_cast_to_LoadLink(o)
620 
621  def __disown__(self):
622  self.this.disown()
623  _IMP_rmf.disown_LoadLink(self)
624  return weakref.proxy(self)
625 
626  def do_destroy(self):
627  r"""do_destroy(LoadLink self)"""
628  return _IMP_rmf.LoadLink_do_destroy(self)
629 
630 # Register LoadLink in _IMP_rmf:
631 _IMP_rmf.LoadLink_swigregister(LoadLink)
632 class SaveLink(IMP.Object):
633  r"""Proxy of C++ IMP::rmf::SaveLink class."""
634 
635  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
636 
637  def do_save(self, hf):
638  r"""do_save(SaveLink self, FileHandle hf)"""
639  return _IMP_rmf.SaveLink_do_save(self, hf)
640 
641  def __init__(self, name):
642  r"""__init__(SaveLink self, std::string name) -> SaveLink"""
643  if self.__class__ == SaveLink:
644  _self = None
645  else:
646  _self = self
647  _IMP_rmf.SaveLink_swiginit(self, _IMP_rmf.new_SaveLink(_self, name))
648 
649  if self.__class__ != SaveLink:
650  _director_objects.register(self)
651 
652 
653 
654 
655  def save(self, fh):
656  r"""save(SaveLink self, FileHandle fh)"""
657  return _IMP_rmf.SaveLink_save(self, fh)
658  __swig_destroy__ = _IMP_rmf.delete_SaveLink
659 
660  def __str__(self):
661  r"""__str__(SaveLink self) -> std::string"""
662  return _IMP_rmf.SaveLink___str__(self)
663 
664  def __repr__(self):
665  r"""__repr__(SaveLink self) -> std::string"""
666  return _IMP_rmf.SaveLink___repr__(self)
667 
668  @staticmethod
669  def get_from(o):
670  return _object_cast_to_SaveLink(o)
671 
672 
673  def get_type_name(self):
674  return self.__class__.__name__
675  def do_show(self, out):
676  pass
677  def get_version_info(self):
678  if"IMP::rmf" == "IMP":
679  return VersionInfo(self.__module__,
680  __import__(self.__module__).get_module_version())
681  else:
682  return IMP.VersionInfo(self.__module__,
683  __import__(self.__module__).get_module_version())
684  @staticmethod
685  def get_from(o):
686  return _object_cast_to_SaveLink(o)
687 
688  def __disown__(self):
689  self.this.disown()
690  _IMP_rmf.disown_SaveLink(self)
691  return weakref.proxy(self)
692 
693  def do_destroy(self):
694  r"""do_destroy(SaveLink self)"""
695  return _IMP_rmf.SaveLink_do_destroy(self)
696 
697 # Register SaveLink in _IMP_rmf:
698 _IMP_rmf.SaveLink_swigregister(SaveLink)
699 
700 def add_hierarchies(*args):
701  r"""
702  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
703  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
704  """
705  return _IMP_rmf.add_hierarchies(*args)
706 
707 def add_hierarchy(fh, hs):
708  r"""add_hierarchy(FileHandle fh, Hierarchy hs)"""
709  return _IMP_rmf.add_hierarchy(fh, hs)
710 
711 def create_hierarchies(fh, m):
712  r"""create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
713  return _IMP_rmf.create_hierarchies(fh, m)
714 
715 def link_hierarchies(fh, hs):
716  r"""link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
717  return _IMP_rmf.link_hierarchies(fh, hs)
718 
719 def add_restraints(*args):
720  r"""
721  add_restraints(FileHandle fh, IMP::Restraints const & hs)
722  add_restraints(NodeHandle fh, IMP::Restraints const & hs)
723  """
724  return _IMP_rmf.add_restraints(*args)
725 
726 def add_restraint(fh, hs):
727  r"""add_restraint(FileHandle fh, Restraint hs)"""
728  return _IMP_rmf.add_restraint(fh, hs)
729 
730 def create_restraints(fh, m):
731  r"""create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
732  return _IMP_rmf.create_restraints(fh, m)
733 
734 def link_restraints(fh, hs):
735  r"""link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
736  return _IMP_rmf.link_restraints(fh, hs)
737 
738 def add_restraints_as_bonds(fh, rs):
739  r"""add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
740  return _IMP_rmf.add_restraints_as_bonds(fh, rs)
741 
742 def set_maximum_number_of_terms(fh, num):
743  r"""set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
744  return _IMP_rmf.set_maximum_number_of_terms(fh, num)
745 
746 def add_particles(*args):
747  r"""
748  add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
749  add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
750  """
751  return _IMP_rmf.add_particles(*args)
752 
753 def add_particle(fh, hs):
754  r"""add_particle(FileHandle fh, Particle hs)"""
755  return _IMP_rmf.add_particle(fh, hs)
756 
757 def create_particles(fh, m):
758  r"""create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
759  return _IMP_rmf.create_particles(fh, m)
760 
761 def link_particles(fh, hs):
762  r"""link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
763  return _IMP_rmf.link_particles(fh, hs)
764 
765 def add_geometries(*args):
766  r"""
767  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
768  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
769  """
770  return _IMP_rmf.add_geometries(*args)
771 
772 def add_static_geometries(parent, r):
773  r"""add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
774  return _IMP_rmf.add_static_geometries(parent, r)
775 
776 def add_geometry(file, r):
777  r"""add_geometry(FileHandle file, Geometry r)"""
778  return _IMP_rmf.add_geometry(file, r)
779 
780 def create_geometries(parent):
781  r"""create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
782  return _IMP_rmf.create_geometries(parent)
783 
784 def link_geometries(parent, r):
785  r"""link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
786  return _IMP_rmf.link_geometries(parent, r)
787 
788 def set_association(nh, o, overwrite=False):
789  r"""set_association(NodeConstHandle nh, Object o, bool overwrite=False)"""
790  return _IMP_rmf.set_association(nh, o, overwrite)
791 
792 def get_node_from_association(*args):
793  r"""
794  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
795  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
796  """
797  return _IMP_rmf.get_node_from_association(*args)
798 
799 def get_has_associated_node(nh, oi):
800  r"""get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
801  return _IMP_rmf.get_has_associated_node(nh, oi)
802 class SaveOptimizerState(IMP.OptimizerState):
803  r"""Proxy of C++ IMP::rmf::SaveOptimizerState class."""
804 
805  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
806 
807  def __init__(self, m, fh):
808  r"""__init__(SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
809  _IMP_rmf.SaveOptimizerState_swiginit(self, _IMP_rmf.new_SaveOptimizerState(m, fh))
810  def __get_hierarchies(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_hierarchies, getfunc=self.get_hierarchy, erasefunc=self.erase_hierarchy, appendfunc=self.add_hierarchy, extendfunc=self.add_hierarchies, clearfunc=self.clear_hierarchies, indexfunc=self._python_index_hierarchy)
811  def __set_hierarchies(self, obj): IMP._list_util.set_varlist(self.hierarchies, obj)
812  def __del_hierarchies(self): IMP._list_util.del_varlist(self.hierarchies)
813  hierarchies = property(__get_hierarchies, __set_hierarchies, __del_hierarchies, doc="List of ##ucnames")
814 
815  def remove_hierarchy(self, d):
816  r"""remove_hierarchy(SaveOptimizerState self, Particle d)"""
817  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
818 
819  def _python_index_hierarchy(self, d, start, stop):
820  r"""_python_index_hierarchy(SaveOptimizerState self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
821  return _IMP_rmf.SaveOptimizerState__python_index_hierarchy(self, d, start, stop)
822 
823  def remove_hierarchies(self, d):
824  r"""remove_hierarchies(SaveOptimizerState self, IMP::Particles const & d)"""
825  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, d)
826 
827  def set_hierarchies(self, ps):
828  r"""set_hierarchies(SaveOptimizerState self, IMP::Particles const & ps)"""
829  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, ps)
830 
831  def set_hierarchies_order(self, objs):
832  r"""set_hierarchies_order(SaveOptimizerState self, IMP::Particles const & objs)"""
833  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, objs)
834 
835  def add_hierarchy(self, obj):
836  r"""add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
837  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
838 
839  def add_hierarchies(self, objs):
840  r"""add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
841  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
842 
843  def clear_hierarchies(self):
844  r"""clear_hierarchies(SaveOptimizerState self)"""
845  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
846 
847  def get_number_of_hierarchies(self):
848  r"""get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
849  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
850 
851  def get_has_hierarchies(self):
852  r"""get_has_hierarchies(SaveOptimizerState self) -> bool"""
853  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
854 
855  def get_hierarchy(self, i):
856  r"""get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
857  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, i)
858 
859  def get_hierarchies(self):
860  r"""get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
861  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
862 
863  def erase_hierarchy(self, i):
864  r"""erase_hierarchy(SaveOptimizerState self, unsigned int i)"""
865  return _IMP_rmf.SaveOptimizerState_erase_hierarchy(self, i)
866 
867  def reserve_hierarchies(self, sz):
868  r"""reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
869  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, sz)
870  def __get_restraints(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
871  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
872  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
873  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
874 
875  def remove_restraint(self, d):
876  r"""remove_restraint(SaveOptimizerState self, Restraint d)"""
877  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
878 
879  def _python_index_restraint(self, d, start, stop):
880  r"""_python_index_restraint(SaveOptimizerState self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
881  return _IMP_rmf.SaveOptimizerState__python_index_restraint(self, d, start, stop)
882 
883  def remove_restraints(self, d):
884  r"""remove_restraints(SaveOptimizerState self, IMP::Restraints const & d)"""
885  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, d)
886 
887  def set_restraints(self, ps):
888  r"""set_restraints(SaveOptimizerState self, IMP::Restraints const & ps)"""
889  return _IMP_rmf.SaveOptimizerState_set_restraints(self, ps)
890 
891  def set_restraints_order(self, objs):
892  r"""set_restraints_order(SaveOptimizerState self, IMP::Restraints const & objs)"""
893  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, objs)
894 
895  def add_restraint(self, obj):
896  r"""add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
897  return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
898 
899  def add_restraints(self, objs):
900  r"""add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
901  return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
902 
903  def clear_restraints(self):
904  r"""clear_restraints(SaveOptimizerState self)"""
905  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
906 
907  def get_number_of_restraints(self):
908  r"""get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
909  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
910 
911  def get_has_restraints(self):
912  r"""get_has_restraints(SaveOptimizerState self) -> bool"""
913  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
914 
915  def get_restraint(self, i):
916  r"""get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
917  return _IMP_rmf.SaveOptimizerState_get_restraint(self, i)
918 
919  def get_restraints(self):
920  r"""get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
921  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
922 
923  def erase_restraint(self, i):
924  r"""erase_restraint(SaveOptimizerState self, unsigned int i)"""
925  return _IMP_rmf.SaveOptimizerState_erase_restraint(self, i)
926 
927  def reserve_restraints(self, sz):
928  r"""reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
929  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, sz)
930  def __get_particles(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_particles, getfunc=self.get_particle, erasefunc=self.erase_particle, appendfunc=self.add_particle, extendfunc=self.add_particles, clearfunc=self.clear_particles, indexfunc=self._python_index_particle)
931  def __set_particles(self, obj): IMP._list_util.set_varlist(self.particles, obj)
932  def __del_particles(self): IMP._list_util.del_varlist(self.particles)
933  particles = property(__get_particles, __set_particles, __del_particles, doc="List of ##ucnames")
934 
935  def remove_particle(self, d):
936  r"""remove_particle(SaveOptimizerState self, Particle d)"""
937  return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
938 
939  def _python_index_particle(self, d, start, stop):
940  r"""_python_index_particle(SaveOptimizerState self, Particle d, unsigned int start, unsigned int stop) -> unsigned int"""
941  return _IMP_rmf.SaveOptimizerState__python_index_particle(self, d, start, stop)
942 
943  def remove_particles(self, d):
944  r"""remove_particles(SaveOptimizerState self, IMP::Particles const & d)"""
945  return _IMP_rmf.SaveOptimizerState_remove_particles(self, d)
946 
947  def set_particles(self, ps):
948  r"""set_particles(SaveOptimizerState self, IMP::Particles const & ps)"""
949  return _IMP_rmf.SaveOptimizerState_set_particles(self, ps)
950 
951  def set_particles_order(self, objs):
952  r"""set_particles_order(SaveOptimizerState self, IMP::Particles const & objs)"""
953  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, objs)
954 
955  def add_particle(self, obj):
956  r"""add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
957  return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
958 
959  def add_particles(self, objs):
960  r"""add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
961  return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
962 
963  def clear_particles(self):
964  r"""clear_particles(SaveOptimizerState self)"""
965  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
966 
967  def get_number_of_particles(self):
968  r"""get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
969  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
970 
971  def get_has_particles(self):
972  r"""get_has_particles(SaveOptimizerState self) -> bool"""
973  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
974 
975  def get_particle(self, i):
976  r"""get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
977  return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
978 
979  def get_particles(self):
980  r"""get_particles(SaveOptimizerState self) -> IMP::Particles"""
981  return _IMP_rmf.SaveOptimizerState_get_particles(self)
982 
983  def erase_particle(self, i):
984  r"""erase_particle(SaveOptimizerState self, unsigned int i)"""
985  return _IMP_rmf.SaveOptimizerState_erase_particle(self, i)
986 
987  def reserve_particles(self, sz):
988  r"""reserve_particles(SaveOptimizerState self, unsigned int sz)"""
989  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, sz)
990  def __get_geometries(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_geometries, getfunc=self.get_geometry, erasefunc=self.erase_geometry, appendfunc=self.add_geometry, extendfunc=self.add_geometries, clearfunc=self.clear_geometries, indexfunc=self._python_index_geometry)
991  def __set_geometries(self, obj): IMP._list_util.set_varlist(self.geometries, obj)
992  def __del_geometries(self): IMP._list_util.del_varlist(self.geometries)
993  geometries = property(__get_geometries, __set_geometries, __del_geometries, doc="List of ##ucnames")
994 
995  def remove_geometry(self, d):
996  r"""remove_geometry(SaveOptimizerState self, Geometry d)"""
997  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
998 
999  def _python_index_geometry(self, d, start, stop):
1000  r"""_python_index_geometry(SaveOptimizerState self, Geometry d, unsigned int start, unsigned int stop) -> unsigned int"""
1001  return _IMP_rmf.SaveOptimizerState__python_index_geometry(self, d, start, stop)
1002 
1003  def remove_geometries(self, d):
1004  r"""remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
1005  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, d)
1006 
1007  def set_geometries(self, ps):
1008  r"""set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
1009  return _IMP_rmf.SaveOptimizerState_set_geometries(self, ps)
1010 
1011  def set_geometries_order(self, objs):
1012  r"""set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
1013  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, objs)
1014 
1015  def add_geometry(self, obj):
1016  r"""add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
1017  return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
1018 
1019  def add_geometries(self, objs):
1020  r"""add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
1021  return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
1022 
1023  def clear_geometries(self):
1024  r"""clear_geometries(SaveOptimizerState self)"""
1025  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
1026 
1027  def get_number_of_geometries(self):
1028  r"""get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
1029  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
1030 
1031  def get_has_geometries(self):
1032  r"""get_has_geometries(SaveOptimizerState self) -> bool"""
1033  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
1034 
1035  def get_geometry(self, i):
1036  r"""get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
1037  return _IMP_rmf.SaveOptimizerState_get_geometry(self, i)
1038 
1039  def get_geometries(self):
1040  r"""get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
1041  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
1042 
1043  def erase_geometry(self, i):
1044  r"""erase_geometry(SaveOptimizerState self, unsigned int i)"""
1045  return _IMP_rmf.SaveOptimizerState_erase_geometry(self, i)
1046 
1047  def reserve_geometries(self, sz):
1048  r"""reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
1049  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
1050 
1051  def set_simulator(self, sim):
1052  r"""set_simulator(SaveOptimizerState self, Simulator sim)"""
1053  return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
1054 
1055  def update_always(self, *args):
1056  r"""
1057  update_always(SaveOptimizerState self, std::string name)
1058  update_always(SaveOptimizerState self)
1059  """
1060  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
1061 
1062  def do_update(self, call_num):
1063  r"""do_update(SaveOptimizerState self, unsigned int call_num)"""
1064  return _IMP_rmf.SaveOptimizerState_do_update(self, call_num)
1065 
1066  def get_version_info(self):
1067  r"""get_version_info(SaveOptimizerState self) -> VersionInfo"""
1068  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
1069  __swig_destroy__ = _IMP_rmf.delete_SaveOptimizerState
1070 
1071  def __str__(self):
1072  r"""__str__(SaveOptimizerState self) -> std::string"""
1073  return _IMP_rmf.SaveOptimizerState___str__(self)
1074 
1075  def __repr__(self):
1076  r"""__repr__(SaveOptimizerState self) -> std::string"""
1077  return _IMP_rmf.SaveOptimizerState___repr__(self)
1078 
1079  @staticmethod
1080  def get_from(o):
1081  return _object_cast_to_SaveOptimizerState(o)
1082 
1083 
1084 # Register SaveOptimizerState in _IMP_rmf:
1085 _IMP_rmf.SaveOptimizerState_swigregister(SaveOptimizerState)
1086 
1087 def load_frame(file, frame):
1088  r"""load_frame(FileConstHandle file, FrameID frame)"""
1089  return _IMP_rmf.load_frame(file, frame)
1090 
1091 def save_frame(*args):
1092  r"""save_frame(FileHandle file, std::string name="") -> FrameID"""
1093  return _IMP_rmf.save_frame(*args)
1094 class _ParticleSaveLink(SaveLink):
1095  r"""Proxy of C++ IMP::rmf::SimpleSaveLink< IMP::Particle > class."""
1096 
1097  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1098 
1099  def __init__(self, *args, **kwargs):
1100  raise AttributeError("No constructor defined - class is abstract")
1101  __repr__ = _swig_repr
1102 
1103  def add(self, parent, os):
1104  r"""add(_ParticleSaveLink self, NodeHandle parent, IMP::Vector< Pointer< IMP::Particle > > const & os)"""
1105  return _IMP_rmf._ParticleSaveLink_add(self, parent, os)
1106  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
1107 
1108 # Register _ParticleSaveLink in _IMP_rmf:
1109 _IMP_rmf._ParticleSaveLink_swigregister(_ParticleSaveLink)
1110 class _ParticleLoadLink(LoadLink):
1111  r"""Proxy of C++ IMP::rmf::SimpleLoadLink< IMP::Particle > class."""
1112 
1113  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1114 
1115  def __init__(self, *args, **kwargs):
1116  raise AttributeError("No constructor defined - class is abstract")
1117  __repr__ = _swig_repr
1118 
1119  def create(self, *args):
1120  r"""
1121  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
1122  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
1123  """
1124  return _IMP_rmf._ParticleLoadLink_create(self, *args)
1125 
1126  def link(self, rt, ps):
1127  r"""link(_ParticleLoadLink self, NodeConstHandle rt, IMP::Vector< Pointer< IMP::Particle > > const & ps)"""
1128  return _IMP_rmf._ParticleLoadLink_link(self, rt, ps)
1129  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
1130 
1131 # Register _ParticleLoadLink in _IMP_rmf:
1132 _IMP_rmf._ParticleLoadLink_swigregister(_ParticleLoadLink)
1133 class HierarchyLoadLink(_ParticleLoadLink):
1134  r"""Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1135 
1136  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1137 
1138  def __init__(self, fh):
1139  r"""__init__(HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1140  _IMP_rmf.HierarchyLoadLink_swiginit(self, _IMP_rmf.new_HierarchyLoadLink(fh))
1141 
1142  @staticmethod
1143  def get_name():
1144  r"""get_name() -> char const *"""
1145  return _IMP_rmf.HierarchyLoadLink_get_name()
1146 
1147  def get_version_info(self):
1148  r"""get_version_info(HierarchyLoadLink self) -> VersionInfo"""
1149  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
1150  __swig_destroy__ = _IMP_rmf.delete_HierarchyLoadLink
1151 
1152  def __str__(self):
1153  r"""__str__(HierarchyLoadLink self) -> std::string"""
1154  return _IMP_rmf.HierarchyLoadLink___str__(self)
1155 
1156  def __repr__(self):
1157  r"""__repr__(HierarchyLoadLink self) -> std::string"""
1158  return _IMP_rmf.HierarchyLoadLink___repr__(self)
1159 
1160  @staticmethod
1161  def get_from(o):
1162  return _object_cast_to_HierarchyLoadLink(o)
1163 
1164 
1165 # Register HierarchyLoadLink in _IMP_rmf:
1166 _IMP_rmf.HierarchyLoadLink_swigregister(HierarchyLoadLink)
1167 class HierarchySaveLink(_ParticleSaveLink):
1168  r"""Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1169 
1170  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1171 
1172  def __init__(self, fh):
1173  r"""__init__(HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1174  _IMP_rmf.HierarchySaveLink_swiginit(self, _IMP_rmf.new_HierarchySaveLink(fh))
1175 
1176  @staticmethod
1177  def get_name():
1178  r"""get_name() -> char const *"""
1179  return _IMP_rmf.HierarchySaveLink_get_name()
1180 
1181  def get_version_info(self):
1182  r"""get_version_info(HierarchySaveLink self) -> VersionInfo"""
1183  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
1184  __swig_destroy__ = _IMP_rmf.delete_HierarchySaveLink
1185 
1186  def __str__(self):
1187  r"""__str__(HierarchySaveLink self) -> std::string"""
1188  return _IMP_rmf.HierarchySaveLink___str__(self)
1189 
1190  def __repr__(self):
1191  r"""__repr__(HierarchySaveLink self) -> std::string"""
1192  return _IMP_rmf.HierarchySaveLink___repr__(self)
1193 
1194  @staticmethod
1195  def get_from(o):
1196  return _object_cast_to_HierarchySaveLink(o)
1197 
1198 
1199 # Register HierarchySaveLink in _IMP_rmf:
1200 _IMP_rmf.HierarchySaveLink_swigregister(HierarchySaveLink)
1201 
1202 suffixes = [".rmf", ".rmfz"]
1203 
1204 
1205 def get_module_version():
1206  r"""get_module_version() -> std::string const"""
1207  return _IMP_rmf.get_module_version()
1208 
1209 def get_example_path(fname):
1210  r"""get_example_path(std::string fname) -> std::string"""
1211  return _IMP_rmf.get_example_path(fname)
1212 
1213 def get_data_path(fname):
1214  r"""get_data_path(std::string fname) -> std::string"""
1215  return _IMP_rmf.get_data_path(fname)
1216 
1217 from . import _version_check
1218 _version_check.check_version(get_module_version())
1219 __version__ = get_module_version()
1220 
1221 
void link_particles(RMF::FileConstHandle fh, const ParticlesTemp &hs)
display::Geometries create_geometries(RMF::FileConstHandle parent)
Create geometry objects for the geometry nodes found in the file.
ParticlesTemp create_particles(RMF::FileConstHandle fh, Model *m)
atom::Hierarchies create_hierarchies(RMF::FileConstHandle fh, Model *m)
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Various classes to hold sets of particles.
void add_restraints_as_bonds(RMF::FileHandle fh, const Restraints &rs)
Add a list of restraints to the file as (static) bonds.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
std::string get_module_version()
Return the version of this module, as a string.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void link_restraints(RMF::FileConstHandle fh, const Restraints &hs)
void add_particle(RMF::FileHandle fh, Particle *hs)
void add_hierarchies(RMF::FileHandle fh, const atom::Hierarchies &hs)
Composable functors to implement scores via compile-time composition.
Code to compute statistical measures.
void add_restraint(RMF::FileHandle fh, Restraint *hs)
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
Common base class for heavy weight IMP objects.
Definition: Object.h:111
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void link_geometries(RMF::FileConstHandle parent, const display::GeometriesTemp &r)
Link the passed geometry objects to corresponding ones in the file.
Version and module information for Objects.
Definition: VersionInfo.h:29
Basic utilities for handling cryo-electron microscopy 3D density maps.
void load_frame(RMF::FileConstHandle file, RMF::FrameID frame)
Load the given RMF frame into the state of the linked objects.
Particle * get_particle() const
Returns the particle decorated by this decorator.
Definition: Decorator.h:194
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
Limit the number of restraint terms.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
Shared optimizer state that is invoked upon commitment of new coordinates.
void link_hierarchies(RMF::FileConstHandle fh, const atom::Hierarchies &hs)
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_static_geometries(RMF::FileHandle parent, const display::GeometriesTemp &r)
Add geometries, assuming they do not move between frames.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for small angle X-ray scattering (SAXS) data.
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...