15 import _IMP_score_functor
17 import builtins
as __builtin__
21 strthis =
"proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
27 def _swig_setattr_nondynamic_instance_variable(set):
28 def set_instance_attr(self, name, value):
30 set(self, name, value)
31 elif name ==
"thisown":
33 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
36 raise AttributeError(
"You cannot add instance attributes to %s" % self)
37 return set_instance_attr
40 def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
45 raise AttributeError(
"You cannot add class attributes to %s" % cls)
49 class _SwigNonDynamicMeta(type):
50 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
51 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
56 class IMP_SCORE_FUNCTOR_SwigPyIterator(object):
57 r"""Proxy of C++ swig::IMP_SCORE_FUNCTOR_SwigPyIterator class."""
59 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
61 def __init__(self, *args, **kwargs):
62 raise AttributeError(
"No constructor defined - class is abstract")
64 __swig_destroy__ = _IMP_score_functor.delete_IMP_SCORE_FUNCTOR_SwigPyIterator
67 r"""value(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
68 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_value(self)
71 r"""incr(IMP_SCORE_FUNCTOR_SwigPyIterator self, size_t n=1) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
72 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_incr(self, n)
75 r"""decr(IMP_SCORE_FUNCTOR_SwigPyIterator self, size_t n=1) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
76 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_decr(self, n)
78 def distance(self, x):
79 r"""distance(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> ptrdiff_t"""
80 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_distance(self, x)
83 r"""equal(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
84 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_equal(self, x)
87 r"""copy(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
88 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_copy(self)
91 r"""__next__(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
92 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___next__(self)
95 r"""previous(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
96 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_previous(self)
99 r"""advance(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
100 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_advance(self, n)
103 r"""__eq__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
104 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___eq__(self, x)
107 r"""__ne__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> bool"""
108 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___ne__(self, x)
110 def __iadd__(self, n):
111 r"""__iadd__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
112 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___iadd__(self, n)
114 def __isub__(self, n):
115 r"""__isub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
116 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___isub__(self, n)
118 def __add__(self, n):
119 r"""__add__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
120 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___add__(self, n)
122 def __sub__(self, *args):
124 __sub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, ptrdiff_t n) -> IMP_SCORE_FUNCTOR_SwigPyIterator
125 __sub__(IMP_SCORE_FUNCTOR_SwigPyIterator self, IMP_SCORE_FUNCTOR_SwigPyIterator x) -> ptrdiff_t
127 return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___sub__(self, *args)
132 _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_swigregister(IMP_SCORE_FUNCTOR_SwigPyIterator)
139 IMP_DEBUG = _IMP_score_functor.IMP_DEBUG
141 IMP_RELEASE = _IMP_score_functor.IMP_RELEASE
143 IMP_SILENT = _IMP_score_functor.IMP_SILENT
145 IMP_PROGRESS = _IMP_score_functor.IMP_PROGRESS
147 IMP_TERSE = _IMP_score_functor.IMP_TERSE
149 IMP_VERBOSE = _IMP_score_functor.IMP_VERBOSE
151 IMP_MEMORY = _IMP_score_functor.IMP_MEMORY
153 IMP_NONE = _IMP_score_functor.IMP_NONE
155 IMP_USAGE = _IMP_score_functor.IMP_USAGE
157 IMP_INTERNAL = _IMP_score_functor.IMP_INTERNAL
159 IMP_KERNEL_HAS_LOG4CXX = _IMP_score_functor.IMP_KERNEL_HAS_LOG4CXX
161 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_score_functor.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
163 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_score_functor.IMP_COMPILER_HAS_DEBUG_VECTOR
165 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_score_functor.IMP_COMPILER_HAS_RANDOM_SHUFFLE
167 IMP_COMPILER_HAS_THREE_WAY = _IMP_score_functor.IMP_COMPILER_HAS_THREE_WAY
169 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_RANDOM
171 IMP_KERNEL_HAS_NUMPY = _IMP_score_functor.IMP_KERNEL_HAS_NUMPY
173 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_SYSTEM
175 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_score_functor.IMP_KERNEL_HAS_GPERFTOOLS
177 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
179 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
181 IMPKERNEL_SHOW_WARNINGS = _IMP_score_functor.IMPKERNEL_SHOW_WARNINGS
185 class _DirectorObjects:
186 """@internal Simple class to keep references to director objects
187 to prevent premature deletion."""
190 def register(self, obj):
191 """Take a reference to a director object; will only work for
192 refcounted C++ classes"""
193 if hasattr(obj,
'get_ref_count'):
194 self._objects.append(obj)
196 """Only drop our reference and allow cleanup by Python if no other
197 Python references exist (we hold 3 references: one in self._objects,
198 one in x, and one in the argument list for getrefcount) *and* no
199 other C++ references exist (the Python object always holds one)"""
200 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
201 or x.get_ref_count() > 1]
205 def get_object_count(self):
206 """Get number of director objects (useful for testing only)"""
207 return len(self._objects)
208 _director_objects = _DirectorObjects()
210 class _ostream(object):
211 r"""Proxy of C++ std::ostream class."""
213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
215 def __init__(self, *args, **kwargs):
216 raise AttributeError(
"No constructor defined")
217 __repr__ = _swig_repr
219 def write(self, osa_buf):
220 r"""write(_ostream self, char const * osa_buf)"""
221 return _IMP_score_functor._ostream_write(self, osa_buf)
224 _IMP_score_functor._ostream_swigregister(_ostream)
225 IMP_C_OPEN_BINARY = _IMP_score_functor.IMP_C_OPEN_BINARY
228 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_FILESYSTEM
230 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
232 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_RANDOM
234 IMP_CGAL_HAS_NUMPY = _IMP_score_functor.IMP_CGAL_HAS_NUMPY
236 IMPCGAL_SHOW_WARNINGS = _IMP_score_functor.IMPCGAL_SHOW_WARNINGS
239 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_IMP_CGAL
241 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
243 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
245 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_RANDOM
247 IMP_ALGEBRA_HAS_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_CGAL
249 IMP_ALGEBRA_HAS_NUMPY = _IMP_score_functor.IMP_ALGEBRA_HAS_NUMPY
251 IMP_ALGEBRA_HAS_ANN = _IMP_score_functor.IMP_ALGEBRA_HAS_ANN
253 IMPALGEBRA_SHOW_WARNINGS = _IMP_score_functor.IMPALGEBRA_SHOW_WARNINGS
256 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
258 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
260 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
262 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
264 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_CGAL
266 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_HDF5
268 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_NUMPY
270 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_score_functor.IMPSCOREFUNCTOR_SHOW_WARNINGS
273 r"""Proxy of C++ IMP::score_functor::Score class."""
275 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
276 __repr__ = _swig_repr
279 r"""__init__(Score self) -> Score"""
280 _IMP_score_functor.Score_swiginit(self, _IMP_score_functor.new_Score())
282 def get_inputs(self, m, pis):
283 r"""get_inputs(Score self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
284 return _IMP_score_functor.Score_get_inputs(self, m, pis)
286 def show(self, arg2):
287 r"""show(Score self, _ostream arg2)"""
288 return _IMP_score_functor.Score_show(self, arg2)
289 __swig_destroy__ = _IMP_score_functor.delete_Score
292 _IMP_score_functor.Score_swigregister(Score)
293 class ScoreWithCache(object):
294 r"""Proxy of C++ IMP::score_functor::ScoreWithCache class."""
296 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
297 __repr__ = _swig_repr
300 r"""__init__(ScoreWithCache self) -> ScoreWithCache"""
301 _IMP_score_functor.ScoreWithCache_swiginit(self, _IMP_score_functor.new_ScoreWithCache())
303 def get_inputs(self, m, pis):
304 r"""get_inputs(ScoreWithCache self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
305 return _IMP_score_functor.ScoreWithCache_get_inputs(self, m, pis)
307 def show(self, arg2):
308 r"""show(ScoreWithCache self, _ostream arg2)"""
309 return _IMP_score_functor.ScoreWithCache_show(self, arg2)
310 __swig_destroy__ = _IMP_score_functor.delete_ScoreWithCache
313 _IMP_score_functor.ScoreWithCache_swigregister(ScoreWithCache)
314 class _DopeBase(Score):
315 r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::DopeType,false,true > class."""
317 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
318 __repr__ = _swig_repr
320 def __init__(self, *args):
322 __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file) -> _DopeBase
323 __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _DopeBase
324 __init__(_DopeBase self) -> _DopeBase
326 _IMP_score_functor._DopeBase_swiginit(self, _IMP_score_functor.new__DopeBase(*args))
328 def get_score(self, m, pp, distance):
329 r"""get_score(_DopeBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
330 return _IMP_score_functor._DopeBase_get_score(self, m, pp, distance)
332 def get_score_and_derivative(self, m, pp, distance):
333 r"""get_score_and_derivative(_DopeBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
334 return _IMP_score_functor._DopeBase_get_score_and_derivative(self, m, pp, distance)
336 def get_maximum_range(self, arg2, arg3):
337 r"""get_maximum_range(_DopeBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
338 return _IMP_score_functor._DopeBase_get_maximum_range(self, arg2, arg3)
340 def get_is_trivially_zero(self, m, p, squared_distance):
341 r"""get_is_trivially_zero(_DopeBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
342 return _IMP_score_functor._DopeBase_get_is_trivially_zero(self, m, p, squared_distance)
344 def get_offset(self):
345 r"""get_offset(_DopeBase self) -> double"""
346 return _IMP_score_functor._DopeBase_get_offset(self)
348 def get_threshold(self):
349 r"""get_threshold(_DopeBase self) -> double"""
350 return _IMP_score_functor._DopeBase_get_threshold(self)
353 r"""get_max(_DopeBase self) -> double"""
354 return _IMP_score_functor._DopeBase_get_max(self)
356 def get_spacing(self):
357 r"""get_spacing(_DopeBase self) -> double"""
358 return _IMP_score_functor._DopeBase_get_spacing(self)
360 def get_values(self, i, j):
361 r"""get_values(_DopeBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
362 return _IMP_score_functor._DopeBase_get_values(self, i, j)
364 def get_second_derivatives(self, i, j):
365 r"""get_second_derivatives(_DopeBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
366 return _IMP_score_functor._DopeBase_get_second_derivatives(self, i, j)
368 def get_is_bipartite(self):
369 r"""get_is_bipartite(_DopeBase self) -> bool"""
370 return _IMP_score_functor._DopeBase_get_is_bipartite(self)
372 def get_is_interpolated(self):
373 r"""get_is_interpolated(_DopeBase self) -> bool"""
374 return _IMP_score_functor._DopeBase_get_is_interpolated(self)
376 def get_number_of_particle_types(self):
377 r"""get_number_of_particle_types(_DopeBase self) -> IMP::IntPair"""
378 return _IMP_score_functor._DopeBase_get_number_of_particle_types(self)
379 __swig_destroy__ = _IMP_score_functor.delete__DopeBase
382 _IMP_score_functor._DopeBase_swigregister(_DopeBase)
383 class _LoopStatisticalBase(Score):
384 r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::LoopStatisticalType,false,true > class."""
386 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
387 __repr__ = _swig_repr
389 def __init__(self, *args):
391 __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file) -> _LoopStatisticalBase
392 __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _LoopStatisticalBase
393 __init__(_LoopStatisticalBase self) -> _LoopStatisticalBase
395 _IMP_score_functor._LoopStatisticalBase_swiginit(self, _IMP_score_functor.new__LoopStatisticalBase(*args))
397 def get_score(self, m, pp, distance):
398 r"""get_score(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
399 return _IMP_score_functor._LoopStatisticalBase_get_score(self, m, pp, distance)
401 def get_score_and_derivative(self, m, pp, distance):
402 r"""get_score_and_derivative(_LoopStatisticalBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
403 return _IMP_score_functor._LoopStatisticalBase_get_score_and_derivative(self, m, pp, distance)
405 def get_maximum_range(self, arg2, arg3):
406 r"""get_maximum_range(_LoopStatisticalBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
407 return _IMP_score_functor._LoopStatisticalBase_get_maximum_range(self, arg2, arg3)
409 def get_is_trivially_zero(self, m, p, squared_distance):
410 r"""get_is_trivially_zero(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
411 return _IMP_score_functor._LoopStatisticalBase_get_is_trivially_zero(self, m, p, squared_distance)
413 def get_offset(self):
414 r"""get_offset(_LoopStatisticalBase self) -> double"""
415 return _IMP_score_functor._LoopStatisticalBase_get_offset(self)
417 def get_threshold(self):
418 r"""get_threshold(_LoopStatisticalBase self) -> double"""
419 return _IMP_score_functor._LoopStatisticalBase_get_threshold(self)
422 r"""get_max(_LoopStatisticalBase self) -> double"""
423 return _IMP_score_functor._LoopStatisticalBase_get_max(self)
425 def get_spacing(self):
426 r"""get_spacing(_LoopStatisticalBase self) -> double"""
427 return _IMP_score_functor._LoopStatisticalBase_get_spacing(self)
429 def get_values(self, i, j):
430 r"""get_values(_LoopStatisticalBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
431 return _IMP_score_functor._LoopStatisticalBase_get_values(self, i, j)
433 def get_second_derivatives(self, i, j):
434 r"""get_second_derivatives(_LoopStatisticalBase self, unsigned int i, unsigned int j) -> IMP::Floats"""
435 return _IMP_score_functor._LoopStatisticalBase_get_second_derivatives(self, i, j)
437 def get_is_bipartite(self):
438 r"""get_is_bipartite(_LoopStatisticalBase self) -> bool"""
439 return _IMP_score_functor._LoopStatisticalBase_get_is_bipartite(self)
441 def get_is_interpolated(self):
442 r"""get_is_interpolated(_LoopStatisticalBase self) -> bool"""
443 return _IMP_score_functor._LoopStatisticalBase_get_is_interpolated(self)
445 def get_number_of_particle_types(self):
446 r"""get_number_of_particle_types(_LoopStatisticalBase self) -> IMP::IntPair"""
447 return _IMP_score_functor._LoopStatisticalBase_get_number_of_particle_types(self)
448 __swig_destroy__ = _IMP_score_functor.delete__LoopStatisticalBase
451 _IMP_score_functor._LoopStatisticalBase_swigregister(_LoopStatisticalBase)
452 class Dope(_DopeBase):
453 r"""Proxy of C++ IMP::score_functor::Dope class."""
455 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
456 __repr__ = _swig_repr
458 def __init__(self, *args):
460 __init__(Dope self, double threshold=std::numeric_limits< double >::max()) -> Dope
461 __init__(Dope self, double threshold, TextInput data_file) -> Dope
463 _IMP_score_functor.Dope_swiginit(self, _IMP_score_functor.new_Dope(*args))
466 def get_dope_type_key():
467 r"""get_dope_type_key() -> IntKey"""
468 return _IMP_score_functor.Dope_get_dope_type_key()
469 __swig_destroy__ = _IMP_score_functor.delete_Dope
472 _IMP_score_functor.Dope_swigregister(Dope)
473 class LoopStatistical(_LoopStatisticalBase):
474 r"""Proxy of C++ IMP::score_functor::LoopStatistical class."""
476 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
477 __repr__ = _swig_repr
479 def __init__(self, *args):
481 __init__(LoopStatistical self, double threshold=std::numeric_limits< double >::max()) -> LoopStatistical
482 __init__(LoopStatistical self, double threshold, TextInput data_file) -> LoopStatistical
484 _IMP_score_functor.LoopStatistical_swiginit(self, _IMP_score_functor.new_LoopStatistical(*args))
487 def get_loop_type_key():
488 r"""get_loop_type_key() -> IntKey"""
489 return _IMP_score_functor.LoopStatistical_get_loop_type_key()
490 __swig_destroy__ = _IMP_score_functor.delete_LoopStatistical
493 _IMP_score_functor.LoopStatistical_swigregister(LoopStatistical)
494 class UnaryFunctionEvaluate(Score):
495 r"""Proxy of C++ IMP::score_functor::UnaryFunctionEvaluate class."""
497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
498 __repr__ = _swig_repr
500 def __init__(self, *args):
502 __init__(UnaryFunctionEvaluate self, UnaryFunction uf) -> UnaryFunctionEvaluate
503 __init__(UnaryFunctionEvaluate self) -> UnaryFunctionEvaluate
505 _IMP_score_functor.UnaryFunctionEvaluate_swiginit(self, _IMP_score_functor.new_UnaryFunctionEvaluate(*args))
507 def get_unary_function(self):
508 r"""get_unary_function(UnaryFunctionEvaluate self) -> UnaryFunction"""
509 return _IMP_score_functor.UnaryFunctionEvaluate_get_unary_function(self)
510 __swig_destroy__ = _IMP_score_functor.delete_UnaryFunctionEvaluate
513 _IMP_score_functor.UnaryFunctionEvaluate_swigregister(UnaryFunctionEvaluate)
514 class _SphereDistanceUF(UnaryFunctionEvaluate):
515 r"""Proxy of C++ IMP::score_functor::SphereDistance< IMP::score_functor::UnaryFunctionEvaluate > class."""
517 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
518 __repr__ = _swig_repr
520 def __init__(self, *args):
522 __init__(_SphereDistanceUF self, UnaryFunctionEvaluate base) -> _SphereDistanceUF
523 __init__(_SphereDistanceUF self) -> _SphereDistanceUF
525 _IMP_score_functor._SphereDistanceUF_swiginit(self, _IMP_score_functor.new__SphereDistanceUF(*args))
527 def get_score(self, m, pi, distance):
528 r"""get_score(_SphereDistanceUF self, Model m, IMP::ParticleIndexPair const & pi, double distance) -> double"""
529 return _IMP_score_functor._SphereDistanceUF_get_score(self, m, pi, distance)
531 def get_score_and_derivative(self, m, pi, distance):
532 r"""get_score_and_derivative(_SphereDistanceUF self, Model m, IMP::ParticleIndexPair const & pi, double distance) -> IMP::DerivativePair"""
533 return _IMP_score_functor._SphereDistanceUF_get_score_and_derivative(self, m, pi, distance)
535 def get_maximum_range(self, m, pi):
536 r"""get_maximum_range(_SphereDistanceUF self, Model m, IMP::ParticleIndexPair const & pi) -> double"""
537 return _IMP_score_functor._SphereDistanceUF_get_maximum_range(self, m, pi)
539 def get_is_trivially_zero(self, m, pi, squared_distance):
540 r"""get_is_trivially_zero(_SphereDistanceUF self, Model m, IMP::ParticleIndexPair const & pi, double squared_distance) -> bool"""
541 return _IMP_score_functor._SphereDistanceUF_get_is_trivially_zero(self, m, pi, squared_distance)
542 __swig_destroy__ = _IMP_score_functor.delete__SphereDistanceUF
545 _IMP_score_functor._SphereDistanceUF_swigregister(_SphereDistanceUF)
548 r"""get_module_name() -> std::string const"""
549 return _IMP_score_functor.get_module_name()
552 r"""get_module_version() -> std::string const"""
553 return _IMP_score_functor.get_module_version()
556 r"""get_example_path(std::string fname) -> std::string"""
557 return _IMP_score_functor.get_example_path(fname)
560 r"""get_data_path(std::string fname) -> std::string"""
561 return _IMP_score_functor.get_data_path(fname)
563 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...