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