IMP logo
IMP Reference Guide  develop.345e71cb9a,2026/08/10
The Integrative Modeling Platform
score_functor/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.5.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-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 import typing
15 import _IMP_score_functor
16 
17 import builtins as __builtin__
18 
19 def _swig_repr(self):
20  try:
21  strthis = "proxy of " + self.this.__repr__()
22  except __builtin__.Exception:
23  strthis = ""
24  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
25 
26 
27 def _swig_setattr_nondynamic_instance_variable(set):
28  def set_instance_attr(self, name, value):
29  if name == "this":
30  set(self, name, value)
31  elif name == "thisown":
32  self.this.own(value)
33  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
34  set(self, name, value)
35  else:
36  raise AttributeError("You cannot add instance attributes to %s" % self)
37  return set_instance_attr
38 
39 
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):
43  set(cls, name, value)
44  else:
45  raise AttributeError("You cannot add class attributes to %s" % cls)
46  return set_class_attr
47 
48 
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__)
52 
53 
54 import weakref
55 
56 class IMP_SCORE_FUNCTOR_SwigPyIterator(object):
57  r"""Proxy of C++ swig::IMP_SCORE_FUNCTOR_SwigPyIterator class."""
58 
59  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
60 
61  def __init__(self, *args, **kwargs):
62  raise AttributeError("No constructor defined - class is abstract")
63  __repr__ = _swig_repr
64  __swig_destroy__ = _IMP_score_functor.delete_IMP_SCORE_FUNCTOR_SwigPyIterator
65 
66  def value(self):
67  r"""value(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
68  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_value(self)
69 
70  def incr(self, n=1):
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)
73 
74  def decr(self, n=1):
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)
77 
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)
81 
82  def equal(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)
85 
86  def copy(self):
87  r"""copy(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> IMP_SCORE_FUNCTOR_SwigPyIterator"""
88  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_copy(self)
89 
90  def __next__(self):
91  r"""__next__(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
92  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___next__(self)
93 
94  def previous(self):
95  r"""previous(IMP_SCORE_FUNCTOR_SwigPyIterator self) -> PyObject *"""
96  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_previous(self)
97 
98  def advance(self, n):
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)
101 
102  def __eq__(self, x):
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)
105 
106  def __ne__(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)
109 
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)
113 
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)
117 
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)
121 
122  def __sub__(self, *args):
123  r"""
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
126  """
127  return _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator___sub__(self, *args)
128  def __iter__(self):
129  return self
130 
131 # Register IMP_SCORE_FUNCTOR_SwigPyIterator in _IMP_score_functor:
132 _IMP_score_functor.IMP_SCORE_FUNCTOR_SwigPyIterator_swigregister(IMP_SCORE_FUNCTOR_SwigPyIterator)
133 
134 _value_types=[]
135 _object_types=[]
136 _raii_types=[]
137 _plural_types=[]
138 
139 IMP_DEBUG = _IMP_score_functor.IMP_DEBUG
140 
141 IMP_RELEASE = _IMP_score_functor.IMP_RELEASE
142 
143 IMP_SILENT = _IMP_score_functor.IMP_SILENT
144 
145 IMP_PROGRESS = _IMP_score_functor.IMP_PROGRESS
146 
147 IMP_TERSE = _IMP_score_functor.IMP_TERSE
148 
149 IMP_VERBOSE = _IMP_score_functor.IMP_VERBOSE
150 
151 IMP_MEMORY = _IMP_score_functor.IMP_MEMORY
152 
153 IMP_NONE = _IMP_score_functor.IMP_NONE
154 
155 IMP_USAGE = _IMP_score_functor.IMP_USAGE
156 
157 IMP_INTERNAL = _IMP_score_functor.IMP_INTERNAL
158 
159 IMP_KERNEL_HAS_LOG4CXX = _IMP_score_functor.IMP_KERNEL_HAS_LOG4CXX
160 
161 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_score_functor.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
162 
163 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_score_functor.IMP_COMPILER_HAS_DEBUG_VECTOR
164 
165 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_score_functor.IMP_COMPILER_HAS_RANDOM_SHUFFLE
166 
167 IMP_COMPILER_HAS_THREE_WAY = _IMP_score_functor.IMP_COMPILER_HAS_THREE_WAY
168 
169 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_RANDOM
170 
171 IMP_KERNEL_HAS_NUMPY = _IMP_score_functor.IMP_KERNEL_HAS_NUMPY
172 
173 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_score_functor.IMP_KERNEL_HAS_BOOST_SYSTEM
174 
175 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_score_functor.IMP_KERNEL_HAS_GPERFTOOLS
176 
177 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
178 
179 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_score_functor.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
180 
181 IMPKERNEL_SHOW_WARNINGS = _IMP_score_functor.IMPKERNEL_SHOW_WARNINGS
182 
183 
184 import sys
185 class _DirectorObjects:
186  """@internal Simple class to keep references to director objects
187  to prevent premature deletion."""
188  def __init__(self):
189  self._objects = []
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)
195  def cleanup(self):
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]
202 # Do in two steps so the references are kept until the end of the
203 # function (deleting references may trigger a fresh call to this method)
204  self._objects = objs
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()
209 
210 class _ostream(object):
211  r"""Proxy of C++ std::ostream class."""
212 
213  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
214 
215  def __init__(self, *args, **kwargs):
216  raise AttributeError("No constructor defined")
217  __repr__ = _swig_repr
218 
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)
222 
223 # Register _ostream in _IMP_score_functor:
224 _IMP_score_functor._ostream_swigregister(_ostream)
225 IMP_C_OPEN_BINARY = _IMP_score_functor.IMP_C_OPEN_BINARY
226 
227 import IMP
228 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_FILESYSTEM
229 
230 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
231 
232 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_CGAL_HAS_BOOST_RANDOM
233 
234 IMP_CGAL_HAS_NUMPY = _IMP_score_functor.IMP_CGAL_HAS_NUMPY
235 
236 IMPCGAL_SHOW_WARNINGS = _IMP_score_functor.IMPCGAL_SHOW_WARNINGS
237 
238 import IMP.cgal
239 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_IMP_CGAL
240 
241 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
242 
243 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_ALGEBRA_HAS_BOOST_RANDOM
246 
247 IMP_ALGEBRA_HAS_CGAL = _IMP_score_functor.IMP_ALGEBRA_HAS_CGAL
248 
249 IMP_ALGEBRA_HAS_NUMPY = _IMP_score_functor.IMP_ALGEBRA_HAS_NUMPY
250 
251 IMP_ALGEBRA_HAS_ANN = _IMP_score_functor.IMP_ALGEBRA_HAS_ANN
252 
253 IMPALGEBRA_SHOW_WARNINGS = _IMP_score_functor.IMPALGEBRA_SHOW_WARNINGS
254 
255 import IMP.algebra
256 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
257 
258 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
259 
260 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
261 
262 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
263 
264 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_CGAL
265 
266 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_HDF5
267 
268 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_score_functor.IMP_SCORE_FUNCTOR_HAS_NUMPY
269 
270 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_score_functor.IMPSCOREFUNCTOR_SHOW_WARNINGS
271 
272 class Score(object):
273  r"""Proxy of C++ IMP::score_functor::Score class."""
274 
275  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
276  __repr__ = _swig_repr
277 
278  def __init__(self):
279  r"""__init__(Score self) -> Score"""
280  _IMP_score_functor.Score_swiginit(self, _IMP_score_functor.new_Score())
281 
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)
285 
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
290 
291 # Register Score in _IMP_score_functor:
292 _IMP_score_functor.Score_swigregister(Score)
293 class ScoreWithCache(object):
294  r"""Proxy of C++ IMP::score_functor::ScoreWithCache class."""
295 
296  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
297  __repr__ = _swig_repr
298 
299  def __init__(self):
300  r"""__init__(ScoreWithCache self) -> ScoreWithCache"""
301  _IMP_score_functor.ScoreWithCache_swiginit(self, _IMP_score_functor.new_ScoreWithCache())
302 
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)
306 
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
311 
312 # Register ScoreWithCache in _IMP_score_functor:
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."""
316 
317  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
318  __repr__ = _swig_repr
319 
320  def __init__(self, *args):
321  r"""
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
325  """
326  _IMP_score_functor._DopeBase_swiginit(self, _IMP_score_functor.new__DopeBase(*args))
327 
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)
331 
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)
335 
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)
339 
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)
343 
344  def get_offset(self):
345  r"""get_offset(_DopeBase self) -> double"""
346  return _IMP_score_functor._DopeBase_get_offset(self)
347 
348  def get_threshold(self):
349  r"""get_threshold(_DopeBase self) -> double"""
350  return _IMP_score_functor._DopeBase_get_threshold(self)
351 
352  def get_max(self):
353  r"""get_max(_DopeBase self) -> double"""
354  return _IMP_score_functor._DopeBase_get_max(self)
355 
356  def get_spacing(self):
357  r"""get_spacing(_DopeBase self) -> double"""
358  return _IMP_score_functor._DopeBase_get_spacing(self)
359 
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)
363 
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)
367 
368  def get_is_bipartite(self):
369  r"""get_is_bipartite(_DopeBase self) -> bool"""
370  return _IMP_score_functor._DopeBase_get_is_bipartite(self)
371 
372  def get_is_interpolated(self):
373  r"""get_is_interpolated(_DopeBase self) -> bool"""
374  return _IMP_score_functor._DopeBase_get_is_interpolated(self)
375 
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
380 
381 # Register _DopeBase in _IMP_score_functor:
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."""
385 
386  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
387  __repr__ = _swig_repr
388 
389  def __init__(self, *args):
390  r"""
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
394  """
395  _IMP_score_functor._LoopStatisticalBase_swiginit(self, _IMP_score_functor.new__LoopStatisticalBase(*args))
396 
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)
400 
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)
404 
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)
408 
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)
412 
413  def get_offset(self):
414  r"""get_offset(_LoopStatisticalBase self) -> double"""
415  return _IMP_score_functor._LoopStatisticalBase_get_offset(self)
416 
417  def get_threshold(self):
418  r"""get_threshold(_LoopStatisticalBase self) -> double"""
419  return _IMP_score_functor._LoopStatisticalBase_get_threshold(self)
420 
421  def get_max(self):
422  r"""get_max(_LoopStatisticalBase self) -> double"""
423  return _IMP_score_functor._LoopStatisticalBase_get_max(self)
424 
425  def get_spacing(self):
426  r"""get_spacing(_LoopStatisticalBase self) -> double"""
427  return _IMP_score_functor._LoopStatisticalBase_get_spacing(self)
428 
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)
432 
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)
436 
437  def get_is_bipartite(self):
438  r"""get_is_bipartite(_LoopStatisticalBase self) -> bool"""
439  return _IMP_score_functor._LoopStatisticalBase_get_is_bipartite(self)
440 
441  def get_is_interpolated(self):
442  r"""get_is_interpolated(_LoopStatisticalBase self) -> bool"""
443  return _IMP_score_functor._LoopStatisticalBase_get_is_interpolated(self)
444 
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
449 
450 # Register _LoopStatisticalBase in _IMP_score_functor:
451 _IMP_score_functor._LoopStatisticalBase_swigregister(_LoopStatisticalBase)
452 class Dope(_DopeBase):
453  r"""Proxy of C++ IMP::score_functor::Dope class."""
454 
455  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
456  __repr__ = _swig_repr
457 
458  def __init__(self, *args):
459  r"""
460  __init__(Dope self, double threshold=std::numeric_limits< double >::max()) -> Dope
461  __init__(Dope self, double threshold, TextInput data_file) -> Dope
462  """
463  _IMP_score_functor.Dope_swiginit(self, _IMP_score_functor.new_Dope(*args))
464 
465  @staticmethod
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
470 
471 # Register Dope in _IMP_score_functor:
472 _IMP_score_functor.Dope_swigregister(Dope)
473 class LoopStatistical(_LoopStatisticalBase):
474  r"""Proxy of C++ IMP::score_functor::LoopStatistical class."""
475 
476  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
477  __repr__ = _swig_repr
478 
479  def __init__(self, *args):
480  r"""
481  __init__(LoopStatistical self, double threshold=std::numeric_limits< double >::max()) -> LoopStatistical
482  __init__(LoopStatistical self, double threshold, TextInput data_file) -> LoopStatistical
483  """
484  _IMP_score_functor.LoopStatistical_swiginit(self, _IMP_score_functor.new_LoopStatistical(*args))
485 
486  @staticmethod
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
491 
492 # Register LoopStatistical in _IMP_score_functor:
493 _IMP_score_functor.LoopStatistical_swigregister(LoopStatistical)
494 class UnaryFunctionEvaluate(Score):
495  r"""Proxy of C++ IMP::score_functor::UnaryFunctionEvaluate class."""
496 
497  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
498  __repr__ = _swig_repr
499 
500  def __init__(self, *args):
501  r"""
502  __init__(UnaryFunctionEvaluate self, UnaryFunction uf) -> UnaryFunctionEvaluate
503  __init__(UnaryFunctionEvaluate self) -> UnaryFunctionEvaluate
504  """
505  _IMP_score_functor.UnaryFunctionEvaluate_swiginit(self, _IMP_score_functor.new_UnaryFunctionEvaluate(*args))
506 
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
511 
512 # Register UnaryFunctionEvaluate in _IMP_score_functor:
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."""
516 
517  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
518  __repr__ = _swig_repr
519 
520  def __init__(self, *args):
521  r"""
522  __init__(_SphereDistanceUF self, UnaryFunctionEvaluate base) -> _SphereDistanceUF
523  __init__(_SphereDistanceUF self) -> _SphereDistanceUF
524  """
525  _IMP_score_functor._SphereDistanceUF_swiginit(self, _IMP_score_functor.new__SphereDistanceUF(*args))
526 
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)
530 
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)
534 
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)
538 
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
543 
544 # Register _SphereDistanceUF in _IMP_score_functor:
545 _IMP_score_functor._SphereDistanceUF_swigregister(_SphereDistanceUF)
546 
547 def get_module_name():
548  r"""get_module_name() -> std::string const"""
549  return _IMP_score_functor.get_module_name()
550 
551 def get_module_version():
552  r"""get_module_version() -> std::string const"""
553  return _IMP_score_functor.get_module_version()
554 
555 def get_example_path(fname):
556  r"""get_example_path(std::string fname) -> std::string"""
557  return _IMP_score_functor.get_example_path(fname)
558 
559 def get_data_path(fname):
560  r"""get_data_path(std::string fname) -> std::string"""
561  return _IMP_score_functor.get_data_path(fname)
562 
563 from . import _version_check
564 _version_check.check_version(get_module_version())
565 __version__ = get_module_version()
566 
567 
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...