14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
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):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
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"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
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__)
66 class IMP_RMF_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_RMF_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_rmf.delete_IMP_RMF_SwigPyIterator
77 r"""value(IMP_RMF_SwigPyIterator self) -> PyObject *"""
78 return _IMP_rmf.IMP_RMF_SwigPyIterator_value(self)
81 r"""incr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator"""
82 return _IMP_rmf.IMP_RMF_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator"""
86 return _IMP_rmf.IMP_RMF_SwigPyIterator_decr(self, n)
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)
93 r"""equal(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
94 return _IMP_rmf.IMP_RMF_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator"""
98 return _IMP_rmf.IMP_RMF_SwigPyIterator_copy(self)
101 r"""next(IMP_RMF_SwigPyIterator self) -> PyObject *"""
102 return _IMP_rmf.IMP_RMF_SwigPyIterator_next(self)
105 r"""__next__(IMP_RMF_SwigPyIterator self) -> PyObject *"""
106 return _IMP_rmf.IMP_RMF_SwigPyIterator___next__(self)
109 r"""previous(IMP_RMF_SwigPyIterator self) -> PyObject *"""
110 return _IMP_rmf.IMP_RMF_SwigPyIterator_previous(self)
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)
117 r"""__eq__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
118 return _IMP_rmf.IMP_RMF_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
122 return _IMP_rmf.IMP_RMF_SwigPyIterator___ne__(self, x)
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)
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)
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)
136 def __sub__(self, *args):
138 __sub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator
139 __sub__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_rmf.IMP_RMF_SwigPyIterator___sub__(self, *args)
146 _IMP_rmf.IMP_RMF_SwigPyIterator_swigregister(IMP_RMF_SwigPyIterator)
153 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
155 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
157 IMP_SILENT = _IMP_rmf.IMP_SILENT
159 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
161 IMP_TERSE = _IMP_rmf.IMP_TERSE
163 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
165 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
167 IMP_NONE = _IMP_rmf.IMP_NONE
169 IMP_USAGE = _IMP_rmf.IMP_USAGE
171 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_rmf.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_rmf.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_rmf.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_rmf.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
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)
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]
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()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_rmf._ostream_write(self, osa_buf)
236 _IMP_rmf._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_rmf.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_rmf.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_rmf.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_rmf.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_rmf.IMP_STATISTICS_HAS_IMP_CGAL
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_RANDOM
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_STATISTICS_HAS_BOOST_SYSTEM
318 IMP_STATISTICS_HAS_CGAL = _IMP_rmf.IMP_STATISTICS_HAS_CGAL
320 IMP_STATISTICS_HAS_NUMPY = _IMP_rmf.IMP_STATISTICS_HAS_NUMPY
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_rmf.IMPSTATISTICS_SHOW_WARNINGS
325 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
337 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
339 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
341 IMP_CORE_HAS_NUMPY = _IMP_rmf.IMP_CORE_HAS_NUMPY
343 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
364 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
366 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
368 IMP_CONTAINER_HAS_NUMPY = _IMP_rmf.IMP_CONTAINER_HAS_NUMPY
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_rmf.IMP_CONTAINER_HAS_PYTHON_IHM
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_rmf.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_rmf.IMP_CONTAINER_HAS_ROBIN_MAP
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
393 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
395 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
397 IMP_ATOM_HAS_NUMPY = _IMP_rmf.IMP_ATOM_HAS_NUMPY
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_rmf.IMP_ATOM_HAS_PYTHON_IHM
401 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
403 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
405 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
409 IMP_CHAIN_TYPE_INDEX = _IMP_rmf.IMP_CHAIN_TYPE_INDEX
412 IMP_EM_HAS_IMP_CGAL = _IMP_rmf.IMP_EM_HAS_IMP_CGAL
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_rmf.IMP_EM_HAS_IMP_CONTAINER
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_rmf.IMP_EM_HAS_IMP_DISPLAY
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_EM_HAS_IMP_SCORE_FUNCTOR
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_EM_HAS_BOOST_FILESYSTEM
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_EM_HAS_BOOST_RANDOM
426 IMP_EM_HAS_BOOST_REGEX = _IMP_rmf.IMP_EM_HAS_BOOST_REGEX
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_EM_HAS_BOOST_SYSTEM
430 IMP_EM_HAS_CGAL = _IMP_rmf.IMP_EM_HAS_CGAL
432 IMP_EM_HAS_HDF5 = _IMP_rmf.IMP_EM_HAS_HDF5
434 IMP_EM_HAS_NUMPY = _IMP_rmf.IMP_EM_HAS_NUMPY
436 IMP_EM_HAS_PYTHON_IHM = _IMP_rmf.IMP_EM_HAS_PYTHON_IHM
438 IMPEM_SHOW_WARNINGS = _IMP_rmf.IMPEM_SHOW_WARNINGS
441 IMP_SAXS_HAS_IMP_CGAL = _IMP_rmf.IMP_SAXS_HAS_IMP_CGAL
443 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_rmf.IMP_SAXS_HAS_IMP_CONTAINER
445 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_rmf.IMP_SAXS_HAS_IMP_DISPLAY
447 IMP_SAXS_HAS_IMP_KERNEL = _IMP_rmf.IMP_SAXS_HAS_IMP_KERNEL
449 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
451 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SAXS_HAS_BOOST_FILESYSTEM
453 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
455 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SAXS_HAS_BOOST_RANDOM
457 IMP_SAXS_HAS_BOOST_REGEX = _IMP_rmf.IMP_SAXS_HAS_BOOST_REGEX
459 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SAXS_HAS_BOOST_SYSTEM
461 IMP_SAXS_HAS_CGAL = _IMP_rmf.IMP_SAXS_HAS_CGAL
463 IMP_SAXS_HAS_HDF5 = _IMP_rmf.IMP_SAXS_HAS_HDF5
465 IMP_SAXS_HAS_NUMPY = _IMP_rmf.IMP_SAXS_HAS_NUMPY
467 IMP_SAXS_HAS_PYTHON_IHM = _IMP_rmf.IMP_SAXS_HAS_PYTHON_IHM
469 IMPSAXS_SHOW_WARNINGS = _IMP_rmf.IMPSAXS_SHOW_WARNINGS
472 IMP_ISD_HAS_IMP_CGAL = _IMP_rmf.IMP_ISD_HAS_IMP_CGAL
474 IMP_ISD_HAS_IMP_DISPLAY = _IMP_rmf.IMP_ISD_HAS_IMP_DISPLAY
476 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
478 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ISD_HAS_BOOST_FILESYSTEM
480 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
482 IMP_ISD_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ISD_HAS_BOOST_RANDOM
484 IMP_ISD_HAS_BOOST_REGEX = _IMP_rmf.IMP_ISD_HAS_BOOST_REGEX
486 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ISD_HAS_BOOST_SYSTEM
488 IMP_ISD_HAS_CGAL = _IMP_rmf.IMP_ISD_HAS_CGAL
490 IMP_ISD_HAS_HDF5 = _IMP_rmf.IMP_ISD_HAS_HDF5
492 IMP_ISD_HAS_NUMPY = _IMP_rmf.IMP_ISD_HAS_NUMPY
494 IMP_ISD_HAS_PYTHON_IHM = _IMP_rmf.IMP_ISD_HAS_PYTHON_IHM
496 IMPISD_SHOW_WARNINGS = _IMP_rmf.IMPISD_SHOW_WARNINGS
499 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
501 IMP_RMF_HAS_IMP_EM = _IMP_rmf.IMP_RMF_HAS_IMP_EM
503 IMP_RMF_HAS_IMP_SAXS = _IMP_rmf.IMP_RMF_HAS_IMP_SAXS
505 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
507 IMP_RMF_HAS_IMP_STATISTICS = _IMP_rmf.IMP_RMF_HAS_IMP_STATISTICS
509 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
511 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
513 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
515 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
517 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
519 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
521 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
523 IMP_RMF_HAS_NUMPY = _IMP_rmf.IMP_RMF_HAS_NUMPY
525 IMP_RMF_HAS_PYTHON_IHM = _IMP_rmf.IMP_RMF_HAS_PYTHON_IHM
527 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
531 _object_types.append(
"SaveOptimizerState")
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)
538 _object_types.append(
"LoadLink")
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)
545 _object_types.append(
"SaveLink")
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)
552 _object_types.append(
"HierarchySaveLink")
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)
559 _object_types.append(
"HierarchyLoadLink")
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)
566 r"""Proxy of C++ IMP::rmf::LoadLink class."""
568 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
570 def do_load(self, fh):
571 r"""do_load(LoadLink self, FileConstHandle fh)"""
572 return _IMP_rmf.LoadLink_do_load(self, fh)
574 def __init__(self, name):
575 r"""__init__(LoadLink self, std::string name) -> LoadLink"""
576 if self.__class__ == LoadLink:
580 _IMP_rmf.LoadLink_swiginit(self, _IMP_rmf.new_LoadLink(_self, name))
582 if self.__class__ != LoadLink:
583 _director_objects.register(self)
589 r"""load(LoadLink self, FileConstHandle fh)"""
590 return _IMP_rmf.LoadLink_load(self, fh)
591 __swig_destroy__ = _IMP_rmf.delete_LoadLink
594 r"""__str__(LoadLink self) -> std::string"""
595 return _IMP_rmf.LoadLink___str__(self)
598 r"""__repr__(LoadLink self) -> std::string"""
599 return _IMP_rmf.LoadLink___repr__(self)
603 return _object_cast_to_LoadLink(o)
606 def get_type_name(self):
607 return self.__class__.__name__
608 def do_show(self, out):
610 def get_version_info(self):
611 if"IMP::rmf" ==
"IMP":
612 return VersionInfo(self.__module__,
619 return _object_cast_to_LoadLink(o)
621 def __disown__(self):
623 _IMP_rmf.disown_LoadLink(self)
624 return weakref.proxy(self)
626 def do_destroy(self):
627 r"""do_destroy(LoadLink self)"""
628 return _IMP_rmf.LoadLink_do_destroy(self)
631 _IMP_rmf.LoadLink_swigregister(LoadLink)
633 r"""Proxy of C++ IMP::rmf::SaveLink class."""
635 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
637 def do_save(self, hf):
638 r"""do_save(SaveLink self, FileHandle hf)"""
639 return _IMP_rmf.SaveLink_do_save(self, hf)
641 def __init__(self, name):
642 r"""__init__(SaveLink self, std::string name) -> SaveLink"""
643 if self.__class__ == SaveLink:
647 _IMP_rmf.SaveLink_swiginit(self, _IMP_rmf.new_SaveLink(_self, name))
649 if self.__class__ != SaveLink:
650 _director_objects.register(self)
656 r"""save(SaveLink self, FileHandle fh)"""
657 return _IMP_rmf.SaveLink_save(self, fh)
658 __swig_destroy__ = _IMP_rmf.delete_SaveLink
661 r"""__str__(SaveLink self) -> std::string"""
662 return _IMP_rmf.SaveLink___str__(self)
665 r"""__repr__(SaveLink self) -> std::string"""
666 return _IMP_rmf.SaveLink___repr__(self)
670 return _object_cast_to_SaveLink(o)
673 def get_type_name(self):
674 return self.__class__.__name__
675 def do_show(self, out):
677 def get_version_info(self):
678 if"IMP::rmf" ==
"IMP":
679 return VersionInfo(self.__module__,
686 return _object_cast_to_SaveLink(o)
688 def __disown__(self):
690 _IMP_rmf.disown_SaveLink(self)
691 return weakref.proxy(self)
693 def do_destroy(self):
694 r"""do_destroy(SaveLink self)"""
695 return _IMP_rmf.SaveLink_do_destroy(self)
698 _IMP_rmf.SaveLink_swigregister(SaveLink)
702 add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
703 add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
705 return _IMP_rmf.add_hierarchies(*args)
708 r"""add_hierarchy(FileHandle fh, Hierarchy hs)"""
709 return _IMP_rmf.add_hierarchy(fh, hs)
712 r"""create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
713 return _IMP_rmf.create_hierarchies(fh, m)
716 r"""link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
717 return _IMP_rmf.link_hierarchies(fh, hs)
721 add_restraints(FileHandle fh, IMP::Restraints const & hs)
722 add_restraints(NodeHandle fh, IMP::Restraints const & hs)
724 return _IMP_rmf.add_restraints(*args)
727 r"""add_restraint(FileHandle fh, Restraint hs)"""
728 return _IMP_rmf.add_restraint(fh, hs)
731 r"""create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
732 return _IMP_rmf.create_restraints(fh, m)
735 r"""link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
736 return _IMP_rmf.link_restraints(fh, hs)
739 r"""add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
740 return _IMP_rmf.add_restraints_as_bonds(fh, rs)
743 r"""set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
744 return _IMP_rmf.set_maximum_number_of_terms(fh, num)
748 add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
749 add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
751 return _IMP_rmf.add_particles(*args)
754 r"""add_particle(FileHandle fh, Particle hs)"""
755 return _IMP_rmf.add_particle(fh, hs)
758 r"""create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
759 return _IMP_rmf.create_particles(fh, m)
762 r"""link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
763 return _IMP_rmf.link_particles(fh, hs)
767 add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
768 add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
770 return _IMP_rmf.add_geometries(*args)
773 r"""add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
774 return _IMP_rmf.add_static_geometries(parent, r)
777 r"""add_geometry(FileHandle file, Geometry r)"""
778 return _IMP_rmf.add_geometry(file, r)
781 r"""create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
782 return _IMP_rmf.create_geometries(parent)
785 r"""link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
786 return _IMP_rmf.link_geometries(parent, r)
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)
792 def get_node_from_association(*args):
794 get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
795 get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
797 return _IMP_rmf.get_node_from_association(*args)
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)
803 r"""Proxy of C++ IMP::rmf::SaveOptimizerState class."""
805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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")
815 def remove_hierarchy(self, d):
816 r"""remove_hierarchy(SaveOptimizerState self, Particle d)"""
817 return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
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)
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)
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)
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)
836 r"""add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
837 return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
840 r"""add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
841 return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
843 def clear_hierarchies(self):
844 r"""clear_hierarchies(SaveOptimizerState self)"""
845 return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
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)
851 def get_has_hierarchies(self):
852 r"""get_has_hierarchies(SaveOptimizerState self) -> bool"""
853 return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
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)
859 def get_hierarchies(self):
860 r"""get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
861 return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
863 def erase_hierarchy(self, i):
864 r"""erase_hierarchy(SaveOptimizerState self, unsigned int i)"""
865 return _IMP_rmf.SaveOptimizerState_erase_hierarchy(self, i)
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")
875 def remove_restraint(self, d):
876 r"""remove_restraint(SaveOptimizerState self, Restraint d)"""
877 return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
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)
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)
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)
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)
896 r"""add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
897 return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
900 r"""add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
901 return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
903 def clear_restraints(self):
904 r"""clear_restraints(SaveOptimizerState self)"""
905 return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
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)
911 def get_has_restraints(self):
912 r"""get_has_restraints(SaveOptimizerState self) -> bool"""
913 return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
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)
919 def get_restraints(self):
920 r"""get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
921 return _IMP_rmf.SaveOptimizerState_get_restraints(self)
923 def erase_restraint(self, i):
924 r"""erase_restraint(SaveOptimizerState self, unsigned int i)"""
925 return _IMP_rmf.SaveOptimizerState_erase_restraint(self, i)
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")
935 def remove_particle(self, d):
936 r"""remove_particle(SaveOptimizerState self, Particle d)"""
937 return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
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)
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)
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)
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)
956 r"""add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
957 return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
960 r"""add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
961 return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
963 def clear_particles(self):
964 r"""clear_particles(SaveOptimizerState self)"""
965 return _IMP_rmf.SaveOptimizerState_clear_particles(self)
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)
971 def get_has_particles(self):
972 r"""get_has_particles(SaveOptimizerState self) -> bool"""
973 return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
976 r"""get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
977 return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
980 r"""get_particles(SaveOptimizerState self) -> IMP::Particles"""
981 return _IMP_rmf.SaveOptimizerState_get_particles(self)
983 def erase_particle(self, i):
984 r"""erase_particle(SaveOptimizerState self, unsigned int i)"""
985 return _IMP_rmf.SaveOptimizerState_erase_particle(self, i)
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")
995 def remove_geometry(self, d):
996 r"""remove_geometry(SaveOptimizerState self, Geometry d)"""
997 return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
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)
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)
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)
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)
1016 r"""add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
1017 return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
1020 r"""add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
1021 return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
1023 def clear_geometries(self):
1024 r"""clear_geometries(SaveOptimizerState self)"""
1025 return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
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)
1031 def get_has_geometries(self):
1032 r"""get_has_geometries(SaveOptimizerState self) -> bool"""
1033 return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
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)
1039 def get_geometries(self):
1040 r"""get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
1041 return _IMP_rmf.SaveOptimizerState_get_geometries(self)
1043 def erase_geometry(self, i):
1044 r"""erase_geometry(SaveOptimizerState self, unsigned int i)"""
1045 return _IMP_rmf.SaveOptimizerState_erase_geometry(self, i)
1047 def reserve_geometries(self, sz):
1048 r"""reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
1049 return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
1051 def set_simulator(self, sim):
1052 r"""set_simulator(SaveOptimizerState self, Simulator sim)"""
1053 return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
1055 def update_always(self, *args):
1057 update_always(SaveOptimizerState self, std::string name)
1058 update_always(SaveOptimizerState self)
1060 return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
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)
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
1072 r"""__str__(SaveOptimizerState self) -> std::string"""
1073 return _IMP_rmf.SaveOptimizerState___str__(self)
1076 r"""__repr__(SaveOptimizerState self) -> std::string"""
1077 return _IMP_rmf.SaveOptimizerState___repr__(self)
1081 return _object_cast_to_SaveOptimizerState(o)
1085 _IMP_rmf.SaveOptimizerState_swigregister(SaveOptimizerState)
1088 r"""load_frame(FileConstHandle file, FrameID frame)"""
1089 return _IMP_rmf.load_frame(file, frame)
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."""
1097 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1099 def __init__(self, *args, **kwargs):
1100 raise AttributeError(
"No constructor defined - class is abstract")
1101 __repr__ = _swig_repr
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
1109 _IMP_rmf._ParticleSaveLink_swigregister(_ParticleSaveLink)
1110 class _ParticleLoadLink(LoadLink):
1111 r"""Proxy of C++ IMP::rmf::SimpleLoadLink< IMP::Particle > class."""
1113 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1115 def __init__(self, *args, **kwargs):
1116 raise AttributeError(
"No constructor defined - class is abstract")
1117 __repr__ = _swig_repr
1119 def create(self, *args):
1121 create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
1122 create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
1124 return _IMP_rmf._ParticleLoadLink_create(self, *args)
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
1132 _IMP_rmf._ParticleLoadLink_swigregister(_ParticleLoadLink)
1133 class HierarchyLoadLink(_ParticleLoadLink):
1134 r"""Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1136 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1138 def __init__(self, fh):
1139 r"""__init__(HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1140 _IMP_rmf.HierarchyLoadLink_swiginit(self, _IMP_rmf.new_HierarchyLoadLink(fh))
1144 r"""get_name() -> char const *"""
1145 return _IMP_rmf.HierarchyLoadLink_get_name()
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
1153 r"""__str__(HierarchyLoadLink self) -> std::string"""
1154 return _IMP_rmf.HierarchyLoadLink___str__(self)
1157 r"""__repr__(HierarchyLoadLink self) -> std::string"""
1158 return _IMP_rmf.HierarchyLoadLink___repr__(self)
1162 return _object_cast_to_HierarchyLoadLink(o)
1166 _IMP_rmf.HierarchyLoadLink_swigregister(HierarchyLoadLink)
1167 class HierarchySaveLink(_ParticleSaveLink):
1168 r"""Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1170 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1172 def __init__(self, fh):
1173 r"""__init__(HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1174 _IMP_rmf.HierarchySaveLink_swiginit(self, _IMP_rmf.new_HierarchySaveLink(fh))
1178 r"""get_name() -> char const *"""
1179 return _IMP_rmf.HierarchySaveLink_get_name()
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
1187 r"""__str__(HierarchySaveLink self) -> std::string"""
1188 return _IMP_rmf.HierarchySaveLink___str__(self)
1191 r"""__repr__(HierarchySaveLink self) -> std::string"""
1192 return _IMP_rmf.HierarchySaveLink___repr__(self)
1196 return _object_cast_to_HierarchySaveLink(o)
1200 _IMP_rmf.HierarchySaveLink_swigregister(HierarchySaveLink)
1202 suffixes = [
".rmf",
".rmfz"]
1206 r"""get_module_version() -> std::string const"""
1207 return _IMP_rmf.get_module_version()
1210 r"""get_example_path(std::string fname) -> std::string"""
1211 return _IMP_rmf.get_example_path(fname)
1214 r"""get_data_path(std::string fname) -> std::string"""
1215 return _IMP_rmf.get_data_path(fname)
1217 from .
import _version_check
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.
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.
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.
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 ...