IMP logo
IMP Reference Guide  develop.d97d4ead1f,2024/11/21
The Integrative Modeling Platform
score_functor/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2024 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_score_functor
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
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):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
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"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
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__)
62 
63 
64 import weakref
65 
66 class IMP_SCORE_FUNCTOR_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_SCORE_FUNCTOR_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_score_functor.delete_IMP_SCORE_FUNCTOR_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
78  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
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)
83 
84  def decr(self, n=1):
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)
87 
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)
91 
92  def equal(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)
95 
96  def copy(self):
97  r"""copy(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
98  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
102  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
106  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
110  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_previous(self)
111 
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)
115 
116  def __eq__(self, x):
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)
119 
120  def __ne__(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)
123 
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)
127 
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)
131 
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)
135 
136  def __sub__(self, *args):
137  r"""
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
140  """
141  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_SCORE_FUNCTOR_SwigPyIterator in _IMP_score_functor:
146 _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_swigregister(IMP_SCORE_FUNCTOR_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_score_functor.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_score_functor.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_score_functor.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_score_functor.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_score_functor.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_score_functor.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_score_functor.IMP_MEMORY
166 
167 IMP_NONE = _IMP_score_functor.IMP_NONE
168 
169 IMP_USAGE = _IMP_score_functor.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_score_functor.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_score_functor.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_score_functor.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_score_functor.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_score_functor.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_score_functor.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_score_functor.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_score_functor.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_score_functor.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_score_functor._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_score_functor:
236 _IMP_score_functor._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_score_functor.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_SYSTEM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_score_functor.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_score_functor.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_score_functor.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_score_functor.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_score_functor.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
273 
274 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
275 
276 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
279 
280 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
281 
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_CGAL
283 
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_HDF5
285 
286 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_NUMPY
287 
288 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_score_functor.IMPSCOREFUNCTOR_SHOW_WARNINGS
289 
290 class Score(object):
291  r"""Proxy of C++ IMP::score_functor::Score class."""
292 
293  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
294  __repr__ = _swig_repr
295 
296  def __init__(self):
297  r"""__init__(Score self) -> Score"""
298  _IMP_score_functor.Score_swiginit(self, _IMP_score_functor.new_Score())
299 
300  def get_inputs(self, m, pis):
301  r"""get_inputs(Score self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
302  return _IMP_score_functor.Score_get_inputs(self, m, pis)
303 
304  def show(self, arg2):
305  r"""show(Score self, _ostream arg2)"""
306  return _IMP_score_functor.Score_show(self, arg2)
307  __swig_destroy__ = _IMP_score_functor.delete_Score
308 
309 # Register Score in _IMP_score_functor:
310 _IMP_score_functor.Score_swigregister(Score)
311 class ScoreWithCache(object):
312  r"""Proxy of C++ IMP::score_functor::ScoreWithCache class."""
313 
314  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
315  __repr__ = _swig_repr
316 
317  def __init__(self):
318  r"""__init__(ScoreWithCache self) -> ScoreWithCache"""
319  _IMP_score_functor.ScoreWithCache_swiginit(self, _IMP_score_functor.new_ScoreWithCache())
320 
321  def get_inputs(self, m, pis):
322  r"""get_inputs(ScoreWithCache self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
323  return _IMP_score_functor.ScoreWithCache_get_inputs(self, m, pis)
324 
325  def show(self, arg2):
326  r"""show(ScoreWithCache self, _ostream arg2)"""
327  return _IMP_score_functor.ScoreWithCache_show(self, arg2)
328  __swig_destroy__ = _IMP_score_functor.delete_ScoreWithCache
329 
330 # Register ScoreWithCache in _IMP_score_functor:
331 _IMP_score_functor.ScoreWithCache_swigregister(ScoreWithCache)
332 class _DopeBase(Score):
333  r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::DopeType,false,true > class."""
334 
335  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
336  __repr__ = _swig_repr
337 
338  def __init__(self, *args):
339  r"""
340  __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file) -> _DopeBase
341  __init__(_DopeBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _DopeBase
342  __init__(_DopeBase self) -> _DopeBase
343  """
344  _IMP_score_functor._DopeBase_swiginit(self, _IMP_score_functor.new__DopeBase(*args))
345 
346  def get_score(self, m, pp, distance):
347  r"""get_score(_DopeBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
348  return _IMP_score_functor._DopeBase_get_score(self, m, pp, distance)
349 
350  def get_score_and_derivative(self, m, pp, distance):
351  r"""get_score_and_derivative(_DopeBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
352  return _IMP_score_functor._DopeBase_get_score_and_derivative(self, m, pp, distance)
353 
354  def get_maximum_range(self, arg2, arg3):
355  r"""get_maximum_range(_DopeBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
356  return _IMP_score_functor._DopeBase_get_maximum_range(self, arg2, arg3)
357 
358  def get_is_trivially_zero(self, m, p, squared_distance):
359  r"""get_is_trivially_zero(_DopeBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
360  return _IMP_score_functor._DopeBase_get_is_trivially_zero(self, m, p, squared_distance)
361  __swig_destroy__ = _IMP_score_functor.delete__DopeBase
362 
363 # Register _DopeBase in _IMP_score_functor:
364 _IMP_score_functor._DopeBase_swigregister(_DopeBase)
365 class _LoopStatisticalBase(Score):
366  r"""Proxy of C++ IMP::score_functor::Statistical< IMP::score_functor::LoopStatisticalType,false,true > class."""
367 
368  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
369  __repr__ = _swig_repr
370 
371  def __init__(self, *args):
372  r"""
373  __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file) -> _LoopStatisticalBase
374  __init__(_LoopStatisticalBase self, IntKey k, double threshold, TextInput data_file, unsigned int shift) -> _LoopStatisticalBase
375  __init__(_LoopStatisticalBase self) -> _LoopStatisticalBase
376  """
377  _IMP_score_functor._LoopStatisticalBase_swiginit(self, _IMP_score_functor.new__LoopStatisticalBase(*args))
378 
379  def get_score(self, m, pp, distance):
380  r"""get_score(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & pp, double distance) -> double"""
381  return _IMP_score_functor._LoopStatisticalBase_get_score(self, m, pp, distance)
382 
383  def get_score_and_derivative(self, m, pp, distance):
384  r"""get_score_and_derivative(_LoopStatisticalBase self, Model m, IMP::Array< 2,IMP::ParticleIndex > const & pp, double distance) -> IMP::DerivativePair"""
385  return _IMP_score_functor._LoopStatisticalBase_get_score_and_derivative(self, m, pp, distance)
386 
387  def get_maximum_range(self, arg2, arg3):
388  r"""get_maximum_range(_LoopStatisticalBase self, Model arg2, IMP::ParticleIndexPair const & arg3) -> double"""
389  return _IMP_score_functor._LoopStatisticalBase_get_maximum_range(self, arg2, arg3)
390 
391  def get_is_trivially_zero(self, m, p, squared_distance):
392  r"""get_is_trivially_zero(_LoopStatisticalBase self, Model m, IMP::ParticleIndexPair const & p, double squared_distance) -> bool"""
393  return _IMP_score_functor._LoopStatisticalBase_get_is_trivially_zero(self, m, p, squared_distance)
394  __swig_destroy__ = _IMP_score_functor.delete__LoopStatisticalBase
395 
396 # Register _LoopStatisticalBase in _IMP_score_functor:
397 _IMP_score_functor._LoopStatisticalBase_swigregister(_LoopStatisticalBase)
398 class Dope(_DopeBase):
399  r"""Proxy of C++ IMP::score_functor::Dope class."""
400 
401  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
402  __repr__ = _swig_repr
403 
404  def __init__(self, *args):
405  r"""
406  __init__(Dope self, double threshold=std::numeric_limits< double >::max()) -> Dope
407  __init__(Dope self, double threshold, TextInput data_file) -> Dope
408  """
409  _IMP_score_functor.Dope_swiginit(self, _IMP_score_functor.new_Dope(*args))
410 
411  @staticmethod
412  def get_dope_type_key():
413  r"""get_dope_type_key() -> IntKey"""
414  return _IMP_score_functor.Dope_get_dope_type_key()
415  __swig_destroy__ = _IMP_score_functor.delete_Dope
416 
417 # Register Dope in _IMP_score_functor:
418 _IMP_score_functor.Dope_swigregister(Dope)
419 class LoopStatistical(_LoopStatisticalBase):
420  r"""Proxy of C++ IMP::score_functor::LoopStatistical class."""
421 
422  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
423  __repr__ = _swig_repr
424 
425  def __init__(self, *args):
426  r"""
427  __init__(LoopStatistical self, double threshold=std::numeric_limits< double >::max()) -> LoopStatistical
428  __init__(LoopStatistical self, double threshold, TextInput data_file) -> LoopStatistical
429  """
430  _IMP_score_functor.LoopStatistical_swiginit(self, _IMP_score_functor.new_LoopStatistical(*args))
431 
432  @staticmethod
433  def get_loop_type_key():
434  r"""get_loop_type_key() -> IntKey"""
435  return _IMP_score_functor.LoopStatistical_get_loop_type_key()
436  __swig_destroy__ = _IMP_score_functor.delete_LoopStatistical
437 
438 # Register LoopStatistical in _IMP_score_functor:
439 _IMP_score_functor.LoopStatistical_swigregister(LoopStatistical)
440 class UnaryFunctionEvaluate(Score):
441  r"""Proxy of C++ IMP::score_functor::UnaryFunctionEvaluate class."""
442 
443  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
444  __repr__ = _swig_repr
445 
446  def __init__(self, *args):
447  r"""
448  __init__(UnaryFunctionEvaluate self, UnaryFunction uf) -> UnaryFunctionEvaluate
449  __init__(UnaryFunctionEvaluate self) -> UnaryFunctionEvaluate
450  """
451  _IMP_score_functor.UnaryFunctionEvaluate_swiginit(self, _IMP_score_functor.new_UnaryFunctionEvaluate(*args))
452  __swig_destroy__ = _IMP_score_functor.delete_UnaryFunctionEvaluate
453 
454 # Register UnaryFunctionEvaluate in _IMP_score_functor:
455 _IMP_score_functor.UnaryFunctionEvaluate_swigregister(UnaryFunctionEvaluate)
456 
457 def get_module_version():
458  r"""get_module_version() -> std::string const"""
459  return _IMP_score_functor.get_module_version()
460 
461 def get_example_path(fname):
462  r"""get_example_path(std::string fname) -> std::string"""
463  return _IMP_score_functor.get_example_path(fname)
464 
465 def get_data_path(fname):
466  r"""get_data_path(std::string fname) -> std::string"""
467  return _IMP_score_functor.get_data_path(fname)
468 
469 from . import _version_check
470 _version_check.check_version(get_module_version())
471 __version__ = get_module_version()
472 
473 
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.
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...