11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_saxs', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_saxs', fp, pathname, description)
28 _IMP_saxs = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_SAXS_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_SAXS_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_SAXS_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_SAXS_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_saxs.delete_IMP_SAXS_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_SAXS_SwigPyIterator self) -> PyObject *"""
91 return _IMP_saxs.IMP_SAXS_SwigPyIterator_value(self)
95 incr(IMP_SAXS_SwigPyIterator self, size_t n=1) -> IMP_SAXS_SwigPyIterator
96 incr(IMP_SAXS_SwigPyIterator self) -> IMP_SAXS_SwigPyIterator
98 return _IMP_saxs.IMP_SAXS_SwigPyIterator_incr(self, n)
102 decr(IMP_SAXS_SwigPyIterator self, size_t n=1) -> IMP_SAXS_SwigPyIterator
103 decr(IMP_SAXS_SwigPyIterator self) -> IMP_SAXS_SwigPyIterator
105 return _IMP_saxs.IMP_SAXS_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_SAXS_SwigPyIterator self, IMP_SAXS_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_saxs.IMP_SAXS_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_SAXS_SwigPyIterator self, IMP_SAXS_SwigPyIterator x) -> bool"""
113 return _IMP_saxs.IMP_SAXS_SwigPyIterator_equal(self, *args)
116 """copy(IMP_SAXS_SwigPyIterator self) -> IMP_SAXS_SwigPyIterator"""
117 return _IMP_saxs.IMP_SAXS_SwigPyIterator_copy(self)
120 """next(IMP_SAXS_SwigPyIterator self) -> PyObject *"""
121 return _IMP_saxs.IMP_SAXS_SwigPyIterator_next(self)
124 """__next__(IMP_SAXS_SwigPyIterator self) -> PyObject *"""
125 return _IMP_saxs.IMP_SAXS_SwigPyIterator___next__(self)
128 """previous(IMP_SAXS_SwigPyIterator self) -> PyObject *"""
129 return _IMP_saxs.IMP_SAXS_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_SAXS_SwigPyIterator self, ptrdiff_t n) -> IMP_SAXS_SwigPyIterator"""
133 return _IMP_saxs.IMP_SAXS_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_SAXS_SwigPyIterator self, IMP_SAXS_SwigPyIterator x) -> bool"""
137 return _IMP_saxs.IMP_SAXS_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_SAXS_SwigPyIterator self, IMP_SAXS_SwigPyIterator x) -> bool"""
141 return _IMP_saxs.IMP_SAXS_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_SAXS_SwigPyIterator self, ptrdiff_t n) -> IMP_SAXS_SwigPyIterator"""
145 return _IMP_saxs.IMP_SAXS_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_SAXS_SwigPyIterator self, ptrdiff_t n) -> IMP_SAXS_SwigPyIterator"""
149 return _IMP_saxs.IMP_SAXS_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_SAXS_SwigPyIterator self, ptrdiff_t n) -> IMP_SAXS_SwigPyIterator"""
153 return _IMP_saxs.IMP_SAXS_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_SAXS_SwigPyIterator self, ptrdiff_t n) -> IMP_SAXS_SwigPyIterator
158 __sub__(IMP_SAXS_SwigPyIterator self, IMP_SAXS_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_saxs.IMP_SAXS_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_SAXS_SwigPyIterator_swigregister = _IMP_saxs.IMP_SAXS_SwigPyIterator_swigregister
164 IMP_SAXS_SwigPyIterator_swigregister(IMP_SAXS_SwigPyIterator)
171 IMP_DEBUG = _IMP_saxs.IMP_DEBUG
172 IMP_RELEASE = _IMP_saxs.IMP_RELEASE
173 IMP_SILENT = _IMP_saxs.IMP_SILENT
174 IMP_PROGRESS = _IMP_saxs.IMP_PROGRESS
175 IMP_TERSE = _IMP_saxs.IMP_TERSE
176 IMP_VERBOSE = _IMP_saxs.IMP_VERBOSE
177 IMP_MEMORY = _IMP_saxs.IMP_MEMORY
178 IMP_NONE = _IMP_saxs.IMP_NONE
179 IMP_USAGE = _IMP_saxs.IMP_USAGE
180 IMP_INTERNAL = _IMP_saxs.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_saxs.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_saxs.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_saxs.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_saxs.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_saxs.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_saxs.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_saxs.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_saxs.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_saxs.DEFAULT_CHECK
216 NONE = _IMP_saxs.NONE
217 USAGE = _IMP_saxs.USAGE
218 USAGE_AND_INTERNAL = _IMP_saxs.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_saxs.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_saxs.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_saxs._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_saxs._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_saxs.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_saxs.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_saxs.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_saxs.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_saxs.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_saxs.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_saxs.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_saxs.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_saxs.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_saxs.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_saxs.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_saxs.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_saxs.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_saxs.IMPKERNEL_SHOW_WARNINGS
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_saxs.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_saxs.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_saxs.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_saxs.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_saxs.IMPDISPLAY_SHOW_WARNINGS
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_saxs.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_saxs.IMPSCOREFUNCTOR_SHOW_WARNINGS
286 IMP_CORE_HAS_IMP_BASE = _IMP_saxs.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_saxs.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_saxs.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_saxs.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_saxs.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_saxs.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_saxs.IMPCORE_SHOW_WARNINGS
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_saxs.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_saxs.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_saxs.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_saxs.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_saxs.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_saxs.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_saxs.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_saxs.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_saxs.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_saxs.IMPCONTAINER_SHOW_WARNINGS
311 IMP_ATOM_HAS_IMP_BASE = _IMP_saxs.IMP_ATOM_HAS_IMP_BASE
312 IMP_ATOM_HAS_IMP_CGAL = _IMP_saxs.IMP_ATOM_HAS_IMP_CGAL
313 IMP_ATOM_HAS_IMP_KERNEL = _IMP_saxs.IMP_ATOM_HAS_IMP_KERNEL
314 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_saxs.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
315 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
316 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_saxs.IMP_ATOM_HAS_BOOST_RANDOM
317 IMP_ATOM_HAS_BOOST_REGEX = _IMP_saxs.IMP_ATOM_HAS_BOOST_REGEX
318 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_ATOM_HAS_BOOST_SYSTEM
319 IMP_ATOM_HAS_CGAL = _IMP_saxs.IMP_ATOM_HAS_CGAL
320 IMP_ATOM_HAS_HDF5 = _IMP_saxs.IMP_ATOM_HAS_HDF5
321 IMPATOM_SHOW_WARNINGS = _IMP_saxs.IMPATOM_SHOW_WARNINGS
322 IMP_ATOM_TYPE_INDEX = _IMP_saxs.IMP_ATOM_TYPE_INDEX
323 IMP_RESIDUE_TYPE_INDEX = _IMP_saxs.IMP_RESIDUE_TYPE_INDEX
324 IMP_HIERARCHY_TYPE_INDEX = _IMP_saxs.IMP_HIERARCHY_TYPE_INDEX
326 IMP_SAXS_HAS_IMP_BASE = _IMP_saxs.IMP_SAXS_HAS_IMP_BASE
327 IMP_SAXS_HAS_IMP_CGAL = _IMP_saxs.IMP_SAXS_HAS_IMP_CGAL
328 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_saxs.IMP_SAXS_HAS_IMP_CONTAINER
329 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_saxs.IMP_SAXS_HAS_IMP_DISPLAY
330 IMP_SAXS_HAS_IMP_KERNEL = _IMP_saxs.IMP_SAXS_HAS_IMP_KERNEL
331 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_saxs.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
332 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_saxs.IMP_SAXS_HAS_BOOST_FILESYSTEM
333 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_saxs.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
334 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_saxs.IMP_SAXS_HAS_BOOST_RANDOM
335 IMP_SAXS_HAS_BOOST_REGEX = _IMP_saxs.IMP_SAXS_HAS_BOOST_REGEX
336 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_saxs.IMP_SAXS_HAS_BOOST_SYSTEM
337 IMP_SAXS_HAS_CGAL = _IMP_saxs.IMP_SAXS_HAS_CGAL
338 IMP_SAXS_HAS_HDF5 = _IMP_saxs.IMP_SAXS_HAS_HDF5
339 IMPSAXS_SHOW_WARNINGS = _IMP_saxs.IMPSAXS_SHOW_WARNINGS
340 class DistBase(_object):
341 """Proxy of C++ std::vector<(double)> class"""
342 __swig_setmethods__ = {}
343 __setattr__ =
lambda self, name, value: _swig_setattr(self, DistBase, name, value)
344 __swig_getmethods__ = {}
345 __getattr__ =
lambda self, name: _swig_getattr(self, DistBase, name)
346 __repr__ = _swig_repr
348 """iterator(DistBase self) -> IMP_SAXS_SwigPyIterator"""
349 return _IMP_saxs.DistBase_iterator(self)
351 def __iter__(self):
return self.iterator()
352 def __nonzero__(self):
353 """__nonzero__(DistBase self) -> bool"""
354 return _IMP_saxs.DistBase___nonzero__(self)
357 """__bool__(DistBase self) -> bool"""
358 return _IMP_saxs.DistBase___bool__(self)
361 """__len__(DistBase self) -> std::vector< double >::size_type"""
362 return _IMP_saxs.DistBase___len__(self)
365 """pop(DistBase self) -> std::vector< double >::value_type"""
366 return _IMP_saxs.DistBase_pop(self)
368 def __getslice__(self, *args):
369 """__getslice__(DistBase self, std::vector< double >::difference_type i, std::vector< double >::difference_type j) -> DistBase"""
370 return _IMP_saxs.DistBase___getslice__(self, *args)
372 def __setslice__(self, *args):
374 __setslice__(DistBase self, std::vector< double >::difference_type i, std::vector< double >::difference_type j,
375 DistBase v=std::vector< double,std::allocator< double > >())
376 __setslice__(DistBase self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)
378 return _IMP_saxs.DistBase___setslice__(self, *args)
380 def __delslice__(self, *args):
381 """__delslice__(DistBase self, std::vector< double >::difference_type i, std::vector< double >::difference_type j)"""
382 return _IMP_saxs.DistBase___delslice__(self, *args)
384 def __delitem__(self, *args):
386 __delitem__(DistBase self, std::vector< double >::difference_type i)
387 __delitem__(DistBase self, PySliceObject * slice)
389 return _IMP_saxs.DistBase___delitem__(self, *args)
391 def __getitem__(self, *args):
393 __getitem__(DistBase self, PySliceObject * slice) -> DistBase
394 __getitem__(DistBase self, std::vector< double >::difference_type i) -> std::vector< double >::value_type const &
396 return _IMP_saxs.DistBase___getitem__(self, *args)
398 def __setitem__(self, *args):
400 __setitem__(DistBase self, PySliceObject * slice, DistBase v)
401 __setitem__(DistBase self, PySliceObject * slice)
402 __setitem__(DistBase self, std::vector< double >::difference_type i, std::vector< double >::value_type const & x)
404 return _IMP_saxs.DistBase___setitem__(self, *args)
406 def append(self, *args):
407 """append(DistBase self, std::vector< double >::value_type const & x)"""
408 return _IMP_saxs.DistBase_append(self, *args)
411 """empty(DistBase self) -> bool"""
412 return _IMP_saxs.DistBase_empty(self)
415 """size(DistBase self) -> std::vector< double >::size_type"""
416 return _IMP_saxs.DistBase_size(self)
419 """clear(DistBase self)"""
420 return _IMP_saxs.DistBase_clear(self)
422 def swap(self, *args):
423 """swap(DistBase self, DistBase v)"""
424 return _IMP_saxs.DistBase_swap(self, *args)
426 def get_allocator(self):
427 """get_allocator(DistBase self) -> std::vector< double >::allocator_type"""
428 return _IMP_saxs.DistBase_get_allocator(self)
431 """begin(DistBase self) -> std::vector< double >::iterator"""
432 return _IMP_saxs.DistBase_begin(self)
435 """end(DistBase self) -> std::vector< double >::iterator"""
436 return _IMP_saxs.DistBase_end(self)
439 """rbegin(DistBase self) -> std::vector< double >::reverse_iterator"""
440 return _IMP_saxs.DistBase_rbegin(self)
443 """rend(DistBase self) -> std::vector< double >::reverse_iterator"""
444 return _IMP_saxs.DistBase_rend(self)
447 """pop_back(DistBase self)"""
448 return _IMP_saxs.DistBase_pop_back(self)
450 def erase(self, *args):
452 erase(DistBase self, std::vector< double >::iterator pos) -> std::vector< double >::iterator
453 erase(DistBase self, std::vector< double >::iterator first, std::vector< double >::iterator last) -> std::vector< double >::iterator
455 return _IMP_saxs.DistBase_erase(self, *args)
457 def __init__(self, *args):
459 __init__(std::vector<(double)> self) -> DistBase
460 __init__(std::vector<(double)> self, DistBase arg2) -> DistBase
461 __init__(std::vector<(double)> self, std::vector< double >::size_type size) -> DistBase
462 __init__(std::vector<(double)> self, std::vector< double >::size_type size, std::vector< double >::value_type const & value) -> DistBase
464 this = _IMP_saxs.new_DistBase(*args)
465 try: self.this.append(this)
466 except: self.this = this
467 def push_back(self, *args):
468 """push_back(DistBase self, std::vector< double >::value_type const & x)"""
469 return _IMP_saxs.DistBase_push_back(self, *args)
472 """front(DistBase self) -> std::vector< double >::value_type const &"""
473 return _IMP_saxs.DistBase_front(self)
476 """back(DistBase self) -> std::vector< double >::value_type const &"""
477 return _IMP_saxs.DistBase_back(self)
479 def assign(self, *args):
480 """assign(DistBase self, std::vector< double >::size_type n, std::vector< double >::value_type const & x)"""
481 return _IMP_saxs.DistBase_assign(self, *args)
483 def resize(self, *args):
485 resize(DistBase self, std::vector< double >::size_type new_size)
486 resize(DistBase self, std::vector< double >::size_type new_size, std::vector< double >::value_type const & x)
488 return _IMP_saxs.DistBase_resize(self, *args)
490 def insert(self, *args):
492 insert(DistBase self, std::vector< double >::iterator pos, std::vector< double >::value_type const & x) -> std::vector< double >::iterator
493 insert(DistBase self, std::vector< double >::iterator pos, std::vector< double >::size_type n, std::vector< double >::value_type const & x)
495 return _IMP_saxs.DistBase_insert(self, *args)
497 def reserve(self, *args):
498 """reserve(DistBase self, std::vector< double >::size_type n)"""
499 return _IMP_saxs.DistBase_reserve(self, *args)
502 """capacity(DistBase self) -> std::vector< double >::size_type"""
503 return _IMP_saxs.DistBase_capacity(self)
505 __swig_destroy__ = _IMP_saxs.delete_DistBase
506 __del__ =
lambda self :
None;
507 DistBase_swigregister = _IMP_saxs.DistBase_swigregister
508 DistBase_swigregister(DistBase)
510 _object_types.append(
"Profile")
513 def _object_cast_to_Profile(*args):
514 """_object_cast_to_Profile(Object o) -> Profile"""
515 return _IMP_saxs._object_cast_to_Profile(*args)
516 ALL_ATOMS = _IMP_saxs.ALL_ATOMS
517 HEAVY_ATOMS = _IMP_saxs.HEAVY_ATOMS
518 CA_ATOMS = _IMP_saxs.CA_ATOMS
519 class FormFactorTable(_object):
520 """Proxy of C++ IMP::saxs::FormFactorTable class"""
521 __swig_setmethods__ = {}
522 __setattr__ =
lambda self, name, value: _swig_setattr(self, FormFactorTable, name, value)
523 __swig_getmethods__ = {}
524 __getattr__ =
lambda self, name: _swig_getattr(self, FormFactorTable, name)
525 __repr__ = _swig_repr
526 def __init__(self, *args):
528 __init__(IMP::saxs::FormFactorTable self) -> FormFactorTable
529 __init__(IMP::saxs::FormFactorTable self, IMP::String const & table_name, IMP::Float min_q, IMP::Float max_q, IMP::Float delta_q) -> FormFactorTable
531 this = _IMP_saxs.new_FormFactorTable(*args)
532 try: self.this.append(this)
533 except: self.this = this
534 def get_form_factor(self, *args):
536 get_form_factor(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
537 get_form_factor(FormFactorTable self, Particle p) -> IMP::Float
539 return _IMP_saxs.FormFactorTable_get_form_factor(self, *args)
541 def get_vacuum_form_factor(self, *args):
543 get_vacuum_form_factor(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
544 get_vacuum_form_factor(FormFactorTable self, Particle p) -> IMP::Float
546 return _IMP_saxs.FormFactorTable_get_vacuum_form_factor(self, *args)
548 def get_dummy_form_factor(self, *args):
550 get_dummy_form_factor(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
551 get_dummy_form_factor(FormFactorTable self, Particle p) -> IMP::Float
553 return _IMP_saxs.FormFactorTable_get_dummy_form_factor(self, *args)
555 def get_water_form_factor(self):
556 """get_water_form_factor(FormFactorTable self) -> IMP::Float"""
557 return _IMP_saxs.FormFactorTable_get_water_form_factor(self)
559 def get_vacuum_water_form_factor(self):
560 """get_vacuum_water_form_factor(FormFactorTable self) -> IMP::Float"""
561 return _IMP_saxs.FormFactorTable_get_vacuum_water_form_factor(self)
563 def get_dummy_water_form_factor(self):
564 """get_dummy_water_form_factor(FormFactorTable self) -> IMP::Float"""
565 return _IMP_saxs.FormFactorTable_get_dummy_water_form_factor(self)
567 def get_form_factors(self, *args):
569 get_form_factors(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Floats const
570 get_form_factors(FormFactorTable self, Particle p) -> IMP::Floats const &
572 return _IMP_saxs.FormFactorTable_get_form_factors(self, *args)
574 def get_vacuum_form_factors(self, *args):
576 get_vacuum_form_factors(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Floats const
577 get_vacuum_form_factors(FormFactorTable self, Particle p) -> IMP::Floats const &
579 return _IMP_saxs.FormFactorTable_get_vacuum_form_factors(self, *args)
581 def get_dummy_form_factors(self, *args):
583 get_dummy_form_factors(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Floats const
584 get_dummy_form_factors(FormFactorTable self, Particle p) -> IMP::Floats const &
586 return _IMP_saxs.FormFactorTable_get_dummy_form_factors(self, *args)
588 def get_water_form_factors(self):
589 """get_water_form_factors(FormFactorTable self) -> IMP::Floats const &"""
590 return _IMP_saxs.FormFactorTable_get_water_form_factors(self)
592 def get_water_vacuum_form_factors(self):
593 """get_water_vacuum_form_factors(FormFactorTable self) -> IMP::Floats const &"""
594 return _IMP_saxs.FormFactorTable_get_water_vacuum_form_factors(self)
596 def get_water_dummy_form_factors(self):
597 """get_water_dummy_form_factors(FormFactorTable self) -> IMP::Floats const &"""
598 return _IMP_saxs.FormFactorTable_get_water_dummy_form_factors(self)
600 def get_radius(self, *args):
602 get_radius(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
603 get_radius(FormFactorTable self, Particle p) -> IMP::Float
605 return _IMP_saxs.FormFactorTable_get_radius(self, *args)
609 get_volume(FormFactorTable self, Particle p, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
610 get_volume(FormFactorTable self, Particle p) -> IMP::Float
612 return _IMP_saxs.FormFactorTable_get_volume(self, *args)
614 def show(self, *args):
616 show(FormFactorTable self, _ostream out=std::cout, std::string prefix="")
617 show(FormFactorTable self, _ostream out=std::cout)
618 show(FormFactorTable self)
620 return _IMP_saxs.FormFactorTable_show(self, *args)
622 __swig_setmethods__[
"rho_"] = _IMP_saxs.FormFactorTable_rho__set
623 __swig_getmethods__[
"rho_"] = _IMP_saxs.FormFactorTable_rho__get
624 if _newclass:rho_ = _swig_property(_IMP_saxs.FormFactorTable_rho__get, _IMP_saxs.FormFactorTable_rho__set)
625 __swig_destroy__ = _IMP_saxs.delete_FormFactorTable
626 __del__ =
lambda self :
None;
627 FormFactorTable_swigregister = _IMP_saxs.FormFactorTable_swigregister
628 FormFactorTable_swigregister(FormFactorTable)
629 cvar = _IMP_saxs.cvar
633 """default_form_factor_table() -> FormFactorTable"""
634 return _IMP_saxs.default_form_factor_table()
636 """Proxy of C++ IMP::saxs::Profile class"""
637 __swig_setmethods__ = {}
638 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
639 __setattr__ =
lambda self, name, value: _swig_setattr(self, Profile, name, value)
640 __swig_getmethods__ = {}
641 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
642 __getattr__ =
lambda self, name: _swig_getattr(self, Profile, name)
643 def __init__(self, *args):
645 __init__(IMP::saxs::Profile self, IMP::String const & file_name, bool fit_file=False) -> Profile
646 __init__(IMP::saxs::Profile self, IMP::String const & file_name) -> Profile
647 __init__(IMP::saxs::Profile self, IMP::Float qmin=0.0, IMP::Float qmax=0.5, IMP::Float delta=0.005) -> Profile
648 __init__(IMP::saxs::Profile self, IMP::Float qmin=0.0, IMP::Float qmax=0.5) -> Profile
649 __init__(IMP::saxs::Profile self, IMP::Float qmin=0.0) -> Profile
650 __init__(IMP::saxs::Profile self) -> Profile
652 this = _IMP_saxs.new_Profile(*args)
653 try: self.this.append(this)
654 except: self.this = this
655 def calculate_profile_partial(self, *args):
657 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles, IMP::Floats const & surface=IMP::Floats(),
658 IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
659 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles, IMP::Floats const & surface=IMP::Floats())
660 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles)
661 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2,
662 IMP::Floats const & surface1=IMP::Floats(), IMP::Floats const & surface2=IMP::Floats(),
663 IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
664 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2,
665 IMP::Floats const & surface1=IMP::Floats(), IMP::Floats const & surface2=IMP::Floats())
666 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2,
667 IMP::Floats const & surface1=IMP::Floats())
668 calculate_profile_partial(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2)
670 return _IMP_saxs.Profile_calculate_profile_partial(self, *args)
672 def calculate_profile_reciprocal_partial(self, *args):
674 calculate_profile_reciprocal_partial(Profile self, IMP::kernel::Particles const & particles, IMP::Floats const & surface=IMP::Floats(),
675 IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
676 calculate_profile_reciprocal_partial(Profile self, IMP::kernel::Particles const & particles, IMP::Floats const & surface=IMP::Floats())
677 calculate_profile_reciprocal_partial(Profile self, IMP::kernel::Particles const & particles)
679 return _IMP_saxs.Profile_calculate_profile_reciprocal_partial(self, *args)
681 def calculate_profile(self, *args):
683 calculate_profile(Profile self, IMP::kernel::Particles const & particles, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS,
684 bool reciprocal=False)
685 calculate_profile(Profile self, IMP::kernel::Particles const & particles, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
686 calculate_profile(Profile self, IMP::kernel::Particles const & particles)
687 calculate_profile(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2,
688 IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
689 calculate_profile(Profile self, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2)
691 return _IMP_saxs.Profile_calculate_profile(self, *args)
693 def calculate_I0(self, *args):
695 calculate_I0(Profile self, IMP::kernel::Particles const & particles, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> IMP::Float
696 calculate_I0(Profile self, IMP::kernel::Particles const & particles) -> IMP::Float
698 return _IMP_saxs.Profile_calculate_I0(self, *args)
700 def calculate_profile_constant_form_factor(self, *args):
702 calculate_profile_constant_form_factor(Profile self, IMP::kernel::Particles const & particles, IMP::Float form_factor=1.0)
703 calculate_profile_constant_form_factor(Profile self, IMP::kernel::Particles const & particles)
705 return _IMP_saxs.Profile_calculate_profile_constant_form_factor(self, *args)
707 def calculate_profile_symmetric(self, *args):
709 calculate_profile_symmetric(Profile self, IMP::kernel::Particles const & particles, unsigned int n, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS)
710 calculate_profile_symmetric(Profile self, IMP::kernel::Particles const & particles, unsigned int n)
712 return _IMP_saxs.Profile_calculate_profile_symmetric(self, *args)
714 def profile_2_distribution(self, *args):
715 """profile_2_distribution(Profile self, RadialDistributionFunction rd, IMP::Float max_distance)"""
716 return _IMP_saxs.Profile_profile_2_distribution(self, *args)
718 def distribution_2_profile(self, *args):
719 """distribution_2_profile(Profile self, RadialDistributionFunction r_dist)"""
720 return _IMP_saxs.Profile_distribution_2_profile(self, *args)
722 def resample(self, *args):
724 resample(Profile self, Profile exp_profile, Profile resampled_profile, bool partial_profiles=False)
725 resample(Profile self, Profile exp_profile, Profile resampled_profile)
727 return _IMP_saxs.Profile_resample(self, *args)
729 def downsample(self, *args):
730 """downsample(Profile self, Profile downsampled_profile, unsigned int point_number)"""
731 return _IMP_saxs.Profile_downsample(self, *args)
735 radius_of_gyration(Profile self, double end_q_rg=1.3) -> double
736 radius_of_gyration(Profile self) -> double
738 return _IMP_saxs.Profile_radius_of_gyration(self, end_q_rg)
740 def read_SAXS_file(self, *args):
742 read_SAXS_file(Profile self, IMP::String const & file_name, bool fit_file=False)
743 read_SAXS_file(Profile self, IMP::String const & file_name)
745 return _IMP_saxs.Profile_read_SAXS_file(self, *args)
747 def write_SAXS_file(self, *args):
749 write_SAXS_file(Profile self, IMP::String const & file_name, IMP::Float max_q=0.0)
750 write_SAXS_file(Profile self, IMP::String const & file_name)
752 return _IMP_saxs.Profile_write_SAXS_file(self, *args)
754 def read_partial_profiles(self, *args):
755 """read_partial_profiles(Profile self, IMP::String const & file_name)"""
756 return _IMP_saxs.Profile_read_partial_profiles(self, *args)
758 def write_partial_profiles(self, *args):
759 """write_partial_profiles(Profile self, IMP::String const & file_name)"""
760 return _IMP_saxs.Profile_write_partial_profiles(self, *args)
762 def get_delta_q(self):
763 """get_delta_q(Profile self) -> IMP::Float"""
764 return _IMP_saxs.Profile_get_delta_q(self)
767 """get_min_q(Profile self) -> IMP::Float"""
768 return _IMP_saxs.Profile_get_min_q(self)
771 """get_max_q(Profile self) -> IMP::Float"""
772 return _IMP_saxs.Profile_get_max_q(self)
774 def get_intensity(self, *args):
775 """get_intensity(Profile self, unsigned int i) -> IMP::Float"""
776 return _IMP_saxs.Profile_get_intensity(self, *args)
778 def get_q(self, *args):
779 """get_q(Profile self, unsigned int i) -> IMP::Float"""
780 return _IMP_saxs.Profile_get_q(self, *args)
782 def get_error(self, *args):
783 """get_error(Profile self, unsigned int i) -> IMP::Float"""
784 return _IMP_saxs.Profile_get_error(self, *args)
786 def get_weight(self, *args):
787 """get_weight(Profile self, unsigned int i) -> IMP::Float"""
788 return _IMP_saxs.Profile_get_weight(self, *args)
790 def get_average_radius(self):
791 """get_average_radius(Profile self) -> IMP::Float"""
792 return _IMP_saxs.Profile_get_average_radius(self)
795 """size(Profile self) -> unsigned int"""
796 return _IMP_saxs.Profile_size(self)
798 def is_uniform_sampling(self):
799 """is_uniform_sampling(Profile self) -> bool"""
800 return _IMP_saxs.Profile_is_uniform_sampling(self)
803 """get_name(Profile self) -> std::string"""
804 return _IMP_saxs.Profile_get_name(self)
807 """get_id(Profile self) -> unsigned int"""
808 return _IMP_saxs.Profile_get_id(self)
810 def set_intensity(self, *args):
811 """set_intensity(Profile self, unsigned int i, IMP::Float iq)"""
812 return _IMP_saxs.Profile_set_intensity(self, *args)
814 def set_ff_table(self, *args):
815 """set_ff_table(Profile self, FormFactorTable ff_table)"""
816 return _IMP_saxs.Profile_set_ff_table(self, *args)
818 def set_average_radius(self, *args):
819 """set_average_radius(Profile self, IMP::Float r)"""
820 return _IMP_saxs.Profile_set_average_radius(self, *args)
822 def set_average_volume(self, *args):
823 """set_average_volume(Profile self, IMP::Float v)"""
824 return _IMP_saxs.Profile_set_average_volume(self, *args)
826 def set_name(self, *args):
827 """set_name(Profile self, std::string name)"""
828 return _IMP_saxs.Profile_set_name(self, *args)
830 def set_id(self, *args):
831 """set_id(Profile self, unsigned int id)"""
832 return _IMP_saxs.Profile_set_id(self, *args)
834 def add_entry(self, *args):
836 add_entry(Profile self, IMP::Float q, IMP::Float intensity, IMP::Float error=1.0)
837 add_entry(Profile self, IMP::Float q, IMP::Float intensity)
839 return _IMP_saxs.Profile_add_entry(self, *args)
841 def add_errors(self):
842 """add_errors(Profile self)"""
843 return _IMP_saxs.Profile_add_errors(self)
845 def add_noise(self, percentage=0.03):
847 add_noise(Profile self, IMP::Float percentage=0.03)
848 add_noise(Profile self)
850 return _IMP_saxs.Profile_add_noise(self, percentage)
852 def sum_partial_profiles(self, *args):
853 """sum_partial_profiles(Profile self, IMP::Float c1, IMP::Float c2)"""
854 return _IMP_saxs.Profile_sum_partial_profiles(self, *args)
856 def add(self, *args):
858 add(Profile self, Profile other_profile, IMP::Float weight=1.0)
859 add(Profile self, Profile other_profile)
860 add(Profile self, std::vector< IMP::saxs::Profile *,std::allocator< IMP::saxs::Profile * > > const & profiles,
861 DistBase weights=std::vector< IMP::Float >())
862 add(Profile self, std::vector< IMP::saxs::Profile *,std::allocator< IMP::saxs::Profile * > > const & profiles)
864 return _IMP_saxs.Profile_add(self, *args)
866 def add_partial_profiles(self, *args):
868 add_partial_profiles(Profile self, Profile other_profile, IMP::Float weight=1.0)
869 add_partial_profiles(Profile self, Profile other_profile)
870 add_partial_profiles(Profile self, std::vector< IMP::saxs::Profile *,std::allocator< IMP::saxs::Profile * > > const & profiles,
871 DistBase weights=std::vector< IMP::Float >())
872 add_partial_profiles(Profile self, std::vector< IMP::saxs::Profile *,std::allocator< IMP::saxs::Profile * > > const & profiles)
874 return _IMP_saxs.Profile_add_partial_profiles(self, *args)
876 def background_adjust(self, *args):
877 """background_adjust(Profile self, double start_q)"""
878 return _IMP_saxs.Profile_background_adjust(self, *args)
880 def scale(self, *args):
881 """scale(Profile self, IMP::Float c)"""
882 return _IMP_saxs.Profile_scale(self, *args)
884 def offset(self, *args):
885 """offset(Profile self, IMP::Float c)"""
886 return _IMP_saxs.Profile_offset(self, *args)
888 def copy_errors(self, *args):
889 """copy_errors(Profile self, Profile exp_profile)"""
890 return _IMP_saxs.Profile_copy_errors(self, *args)
892 def get_version_info(self):
893 """get_version_info(Profile self) -> VersionInfo"""
894 return _IMP_saxs.Profile_get_version_info(self)
897 """__str__(Profile self) -> std::string"""
898 return _IMP_saxs.Profile___str__(self)
901 """__repr__(Profile self) -> std::string"""
902 return _IMP_saxs.Profile___repr__(self)
905 return _object_cast_to_Profile(o)
906 get_from = staticmethod(get_from)
908 Profile_swigregister = _IMP_saxs.Profile_swigregister
909 Profile_swigregister(Profile)
910 Profile.modulation_function_parameter_ = _IMP_saxs.cvar.Profile_modulation_function_parameter_
912 class FitParameters(_object):
913 """Proxy of C++ IMP::saxs::FitParameters class"""
914 __swig_setmethods__ = {}
915 __setattr__ =
lambda self, name, value: _swig_setattr(self, FitParameters, name, value)
916 __swig_getmethods__ = {}
917 __getattr__ =
lambda self, name: _swig_getattr(self, FitParameters, name)
918 __repr__ = _swig_repr
919 def __init__(self, *args):
921 __init__(IMP::saxs::FitParameters self) -> FitParameters
922 __init__(IMP::saxs::FitParameters self, float chi, float c1, float c2, float c, float o) -> FitParameters
923 __init__(IMP::saxs::FitParameters self, float chi, float c1, float c2) -> FitParameters
925 this = _IMP_saxs.new_FitParameters(*args)
926 try: self.this.append(this)
927 except: self.this = this
929 """get_score(FitParameters self) -> float"""
930 return _IMP_saxs.FitParameters_get_score(self)
933 """get_chi(FitParameters self) -> float"""
934 return _IMP_saxs.FitParameters_get_chi(self)
937 """get_c1(FitParameters self) -> float"""
938 return _IMP_saxs.FitParameters_get_c1(self)
941 """get_c2(FitParameters self) -> float"""
942 return _IMP_saxs.FitParameters_get_c2(self)
945 """get_scale(FitParameters self) -> float"""
946 return _IMP_saxs.FitParameters_get_scale(self)
948 def get_offset(self):
949 """get_offset(FitParameters self) -> float"""
950 return _IMP_saxs.FitParameters_get_offset(self)
952 def get_default_chi(self):
953 """get_default_chi(FitParameters self) -> float"""
954 return _IMP_saxs.FitParameters_get_default_chi(self)
956 def get_pdb_file_name(self):
957 """get_pdb_file_name(FitParameters self) -> std::string"""
958 return _IMP_saxs.FitParameters_get_pdb_file_name(self)
960 def get_profile_file_name(self):
961 """get_profile_file_name(FitParameters self) -> std::string"""
962 return _IMP_saxs.FitParameters_get_profile_file_name(self)
964 def get_mol_index(self):
965 """get_mol_index(FitParameters self) -> int"""
966 return _IMP_saxs.FitParameters_get_mol_index(self)
968 def set_chi(self, *args):
969 """set_chi(FitParameters self, float chi)"""
970 return _IMP_saxs.FitParameters_set_chi(self, *args)
972 def set_default_chi(self, *args):
973 """set_default_chi(FitParameters self, float chi)"""
974 return _IMP_saxs.FitParameters_set_default_chi(self, *args)
976 def set_profile_file_name(self, *args):
977 """set_profile_file_name(FitParameters self, std::string file_name)"""
978 return _IMP_saxs.FitParameters_set_profile_file_name(self, *args)
980 def set_pdb_file_name(self, *args):
981 """set_pdb_file_name(FitParameters self, std::string file_name)"""
982 return _IMP_saxs.FitParameters_set_pdb_file_name(self, *args)
984 def set_mol_index(self, *args):
985 """set_mol_index(FitParameters self, int index)"""
986 return _IMP_saxs.FitParameters_set_mol_index(self, *args)
988 def show(self, *args):
989 """show(FitParameters self, _ostream s)"""
990 return _IMP_saxs.FitParameters_show(self, *args)
992 __swig_destroy__ = _IMP_saxs.delete_FitParameters
993 __del__ =
lambda self :
None;
994 FitParameters_swigregister = _IMP_saxs.FitParameters_swigregister
995 FitParameters_swigregister(FitParameters)
997 class WeightedFitParameters(FitParameters):
998 """Proxy of C++ IMP::saxs::WeightedFitParameters class"""
999 __swig_setmethods__ = {}
1000 for _s
in [FitParameters]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1001 __setattr__ =
lambda self, name, value: _swig_setattr(self, WeightedFitParameters, name, value)
1002 __swig_getmethods__ = {}
1003 for _s
in [FitParameters]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1004 __getattr__ =
lambda self, name: _swig_getattr(self, WeightedFitParameters, name)
1005 __repr__ = _swig_repr
1006 def __init__(self, *args):
1007 """__init__(IMP::saxs::WeightedFitParameters self, float chi, float c1, float c2, IMP::Floats weights) -> WeightedFitParameters"""
1008 this = _IMP_saxs.new_WeightedFitParameters(*args)
1009 try: self.this.append(this)
1010 except: self.this = this
1011 def get_weights(self):
1012 """get_weights(WeightedFitParameters self) -> IMP::Floats const &"""
1013 return _IMP_saxs.WeightedFitParameters_get_weights(self)
1015 def show(self, *args):
1016 """show(WeightedFitParameters self, _ostream s)"""
1017 return _IMP_saxs.WeightedFitParameters_show(self, *args)
1019 __swig_destroy__ = _IMP_saxs.delete_WeightedFitParameters
1020 __del__ =
lambda self :
None;
1021 WeightedFitParameters_swigregister = _IMP_saxs.WeightedFitParameters_swigregister
1022 WeightedFitParameters_swigregister(WeightedFitParameters)
1024 class ChiScore(_object):
1025 """Proxy of C++ IMP::saxs::ChiScore class"""
1026 __swig_setmethods__ = {}
1027 __setattr__ =
lambda self, name, value: _swig_setattr(self, ChiScore, name, value)
1028 __swig_getmethods__ = {}
1029 __getattr__ =
lambda self, name: _swig_getattr(self, ChiScore, name)
1030 __repr__ = _swig_repr
1031 def compute_score(self, *args):
1033 compute_score(ChiScore self, Profile exp_profile, Profile model_profile, bool use_offset=False) -> IMP::Float
1034 compute_score(ChiScore self, Profile exp_profile, Profile model_profile) -> IMP::Float
1035 compute_score(ChiScore self, Profile exp_profile, Profile model_profile, IMP::Float min_q, IMP::Float max_q) -> IMP::Float
1037 return _IMP_saxs.ChiScore_compute_score(self, *args)
1039 def compute_scale_factor(self, *args):
1041 compute_scale_factor(ChiScore self, Profile exp_profile, Profile model_profile, IMP::Float offset=0.0) -> IMP::Float
1042 compute_scale_factor(ChiScore self, Profile exp_profile, Profile model_profile) -> IMP::Float
1044 return _IMP_saxs.ChiScore_compute_scale_factor(self, *args)
1046 def compute_offset(self, *args):
1047 """compute_offset(ChiScore self, Profile exp_profile, Profile model_profile) -> IMP::Float"""
1048 return _IMP_saxs.ChiScore_compute_offset(self, *args)
1051 """__init__(IMP::saxs::ChiScore self) -> ChiScore"""
1052 this = _IMP_saxs.new_ChiScore()
1053 try: self.this.append(this)
1054 except: self.this = this
1055 __swig_destroy__ = _IMP_saxs.delete_ChiScore
1056 __del__ =
lambda self :
None;
1057 ChiScore_swigregister = _IMP_saxs.ChiScore_swigregister
1058 ChiScore_swigregister(ChiScore)
1060 class ChiScoreLog(_object):
1061 """Proxy of C++ IMP::saxs::ChiScoreLog class"""
1062 __swig_setmethods__ = {}
1063 __setattr__ =
lambda self, name, value: _swig_setattr(self, ChiScoreLog, name, value)
1064 __swig_getmethods__ = {}
1065 __getattr__ =
lambda self, name: _swig_getattr(self, ChiScoreLog, name)
1066 __repr__ = _swig_repr
1067 def compute_score(self, *args):
1069 compute_score(ChiScoreLog self, Profile exp_profile, Profile model_profile, bool use_offset=False) -> IMP::Float
1070 compute_score(ChiScoreLog self, Profile exp_profile, Profile model_profile) -> IMP::Float
1071 compute_score(ChiScoreLog self, Profile exp_profile, Profile model_profile, IMP::Float min_q, IMP::Float max_q) -> IMP::Float
1073 return _IMP_saxs.ChiScoreLog_compute_score(self, *args)
1075 def compute_scale_factor(self, *args):
1077 compute_scale_factor(ChiScoreLog self, Profile exp_profile, Profile model_profile, IMP::Float offset=0.0) -> IMP::Float
1078 compute_scale_factor(ChiScoreLog self, Profile exp_profile, Profile model_profile) -> IMP::Float
1080 return _IMP_saxs.ChiScoreLog_compute_scale_factor(self, *args)
1082 def compute_offset(self, *args):
1083 """compute_offset(ChiScoreLog self, Profile exp_profile, Profile model_profile) -> IMP::Float"""
1084 return _IMP_saxs.ChiScoreLog_compute_offset(self, *args)
1087 """__init__(IMP::saxs::ChiScoreLog self) -> ChiScoreLog"""
1088 this = _IMP_saxs.new_ChiScoreLog()
1089 try: self.this.append(this)
1090 except: self.this = this
1091 __swig_destroy__ = _IMP_saxs.delete_ChiScoreLog
1092 __del__ =
lambda self :
None;
1093 ChiScoreLog_swigregister = _IMP_saxs.ChiScoreLog_swigregister
1094 ChiScoreLog_swigregister(ChiScoreLog)
1097 """Proxy of C++ IMP::saxs::ProfileFitter<(IMP::saxs::ChiScore)> class"""
1098 __swig_setmethods__ = {}
1099 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1100 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProfileFitterChi, name, value)
1101 __swig_getmethods__ = {}
1102 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1103 __getattr__ =
lambda self, name: _swig_getattr(self, ProfileFitterChi, name)
1104 __repr__ = _swig_repr
1105 def __init__(self, *args):
1107 __init__(IMP::saxs::ProfileFitter<(IMP::saxs::ChiScore)> self, Profile exp_profile) -> ProfileFitterChi
1108 __init__(IMP::saxs::ProfileFitter<(IMP::saxs::ChiScore)> self, Profile exp_profile, ChiScore sf) -> ProfileFitterChi
1110 this = _IMP_saxs.new_ProfileFitterChi(*args)
1111 try: self.this.append(this)
1112 except: self.this = this
1113 def compute_score(self, *args):
1115 compute_score(ProfileFitterChi self, Profile model_profile, bool use_offset=False, std::string const fit_file_name="") -> IMP::Float
1116 compute_score(ProfileFitterChi self, Profile model_profile, bool use_offset=False) -> IMP::Float
1117 compute_score(ProfileFitterChi self, Profile model_profile) -> IMP::Float
1118 compute_score(ProfileFitterChi self, Profile model_profile, IMP::Float min_q, IMP::Float max_q) -> IMP::Float
1120 return _IMP_saxs.ProfileFitterChi_compute_score(self, *args)
1122 def fit_profile(self, *args):
1124 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1125 float max_c2=4.0, bool use_offset=False, std::string const fit_file_name="") -> FitParameters
1126 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1127 float max_c2=4.0, bool use_offset=False) -> FitParameters
1128 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1129 float max_c2=4.0) -> FitParameters
1130 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0) -> FitParameters
1131 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05) -> FitParameters
1132 fit_profile(ProfileFitterChi self, Profile partial_profile, float min_c1=0.95) -> FitParameters
1133 fit_profile(ProfileFitterChi self, Profile partial_profile) -> FitParameters
1135 return _IMP_saxs.ProfileFitterChi_fit_profile(self, *args)
1137 def compute_scale_factor(self, *args):
1139 compute_scale_factor(ProfileFitterChi self, Profile model_profile, IMP::Float offset=0.0) -> IMP::Float
1140 compute_scale_factor(ProfileFitterChi self, Profile model_profile) -> IMP::Float
1142 return _IMP_saxs.ProfileFitterChi_compute_scale_factor(self, *args)
1144 def compute_offset(self, *args):
1145 """compute_offset(ProfileFitterChi self, Profile model_profile) -> IMP::Float"""
1146 return _IMP_saxs.ProfileFitterChi_compute_offset(self, *args)
1148 def resample(self, *args):
1149 """resample(ProfileFitterChi self, Profile model_profile, Profile resampled_profile)"""
1150 return _IMP_saxs.ProfileFitterChi_resample(self, *args)
1152 def write_SAXS_fit_file(self, *args):
1154 write_SAXS_fit_file(ProfileFitterChi self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square,
1155 IMP::Float const c=1, IMP::Float const offset=0)
1156 write_SAXS_fit_file(ProfileFitterChi self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square,
1157 IMP::Float const c=1)
1158 write_SAXS_fit_file(ProfileFitterChi self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square)
1160 return _IMP_saxs.ProfileFitterChi_write_SAXS_fit_file(self, *args)
1162 __swig_destroy__ = _IMP_saxs.delete_ProfileFitterChi
1163 __del__ =
lambda self :
None;
1164 ProfileFitterChi_swigregister = _IMP_saxs.ProfileFitterChi_swigregister
1165 ProfileFitterChi_swigregister(ProfileFitterChi)
1167 class WeightedProfileFitter(ProfileFitterChi):
1168 """Proxy of C++ IMP::saxs::WeightedProfileFitter class"""
1169 __swig_setmethods__ = {}
1170 for _s
in [ProfileFitterChi]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1171 __setattr__ =
lambda self, name, value: _swig_setattr(self, WeightedProfileFitter, name, value)
1172 __swig_getmethods__ = {}
1173 for _s
in [ProfileFitterChi]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1174 __getattr__ =
lambda self, name: _swig_getattr(self, WeightedProfileFitter, name)
1175 __repr__ = _swig_repr
1176 def __init__(self, *args):
1177 """__init__(IMP::saxs::WeightedProfileFitter self, Profile exp_profile) -> WeightedProfileFitter"""
1178 this = _IMP_saxs.new_WeightedProfileFitter(*args)
1179 try: self.this.append(this)
1180 except: self.this = this
1181 def compute_score(self, *args):
1183 compute_score(WeightedProfileFitter self, IMP::saxs::ProfilesTemp const & profiles, DistBase weights, bool NNLS=True) -> IMP::Float
1184 compute_score(WeightedProfileFitter self, IMP::saxs::ProfilesTemp const & profiles, DistBase weights) -> IMP::Float
1186 return _IMP_saxs.WeightedProfileFitter_compute_score(self, *args)
1188 def fit_profile(self, *args):
1190 fit_profile(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1191 float max_c2=4.0) -> WeightedFitParameters
1192 fit_profile(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0) -> WeightedFitParameters
1193 fit_profile(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles, float min_c1=0.95, float max_c1=1.05) -> WeightedFitParameters
1194 fit_profile(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles, float min_c1=0.95) -> WeightedFitParameters
1195 fit_profile(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles) -> WeightedFitParameters
1197 return _IMP_saxs.WeightedProfileFitter_fit_profile(self, *args)
1199 def write_fit_file(self, *args):
1200 """write_fit_file(WeightedProfileFitter self, IMP::saxs::ProfilesTemp partial_profiles, WeightedFitParameters fp, std::string const fit_file_name)"""
1201 return _IMP_saxs.WeightedProfileFitter_write_fit_file(self, *args)
1203 __swig_destroy__ = _IMP_saxs.delete_WeightedProfileFitter
1204 __del__ =
lambda self :
None;
1205 WeightedProfileFitter_swigregister = _IMP_saxs.WeightedProfileFitter_swigregister
1206 WeightedProfileFitter_swigregister(WeightedProfileFitter)
1209 """Proxy of C++ IMP::saxs::DerivativeCalculator class"""
1210 __swig_setmethods__ = {}
1211 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1212 __setattr__ =
lambda self, name, value: _swig_setattr(self, DerivativeCalculator, name, value)
1213 __swig_getmethods__ = {}
1214 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1215 __getattr__ =
lambda self, name: _swig_getattr(self, DerivativeCalculator, name)
1216 __repr__ = _swig_repr
1217 def __init__(self, *args):
1218 """__init__(IMP::saxs::DerivativeCalculator self, Profile exp_profile) -> DerivativeCalculator"""
1219 this = _IMP_saxs.new_DerivativeCalculator(*args)
1220 try: self.this.append(this)
1221 except: self.this = this
1222 def compute_chisquare_derivative(self, *args):
1224 compute_chisquare_derivative(DerivativeCalculator self, Profile model_profile, IMP::kernel::Particles const & particles1, IMP::kernel::Particles const & particles2,
1225 std::vector< IMP::algebra::Vector3D,std::allocator< IMP::algebra::Vector3D > > & derivatives,
1226 DistBase effect_size)
1227 compute_chisquare_derivative(DerivativeCalculator self, Profile model_profile, IMP::kernel::Particles const & particles, std::vector< IMP::algebra::Vector3D,std::allocator< IMP::algebra::Vector3D > > & derivatives,
1228 DistBase effect_size)
1230 return _IMP_saxs.DerivativeCalculator_compute_chisquare_derivative(self, *args)
1232 def compute_gaussian_effect_size(self, *args):
1233 """compute_gaussian_effect_size(DerivativeCalculator self, Profile model_profile, IMP::Float const c, IMP::Float const offset, DistBase effect_size)"""
1234 return _IMP_saxs.DerivativeCalculator_compute_gaussian_effect_size(self, *args)
1236 __swig_destroy__ = _IMP_saxs.delete_DerivativeCalculator
1237 __del__ =
lambda self :
None;
1238 DerivativeCalculator_swigregister = _IMP_saxs.DerivativeCalculator_swigregister
1239 DerivativeCalculator_swigregister(DerivativeCalculator)
1242 """Proxy of C++ IMP::saxs::Restraint class"""
1243 __swig_setmethods__ = {}
1244 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1245 __setattr__ =
lambda self, name, value: _swig_setattr(self, Restraint, name, value)
1246 __swig_getmethods__ = {}
1247 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1248 __getattr__ =
lambda self, name: _swig_getattr(self, Restraint, name)
1249 __repr__ = _swig_repr
1250 def __init__(self, *args):
1252 __init__(IMP::saxs::Restraint self, IMP::kernel::Particles const & particles, Profile exp_profile, IMP::saxs::FormFactorType ff_type=HEAVY_ATOMS) -> Restraint
1253 __init__(IMP::saxs::Restraint self, IMP::kernel::Particles const & particles, Profile exp_profile) -> Restraint
1255 this = _IMP_saxs.new_Restraint(*args)
1256 try: self.this.append(this)
1257 except: self.this = this
1258 if self.__class__ != Restraint:
1260 IMP.base._director_objects.register(self)
1264 def do_get_inputs(self):
1265 """do_get_inputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
1266 return _IMP_saxs.Restraint_do_get_inputs(self)
1268 def get_version_info(self):
1269 """get_version_info(Restraint self) -> VersionInfo"""
1270 return _IMP_saxs.Restraint_get_version_info(self)
1272 Restraint_swigregister = _IMP_saxs.Restraint_swigregister
1273 Restraint_swigregister(Restraint)
1276 """Proxy of C++ IMP::saxs::RadiusOfGyrationRestraint class"""
1277 __swig_setmethods__ = {}
1278 for _s
in [
IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1279 __setattr__ =
lambda self, name, value: _swig_setattr(self, RadiusOfGyrationRestraint, name, value)
1280 __swig_getmethods__ = {}
1281 for _s
in [
IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1282 __getattr__ =
lambda self, name: _swig_getattr(self, RadiusOfGyrationRestraint, name)
1283 __repr__ = _swig_repr
1284 def __init__(self, *args):
1286 __init__(IMP::saxs::RadiusOfGyrationRestraint self, IMP::kernel::Particles const & particles, Profile exp_profile, double const end_q_rg=1.3) -> RadiusOfGyrationRestraint
1287 __init__(IMP::saxs::RadiusOfGyrationRestraint self, IMP::kernel::Particles const & particles, Profile exp_profile) -> RadiusOfGyrationRestraint
1289 this = _IMP_saxs.new_RadiusOfGyrationRestraint(*args)
1290 try: self.this.append(this)
1291 except: self.this = this
1292 def do_get_inputs(self):
1293 """do_get_inputs(RadiusOfGyrationRestraint self) -> IMP::kernel::ModelObjectsTemp"""
1294 return _IMP_saxs.RadiusOfGyrationRestraint_do_get_inputs(self)
1296 def get_version_info(self):
1297 """get_version_info(RadiusOfGyrationRestraint self) -> VersionInfo"""
1298 return _IMP_saxs.RadiusOfGyrationRestraint_get_version_info(self)
1300 RadiusOfGyrationRestraint_swigregister = _IMP_saxs.RadiusOfGyrationRestraint_swigregister
1301 RadiusOfGyrationRestraint_swigregister(RadiusOfGyrationRestraint)
1303 class FloatDistribution(DistBase):
1304 """Proxy of C++ IMP::saxs::Distribution<(IMP::Float)> class"""
1305 __swig_setmethods__ = {}
1306 for _s
in [DistBase]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1307 __setattr__ =
lambda self, name, value: _swig_setattr(self, FloatDistribution, name, value)
1308 __swig_getmethods__ = {}
1309 for _s
in [DistBase]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1310 __getattr__ =
lambda self, name: _swig_getattr(self, FloatDistribution, name)
1311 __repr__ = _swig_repr
1312 def __init__(self, *args):
1314 __init__(IMP::saxs::Distribution<(IMP::Float)> self, IMP::Float bin_size=pr_resolution) -> FloatDistribution
1315 __init__(IMP::saxs::Distribution<(IMP::Float)> self) -> FloatDistribution
1317 this = _IMP_saxs.new_FloatDistribution(*args)
1318 try: self.this.append(this)
1319 except: self.this = this
1320 def get_max_distance(self):
1321 """get_max_distance(FloatDistribution self) -> IMP::Float"""
1322 return _IMP_saxs.FloatDistribution_get_max_distance(self)
1324 def get_bin_size(self):
1325 """get_bin_size(FloatDistribution self) -> IMP::Float"""
1326 return _IMP_saxs.FloatDistribution_get_bin_size(self)
1328 def get_index_from_distance(self, *args):
1329 """get_index_from_distance(FloatDistribution self, IMP::Float dist) -> unsigned int"""
1330 return _IMP_saxs.FloatDistribution_get_index_from_distance(self, *args)
1332 def get_distance_from_index(self, *args):
1333 """get_distance_from_index(FloatDistribution self, unsigned int index) -> IMP::Float"""
1334 return _IMP_saxs.FloatDistribution_get_distance_from_index(self, *args)
1336 __swig_destroy__ = _IMP_saxs.delete_FloatDistribution
1337 __del__ =
lambda self :
None;
1338 FloatDistribution_swigregister = _IMP_saxs.FloatDistribution_swigregister
1339 FloatDistribution_swigregister(FloatDistribution)
1341 class VectorDistribution(_object):
1342 """Proxy of C++ IMP::saxs::Distribution<(IMP::algebra::Vector3D)> class"""
1343 __swig_setmethods__ = {}
1344 __setattr__ =
lambda self, name, value: _swig_setattr(self, VectorDistribution, name, value)
1345 __swig_getmethods__ = {}
1346 __getattr__ =
lambda self, name: _swig_getattr(self, VectorDistribution, name)
1347 __repr__ = _swig_repr
1348 def __init__(self, *args):
1350 __init__(IMP::saxs::Distribution<(IMP::algebra::Vector3D)> self, IMP::Float bin_size=pr_resolution) -> VectorDistribution
1351 __init__(IMP::saxs::Distribution<(IMP::algebra::Vector3D)> self) -> VectorDistribution
1353 this = _IMP_saxs.new_VectorDistribution(*args)
1354 try: self.this.append(this)
1355 except: self.this = this
1356 def get_max_distance(self):
1357 """get_max_distance(VectorDistribution self) -> IMP::Float"""
1358 return _IMP_saxs.VectorDistribution_get_max_distance(self)
1360 def get_bin_size(self):
1361 """get_bin_size(VectorDistribution self) -> IMP::Float"""
1362 return _IMP_saxs.VectorDistribution_get_bin_size(self)
1364 def get_index_from_distance(self, *args):
1365 """get_index_from_distance(VectorDistribution self, IMP::Float dist) -> unsigned int"""
1366 return _IMP_saxs.VectorDistribution_get_index_from_distance(self, *args)
1368 def get_distance_from_index(self, *args):
1369 """get_distance_from_index(VectorDistribution self, unsigned int index) -> IMP::Float"""
1370 return _IMP_saxs.VectorDistribution_get_distance_from_index(self, *args)
1372 __swig_destroy__ = _IMP_saxs.delete_VectorDistribution
1373 __del__ =
lambda self :
None;
1374 VectorDistribution_swigregister = _IMP_saxs.VectorDistribution_swigregister
1375 VectorDistribution_swigregister(VectorDistribution)
1377 class RadialDistributionFunction(FloatDistribution):
1378 """Proxy of C++ IMP::saxs::RadialDistributionFunction class"""
1379 __swig_setmethods__ = {}
1380 for _s
in [FloatDistribution]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1381 __setattr__ =
lambda self, name, value: _swig_setattr(self, RadialDistributionFunction, name, value)
1382 __swig_getmethods__ = {}
1383 for _s
in [FloatDistribution]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1384 __getattr__ =
lambda self, name: _swig_getattr(self, RadialDistributionFunction, name)
1385 __repr__ = _swig_repr
1386 def __init__(self, *args):
1388 __init__(IMP::saxs::RadialDistributionFunction self, IMP::Float bin_size=pr_resolution) -> RadialDistributionFunction
1389 __init__(IMP::saxs::RadialDistributionFunction self) -> RadialDistributionFunction
1390 __init__(IMP::saxs::RadialDistributionFunction self, std::string const & file_name) -> RadialDistributionFunction
1392 this = _IMP_saxs.new_RadialDistributionFunction(*args)
1393 try: self.this.append(this)
1394 except: self.this = this
1395 def scale(self, *args):
1396 """scale(RadialDistributionFunction self, IMP::Float c)"""
1397 return _IMP_saxs.RadialDistributionFunction_scale(self, *args)
1399 def add(self, *args):
1400 """add(RadialDistributionFunction self, RadialDistributionFunction model_pr)"""
1401 return _IMP_saxs.RadialDistributionFunction_add(self, *args)
1403 def show(self, *args):
1405 show(RadialDistributionFunction self, _ostream out=std::cout)
1406 show(RadialDistributionFunction self)
1408 return _IMP_saxs.RadialDistributionFunction_show(self, *args)
1410 def R_factor_score(self, *args):
1412 R_factor_score(RadialDistributionFunction self, RadialDistributionFunction model_pr, std::string const & file_name="") -> IMP::Float
1413 R_factor_score(RadialDistributionFunction self, RadialDistributionFunction model_pr) -> IMP::Float
1415 return _IMP_saxs.RadialDistributionFunction_R_factor_score(self, *args)
1417 def fit(self, *args):
1419 fit(RadialDistributionFunction self, RadialDistributionFunction model_pr, std::string const & file_name="") -> IMP::Float
1420 fit(RadialDistributionFunction self, RadialDistributionFunction model_pr) -> IMP::Float
1422 return _IMP_saxs.RadialDistributionFunction_fit(self, *args)
1424 def normalize(self):
1425 """normalize(RadialDistributionFunction self)"""
1426 return _IMP_saxs.RadialDistributionFunction_normalize(self)
1428 def add_to_distribution(self, *args):
1429 """add_to_distribution(RadialDistributionFunction self, IMP::Float dist, IMP::Float value)"""
1430 return _IMP_saxs.RadialDistributionFunction_add_to_distribution(self, *args)
1432 __swig_destroy__ = _IMP_saxs.delete_RadialDistributionFunction
1433 __del__ =
lambda self :
None;
1434 RadialDistributionFunction_swigregister = _IMP_saxs.RadialDistributionFunction_swigregister
1435 RadialDistributionFunction_swigregister(RadialDistributionFunction)
1437 class DeltaDistributionFunction(VectorDistribution):
1438 """Proxy of C++ IMP::saxs::DeltaDistributionFunction class"""
1439 __swig_setmethods__ = {}
1440 for _s
in [VectorDistribution]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1441 __setattr__ =
lambda self, name, value: _swig_setattr(self, DeltaDistributionFunction, name, value)
1442 __swig_getmethods__ = {}
1443 for _s
in [VectorDistribution]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1444 __getattr__ =
lambda self, name: _swig_getattr(self, DeltaDistributionFunction, name)
1445 __repr__ = _swig_repr
1446 def __init__(self, *args):
1448 __init__(IMP::saxs::DeltaDistributionFunction self, IMP::kernel::Particles const & particles, IMP::Float max_distance=0.0, IMP::Float bin_size=pr_resolution) -> DeltaDistributionFunction
1449 __init__(IMP::saxs::DeltaDistributionFunction self, IMP::kernel::Particles const & particles, IMP::Float max_distance=0.0) -> DeltaDistributionFunction
1450 __init__(IMP::saxs::DeltaDistributionFunction self, IMP::kernel::Particles const & particles) -> DeltaDistributionFunction
1452 this = _IMP_saxs.new_DeltaDistributionFunction(*args)
1453 try: self.this.append(this)
1454 except: self.this = this
1455 def calculate_derivative_distribution(self, *args):
1456 """calculate_derivative_distribution(DeltaDistributionFunction self, Particle particle)"""
1457 return _IMP_saxs.DeltaDistributionFunction_calculate_derivative_distribution(self, *args)
1459 def show(self, *args):
1461 show(DeltaDistributionFunction self, _ostream out=std::cout, std::string prefix="")
1462 show(DeltaDistributionFunction self, _ostream out=std::cout)
1463 show(DeltaDistributionFunction self)
1465 return _IMP_saxs.DeltaDistributionFunction_show(self, *args)
1467 __swig_destroy__ = _IMP_saxs.delete_DeltaDistributionFunction
1468 __del__ =
lambda self :
None;
1469 DeltaDistributionFunction_swigregister = _IMP_saxs.DeltaDistributionFunction_swigregister
1470 DeltaDistributionFunction_swigregister(DeltaDistributionFunction)
1472 class SolventAccessibleSurface(_object):
1473 """Proxy of C++ IMP::saxs::SolventAccessibleSurface class"""
1474 __swig_setmethods__ = {}
1475 __setattr__ =
lambda self, name, value: _swig_setattr(self, SolventAccessibleSurface, name, value)
1476 __swig_getmethods__ = {}
1477 __getattr__ =
lambda self, name: _swig_getattr(self, SolventAccessibleSurface, name)
1478 __repr__ = _swig_repr
1479 def get_solvent_accessibility(self, *args):
1481 get_solvent_accessibility(SolventAccessibleSurface self, IMP::core::XYZRs const & points, float probe_radius=1.8, float density=5.0) -> IMP::Floats
1482 get_solvent_accessibility(SolventAccessibleSurface self, IMP::core::XYZRs const & points, float probe_radius=1.8) -> IMP::Floats
1483 get_solvent_accessibility(SolventAccessibleSurface self, IMP::core::XYZRs const & points) -> IMP::Floats
1485 return _IMP_saxs.SolventAccessibleSurface_get_solvent_accessibility(self, *args)
1488 """__init__(IMP::saxs::SolventAccessibleSurface self) -> SolventAccessibleSurface"""
1489 this = _IMP_saxs.new_SolventAccessibleSurface()
1490 try: self.this.append(this)
1491 except: self.this = this
1492 __swig_destroy__ = _IMP_saxs.delete_SolventAccessibleSurface
1493 __del__ =
lambda self :
None;
1494 SolventAccessibleSurface_swigregister = _IMP_saxs.SolventAccessibleSurface_swigregister
1495 SolventAccessibleSurface_swigregister(SolventAccessibleSurface)
1498 """Proxy of C++ IMP::saxs::ProfileFitter<(IMP::saxs::ChiScoreLog)> class"""
1499 __swig_setmethods__ = {}
1500 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1501 __setattr__ =
lambda self, name, value: _swig_setattr(self, ProfileFitterChiLog, name, value)
1502 __swig_getmethods__ = {}
1503 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1504 __getattr__ =
lambda self, name: _swig_getattr(self, ProfileFitterChiLog, name)
1505 __repr__ = _swig_repr
1506 def __init__(self, *args):
1508 __init__(IMP::saxs::ProfileFitter<(IMP::saxs::ChiScoreLog)> self, Profile exp_profile) -> ProfileFitterChiLog
1509 __init__(IMP::saxs::ProfileFitter<(IMP::saxs::ChiScoreLog)> self, Profile exp_profile, ChiScoreLog sf) -> ProfileFitterChiLog
1511 this = _IMP_saxs.new_ProfileFitterChiLog(*args)
1512 try: self.this.append(this)
1513 except: self.this = this
1514 def compute_score(self, *args):
1516 compute_score(ProfileFitterChiLog self, Profile model_profile, bool use_offset=False, std::string const fit_file_name="") -> IMP::Float
1517 compute_score(ProfileFitterChiLog self, Profile model_profile, bool use_offset=False) -> IMP::Float
1518 compute_score(ProfileFitterChiLog self, Profile model_profile) -> IMP::Float
1519 compute_score(ProfileFitterChiLog self, Profile model_profile, IMP::Float min_q, IMP::Float max_q) -> IMP::Float
1521 return _IMP_saxs.ProfileFitterChiLog_compute_score(self, *args)
1523 def fit_profile(self, *args):
1525 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1526 float max_c2=4.0, bool use_offset=False, std::string const fit_file_name="") -> FitParameters
1527 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1528 float max_c2=4.0, bool use_offset=False) -> FitParameters
1529 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0,
1530 float max_c2=4.0) -> FitParameters
1531 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05, float min_c2=-2.0) -> FitParameters
1532 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95, float max_c1=1.05) -> FitParameters
1533 fit_profile(ProfileFitterChiLog self, Profile partial_profile, float min_c1=0.95) -> FitParameters
1534 fit_profile(ProfileFitterChiLog self, Profile partial_profile) -> FitParameters
1536 return _IMP_saxs.ProfileFitterChiLog_fit_profile(self, *args)
1538 def compute_scale_factor(self, *args):
1540 compute_scale_factor(ProfileFitterChiLog self, Profile model_profile, IMP::Float offset=0.0) -> IMP::Float
1541 compute_scale_factor(ProfileFitterChiLog self, Profile model_profile) -> IMP::Float
1543 return _IMP_saxs.ProfileFitterChiLog_compute_scale_factor(self, *args)
1545 def compute_offset(self, *args):
1546 """compute_offset(ProfileFitterChiLog self, Profile model_profile) -> IMP::Float"""
1547 return _IMP_saxs.ProfileFitterChiLog_compute_offset(self, *args)
1549 def resample(self, *args):
1550 """resample(ProfileFitterChiLog self, Profile model_profile, Profile resampled_profile)"""
1551 return _IMP_saxs.ProfileFitterChiLog_resample(self, *args)
1553 def write_SAXS_fit_file(self, *args):
1555 write_SAXS_fit_file(ProfileFitterChiLog self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square,
1556 IMP::Float const c=1, IMP::Float const offset=0)
1557 write_SAXS_fit_file(ProfileFitterChiLog self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square,
1558 IMP::Float const c=1)
1559 write_SAXS_fit_file(ProfileFitterChiLog self, std::string const & file_name, Profile model_profile, IMP::Float const chi_square)
1561 return _IMP_saxs.ProfileFitterChiLog_write_SAXS_fit_file(self, *args)
1563 __swig_destroy__ = _IMP_saxs.delete_ProfileFitterChiLog
1564 __del__ =
lambda self :
None;
1565 ProfileFitterChiLog_swigregister = _IMP_saxs.ProfileFitterChiLog_swigregister
1566 ProfileFitterChiLog_swigregister(ProfileFitterChiLog)
1569 def get_module_version():
1570 """get_module_version() -> std::string const"""
1571 return _IMP_saxs.get_module_version()
1574 """get_example_path(std::string fname) -> std::string"""
1575 return _IMP_saxs.get_example_path(*args)
1578 """get_data_path(std::string fname) -> std::string"""
1579 return _IMP_saxs.get_data_path(*args)
1580 import _version_check
1581 _version_check.check_version(get_module_version())
FormFactorTable * default_form_factor_table()
std::string get_data_path(std::string file_name)
Return the full path to installed data.
See IMP.container for more information.
See IMP.cgal for more information.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
See IMP.score_functor for more information.
double get_volume(const BoundingBoxD< D > &bb)
See IMP.kernel for more information.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
A restraint is a term in an IMP ScoringFunction.
Common base class for heavy weight IMP objects.
See IMP.core for more information.
See IMP.algebra for more information.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
Float radius_of_gyration(const kernel::Particles &particles)
compute radius_of_gyration
See IMP.display for more information.
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
IMP::kernel::Restraint Restraint