IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
em/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.7
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-2022 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 
16 
17 from sys import version_info
18 if version_info >= (2, 6, 0):
19  def swig_import_helper():
20  from os.path import dirname
21  import imp
22  fp = None
23  try:
24  fp, pathname, description = imp.find_module('_IMP_em', [dirname(__file__)])
25  except ImportError:
26  import _IMP_em
27  return _IMP_em
28  if fp is not None:
29  try:
30  _mod = imp.load_module('_IMP_em', fp, pathname, description)
31  finally:
32  fp.close()
33  return _mod
34  _IMP_em = swig_import_helper()
35  del swig_import_helper
36 else:
37  import _IMP_em
38 del version_info
39 try:
40  _swig_property = property
41 except NameError:
42  pass # Python < 2.2 doesn't have 'property'.
43 
44 
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46  if (name == "thisown"):
47  return self.this.own(value)
48  if (name == "this"):
49  if type(value).__name__ == 'SwigPyObject':
50  self.__dict__[name] = value
51  return
52  method = class_type.__swig_setmethods__.get(name, None)
53  if method:
54  return method(self, value)
55  if (not static):
56  object.__setattr__(self, name, value)
57  else:
58  raise AttributeError("You cannot add attributes to %s" % self)
59 
60 
61 def _swig_setattr(self, class_type, name, value):
62  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 
64 
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66  if (name == "thisown"):
67  return self.this.own()
68  method = class_type.__swig_getmethods__.get(name, None)
69  if method:
70  return method(self)
71  if (not static):
72  return object.__getattr__(self, name)
73  else:
74  raise AttributeError(name)
75 
76 def _swig_getattr(self, class_type, name):
77  return _swig_getattr_nondynamic(self, class_type, name, 0)
78 
79 
80 def _swig_repr(self):
81  try:
82  strthis = "proxy of " + self.this.__repr__()
83  except:
84  strthis = ""
85  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
86 
87 try:
88  _object = object
89  _newclass = 1
90 except AttributeError:
91  class _object:
92  pass
93  _newclass = 0
94 
95 
96 
97 def _swig_setattr_nondynamic_method(set):
98  def set_attr(self, name, value):
99  if (name == "thisown"):
100  return self.this.own(value)
101  if hasattr(self, name) or (name == "this"):
102  set(self, name, value)
103  else:
104  raise AttributeError("You cannot add attributes to %s" % self)
105  return set_attr
106 
107 
108 try:
109  import weakref
110  weakref_proxy = weakref.proxy
111 except:
112  weakref_proxy = lambda x: x
113 
114 
115 class IMP_EM_SwigPyIterator(object):
116  """Proxy of C++ swig::IMP_EM_SwigPyIterator class"""
117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
118 
119  def __init__(self, *args, **kwargs):
120  raise AttributeError("No constructor defined - class is abstract")
121  __repr__ = _swig_repr
122  __swig_destroy__ = _IMP_em.delete_IMP_EM_SwigPyIterator
123  __del__ = lambda self: None
124 
125  def value(self):
126  """value(IMP_EM_SwigPyIterator self) -> PyObject *"""
127  return _IMP_em.IMP_EM_SwigPyIterator_value(self)
128 
129 
130  def incr(self, n=1):
131  """
132  incr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
133  incr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
134  """
135  return _IMP_em.IMP_EM_SwigPyIterator_incr(self, n)
136 
137 
138  def decr(self, n=1):
139  """
140  decr(IMP_EM_SwigPyIterator self, size_t n=1) -> IMP_EM_SwigPyIterator
141  decr(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator
142  """
143  return _IMP_em.IMP_EM_SwigPyIterator_decr(self, n)
144 
145 
146  def distance(self, x):
147  """distance(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t"""
148  return _IMP_em.IMP_EM_SwigPyIterator_distance(self, x)
149 
150 
151  def equal(self, x):
152  """equal(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
153  return _IMP_em.IMP_EM_SwigPyIterator_equal(self, x)
154 
155 
156  def copy(self):
157  """copy(IMP_EM_SwigPyIterator self) -> IMP_EM_SwigPyIterator"""
158  return _IMP_em.IMP_EM_SwigPyIterator_copy(self)
159 
160 
161  def next(self):
162  """next(IMP_EM_SwigPyIterator self) -> PyObject *"""
163  return _IMP_em.IMP_EM_SwigPyIterator_next(self)
164 
165 
166  def __next__(self):
167  """__next__(IMP_EM_SwigPyIterator self) -> PyObject *"""
168  return _IMP_em.IMP_EM_SwigPyIterator___next__(self)
169 
170 
171  def previous(self):
172  """previous(IMP_EM_SwigPyIterator self) -> PyObject *"""
173  return _IMP_em.IMP_EM_SwigPyIterator_previous(self)
174 
175 
176  def advance(self, n):
177  """advance(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
178  return _IMP_em.IMP_EM_SwigPyIterator_advance(self, n)
179 
180 
181  def __eq__(self, x):
182  """__eq__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
183  return _IMP_em.IMP_EM_SwigPyIterator___eq__(self, x)
184 
185 
186  def __ne__(self, x):
187  """__ne__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> bool"""
188  return _IMP_em.IMP_EM_SwigPyIterator___ne__(self, x)
189 
190 
191  def __iadd__(self, n):
192  """__iadd__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
193  return _IMP_em.IMP_EM_SwigPyIterator___iadd__(self, n)
194 
195 
196  def __isub__(self, n):
197  """__isub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
198  return _IMP_em.IMP_EM_SwigPyIterator___isub__(self, n)
199 
200 
201  def __add__(self, n):
202  """__add__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator"""
203  return _IMP_em.IMP_EM_SwigPyIterator___add__(self, n)
204 
205 
206  def __sub__(self, *args):
207  """
208  __sub__(IMP_EM_SwigPyIterator self, ptrdiff_t n) -> IMP_EM_SwigPyIterator
209  __sub__(IMP_EM_SwigPyIterator self, IMP_EM_SwigPyIterator x) -> ptrdiff_t
210  """
211  return _IMP_em.IMP_EM_SwigPyIterator___sub__(self, *args)
212 
213  def __iter__(self):
214  return self
215 IMP_EM_SwigPyIterator_swigregister = _IMP_em.IMP_EM_SwigPyIterator_swigregister
216 IMP_EM_SwigPyIterator_swigregister(IMP_EM_SwigPyIterator)
217 
218 
219 _value_types=[]
220 _object_types=[]
221 _raii_types=[]
222 _plural_types=[]
223 
224 
225 _IMP_em.IMP_DEBUG_swigconstant(_IMP_em)
226 IMP_DEBUG = _IMP_em.IMP_DEBUG
227 
228 _IMP_em.IMP_RELEASE_swigconstant(_IMP_em)
229 IMP_RELEASE = _IMP_em.IMP_RELEASE
230 
231 _IMP_em.IMP_SILENT_swigconstant(_IMP_em)
232 IMP_SILENT = _IMP_em.IMP_SILENT
233 
234 _IMP_em.IMP_PROGRESS_swigconstant(_IMP_em)
235 IMP_PROGRESS = _IMP_em.IMP_PROGRESS
236 
237 _IMP_em.IMP_TERSE_swigconstant(_IMP_em)
238 IMP_TERSE = _IMP_em.IMP_TERSE
239 
240 _IMP_em.IMP_VERBOSE_swigconstant(_IMP_em)
241 IMP_VERBOSE = _IMP_em.IMP_VERBOSE
242 
243 _IMP_em.IMP_MEMORY_swigconstant(_IMP_em)
244 IMP_MEMORY = _IMP_em.IMP_MEMORY
245 
246 _IMP_em.IMP_NONE_swigconstant(_IMP_em)
247 IMP_NONE = _IMP_em.IMP_NONE
248 
249 _IMP_em.IMP_USAGE_swigconstant(_IMP_em)
250 IMP_USAGE = _IMP_em.IMP_USAGE
251 
252 _IMP_em.IMP_INTERNAL_swigconstant(_IMP_em)
253 IMP_INTERNAL = _IMP_em.IMP_INTERNAL
254 
255 _IMP_em.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_em)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_em.IMP_KERNEL_HAS_LOG4CXX
257 
258 _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_em)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_em.IMP_COMPILER_HAS_DEBUG_VECTOR
260 
261 _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_em)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_em.IMP_COMPILER_HAS_RANDOM_SHUFFLE
263 
264 _IMP_em.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_em)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_em.IMP_COMPILER_HAS_THREE_WAY
266 
267 _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_em.IMP_KERNEL_HAS_BOOST_RANDOM
269 
270 _IMP_em.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_em)
271 IMP_KERNEL_HAS_NUMPY = _IMP_em.IMP_KERNEL_HAS_NUMPY
272 
273 _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_em)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_em.IMP_KERNEL_HAS_GPERFTOOLS
275 
276 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_em)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
278 
279 _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_em)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_em.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
281 
282 _IMP_em.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_em)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_em.IMPKERNEL_SHOW_WARNINGS
284 
285 import sys
286 class _DirectorObjects(object):
287  """@internal Simple class to keep references to director objects
288  to prevent premature deletion."""
289  def __init__(self):
290  self._objects = []
291  def register(self, obj):
292  """Take a reference to a director object; will only work for
293  refcounted C++ classes"""
294  if hasattr(obj, 'get_ref_count'):
295  self._objects.append(obj)
296  def cleanup(self):
297  """Only drop our reference and allow cleanup by Python if no other
298  Python references exist (we hold 3 references: one in self._objects,
299  one in x, and one in the argument list for getrefcount) *and* no
300  other C++ references exist (the Python object always holds one)"""
301  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
302  or x.get_ref_count() > 1]
303 # Do in two steps so the references are kept until the end of the
304 # function (deleting references may trigger a fresh call to this method)
305  self._objects = objs
306  def get_object_count(self):
307  """Get number of director objects (useful for testing only)"""
308  return len(self._objects)
309 _director_objects = _DirectorObjects()
310 
311 class _ostream(object):
312  """Proxy of C++ std::ostream class"""
313  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
314 
315  def __init__(self, *args, **kwargs):
316  raise AttributeError("No constructor defined")
317  __repr__ = _swig_repr
318 
319  def write(self, osa_buf):
320  """write(_ostream self, char const * osa_buf)"""
321  return _IMP_em._ostream_write(self, osa_buf)
322 
323 _ostream_swigregister = _IMP_em._ostream_swigregister
324 _ostream_swigregister(_ostream)
325 
326 
327 _IMP_em.IMP_HAS_NOEXCEPT_swigconstant(_IMP_em)
328 IMP_HAS_NOEXCEPT = _IMP_em.IMP_HAS_NOEXCEPT
329 
330 _IMP_em.IMP_C_OPEN_BINARY_swigconstant(_IMP_em)
331 IMP_C_OPEN_BINARY = _IMP_em.IMP_C_OPEN_BINARY
332 import IMP
333 
334 _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_em.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_em.IMP_CGAL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
344 IMP_CGAL_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CGAL_HAS_BOOST_SERIALIZATION
345 
346 _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
347 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_em.IMP_CGAL_HAS_BOOST_SYSTEM
348 
349 _IMP_em.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_em)
350 IMP_CGAL_HAS_NUMPY = _IMP_em.IMP_CGAL_HAS_NUMPY
351 
352 _IMP_em.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_em)
353 IMPCGAL_SHOW_WARNINGS = _IMP_em.IMPCGAL_SHOW_WARNINGS
354 import IMP.cgal
355 
356 _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_em)
357 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_em.IMP_ALGEBRA_HAS_IMP_CGAL
358 
359 _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
360 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
361 
362 _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
363 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
364 
365 _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
366 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_RANDOM
367 
368 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
369 IMP_ALGEBRA_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION
370 
371 _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
372 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_em.IMP_ALGEBRA_HAS_BOOST_SYSTEM
373 
374 _IMP_em.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_em)
375 IMP_ALGEBRA_HAS_CGAL = _IMP_em.IMP_ALGEBRA_HAS_CGAL
376 
377 _IMP_em.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_em)
378 IMP_ALGEBRA_HAS_NUMPY = _IMP_em.IMP_ALGEBRA_HAS_NUMPY
379 
380 _IMP_em.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_em)
381 IMP_ALGEBRA_HAS_ANN = _IMP_em.IMP_ALGEBRA_HAS_ANN
382 
383 _IMP_em.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_em)
384 IMPALGEBRA_SHOW_WARNINGS = _IMP_em.IMPALGEBRA_SHOW_WARNINGS
385 import IMP.algebra
386 
387 _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_em)
388 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_em.IMP_DISPLAY_HAS_IMP_CGAL
389 
390 _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
391 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
392 
393 _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
394 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
395 
396 _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
397 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_em.IMP_DISPLAY_HAS_BOOST_RANDOM
398 
399 _IMP_em.IMP_DISPLAY_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
400 IMP_DISPLAY_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_DISPLAY_HAS_BOOST_SERIALIZATION
401 
402 _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
403 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_em.IMP_DISPLAY_HAS_BOOST_SYSTEM
404 
405 _IMP_em.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_em)
406 IMP_DISPLAY_HAS_CGAL = _IMP_em.IMP_DISPLAY_HAS_CGAL
407 
408 _IMP_em.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_em)
409 IMP_DISPLAY_HAS_NUMPY = _IMP_em.IMP_DISPLAY_HAS_NUMPY
410 
411 _IMP_em.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_em)
412 IMPDISPLAY_SHOW_WARNINGS = _IMP_em.IMPDISPLAY_SHOW_WARNINGS
413 import IMP.display
414 
415 _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_em)
416 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
417 
418 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
420 
421 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
422 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
423 
424 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
425 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
426 
427 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
428 IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SERIALIZATION
429 
430 _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
431 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_em.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
432 
433 _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_em)
434 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_em.IMP_SCORE_FUNCTOR_HAS_CGAL
435 
436 _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_em)
437 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_em.IMP_SCORE_FUNCTOR_HAS_HDF5
438 
439 _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_em)
440 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_em.IMP_SCORE_FUNCTOR_HAS_NUMPY
441 
442 _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_em)
443 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_em.IMPSCOREFUNCTOR_SHOW_WARNINGS
444 import IMP.score_functor
445 
446 _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_em)
447 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_em.IMP_STATISTICS_HAS_IMP_CGAL
448 
449 _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
450 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
451 
452 _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
453 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
454 
455 _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
456 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_em.IMP_STATISTICS_HAS_BOOST_RANDOM
457 
458 _IMP_em.IMP_STATISTICS_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
459 IMP_STATISTICS_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_STATISTICS_HAS_BOOST_SERIALIZATION
460 
461 _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
462 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_em.IMP_STATISTICS_HAS_BOOST_SYSTEM
463 
464 _IMP_em.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_em)
465 IMP_STATISTICS_HAS_CGAL = _IMP_em.IMP_STATISTICS_HAS_CGAL
466 
467 _IMP_em.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_em)
468 IMP_STATISTICS_HAS_NUMPY = _IMP_em.IMP_STATISTICS_HAS_NUMPY
469 
470 _IMP_em.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_em)
471 IMPSTATISTICS_SHOW_WARNINGS = _IMP_em.IMPSTATISTICS_SHOW_WARNINGS
472 import IMP.statistics
473 
474 _IMP_em.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_em)
475 IMP_CORE_HAS_IMP_CGAL = _IMP_em.IMP_CORE_HAS_IMP_CGAL
476 
477 _IMP_em.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_em)
478 IMP_CORE_HAS_IMP_KERNEL = _IMP_em.IMP_CORE_HAS_IMP_KERNEL
479 
480 _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
481 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_FILESYSTEM
482 
483 _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
484 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
485 
486 _IMP_em.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
487 IMP_CORE_HAS_BOOST_RANDOM = _IMP_em.IMP_CORE_HAS_BOOST_RANDOM
488 
489 _IMP_em.IMP_CORE_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
490 IMP_CORE_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CORE_HAS_BOOST_SERIALIZATION
491 
492 _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
493 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_em.IMP_CORE_HAS_BOOST_SYSTEM
494 
495 _IMP_em.IMP_CORE_HAS_CGAL_swigconstant(_IMP_em)
496 IMP_CORE_HAS_CGAL = _IMP_em.IMP_CORE_HAS_CGAL
497 
498 _IMP_em.IMP_CORE_HAS_HDF5_swigconstant(_IMP_em)
499 IMP_CORE_HAS_HDF5 = _IMP_em.IMP_CORE_HAS_HDF5
500 
501 _IMP_em.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_em)
502 IMP_CORE_HAS_NUMPY = _IMP_em.IMP_CORE_HAS_NUMPY
503 
504 _IMP_em.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_em)
505 IMPCORE_SHOW_WARNINGS = _IMP_em.IMPCORE_SHOW_WARNINGS
506 import IMP.core
507 
508 _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_em)
509 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_em.IMP_CONTAINER_HAS_IMP_ALGEBRA
510 
511 _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_em)
512 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_em.IMP_CONTAINER_HAS_IMP_CGAL
513 
514 _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
515 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_em.IMP_CONTAINER_HAS_IMP_DISPLAY
516 
517 _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_em)
518 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_em.IMP_CONTAINER_HAS_IMP_KERNEL
519 
520 _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
521 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
522 
523 _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
524 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
525 
526 _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
527 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
528 
529 _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
530 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_em.IMP_CONTAINER_HAS_BOOST_RANDOM
531 
532 _IMP_em.IMP_CONTAINER_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
533 IMP_CONTAINER_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_CONTAINER_HAS_BOOST_SERIALIZATION
534 
535 _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
536 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_em.IMP_CONTAINER_HAS_BOOST_SYSTEM
537 
538 _IMP_em.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_em)
539 IMP_CONTAINER_HAS_CGAL = _IMP_em.IMP_CONTAINER_HAS_CGAL
540 
541 _IMP_em.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_em)
542 IMP_CONTAINER_HAS_HDF5 = _IMP_em.IMP_CONTAINER_HAS_HDF5
543 
544 _IMP_em.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_em)
545 IMP_CONTAINER_HAS_NUMPY = _IMP_em.IMP_CONTAINER_HAS_NUMPY
546 
547 _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_em)
548 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_em.IMP_CONTAINER_HAS_PYTHON_IHM
549 
550 _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_em)
551 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_em.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
552 
553 _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_em)
554 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_em.IMP_CONTAINER_HAS_ROBIN_MAP
555 
556 _IMP_em.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_em)
557 IMPCONTAINER_SHOW_WARNINGS = _IMP_em.IMPCONTAINER_SHOW_WARNINGS
558 import IMP.container
559 
560 _IMP_em.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_em)
561 IMP_ATOM_HAS_IMP_CGAL = _IMP_em.IMP_ATOM_HAS_IMP_CGAL
562 
563 _IMP_em.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_em)
564 IMP_ATOM_HAS_IMP_KERNEL = _IMP_em.IMP_ATOM_HAS_IMP_KERNEL
565 
566 _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
567 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
568 
569 _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
570 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
571 
572 _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
573 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_em.IMP_ATOM_HAS_BOOST_RANDOM
574 
575 _IMP_em.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
576 IMP_ATOM_HAS_BOOST_REGEX = _IMP_em.IMP_ATOM_HAS_BOOST_REGEX
577 
578 _IMP_em.IMP_ATOM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
579 IMP_ATOM_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_ATOM_HAS_BOOST_SERIALIZATION
580 
581 _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
582 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_em.IMP_ATOM_HAS_BOOST_SYSTEM
583 
584 _IMP_em.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_em)
585 IMP_ATOM_HAS_CGAL = _IMP_em.IMP_ATOM_HAS_CGAL
586 
587 _IMP_em.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_em)
588 IMP_ATOM_HAS_HDF5 = _IMP_em.IMP_ATOM_HAS_HDF5
589 
590 _IMP_em.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_em)
591 IMP_ATOM_HAS_NUMPY = _IMP_em.IMP_ATOM_HAS_NUMPY
592 
593 _IMP_em.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
594 IMP_ATOM_HAS_PYTHON_IHM = _IMP_em.IMP_ATOM_HAS_PYTHON_IHM
595 
596 _IMP_em.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_em)
597 IMPATOM_SHOW_WARNINGS = _IMP_em.IMPATOM_SHOW_WARNINGS
598 
599 _IMP_em.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_em)
600 IMP_ATOM_TYPE_INDEX = _IMP_em.IMP_ATOM_TYPE_INDEX
601 
602 _IMP_em.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_em)
603 IMP_RESIDUE_TYPE_INDEX = _IMP_em.IMP_RESIDUE_TYPE_INDEX
604 
605 _IMP_em.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_em)
606 IMP_HIERARCHY_TYPE_INDEX = _IMP_em.IMP_HIERARCHY_TYPE_INDEX
607 
608 _IMP_em.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_em)
609 IMP_CHAIN_TYPE_INDEX = _IMP_em.IMP_CHAIN_TYPE_INDEX
610 import IMP.atom
611 
612 _IMP_em.IMP_EM_HAS_IMP_CGAL_swigconstant(_IMP_em)
613 IMP_EM_HAS_IMP_CGAL = _IMP_em.IMP_EM_HAS_IMP_CGAL
614 
615 _IMP_em.IMP_EM_HAS_IMP_CONTAINER_swigconstant(_IMP_em)
616 IMP_EM_HAS_IMP_CONTAINER = _IMP_em.IMP_EM_HAS_IMP_CONTAINER
617 
618 _IMP_em.IMP_EM_HAS_IMP_DISPLAY_swigconstant(_IMP_em)
619 IMP_EM_HAS_IMP_DISPLAY = _IMP_em.IMP_EM_HAS_IMP_DISPLAY
620 
621 _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_em)
622 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_em.IMP_EM_HAS_IMP_SCORE_FUNCTOR
623 
624 _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_em)
625 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_em.IMP_EM_HAS_BOOST_FILESYSTEM
626 
627 _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_em)
628 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_em.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
629 
630 _IMP_em.IMP_EM_HAS_BOOST_RANDOM_swigconstant(_IMP_em)
631 IMP_EM_HAS_BOOST_RANDOM = _IMP_em.IMP_EM_HAS_BOOST_RANDOM
632 
633 _IMP_em.IMP_EM_HAS_BOOST_REGEX_swigconstant(_IMP_em)
634 IMP_EM_HAS_BOOST_REGEX = _IMP_em.IMP_EM_HAS_BOOST_REGEX
635 
636 _IMP_em.IMP_EM_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_em)
637 IMP_EM_HAS_BOOST_SERIALIZATION = _IMP_em.IMP_EM_HAS_BOOST_SERIALIZATION
638 
639 _IMP_em.IMP_EM_HAS_BOOST_SYSTEM_swigconstant(_IMP_em)
640 IMP_EM_HAS_BOOST_SYSTEM = _IMP_em.IMP_EM_HAS_BOOST_SYSTEM
641 
642 _IMP_em.IMP_EM_HAS_CGAL_swigconstant(_IMP_em)
643 IMP_EM_HAS_CGAL = _IMP_em.IMP_EM_HAS_CGAL
644 
645 _IMP_em.IMP_EM_HAS_HDF5_swigconstant(_IMP_em)
646 IMP_EM_HAS_HDF5 = _IMP_em.IMP_EM_HAS_HDF5
647 
648 _IMP_em.IMP_EM_HAS_NUMPY_swigconstant(_IMP_em)
649 IMP_EM_HAS_NUMPY = _IMP_em.IMP_EM_HAS_NUMPY
650 
651 _IMP_em.IMP_EM_HAS_PYTHON_IHM_swigconstant(_IMP_em)
652 IMP_EM_HAS_PYTHON_IHM = _IMP_em.IMP_EM_HAS_PYTHON_IHM
653 
654 _IMP_em.IMPEM_SHOW_WARNINGS_swigconstant(_IMP_em)
655 IMPEM_SHOW_WARNINGS = _IMP_em.IMPEM_SHOW_WARNINGS
656 
657 _object_types.append("DensityMap")
658 
659 
660 def _object_cast_to_DensityMap(o):
661  """_object_cast_to_DensityMap(Object o) -> DensityMap"""
662  return _IMP_em._object_cast_to_DensityMap(o)
663 
664 _object_types.append("SampledDensityMap")
665 
666 
667 def _object_cast_to_SampledDensityMap(o):
668  """_object_cast_to_SampledDensityMap(Object o) -> SampledDensityMap"""
669  return _IMP_em._object_cast_to_SampledDensityMap(o)
670 
671 _object_types.append("SurfaceShellDensityMap")
672 
673 
674 def _object_cast_to_SurfaceShellDensityMap(o):
675  """_object_cast_to_SurfaceShellDensityMap(Object o) -> SurfaceShellDensityMap"""
676  return _IMP_em._object_cast_to_SurfaceShellDensityMap(o)
677 
678 _object_types.append("FitRestraint")
679 
680 
681 def _object_cast_to_FitRestraint(o):
682  """_object_cast_to_FitRestraint(Object o) -> FitRestraint"""
683  return _IMP_em._object_cast_to_FitRestraint(o)
684 
685 _object_types.append("FitRestraintBayesEM3D")
686 
687 
688 def _object_cast_to_FitRestraintBayesEM3D(o):
689  """_object_cast_to_FitRestraintBayesEM3D(Object o) -> FitRestraintBayesEM3D"""
690  return _IMP_em._object_cast_to_FitRestraintBayesEM3D(o)
691 
692 _object_types.append("PCAFitRestraint")
693 
694 
695 def _object_cast_to_PCAFitRestraint(o):
696  """_object_cast_to_PCAFitRestraint(Object o) -> PCAFitRestraint"""
697  return _IMP_em._object_cast_to_PCAFitRestraint(o)
698 
699 _object_types.append("EnvelopePenetrationRestraint")
700 
701 
702 def _object_cast_to_EnvelopePenetrationRestraint(o):
703  """_object_cast_to_EnvelopePenetrationRestraint(Object o) -> EnvelopePenetrationRestraint"""
704  return _IMP_em._object_cast_to_EnvelopePenetrationRestraint(o)
705 
706 _object_types.append("EnvelopeFitRestraint")
707 
708 
709 def _object_cast_to_EnvelopeFitRestraint(o):
710  """_object_cast_to_EnvelopeFitRestraint(Object o) -> EnvelopeFitRestraint"""
711  return _IMP_em._object_cast_to_EnvelopeFitRestraint(o)
712 
713 KernelParametersList=list
714 _plural_types.append("KernelParametersList")
715 _value_types.append("KernelParameters")
716 
717 
718 _object_types.append("HighDensityEmbedding")
719 
720 
721 def _object_cast_to_HighDensityEmbedding(o):
722  """_object_cast_to_HighDensityEmbedding(Object o) -> HighDensityEmbedding"""
723  return _IMP_em._object_cast_to_HighDensityEmbedding(o)
724 
725 _object_types.append("MapReaderWriter")
726 
727 
728 def _object_cast_to_MapReaderWriter(o):
729  """_object_cast_to_MapReaderWriter(Object o) -> MapReaderWriter"""
730  return _IMP_em._object_cast_to_MapReaderWriter(o)
731 
732 _object_types.append("MRCReaderWriter")
733 
734 
735 def _object_cast_to_MRCReaderWriter(o):
736  """_object_cast_to_MRCReaderWriter(Object o) -> MRCReaderWriter"""
737  return _IMP_em._object_cast_to_MRCReaderWriter(o)
738 
739 _object_types.append("SpiderMapReaderWriter")
740 
741 
742 def _object_cast_to_SpiderMapReaderWriter(o):
743  """_object_cast_to_SpiderMapReaderWriter(Object o) -> SpiderMapReaderWriter"""
744  return _IMP_em._object_cast_to_SpiderMapReaderWriter(o)
745 
746 _object_types.append("EMReaderWriter")
747 
748 
749 def _object_cast_to_EMReaderWriter(o):
750  """_object_cast_to_EMReaderWriter(Object o) -> EMReaderWriter"""
751  return _IMP_em._object_cast_to_EMReaderWriter(o)
752 
753 _object_types.append("XplorReaderWriter")
754 
755 
756 def _object_cast_to_XplorReaderWriter(o):
757  """_object_cast_to_XplorReaderWriter(Object o) -> XplorReaderWriter"""
758  return _IMP_em._object_cast_to_XplorReaderWriter(o)
759 
760 _object_types.append("CoarseCCatIntervals")
761 
762 
763 def _object_cast_to_CoarseCCatIntervals(o):
764  """_object_cast_to_CoarseCCatIntervals(Object o) -> CoarseCCatIntervals"""
765  return _IMP_em._object_cast_to_CoarseCCatIntervals(o)
766 
767 FittingSolutionsList=list
768 _plural_types.append("FittingSolutionsList")
769 _value_types.append("FittingSolutions")
770 
771 
772 _object_types.append("MapDistanceTransform")
773 
774 
775 def _object_cast_to_MapDistanceTransform(o):
776  """_object_cast_to_MapDistanceTransform(Object o) -> MapDistanceTransform"""
777  return _IMP_em._object_cast_to_MapDistanceTransform(o)
778 
779 _object_types.append("EnvelopeScore")
780 
781 
782 def _object_cast_to_EnvelopeScore(o):
783  """_object_cast_to_EnvelopeScore(Object o) -> EnvelopeScore"""
784  return _IMP_em._object_cast_to_EnvelopeScore(o)
785 
786 def _get_density_map_x_loc(m, pyobj):
787  """_get_density_map_x_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
788  return _IMP_em._get_density_map_x_loc(m, pyobj)
789 
790 def _get_density_map_y_loc(m, pyobj):
791  """_get_density_map_y_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
792  return _IMP_em._get_density_map_y_loc(m, pyobj)
793 
794 def _get_density_map_z_loc(m, pyobj):
795  """_get_density_map_z_loc(DensityMap m, PyObject * pyobj) -> PyObject *"""
796  return _IMP_em._get_density_map_z_loc(m, pyobj)
797 
798 def _get_density_map_data(m, pyobj):
799  """_get_density_map_data(DensityMap m, PyObject * pyobj) -> PyObject *"""
800  return _IMP_em._get_density_map_data(m, pyobj)
801 class MapReaderWriter(IMP.Object):
802  """Proxy of C++ IMP::em::MapReaderWriter class"""
803  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
804 
805  def __init__(self):
806  """__init__(IMP::em::MapReaderWriter self) -> MapReaderWriter"""
807  this = _IMP_em.new_MapReaderWriter()
808  try:
809  self.this.append(this)
810  except:
811  self.this = this
812 
813  def get_version_info(self):
814  """get_version_info(MapReaderWriter self) -> VersionInfo"""
815  return _IMP_em.MapReaderWriter_get_version_info(self)
816 
817 
818  def __str__(self):
819  """__str__(MapReaderWriter self) -> std::string"""
820  return _IMP_em.MapReaderWriter___str__(self)
821 
822 
823  def __repr__(self):
824  """__repr__(MapReaderWriter self) -> std::string"""
825  return _IMP_em.MapReaderWriter___repr__(self)
826 
827 
828  @staticmethod
829  def get_from(o):
830  return _object_cast_to_MapReaderWriter(o)
831 
832 MapReaderWriter_swigregister = _IMP_em.MapReaderWriter_swigregister
833 MapReaderWriter_swigregister(MapReaderWriter)
834 cvar = _IMP_em.cvar
835 EPS = cvar.EPS
836 
837 class DensityHeader(object):
838  """Proxy of C++ IMP::em::DensityHeader class"""
839  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
840  __repr__ = _swig_repr
841 
842  def __init__(self):
843  """__init__(IMP::em::DensityHeader self) -> DensityHeader"""
844  this = _IMP_em.new_DensityHeader()
845  try:
846  self.this.append(this)
847  except:
848  self.this = this
849 
850  def get_top(self, ind):
851  """get_top(DensityHeader self, int ind) -> double"""
852  return _IMP_em.DensityHeader_get_top(self, ind)
853 
854 
855  def compute_xyz_top(self, force=False):
856  """
857  compute_xyz_top(DensityHeader self, bool force=False)
858  compute_xyz_top(DensityHeader self)
859  """
860  return _IMP_em.DensityHeader_compute_xyz_top(self, force)
861 
862 
863  def update_map_dimensions(self, nnx, nny, nnz):
864  """update_map_dimensions(DensityHeader self, int nnx, int nny, int nnz)"""
865  return _IMP_em.DensityHeader_update_map_dimensions(self, nnx, nny, nnz)
866 
867 
868  def update_cell_dimensions(self):
869  """update_cell_dimensions(DensityHeader self)"""
870  return _IMP_em.DensityHeader_update_cell_dimensions(self)
871 
872 
873  def show(self, *args):
874  """
875  show(DensityHeader self, _ostream out)
876  show(DensityHeader self)
877  """
878  return _IMP_em.DensityHeader_show(self, *args)
879 
880  MAP_FIELD_SIZE = _IMP_em.DensityHeader_MAP_FIELD_SIZE
881  USER_FIELD_SIZE = _IMP_em.DensityHeader_USER_FIELD_SIZE
882  COMMENT_FIELD_NUM_OF = _IMP_em.DensityHeader_COMMENT_FIELD_NUM_OF
883  COMMENT_FIELD_SINGLE_SIZE = _IMP_em.DensityHeader_COMMENT_FIELD_SINGLE_SIZE
884  nxstart = _swig_property(_IMP_em.DensityHeader_nxstart_get, _IMP_em.DensityHeader_nxstart_set)
885  nystart = _swig_property(_IMP_em.DensityHeader_nystart_get, _IMP_em.DensityHeader_nystart_set)
886  nzstart = _swig_property(_IMP_em.DensityHeader_nzstart_get, _IMP_em.DensityHeader_nzstart_set)
887  mx = _swig_property(_IMP_em.DensityHeader_mx_get, _IMP_em.DensityHeader_mx_set)
888  my = _swig_property(_IMP_em.DensityHeader_my_get, _IMP_em.DensityHeader_my_set)
889  mz = _swig_property(_IMP_em.DensityHeader_mz_get, _IMP_em.DensityHeader_mz_set)
890  xlen = _swig_property(_IMP_em.DensityHeader_xlen_get, _IMP_em.DensityHeader_xlen_set)
891  ylen = _swig_property(_IMP_em.DensityHeader_ylen_get, _IMP_em.DensityHeader_ylen_set)
892  zlen = _swig_property(_IMP_em.DensityHeader_zlen_get, _IMP_em.DensityHeader_zlen_set)
893  alpha = _swig_property(_IMP_em.DensityHeader_alpha_get, _IMP_em.DensityHeader_alpha_set)
894  beta = _swig_property(_IMP_em.DensityHeader_beta_get, _IMP_em.DensityHeader_beta_set)
895  gamma = _swig_property(_IMP_em.DensityHeader_gamma_get, _IMP_em.DensityHeader_gamma_set)
896  mapc = _swig_property(_IMP_em.DensityHeader_mapc_get, _IMP_em.DensityHeader_mapc_set)
897  mapr = _swig_property(_IMP_em.DensityHeader_mapr_get, _IMP_em.DensityHeader_mapr_set)
898  maps = _swig_property(_IMP_em.DensityHeader_maps_get, _IMP_em.DensityHeader_maps_set)
899  dmin = _swig_property(_IMP_em.DensityHeader_dmin_get, _IMP_em.DensityHeader_dmin_set)
900  dmax = _swig_property(_IMP_em.DensityHeader_dmax_get, _IMP_em.DensityHeader_dmax_set)
901  dmean = _swig_property(_IMP_em.DensityHeader_dmean_get, _IMP_em.DensityHeader_dmean_set)
902  ispg = _swig_property(_IMP_em.DensityHeader_ispg_get, _IMP_em.DensityHeader_ispg_set)
903  nsymbt = _swig_property(_IMP_em.DensityHeader_nsymbt_get, _IMP_em.DensityHeader_nsymbt_set)
904  user = _swig_property(_IMP_em.DensityHeader_user_get, _IMP_em.DensityHeader_user_set)
905  map = _swig_property(_IMP_em.DensityHeader_map_get, _IMP_em.DensityHeader_map_set)
906  machinestamp = _swig_property(_IMP_em.DensityHeader_machinestamp_get, _IMP_em.DensityHeader_machinestamp_set)
907  rms = _swig_property(_IMP_em.DensityHeader_rms_get, _IMP_em.DensityHeader_rms_set)
908  nlabl = _swig_property(_IMP_em.DensityHeader_nlabl_get, _IMP_em.DensityHeader_nlabl_set)
909  comments = _swig_property(_IMP_em.DensityHeader_comments_get, _IMP_em.DensityHeader_comments_set)
910  magic = _swig_property(_IMP_em.DensityHeader_magic_get, _IMP_em.DensityHeader_magic_set)
911  voltage = _swig_property(_IMP_em.DensityHeader_voltage_get, _IMP_em.DensityHeader_voltage_set)
912  Cs = _swig_property(_IMP_em.DensityHeader_Cs_get, _IMP_em.DensityHeader_Cs_set)
913  Aperture = _swig_property(_IMP_em.DensityHeader_Aperture_get, _IMP_em.DensityHeader_Aperture_set)
914  Magnification = _swig_property(_IMP_em.DensityHeader_Magnification_get, _IMP_em.DensityHeader_Magnification_set)
915  Postmagnification = _swig_property(_IMP_em.DensityHeader_Postmagnification_get, _IMP_em.DensityHeader_Postmagnification_set)
916  Exposuretime = _swig_property(_IMP_em.DensityHeader_Exposuretime_get, _IMP_em.DensityHeader_Exposuretime_set)
917  Microscope = _swig_property(_IMP_em.DensityHeader_Microscope_get, _IMP_em.DensityHeader_Microscope_set)
918  Pixelsize = _swig_property(_IMP_em.DensityHeader_Pixelsize_get, _IMP_em.DensityHeader_Pixelsize_set)
919  CCDArea = _swig_property(_IMP_em.DensityHeader_CCDArea_get, _IMP_em.DensityHeader_CCDArea_set)
920  Defocus = _swig_property(_IMP_em.DensityHeader_Defocus_get, _IMP_em.DensityHeader_Defocus_set)
921  Astigmatism = _swig_property(_IMP_em.DensityHeader_Astigmatism_get, _IMP_em.DensityHeader_Astigmatism_set)
922  AstigmatismAngle = _swig_property(_IMP_em.DensityHeader_AstigmatismAngle_get, _IMP_em.DensityHeader_AstigmatismAngle_set)
923  FocusIncrement = _swig_property(_IMP_em.DensityHeader_FocusIncrement_get, _IMP_em.DensityHeader_FocusIncrement_set)
924  CountsPerElectron = _swig_property(_IMP_em.DensityHeader_CountsPerElectron_get, _IMP_em.DensityHeader_CountsPerElectron_set)
925  Intensity = _swig_property(_IMP_em.DensityHeader_Intensity_get, _IMP_em.DensityHeader_Intensity_set)
926  EnergySlitwidth = _swig_property(_IMP_em.DensityHeader_EnergySlitwidth_get, _IMP_em.DensityHeader_EnergySlitwidth_set)
927  EnergyOffset = _swig_property(_IMP_em.DensityHeader_EnergyOffset_get, _IMP_em.DensityHeader_EnergyOffset_set)
928  Tiltangle = _swig_property(_IMP_em.DensityHeader_Tiltangle_get, _IMP_em.DensityHeader_Tiltangle_set)
929  Tiltaxis = _swig_property(_IMP_em.DensityHeader_Tiltaxis_get, _IMP_em.DensityHeader_Tiltaxis_set)
930  MarkerX = _swig_property(_IMP_em.DensityHeader_MarkerX_get, _IMP_em.DensityHeader_MarkerX_set)
931  MarkerY = _swig_property(_IMP_em.DensityHeader_MarkerY_get, _IMP_em.DensityHeader_MarkerY_set)
932  lswap = _swig_property(_IMP_em.DensityHeader_lswap_get, _IMP_em.DensityHeader_lswap_set)
933 
934  def get_resolution(self):
935  """get_resolution(DensityHeader self) -> float"""
936  return _IMP_em.DensityHeader_get_resolution(self)
937 
938 
939  def get_has_resolution(self):
940  """get_has_resolution(DensityHeader self) -> bool"""
941  return _IMP_em.DensityHeader_get_has_resolution(self)
942 
943 
944  def set_resolution(self, resolution):
945  """set_resolution(DensityHeader self, float resolution)"""
946  return _IMP_em.DensityHeader_set_resolution(self, resolution)
947 
948 
949  def get_spacing(self):
950  """get_spacing(DensityHeader self) -> float"""
951  return _IMP_em.DensityHeader_get_spacing(self)
952 
953 
954  def get_xorigin(self):
955  """get_xorigin(DensityHeader self) -> float"""
956  return _IMP_em.DensityHeader_get_xorigin(self)
957 
958 
959  def get_yorigin(self):
960  """get_yorigin(DensityHeader self) -> float"""
961  return _IMP_em.DensityHeader_get_yorigin(self)
962 
963 
964  def get_zorigin(self):
965  """get_zorigin(DensityHeader self) -> float"""
966  return _IMP_em.DensityHeader_get_zorigin(self)
967 
968 
969  def get_origin(self, i):
970  """get_origin(DensityHeader self, int i) -> float"""
971  return _IMP_em.DensityHeader_get_origin(self, i)
972 
973 
974  def set_xorigin(self, x):
975  """set_xorigin(DensityHeader self, float x)"""
976  return _IMP_em.DensityHeader_set_xorigin(self, x)
977 
978 
979  def set_yorigin(self, y):
980  """set_yorigin(DensityHeader self, float y)"""
981  return _IMP_em.DensityHeader_set_yorigin(self, y)
982 
983 
984  def set_zorigin(self, z):
985  """set_zorigin(DensityHeader self, float z)"""
986  return _IMP_em.DensityHeader_set_zorigin(self, z)
987 
988 
989  def is_top_calculated(self):
990  """is_top_calculated(DensityHeader self) -> bool"""
991  return _IMP_em.DensityHeader_is_top_calculated(self)
992 
993  Objectpixelsize_ = _swig_property(_IMP_em.DensityHeader_Objectpixelsize__get, _IMP_em.DensityHeader_Objectpixelsize__set)
994 
995  def get_nx(self):
996  """get_nx(DensityHeader self) -> int"""
997  return _IMP_em.DensityHeader_get_nx(self)
998 
999 
1000  def get_ny(self):
1001  """get_ny(DensityHeader self) -> int"""
1002  return _IMP_em.DensityHeader_get_ny(self)
1003 
1004 
1005  def get_nz(self):
1006  """get_nz(DensityHeader self) -> int"""
1007  return _IMP_em.DensityHeader_get_nz(self)
1008 
1009 
1010  def get_number_of_voxels(self):
1011  """get_number_of_voxels(DensityHeader self) -> int"""
1012  return _IMP_em.DensityHeader_get_number_of_voxels(self)
1013 
1014 
1015  def get_data_type(self):
1016  """get_data_type(DensityHeader self) -> int"""
1017  return _IMP_em.DensityHeader_get_data_type(self)
1018 
1019 
1020  def set_data_type(self, data_type):
1021  """set_data_type(DensityHeader self, int data_type)"""
1022  return _IMP_em.DensityHeader_set_data_type(self, data_type)
1023 
1024  __swig_destroy__ = _IMP_em.delete_DensityHeader
1025  __del__ = lambda self: None
1026 DensityHeader_swigregister = _IMP_em.DensityHeader_swigregister
1027 DensityHeader_swigregister(DensityHeader)
1028 
1029 
1030 def create_density_header(bb, spacing):
1031  """create_density_header(BoundingBox3D bb, float spacing) -> DensityHeader"""
1032  return _IMP_em.create_density_header(bb, spacing)
1033 
1034 def read_map(*args):
1035  """
1036  read_map(std::string filename, MapReaderWriter reader) -> DensityMap
1037  read_map(std::string filename) -> DensityMap
1038  """
1039  return _IMP_em.read_map(*args)
1040 
1041 def write_map(*args):
1042  """
1043  write_map(DensityMap m, std::string filename, MapReaderWriter writer)
1044  write_map(DensityMap m, std::string filename)
1045  """
1046  return _IMP_em.write_map(*args)
1047 
1048 def approximate_molecular_mass(m, threshold):
1049  """approximate_molecular_mass(DensityMap m, IMP::Float threshold) -> IMP::Float"""
1050  return _IMP_em.approximate_molecular_mass(m, threshold)
1051 class DensityMap(IMP.Object):
1052  """Proxy of C++ IMP::em::DensityMap class"""
1053  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1054 
1055  def __init__(self, *args):
1056  """
1057  __init__(IMP::em::DensityMap self, std::string name) -> DensityMap
1058  __init__(IMP::em::DensityMap self) -> DensityMap
1059  __init__(IMP::em::DensityMap self, DensityHeader header, std::string name) -> DensityMap
1060  __init__(IMP::em::DensityMap self, DensityHeader header) -> DensityMap
1061  """
1062  this = _IMP_em.new_DensityMap(*args)
1063  try:
1064  self.this.append(this)
1065  except:
1066  self.this = this
1067 
1068  def reset_data(self, value=0.0):
1069  """
1070  reset_data(DensityMap self, float value=0.0)
1071  reset_data(DensityMap self)
1072  """
1073  return _IMP_em.DensityMap_reset_data(self, value)
1074 
1075 
1076  def calcRMS(self):
1077  """calcRMS(DensityMap self) -> double"""
1078  return _IMP_em.DensityMap_calcRMS(self)
1079 
1080 
1081  def std_normalize(self):
1082  """std_normalize(DensityMap self)"""
1083  return _IMP_em.DensityMap_std_normalize(self)
1084 
1085 
1086  def is_normalized(self):
1087  """is_normalized(DensityMap self) -> bool"""
1088  return _IMP_em.DensityMap_is_normalized(self)
1089 
1090 
1091  def get_location_in_dim_by_voxel(self, index, dim):
1092  """get_location_in_dim_by_voxel(DensityMap self, long index, int dim) -> float"""
1093  return _IMP_em.DensityMap_get_location_in_dim_by_voxel(self, index, dim)
1094 
1095 
1096  def xyz_ind2voxel(self, x, y, z):
1097  """xyz_ind2voxel(DensityMap self, int x, int y, int z) -> long"""
1098  return _IMP_em.DensityMap_xyz_ind2voxel(self, x, y, z)
1099 
1100 
1101  def get_voxel_by_location(self, *args):
1102  """
1103  get_voxel_by_location(DensityMap self, float x, float y, float z) -> long
1104  get_voxel_by_location(DensityMap self, Vector3D v) -> long
1105  """
1106  return _IMP_em.DensityMap_get_voxel_by_location(self, *args)
1107 
1108 
1109  def get_location_by_voxel(self, index):
1110  """get_location_by_voxel(DensityMap self, long index) -> Vector3D"""
1111  return _IMP_em.DensityMap_get_location_by_voxel(self, index)
1112 
1113 
1114  def is_xyz_ind_part_of_volume(self, ix, iy, iz):
1115  """is_xyz_ind_part_of_volume(DensityMap self, int ix, int iy, int iz) -> bool"""
1116  return _IMP_em.DensityMap_is_xyz_ind_part_of_volume(self, ix, iy, iz)
1117 
1118 
1119  def is_part_of_volume(self, *args):
1120  """
1121  is_part_of_volume(DensityMap self, float x, float y, float z) -> bool
1122  is_part_of_volume(DensityMap self, Vector3D v) -> bool
1123  """
1124  return _IMP_em.DensityMap_is_part_of_volume(self, *args)
1125 
1126 
1127  def get_value(self, *args):
1128  """
1129  get_value(DensityMap self, float x, float y, float z) -> double
1130  get_value(DensityMap self, Vector3D point) -> double
1131  get_value(DensityMap self, long index) -> double
1132  """
1133  return _IMP_em.DensityMap_get_value(self, *args)
1134 
1135 
1136  def set_value(self, *args):
1137  """
1138  set_value(DensityMap self, long index, double value)
1139  set_value(DensityMap self, float x, float y, float z, double value)
1140  """
1141  return _IMP_em.DensityMap_set_value(self, *args)
1142 
1143 
1144  def set_origin(self, *args):
1145  """
1146  set_origin(DensityMap self, float x, float y, float z)
1147  set_origin(DensityMap self, Vector3D v)
1148  """
1149  return _IMP_em.DensityMap_set_origin(self, *args)
1150 
1151 
1152  def get_origin(self):
1153  """get_origin(DensityMap self) -> Vector3D"""
1154  return _IMP_em.DensityMap_get_origin(self)
1155 
1156 
1157  def get_top(self):
1158  """get_top(DensityMap self) -> Vector3D"""
1159  return _IMP_em.DensityMap_get_top(self)
1160 
1161 
1162  def get_header(self):
1163  h = _IMP_em.DensityMap_get_header(self)
1164  h._owner = self
1165  return h
1166 
1167 
1168 
1169  def get_header_writable(self):
1170  h = _IMP_em.DensityMap_get_header_writable(self)
1171  h._owner = self
1172  return h
1173 
1174 
1175 
1176  def same_origin(self, other):
1177  """same_origin(DensityMap self, DensityMap other) -> bool"""
1178  return _IMP_em.DensityMap_same_origin(self, other)
1179 
1180 
1181  def same_dimensions(self, other):
1182  """same_dimensions(DensityMap self, DensityMap other) -> bool"""
1183  return _IMP_em.DensityMap_same_dimensions(self, other)
1184 
1185 
1186  def same_voxel_size(self, other):
1187  """same_voxel_size(DensityMap self, DensityMap other) -> bool"""
1188  return _IMP_em.DensityMap_same_voxel_size(self, other)
1189 
1190 
1191  def get_centroid(self, threshold=0.0):
1192  """
1193  get_centroid(DensityMap self, double threshold=0.0) -> Vector3D
1194  get_centroid(DensityMap self) -> Vector3D
1195  """
1196  return _IMP_em.DensityMap_get_centroid(self, threshold)
1197 
1198 
1199  def get_max_value(self):
1200  """get_max_value(DensityMap self) -> double"""
1201  return _IMP_em.DensityMap_get_max_value(self)
1202 
1203 
1204  def get_min_value(self):
1205  """get_min_value(DensityMap self) -> double"""
1206  return _IMP_em.DensityMap_get_min_value(self)
1207 
1208 
1209  def add(self, *args):
1210  """
1211  add(DensityMap self, DensityMap other)
1212  add(DensityMap self, IMP::Float d)
1213  """
1214  return _IMP_em.DensityMap_add(self, *args)
1215 
1216 
1217  def pick_max(self, other):
1218  """pick_max(DensityMap self, DensityMap other)"""
1219  return _IMP_em.DensityMap_pick_max(self, other)
1220 
1221 
1222  def get_number_of_voxels(self):
1223  """get_number_of_voxels(DensityMap self) -> long"""
1224  return _IMP_em.DensityMap_get_number_of_voxels(self)
1225 
1226 
1227  def set_void_map(self, nx, ny, nz):
1228  """set_void_map(DensityMap self, int nx, int ny, int nz)"""
1229  return _IMP_em.DensityMap_set_void_map(self, nx, ny, nz)
1230 
1231 
1232  def pad(self, nx, ny, nz, val=0.0):
1233  """
1234  pad(DensityMap self, int nx, int ny, int nz, float val=0.0)
1235  pad(DensityMap self, int nx, int ny, int nz)
1236  """
1237  return _IMP_em.DensityMap_pad(self, nx, ny, nz, val)
1238 
1239 
1240  def pad_margin(self, mrg_x, mrg_y, mrg_z, val=0.0):
1241  """
1242  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z, float val=0.0) -> DensityMap
1243  pad_margin(DensityMap self, int mrg_x, int mrg_y, int mrg_z) -> DensityMap
1244  """
1245  return _IMP_em.DensityMap_pad_margin(self, mrg_x, mrg_y, mrg_z, val)
1246 
1247 
1248  def get_cropped(self, *args):
1249  """
1250  get_cropped(DensityMap self, float threshold) -> DensityMap
1251  get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False, bool keep_map_dimensions=False) -> DensityMap
1252  get_cropped(DensityMap self, IMP::Particles ps, double distance, bool inverse=False) -> DensityMap
1253  get_cropped(DensityMap self, IMP::Particles ps, double distance) -> DensityMap
1254  get_cropped(DensityMap self, BoundingBox3D bb) -> DensityMap
1255  """
1256  return _IMP_em.DensityMap_get_cropped(self, *args)
1257 
1258 
1259  def get_maximum_value_in_xy_plane(self, z_ind):
1260  """get_maximum_value_in_xy_plane(DensityMap self, int z_ind) -> float"""
1261  return _IMP_em.DensityMap_get_maximum_value_in_xy_plane(self, z_ind)
1262 
1263 
1264  def get_maximum_value_in_xz_plane(self, y_ind):
1265  """get_maximum_value_in_xz_plane(DensityMap self, int y_ind) -> float"""
1266  return _IMP_em.DensityMap_get_maximum_value_in_xz_plane(self, y_ind)
1267 
1268 
1269  def get_maximum_value_in_yz_plane(self, x_ind):
1270  """get_maximum_value_in_yz_plane(DensityMap self, int x_ind) -> float"""
1271  return _IMP_em.DensityMap_get_maximum_value_in_yz_plane(self, x_ind)
1272 
1273 
1274  def multiply(self, factor):
1275  """multiply(DensityMap self, float factor)"""
1276  return _IMP_em.DensityMap_multiply(self, factor)
1277 
1278 
1279  def get_locations_string(self, t):
1280  """get_locations_string(DensityMap self, float t) -> std::string"""
1281  return _IMP_em.DensityMap_get_locations_string(self, t)
1282 
1283 
1284  def update_voxel_size(self, new_apix):
1285  """update_voxel_size(DensityMap self, float new_apix)"""
1286  return _IMP_em.DensityMap_update_voxel_size(self, new_apix)
1287 
1288 
1289  def get_spacing(self):
1290  """get_spacing(DensityMap self) -> IMP::Float"""
1291  return _IMP_em.DensityMap_get_spacing(self)
1292 
1293 
1294  def calc_all_voxel2loc(self):
1295  """calc_all_voxel2loc(DensityMap self)"""
1296  return _IMP_em.DensityMap_calc_all_voxel2loc(self)
1297 
1298 
1299  def copy_map(self, other):
1300  """copy_map(DensityMap self, DensityMap other)"""
1301  return _IMP_em.DensityMap_copy_map(self, other)
1302 
1303 
1304  def get_version_info(self):
1305  """get_version_info(DensityMap self) -> VersionInfo"""
1306  return _IMP_em.DensityMap_get_version_info(self)
1307 
1308 
1309  def lower_voxel_shift(self, loc, kdist, orig, ndim):
1310  """lower_voxel_shift(DensityMap self, double loc, double kdist, double orig, int ndim) -> int"""
1311  return _IMP_em.DensityMap_lower_voxel_shift(self, loc, kdist, orig, ndim)
1312 
1313 
1314  def upper_voxel_shift(self, loc, kdist, orig, ndim):
1315  """upper_voxel_shift(DensityMap self, double loc, double kdist, double orig, int ndim) -> int"""
1316  return _IMP_em.DensityMap_upper_voxel_shift(self, loc, kdist, orig, ndim)
1317 
1318 
1319  def get_rms_calculated(self):
1320  """get_rms_calculated(DensityMap self) -> bool"""
1321  return _IMP_em.DensityMap_get_rms_calculated(self)
1322 
1323 
1324  def get_dim_index_by_location(self, *args):
1325  """
1326  get_dim_index_by_location(DensityMap self, Vector3D v, int ind) -> int
1327  get_dim_index_by_location(DensityMap self, float loc_val, int ind) -> int
1328  """
1329  return _IMP_em.DensityMap_get_dim_index_by_location(self, *args)
1330 
1331 
1332  def __str__(self):
1333  """__str__(DensityMap self) -> std::string"""
1334  return _IMP_em.DensityMap___str__(self)
1335 
1336 
1337  def __repr__(self):
1338  """__repr__(DensityMap self) -> std::string"""
1339  return _IMP_em.DensityMap___repr__(self)
1340 
1341 
1342  @staticmethod
1343  def get_from(o):
1344  return _object_cast_to_DensityMap(o)
1345 
1346 
1347  def get_x_loc(self):
1348  return _get_density_map_x_loc(self, self)
1349 
1350  def get_y_loc(self):
1351  return _get_density_map_y_loc(self, self)
1352 
1353  def get_z_loc(self):
1354  return _get_density_map_z_loc(self, self)
1355 
1356  def get_data(self):
1357  return _get_density_map_data(self, self)
1358 
1359 DensityMap_swigregister = _IMP_em.DensityMap_swigregister
1360 DensityMap_swigregister(DensityMap)
1361 
1362 
1363 def get_bounding_box(*args):
1364  """
1365  get_bounding_box(DensityMap m, IMP::Float threshold) -> BoundingBox3D
1366  get_bounding_box(DensityMap m) -> BoundingBox3D
1367  """
1368  return _IMP_em.get_bounding_box(*args)
1369 
1370 def get_density(m, v):
1371  """get_density(DensityMap m, Vector3D v) -> double"""
1372  return _IMP_em.get_density(m, v)
1373 
1374 def get_transformed(*args):
1375  """
1376  get_transformed(DensityMap input, Transformation3D tr, double threshold) -> DensityMap
1377  get_transformed(DensityMap input, Transformation3D tr) -> DensityMap
1378  """
1379  return _IMP_em.get_transformed(*args)
1380 
1381 def get_resampled(input, scaling):
1382  """get_resampled(DensityMap input, double scaling) -> DensityMap"""
1383  return _IMP_em.get_resampled(input, scaling)
1384 
1385 def get_transformed_into(source, tr, into, calc_rms=True):
1386  """
1387  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into, bool calc_rms=True)
1388  get_transformed_into(DensityMap source, Transformation3D tr, DensityMap into)
1389  """
1390  return _IMP_em.get_transformed_into(source, tr, into, calc_rms)
1391 
1392 def get_transformed_into2(source, tr, into):
1393  """get_transformed_into2(DensityMap source, Transformation3D tr, DensityMap into)"""
1394  return _IMP_em.get_transformed_into2(source, tr, into)
1395 
1396 def get_interiors_intersect(d1, d2):
1397  """get_interiors_intersect(DensityMap d1, DensityMap d2) -> bool"""
1398  return _IMP_em.get_interiors_intersect(d1, d2)
1399 
1400 def get_segment(*args):
1401  """
1402  get_segment(DensityMap map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end) -> DensityMap
1403  get_segment(DensityMap map_to_segment, IMP::algebra::Vector3Ds vecs, float dist) -> DensityMap
1404  """
1405  return _IMP_em.get_segment(*args)
1406 
1407 def get_segment_by_masking(map_to_segment, mask, mas_threshold):
1408  """get_segment_by_masking(DensityMap map_to_segment, DensityMap mask, float mas_threshold) -> DensityMap"""
1409  return _IMP_em.get_segment_by_masking(map_to_segment, mask, mas_threshold)
1410 
1411 def binarize(orig_map, threshold, reverse=False):
1412  """
1413  binarize(DensityMap orig_map, float threshold, bool reverse=False) -> DensityMap
1414  binarize(DensityMap orig_map, float threshold) -> DensityMap
1415  """
1416  return _IMP_em.binarize(orig_map, threshold, reverse)
1417 
1418 def get_threshold_map(orig_map, threshold):
1419  """get_threshold_map(DensityMap orig_map, float threshold) -> DensityMap"""
1420  return _IMP_em.get_threshold_map(orig_map, threshold)
1421 
1422 def multiply(m1, m2):
1423  """multiply(DensityMap m1, DensityMap m2) -> DensityMap"""
1424  return _IMP_em.multiply(m1, m2)
1425 
1426 def convolute(m1, m2):
1427  """convolute(DensityMap m1, DensityMap m2) -> double"""
1428  return _IMP_em.convolute(m1, m2)
1429 
1430 def get_sum(m1):
1431  """get_sum(DensityMap m1) -> double"""
1432  return _IMP_em.get_sum(m1)
1433 
1434 def get_max_map(maps):
1435  """get_max_map(IMP::em::DensityMaps maps) -> DensityMap"""
1436  return _IMP_em.get_max_map(maps)
1437 
1438 def interpolate_map(in_map, new_spacing):
1439  """interpolate_map(DensityMap in_map, double new_spacing) -> DensityMap"""
1440  return _IMP_em.interpolate_map(in_map, new_spacing)
1441 
1442 def get_grid(in_map):
1443  """get_grid(DensityMap in_map) -> IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,float >,float,IMP::algebra::DefaultEmbeddingD< 3 > >"""
1444  return _IMP_em.get_grid(in_map)
1445 
1446 def create_density_map(*args):
1447  """
1448  create_density_map(DensityMap other) -> DensityMap
1449  create_density_map(BoundingBox3D bb, double spacing) -> DensityMap
1450  create_density_map(int nx, int ny, int nz, double spacing) -> DensityMap
1451  create_density_map(DenseFloatGrid3D grid) -> DensityMap
1452  create_density_map(DenseDoubleGrid3D grid) -> DensityMap
1453  """
1454  return _IMP_em.create_density_map(*args)
1455 
1456 def get_binarized_interior(dmap):
1457  """get_binarized_interior(DensityMap dmap) -> DensityMap"""
1458  return _IMP_em.get_binarized_interior(dmap)
1459 
1460 def add_to_map(dm, pis):
1461  """add_to_map(DensityMap dm, IMP::Particles const & pis)"""
1462  return _IMP_em.add_to_map(dm, pis)
1463 class RadiusDependentDistanceMask(object):
1464  """Proxy of C++ IMP::em::RadiusDependentDistanceMask class"""
1465  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1466  __repr__ = _swig_repr
1467 
1468  def __init__(self, sampling_radius, header):
1469  """__init__(IMP::em::RadiusDependentDistanceMask self, float sampling_radius, DensityHeader header) -> RadiusDependentDistanceMask"""
1470  this = _IMP_em.new_RadiusDependentDistanceMask(sampling_radius, header)
1471  try:
1472  self.this.append(this)
1473  except:
1474  self.this = this
1475 
1476  def get_neighbor_shift(self):
1477  """get_neighbor_shift(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1478  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_shift(self)
1479 
1480 
1481  def get_neighbor_dist(self):
1482  """get_neighbor_dist(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1483  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist(self)
1484 
1485 
1486  def get_neighbor_dist_exp(self):
1487  """get_neighbor_dist_exp(RadiusDependentDistanceMask self) -> std::vector< double,std::allocator< double > > const *"""
1488  return _IMP_em.RadiusDependentDistanceMask_get_neighbor_dist_exp(self)
1489 
1490 
1491  def show(self, out):
1492  """show(RadiusDependentDistanceMask self, _ostream out)"""
1493  return _IMP_em.RadiusDependentDistanceMask_show(self, out)
1494 
1495  __swig_destroy__ = _IMP_em.delete_RadiusDependentDistanceMask
1496  __del__ = lambda self: None
1497 RadiusDependentDistanceMask_swigregister = _IMP_em.RadiusDependentDistanceMask_swigregister
1498 RadiusDependentDistanceMask_swigregister(RadiusDependentDistanceMask)
1499 
1500 class DistanceMask(object):
1501  """Proxy of C++ IMP::em::DistanceMask class"""
1502  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1503  __repr__ = _swig_repr
1504 
1505  def __init__(self, *args):
1506  """
1507  __init__(IMP::em::DistanceMask self) -> DistanceMask
1508  __init__(IMP::em::DistanceMask self, DensityHeader header) -> DistanceMask
1509  """
1510  this = _IMP_em.new_DistanceMask(*args)
1511  try:
1512  self.this.append(this)
1513  except:
1514  self.this = this
1515 
1516  def show(self, out):
1517  """show(DistanceMask self, _ostream out)"""
1518  return _IMP_em.DistanceMask_show(self, out)
1519 
1520 
1521  def is_mask_set(self, radius, eps=0.001):
1522  """
1523  is_mask_set(DistanceMask self, float radius, float eps=0.001) -> bool
1524  is_mask_set(DistanceMask self, float radius) -> bool
1525  """
1526  return _IMP_em.DistanceMask_is_mask_set(self, radius, eps)
1527 
1528  __swig_destroy__ = _IMP_em.delete_DistanceMask
1529  __del__ = lambda self: None
1530 DistanceMask_swigregister = _IMP_em.DistanceMask_swigregister
1531 DistanceMask_swigregister(DistanceMask)
1532 
1533 class EMReaderWriter(MapReaderWriter):
1534  """Proxy of C++ IMP::em::EMReaderWriter class"""
1535  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1536 
1537  def __str__(self):
1538  """__str__(EMReaderWriter self) -> std::string"""
1539  return _IMP_em.EMReaderWriter___str__(self)
1540 
1541 
1542  def __repr__(self):
1543  """__repr__(EMReaderWriter self) -> std::string"""
1544  return _IMP_em.EMReaderWriter___repr__(self)
1545 
1546 
1547  @staticmethod
1548  def get_from(o):
1549  return _object_cast_to_EMReaderWriter(o)
1550 
1551 
1552  def __init__(self):
1553  """__init__(IMP::em::EMReaderWriter self) -> EMReaderWriter"""
1554  this = _IMP_em.new_EMReaderWriter()
1555  try:
1556  self.this.append(this)
1557  except:
1558  self.this = this
1559 EMReaderWriter_swigregister = _IMP_em.EMReaderWriter_swigregister
1560 EMReaderWriter_swigregister(EMReaderWriter)
1561 
1562 class XplorReaderWriter(MapReaderWriter):
1563  """Proxy of C++ IMP::em::XplorReaderWriter class"""
1564  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1565 
1566  def __str__(self):
1567  """__str__(XplorReaderWriter self) -> std::string"""
1568  return _IMP_em.XplorReaderWriter___str__(self)
1569 
1570 
1571  def __repr__(self):
1572  """__repr__(XplorReaderWriter self) -> std::string"""
1573  return _IMP_em.XplorReaderWriter___repr__(self)
1574 
1575 
1576  @staticmethod
1577  def get_from(o):
1578  return _object_cast_to_XplorReaderWriter(o)
1579 
1580 
1581  def __init__(self):
1582  """__init__(IMP::em::XplorReaderWriter self) -> XplorReaderWriter"""
1583  this = _IMP_em.new_XplorReaderWriter()
1584  try:
1585  self.this.append(this)
1586  except:
1587  self.this = this
1588 XplorReaderWriter_swigregister = _IMP_em.XplorReaderWriter_swigregister
1589 XplorReaderWriter_swigregister(XplorReaderWriter)
1590 
1591 class MRCReaderWriter(MapReaderWriter):
1592  """Proxy of C++ IMP::em::MRCReaderWriter class"""
1593  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1594 
1595  def __init__(self, *args):
1596  """
1597  __init__(IMP::em::MRCReaderWriter self) -> MRCReaderWriter
1598  __init__(IMP::em::MRCReaderWriter self, std::string fn) -> MRCReaderWriter
1599  """
1600  this = _IMP_em.new_MRCReaderWriter(*args)
1601  try:
1602  self.this.append(this)
1603  except:
1604  self.this = this
1605 
1606  def __str__(self):
1607  """__str__(MRCReaderWriter self) -> std::string"""
1608  return _IMP_em.MRCReaderWriter___str__(self)
1609 
1610 
1611  def __repr__(self):
1612  """__repr__(MRCReaderWriter self) -> std::string"""
1613  return _IMP_em.MRCReaderWriter___repr__(self)
1614 
1615 
1616  @staticmethod
1617  def get_from(o):
1618  return _object_cast_to_MRCReaderWriter(o)
1619 
1620 MRCReaderWriter_swigregister = _IMP_em.MRCReaderWriter_swigregister
1621 MRCReaderWriter_swigregister(MRCReaderWriter)
1622 
1623 class KernelParameters(object):
1624  """Proxy of C++ IMP::em::KernelParameters class"""
1625  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1626 
1627  def __init__(self, *args):
1628  """
1629  __init__(IMP::em::KernelParameters self) -> KernelParameters
1630  __init__(IMP::em::KernelParameters self, float resolution) -> KernelParameters
1631  """
1632  this = _IMP_em.new_KernelParameters(*args)
1633  try:
1634  self.this.append(this)
1635  except:
1636  self.this = this
1637  __swig_destroy__ = _IMP_em.delete_KernelParameters
1638  __del__ = lambda self: None
1639 
1640  def get_rsig(self):
1641  """get_rsig(KernelParameters self) -> float"""
1642  return _IMP_em.KernelParameters_get_rsig(self)
1643 
1644 
1645  def get_rsigsq(self):
1646  """get_rsigsq(KernelParameters self) -> float"""
1647  return _IMP_em.KernelParameters_get_rsigsq(self)
1648 
1649 
1650  def get_inv_rsigsq(self):
1651  """get_inv_rsigsq(KernelParameters self) -> float"""
1652  return _IMP_em.KernelParameters_get_inv_rsigsq(self)
1653 
1654 
1655  def get_timessig(self):
1656  """get_timessig(KernelParameters self) -> float"""
1657  return _IMP_em.KernelParameters_get_timessig(self)
1658 
1659 
1660  def get_sq2pi3(self):
1661  """get_sq2pi3(KernelParameters self) -> float"""
1662  return _IMP_em.KernelParameters_get_sq2pi3(self)
1663 
1664 
1665  def get_rnormfac(self):
1666  """get_rnormfac(KernelParameters self) -> float"""
1667  return _IMP_em.KernelParameters_get_rnormfac(self)
1668 
1669 
1670  def get_rkdist(self):
1671  """get_rkdist(KernelParameters self) -> float"""
1672  return _IMP_em.KernelParameters_get_rkdist(self)
1673 
1674 
1675  def get_rkdistsq(self):
1676  """get_rkdistsq(KernelParameters self) -> float"""
1677  return _IMP_em.KernelParameters_get_rkdistsq(self)
1678 
1679 
1680  def get_lim(self):
1681  """get_lim(KernelParameters self) -> float"""
1682  return _IMP_em.KernelParameters_get_lim(self)
1683 
1684 
1685  def show(self, *args):
1686  """
1687  show(KernelParameters self, _ostream out)
1688  show(KernelParameters self)
1689  """
1690  return _IMP_em.KernelParameters_show(self, *args)
1691 
1692 
1693  def __str__(self):
1694  """__str__(KernelParameters self) -> std::string"""
1695  return _IMP_em.KernelParameters___str__(self)
1696 
1697 
1698  def __repr__(self):
1699  """__repr__(KernelParameters self) -> std::string"""
1700  return _IMP_em.KernelParameters___repr__(self)
1701 
1702 
1703  def _get_as_binary(self):
1704  """_get_as_binary(KernelParameters self) -> PyObject *"""
1705  return _IMP_em.KernelParameters__get_as_binary(self)
1706 
1707 
1708  def _set_from_binary(self, p):
1709  """_set_from_binary(KernelParameters self, PyObject * p)"""
1710  return _IMP_em.KernelParameters__set_from_binary(self, p)
1711 
1712 
1713  def __getstate__(self):
1714  p = self._get_as_binary()
1715  if len(self.__dict__) > 1:
1716  d = self.__dict__.copy()
1717  del d['this']
1718  p = (d, p)
1719  return p
1720 
1721  def __setstate__(self, p):
1722  if not hasattr(self, 'this'):
1723  self.__init__()
1724  if isinstance(p, tuple):
1725  d, p = p
1726  self.__dict__.update(d)
1727  return self._set_from_binary(p)
1728 
1729 KernelParameters_swigregister = _IMP_em.KernelParameters_swigregister
1730 KernelParameters_swigregister(KernelParameters)
1731 
1732 
1733 _IMP_em.GAUSSIAN_swigconstant(_IMP_em)
1734 GAUSSIAN = _IMP_em.GAUSSIAN
1735 
1736 _IMP_em.BINARIZED_SPHERE_swigconstant(_IMP_em)
1737 BINARIZED_SPHERE = _IMP_em.BINARIZED_SPHERE
1738 
1739 _IMP_em.SPHERE_swigconstant(_IMP_em)
1740 SPHERE = _IMP_em.SPHERE
1741 class SampledDensityMap(DensityMap):
1742  """Proxy of C++ IMP::em::SampledDensityMap class"""
1743  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1744 
1745  def __init__(self, *args):
1746  """
1747  __init__(IMP::em::SampledDensityMap self, IMP::em::KernelType kt) -> SampledDensityMap
1748  __init__(IMP::em::SampledDensityMap self) -> SampledDensityMap
1749  __init__(IMP::em::SampledDensityMap self, DensityHeader header, IMP::em::KernelType kt) -> SampledDensityMap
1750  __init__(IMP::em::SampledDensityMap self, DensityHeader header) -> SampledDensityMap
1751  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key, int sig_cutoff=3, IMP::em::KernelType kt) -> SampledDensityMap
1752  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key, int sig_cutoff=3) -> SampledDensityMap
1753  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size, FloatKey mass_key) -> SampledDensityMap
1754  __init__(IMP::em::SampledDensityMap self, IMP::ParticlesTemp const & ps, double resolution, double voxel_size) -> SampledDensityMap
1755  """
1756  this = _IMP_em.new_SampledDensityMap(*args)
1757  try:
1758  self.this.append(this)
1759  except:
1760  self.this = this
1761 
1762  def resample(self):
1763  """resample(SampledDensityMap self)"""
1764  return _IMP_em.SampledDensityMap_resample(self)
1765 
1766 
1767  def project(self, *args):
1768  """
1769  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift, FloatKey mass_key)
1770  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin, Vector3D shift)
1771  project(SampledDensityMap self, IMP::ParticlesTemp const & ps, int x_margin, int y_margin, int z_margin)
1772  """
1773  return _IMP_em.SampledDensityMap_project(self, *args)
1774 
1775 
1776  def set_particles(self, *args):
1777  """
1778  set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps, FloatKey mass_key)
1779  set_particles(SampledDensityMap self, IMP::ParticlesTemp const & ps)
1780  """
1781  return _IMP_em.SampledDensityMap_set_particles(self, *args)
1782 
1783 
1784  def get_xyzr_particles(self):
1785  """get_xyzr_particles(SampledDensityMap self) -> IMP::core::XYZRs const &"""
1786  return _IMP_em.SampledDensityMap_get_xyzr_particles(self)
1787 
1788 
1789  def get_sampled_particles(self):
1790  """get_sampled_particles(SampledDensityMap self) -> IMP::Particles const &"""
1791  return _IMP_em.SampledDensityMap_get_sampled_particles(self)
1792 
1793 
1794  def get_weight_key(self):
1795  """get_weight_key(SampledDensityMap self) -> FloatKey"""
1796  return _IMP_em.SampledDensityMap_get_weight_key(self)
1797 
1798 
1799  def get_minimum_resampled_value(self):
1800  """get_minimum_resampled_value(SampledDensityMap self) -> float"""
1801  return _IMP_em.SampledDensityMap_get_minimum_resampled_value(self)
1802 
1803 
1804  def update_resolution(self, res):
1805  """update_resolution(SampledDensityMap self, IMP::Float res)"""
1806  return _IMP_em.SampledDensityMap_update_resolution(self, res)
1807 
1808  __swig_destroy__ = _IMP_em.delete_SampledDensityMap
1809  __del__ = lambda self: None
1810 
1811  def __str__(self):
1812  """__str__(SampledDensityMap self) -> std::string"""
1813  return _IMP_em.SampledDensityMap___str__(self)
1814 
1815 
1816  def __repr__(self):
1817  """__repr__(SampledDensityMap self) -> std::string"""
1818  return _IMP_em.SampledDensityMap___repr__(self)
1819 
1820 
1821  @staticmethod
1822  def get_from(o):
1823  return _object_cast_to_SampledDensityMap(o)
1824 
1825 SampledDensityMap_swigregister = _IMP_em.SampledDensityMap_swigregister
1826 SampledDensityMap_swigregister(SampledDensityMap)
1827 
1828 
1829 _IMP_em.IMP_DEFAULT_NUM_SHELLS_swigconstant(_IMP_em)
1830 IMP_DEFAULT_NUM_SHELLS = _IMP_em.IMP_DEFAULT_NUM_SHELLS
1831 
1832 _IMP_em.IMP_SIG_CUTOFF_swigconstant(_IMP_em)
1833 IMP_SIG_CUTOFF = _IMP_em.IMP_SIG_CUTOFF
1834 class SurfaceShellDensityMap(SampledDensityMap):
1835  """Proxy of C++ IMP::em::SurfaceShellDensityMap class"""
1836  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1837 
1838  def __init__(self, *args):
1839  """
1840  __init__(IMP::em::SurfaceShellDensityMap self) -> SurfaceShellDensityMap
1841  __init__(IMP::em::SurfaceShellDensityMap self, DensityHeader header) -> SurfaceShellDensityMap
1842  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key, int num_shells=5) -> SurfaceShellDensityMap
1843  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size, FloatKey mass_key) -> SurfaceShellDensityMap
1844  __init__(IMP::em::SurfaceShellDensityMap self, IMP::ParticlesTemp const & ps, float voxel_size) -> SurfaceShellDensityMap
1845  """
1846  this = _IMP_em.new_SurfaceShellDensityMap(*args)
1847  try:
1848  self.this.append(this)
1849  except:
1850  self.this = this
1851 
1852  def binarize(self, scene_val):
1853  """binarize(SurfaceShellDensityMap self, float scene_val)"""
1854  return _IMP_em.SurfaceShellDensityMap_binarize(self, scene_val)
1855 
1856 
1857  def has_background_neighbor(self, voxel_ind):
1858  """has_background_neighbor(SurfaceShellDensityMap self, long voxel_ind) -> bool"""
1859  return _IMP_em.SurfaceShellDensityMap_has_background_neighbor(self, voxel_ind)
1860 
1861  __swig_destroy__ = _IMP_em.delete_SurfaceShellDensityMap
1862  __del__ = lambda self: None
1863 
1864  def __str__(self):
1865  """__str__(SurfaceShellDensityMap self) -> std::string"""
1866  return _IMP_em.SurfaceShellDensityMap___str__(self)
1867 
1868 
1869  def __repr__(self):
1870  """__repr__(SurfaceShellDensityMap self) -> std::string"""
1871  return _IMP_em.SurfaceShellDensityMap___repr__(self)
1872 
1873 
1874  @staticmethod
1875  def get_from(o):
1876  return _object_cast_to_SurfaceShellDensityMap(o)
1877 
1878 SurfaceShellDensityMap_swigregister = _IMP_em.SurfaceShellDensityMap_swigregister
1879 SurfaceShellDensityMap_swigregister(SurfaceShellDensityMap)
1880 
1881 
1882 def get_coarse_cc_score(*args):
1883  """
1884  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True, IMP::FloatPair norm_factors) -> double
1885  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True, bool resample=True) -> double
1886  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor, bool recalc_rms=True) -> double
1887  get_coarse_cc_score(DensityMap data, SampledDensityMap model_map, double scalefactor) -> double
1888  """
1889  return _IMP_em.get_coarse_cc_score(*args)
1890 
1891 def get_coarse_cc_coefficient(*args):
1892  """
1893  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False, IMP::FloatPair norm_factors) -> double
1894  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold, bool allow_padding=False) -> double
1895  get_coarse_cc_coefficient(DensityMap grid1, DensityMap grid2, double grid2_voxel_data_threshold) -> double
1896  """
1897  return _IMP_em.get_coarse_cc_coefficient(*args)
1898 
1899 def get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold):
1900  """get_coarse_cc_local_coefficient(DensityMap em_map, DensityMap model_map, double voxel_data_threshold) -> double"""
1901  return _IMP_em.get_coarse_cc_local_coefficient(em_map, model_map, voxel_data_threshold)
1902 class CoarseConvolution(object):
1903  """Proxy of C++ IMP::em::CoarseConvolution class"""
1904  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1905  __repr__ = _swig_repr
1906 
1907  def convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1908  """
1909  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1910  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1911  """
1912  return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1913 
1914  convolution = staticmethod(convolution)
1915 
1916  def __init__(self):
1917  """__init__(IMP::em::CoarseConvolution self) -> CoarseConvolution"""
1918  this = _IMP_em.new_CoarseConvolution()
1919  try:
1920  self.this.append(this)
1921  except:
1922  self.this = this
1923  __swig_destroy__ = _IMP_em.delete_CoarseConvolution
1924  __del__ = lambda self: None
1925 CoarseConvolution_swigregister = _IMP_em.CoarseConvolution_swigregister
1926 CoarseConvolution_swigregister(CoarseConvolution)
1927 
1928 def CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac=True):
1929  """
1930  convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold, bool recalc_ccnormfac=True) -> float
1931  CoarseConvolution_convolution(DensityMap em_map, DensityMap model_map, float voxel_data_threshold) -> float
1932  """
1933  return _IMP_em.CoarseConvolution_convolution(em_map, model_map, voxel_data_threshold, recalc_ccnormfac)
1934 
1935 class CoarseCCatIntervals(IMP.Object):
1936  """Proxy of C++ IMP::em::CoarseCCatIntervals class"""
1937  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1938 
1939  def __init__(self, *args):
1940  """
1941  __init__(IMP::em::CoarseCCatIntervals self, int const & ncd) -> CoarseCCatIntervals
1942  __init__(IMP::em::CoarseCCatIntervals self) -> CoarseCCatIntervals
1943  """
1944  this = _IMP_em.new_CoarseCCatIntervals(*args)
1945  try:
1946  self.this.append(this)
1947  except:
1948  self.this = this
1949 
1950  def evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval):
1951  """evaluate(CoarseCCatIntervals self, DensityMap em_map, SampledDensityMap model_map, IMP::algebra::Vector3Ds const & deriv, float scalefac, bool lderiv, unsigned long eval_interval) -> std::pair< double,IMP::algebra::Vector3Ds >"""
1952  return _IMP_em.CoarseCCatIntervals_evaluate(self, em_map, model_map, deriv, scalefac, lderiv, eval_interval)
1953 
1954 
1955  def get_version_info(self):
1956  """get_version_info(CoarseCCatIntervals self) -> VersionInfo"""
1957  return _IMP_em.CoarseCCatIntervals_get_version_info(self)
1958 
1959 
1960  def __str__(self):
1961  """__str__(CoarseCCatIntervals self) -> std::string"""
1962  return _IMP_em.CoarseCCatIntervals___str__(self)
1963 
1964 
1965  def __repr__(self):
1966  """__repr__(CoarseCCatIntervals self) -> std::string"""
1967  return _IMP_em.CoarseCCatIntervals___repr__(self)
1968 
1969 
1970  @staticmethod
1971  def get_from(o):
1972  return _object_cast_to_CoarseCCatIntervals(o)
1973 
1974 CoarseCCatIntervals_swigregister = _IMP_em.CoarseCCatIntervals_swigregister
1975 CoarseCCatIntervals_swigregister(CoarseCCatIntervals)
1976 
1977 
1979  """bayesem3d_get_distinct_and_counts(DensityMap em) -> std::map< double,int >"""
1980  return _IMP_em.bayesem3d_get_distinct_and_counts(em)
1981 
1983  """bayesem3d_get_cumulative_sum(DensityMap em) -> IMP::Floats"""
1984  return _IMP_em.bayesem3d_get_cumulative_sum(em)
1985 
1987  """bayesem3d_get_cumulative_sum_with_reference(DensityMap em) -> std::map< double,double >"""
1988  return _IMP_em.bayesem3d_get_cumulative_sum_with_reference(em)
1989 
1990 def bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate):
1991  """bayesem3d_linear_interpolate(IMP::Floats const & x_data, IMP::Floats const & y_data, double x, bool extrapolate) -> double"""
1992  return _IMP_em.bayesem3d_linear_interpolate(x_data, y_data, x, extrapolate)
1993 
1994 def bayesem3d_get_logabssumexp(x, y, sx, sy):
1995  """bayesem3d_get_logabssumexp(double x, double y, double sx, double sy) -> IMP::FloatPair"""
1996  return _IMP_em.bayesem3d_get_logabssumexp(x, y, sx, sy)
1997 
1998 def bayesem3d_get_logabssumprodexp(x, y, wx, wy):
1999  """bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy) -> IMP::FloatPair"""
2000  return _IMP_em.bayesem3d_get_logabssumprodexp(x, y, wx, wy)
2001 
2002 def bayesem3d_get_logsumexp(x, y):
2003  """bayesem3d_get_logsumexp(double x, double y) -> double"""
2004  return _IMP_em.bayesem3d_get_logsumexp(x, y)
2005 
2006 def bayesem3d_get_logsumprodexp(x, y, wx, wy):
2007  """bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy) -> double"""
2008  return _IMP_em.bayesem3d_get_logsumprodexp(x, y, wx, wy)
2009 
2010 def bayesem3d_get_em_density_squared(em, number_of_voxels):
2011  """bayesem3d_get_em_density_squared(DensityMap em, long number_of_voxels) -> IMP::FloatPair"""
2012  return _IMP_em.bayesem3d_get_em_density_squared(em, number_of_voxels)
2013 
2014 def bayesem3d_get_value(p, pt, mass_ii, kps):
2015  """bayesem3d_get_value(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2016  return _IMP_em.bayesem3d_get_value(p, pt, mass_ii, kps)
2017 
2018 def bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps):
2019  """bayesem3d_get_value_no_deriv(Particle p, Vector3D pt, double mass_ii, KernelParameters kps) -> std::vector< double,std::allocator< double > >"""
2020  return _IMP_em.bayesem3d_get_value_no_deriv(p, pt, mass_ii, kps)
2021 
2022 def bayesem3d_get_density_from_particle(em, ps, resolution, window_size=1.0):
2023  """
2024  bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double const window_size=1.0) -> DensityMap
2025  bayesem3d_get_density_from_particle(DensityMap em, IMP::ParticlesTemp const & ps, double resolution) -> DensityMap
2026  """
2027  return _IMP_em.bayesem3d_get_density_from_particle(em, ps, resolution, window_size)
2028 
2030  """bayesem3d_get_cross_correlation_coefficient(DensityMap em1, DensityMap em2) -> double"""
2031  return _IMP_em.bayesem3d_get_cross_correlation_coefficient(em1, em2)
2032 
2033 def bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size=1.0):
2034  """
2035  bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma, double const window_size=1.0) -> std::pair< double,IMP::algebra::Vector3Ds >
2036  bayesem3d_get_score_and_derivative(DensityMap em, IMP::ParticlesTemp const & ps, double resolution, double sigma) -> std::pair< double,IMP::algebra::Vector3Ds >
2037  """
2038  return _IMP_em.bayesem3d_get_score_and_derivative(em, ps, resolution, sigma, window_size)
2039 
2040 def bayesem3d_get_normalized_intensities(em, ps, resolution):
2041  """bayesem3d_get_normalized_intensities(DensityMap em, IMP::ParticlesTemp const & ps, double resolution)"""
2042  return _IMP_em.bayesem3d_get_normalized_intensities(em, ps, resolution)
2043 class FitRestraint(IMP.Restraint):
2044  """Proxy of C++ IMP::em::FitRestraint class"""
2045  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2046 
2047  def __init__(self, *args):
2048  """
2049  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True, IMP::em::KernelType kt) -> FitRestraint
2050  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1, bool use_rigid_bodies=True) -> FitRestraint
2051  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key, float scale=1) -> FitRestraint
2052  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors, FloatKey weight_key) -> FitRestraint
2053  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, IMP::FloatPair norm_factors) -> FitRestraint
2054  __init__(IMP::em::FitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraint
2055  """
2056  this = _IMP_em.new_FitRestraint(*args)
2057  try:
2058  self.this.append(this)
2059  except:
2060  self.this = this
2061 
2062  def get_model_dens_map(self):
2063  """get_model_dens_map(FitRestraint self) -> SampledDensityMap"""
2064  return _IMP_em.FitRestraint_get_model_dens_map(self)
2065 
2066 
2067  def set_scale_factor(self, scale):
2068  """set_scale_factor(FitRestraint self, float scale)"""
2069  return _IMP_em.FitRestraint_set_scale_factor(self, scale)
2070 
2071 
2072  def get_scale_factor(self):
2073  """get_scale_factor(FitRestraint self) -> float"""
2074  return _IMP_em.FitRestraint_get_scale_factor(self)
2075 
2076 
2077  def do_get_inputs(self):
2078  """do_get_inputs(FitRestraint self) -> IMP::ModelObjectsTemp"""
2079  return _IMP_em.FitRestraint_do_get_inputs(self)
2080 
2081 
2082  def get_version_info(self):
2083  """get_version_info(FitRestraint self) -> VersionInfo"""
2084  return _IMP_em.FitRestraint_get_version_info(self)
2085 
2086 
2087  def __str__(self):
2088  """__str__(FitRestraint self) -> std::string"""
2089  return _IMP_em.FitRestraint___str__(self)
2090 
2091 
2092  def __repr__(self):
2093  """__repr__(FitRestraint self) -> std::string"""
2094  return _IMP_em.FitRestraint___repr__(self)
2095 
2096 
2097  @staticmethod
2098  def get_from(o):
2099  return _object_cast_to_FitRestraint(o)
2100 
2101 FitRestraint_swigregister = _IMP_em.FitRestraint_swigregister
2102 FitRestraint_swigregister(FitRestraint)
2103 
2104 class FitRestraintBayesEM3D(IMP.Restraint):
2105  """Proxy of C++ IMP::em::FitRestraintBayesEM3D class"""
2106  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2107 
2108  def __init__(self, *args):
2109  """
2110  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1, double window_size=1.0) -> FitRestraintBayesEM3D
2111  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True, double sigma=.1) -> FitRestraintBayesEM3D
2112  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key, bool use_rigid_bodies=True) -> FitRestraintBayesEM3D
2113  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map, FloatKey weight_key) -> FitRestraintBayesEM3D
2114  __init__(IMP::em::FitRestraintBayesEM3D self, IMP::ParticlesTemp ps, DensityMap em_map) -> FitRestraintBayesEM3D
2115  """
2116  this = _IMP_em.new_FitRestraintBayesEM3D(*args)
2117  try:
2118  self.this.append(this)
2119  except:
2120  self.this = this
2121 
2122  def do_get_inputs(self):
2123  """do_get_inputs(FitRestraintBayesEM3D self) -> IMP::ModelObjectsTemp"""
2124  return _IMP_em.FitRestraintBayesEM3D_do_get_inputs(self)
2125 
2126 
2127  def get_version_info(self):
2128  """get_version_info(FitRestraintBayesEM3D self) -> VersionInfo"""
2129  return _IMP_em.FitRestraintBayesEM3D_get_version_info(self)
2130 
2131 
2132  def __str__(self):
2133  """__str__(FitRestraintBayesEM3D self) -> std::string"""
2134  return _IMP_em.FitRestraintBayesEM3D___str__(self)
2135 
2136 
2137  def __repr__(self):
2138  """__repr__(FitRestraintBayesEM3D self) -> std::string"""
2139  return _IMP_em.FitRestraintBayesEM3D___repr__(self)
2140 
2141 
2142  @staticmethod
2143  def get_from(o):
2144  return _object_cast_to_FitRestraintBayesEM3D(o)
2145 
2146 FitRestraintBayesEM3D_swigregister = _IMP_em.FitRestraintBayesEM3D_swigregister
2147 FitRestraintBayesEM3D_swigregister(FitRestraintBayesEM3D)
2148 
2149 
2150 def density2particles(dmap, threshold, m, step=1):
2151  """
2152  density2particles(DensityMap dmap, IMP::Float threshold, Model m, int step=1) -> IMP::Particles
2153  density2particles(DensityMap dmap, IMP::Float threshold, Model m) -> IMP::Particles
2154  """
2155  return _IMP_em.density2particles(dmap, threshold, m, step)
2156 
2157 def density2vectors(dmap, threshold):
2158  """density2vectors(DensityMap dmap, IMP::Float threshold) -> IMP::algebra::Vector3Ds"""
2159  return _IMP_em.density2vectors(dmap, threshold)
2160 
2161 def particles2density(*args):
2162  """
2163  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2164  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2165  particles2density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2166  """
2167  return _IMP_em.particles2density(*args)
2168 
2169 def particles2binarized_density(*args):
2170  """
2171  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3, FloatKey weight_key) -> SampledDensityMap
2172  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix, int sig_cutoff=3) -> SampledDensityMap
2173  particles2binarized_density(IMP::ParticlesTemp const & ps, IMP::Float resolution, IMP::Float apix) -> SampledDensityMap
2174  """
2175  return _IMP_em.particles2binarized_density(*args)
2176 
2177 def particles2surface(*args):
2178  """
2179  particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix, FloatKey weight_key) -> SurfaceShellDensityMap
2180  particles2surface(IMP::ParticlesTemp const & ps, IMP::Float apix) -> SurfaceShellDensityMap
2181  """
2182  return _IMP_em.particles2surface(*args)
2183 
2184 def calculate_intersection_score(d1, d2):
2185  """calculate_intersection_score(SurfaceShellDensityMap d1, SurfaceShellDensityMap d2) -> IMP::Float"""
2186  return _IMP_em.calculate_intersection_score(d1, d2)
2187 class SpiderHeader(object):
2188  """Proxy of C++ IMP::em::SpiderHeader class"""
2189  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2190  __repr__ = _swig_repr
2191  fNslice = _swig_property(_IMP_em.SpiderHeader_fNslice_get, _IMP_em.SpiderHeader_fNslice_set)
2192  fNrow = _swig_property(_IMP_em.SpiderHeader_fNrow_get, _IMP_em.SpiderHeader_fNrow_set)
2193  fNrec = _swig_property(_IMP_em.SpiderHeader_fNrec_get, _IMP_em.SpiderHeader_fNrec_set)
2194  fNlabel = _swig_property(_IMP_em.SpiderHeader_fNlabel_get, _IMP_em.SpiderHeader_fNlabel_set)
2195  fIform = _swig_property(_IMP_em.SpiderHeader_fIform_get, _IMP_em.SpiderHeader_fIform_set)
2196  fImami = _swig_property(_IMP_em.SpiderHeader_fImami_get, _IMP_em.SpiderHeader_fImami_set)
2197  fFmax = _swig_property(_IMP_em.SpiderHeader_fFmax_get, _IMP_em.SpiderHeader_fFmax_set)
2198  fFmin = _swig_property(_IMP_em.SpiderHeader_fFmin_get, _IMP_em.SpiderHeader_fFmin_set)
2199  fAv = _swig_property(_IMP_em.SpiderHeader_fAv_get, _IMP_em.SpiderHeader_fAv_set)
2200  fSig = _swig_property(_IMP_em.SpiderHeader_fSig_get, _IMP_em.SpiderHeader_fSig_set)
2201  fIhist = _swig_property(_IMP_em.SpiderHeader_fIhist_get, _IMP_em.SpiderHeader_fIhist_set)
2202  fNcol = _swig_property(_IMP_em.SpiderHeader_fNcol_get, _IMP_em.SpiderHeader_fNcol_set)
2203  fLabrec = _swig_property(_IMP_em.SpiderHeader_fLabrec_get, _IMP_em.SpiderHeader_fLabrec_set)
2204  fIangle = _swig_property(_IMP_em.SpiderHeader_fIangle_get, _IMP_em.SpiderHeader_fIangle_set)
2205  fPhi = _swig_property(_IMP_em.SpiderHeader_fPhi_get, _IMP_em.SpiderHeader_fPhi_set)
2206  fTheta = _swig_property(_IMP_em.SpiderHeader_fTheta_get, _IMP_em.SpiderHeader_fTheta_set)
2207  fPsi = _swig_property(_IMP_em.SpiderHeader_fPsi_get, _IMP_em.SpiderHeader_fPsi_set)
2208  fXoff = _swig_property(_IMP_em.SpiderHeader_fXoff_get, _IMP_em.SpiderHeader_fXoff_set)
2209  fYoff = _swig_property(_IMP_em.SpiderHeader_fYoff_get, _IMP_em.SpiderHeader_fYoff_set)
2210  fZoff = _swig_property(_IMP_em.SpiderHeader_fZoff_get, _IMP_em.SpiderHeader_fZoff_set)
2211  fScale = _swig_property(_IMP_em.SpiderHeader_fScale_get, _IMP_em.SpiderHeader_fScale_set)
2212  fLabbyt = _swig_property(_IMP_em.SpiderHeader_fLabbyt_get, _IMP_em.SpiderHeader_fLabbyt_set)
2213  fLenbyt = _swig_property(_IMP_em.SpiderHeader_fLenbyt_get, _IMP_em.SpiderHeader_fLenbyt_set)
2214  fNothing = _swig_property(_IMP_em.SpiderHeader_fNothing_get, _IMP_em.SpiderHeader_fNothing_set)
2215  fFlag = _swig_property(_IMP_em.SpiderHeader_fFlag_get, _IMP_em.SpiderHeader_fFlag_set)
2216  fPhi1 = _swig_property(_IMP_em.SpiderHeader_fPhi1_get, _IMP_em.SpiderHeader_fPhi1_set)
2217  fTheta1 = _swig_property(_IMP_em.SpiderHeader_fTheta1_get, _IMP_em.SpiderHeader_fTheta1_set)
2218  fPsi1 = _swig_property(_IMP_em.SpiderHeader_fPsi1_get, _IMP_em.SpiderHeader_fPsi1_set)
2219  fPhi2 = _swig_property(_IMP_em.SpiderHeader_fPhi2_get, _IMP_em.SpiderHeader_fPhi2_set)
2220  fTheta2 = _swig_property(_IMP_em.SpiderHeader_fTheta2_get, _IMP_em.SpiderHeader_fTheta2_set)
2221  fPsi2 = _swig_property(_IMP_em.SpiderHeader_fPsi2_get, _IMP_em.SpiderHeader_fPsi2_set)
2222  fGeo_matrix = _swig_property(_IMP_em.SpiderHeader_fGeo_matrix_get, _IMP_em.SpiderHeader_fGeo_matrix_set)
2223  fAngle1 = _swig_property(_IMP_em.SpiderHeader_fAngle1_get, _IMP_em.SpiderHeader_fAngle1_set)
2224  fr1 = _swig_property(_IMP_em.SpiderHeader_fr1_get, _IMP_em.SpiderHeader_fr1_set)
2225  fr2 = _swig_property(_IMP_em.SpiderHeader_fr2_get, _IMP_em.SpiderHeader_fr2_set)
2226  RTflag = _swig_property(_IMP_em.SpiderHeader_RTflag_get, _IMP_em.SpiderHeader_RTflag_set)
2227  Astart = _swig_property(_IMP_em.SpiderHeader_Astart_get, _IMP_em.SpiderHeader_Astart_set)
2228  Aend = _swig_property(_IMP_em.SpiderHeader_Aend_get, _IMP_em.SpiderHeader_Aend_set)
2229  Ainc = _swig_property(_IMP_em.SpiderHeader_Ainc_get, _IMP_em.SpiderHeader_Ainc_set)
2230  Rsigma = _swig_property(_IMP_em.SpiderHeader_Rsigma_get, _IMP_em.SpiderHeader_Rsigma_set)
2231  Tstart = _swig_property(_IMP_em.SpiderHeader_Tstart_get, _IMP_em.SpiderHeader_Tstart_set)
2232  Tend = _swig_property(_IMP_em.SpiderHeader_Tend_get, _IMP_em.SpiderHeader_Tend_set)
2233  Tinc = _swig_property(_IMP_em.SpiderHeader_Tinc_get, _IMP_em.SpiderHeader_Tinc_set)
2234  Weight = _swig_property(_IMP_em.SpiderHeader_Weight_get, _IMP_em.SpiderHeader_Weight_set)
2235  Flip = _swig_property(_IMP_em.SpiderHeader_Flip_get, _IMP_em.SpiderHeader_Flip_set)
2236  empty = _swig_property(_IMP_em.SpiderHeader_empty_get, _IMP_em.SpiderHeader_empty_set)
2237  szIDat = _swig_property(_IMP_em.SpiderHeader_szIDat_get, _IMP_em.SpiderHeader_szIDat_set)
2238  szITim = _swig_property(_IMP_em.SpiderHeader_szITim_get, _IMP_em.SpiderHeader_szITim_set)
2239  szITit = _swig_property(_IMP_em.SpiderHeader_szITit_get, _IMP_em.SpiderHeader_szITit_set)
2240 
2241  def show(self, out):
2242  """show(SpiderHeader self, _ostream out)"""
2243  return _IMP_em.SpiderHeader_show(self, out)
2244 
2245 
2246  def __init__(self):
2247  """__init__(IMP::em::SpiderHeader self) -> SpiderHeader"""
2248  this = _IMP_em.new_SpiderHeader()
2249  try:
2250  self.this.append(this)
2251  except:
2252  self.this = this
2253  __swig_destroy__ = _IMP_em.delete_SpiderHeader
2254  __del__ = lambda self: None
2255 SpiderHeader_swigregister = _IMP_em.SpiderHeader_swigregister
2256 SpiderHeader_swigregister(SpiderHeader)
2257 
2258 class ImageHeader(object):
2259  """Proxy of C++ IMP::em::ImageHeader class"""
2260  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2261  __repr__ = _swig_repr
2262  IMG_BYTE = _IMP_em.ImageHeader_IMG_BYTE
2263  IMG_IMPEM = _IMP_em.ImageHeader_IMG_IMPEM
2264  IMG_INT = _IMP_em.ImageHeader_IMG_INT
2265  VOL_BYTE = _IMP_em.ImageHeader_VOL_BYTE
2266  VOL_IMPEM = _IMP_em.ImageHeader_VOL_IMPEM
2267  VOL_INT = _IMP_em.ImageHeader_VOL_INT
2268  IMG_FOURIER = _IMP_em.ImageHeader_IMG_FOURIER
2269  VOL_FOURIER = _IMP_em.ImageHeader_VOL_FOURIER
2270 
2271  def __init__(self, *args):
2272  """
2273  __init__(IMP::em::ImageHeader self) -> ImageHeader
2274  __init__(IMP::em::ImageHeader self, IMP::em::ImageHeader::img_type im) -> ImageHeader
2275  __init__(IMP::em::ImageHeader self, float im) -> ImageHeader
2276  """
2277  this = _IMP_em.new_ImageHeader(*args)
2278  try:
2279  self.this.append(this)
2280  except:
2281  self.this = this
2282 
2283  def get_image_type(self):
2284  """get_image_type(ImageHeader self) -> float"""
2285  return _IMP_em.ImageHeader_get_image_type(self)
2286 
2287 
2288  def set_image_type(self, *args):
2289  """
2290  set_image_type(ImageHeader self, IMP::em::ImageHeader::img_type im)
2291  set_image_type(ImageHeader self, float im)
2292  """
2293  return _IMP_em.ImageHeader_set_image_type(self, *args)
2294 
2295 
2296  def do_show(self, out):
2297  """do_show(ImageHeader self, _ostream out)"""
2298  return _IMP_em.ImageHeader_do_show(self, out)
2299 
2300 
2301  def show(self, *args):
2302  """
2303  show(ImageHeader self, _ostream out)
2304  show(ImageHeader self)
2305  """
2306  return _IMP_em.ImageHeader_show(self, *args)
2307 
2308 
2309  def print_hard(self, out):
2310  """print_hard(ImageHeader self, _ostream out)"""
2311  return _IMP_em.ImageHeader_print_hard(self, out)
2312 
2313 
2314  def show_projection_params(self, out):
2315  """show_projection_params(ImageHeader self, _ostream out)"""
2316  return _IMP_em.ImageHeader_show_projection_params(self, out)
2317 
2318 
2319  def read(self, *args):
2320  """
2321  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> int
2322  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False, bool force_reversed=False) -> int
2323  read(ImageHeader self, IMP::String const filename, bool skip_type_check=False) -> int
2324  read(ImageHeader self, IMP::String const filename) -> int
2325  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False, bool skip_extra_checkings=False) -> bool
2326  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False, bool force_reversed=False) -> bool
2327  read(ImageHeader self, std::ifstream & f, bool skip_type_check=False) -> bool
2328  read(ImageHeader self, std::ifstream & f) -> bool
2329  """
2330  return _IMP_em.ImageHeader_read(self, *args)
2331 
2332 
2333  def write(self, *args):
2334  """
2335  write(ImageHeader self, IMP::String const & filename, bool force_reversed=False)
2336  write(ImageHeader self, IMP::String const & filename)
2337  write(ImageHeader self, std::ofstream & f, bool force_reversed=False)
2338  write(ImageHeader self, std::ofstream & f)
2339  """
2340  return _IMP_em.ImageHeader_write(self, *args)
2341 
2342 
2343  def clear(self):
2344  """clear(ImageHeader self)"""
2345  return _IMP_em.ImageHeader_clear(self)
2346 
2347 
2348  def set_header(self):
2349  """set_header(ImageHeader self)"""
2350  return _IMP_em.ImageHeader_set_header(self)
2351 
2352 
2353  def get_reversed(self):
2354  """get_reversed(ImageHeader self) -> bool"""
2355  return _IMP_em.ImageHeader_get_reversed(self)
2356 
2357 
2358  def set_reversed(self, value):
2359  """set_reversed(ImageHeader self, bool value)"""
2360  return _IMP_em.ImageHeader_set_reversed(self, value)
2361 
2362 
2363  def get_number_of_slices(self):
2364  """get_number_of_slices(ImageHeader self) -> unsigned int"""
2365  return _IMP_em.ImageHeader_get_number_of_slices(self)
2366 
2367 
2368  def set_number_of_slices(self, n):
2369  """set_number_of_slices(ImageHeader self, unsigned int n)"""
2370  return _IMP_em.ImageHeader_set_number_of_slices(self, n)
2371 
2372 
2373  def get_number_of_rows(self):
2374  """get_number_of_rows(ImageHeader self) -> unsigned int"""
2375  return _IMP_em.ImageHeader_get_number_of_rows(self)
2376 
2377 
2378  def set_number_of_rows(self, n):
2379  """set_number_of_rows(ImageHeader self, unsigned int n)"""
2380  return _IMP_em.ImageHeader_set_number_of_rows(self, n)
2381 
2382 
2383  def get_number_of_columns(self):
2384  """get_number_of_columns(ImageHeader self) -> unsigned int"""
2385  return _IMP_em.ImageHeader_get_number_of_columns(self)
2386 
2387 
2388  def set_number_of_columns(self, n):
2389  """set_number_of_columns(ImageHeader self, unsigned int n)"""
2390  return _IMP_em.ImageHeader_set_number_of_columns(self, n)
2391 
2392 
2393  def get_old_rot(self):
2394  """get_old_rot(ImageHeader self) -> float"""
2395  return _IMP_em.ImageHeader_get_old_rot(self)
2396 
2397 
2398  def set_old_rot(self, value):
2399  """set_old_rot(ImageHeader self, float value)"""
2400  return _IMP_em.ImageHeader_set_old_rot(self, value)
2401 
2402 
2403  def get_fAngle1(self):
2404  """get_fAngle1(ImageHeader self) -> float"""
2405  return _IMP_em.ImageHeader_get_fAngle1(self)
2406 
2407 
2408  def set_fAngle1(self, value):
2409  """set_fAngle1(ImageHeader self, float value)"""
2410  return _IMP_em.ImageHeader_set_fAngle1(self, value)
2411 
2412 
2413  def get_Scale(self):
2414  """get_Scale(ImageHeader self) -> float"""
2415  return _IMP_em.ImageHeader_get_Scale(self)
2416 
2417 
2418  def set_Scale(self, value):
2419  """set_Scale(ImageHeader self, float value)"""
2420  return _IMP_em.ImageHeader_set_Scale(self, value)
2421 
2422 
2423  def get_Flip(self):
2424  """get_Flip(ImageHeader self) -> float"""
2425  return _IMP_em.ImageHeader_get_Flip(self)
2426 
2427 
2428  def set_Flip(self, value):
2429  """set_Flip(ImageHeader self, float value)"""
2430  return _IMP_em.ImageHeader_set_Flip(self, value)
2431 
2432 
2433  def get_Weight(self):
2434  """get_Weight(ImageHeader self) -> float"""
2435  return _IMP_em.ImageHeader_get_Weight(self)
2436 
2437 
2438  def set_Weight(self, value):
2439  """set_Weight(ImageHeader self, float value)"""
2440  return _IMP_em.ImageHeader_set_Weight(self, value)
2441 
2442 
2443  def get_fNrec(self):
2444  """get_fNrec(ImageHeader self) -> float"""
2445  return _IMP_em.ImageHeader_get_fNrec(self)
2446 
2447 
2448  def set_fNrec(self, value):
2449  """set_fNrec(ImageHeader self, float value)"""
2450  return _IMP_em.ImageHeader_set_fNrec(self, value)
2451 
2452 
2453  def get_fNlabel(self):
2454  """get_fNlabel(ImageHeader self) -> float"""
2455  return _IMP_em.ImageHeader_get_fNlabel(self)
2456 
2457 
2458  def set_fNlabel(self, value):
2459  """set_fNlabel(ImageHeader self, float value)"""
2460  return _IMP_em.ImageHeader_set_fNlabel(self, value)
2461 
2462 
2463  def get_fIform(self):
2464  """get_fIform(ImageHeader self) -> float"""
2465  return _IMP_em.ImageHeader_get_fIform(self)
2466 
2467 
2468  def set_fIform(self, value):
2469  """set_fIform(ImageHeader self, float value)"""
2470  return _IMP_em.ImageHeader_set_fIform(self, value)
2471 
2472 
2473  def get_fImami(self):
2474  """get_fImami(ImageHeader self) -> float"""
2475  return _IMP_em.ImageHeader_get_fImami(self)
2476 
2477 
2478  def set_fImami(self, value):
2479  """set_fImami(ImageHeader self, float value)"""
2480  return _IMP_em.ImageHeader_set_fImami(self, value)
2481 
2482 
2483  def get_fFmax(self):
2484  """get_fFmax(ImageHeader self) -> float"""
2485  return _IMP_em.ImageHeader_get_fFmax(self)
2486 
2487 
2488  def set_fFmax(self, value):
2489  """set_fFmax(ImageHeader self, float value)"""
2490  return _IMP_em.ImageHeader_set_fFmax(self, value)
2491 
2492 
2493  def get_fFmin(self):
2494  """get_fFmin(ImageHeader self) -> float"""
2495  return _IMP_em.ImageHeader_get_fFmin(self)
2496 
2497 
2498  def set_fFmin(self, value):
2499  """set_fFmin(ImageHeader self, float value)"""
2500  return _IMP_em.ImageHeader_set_fFmin(self, value)
2501 
2502 
2503  def get_fAv(self):
2504  """get_fAv(ImageHeader self) -> float"""
2505  return _IMP_em.ImageHeader_get_fAv(self)
2506 
2507 
2508  def set_fAv(self, value):
2509  """set_fAv(ImageHeader self, float value)"""
2510  return _IMP_em.ImageHeader_set_fAv(self, value)
2511 
2512 
2513  def get_fSig(self):
2514  """get_fSig(ImageHeader self) -> float"""
2515  return _IMP_em.ImageHeader_get_fSig(self)
2516 
2517 
2518  def set_fSig(self, value):
2519  """set_fSig(ImageHeader self, float value)"""
2520  return _IMP_em.ImageHeader_set_fSig(self, value)
2521 
2522 
2523  def get_fIhist(self):
2524  """get_fIhist(ImageHeader self) -> float"""
2525  return _IMP_em.ImageHeader_get_fIhist(self)
2526 
2527 
2528  def set_fIhist(self, value):
2529  """set_fIhist(ImageHeader self, float value)"""
2530  return _IMP_em.ImageHeader_set_fIhist(self, value)
2531 
2532 
2533  def get_fLabrec(self):
2534  """get_fLabrec(ImageHeader self) -> float"""
2535  return _IMP_em.ImageHeader_get_fLabrec(self)
2536 
2537 
2538  def set_fLabrec(self, value):
2539  """set_fLabrec(ImageHeader self, float value)"""
2540  return _IMP_em.ImageHeader_set_fLabrec(self, value)
2541 
2542 
2543  def get_fIangle(self):
2544  """get_fIangle(ImageHeader self) -> float"""
2545  return _IMP_em.ImageHeader_get_fIangle(self)
2546 
2547 
2548  def set_fIangle(self, value):
2549  """set_fIangle(ImageHeader self, float value)"""
2550  return _IMP_em.ImageHeader_set_fIangle(self, value)
2551 
2552 
2553  def get_origin(self):
2554  """get_origin(ImageHeader self) -> Vector3D"""
2555  return _IMP_em.ImageHeader_get_origin(self)
2556 
2557 
2558  def set_origin(self, *args):
2559  """
2560  set_origin(ImageHeader self, Vector3D v)
2561  set_origin(ImageHeader self, Vector2D v)
2562  """
2563  return _IMP_em.ImageHeader_set_origin(self, *args)
2564 
2565 
2566  def get_object_pixel_size(self):
2567  """get_object_pixel_size(ImageHeader self) -> float"""
2568  return _IMP_em.ImageHeader_get_object_pixel_size(self)
2569 
2570 
2571  def set_object_pixel_size(self, value):
2572  """set_object_pixel_size(ImageHeader self, float value)"""
2573  return _IMP_em.ImageHeader_set_object_pixel_size(self, value)
2574 
2575 
2576  def get_fLabbyt(self):
2577  """get_fLabbyt(ImageHeader self) -> float"""
2578  return _IMP_em.ImageHeader_get_fLabbyt(self)
2579 
2580 
2581  def set_fLabbyt(self, value):
2582  """set_fLabbyt(ImageHeader self, float value)"""
2583  return _IMP_em.ImageHeader_set_fLabbyt(self, value)
2584 
2585 
2586  def get_fLenbyt(self):
2587  """get_fLenbyt(ImageHeader self) -> float"""
2588  return _IMP_em.ImageHeader_get_fLenbyt(self)
2589 
2590 
2591  def set_fLenbyt(self, value):
2592  """set_fLenbyt(ImageHeader self, float value)"""
2593  return _IMP_em.ImageHeader_set_fLenbyt(self, value)
2594 
2595 
2596  def get_fGeo_matrix(self, i, j):
2597  """get_fGeo_matrix(ImageHeader self, unsigned int i, unsigned int j) -> double"""
2598  return _IMP_em.ImageHeader_get_fGeo_matrix(self, i, j)
2599 
2600 
2601  def get_fFlag(self):
2602  """get_fFlag(ImageHeader self) -> float"""
2603  return _IMP_em.ImageHeader_get_fFlag(self)
2604 
2605 
2606  def set_fFlag(self, value):
2607  """set_fFlag(ImageHeader self, float value)"""
2608  return _IMP_em.ImageHeader_set_fFlag(self, value)
2609 
2610 
2611  def get_euler_angles(self):
2612  """get_euler_angles(ImageHeader self) -> Vector3D"""
2613  return _IMP_em.ImageHeader_get_euler_angles(self)
2614 
2615 
2616  def get_euler_angles1(self):
2617  """get_euler_angles1(ImageHeader self) -> Vector3D"""
2618  return _IMP_em.ImageHeader_get_euler_angles1(self)
2619 
2620 
2621  def get_euler_angles2(self):
2622  """get_euler_angles2(ImageHeader self) -> Vector3D"""
2623  return _IMP_em.ImageHeader_get_euler_angles2(self)
2624 
2625 
2626  def set_euler_angles(self, euler):
2627  """set_euler_angles(ImageHeader self, Vector3D euler)"""
2628  return _IMP_em.ImageHeader_set_euler_angles(self, euler)
2629 
2630 
2631  def set_euler_angles1(self, euler):
2632  """set_euler_angles1(ImageHeader self, Vector3D euler)"""
2633  return _IMP_em.ImageHeader_set_euler_angles1(self, euler)
2634 
2635 
2636  def set_euler_angles2(self, euler):
2637  """set_euler_angles2(ImageHeader self, Vector3D euler)"""
2638  return _IMP_em.ImageHeader_set_euler_angles2(self, euler)
2639 
2640 
2641  def is_normalized(self):
2642  """is_normalized(ImageHeader self) -> bool"""
2643  return _IMP_em.ImageHeader_is_normalized(self)
2644 
2645 
2646  def set_date(self):
2647  """set_date(ImageHeader self)"""
2648  return _IMP_em.ImageHeader_set_date(self)
2649 
2650 
2651  def set_time(self):
2652  """set_time(ImageHeader self)"""
2653  return _IMP_em.ImageHeader_set_time(self)
2654 
2655 
2656  def set_title(self, newName):
2657  """set_title(ImageHeader self, IMP::String newName)"""
2658  return _IMP_em.ImageHeader_set_title(self, newName)
2659 
2660  __swig_destroy__ = _IMP_em.delete_ImageHeader
2661  __del__ = lambda self: None
2662 ImageHeader_swigregister = _IMP_em.ImageHeader_swigregister
2663 ImageHeader_swigregister(ImageHeader)
2664 
2665 class SpiderMapReaderWriter(MapReaderWriter):
2666  """Proxy of C++ IMP::em::SpiderMapReaderWriter class"""
2667  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2668  filename_ = _swig_property(_IMP_em.SpiderMapReaderWriter_filename__get, _IMP_em.SpiderMapReaderWriter_filename__set)
2669  skip_type_check_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_type_check__get, _IMP_em.SpiderMapReaderWriter_skip_type_check__set)
2670  force_reversed_ = _swig_property(_IMP_em.SpiderMapReaderWriter_force_reversed__get, _IMP_em.SpiderMapReaderWriter_force_reversed__set)
2671  skip_extra_checkings_ = _swig_property(_IMP_em.SpiderMapReaderWriter_skip_extra_checkings__get, _IMP_em.SpiderMapReaderWriter_skip_extra_checkings__set)
2672 
2673  def __init__(self, *args):
2674  """
2675  __init__(IMP::em::SpiderMapReaderWriter self) -> SpiderMapReaderWriter
2676  __init__(IMP::em::SpiderMapReaderWriter self, IMP::String filename, bool skip_type_check, bool force_reversed, bool skip_extra_checkings) -> SpiderMapReaderWriter
2677  """
2678  this = _IMP_em.new_SpiderMapReaderWriter(*args)
2679  try:
2680  self.this.append(this)
2681  except:
2682  self.this = this
2683 
2684  def __str__(self):
2685  """__str__(SpiderMapReaderWriter self) -> std::string"""
2686  return _IMP_em.SpiderMapReaderWriter___str__(self)
2687 
2688 
2689  def __repr__(self):
2690  """__repr__(SpiderMapReaderWriter self) -> std::string"""
2691  return _IMP_em.SpiderMapReaderWriter___repr__(self)
2692 
2693 
2694  @staticmethod
2695  def get_from(o):
2696  return _object_cast_to_SpiderMapReaderWriter(o)
2697 
2698 SpiderMapReaderWriter_swigregister = _IMP_em.SpiderMapReaderWriter_swigregister
2699 SpiderMapReaderWriter_swigregister(SpiderMapReaderWriter)
2700 
2701 class FittingSolutions(object):
2702  """Proxy of C++ IMP::em::FittingSolutions class"""
2703  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2704 
2705  def __init__(self):
2706  """__init__(IMP::em::FittingSolutions self) -> FittingSolutions"""
2707  this = _IMP_em.new_FittingSolutions()
2708  try:
2709  self.this.append(this)
2710  except:
2711  self.this = this
2712 
2713  def get_number_of_solutions(self):
2714  """get_number_of_solutions(FittingSolutions self) -> int"""
2715  return _IMP_em.FittingSolutions_get_number_of_solutions(self)
2716 
2717 
2718  def get_transformation(self, i):
2719  """get_transformation(FittingSolutions self, unsigned int i) -> Transformation3D"""
2720  return _IMP_em.FittingSolutions_get_transformation(self, i)
2721 
2722 
2723  def get_score(self, i):
2724  """get_score(FittingSolutions self, unsigned int i) -> IMP::Float"""
2725  return _IMP_em.FittingSolutions_get_score(self, i)
2726 
2727 
2728  def set_score(self, i, score):
2729  """set_score(FittingSolutions self, unsigned int i, IMP::Float score)"""
2730  return _IMP_em.FittingSolutions_set_score(self, i, score)
2731 
2732 
2733  def add_solution(self, t, score):
2734  """add_solution(FittingSolutions self, Transformation3D t, IMP::Float score)"""
2735  return _IMP_em.FittingSolutions_add_solution(self, t, score)
2736 
2737 
2738  def sort(self, reverse=False):
2739  """
2740  sort(FittingSolutions self, bool reverse=False)
2741  sort(FittingSolutions self)
2742  """
2743  return _IMP_em.FittingSolutions_sort(self, reverse)
2744 
2745 
2746  def multiply(self, t):
2747  """multiply(FittingSolutions self, Transformation3D t)"""
2748  return _IMP_em.FittingSolutions_multiply(self, t)
2749 
2750 
2751  def get_transformations(self):
2752  """get_transformations(FittingSolutions self) -> IMP::algebra::Transformation3Ds"""
2753  return _IMP_em.FittingSolutions_get_transformations(self)
2754 
2755 
2756  def show(self, *args):
2757  """
2758  show(FittingSolutions self, _ostream out)
2759  show(FittingSolutions self)
2760  """
2761  return _IMP_em.FittingSolutions_show(self, *args)
2762 
2763 
2764  def __str__(self):
2765  """__str__(FittingSolutions self) -> std::string"""
2766  return _IMP_em.FittingSolutions___str__(self)
2767 
2768 
2769  def __repr__(self):
2770  """__repr__(FittingSolutions self) -> std::string"""
2771  return _IMP_em.FittingSolutions___repr__(self)
2772 
2773 
2774  def _get_as_binary(self):
2775  """_get_as_binary(FittingSolutions self) -> PyObject *"""
2776  return _IMP_em.FittingSolutions__get_as_binary(self)
2777 
2778 
2779  def _set_from_binary(self, p):
2780  """_set_from_binary(FittingSolutions self, PyObject * p)"""
2781  return _IMP_em.FittingSolutions__set_from_binary(self, p)
2782 
2783 
2784  def __getstate__(self):
2785  p = self._get_as_binary()
2786  if len(self.__dict__) > 1:
2787  d = self.__dict__.copy()
2788  del d['this']
2789  p = (d, p)
2790  return p
2791 
2792  def __setstate__(self, p):
2793  if not hasattr(self, 'this'):
2794  self.__init__()
2795  if isinstance(p, tuple):
2796  d, p = p
2797  self.__dict__.update(d)
2798  return self._set_from_binary(p)
2799 
2800  __swig_destroy__ = _IMP_em.delete_FittingSolutions
2801  __del__ = lambda self: None
2802 FittingSolutions_swigregister = _IMP_em.FittingSolutions_swigregister
2803 FittingSolutions_swigregister(FittingSolutions)
2804 
2805 
2806 def local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=False):
2807  """
2808  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=False) -> FittingSolutions
2809  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2810  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2811  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2812  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2813  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2814  local_rigid_fitting_around_point(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, Vector3D anchor_centroid, IMP::OptimizerStates display_log) -> FittingSolutions
2815  """
2816  return _IMP_em.local_rigid_fitting_around_point(p, refiner, weight_key, dmap, anchor_centroid, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2817 
2818 def local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3, fast=True):
2819  """
2820  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3, bool fast=True) -> FittingSolutions
2821  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2822  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2823  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2824  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2825  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2826  local_rigid_fitting(Particle p, Refiner refiner, FloatKey weight_key, DensityMap dmap, IMP::OptimizerStates display_log) -> FittingSolutions
2827  """
2828  return _IMP_em.local_rigid_fitting(p, refiner, weight_key, dmap, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation, fast)
2829 
2830 def local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs=5, number_of_mc_steps=10, number_of_cg_steps=100, max_translation=2., max_rotation=.3):
2831  """
2832  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2., IMP::Float max_rotation=.3) -> FittingSolutions
2833  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100, IMP::Float max_translation=2.) -> FittingSolutions
2834  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10, IMP::Int number_of_cg_steps=100) -> FittingSolutions
2835  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5, IMP::Int number_of_mc_steps=10) -> FittingSolutions
2836  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log, IMP::Int number_of_optimization_runs=5) -> FittingSolutions
2837  local_rigid_fitting_around_points(Particle p, Refiner refiner, FloatKey wei_key, DensityMap dmap, IMP::algebra::Vector3Ds const & anchor_centroids, IMP::OptimizerStates display_log) -> FittingSolutions
2838  """
2839  return _IMP_em.local_rigid_fitting_around_points(p, refiner, wei_key, dmap, anchor_centroids, display_log, number_of_optimization_runs, number_of_mc_steps, number_of_cg_steps, max_translation, max_rotation)
2840 
2841 def local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation=2, translation_step=1, max_angle_in_radians=0.174, number_of_rotations=100):
2842  """
2843  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174, IMP::Int number_of_rotations=100) -> FittingSolutions
2844  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1, IMP::Float max_angle_in_radians=0.174) -> FittingSolutions
2845  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2, IMP::Int translation_step=1) -> FittingSolutions
2846  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap, IMP::Int max_voxels_translation=2) -> FittingSolutions
2847  local_rigid_fitting_grid_search(IMP::ParticlesTemp const & ps, FloatKey wei_key, DensityMap dmap) -> FittingSolutions
2848  """
2849  return _IMP_em.local_rigid_fitting_grid_search(ps, wei_key, dmap, max_voxels_translation, translation_step, max_angle_in_radians, number_of_rotations)
2850 
2851 def compute_fitting_scores(*args):
2852  """
2853  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False, FloatKey wei_key) -> FittingSolutions
2854  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False, bool local_score=False) -> FittingSolutions
2855  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations, bool fast_version=False) -> FittingSolutions
2856  compute_fitting_scores(IMP::ParticlesTemp const & ps, DensityMap em_map, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2857  compute_fitting_scores(DensityMap em_map, RigidBody rb, Refiner refiner, IMP::algebra::Transformation3Ds const & transformations) -> FittingSolutions
2858  """
2859  return _IMP_em.compute_fitting_scores(*args)
2860 
2861 def compute_fitting_score(*args):
2862  """
2863  compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map, FloatKey wei_key) -> IMP::Float
2864  compute_fitting_score(IMP::ParticlesTemp const & ps, DensityMap em_map) -> IMP::Float
2865  """
2866  return _IMP_em.compute_fitting_score(*args)
2867 
2869  """
2870  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t, float thr=0.0) -> long
2871  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, Transformation3D t) -> long
2872  get_number_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps) -> long
2873  """
2874  return _IMP_em.get_number_of_particles_outside_of_the_density(*args)
2875 
2876 def get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr=0.0):
2877  """
2878  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations, float thr=0.0) -> IMP::Ints
2879  get_numbers_of_particles_outside_of_the_density(DensityMap dmap, IMP::Particles const & ps, IMP::algebra::Transformation3Ds const & transformations) -> IMP::Ints
2880  """
2881  return _IMP_em.get_numbers_of_particles_outside_of_the_density(dmap, ps, transformations, thr)
2882 
2884  """
2885  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t, float thr=0.0) -> double
2886  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3., Transformation3D t) -> double
2887  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps, float smoothing_radius=3.) -> double
2888  get_percentage_of_voxels_covered_by_particles(DensityMap dmap, IMP::Particles const & ps) -> double
2889  """
2890  return _IMP_em.get_percentage_of_voxels_covered_by_particles(*args)
2891 class HighDensityEmbedding(IMP.statistics.Embedding):
2892  """Proxy of C++ IMP::em::HighDensityEmbedding class"""
2893  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2894 
2895  def __init__(self, dm, threshold):
2896  """__init__(IMP::em::HighDensityEmbedding self, DensityMap dm, double threshold) -> HighDensityEmbedding"""
2897  this = _IMP_em.new_HighDensityEmbedding(dm, threshold)
2898  try:
2899  self.this.append(this)
2900  except:
2901  self.this = this
2902 
2903  def get_version_info(self):
2904  """get_version_info(HighDensityEmbedding self) -> VersionInfo"""
2905  return _IMP_em.HighDensityEmbedding_get_version_info(self)
2906 
2907 
2908  def __str__(self):
2909  """__str__(HighDensityEmbedding self) -> std::string"""
2910  return _IMP_em.HighDensityEmbedding___str__(self)
2911 
2912 
2913  def __repr__(self):
2914  """__repr__(HighDensityEmbedding self) -> std::string"""
2915  return _IMP_em.HighDensityEmbedding___repr__(self)
2916 
2917 
2918  @staticmethod
2919  def get_from(o):
2920  return _object_cast_to_HighDensityEmbedding(o)
2921 
2922 HighDensityEmbedding_swigregister = _IMP_em.HighDensityEmbedding_swigregister
2923 HighDensityEmbedding_swigregister(HighDensityEmbedding)
2924 
2925 
2926 def mask_and_norm(dmap, mask):
2927  """mask_and_norm(DensityMap dmap, DensityMap mask) -> DensityMap"""
2928  return _IMP_em.mask_and_norm(dmap, mask)
2929 
2930 def get_volume_at_threshold(m, threshold):
2931  """get_volume_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float"""
2932  return _IMP_em.get_volume_at_threshold(m, threshold)
2933 
2935  """
2936  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2937  get_molecular_mass_at_threshold(DensityMap m, IMP::Float threshold) -> IMP::Float
2938  """
2939  return _IMP_em.get_molecular_mass_at_threshold(*args)
2940 
2941 def get_threshold_for_approximate_volume(m, desired_volume):
2942  """get_threshold_for_approximate_volume(DensityMap m, IMP::Float desired_volume) -> IMP::Float"""
2943  return _IMP_em.get_threshold_for_approximate_volume(m, desired_volume)
2944 
2946  """
2947  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass, IMP::atom::ProteinDensityReference ref) -> IMP::Float
2948  get_threshold_for_approximate_mass(DensityMap m, IMP::Float desired_mass) -> IMP::Float
2949  """
2950  return _IMP_em.get_threshold_for_approximate_mass(*args)
2951 class EnvelopePenetrationRestraint(IMP.Restraint):
2952  """Proxy of C++ IMP::em::EnvelopePenetrationRestraint class"""
2953  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2954 
2955  def __init__(self, ps, em_map, threshold):
2956  """__init__(IMP::em::EnvelopePenetrationRestraint self, IMP::Particles ps, DensityMap em_map, IMP::Float threshold) -> EnvelopePenetrationRestraint"""
2957  this = _IMP_em.new_EnvelopePenetrationRestraint(ps, em_map, threshold)
2958  try:
2959  self.this.append(this)
2960  except:
2961  self.this = this
2962 
2963  def do_get_inputs(self):
2964  """do_get_inputs(EnvelopePenetrationRestraint self) -> IMP::ModelObjectsTemp"""
2965  return _IMP_em.EnvelopePenetrationRestraint_do_get_inputs(self)
2966 
2967 
2968  def get_version_info(self):
2969  """get_version_info(EnvelopePenetrationRestraint self) -> VersionInfo"""
2970  return _IMP_em.EnvelopePenetrationRestraint_get_version_info(self)
2971 
2972 
2973  def __str__(self):
2974  """__str__(EnvelopePenetrationRestraint self) -> std::string"""
2975  return _IMP_em.EnvelopePenetrationRestraint___str__(self)
2976 
2977 
2978  def __repr__(self):
2979  """__repr__(EnvelopePenetrationRestraint self) -> std::string"""
2980  return _IMP_em.EnvelopePenetrationRestraint___repr__(self)
2981 
2982 
2983  @staticmethod
2984  def get_from(o):
2985  return _object_cast_to_EnvelopePenetrationRestraint(o)
2986 
2987 EnvelopePenetrationRestraint_swigregister = _IMP_em.EnvelopePenetrationRestraint_swigregister
2988 EnvelopePenetrationRestraint_swigregister(EnvelopePenetrationRestraint)
2989 
2990 class PCAFitRestraint(IMP.Restraint):
2991  """Proxy of C++ IMP::em::PCAFitRestraint class"""
2992  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2993 
2994  def __init__(self, *args):
2995  """
2996  __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff, FloatKey weight_key) -> PCAFitRestraint
2997  __init__(IMP::em::PCAFitRestraint self, IMP::ParticlesTemp ps, DensityMap em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff) -> PCAFitRestraint
2998  """
2999  this = _IMP_em.new_PCAFitRestraint(*args)
3000  try:
3001  self.this.append(this)
3002  except:
3003  self.this = this
3004 
3005  def do_get_inputs(self):
3006  """do_get_inputs(PCAFitRestraint self) -> IMP::ModelObjectsTemp"""
3007  return _IMP_em.PCAFitRestraint_do_get_inputs(self)
3008 
3009 
3010  def get_version_info(self):
3011  """get_version_info(PCAFitRestraint self) -> VersionInfo"""
3012  return _IMP_em.PCAFitRestraint_get_version_info(self)
3013 
3014 
3015  def __str__(self):
3016  """__str__(PCAFitRestraint self) -> std::string"""
3017  return _IMP_em.PCAFitRestraint___str__(self)
3018 
3019 
3020  def __repr__(self):
3021  """__repr__(PCAFitRestraint self) -> std::string"""
3022  return _IMP_em.PCAFitRestraint___repr__(self)
3023 
3024 
3025  @staticmethod
3026  def get_from(o):
3027  return _object_cast_to_PCAFitRestraint(o)
3028 
3029 PCAFitRestraint_swigregister = _IMP_em.PCAFitRestraint_swigregister
3030 PCAFitRestraint_swigregister(PCAFitRestraint)
3031 
3032 class EnvelopeFitRestraint(IMP.Restraint):
3033  """Proxy of C++ IMP::em::EnvelopeFitRestraint class"""
3034  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3035 
3036  def __init__(self, particles, em_map, density_threshold, penetration_threshold):
3037  """__init__(IMP::em::EnvelopeFitRestraint self, IMP::Particles particles, DensityMap em_map, double density_threshold, double penetration_threshold) -> EnvelopeFitRestraint"""
3038  this = _IMP_em.new_EnvelopeFitRestraint(particles, em_map, density_threshold, penetration_threshold)
3039  try:
3040  self.this.append(this)
3041  except:
3042  self.this = this
3043 
3044  def get_transformation(self):
3045  """get_transformation(EnvelopeFitRestraint self) -> Transformation3D"""
3046  return _IMP_em.EnvelopeFitRestraint_get_transformation(self)
3047 
3048 
3049  def apply_transformation(self):
3050  """apply_transformation(EnvelopeFitRestraint self)"""
3051  return _IMP_em.EnvelopeFitRestraint_apply_transformation(self)
3052 
3053 
3054  def do_get_inputs(self):
3055  """do_get_inputs(EnvelopeFitRestraint self) -> IMP::ModelObjectsTemp"""
3056  return _IMP_em.EnvelopeFitRestraint_do_get_inputs(self)
3057 
3058 
3059  def get_version_info(self):
3060  """get_version_info(EnvelopeFitRestraint self) -> VersionInfo"""
3061  return _IMP_em.EnvelopeFitRestraint_get_version_info(self)
3062 
3063 
3064  def __str__(self):
3065  """__str__(EnvelopeFitRestraint self) -> std::string"""
3066  return _IMP_em.EnvelopeFitRestraint___str__(self)
3067 
3068 
3069  def __repr__(self):
3070  """__repr__(EnvelopeFitRestraint self) -> std::string"""
3071  return _IMP_em.EnvelopeFitRestraint___repr__(self)
3072 
3073 
3074  @staticmethod
3075  def get_from(o):
3076  return _object_cast_to_EnvelopeFitRestraint(o)
3077 
3078 EnvelopeFitRestraint_swigregister = _IMP_em.EnvelopeFitRestraint_swigregister
3079 EnvelopeFitRestraint_swigregister(EnvelopeFitRestraint)
3080 
3081 class MapDistanceTransform(DensityMap):
3082  """Proxy of C++ IMP::em::MapDistanceTransform class"""
3083  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3084 
3085  def __init__(self, map, density_threshold, max_distance):
3086  """__init__(IMP::em::MapDistanceTransform self, DensityMap map, float density_threshold, float max_distance) -> MapDistanceTransform"""
3087  this = _IMP_em.new_MapDistanceTransform(map, density_threshold, max_distance)
3088  try:
3089  self.this.append(this)
3090  except:
3091  self.this = this
3092 
3093  def get_distance_from_envelope(self, v):
3094  """get_distance_from_envelope(MapDistanceTransform self, Vector3D v) -> float"""
3095  return _IMP_em.MapDistanceTransform_get_distance_from_envelope(self, v)
3096 
3097 
3098  def __str__(self):
3099  """__str__(MapDistanceTransform self) -> std::string"""
3100  return _IMP_em.MapDistanceTransform___str__(self)
3101 
3102 
3103  def __repr__(self):
3104  """__repr__(MapDistanceTransform self) -> std::string"""
3105  return _IMP_em.MapDistanceTransform___repr__(self)
3106 
3107 
3108  @staticmethod
3109  def get_from(o):
3110  return _object_cast_to_MapDistanceTransform(o)
3111 
3112  __swig_destroy__ = _IMP_em.delete_MapDistanceTransform
3113  __del__ = lambda self: None
3114 MapDistanceTransform_swigregister = _IMP_em.MapDistanceTransform_swigregister
3115 MapDistanceTransform_swigregister(MapDistanceTransform)
3116 
3117 class EnvelopeScore(IMP.Object):
3118  """Proxy of C++ IMP::em::EnvelopeScore class"""
3119  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3120 
3121  def __init__(self, mdt):
3122  """__init__(IMP::em::EnvelopeScore self, MapDistanceTransform mdt) -> EnvelopeScore"""
3123  this = _IMP_em.new_EnvelopeScore(mdt)
3124  try:
3125  self.this.append(this)
3126  except:
3127  self.this = this
3128 
3129  def is_penetrating(self, *args):
3130  """
3131  is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, float penetration_thr) -> bool
3132  is_penetrating(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans, float penetration_thr) -> bool
3133  """
3134  return _IMP_em.EnvelopeScore_is_penetrating(self, *args)
3135 
3136 
3137  def score(self, *args):
3138  """
3139  score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points) -> double
3140  score(EnvelopeScore self, IMP::algebra::Vector3Ds const & points, Transformation3D trans) -> double
3141  """
3142  return _IMP_em.EnvelopeScore_score(self, *args)
3143 
3144  __swig_destroy__ = _IMP_em.delete_EnvelopeScore
3145  __del__ = lambda self: None
3146 
3147  def __str__(self):
3148  """__str__(EnvelopeScore self) -> std::string"""
3149  return _IMP_em.EnvelopeScore___str__(self)
3150 
3151 
3152  def __repr__(self):
3153  """__repr__(EnvelopeScore self) -> std::string"""
3154  return _IMP_em.EnvelopeScore___repr__(self)
3155 
3156 
3157  @staticmethod
3158  def get_from(o):
3159  return _object_cast_to_EnvelopeScore(o)
3160 
3161 EnvelopeScore_swigregister = _IMP_em.EnvelopeScore_swigregister
3162 EnvelopeScore_swigregister(EnvelopeScore)
3163 
3164 
3165 import math
3166 
3167 def write_pca_cmm(pca, fh):
3168  """Write out principal components to a file in Chimera Marker format"""
3169  eigen_values = pca.get_principal_values()
3170  eigen_vecs = pca.get_principal_components()
3171  centroid = pca.get_centroid()
3172 
3173  fh.write("<marker_set>\n")
3174  fh.write("<!-- PCA with eigen values: (%g,%g,%g) and "
3175  "centroid (%g,%g,%g) -->\n"
3176  % (math.sqrt(eigen_values[0]),
3177  math.sqrt(eigen_values[1]),
3178  math.sqrt(eigen_values[2]),
3179  centroid[0], centroid[1], centroid[2]))
3180 
3181  radius = 2.
3182 
3183  for i in range(3):
3184  val = math.sqrt(eigen_values[i])
3185  v1 = centroid - val * eigen_vecs[i]
3186  v2 = centroid + val * eigen_vecs[i]
3187  for markerid, v in ((i*2+1, v1), (i*2+2, v2)):
3188  fh.write("<marker id=\"%d\" x=\"%g\" y=\"%g\" z=\"%g\" "
3189  "radius=\"%g\"/>\n"
3190  % (markerid, v[0], v[1], v[2], radius))
3191 
3192  for i in range(1, 7, 2):
3193  fh.write("<link id1= \"%d\" id2=\"%d\" radius=\"%g\"/>\n"
3194  % (i, i+1, radius))
3195  fh.write("</marker_set>\n")
3196 
3197 
3198 def get_module_version():
3199  """get_module_version() -> std::string const"""
3200  return _IMP_em.get_module_version()
3201 
3202 def get_example_path(fname):
3203  """get_example_path(std::string fname) -> std::string"""
3204  return _IMP_em.get_example_path(fname)
3205 
3206 def get_data_path(fname):
3207  """get_data_path(std::string fname) -> std::string"""
3208  return _IMP_em.get_data_path(fname)
3209 
3210 from . import _version_check
3211 _version_check.check_version(get_module_version())
3212 __version__ = get_module_version()
3213 
3214 
3215 
double bayesem3d_linear_interpolate(const Floats &x_data, const Floats &y_data, double x, bool extrapolate)
Basic linear interpolation given vectors of values.
Float get_threshold_for_approximate_mass(DensityMap *m, Float desired_mass, atom::ProteinDensityReference ref=atom::HARPAZ)
Computes the threshold to consider in an EM map to get a desired mass.
DensityMap * interpolate_map(DensityMap *in_map, double new_spacing)
Return a new map with an updated spacing.
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Convert a density grid to a set of particles.
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
algebra::BoundingBoxD< 3 > get_bounding_box(const DensityMap *m, Float threshold)
Get the bounding box for a map.
std::string get_module_version()
Return the version of this module, as a string.
DensityMap * bayesem3d_get_density_from_particle(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, const double window_size=1.0)
Ints get_numbers_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3Ds &transformations, float thr=0.0)
Get numbers of particles (mult transforms) that are outside the density.
double bayesem3d_get_logsumexp(double x, double y)
Numerically stable logsumexp.
double get_coarse_cc_coefficient(const DensityMap *grid1, const DensityMap *grid2, double grid2_voxel_data_threshold, bool allow_padding=false, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the cross correlation coefficient between two maps.
Various classes to hold sets of particles.
std::vector< double > bayesem3d_get_value(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score and derivatives for a particle at a given voxel.
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
Return a map with 0 for all voxels below the threshold and 1 for those above.
double get_sum(const DensityMap *m1)
Return the sum of all voxels.
SampledDensityMap * particles2binarized_density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Definition: converters.h:76
Make CGAL functionality available to IMP.
DensityMap * mask_and_norm(em::DensityMap *dmap, em::DensityMap *mask)
Return a masked density, and normalize the output map within the mask region.
FittingSolutions compute_fitting_scores(const ParticlesTemp &ps, DensityMap *em_map, const algebra::Transformation3Ds &transformations, bool fast_version=false, bool local_score=false, const FloatKey &wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
DensityMap * get_threshold_map(const DensityMap *orig_map, float threshold)
Return a map with 0 for all voxels below the threshold.
DensityMap * get_segment_by_masking(DensityMap *map_to_segment, DensityMap *mask, float mas_threshold)
Get a segment of the map covered by another map.
FloatPair bayesem3d_get_logabssumexp(double x, double y, double sx, double sy)
Numerically stable logabssumexp.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
SampledDensityMap * particles2density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
double get_coarse_cc_score(DensityMap *data, SampledDensityMap *model_map, double scalefactor, bool recalc_rms=true, bool resample=true, FloatPair norm_factors=FloatPair(0., 0.))
Calculates the value of the EM fitting term.
std::pair< double, algebra::Vector3Ds > bayesem3d_get_score_and_derivative(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution, double sigma, const double window_size=1.0)
The function returns the negative log of the Normal distributed difference between a normalized EM de...
Composable functors to implement scores via compile-time composition.
Code to compute statistical measures.
algebra::GridD< 3, algebra::DenseGridStorageD< 3, float >, float > get_grid(DensityMap *in_map)
Return a dense grid containing the voxels of the passed density map.
void bayesem3d_get_normalized_intensities(DensityMap *em, const IMP::ParticlesTemp &ps, double resolution)
FloatPair bayesem3d_get_em_density_squared(DensityMap *em, long number_of_voxels)
Compute the sum of the density and the sum of the squares of the density.
def write_pca_cmm
Write out principal components to a file in Chimera Marker format.
double convolute(const DensityMap *m1, const DensityMap *m2)
Return a convolution between density maps m1 and m2.
Common base class for heavy weight IMP objects.
Definition: Object.h:106
DensityMap * multiply(const DensityMap *m1, const DensityMap *m2)
Return a density map for which voxel i contains the result of m1[i]*m2[i].
std::map< double, int > bayesem3d_get_distinct_and_counts(DensityMap *em)
Get histogram of density in EM map.
DensityHeader create_density_header(const algebra::BoundingBoxD< 3 > &bb, float spacing)
Create a header from a bounding box in 3D.
Float compute_fitting_score(const ParticlesTemp &ps, DensityMap *em_map, FloatKey wei_key=atom::Mass::get_mass_key())
Compute fitting scores for a given set of rigid transformations.
double get_coarse_cc_local_coefficient(const DensityMap *em_map, DensityMap *model_map, double voxel_data_threshold)
Local cross correlation function.
double bayesem3d_get_cross_correlation_coefficient(const DensityMap *em1, const DensityMap *em2)
Compute a normalized cross-correlation coefficient.
Floats bayesem3d_get_cumulative_sum(DensityMap *em)
Compute the cumulative sum of the histogram computed from EM map.
FittingSolutions local_rigid_fitting_around_point(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, const algebra::Vector3D &anchor_centroid, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=false)
Local rigid fitting of a rigid body around a center point.
double bayesem3d_get_logsumprodexp(double x, double y, double wx, double wy)
Numerically stable logsumexpprod.
std::vector< double > bayesem3d_get_value_no_deriv(Particle *p, const algebra::Vector3D &pt, double mass_ii, const IMP::em::KernelParameters &kps)
Compute the score without its derivative.
long get_number_of_particles_outside_of_the_density(DensityMap *dmap, const Particles &ps, const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of particles that are outside of the density.
DensityMap * get_max_map(DensityMaps maps)
Return a map where each voxel is the maximum value from the input maps.
DensityMap * create_density_map(const DensityMap *other)
Create a copy of another map.
Store data to be clustered for embedding based algorithms.
Float approximate_molecular_mass(DensityMap *m, Float threshold)
Estimate the molecular mass from a map.
std::map< double, double > bayesem3d_get_cumulative_sum_with_reference(DensityMap *em)
Compute the cumulative sum of the histogram given a reference.
double get_percentage_of_voxels_covered_by_particles(DensityMap *dmap, const Particles &ps, float smoothing_radius=3., const IMP::algebra::Transformation3D &t=IMP::algebra::get_identity_transformation_3d(), float thr=0.0)
Get the number of density voxels that are not covered by particles.
Vector3D get_centroid(const Vector3Ds &ps)
Return the centroid of a set of vectors.
Definition: Vector3D.h:68
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
FittingSolutions local_rigid_fitting(Particle *p, Refiner *refiner, const FloatKey &weight_key, DensityMap *dmap, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3, bool fast=true)
Local rigid fitting of a rigid body.
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...
SurfaceShellDensityMap * particles2surface(const ParticlesTemp &ps, Float apix, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
FittingSolutions local_rigid_fitting_around_points(Particle *p, Refiner *refiner, const FloatKey &wei_key, DensityMap *dmap, const algebra::Vector3Ds &anchor_centroids, OptimizerStates display_log, Int number_of_optimization_runs=5, Int number_of_mc_steps=10, Int number_of_cg_steps=100, Float max_translation=2., Float max_rotation=.3)
Local rigid fitting of a rigid body around a set of center points.
FittingSolutions local_rigid_fitting_grid_search(const ParticlesTemp &ps, const FloatKey &wei_key, DensityMap *dmap, Int max_voxels_translation=2, Int translation_step=1, Float max_angle_in_radians=0.174, Int number_of_rotations=100)
Local grid search rigid fitting.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Float get_molecular_mass_at_threshold(DensityMap *m, Float threshold, atom::ProteinDensityReference ref=atom::HARPAZ)
Compute an approximate molecular mass.
DensityMap * get_segment(DensityMap *map_to_segment, int nx_start, int nx_end, int ny_start, int ny_end, int nz_start, int nz_end)
Get a segment of the map according to xyz indexes.
Float get_threshold_for_approximate_volume(DensityMap *m, Float desired_volume)
Computes the threshold consider in an EM map to get a desired volume.
Float get_volume_at_threshold(DensityMap *m, Float threshold)
Compute an approximate volume.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:53
FloatPair bayesem3d_get_logabssumprodexp(double x, double y, double wx, double wy)
Numerically stable logabssumprodexp.