14 from sys
import version_info
as _swig_python_version_info
15 import _IMP_score_functor
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_SCORE_FUNCTOR_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_SCORE_FUNCTOR_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_score_functor.delete_IMP_SCORE_FUNCTOR_SwigPyIterator
77 r"""value(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
78 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_value(self)
81 r"""incr(IMP_SCORE_FUNCTOR_SwigPyIterator self, size_t n=1) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
82 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_SCORE_FUNCTOR_SwigPyIterator self, size_t n=1) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
86 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
94 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
98 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_copy(self)
101 r"""next(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
102 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_next(self)
105 r"""__next__(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
106 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___next__(self)
109 r"""previous(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
110 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
114 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
118 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
122 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
126 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
130 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
134 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator
139 __sub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___sub__(self, *args)
146 _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_swigregister(IMP_SCORE_FUNCTOR_SwigPyIterator)
153 IMP_DEBUG = _IMP_score_functor.IMP_DEBUG
155 IMP_RELEASE = _IMP_score_functor.IMP_RELEASE
157 IMP_SILENT = _IMP_score_functor.IMP_SILENT
159 IMP_PROGRESS = _IMP_score_functor.IMP_PROGRESS
161 IMP_TERSE = _IMP_score_functor.IMP_TERSE
163 IMP_VERBOSE = _IMP_score_functor.IMP_VERBOSE
165 IMP_MEMORY = _IMP_score_functor.IMP_MEMORY
167 IMP_NONE = _IMP_score_functor.IMP_NONE
169 IMP_USAGE = _IMP_score_functor.IMP_USAGE
171 IMP_INTERNAL = _IMP_score_functor.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_score_functor.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_score_functor.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_score_functor.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_score_functor.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_score_functor.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_score_functor.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_score_functor.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_score_functor.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_score_functor._ostream_write(self, osa_buf)
238 _IMP_score_functor._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_score_functor.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_score_functor.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_score_functor.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_score_functor.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_score_functor.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_score_functor.IMPALGEBRA_SHOW_WARNINGS
270 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
272 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
274 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
276 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
278 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_CGAL
280 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_HDF5
282 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_NUMPY
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_score_functor.IMPSCOREFUNCTOR_SHOW_WARNINGS
287 r"""Proxy of C++ IMP::score_functor::Score class."""
289 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
290 __repr__ = _swig_repr
293 r"""__init__(Score self) -> Score"""
294 _IMP_score_functor.Score_swiginit(self, _IMP_score_functor.new_Score())
296 def get_inputs(self, m, pis):
297 r"""get_inputs(Score self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
298 return _IMP_score_functor.Score_get_inputs(self, m, pis)
300 def show(self, arg2):
301 r"""show(Score self, _ostream arg2)"""
302 return _IMP_score_functor.Score_show(self, arg2)
303 __swig_destroy__ = _IMP_score_functor.delete_Score
306 _IMP_score_functor.Score_swigregister(Score)
307 class ScoreWithCache(object):
308 r"""Proxy of C++ IMP::score_functor::ScoreWithCache class."""
310 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
311 __repr__ = _swig_repr
314 r"""__init__(ScoreWithCache self) -> ScoreWithCache"""
315 _IMP_score_functor.ScoreWithCache_swiginit(self, _IMP_score_functor.new_ScoreWithCache())
317 def get_inputs(self, m, pis):
318 r"""get_inputs(ScoreWithCache self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
319 return _IMP_score_functor.ScoreWithCache_get_inputs(self, m, pis)
321 def show(self, arg2):
322 r"""show(ScoreWithCache self, _ostream arg2)"""
323 return _IMP_score_functor.ScoreWithCache_show(self, arg2)
324 __swig_destroy__ = _IMP_score_functor.delete_ScoreWithCache
327 _IMP_score_functor.ScoreWithCache_swigregister(ScoreWithCache)
328 class _DopeBase(Score):
329 r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::DopeType,false,true > class."""
331 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
332 __repr__ = _swig_repr
334 def __init__(self, *args):
336 __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file) -> _DopeBase
337 __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _DopeBase
338 __init__(_DopeBase self) -> _DopeBase
340 _IMP_score_functor._DopeBase_swiginit(self, _IMP_score_functor.new__DopeBase(*args))
342 def get_score(self, m, pp, distance):
343 r"""get_score(_DopeBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
344 return _IMP_score_functor._DopeBase_get_score(self, m, pp, distance)
346 def get_score_and_derivative(self, m, pp, distance):
347 r"""get_score_and_derivative(_DopeBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
348 return _IMP_score_functor._DopeBase_get_score_and_derivative(self, m, pp, distance)
350 def get_maximum_range(self, arg2, arg3):
351 r"""get_maximum_range(_DopeBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
352 return _IMP_score_functor._DopeBase_get_maximum_range(self, arg2, arg3)
354 def get_is_trivially_zero(self, m, p, squared_distance):
355 r"""get_is_trivially_zero(_DopeBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
356 return _IMP_score_functor._DopeBase_get_is_trivially_zero(self, m, p, squared_distance)
358 def get_offset(self):
359 r"""get_offset(_DopeBase self) -> double"""
360 return _IMP_score_functor._DopeBase_get_offset(self)
362 def get_threshold(self):
363 r"""get_threshold(_DopeBase self) -> double"""
364 return _IMP_score_functor._DopeBase_get_threshold(self)
367 r"""get_max(_DopeBase self) -> double"""
368 return _IMP_score_functor._DopeBase_get_max(self)
370 def get_spacing(self):
371 r"""get_spacing(_DopeBase self) -> double"""
372 return _IMP_score_functor._DopeBase_get_spacing(self)
374 def get_values(self, i, j):
375 r"""get_values(_DopeBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
376 return _IMP_score_functor._DopeBase_get_values(self, i, j)
378 def get_second_derivatives(self, i, j):
379 r"""get_second_derivatives(_DopeBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
380 return _IMP_score_functor._DopeBase_get_second_derivatives(self, i, j)
382 def get_is_bipartite(self):
383 r"""get_is_bipartite(_DopeBase self) -> bool"""
384 return _IMP_score_functor._DopeBase_get_is_bipartite(self)
386 def get_is_interpolated(self):
387 r"""get_is_interpolated(_DopeBase self) -> bool"""
388 return _IMP_score_functor._DopeBase_get_is_interpolated(self)
390 def get_number_of_particle_types(self):
391 r"""get_number_of_particle_types(_DopeBase self) -> IMP::IntPair"""
392 return _IMP_score_functor._DopeBase_get_number_of_particle_types(self)
393 __swig_destroy__ = _IMP_score_functor.delete__DopeBase
396 _IMP_score_functor._DopeBase_swigregister(_DopeBase)
397 class _LoopStatisticalBase(Score):
398 r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::LoopStatisticalType,false,true > class."""
400 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
401 __repr__ = _swig_repr
403 def __init__(self, *args):
405 __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file) -> _LoopStatisticalBase
406 __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _LoopStatisticalBase
407 __init__(_LoopStatisticalBase self) -> _LoopStatisticalBase
409 _IMP_score_functor._LoopStatisticalBase_swiginit(self, _IMP_score_functor.new__LoopStatisticalBase(*args))
411 def get_score(self, m, pp, distance):
412 r"""get_score(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
413 return _IMP_score_functor._LoopStatisticalBase_get_score(self, m, pp, distance)
415 def get_score_and_derivative(self, m, pp, distance):
416 r"""get_score_and_derivative(_LoopStatisticalBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
417 return _IMP_score_functor._LoopStatisticalBase_get_score_and_derivative(self, m, pp, distance)
419 def get_maximum_range(self, arg2, arg3):
420 r"""get_maximum_range(_LoopStatisticalBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
421 return _IMP_score_functor._LoopStatisticalBase_get_maximum_range(self, arg2, arg3)
423 def get_is_trivially_zero(self, m, p, squared_distance):
424 r"""get_is_trivially_zero(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
425 return _IMP_score_functor._LoopStatisticalBase_get_is_trivially_zero(self, m, p, squared_distance)
427 def get_offset(self):
428 r"""get_offset(_LoopStatisticalBase self) -> double"""
429 return _IMP_score_functor._LoopStatisticalBase_get_offset(self)
431 def get_threshold(self):
432 r"""get_threshold(_LoopStatisticalBase self) -> double"""
433 return _IMP_score_functor._LoopStatisticalBase_get_threshold(self)
436 r"""get_max(_LoopStatisticalBase self) -> double"""
437 return _IMP_score_functor._LoopStatisticalBase_get_max(self)
439 def get_spacing(self):
440 r"""get_spacing(_LoopStatisticalBase self) -> double"""
441 return _IMP_score_functor._LoopStatisticalBase_get_spacing(self)
443 def get_values(self, i, j):
444 r"""get_values(_LoopStatisticalBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
445 return _IMP_score_functor._LoopStatisticalBase_get_values(self, i, j)
447 def get_second_derivatives(self, i, j):
448 r"""get_second_derivatives(_LoopStatisticalBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
449 return _IMP_score_functor._LoopStatisticalBase_get_second_derivatives(self, i, j)
451 def get_is_bipartite(self):
452 r"""get_is_bipartite(_LoopStatisticalBase self) -> bool"""
453 return _IMP_score_functor._LoopStatisticalBase_get_is_bipartite(self)
455 def get_is_interpolated(self):
456 r"""get_is_interpolated(_LoopStatisticalBase self) -> bool"""
457 return _IMP_score_functor._LoopStatisticalBase_get_is_interpolated(self)
459 def get_number_of_particle_types(self):
460 r"""get_number_of_particle_types(_LoopStatisticalBase self) -> IMP::IntPair"""
461 return _IMP_score_functor._LoopStatisticalBase_get_number_of_particle_types(self)
462 __swig_destroy__ = _IMP_score_functor.delete__LoopStatisticalBase
465 _IMP_score_functor._LoopStatisticalBase_swigregister(_LoopStatisticalBase)
466 class Dope(_DopeBase):
467 r"""Proxy of C++ IMP::score_functor::Dope class."""
469 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
470 __repr__ = _swig_repr
472 def __init__(self, *args):
474 __init__(Dope self, double threshold=std::numeric_limits< double >::max()) -> Dope
475 __init__(Dope self, double threshold, TextInput data_file) -> Dope
477 _IMP_score_functor.Dope_swiginit(self, _IMP_score_functor.new_Dope(*args))
480 def get_dope_type_key():
481 r"""get_dope_type_key() -> IntKey"""
482 return _IMP_score_functor.Dope_get_dope_type_key()
483 __swig_destroy__ = _IMP_score_functor.delete_Dope
486 _IMP_score_functor.Dope_swigregister(Dope)
487 class LoopStatistical(_LoopStatisticalBase):
488 r"""Proxy of C++ IMP::score_functor::LoopStatistical class."""
490 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
491 __repr__ = _swig_repr
493 def __init__(self, *args):
495 __init__(LoopStatistical self, double threshold=std::numeric_limits< double >::max()) -> LoopStatistical
496 __init__(LoopStatistical self, double threshold, TextInput data_file) -> LoopStatistical
498 _IMP_score_functor.LoopStatistical_swiginit(self, _IMP_score_functor.new_LoopStatistical(*args))
501 def get_loop_type_key():
502 r"""get_loop_type_key() -> IntKey"""
503 return _IMP_score_functor.LoopStatistical_get_loop_type_key()
504 __swig_destroy__ = _IMP_score_functor.delete_LoopStatistical
507 _IMP_score_functor.LoopStatistical_swigregister(LoopStatistical)
508 class UnaryFunctionEvaluate(Score):
509 r"""Proxy of C++ IMP::score_functor::UnaryFunctionEvaluate class."""
511 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
512 __repr__ = _swig_repr
514 def __init__(self, *args):
516 __init__(UnaryFunctionEvaluate self, UnaryFunction uf) -> UnaryFunctionEvaluate
517 __init__(UnaryFunctionEvaluate self) -> UnaryFunctionEvaluate
519 _IMP_score_functor.UnaryFunctionEvaluate_swiginit(self, _IMP_score_functor.new_UnaryFunctionEvaluate(*args))
521 def get_unary_function(self):
522 r"""get_unary_function(UnaryFunctionEvaluate self) -> UnaryFunction"""
523 return _IMP_score_functor.UnaryFunctionEvaluate_get_unary_function(self)
524 __swig_destroy__ = _IMP_score_functor.delete_UnaryFunctionEvaluate
527 _IMP_score_functor.UnaryFunctionEvaluate_swigregister(UnaryFunctionEvaluate)
530 r"""get_module_name() -> std::string const"""
531 return _IMP_score_functor.get_module_name()
534 r"""get_module_version() -> std::string const"""
535 return _IMP_score_functor.get_module_version()
538 r"""get_example_path(std::string fname) -> std::string"""
539 return _IMP_score_functor.get_example_path(fname)
542 r"""get_data_path(std::string fname) -> std::string"""
543 return _IMP_score_functor.get_data_path(fname)
545 from .
import _version_check
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
Make CGAL functionality available to IMP.
def get_module_name
Return the fully-qualified name of this module.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...