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