IMP logo
IMP Reference Guide  2.23.0
The Integrative Modeling Platform
npc/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.1
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-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_npc
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_NPC_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_NPC_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_npc.delete_IMP_NPC_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_NPC_SwigPyIterator self) -> PyObject *"""
78  return _IMP_npc.IMP_NPC_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
82  return _IMP_npc.IMP_NPC_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
86  return _IMP_npc.IMP_NPC_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_npc.IMP_NPC_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
94  return _IMP_npc.IMP_NPC_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator"""
98  return _IMP_npc.IMP_NPC_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_NPC_SwigPyIterator self) -> PyObject *"""
102  return _IMP_npc.IMP_NPC_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_NPC_SwigPyIterator self) -> PyObject *"""
106  return _IMP_npc.IMP_NPC_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_NPC_SwigPyIterator self) -> PyObject *"""
110  return _IMP_npc.IMP_NPC_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
114  return _IMP_npc.IMP_NPC_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
118  return _IMP_npc.IMP_NPC_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
122  return _IMP_npc.IMP_NPC_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
126  return _IMP_npc.IMP_NPC_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
130  return _IMP_npc.IMP_NPC_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
134  return _IMP_npc.IMP_NPC_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator
139  __sub__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_npc.IMP_NPC_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_NPC_SwigPyIterator in _IMP_npc:
146 _IMP_npc.IMP_NPC_SwigPyIterator_swigregister(IMP_NPC_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_npc.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_npc.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_npc.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_npc.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_npc.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_npc.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_npc.IMP_MEMORY
166 
167 IMP_NONE = _IMP_npc.IMP_NONE
168 
169 IMP_USAGE = _IMP_npc.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_npc.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_npc.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_npc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_npc.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_npc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_npc.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_npc.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_npc.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_npc.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_npc.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_npc._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_npc:
236 _IMP_npc._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_npc.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_npc.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_SYSTEM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_npc.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_npc.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_npc.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_npc.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_npc.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_npc.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_npc.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_npc.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_npc.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_npc.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_CORE_HAS_IMP_CGAL = _IMP_npc.IMP_CORE_HAS_IMP_CGAL
309 
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_npc.IMP_CORE_HAS_IMP_KERNEL
311 
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_FILESYSTEM
313 
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
315 
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_npc.IMP_CORE_HAS_BOOST_RANDOM
317 
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_SYSTEM
319 
320 IMP_CORE_HAS_CGAL = _IMP_npc.IMP_CORE_HAS_CGAL
321 
322 IMP_CORE_HAS_HDF5 = _IMP_npc.IMP_CORE_HAS_HDF5
323 
324 IMP_CORE_HAS_NUMPY = _IMP_npc.IMP_CORE_HAS_NUMPY
325 
326 IMPCORE_SHOW_WARNINGS = _IMP_npc.IMPCORE_SHOW_WARNINGS
327 
328 import IMP.core
329 IMP_NPC_HAS_IMP_ALGEBRA = _IMP_npc.IMP_NPC_HAS_IMP_ALGEBRA
330 
331 IMP_NPC_HAS_IMP_CGAL = _IMP_npc.IMP_NPC_HAS_IMP_CGAL
332 
333 IMP_NPC_HAS_IMP_DISPLAY = _IMP_npc.IMP_NPC_HAS_IMP_DISPLAY
334 
335 IMP_NPC_HAS_IMP_KERNEL = _IMP_npc.IMP_NPC_HAS_IMP_KERNEL
336 
337 IMP_NPC_HAS_IMP_SCORE_FUNCTOR = _IMP_npc.IMP_NPC_HAS_IMP_SCORE_FUNCTOR
338 
339 IMP_NPC_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_FILESYSTEM
340 
341 IMP_NPC_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_NPC_HAS_BOOST_PROGRAMOPTIONS
342 
343 IMP_NPC_HAS_BOOST_RANDOM = _IMP_npc.IMP_NPC_HAS_BOOST_RANDOM
344 
345 IMP_NPC_HAS_BOOST_SYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_SYSTEM
346 
347 IMP_NPC_HAS_CGAL = _IMP_npc.IMP_NPC_HAS_CGAL
348 
349 IMP_NPC_HAS_HDF5 = _IMP_npc.IMP_NPC_HAS_HDF5
350 
351 IMP_NPC_HAS_NUMPY = _IMP_npc.IMP_NPC_HAS_NUMPY
352 
353 IMP_NPC_HAS_PYTHON_IHM = _IMP_npc.IMP_NPC_HAS_PYTHON_IHM
354 
355 IMPNPC_SHOW_WARNINGS = _IMP_npc.IMPNPC_SHOW_WARNINGS
356 
357 
358 _object_types.append("ZAxialPositionLowerRestraint")
359 
360 
361 def _object_cast_to_ZAxialPositionLowerRestraint(o):
362  r"""_object_cast_to_ZAxialPositionLowerRestraint(Object o) -> ZAxialPositionLowerRestraint"""
363  return _IMP_npc._object_cast_to_ZAxialPositionLowerRestraint(o)
364 
365 _object_types.append("ZAxialPositionUpperRestraint")
366 
367 
368 def _object_cast_to_ZAxialPositionUpperRestraint(o):
369  r"""_object_cast_to_ZAxialPositionUpperRestraint(Object o) -> ZAxialPositionUpperRestraint"""
370  return _IMP_npc._object_cast_to_ZAxialPositionUpperRestraint(o)
371 
372 _object_types.append("XYRadialPositionLowerRestraint")
373 
374 
375 def _object_cast_to_XYRadialPositionLowerRestraint(o):
376  r"""_object_cast_to_XYRadialPositionLowerRestraint(Object o) -> XYRadialPositionLowerRestraint"""
377  return _IMP_npc._object_cast_to_XYRadialPositionLowerRestraint(o)
378 
379 _object_types.append("XYRadialPositionUpperRestraint")
380 
381 
382 def _object_cast_to_XYRadialPositionUpperRestraint(o):
383  r"""_object_cast_to_XYRadialPositionUpperRestraint(Object o) -> XYRadialPositionUpperRestraint"""
384  return _IMP_npc._object_cast_to_XYRadialPositionUpperRestraint(o)
385 
386 _object_types.append("ProteinContactRestraint")
387 
388 
389 def _object_cast_to_ProteinContactRestraint(o):
390  r"""_object_cast_to_ProteinContactRestraint(Object o) -> ProteinContactRestraint"""
391  return _IMP_npc._object_cast_to_ProteinContactRestraint(o)
392 
393 _object_types.append("ProteinChainRestraint")
394 
395 
396 def _object_cast_to_ProteinChainRestraint(o):
397  r"""_object_cast_to_ProteinChainRestraint(Object o) -> ProteinChainRestraint"""
398  return _IMP_npc._object_cast_to_ProteinChainRestraint(o)
399 
400 _object_types.append("MembraneSurfaceLocationRestraint")
401 
402 
403 def _object_cast_to_MembraneSurfaceLocationRestraint(o):
404  r"""_object_cast_to_MembraneSurfaceLocationRestraint(Object o) -> MembraneSurfaceLocationRestraint"""
405  return _IMP_npc._object_cast_to_MembraneSurfaceLocationRestraint(o)
406 
407 _object_types.append("PoreSideVolumeLocationRestraint")
408 
409 
410 def _object_cast_to_PoreSideVolumeLocationRestraint(o):
411  r"""_object_cast_to_PoreSideVolumeLocationRestraint(Object o) -> PoreSideVolumeLocationRestraint"""
412  return _IMP_npc._object_cast_to_PoreSideVolumeLocationRestraint(o)
413 
414 _object_types.append("PerinuclearVolumeLocationRestraint")
415 
416 
417 def _object_cast_to_PerinuclearVolumeLocationRestraint(o):
418  r"""_object_cast_to_PerinuclearVolumeLocationRestraint(Object o) -> PerinuclearVolumeLocationRestraint"""
419  return _IMP_npc._object_cast_to_PerinuclearVolumeLocationRestraint(o)
420 
421 _object_types.append("AssemblySymmetryByDistanceRestraint")
422 
423 
424 def _object_cast_to_AssemblySymmetryByDistanceRestraint(o):
425  r"""_object_cast_to_AssemblySymmetryByDistanceRestraint(Object o) -> AssemblySymmetryByDistanceRestraint"""
426  return _IMP_npc._object_cast_to_AssemblySymmetryByDistanceRestraint(o)
427 
428 _object_types.append("AssemblySymmetryByDihedralRestraint")
429 
430 
431 def _object_cast_to_AssemblySymmetryByDihedralRestraint(o):
432  r"""_object_cast_to_AssemblySymmetryByDihedralRestraint(Object o) -> AssemblySymmetryByDihedralRestraint"""
433  return _IMP_npc._object_cast_to_AssemblySymmetryByDihedralRestraint(o)
434 
435 _object_types.append("ProteinProximityRestraint")
436 
437 
438 def _object_cast_to_ProteinProximityRestraint(o):
439  r"""_object_cast_to_ProteinProximityRestraint(Object o) -> ProteinProximityRestraint"""
440  return _IMP_npc._object_cast_to_ProteinProximityRestraint(o)
441 
442 _object_types.append("CompositeRestraint")
443 
444 
445 def _object_cast_to_CompositeRestraint(o):
446  r"""_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
447  return _IMP_npc._object_cast_to_CompositeRestraint(o)
448 
449 _object_types.append("MinimumSphereDistancePairScore")
450 
451 
452 def _object_cast_to_MinimumSphereDistancePairScore(o):
453  r"""_object_cast_to_MinimumSphereDistancePairScore(Object o) -> MinimumSphereDistancePairScore"""
454  return _IMP_npc._object_cast_to_MinimumSphereDistancePairScore(o)
455 
456 _object_types.append("MembraneExclusionRestraint")
457 
458 
459 def _object_cast_to_MembraneExclusionRestraint(o):
460  r"""_object_cast_to_MembraneExclusionRestraint(Object o) -> MembraneExclusionRestraint"""
461  return _IMP_npc._object_cast_to_MembraneExclusionRestraint(o)
462 
463 _object_types.append("MembraneSurfaceLocationConditionalRestraint")
464 
465 
466 def _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o):
467  r"""_object_cast_to_MembraneSurfaceLocationConditionalRestraint(Object o) -> MembraneSurfaceLocationConditionalRestraint"""
468  return _IMP_npc._object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
469 
470 _object_types.append("XYRadialPositionRestraint")
471 
472 
473 def _object_cast_to_XYRadialPositionRestraint(o):
474  r"""_object_cast_to_XYRadialPositionRestraint(Object o) -> XYRadialPositionRestraint"""
475  return _IMP_npc._object_cast_to_XYRadialPositionRestraint(o)
476 
477 _object_types.append("YAxialPositionLowerRestraint")
478 
479 
480 def _object_cast_to_YAxialPositionLowerRestraint(o):
481  r"""_object_cast_to_YAxialPositionLowerRestraint(Object o) -> YAxialPositionLowerRestraint"""
482  return _IMP_npc._object_cast_to_YAxialPositionLowerRestraint(o)
483 
484 _object_types.append("YAxialPositionRestraint")
485 
486 
487 def _object_cast_to_YAxialPositionRestraint(o):
488  r"""_object_cast_to_YAxialPositionRestraint(Object o) -> YAxialPositionRestraint"""
489  return _IMP_npc._object_cast_to_YAxialPositionRestraint(o)
490 
491 _object_types.append("YAxialPositionUpperRestraint")
492 
493 
494 def _object_cast_to_YAxialPositionUpperRestraint(o):
495  r"""_object_cast_to_YAxialPositionUpperRestraint(Object o) -> YAxialPositionUpperRestraint"""
496  return _IMP_npc._object_cast_to_YAxialPositionUpperRestraint(o)
497 
498 _object_types.append("ZAxialPositionRestraint")
499 
500 
501 def _object_cast_to_ZAxialPositionRestraint(o):
502  r"""_object_cast_to_ZAxialPositionRestraint(Object o) -> ZAxialPositionRestraint"""
503  return _IMP_npc._object_cast_to_ZAxialPositionRestraint(o)
504 
505 _object_types.append("XAxialPositionLowerRestraint")
506 
507 
508 def _object_cast_to_XAxialPositionLowerRestraint(o):
509  r"""_object_cast_to_XAxialPositionLowerRestraint(Object o) -> XAxialPositionLowerRestraint"""
510  return _IMP_npc._object_cast_to_XAxialPositionLowerRestraint(o)
511 
512 _object_types.append("XAxialPositionRestraint")
513 
514 
515 def _object_cast_to_XAxialPositionRestraint(o):
516  r"""_object_cast_to_XAxialPositionRestraint(Object o) -> XAxialPositionRestraint"""
517  return _IMP_npc._object_cast_to_XAxialPositionRestraint(o)
518 
519 _object_types.append("XAxialPositionUpperRestraint")
520 
521 
522 def _object_cast_to_XAxialPositionUpperRestraint(o):
523  r"""_object_cast_to_XAxialPositionUpperRestraint(Object o) -> XAxialPositionUpperRestraint"""
524  return _IMP_npc._object_cast_to_XAxialPositionUpperRestraint(o)
525 
526 _object_types.append("OverallPositionRestraint")
527 
528 
529 def _object_cast_to_OverallPositionRestraint(o):
530  r"""_object_cast_to_OverallPositionRestraint(Object o) -> OverallPositionRestraint"""
531  return _IMP_npc._object_cast_to_OverallPositionRestraint(o)
532 
533 def SlabWithSphericalIndents(l=[]):
534  return [SlabWithSphericalIndent(x) for x in l]
535 _plural_types.append("SlabWithSphericalIndents")
536 
537 
538 _value_types.append("SlabWithSphericalIndent")
539 
540 
541 _object_types.append("SlabWithSphericalIndentMBMScore")
542 
543 
544 def _object_cast_to_SlabWithSphericalIndentMBMScore(o):
545  r"""_object_cast_to_SlabWithSphericalIndentMBMScore(Object o) -> SlabWithSphericalIndentMBMScore"""
546  return _IMP_npc._object_cast_to_SlabWithSphericalIndentMBMScore(o)
547 
548 _object_types.append("SlabWithSphericalIndentGeometry")
549 
550 
551 def _object_cast_to_SlabWithSphericalIndentGeometry(o):
552  r"""_object_cast_to_SlabWithSphericalIndentGeometry(Object o) -> SlabWithSphericalIndentGeometry"""
553  return _IMP_npc._object_cast_to_SlabWithSphericalIndentGeometry(o)
554 
555 _object_types.append("SphericalIndentSurfaceDepthPairScore")
556 
557 
558 def _object_cast_to_SphericalIndentSurfaceDepthPairScore(o):
559  r"""_object_cast_to_SphericalIndentSurfaceDepthPairScore(Object o) -> SphericalIndentSurfaceDepthPairScore"""
560  return _IMP_npc._object_cast_to_SphericalIndentSurfaceDepthPairScore(o)
561 
562 _object_types.append("SlabWithToroidalPoreMBMScore")
563 
564 
565 def _object_cast_to_SlabWithToroidalPoreMBMScore(o):
566  r"""_object_cast_to_SlabWithToroidalPoreMBMScore(Object o) -> SlabWithToroidalPoreMBMScore"""
567  return _IMP_npc._object_cast_to_SlabWithToroidalPoreMBMScore(o)
568 
569 _object_types.append("SlabWithToroidalPoreGoPairScore")
570 
571 
572 def _object_cast_to_SlabWithToroidalPoreGoPairScore(o):
573  r"""_object_cast_to_SlabWithToroidalPoreGoPairScore(Object o) -> SlabWithToroidalPoreGoPairScore"""
574  return _IMP_npc._object_cast_to_SlabWithToroidalPoreGoPairScore(o)
575 
576 _object_types.append("ToroidalPoreSurfaceDepthPairScore")
577 
578 
579 def _object_cast_to_ToroidalPoreSurfaceDepthPairScore(o):
580  r"""_object_cast_to_ToroidalPoreSurfaceDepthPairScore(Object o) -> ToroidalPoreSurfaceDepthPairScore"""
581  return _IMP_npc._object_cast_to_ToroidalPoreSurfaceDepthPairScore(o)
582 
583 def SlabWithPores(l=[]):
584  return [SlabWithPore(x) for x in l]
585 _plural_types.append("SlabWithPores")
586 
587 
588 _value_types.append("SlabWithPore")
589 
590 
591 def SlabWithToroidalPores(l=[]):
592  return [SlabWithToroidalPore(x) for x in l]
593 _plural_types.append("SlabWithToroidalPores")
594 
595 
596 _value_types.append("SlabWithToroidalPore")
597 
598 
599 _object_types.append("SlabWithToroidalPoreWireGeometry")
600 
601 
602 def _object_cast_to_SlabWithToroidalPoreWireGeometry(o):
603  r"""_object_cast_to_SlabWithToroidalPoreWireGeometry(Object o) -> SlabWithToroidalPoreWireGeometry"""
604  return _IMP_npc._object_cast_to_SlabWithToroidalPoreWireGeometry(o)
605 class ZAxialPositionRestraint(IMP.Restraint):
606  r"""Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
607 
608  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
609 
610  def __init__(self, *args):
611  r"""
612  __init__(ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
613  __init__(ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
614  __init__(ZAxialPositionRestraint self) -> ZAxialPositionRestraint
615  """
616  _IMP_npc.ZAxialPositionRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionRestraint(*args))
617 
618  def add_particle(self, p):
619  r"""add_particle(ZAxialPositionRestraint self, Particle p)"""
620  return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
621 
622  def add_particles(self, ps):
623  r"""add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
624  return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
625 
626  def set_particles(self, ps):
627  r"""set_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
628  return _IMP_npc.ZAxialPositionRestraint_set_particles(self, ps)
629 
630  def do_get_inputs(self):
631  r"""do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
632  return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
633 
634  def get_version_info(self):
635  r"""get_version_info(ZAxialPositionRestraint self) -> VersionInfo"""
636  return _IMP_npc.ZAxialPositionRestraint_get_version_info(self)
637  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionRestraint
638 
639  def __str__(self):
640  r"""__str__(ZAxialPositionRestraint self) -> std::string"""
641  return _IMP_npc.ZAxialPositionRestraint___str__(self)
642 
643  def __repr__(self):
644  r"""__repr__(ZAxialPositionRestraint self) -> std::string"""
645  return _IMP_npc.ZAxialPositionRestraint___repr__(self)
646 
647  @staticmethod
648  def get_from(o):
649  return _object_cast_to_ZAxialPositionRestraint(o)
650 
651 
652  def _get_as_binary(self):
653  r"""_get_as_binary(ZAxialPositionRestraint self) -> PyObject *"""
654  return _IMP_npc.ZAxialPositionRestraint__get_as_binary(self)
655 
656  def _set_from_binary(self, p):
657  r"""_set_from_binary(ZAxialPositionRestraint self, PyObject * p)"""
658  return _IMP_npc.ZAxialPositionRestraint__set_from_binary(self, p)
659 
660  def __getstate__(self):
661  p = self._get_as_binary()
662  if len(self.__dict__) > 1:
663  d = self.__dict__.copy()
664  del d['this']
665  p = (d, p)
666  return p
667 
668  def __setstate__(self, p):
669  if not hasattr(self, 'this'):
670  self.__init__()
671  if isinstance(p, tuple):
672  d, p = p
673  self.__dict__.update(d)
674  return self._set_from_binary(p)
675 
676 
677 # Register ZAxialPositionRestraint in _IMP_npc:
678 _IMP_npc.ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
679 class ZAxialPositionLowerRestraint(IMP.Restraint):
680  r"""Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
681 
682  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
683 
684  def __init__(self, *args):
685  r"""
686  __init__(ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
687  __init__(ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
688  __init__(ZAxialPositionLowerRestraint self) -> ZAxialPositionLowerRestraint
689  """
690  _IMP_npc.ZAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionLowerRestraint(*args))
691 
692  def add_particle(self, p):
693  r"""add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
694  return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
695 
696  def add_particles(self, ps):
697  r"""add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
698  return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
699 
700  def set_particles(self, ps):
701  r"""set_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
702  return _IMP_npc.ZAxialPositionLowerRestraint_set_particles(self, ps)
703 
704  def do_get_inputs(self):
705  r"""do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
706  return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
707 
708  def get_version_info(self):
709  r"""get_version_info(ZAxialPositionLowerRestraint self) -> VersionInfo"""
710  return _IMP_npc.ZAxialPositionLowerRestraint_get_version_info(self)
711  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionLowerRestraint
712 
713  def __str__(self):
714  r"""__str__(ZAxialPositionLowerRestraint self) -> std::string"""
715  return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
716 
717  def __repr__(self):
718  r"""__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
719  return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
720 
721  @staticmethod
722  def get_from(o):
723  return _object_cast_to_ZAxialPositionLowerRestraint(o)
724 
725 
726  def _get_as_binary(self):
727  r"""_get_as_binary(ZAxialPositionLowerRestraint self) -> PyObject *"""
728  return _IMP_npc.ZAxialPositionLowerRestraint__get_as_binary(self)
729 
730  def _set_from_binary(self, p):
731  r"""_set_from_binary(ZAxialPositionLowerRestraint self, PyObject * p)"""
732  return _IMP_npc.ZAxialPositionLowerRestraint__set_from_binary(self, p)
733 
734  def __getstate__(self):
735  p = self._get_as_binary()
736  if len(self.__dict__) > 1:
737  d = self.__dict__.copy()
738  del d['this']
739  p = (d, p)
740  return p
741 
742  def __setstate__(self, p):
743  if not hasattr(self, 'this'):
744  self.__init__()
745  if isinstance(p, tuple):
746  d, p = p
747  self.__dict__.update(d)
748  return self._set_from_binary(p)
749 
750 
751 # Register ZAxialPositionLowerRestraint in _IMP_npc:
752 _IMP_npc.ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
753 class ZAxialPositionUpperRestraint(IMP.Restraint):
754  r"""Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
755 
756  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
757 
758  def __init__(self, *args):
759  r"""
760  __init__(ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
761  __init__(ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
762  __init__(ZAxialPositionUpperRestraint self) -> ZAxialPositionUpperRestraint
763  """
764  _IMP_npc.ZAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionUpperRestraint(*args))
765 
766  def add_particle(self, p):
767  r"""add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
768  return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
769 
770  def add_particles(self, ps):
771  r"""add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
772  return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
773 
774  def set_particles(self, ps):
775  r"""set_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
776  return _IMP_npc.ZAxialPositionUpperRestraint_set_particles(self, ps)
777 
778  def do_get_inputs(self):
779  r"""do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
780  return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
781 
782  def get_version_info(self):
783  r"""get_version_info(ZAxialPositionUpperRestraint self) -> VersionInfo"""
784  return _IMP_npc.ZAxialPositionUpperRestraint_get_version_info(self)
785  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionUpperRestraint
786 
787  def __str__(self):
788  r"""__str__(ZAxialPositionUpperRestraint self) -> std::string"""
789  return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
790 
791  def __repr__(self):
792  r"""__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
793  return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
794 
795  @staticmethod
796  def get_from(o):
797  return _object_cast_to_ZAxialPositionUpperRestraint(o)
798 
799 
800  def _get_as_binary(self):
801  r"""_get_as_binary(ZAxialPositionUpperRestraint self) -> PyObject *"""
802  return _IMP_npc.ZAxialPositionUpperRestraint__get_as_binary(self)
803 
804  def _set_from_binary(self, p):
805  r"""_set_from_binary(ZAxialPositionUpperRestraint self, PyObject * p)"""
806  return _IMP_npc.ZAxialPositionUpperRestraint__set_from_binary(self, p)
807 
808  def __getstate__(self):
809  p = self._get_as_binary()
810  if len(self.__dict__) > 1:
811  d = self.__dict__.copy()
812  del d['this']
813  p = (d, p)
814  return p
815 
816  def __setstate__(self, p):
817  if not hasattr(self, 'this'):
818  self.__init__()
819  if isinstance(p, tuple):
820  d, p = p
821  self.__dict__.update(d)
822  return self._set_from_binary(p)
823 
824 
825 # Register ZAxialPositionUpperRestraint in _IMP_npc:
826 _IMP_npc.ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
827 class YAxialPositionRestraint(IMP.Restraint):
828  r"""Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
829 
830  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
831 
832  def __init__(self, *args):
833  r"""
834  __init__(YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
835  __init__(YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
836  __init__(YAxialPositionRestraint self) -> YAxialPositionRestraint
837  """
838  _IMP_npc.YAxialPositionRestraint_swiginit(self, _IMP_npc.new_YAxialPositionRestraint(*args))
839 
840  def add_particle(self, p):
841  r"""add_particle(YAxialPositionRestraint self, Particle p)"""
842  return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
843 
844  def add_particles(self, ps):
845  r"""add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
846  return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
847 
848  def set_particles(self, ps):
849  r"""set_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
850  return _IMP_npc.YAxialPositionRestraint_set_particles(self, ps)
851 
852  def do_get_inputs(self):
853  r"""do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
854  return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
855 
856  def get_version_info(self):
857  r"""get_version_info(YAxialPositionRestraint self) -> VersionInfo"""
858  return _IMP_npc.YAxialPositionRestraint_get_version_info(self)
859  __swig_destroy__ = _IMP_npc.delete_YAxialPositionRestraint
860 
861  def __str__(self):
862  r"""__str__(YAxialPositionRestraint self) -> std::string"""
863  return _IMP_npc.YAxialPositionRestraint___str__(self)
864 
865  def __repr__(self):
866  r"""__repr__(YAxialPositionRestraint self) -> std::string"""
867  return _IMP_npc.YAxialPositionRestraint___repr__(self)
868 
869  @staticmethod
870  def get_from(o):
871  return _object_cast_to_YAxialPositionRestraint(o)
872 
873 
874  def _get_as_binary(self):
875  r"""_get_as_binary(YAxialPositionRestraint self) -> PyObject *"""
876  return _IMP_npc.YAxialPositionRestraint__get_as_binary(self)
877 
878  def _set_from_binary(self, p):
879  r"""_set_from_binary(YAxialPositionRestraint self, PyObject * p)"""
880  return _IMP_npc.YAxialPositionRestraint__set_from_binary(self, p)
881 
882  def __getstate__(self):
883  p = self._get_as_binary()
884  if len(self.__dict__) > 1:
885  d = self.__dict__.copy()
886  del d['this']
887  p = (d, p)
888  return p
889 
890  def __setstate__(self, p):
891  if not hasattr(self, 'this'):
892  self.__init__()
893  if isinstance(p, tuple):
894  d, p = p
895  self.__dict__.update(d)
896  return self._set_from_binary(p)
897 
898 
899 # Register YAxialPositionRestraint in _IMP_npc:
900 _IMP_npc.YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
901 class YAxialPositionLowerRestraint(IMP.Restraint):
902  r"""Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
903 
904  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
905 
906  def __init__(self, *args):
907  r"""
908  __init__(YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
909  __init__(YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
910  __init__(YAxialPositionLowerRestraint self) -> YAxialPositionLowerRestraint
911  """
912  _IMP_npc.YAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_YAxialPositionLowerRestraint(*args))
913 
914  def add_particle(self, p):
915  r"""add_particle(YAxialPositionLowerRestraint self, Particle p)"""
916  return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
917 
918  def add_particles(self, ps):
919  r"""add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
920  return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
921 
922  def set_particles(self, ps):
923  r"""set_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
924  return _IMP_npc.YAxialPositionLowerRestraint_set_particles(self, ps)
925 
926  def do_get_inputs(self):
927  r"""do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
928  return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
929 
930  def get_version_info(self):
931  r"""get_version_info(YAxialPositionLowerRestraint self) -> VersionInfo"""
932  return _IMP_npc.YAxialPositionLowerRestraint_get_version_info(self)
933  __swig_destroy__ = _IMP_npc.delete_YAxialPositionLowerRestraint
934 
935  def __str__(self):
936  r"""__str__(YAxialPositionLowerRestraint self) -> std::string"""
937  return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
938 
939  def __repr__(self):
940  r"""__repr__(YAxialPositionLowerRestraint self) -> std::string"""
941  return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
942 
943  @staticmethod
944  def get_from(o):
945  return _object_cast_to_YAxialPositionLowerRestraint(o)
946 
947 
948  def _get_as_binary(self):
949  r"""_get_as_binary(YAxialPositionLowerRestraint self) -> PyObject *"""
950  return _IMP_npc.YAxialPositionLowerRestraint__get_as_binary(self)
951 
952  def _set_from_binary(self, p):
953  r"""_set_from_binary(YAxialPositionLowerRestraint self, PyObject * p)"""
954  return _IMP_npc.YAxialPositionLowerRestraint__set_from_binary(self, p)
955 
956  def __getstate__(self):
957  p = self._get_as_binary()
958  if len(self.__dict__) > 1:
959  d = self.__dict__.copy()
960  del d['this']
961  p = (d, p)
962  return p
963 
964  def __setstate__(self, p):
965  if not hasattr(self, 'this'):
966  self.__init__()
967  if isinstance(p, tuple):
968  d, p = p
969  self.__dict__.update(d)
970  return self._set_from_binary(p)
971 
972 
973 # Register YAxialPositionLowerRestraint in _IMP_npc:
974 _IMP_npc.YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
975 class YAxialPositionUpperRestraint(IMP.Restraint):
976  r"""Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
977 
978  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
979 
980  def __init__(self, *args):
981  r"""
982  __init__(YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
983  __init__(YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
984  __init__(YAxialPositionUpperRestraint self) -> YAxialPositionUpperRestraint
985  """
986  _IMP_npc.YAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_YAxialPositionUpperRestraint(*args))
987 
988  def add_particle(self, p):
989  r"""add_particle(YAxialPositionUpperRestraint self, Particle p)"""
990  return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
991 
992  def add_particles(self, ps):
993  r"""add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
994  return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
995 
996  def set_particles(self, ps):
997  r"""set_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
998  return _IMP_npc.YAxialPositionUpperRestraint_set_particles(self, ps)
999 
1000  def do_get_inputs(self):
1001  r"""do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1002  return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
1003 
1004  def get_version_info(self):
1005  r"""get_version_info(YAxialPositionUpperRestraint self) -> VersionInfo"""
1006  return _IMP_npc.YAxialPositionUpperRestraint_get_version_info(self)
1007  __swig_destroy__ = _IMP_npc.delete_YAxialPositionUpperRestraint
1008 
1009  def __str__(self):
1010  r"""__str__(YAxialPositionUpperRestraint self) -> std::string"""
1011  return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
1012 
1013  def __repr__(self):
1014  r"""__repr__(YAxialPositionUpperRestraint self) -> std::string"""
1015  return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
1016 
1017  @staticmethod
1018  def get_from(o):
1019  return _object_cast_to_YAxialPositionUpperRestraint(o)
1020 
1021 
1022  def _get_as_binary(self):
1023  r"""_get_as_binary(YAxialPositionUpperRestraint self) -> PyObject *"""
1024  return _IMP_npc.YAxialPositionUpperRestraint__get_as_binary(self)
1025 
1026  def _set_from_binary(self, p):
1027  r"""_set_from_binary(YAxialPositionUpperRestraint self, PyObject * p)"""
1028  return _IMP_npc.YAxialPositionUpperRestraint__set_from_binary(self, p)
1029 
1030  def __getstate__(self):
1031  p = self._get_as_binary()
1032  if len(self.__dict__) > 1:
1033  d = self.__dict__.copy()
1034  del d['this']
1035  p = (d, p)
1036  return p
1037 
1038  def __setstate__(self, p):
1039  if not hasattr(self, 'this'):
1040  self.__init__()
1041  if isinstance(p, tuple):
1042  d, p = p
1043  self.__dict__.update(d)
1044  return self._set_from_binary(p)
1045 
1046 
1047 # Register YAxialPositionUpperRestraint in _IMP_npc:
1048 _IMP_npc.YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
1049 class XYRadialPositionRestraint(IMP.Restraint):
1050  r"""Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
1051 
1052  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1053 
1054  def __init__(self, *args):
1055  r"""
1056  __init__(XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
1057  __init__(XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
1058  __init__(XYRadialPositionRestraint self) -> XYRadialPositionRestraint
1059  """
1060  _IMP_npc.XYRadialPositionRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionRestraint(*args))
1061 
1062  def add_particle(self, p):
1063  r"""add_particle(XYRadialPositionRestraint self, Particle p)"""
1064  return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
1065 
1066  def add_particles(self, ps):
1067  r"""add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
1068  return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
1069 
1070  def set_particles(self, ps):
1071  r"""set_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
1072  return _IMP_npc.XYRadialPositionRestraint_set_particles(self, ps)
1073 
1074  def do_get_inputs(self):
1075  r"""do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
1076  return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
1077 
1078  def get_version_info(self):
1079  r"""get_version_info(XYRadialPositionRestraint self) -> VersionInfo"""
1080  return _IMP_npc.XYRadialPositionRestraint_get_version_info(self)
1081  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionRestraint
1082 
1083  def __str__(self):
1084  r"""__str__(XYRadialPositionRestraint self) -> std::string"""
1085  return _IMP_npc.XYRadialPositionRestraint___str__(self)
1086 
1087  def __repr__(self):
1088  r"""__repr__(XYRadialPositionRestraint self) -> std::string"""
1089  return _IMP_npc.XYRadialPositionRestraint___repr__(self)
1090 
1091  @staticmethod
1092  def get_from(o):
1093  return _object_cast_to_XYRadialPositionRestraint(o)
1094 
1095 
1096  def _get_as_binary(self):
1097  r"""_get_as_binary(XYRadialPositionRestraint self) -> PyObject *"""
1098  return _IMP_npc.XYRadialPositionRestraint__get_as_binary(self)
1099 
1100  def _set_from_binary(self, p):
1101  r"""_set_from_binary(XYRadialPositionRestraint self, PyObject * p)"""
1102  return _IMP_npc.XYRadialPositionRestraint__set_from_binary(self, p)
1103 
1104  def __getstate__(self):
1105  p = self._get_as_binary()
1106  if len(self.__dict__) > 1:
1107  d = self.__dict__.copy()
1108  del d['this']
1109  p = (d, p)
1110  return p
1111 
1112  def __setstate__(self, p):
1113  if not hasattr(self, 'this'):
1114  self.__init__()
1115  if isinstance(p, tuple):
1116  d, p = p
1117  self.__dict__.update(d)
1118  return self._set_from_binary(p)
1119 
1120 
1121 # Register XYRadialPositionRestraint in _IMP_npc:
1122 _IMP_npc.XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
1123 class XYRadialPositionLowerRestraint(IMP.Restraint):
1124  r"""Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
1125 
1126  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1127 
1128  def __init__(self, *args):
1129  r"""
1130  __init__(XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1131  __init__(XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1132  __init__(XYRadialPositionLowerRestraint self) -> XYRadialPositionLowerRestraint
1133  """
1134  _IMP_npc.XYRadialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionLowerRestraint(*args))
1135 
1136  def add_particle(self, p):
1137  r"""add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
1138  return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
1139 
1140  def add_particles(self, ps):
1141  r"""add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1142  return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
1143 
1144  def set_particles(self, ps):
1145  r"""set_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1146  return _IMP_npc.XYRadialPositionLowerRestraint_set_particles(self, ps)
1147 
1148  def do_get_inputs(self):
1149  r"""do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
1150  return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
1151 
1152  def get_version_info(self):
1153  r"""get_version_info(XYRadialPositionLowerRestraint self) -> VersionInfo"""
1154  return _IMP_npc.XYRadialPositionLowerRestraint_get_version_info(self)
1155  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionLowerRestraint
1156 
1157  def __str__(self):
1158  r"""__str__(XYRadialPositionLowerRestraint self) -> std::string"""
1159  return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
1160 
1161  def __repr__(self):
1162  r"""__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
1163  return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
1164 
1165  @staticmethod
1166  def get_from(o):
1167  return _object_cast_to_XYRadialPositionLowerRestraint(o)
1168 
1169 
1170  def _get_as_binary(self):
1171  r"""_get_as_binary(XYRadialPositionLowerRestraint self) -> PyObject *"""
1172  return _IMP_npc.XYRadialPositionLowerRestraint__get_as_binary(self)
1173 
1174  def _set_from_binary(self, p):
1175  r"""_set_from_binary(XYRadialPositionLowerRestraint self, PyObject * p)"""
1176  return _IMP_npc.XYRadialPositionLowerRestraint__set_from_binary(self, p)
1177 
1178  def __getstate__(self):
1179  p = self._get_as_binary()
1180  if len(self.__dict__) > 1:
1181  d = self.__dict__.copy()
1182  del d['this']
1183  p = (d, p)
1184  return p
1185 
1186  def __setstate__(self, p):
1187  if not hasattr(self, 'this'):
1188  self.__init__()
1189  if isinstance(p, tuple):
1190  d, p = p
1191  self.__dict__.update(d)
1192  return self._set_from_binary(p)
1193 
1194 
1195 # Register XYRadialPositionLowerRestraint in _IMP_npc:
1196 _IMP_npc.XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
1197 class XYRadialPositionUpperRestraint(IMP.Restraint):
1198  r"""Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
1199 
1200  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1201 
1202  def __init__(self, *args):
1203  r"""
1204  __init__(XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1205  __init__(XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1206  __init__(XYRadialPositionUpperRestraint self) -> XYRadialPositionUpperRestraint
1207  """
1208  _IMP_npc.XYRadialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionUpperRestraint(*args))
1209 
1210  def add_particle(self, p):
1211  r"""add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
1212  return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
1213 
1214  def add_particles(self, ps):
1215  r"""add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1216  return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
1217 
1218  def set_particles(self, ps):
1219  r"""set_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1220  return _IMP_npc.XYRadialPositionUpperRestraint_set_particles(self, ps)
1221 
1222  def do_get_inputs(self):
1223  r"""do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1224  return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
1225 
1226  def get_version_info(self):
1227  r"""get_version_info(XYRadialPositionUpperRestraint self) -> VersionInfo"""
1228  return _IMP_npc.XYRadialPositionUpperRestraint_get_version_info(self)
1229  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionUpperRestraint
1230 
1231  def __str__(self):
1232  r"""__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1233  return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1234 
1235  def __repr__(self):
1236  r"""__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1237  return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1238 
1239  @staticmethod
1240  def get_from(o):
1241  return _object_cast_to_XYRadialPositionUpperRestraint(o)
1242 
1243 
1244  def _get_as_binary(self):
1245  r"""_get_as_binary(XYRadialPositionUpperRestraint self) -> PyObject *"""
1246  return _IMP_npc.XYRadialPositionUpperRestraint__get_as_binary(self)
1247 
1248  def _set_from_binary(self, p):
1249  r"""_set_from_binary(XYRadialPositionUpperRestraint self, PyObject * p)"""
1250  return _IMP_npc.XYRadialPositionUpperRestraint__set_from_binary(self, p)
1251 
1252  def __getstate__(self):
1253  p = self._get_as_binary()
1254  if len(self.__dict__) > 1:
1255  d = self.__dict__.copy()
1256  del d['this']
1257  p = (d, p)
1258  return p
1259 
1260  def __setstate__(self, p):
1261  if not hasattr(self, 'this'):
1262  self.__init__()
1263  if isinstance(p, tuple):
1264  d, p = p
1265  self.__dict__.update(d)
1266  return self._set_from_binary(p)
1267 
1268 
1269 # Register XYRadialPositionUpperRestraint in _IMP_npc:
1270 _IMP_npc.XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1271 class ProteinContactRestraint(IMP.Restraint):
1272  r"""Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1273 
1274  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1275 
1276  def __init__(self, *args):
1277  r"""
1278  __init__(ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1279  __init__(ProteinContactRestraint self, Model m, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1280  __init__(ProteinContactRestraint self) -> ProteinContactRestraint
1281  """
1282  _IMP_npc.ProteinContactRestraint_swiginit(self, _IMP_npc.new_ProteinContactRestraint(*args))
1283 
1284  def add_particle(self, p):
1285  r"""add_particle(ProteinContactRestraint self, Particle p)"""
1286  return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1287 
1288  def add_particles(self, ps):
1289  r"""add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1290  return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
1291 
1292  def set_particles(self, ps):
1293  r"""set_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1294  return _IMP_npc.ProteinContactRestraint_set_particles(self, ps)
1295 
1296  def do_get_inputs(self):
1297  r"""do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1298  return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
1299 
1300  def get_version_info(self):
1301  r"""get_version_info(ProteinContactRestraint self) -> VersionInfo"""
1302  return _IMP_npc.ProteinContactRestraint_get_version_info(self)
1303  __swig_destroy__ = _IMP_npc.delete_ProteinContactRestraint
1304 
1305  def __str__(self):
1306  r"""__str__(ProteinContactRestraint self) -> std::string"""
1307  return _IMP_npc.ProteinContactRestraint___str__(self)
1308 
1309  def __repr__(self):
1310  r"""__repr__(ProteinContactRestraint self) -> std::string"""
1311  return _IMP_npc.ProteinContactRestraint___repr__(self)
1312 
1313  @staticmethod
1314  def get_from(o):
1315  return _object_cast_to_ProteinContactRestraint(o)
1316 
1317 
1318  def _get_as_binary(self):
1319  r"""_get_as_binary(ProteinContactRestraint self) -> PyObject *"""
1320  return _IMP_npc.ProteinContactRestraint__get_as_binary(self)
1321 
1322  def _set_from_binary(self, p):
1323  r"""_set_from_binary(ProteinContactRestraint self, PyObject * p)"""
1324  return _IMP_npc.ProteinContactRestraint__set_from_binary(self, p)
1325 
1326  def __getstate__(self):
1327  p = self._get_as_binary()
1328  if len(self.__dict__) > 1:
1329  d = self.__dict__.copy()
1330  del d['this']
1331  p = (d, p)
1332  return p
1333 
1334  def __setstate__(self, p):
1335  if not hasattr(self, 'this'):
1336  self.__init__()
1337  if isinstance(p, tuple):
1338  d, p = p
1339  self.__dict__.update(d)
1340  return self._set_from_binary(p)
1341 
1342 
1343 # Register ProteinContactRestraint in _IMP_npc:
1344 _IMP_npc.ProteinContactRestraint_swigregister(ProteinContactRestraint)
1345 class ProteinChainRestraint(IMP.Restraint):
1346  r"""Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1347 
1348  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1349 
1350  def __init__(self, *args):
1351  r"""
1352  __init__(ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> ProteinChainRestraint
1353  __init__(ProteinChainRestraint self, Model m, double sigma=0.1) -> ProteinChainRestraint
1354  __init__(ProteinChainRestraint self) -> ProteinChainRestraint
1355  """
1356  _IMP_npc.ProteinChainRestraint_swiginit(self, _IMP_npc.new_ProteinChainRestraint(*args))
1357 
1358  def add_particle(self, p):
1359  r"""add_particle(ProteinChainRestraint self, Particle p)"""
1360  return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1361 
1362  def add_particles(self, ps):
1363  r"""add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1364  return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
1365 
1366  def set_particles(self, ps):
1367  r"""set_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1368  return _IMP_npc.ProteinChainRestraint_set_particles(self, ps)
1369 
1370  def do_get_inputs(self):
1371  r"""do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1372  return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
1373 
1374  def get_version_info(self):
1375  r"""get_version_info(ProteinChainRestraint self) -> VersionInfo"""
1376  return _IMP_npc.ProteinChainRestraint_get_version_info(self)
1377  __swig_destroy__ = _IMP_npc.delete_ProteinChainRestraint
1378 
1379  def __str__(self):
1380  r"""__str__(ProteinChainRestraint self) -> std::string"""
1381  return _IMP_npc.ProteinChainRestraint___str__(self)
1382 
1383  def __repr__(self):
1384  r"""__repr__(ProteinChainRestraint self) -> std::string"""
1385  return _IMP_npc.ProteinChainRestraint___repr__(self)
1386 
1387  @staticmethod
1388  def get_from(o):
1389  return _object_cast_to_ProteinChainRestraint(o)
1390 
1391 
1392  def _get_as_binary(self):
1393  r"""_get_as_binary(ProteinChainRestraint self) -> PyObject *"""
1394  return _IMP_npc.ProteinChainRestraint__get_as_binary(self)
1395 
1396  def _set_from_binary(self, p):
1397  r"""_set_from_binary(ProteinChainRestraint self, PyObject * p)"""
1398  return _IMP_npc.ProteinChainRestraint__set_from_binary(self, p)
1399 
1400  def __getstate__(self):
1401  p = self._get_as_binary()
1402  if len(self.__dict__) > 1:
1403  d = self.__dict__.copy()
1404  del d['this']
1405  p = (d, p)
1406  return p
1407 
1408  def __setstate__(self, p):
1409  if not hasattr(self, 'this'):
1410  self.__init__()
1411  if isinstance(p, tuple):
1412  d, p = p
1413  self.__dict__.update(d)
1414  return self._set_from_binary(p)
1415 
1416 
1417 # Register ProteinChainRestraint in _IMP_npc:
1418 _IMP_npc.ProteinChainRestraint_swigregister(ProteinChainRestraint)
1419 class MembraneSurfaceLocationRestraint(IMP.Restraint):
1420  r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1421 
1422  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1423 
1424  def __init__(self, *args):
1425  r"""
1426  __init__(MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1427  __init__(MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1428  __init__(MembraneSurfaceLocationRestraint self) -> MembraneSurfaceLocationRestraint
1429  """
1430  _IMP_npc.MembraneSurfaceLocationRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationRestraint(*args))
1431 
1432  def add_particle(self, p):
1433  r"""add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1434  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1435 
1436  def add_particles(self, ps):
1437  r"""add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1438  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
1439 
1440  def set_particles(self, ps):
1441  r"""set_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1442  return _IMP_npc.MembraneSurfaceLocationRestraint_set_particles(self, ps)
1443 
1444  def do_get_inputs(self):
1445  r"""do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1446  return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
1447 
1448  def get_version_info(self):
1449  r"""get_version_info(MembraneSurfaceLocationRestraint self) -> VersionInfo"""
1450  return _IMP_npc.MembraneSurfaceLocationRestraint_get_version_info(self)
1451  __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationRestraint
1452 
1453  def __str__(self):
1454  r"""__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1455  return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1456 
1457  def __repr__(self):
1458  r"""__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1459  return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1460 
1461  @staticmethod
1462  def get_from(o):
1463  return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1464 
1465 
1466  def _get_as_binary(self):
1467  r"""_get_as_binary(MembraneSurfaceLocationRestraint self) -> PyObject *"""
1468  return _IMP_npc.MembraneSurfaceLocationRestraint__get_as_binary(self)
1469 
1470  def _set_from_binary(self, p):
1471  r"""_set_from_binary(MembraneSurfaceLocationRestraint self, PyObject * p)"""
1472  return _IMP_npc.MembraneSurfaceLocationRestraint__set_from_binary(self, p)
1473 
1474  def __getstate__(self):
1475  p = self._get_as_binary()
1476  if len(self.__dict__) > 1:
1477  d = self.__dict__.copy()
1478  del d['this']
1479  p = (d, p)
1480  return p
1481 
1482  def __setstate__(self, p):
1483  if not hasattr(self, 'this'):
1484  self.__init__()
1485  if isinstance(p, tuple):
1486  d, p = p
1487  self.__dict__.update(d)
1488  return self._set_from_binary(p)
1489 
1490 
1491 # Register MembraneSurfaceLocationRestraint in _IMP_npc:
1492 _IMP_npc.MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1493 class MembraneSurfaceLocationConditionalRestraint(IMP.Restraint):
1494  r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1495 
1496  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1497 
1498  def __init__(self, *args):
1499  r"""
1500  __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1501  __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1502  __init__(MembraneSurfaceLocationConditionalRestraint self) -> MembraneSurfaceLocationConditionalRestraint
1503  """
1504  _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args))
1505 
1506  def add_particle1(self, p):
1507  r"""add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1508  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1509 
1510  def add_particle2(self, p):
1511  r"""add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1512  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
1513 
1514  def add_particles1(self, ps):
1515  r"""add_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1516  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles1(self, ps)
1517 
1518  def add_particles2(self, ps):
1519  r"""add_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1520  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles2(self, ps)
1521 
1522  def set_particles1(self, ps):
1523  r"""set_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1524  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles1(self, ps)
1525 
1526  def set_particles2(self, ps):
1527  r"""set_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1528  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles2(self, ps)
1529 
1530  def do_get_inputs(self):
1531  r"""do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1532  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
1533 
1534  def get_version_info(self):
1535  r"""get_version_info(MembraneSurfaceLocationConditionalRestraint self) -> VersionInfo"""
1536  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_get_version_info(self)
1537  __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationConditionalRestraint
1538 
1539  def __str__(self):
1540  r"""__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1541  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1542 
1543  def __repr__(self):
1544  r"""__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1545  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1546 
1547  @staticmethod
1548  def get_from(o):
1549  return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1550 
1551 
1552  def _get_as_binary(self):
1553  r"""_get_as_binary(MembraneSurfaceLocationConditionalRestraint self) -> PyObject *"""
1554  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__get_as_binary(self)
1555 
1556  def _set_from_binary(self, p):
1557  r"""_set_from_binary(MembraneSurfaceLocationConditionalRestraint self, PyObject * p)"""
1558  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__set_from_binary(self, p)
1559 
1560  def __getstate__(self):
1561  p = self._get_as_binary()
1562  if len(self.__dict__) > 1:
1563  d = self.__dict__.copy()
1564  del d['this']
1565  p = (d, p)
1566  return p
1567 
1568  def __setstate__(self, p):
1569  if not hasattr(self, 'this'):
1570  self.__init__()
1571  if isinstance(p, tuple):
1572  d, p = p
1573  self.__dict__.update(d)
1574  return self._set_from_binary(p)
1575 
1576 
1577 # Register MembraneSurfaceLocationConditionalRestraint in _IMP_npc:
1578 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1579 class MembraneExclusionRestraint(IMP.Restraint):
1580  r"""Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1581 
1582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1583 
1584  def __init__(self, *args):
1585  r"""
1586  __init__(MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1587  __init__(MembraneExclusionRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1588  __init__(MembraneExclusionRestraint self) -> MembraneExclusionRestraint
1589  """
1590  _IMP_npc.MembraneExclusionRestraint_swiginit(self, _IMP_npc.new_MembraneExclusionRestraint(*args))
1591 
1592  def add_particle(self, p):
1593  r"""add_particle(MembraneExclusionRestraint self, Particle p)"""
1594  return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1595 
1596  def add_particles(self, ps):
1597  r"""add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1598  return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
1599 
1600  def set_particles(self, ps):
1601  r"""set_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1602  return _IMP_npc.MembraneExclusionRestraint_set_particles(self, ps)
1603 
1604  def do_get_inputs(self):
1605  r"""do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1606  return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
1607 
1608  def get_version_info(self):
1609  r"""get_version_info(MembraneExclusionRestraint self) -> VersionInfo"""
1610  return _IMP_npc.MembraneExclusionRestraint_get_version_info(self)
1611  __swig_destroy__ = _IMP_npc.delete_MembraneExclusionRestraint
1612 
1613  def __str__(self):
1614  r"""__str__(MembraneExclusionRestraint self) -> std::string"""
1615  return _IMP_npc.MembraneExclusionRestraint___str__(self)
1616 
1617  def __repr__(self):
1618  r"""__repr__(MembraneExclusionRestraint self) -> std::string"""
1619  return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1620 
1621  @staticmethod
1622  def get_from(o):
1623  return _object_cast_to_MembraneExclusionRestraint(o)
1624 
1625 
1626  def _get_as_binary(self):
1627  r"""_get_as_binary(MembraneExclusionRestraint self) -> PyObject *"""
1628  return _IMP_npc.MembraneExclusionRestraint__get_as_binary(self)
1629 
1630  def _set_from_binary(self, p):
1631  r"""_set_from_binary(MembraneExclusionRestraint self, PyObject * p)"""
1632  return _IMP_npc.MembraneExclusionRestraint__set_from_binary(self, p)
1633 
1634  def __getstate__(self):
1635  p = self._get_as_binary()
1636  if len(self.__dict__) > 1:
1637  d = self.__dict__.copy()
1638  del d['this']
1639  p = (d, p)
1640  return p
1641 
1642  def __setstate__(self, p):
1643  if not hasattr(self, 'this'):
1644  self.__init__()
1645  if isinstance(p, tuple):
1646  d, p = p
1647  self.__dict__.update(d)
1648  return self._set_from_binary(p)
1649 
1650 
1651 # Register MembraneExclusionRestraint in _IMP_npc:
1652 _IMP_npc.MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1653 class PoreSideVolumeLocationRestraint(IMP.Restraint):
1654  r"""Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1655 
1656  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1657 
1658  def __init__(self, *args):
1659  r"""
1660  __init__(PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1661  __init__(PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1662  __init__(PoreSideVolumeLocationRestraint self) -> PoreSideVolumeLocationRestraint
1663  """
1664  _IMP_npc.PoreSideVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PoreSideVolumeLocationRestraint(*args))
1665 
1666  def add_particle(self, p):
1667  r"""add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1668  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1669 
1670  def add_particles(self, ps):
1671  r"""add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1672  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
1673 
1674  def set_particles(self, ps):
1675  r"""set_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1676  return _IMP_npc.PoreSideVolumeLocationRestraint_set_particles(self, ps)
1677 
1678  def do_get_inputs(self):
1679  r"""do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1680  return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
1681 
1682  def get_version_info(self):
1683  r"""get_version_info(PoreSideVolumeLocationRestraint self) -> VersionInfo"""
1684  return _IMP_npc.PoreSideVolumeLocationRestraint_get_version_info(self)
1685  __swig_destroy__ = _IMP_npc.delete_PoreSideVolumeLocationRestraint
1686 
1687  def __str__(self):
1688  r"""__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1689  return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1690 
1691  def __repr__(self):
1692  r"""__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1693  return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1694 
1695  @staticmethod
1696  def get_from(o):
1697  return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1698 
1699 
1700  def _get_as_binary(self):
1701  r"""_get_as_binary(PoreSideVolumeLocationRestraint self) -> PyObject *"""
1702  return _IMP_npc.PoreSideVolumeLocationRestraint__get_as_binary(self)
1703 
1704  def _set_from_binary(self, p):
1705  r"""_set_from_binary(PoreSideVolumeLocationRestraint self, PyObject * p)"""
1706  return _IMP_npc.PoreSideVolumeLocationRestraint__set_from_binary(self, p)
1707 
1708  def __getstate__(self):
1709  p = self._get_as_binary()
1710  if len(self.__dict__) > 1:
1711  d = self.__dict__.copy()
1712  del d['this']
1713  p = (d, p)
1714  return p
1715 
1716  def __setstate__(self, p):
1717  if not hasattr(self, 'this'):
1718  self.__init__()
1719  if isinstance(p, tuple):
1720  d, p = p
1721  self.__dict__.update(d)
1722  return self._set_from_binary(p)
1723 
1724 
1725 # Register PoreSideVolumeLocationRestraint in _IMP_npc:
1726 _IMP_npc.PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1727 class PerinuclearVolumeLocationRestraint(IMP.Restraint):
1728  r"""Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1729 
1730  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1731 
1732  def __init__(self, *args):
1733  r"""
1734  __init__(PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1735  __init__(PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1736  __init__(PerinuclearVolumeLocationRestraint self) -> PerinuclearVolumeLocationRestraint
1737  """
1738  _IMP_npc.PerinuclearVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args))
1739 
1740  def add_particle(self, p):
1741  r"""add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1742  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1743 
1744  def add_particles(self, ps):
1745  r"""add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1746  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
1747 
1748  def set_particles(self, ps):
1749  r"""set_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1750  return _IMP_npc.PerinuclearVolumeLocationRestraint_set_particles(self, ps)
1751 
1752  def do_get_inputs(self):
1753  r"""do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1754  return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
1755 
1756  def get_version_info(self):
1757  r"""get_version_info(PerinuclearVolumeLocationRestraint self) -> VersionInfo"""
1758  return _IMP_npc.PerinuclearVolumeLocationRestraint_get_version_info(self)
1759  __swig_destroy__ = _IMP_npc.delete_PerinuclearVolumeLocationRestraint
1760 
1761  def __str__(self):
1762  r"""__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1763  return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1764 
1765  def __repr__(self):
1766  r"""__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1767  return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1768 
1769  @staticmethod
1770  def get_from(o):
1771  return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1772 
1773 
1774  def _get_as_binary(self):
1775  r"""_get_as_binary(PerinuclearVolumeLocationRestraint self) -> PyObject *"""
1776  return _IMP_npc.PerinuclearVolumeLocationRestraint__get_as_binary(self)
1777 
1778  def _set_from_binary(self, p):
1779  r"""_set_from_binary(PerinuclearVolumeLocationRestraint self, PyObject * p)"""
1780  return _IMP_npc.PerinuclearVolumeLocationRestraint__set_from_binary(self, p)
1781 
1782  def __getstate__(self):
1783  p = self._get_as_binary()
1784  if len(self.__dict__) > 1:
1785  d = self.__dict__.copy()
1786  del d['this']
1787  p = (d, p)
1788  return p
1789 
1790  def __setstate__(self, p):
1791  if not hasattr(self, 'this'):
1792  self.__init__()
1793  if isinstance(p, tuple):
1794  d, p = p
1795  self.__dict__.update(d)
1796  return self._set_from_binary(p)
1797 
1798 
1799 # Register PerinuclearVolumeLocationRestraint in _IMP_npc:
1800 _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1801 class AssemblySymmetryByDistanceRestraint(IMP.Restraint):
1802  r"""Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1803 
1804  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1805 
1806  def __init__(self, *args):
1807  r"""
1808  __init__(AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1809  __init__(AssemblySymmetryByDistanceRestraint self, Model m, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1810  __init__(AssemblySymmetryByDistanceRestraint self) -> AssemblySymmetryByDistanceRestraint
1811  """
1812  _IMP_npc.AssemblySymmetryByDistanceRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args))
1813 
1814  def add_particle(self, p):
1815  r"""add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1816  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1817 
1818  def add_particles(self, ps):
1819  r"""add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1820  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
1821 
1822  def set_particles(self, ps):
1823  r"""set_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1824  return _IMP_npc.AssemblySymmetryByDistanceRestraint_set_particles(self, ps)
1825 
1826  def do_get_inputs(self):
1827  r"""do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1828  return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
1829 
1830  def get_version_info(self):
1831  r"""get_version_info(AssemblySymmetryByDistanceRestraint self) -> VersionInfo"""
1832  return _IMP_npc.AssemblySymmetryByDistanceRestraint_get_version_info(self)
1833  __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDistanceRestraint
1834 
1835  def __str__(self):
1836  r"""__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1837  return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1838 
1839  def __repr__(self):
1840  r"""__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1841  return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1842 
1843  @staticmethod
1844  def get_from(o):
1845  return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1846 
1847 
1848  def _get_as_binary(self):
1849  r"""_get_as_binary(AssemblySymmetryByDistanceRestraint self) -> PyObject *"""
1850  return _IMP_npc.AssemblySymmetryByDistanceRestraint__get_as_binary(self)
1851 
1852  def _set_from_binary(self, p):
1853  r"""_set_from_binary(AssemblySymmetryByDistanceRestraint self, PyObject * p)"""
1854  return _IMP_npc.AssemblySymmetryByDistanceRestraint__set_from_binary(self, p)
1855 
1856  def __getstate__(self):
1857  p = self._get_as_binary()
1858  if len(self.__dict__) > 1:
1859  d = self.__dict__.copy()
1860  del d['this']
1861  p = (d, p)
1862  return p
1863 
1864  def __setstate__(self, p):
1865  if not hasattr(self, 'this'):
1866  self.__init__()
1867  if isinstance(p, tuple):
1868  d, p = p
1869  self.__dict__.update(d)
1870  return self._set_from_binary(p)
1871 
1872 
1873 # Register AssemblySymmetryByDistanceRestraint in _IMP_npc:
1874 _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1875 class AssemblySymmetryByDihedralRestraint(IMP.Restraint):
1876  r"""Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1877 
1878  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1879 
1880  def __init__(self, *args):
1881  r"""
1882  __init__(AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1883  __init__(AssemblySymmetryByDihedralRestraint self, Model m, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1884  __init__(AssemblySymmetryByDihedralRestraint self) -> AssemblySymmetryByDihedralRestraint
1885  """
1886  _IMP_npc.AssemblySymmetryByDihedralRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args))
1887 
1888  def add_particle(self, p):
1889  r"""add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1890  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1891 
1892  def add_particles(self, ps):
1893  r"""add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1894  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
1895 
1896  def set_particles(self, ps):
1897  r"""set_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1898  return _IMP_npc.AssemblySymmetryByDihedralRestraint_set_particles(self, ps)
1899 
1900  def do_get_inputs(self):
1901  r"""do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1902  return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
1903 
1904  def get_version_info(self):
1905  r"""get_version_info(AssemblySymmetryByDihedralRestraint self) -> VersionInfo"""
1906  return _IMP_npc.AssemblySymmetryByDihedralRestraint_get_version_info(self)
1907  __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDihedralRestraint
1908 
1909  def __str__(self):
1910  r"""__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1911  return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1912 
1913  def __repr__(self):
1914  r"""__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1915  return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1916 
1917  @staticmethod
1918  def get_from(o):
1919  return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1920 
1921 
1922  def _get_as_binary(self):
1923  r"""_get_as_binary(AssemblySymmetryByDihedralRestraint self) -> PyObject *"""
1924  return _IMP_npc.AssemblySymmetryByDihedralRestraint__get_as_binary(self)
1925 
1926  def _set_from_binary(self, p):
1927  r"""_set_from_binary(AssemblySymmetryByDihedralRestraint self, PyObject * p)"""
1928  return _IMP_npc.AssemblySymmetryByDihedralRestraint__set_from_binary(self, p)
1929 
1930  def __getstate__(self):
1931  p = self._get_as_binary()
1932  if len(self.__dict__) > 1:
1933  d = self.__dict__.copy()
1934  del d['this']
1935  p = (d, p)
1936  return p
1937 
1938  def __setstate__(self, p):
1939  if not hasattr(self, 'this'):
1940  self.__init__()
1941  if isinstance(p, tuple):
1942  d, p = p
1943  self.__dict__.update(d)
1944  return self._set_from_binary(p)
1945 
1946 
1947 # Register AssemblySymmetryByDihedralRestraint in _IMP_npc:
1948 _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1949 class ProteinProximityRestraint(IMP.Restraint):
1950  r"""Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1951 
1952  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1953 
1954  def __init__(self, *args):
1955  r"""
1956  __init__(ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1957  __init__(ProteinProximityRestraint self, Model m, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1958  __init__(ProteinProximityRestraint self) -> ProteinProximityRestraint
1959  """
1960  _IMP_npc.ProteinProximityRestraint_swiginit(self, _IMP_npc.new_ProteinProximityRestraint(*args))
1961 
1962  def add_particle(self, p):
1963  r"""add_particle(ProteinProximityRestraint self, Particle p)"""
1964  return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1965 
1966  def add_particles(self, ps):
1967  r"""add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1968  return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
1969 
1970  def set_particles(self, ps):
1971  r"""set_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1972  return _IMP_npc.ProteinProximityRestraint_set_particles(self, ps)
1973 
1974  def do_get_inputs(self):
1975  r"""do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1976  return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
1977 
1978  def get_version_info(self):
1979  r"""get_version_info(ProteinProximityRestraint self) -> VersionInfo"""
1980  return _IMP_npc.ProteinProximityRestraint_get_version_info(self)
1981  __swig_destroy__ = _IMP_npc.delete_ProteinProximityRestraint
1982 
1983  def __str__(self):
1984  r"""__str__(ProteinProximityRestraint self) -> std::string"""
1985  return _IMP_npc.ProteinProximityRestraint___str__(self)
1986 
1987  def __repr__(self):
1988  r"""__repr__(ProteinProximityRestraint self) -> std::string"""
1989  return _IMP_npc.ProteinProximityRestraint___repr__(self)
1990 
1991  @staticmethod
1992  def get_from(o):
1993  return _object_cast_to_ProteinProximityRestraint(o)
1994 
1995 
1996  def _get_as_binary(self):
1997  r"""_get_as_binary(ProteinProximityRestraint self) -> PyObject *"""
1998  return _IMP_npc.ProteinProximityRestraint__get_as_binary(self)
1999 
2000  def _set_from_binary(self, p):
2001  r"""_set_from_binary(ProteinProximityRestraint self, PyObject * p)"""
2002  return _IMP_npc.ProteinProximityRestraint__set_from_binary(self, p)
2003 
2004  def __getstate__(self):
2005  p = self._get_as_binary()
2006  if len(self.__dict__) > 1:
2007  d = self.__dict__.copy()
2008  del d['this']
2009  p = (d, p)
2010  return p
2011 
2012  def __setstate__(self, p):
2013  if not hasattr(self, 'this'):
2014  self.__init__()
2015  if isinstance(p, tuple):
2016  d, p = p
2017  self.__dict__.update(d)
2018  return self._set_from_binary(p)
2019 
2020 
2021 # Register ProteinProximityRestraint in _IMP_npc:
2022 _IMP_npc.ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
2023 class XAxialPositionRestraint(IMP.Restraint):
2024  r"""Proxy of C++ IMP::npc::XAxialPositionRestraint class."""
2025 
2026  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2027 
2028  def __init__(self, *args):
2029  r"""
2030  __init__(XAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionRestraint
2031  __init__(XAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionRestraint
2032  __init__(XAxialPositionRestraint self) -> XAxialPositionRestraint
2033  """
2034  _IMP_npc.XAxialPositionRestraint_swiginit(self, _IMP_npc.new_XAxialPositionRestraint(*args))
2035 
2036  def add_particle(self, p):
2037  r"""add_particle(XAxialPositionRestraint self, Particle p)"""
2038  return _IMP_npc.XAxialPositionRestraint_add_particle(self, p)
2039 
2040  def add_particles(self, ps):
2041  r"""add_particles(XAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2042  return _IMP_npc.XAxialPositionRestraint_add_particles(self, ps)
2043 
2044  def set_particles(self, ps):
2045  r"""set_particles(XAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2046  return _IMP_npc.XAxialPositionRestraint_set_particles(self, ps)
2047 
2048  def do_get_inputs(self):
2049  r"""do_get_inputs(XAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
2050  return _IMP_npc.XAxialPositionRestraint_do_get_inputs(self)
2051 
2052  def get_version_info(self):
2053  r"""get_version_info(XAxialPositionRestraint self) -> VersionInfo"""
2054  return _IMP_npc.XAxialPositionRestraint_get_version_info(self)
2055  __swig_destroy__ = _IMP_npc.delete_XAxialPositionRestraint
2056 
2057  def __str__(self):
2058  r"""__str__(XAxialPositionRestraint self) -> std::string"""
2059  return _IMP_npc.XAxialPositionRestraint___str__(self)
2060 
2061  def __repr__(self):
2062  r"""__repr__(XAxialPositionRestraint self) -> std::string"""
2063  return _IMP_npc.XAxialPositionRestraint___repr__(self)
2064 
2065  @staticmethod
2066  def get_from(o):
2067  return _object_cast_to_XAxialPositionRestraint(o)
2068 
2069 
2070  def _get_as_binary(self):
2071  r"""_get_as_binary(XAxialPositionRestraint self) -> PyObject *"""
2072  return _IMP_npc.XAxialPositionRestraint__get_as_binary(self)
2073 
2074  def _set_from_binary(self, p):
2075  r"""_set_from_binary(XAxialPositionRestraint self, PyObject * p)"""
2076  return _IMP_npc.XAxialPositionRestraint__set_from_binary(self, p)
2077 
2078  def __getstate__(self):
2079  p = self._get_as_binary()
2080  if len(self.__dict__) > 1:
2081  d = self.__dict__.copy()
2082  del d['this']
2083  p = (d, p)
2084  return p
2085 
2086  def __setstate__(self, p):
2087  if not hasattr(self, 'this'):
2088  self.__init__()
2089  if isinstance(p, tuple):
2090  d, p = p
2091  self.__dict__.update(d)
2092  return self._set_from_binary(p)
2093 
2094 
2095 # Register XAxialPositionRestraint in _IMP_npc:
2096 _IMP_npc.XAxialPositionRestraint_swigregister(XAxialPositionRestraint)
2097 class XAxialPositionLowerRestraint(IMP.Restraint):
2098  r"""Proxy of C++ IMP::npc::XAxialPositionLowerRestraint class."""
2099 
2100  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2101 
2102  def __init__(self, *args):
2103  r"""
2104  __init__(XAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XAxialPositionLowerRestraint
2105  __init__(XAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XAxialPositionLowerRestraint
2106  __init__(XAxialPositionLowerRestraint self) -> XAxialPositionLowerRestraint
2107  """
2108  _IMP_npc.XAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XAxialPositionLowerRestraint(*args))
2109 
2110  def add_particle(self, p):
2111  r"""add_particle(XAxialPositionLowerRestraint self, Particle p)"""
2112  return _IMP_npc.XAxialPositionLowerRestraint_add_particle(self, p)
2113 
2114  def add_particles(self, ps):
2115  r"""add_particles(XAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
2116  return _IMP_npc.XAxialPositionLowerRestraint_add_particles(self, ps)
2117 
2118  def set_particles(self, ps):
2119  r"""set_particles(XAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
2120  return _IMP_npc.XAxialPositionLowerRestraint_set_particles(self, ps)
2121 
2122  def do_get_inputs(self):
2123  r"""do_get_inputs(XAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
2124  return _IMP_npc.XAxialPositionLowerRestraint_do_get_inputs(self)
2125 
2126  def get_version_info(self):
2127  r"""get_version_info(XAxialPositionLowerRestraint self) -> VersionInfo"""
2128  return _IMP_npc.XAxialPositionLowerRestraint_get_version_info(self)
2129  __swig_destroy__ = _IMP_npc.delete_XAxialPositionLowerRestraint
2130 
2131  def __str__(self):
2132  r"""__str__(XAxialPositionLowerRestraint self) -> std::string"""
2133  return _IMP_npc.XAxialPositionLowerRestraint___str__(self)
2134 
2135  def __repr__(self):
2136  r"""__repr__(XAxialPositionLowerRestraint self) -> std::string"""
2137  return _IMP_npc.XAxialPositionLowerRestraint___repr__(self)
2138 
2139  @staticmethod
2140  def get_from(o):
2141  return _object_cast_to_XAxialPositionLowerRestraint(o)
2142 
2143 
2144  def _get_as_binary(self):
2145  r"""_get_as_binary(XAxialPositionLowerRestraint self) -> PyObject *"""
2146  return _IMP_npc.XAxialPositionLowerRestraint__get_as_binary(self)
2147 
2148  def _set_from_binary(self, p):
2149  r"""_set_from_binary(XAxialPositionLowerRestraint self, PyObject * p)"""
2150  return _IMP_npc.XAxialPositionLowerRestraint__set_from_binary(self, p)
2151 
2152  def __getstate__(self):
2153  p = self._get_as_binary()
2154  if len(self.__dict__) > 1:
2155  d = self.__dict__.copy()
2156  del d['this']
2157  p = (d, p)
2158  return p
2159 
2160  def __setstate__(self, p):
2161  if not hasattr(self, 'this'):
2162  self.__init__()
2163  if isinstance(p, tuple):
2164  d, p = p
2165  self.__dict__.update(d)
2166  return self._set_from_binary(p)
2167 
2168 
2169 # Register XAxialPositionLowerRestraint in _IMP_npc:
2170 _IMP_npc.XAxialPositionLowerRestraint_swigregister(XAxialPositionLowerRestraint)
2171 class XAxialPositionUpperRestraint(IMP.Restraint):
2172  r"""Proxy of C++ IMP::npc::XAxialPositionUpperRestraint class."""
2173 
2174  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2175 
2176  def __init__(self, *args):
2177  r"""
2178  __init__(XAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionUpperRestraint
2179  __init__(XAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionUpperRestraint
2180  __init__(XAxialPositionUpperRestraint self) -> XAxialPositionUpperRestraint
2181  """
2182  _IMP_npc.XAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XAxialPositionUpperRestraint(*args))
2183 
2184  def add_particle(self, p):
2185  r"""add_particle(XAxialPositionUpperRestraint self, Particle p)"""
2186  return _IMP_npc.XAxialPositionUpperRestraint_add_particle(self, p)
2187 
2188  def add_particles(self, ps):
2189  r"""add_particles(XAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
2190  return _IMP_npc.XAxialPositionUpperRestraint_add_particles(self, ps)
2191 
2192  def set_particles(self, ps):
2193  r"""set_particles(XAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
2194  return _IMP_npc.XAxialPositionUpperRestraint_set_particles(self, ps)
2195 
2196  def do_get_inputs(self):
2197  r"""do_get_inputs(XAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
2198  return _IMP_npc.XAxialPositionUpperRestraint_do_get_inputs(self)
2199 
2200  def get_version_info(self):
2201  r"""get_version_info(XAxialPositionUpperRestraint self) -> VersionInfo"""
2202  return _IMP_npc.XAxialPositionUpperRestraint_get_version_info(self)
2203  __swig_destroy__ = _IMP_npc.delete_XAxialPositionUpperRestraint
2204 
2205  def __str__(self):
2206  r"""__str__(XAxialPositionUpperRestraint self) -> std::string"""
2207  return _IMP_npc.XAxialPositionUpperRestraint___str__(self)
2208 
2209  def __repr__(self):
2210  r"""__repr__(XAxialPositionUpperRestraint self) -> std::string"""
2211  return _IMP_npc.XAxialPositionUpperRestraint___repr__(self)
2212 
2213  @staticmethod
2214  def get_from(o):
2215  return _object_cast_to_XAxialPositionUpperRestraint(o)
2216 
2217 
2218  def _get_as_binary(self):
2219  r"""_get_as_binary(XAxialPositionUpperRestraint self) -> PyObject *"""
2220  return _IMP_npc.XAxialPositionUpperRestraint__get_as_binary(self)
2221 
2222  def _set_from_binary(self, p):
2223  r"""_set_from_binary(XAxialPositionUpperRestraint self, PyObject * p)"""
2224  return _IMP_npc.XAxialPositionUpperRestraint__set_from_binary(self, p)
2225 
2226  def __getstate__(self):
2227  p = self._get_as_binary()
2228  if len(self.__dict__) > 1:
2229  d = self.__dict__.copy()
2230  del d['this']
2231  p = (d, p)
2232  return p
2233 
2234  def __setstate__(self, p):
2235  if not hasattr(self, 'this'):
2236  self.__init__()
2237  if isinstance(p, tuple):
2238  d, p = p
2239  self.__dict__.update(d)
2240  return self._set_from_binary(p)
2241 
2242 
2243 # Register XAxialPositionUpperRestraint in _IMP_npc:
2244 _IMP_npc.XAxialPositionUpperRestraint_swigregister(XAxialPositionUpperRestraint)
2245 class OverallPositionRestraint(IMP.Restraint):
2246  r"""Proxy of C++ IMP::npc::OverallPositionRestraint class."""
2247 
2248  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2249 
2250  def __init__(self, *args):
2251  r"""
2252  __init__(OverallPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double x_start, double y_start, double z_start, double tolerance, bool consider_radius, double sigma=1) -> OverallPositionRestraint
2253  __init__(OverallPositionRestraint self, Model m, double x_start, double y_start, double z_start, double tolerance, bool consider_radius, double sigma=1) -> OverallPositionRestraint
2254  __init__(OverallPositionRestraint self) -> OverallPositionRestraint
2255  """
2256  _IMP_npc.OverallPositionRestraint_swiginit(self, _IMP_npc.new_OverallPositionRestraint(*args))
2257 
2258  def add_particle(self, p):
2259  r"""add_particle(OverallPositionRestraint self, Particle p)"""
2260  return _IMP_npc.OverallPositionRestraint_add_particle(self, p)
2261 
2262  def add_particles(self, ps):
2263  r"""add_particles(OverallPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2264  return _IMP_npc.OverallPositionRestraint_add_particles(self, ps)
2265 
2266  def set_particles(self, ps):
2267  r"""set_particles(OverallPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2268  return _IMP_npc.OverallPositionRestraint_set_particles(self, ps)
2269 
2270  def do_get_inputs(self):
2271  r"""do_get_inputs(OverallPositionRestraint self) -> IMP::ModelObjectsTemp"""
2272  return _IMP_npc.OverallPositionRestraint_do_get_inputs(self)
2273 
2274  def get_version_info(self):
2275  r"""get_version_info(OverallPositionRestraint self) -> VersionInfo"""
2276  return _IMP_npc.OverallPositionRestraint_get_version_info(self)
2277  __swig_destroy__ = _IMP_npc.delete_OverallPositionRestraint
2278 
2279  def __str__(self):
2280  r"""__str__(OverallPositionRestraint self) -> std::string"""
2281  return _IMP_npc.OverallPositionRestraint___str__(self)
2282 
2283  def __repr__(self):
2284  r"""__repr__(OverallPositionRestraint self) -> std::string"""
2285  return _IMP_npc.OverallPositionRestraint___repr__(self)
2286 
2287  @staticmethod
2288  def get_from(o):
2289  return _object_cast_to_OverallPositionRestraint(o)
2290 
2291 
2292  def _get_as_binary(self):
2293  r"""_get_as_binary(OverallPositionRestraint self) -> PyObject *"""
2294  return _IMP_npc.OverallPositionRestraint__get_as_binary(self)
2295 
2296  def _set_from_binary(self, p):
2297  r"""_set_from_binary(OverallPositionRestraint self, PyObject * p)"""
2298  return _IMP_npc.OverallPositionRestraint__set_from_binary(self, p)
2299 
2300  def __getstate__(self):
2301  p = self._get_as_binary()
2302  if len(self.__dict__) > 1:
2303  d = self.__dict__.copy()
2304  del d['this']
2305  p = (d, p)
2306  return p
2307 
2308  def __setstate__(self, p):
2309  if not hasattr(self, 'this'):
2310  self.__init__()
2311  if isinstance(p, tuple):
2312  d, p = p
2313  self.__dict__.update(d)
2314  return self._set_from_binary(p)
2315 
2316 
2317 # Register OverallPositionRestraint in _IMP_npc:
2318 _IMP_npc.OverallPositionRestraint_swigregister(OverallPositionRestraint)
2319 class CompositeRestraint(IMP.Restraint):
2320  r"""Proxy of C++ IMP::npc::CompositeRestraint class."""
2321 
2322  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2323 
2324  def __init__(self, m, ps):
2325  r"""__init__(CompositeRestraint self, Model m, PairScore ps) -> CompositeRestraint"""
2326  _IMP_npc.CompositeRestraint_swiginit(self, _IMP_npc.new_CompositeRestraint(m, ps))
2327 
2328  def add_type(self, ps):
2329  r"""add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
2330  return _IMP_npc.CompositeRestraint_add_type(self, ps)
2331 
2332  def get_connected_pairs(self):
2333  r"""get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
2334  return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
2335 
2336  def do_get_inputs(self):
2337  r"""do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
2338  return _IMP_npc.CompositeRestraint_do_get_inputs(self)
2339 
2340  def get_version_info(self):
2341  r"""get_version_info(CompositeRestraint self) -> VersionInfo"""
2342  return _IMP_npc.CompositeRestraint_get_version_info(self)
2343  __swig_destroy__ = _IMP_npc.delete_CompositeRestraint
2344 
2345  def __str__(self):
2346  r"""__str__(CompositeRestraint self) -> std::string"""
2347  return _IMP_npc.CompositeRestraint___str__(self)
2348 
2349  def __repr__(self):
2350  r"""__repr__(CompositeRestraint self) -> std::string"""
2351  return _IMP_npc.CompositeRestraint___repr__(self)
2352 
2353  @staticmethod
2354  def get_from(o):
2355  return _object_cast_to_CompositeRestraint(o)
2356 
2357 
2358 # Register CompositeRestraint in _IMP_npc:
2359 _IMP_npc.CompositeRestraint_swigregister(CompositeRestraint)
2360 class MinimumSphereDistancePairScore(IMP.PairScore):
2361  r"""Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
2362 
2363  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2364 
2365  def __init__(self, *args):
2366  r"""
2367  __init__(MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore
2368  __init__(MinimumSphereDistancePairScore self) -> MinimumSphereDistancePairScore
2369  """
2370  _IMP_npc.MinimumSphereDistancePairScore_swiginit(self, _IMP_npc.new_MinimumSphereDistancePairScore(*args))
2371 
2372  def do_get_inputs(self, m, pis):
2373  r"""do_get_inputs(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2374  return _IMP_npc.MinimumSphereDistancePairScore_do_get_inputs(self, m, pis)
2375 
2376  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2377  r"""evaluate_indexes(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2378  return _IMP_npc.MinimumSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2379 
2380  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2381  r"""evaluate_indexes_scores(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2382  return _IMP_npc.MinimumSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2383 
2384  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2385  r"""evaluate_indexes_delta(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2386  return _IMP_npc.MinimumSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2387 
2388  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2389  r"""evaluate_if_good_indexes(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2390  return _IMP_npc.MinimumSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2391 
2392  def get_version_info(self):
2393  r"""get_version_info(MinimumSphereDistancePairScore self) -> VersionInfo"""
2394  return _IMP_npc.MinimumSphereDistancePairScore_get_version_info(self)
2395  __swig_destroy__ = _IMP_npc.delete_MinimumSphereDistancePairScore
2396 
2397  def __str__(self):
2398  r"""__str__(MinimumSphereDistancePairScore self) -> std::string"""
2399  return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
2400 
2401  def __repr__(self):
2402  r"""__repr__(MinimumSphereDistancePairScore self) -> std::string"""
2403  return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
2404 
2405  @staticmethod
2406  def get_from(o):
2407  return _object_cast_to_MinimumSphereDistancePairScore(o)
2408 
2409 
2410  def _get_as_binary(self):
2411  r"""_get_as_binary(MinimumSphereDistancePairScore self) -> PyObject *"""
2412  return _IMP_npc.MinimumSphereDistancePairScore__get_as_binary(self)
2413 
2414  def _set_from_binary(self, p):
2415  r"""_set_from_binary(MinimumSphereDistancePairScore self, PyObject * p)"""
2416  return _IMP_npc.MinimumSphereDistancePairScore__set_from_binary(self, p)
2417 
2418  def __getstate__(self):
2419  p = self._get_as_binary()
2420  if len(self.__dict__) > 1:
2421  d = self.__dict__.copy()
2422  del d['this']
2423  p = (d, p)
2424  return p
2425 
2426  def __setstate__(self, p):
2427  if not hasattr(self, 'this'):
2428  self.__init__()
2429  if isinstance(p, tuple):
2430  d, p = p
2431  self.__dict__.update(d)
2432  return self._set_from_binary(p)
2433 
2434 
2435 # Register MinimumSphereDistancePairScore in _IMP_npc:
2436 _IMP_npc.MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
2437 class SlabWithSphericalIndent(IMP.Decorator):
2438  r"""Proxy of C++ IMP::npc::SlabWithSphericalIndent class."""
2439 
2440  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2441 
2442  def set_sphere_radius(self, R):
2443  r"""set_sphere_radius(SlabWithSphericalIndent self, double R)"""
2444  return _IMP_npc.SlabWithSphericalIndent_set_sphere_radius(self, R)
2445 
2446  def set_sphere_depth(self, h):
2447  r"""set_sphere_depth(SlabWithSphericalIndent self, double h)"""
2448  return _IMP_npc.SlabWithSphericalIndent_set_sphere_depth(self, h)
2449 
2450  def get_sphere_radius(self):
2451  r"""get_sphere_radius(SlabWithSphericalIndent self) -> IMP::Float"""
2452  return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius(self)
2453 
2454  def get_sphere_depth(self):
2455  r"""get_sphere_depth(SlabWithSphericalIndent self) -> IMP::Float"""
2456  return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth(self)
2457 
2458  @staticmethod
2459  def get_sphere_radius_key():
2460  r"""get_sphere_radius_key() -> FloatKey"""
2461  return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius_key()
2462 
2463  @staticmethod
2464  def get_sphere_depth_key():
2465  r"""get_sphere_depth_key() -> FloatKey"""
2466  return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth_key()
2467 
2468  def get_decorator_name(self):
2469  r"""get_decorator_name(SlabWithSphericalIndent self) -> std::string"""
2470  return _IMP_npc.SlabWithSphericalIndent_get_decorator_name(self)
2471 
2472  def set_decorator_name(self, nm):
2473  r"""set_decorator_name(SlabWithSphericalIndent self, std::string nm)"""
2474  return _IMP_npc.SlabWithSphericalIndent_set_decorator_name(self, nm)
2475 
2476  def __init__(self, *args):
2477  r"""
2478  __init__(SlabWithSphericalIndent self) -> SlabWithSphericalIndent
2479  __init__(SlabWithSphericalIndent self, Model m, ParticleIndex id) -> SlabWithSphericalIndent
2480  __init__(SlabWithSphericalIndent self, _ParticleAdaptor d) -> SlabWithSphericalIndent
2481  """
2482  _IMP_npc.SlabWithSphericalIndent_swiginit(self, _IMP_npc.new_SlabWithSphericalIndent(*args))
2483 
2484  @staticmethod
2485  def get_is_setup(*args):
2486  r"""
2487  get_is_setup(Model m, ParticleIndex pi) -> bool
2488  get_is_setup(_ParticleAdaptor p) -> bool
2489  """
2490  return _IMP_npc.SlabWithSphericalIndent_get_is_setup(*args)
2491 
2492  def show(self, *args):
2493  r"""show(SlabWithSphericalIndent self, _ostream out=std::cout)"""
2494  return _IMP_npc.SlabWithSphericalIndent_show(self, *args)
2495 
2496  @staticmethod
2497  def setup_particle(*args):
2498  r"""
2499  setup_particle(Model m, ParticleIndex pi, double R, double h) -> SlabWithSphericalIndent
2500  setup_particle(_ParticleAdaptor pa, double R, double h) -> SlabWithSphericalIndent
2501  """
2502  return _IMP_npc.SlabWithSphericalIndent_setup_particle(*args)
2503 
2504  def add_attribute(self, *args):
2505  r"""
2506  add_attribute(SlabWithSphericalIndent self, FloatKey k, IMP::Float v, bool opt)
2507  add_attribute(SlabWithSphericalIndent self, FloatKey a0, IMP::Float a1)
2508  add_attribute(SlabWithSphericalIndent self, IntKey a0, IMP::Int a1)
2509  add_attribute(SlabWithSphericalIndent self, FloatsKey a0, IMP::Floats a1)
2510  add_attribute(SlabWithSphericalIndent self, IntsKey a0, IMP::Ints a1)
2511  add_attribute(SlabWithSphericalIndent self, StringKey a0, IMP::String a1)
2512  add_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0, Particle a1)
2513  add_attribute(SlabWithSphericalIndent self, ObjectKey a0, Object a1)
2514  add_attribute(SlabWithSphericalIndent self, SparseFloatKey a0, IMP::Float a1)
2515  add_attribute(SlabWithSphericalIndent self, SparseIntKey a0, IMP::Int a1)
2516  add_attribute(SlabWithSphericalIndent self, SparseStringKey a0, IMP::String a1)
2517  add_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0, ParticleIndex a1)
2518  """
2519  return _IMP_npc.SlabWithSphericalIndent_add_attribute(self, *args)
2520 
2521  def get_value(self, *args):
2522  r"""
2523  get_value(SlabWithSphericalIndent self, FloatKey a0) -> IMP::Float
2524  get_value(SlabWithSphericalIndent self, IntKey a0) -> IMP::Int
2525  get_value(SlabWithSphericalIndent self, FloatsKey a0) -> IMP::Floats
2526  get_value(SlabWithSphericalIndent self, IntsKey a0) -> IMP::Ints
2527  get_value(SlabWithSphericalIndent self, StringKey a0) -> IMP::String
2528  get_value(SlabWithSphericalIndent self, ParticleIndexKey a0) -> Particle
2529  get_value(SlabWithSphericalIndent self, ObjectKey a0) -> Object
2530  get_value(SlabWithSphericalIndent self, SparseFloatKey a0) -> IMP::Float
2531  get_value(SlabWithSphericalIndent self, SparseIntKey a0) -> IMP::Int
2532  get_value(SlabWithSphericalIndent self, SparseStringKey a0) -> IMP::String
2533  get_value(SlabWithSphericalIndent self, SparseParticleIndexKey a0) -> ParticleIndex
2534  """
2535  return _IMP_npc.SlabWithSphericalIndent_get_value(self, *args)
2536 
2537  def set_value(self, *args):
2538  r"""
2539  set_value(SlabWithSphericalIndent self, FloatKey a0, IMP::Float a1)
2540  set_value(SlabWithSphericalIndent self, IntKey a0, IMP::Int a1)
2541  set_value(SlabWithSphericalIndent self, FloatsKey a0, IMP::Floats a1)
2542  set_value(SlabWithSphericalIndent self, IntsKey a0, IMP::Ints a1)
2543  set_value(SlabWithSphericalIndent self, StringKey a0, IMP::String a1)
2544  set_value(SlabWithSphericalIndent self, ParticleIndexKey a0, Particle a1)
2545  set_value(SlabWithSphericalIndent self, ObjectKey a0, Object a1)
2546  set_value(SlabWithSphericalIndent self, SparseFloatKey a0, IMP::Float a1)
2547  set_value(SlabWithSphericalIndent self, SparseIntKey a0, IMP::Int a1)
2548  set_value(SlabWithSphericalIndent self, SparseStringKey a0, IMP::String a1)
2549  set_value(SlabWithSphericalIndent self, SparseParticleIndexKey a0, ParticleIndex a1)
2550  """
2551  return _IMP_npc.SlabWithSphericalIndent_set_value(self, *args)
2552 
2553  def remove_attribute(self, *args):
2554  r"""
2555  remove_attribute(SlabWithSphericalIndent self, FloatKey a0)
2556  remove_attribute(SlabWithSphericalIndent self, IntKey a0)
2557  remove_attribute(SlabWithSphericalIndent self, FloatsKey a0)
2558  remove_attribute(SlabWithSphericalIndent self, IntsKey a0)
2559  remove_attribute(SlabWithSphericalIndent self, StringKey a0)
2560  remove_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0)
2561  remove_attribute(SlabWithSphericalIndent self, ObjectKey a0)
2562  remove_attribute(SlabWithSphericalIndent self, SparseFloatKey a0)
2563  remove_attribute(SlabWithSphericalIndent self, SparseIntKey a0)
2564  remove_attribute(SlabWithSphericalIndent self, SparseStringKey a0)
2565  remove_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0)
2566  """
2567  return _IMP_npc.SlabWithSphericalIndent_remove_attribute(self, *args)
2568 
2569  def has_attribute(self, *args):
2570  r"""
2571  has_attribute(SlabWithSphericalIndent self, FloatKey a0) -> bool
2572  has_attribute(SlabWithSphericalIndent self, IntKey a0) -> bool
2573  has_attribute(SlabWithSphericalIndent self, FloatsKey a0) -> bool
2574  has_attribute(SlabWithSphericalIndent self, IntsKey a0) -> bool
2575  has_attribute(SlabWithSphericalIndent self, StringKey a0) -> bool
2576  has_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0) -> bool
2577  has_attribute(SlabWithSphericalIndent self, ObjectKey a0) -> bool
2578  has_attribute(SlabWithSphericalIndent self, SparseFloatKey a0) -> bool
2579  has_attribute(SlabWithSphericalIndent self, SparseIntKey a0) -> bool
2580  has_attribute(SlabWithSphericalIndent self, SparseStringKey a0) -> bool
2581  has_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0) -> bool
2582  """
2583  return _IMP_npc.SlabWithSphericalIndent_has_attribute(self, *args)
2584 
2585  def get_derivative(self, a0):
2586  r"""get_derivative(SlabWithSphericalIndent self, FloatKey a0) -> double"""
2587  return _IMP_npc.SlabWithSphericalIndent_get_derivative(self, a0)
2588 
2589  def get_name(self):
2590  r"""get_name(SlabWithSphericalIndent self) -> std::string"""
2591  return _IMP_npc.SlabWithSphericalIndent_get_name(self)
2592 
2593  def clear_caches(self):
2594  r"""clear_caches(SlabWithSphericalIndent self)"""
2595  return _IMP_npc.SlabWithSphericalIndent_clear_caches(self)
2596 
2597  def set_name(self, a0):
2598  r"""set_name(SlabWithSphericalIndent self, std::string a0)"""
2599  return _IMP_npc.SlabWithSphericalIndent_set_name(self, a0)
2600 
2601  def set_check_level(self, a0):
2602  r"""set_check_level(SlabWithSphericalIndent self, IMP::CheckLevel a0)"""
2603  return _IMP_npc.SlabWithSphericalIndent_set_check_level(self, a0)
2604 
2605  def add_to_derivative(self, a0, a1, a2):
2606  r"""add_to_derivative(SlabWithSphericalIndent self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2607  return _IMP_npc.SlabWithSphericalIndent_add_to_derivative(self, a0, a1, a2)
2608 
2609  def set_is_optimized(self, a0, a1):
2610  r"""set_is_optimized(SlabWithSphericalIndent self, FloatKey a0, bool a1)"""
2611  return _IMP_npc.SlabWithSphericalIndent_set_is_optimized(self, a0, a1)
2612 
2613  def get_is_optimized(self, a0):
2614  r"""get_is_optimized(SlabWithSphericalIndent self, FloatKey a0) -> bool"""
2615  return _IMP_npc.SlabWithSphericalIndent_get_is_optimized(self, a0)
2616 
2617  def get_check_level(self):
2618  r"""get_check_level(SlabWithSphericalIndent self) -> IMP::CheckLevel"""
2619  return _IMP_npc.SlabWithSphericalIndent_get_check_level(self)
2620 
2621  def __eq__(self, *args):
2622  r"""
2623  __eq__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2624  __eq__(SlabWithSphericalIndent self, Particle d) -> bool
2625  """
2626  return _IMP_npc.SlabWithSphericalIndent___eq__(self, *args)
2627 
2628  def __ne__(self, *args):
2629  r"""
2630  __ne__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2631  __ne__(SlabWithSphericalIndent self, Particle d) -> bool
2632  """
2633  return _IMP_npc.SlabWithSphericalIndent___ne__(self, *args)
2634 
2635  def __le__(self, *args):
2636  r"""
2637  __le__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2638  __le__(SlabWithSphericalIndent self, Particle d) -> bool
2639  """
2640  return _IMP_npc.SlabWithSphericalIndent___le__(self, *args)
2641 
2642  def __lt__(self, *args):
2643  r"""
2644  __lt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2645  __lt__(SlabWithSphericalIndent self, Particle d) -> bool
2646  """
2647  return _IMP_npc.SlabWithSphericalIndent___lt__(self, *args)
2648 
2649  def __ge__(self, *args):
2650  r"""
2651  __ge__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2652  __ge__(SlabWithSphericalIndent self, Particle d) -> bool
2653  """
2654  return _IMP_npc.SlabWithSphericalIndent___ge__(self, *args)
2655 
2656  def __gt__(self, *args):
2657  r"""
2658  __gt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2659  __gt__(SlabWithSphericalIndent self, Particle d) -> bool
2660  """
2661  return _IMP_npc.SlabWithSphericalIndent___gt__(self, *args)
2662 
2663  def __hash__(self):
2664  r"""__hash__(SlabWithSphericalIndent self) -> std::size_t"""
2665  return _IMP_npc.SlabWithSphericalIndent___hash__(self)
2666 
2667  def __str__(self):
2668  r"""__str__(SlabWithSphericalIndent self) -> std::string"""
2669  return _IMP_npc.SlabWithSphericalIndent___str__(self)
2670 
2671  def __repr__(self):
2672  r"""__repr__(SlabWithSphericalIndent self) -> std::string"""
2673  return _IMP_npc.SlabWithSphericalIndent___repr__(self)
2674 
2675  def _get_as_binary(self):
2676  r"""_get_as_binary(SlabWithSphericalIndent self) -> PyObject *"""
2677  return _IMP_npc.SlabWithSphericalIndent__get_as_binary(self)
2678 
2679  def _set_from_binary(self, p):
2680  r"""_set_from_binary(SlabWithSphericalIndent self, PyObject * p)"""
2681  return _IMP_npc.SlabWithSphericalIndent__set_from_binary(self, p)
2682 
2683  def __getstate__(self):
2684  p = self._get_as_binary()
2685  if len(self.__dict__) > 1:
2686  d = self.__dict__.copy()
2687  del d['this']
2688  p = (d, p)
2689  return p
2690 
2691  def __setstate__(self, p):
2692  if not hasattr(self, 'this'):
2693  self.__init__()
2694  if isinstance(p, tuple):
2695  d, p = p
2696  self.__dict__.update(d)
2697  return self._set_from_binary(p)
2698 
2699  __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndent
2700 
2701 # Register SlabWithSphericalIndent in _IMP_npc:
2702 _IMP_npc.SlabWithSphericalIndent_swigregister(SlabWithSphericalIndent)
2703 class SlabWithSphericalIndentMBMScore(IMP.PairScore):
2704  r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentMBMScore class."""
2705 
2706  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2707 
2708  def __init__(self, x0, k):
2709  r"""__init__(SlabWithSphericalIndentMBMScore self, double x0, double k) -> SlabWithSphericalIndentMBMScore"""
2710  _IMP_npc.SlabWithSphericalIndentMBMScore_swiginit(self, _IMP_npc.new_SlabWithSphericalIndentMBMScore(x0, k))
2711 
2712  def do_get_inputs(self, m, pis):
2713  r"""do_get_inputs(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2714  return _IMP_npc.SlabWithSphericalIndentMBMScore_do_get_inputs(self, m, pis)
2715 
2716  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2717  r"""evaluate_indexes(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2718  return _IMP_npc.SlabWithSphericalIndentMBMScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2719 
2720  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2721  r"""evaluate_indexes_scores(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2722  return _IMP_npc.SlabWithSphericalIndentMBMScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2723 
2724  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2725  r"""evaluate_indexes_delta(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2726  return _IMP_npc.SlabWithSphericalIndentMBMScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2727 
2728  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2729  r"""evaluate_if_good_indexes(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2730  return _IMP_npc.SlabWithSphericalIndentMBMScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2731 
2732  def get_version_info(self):
2733  r"""get_version_info(SlabWithSphericalIndentMBMScore self) -> VersionInfo"""
2734  return _IMP_npc.SlabWithSphericalIndentMBMScore_get_version_info(self)
2735  __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndentMBMScore
2736 
2737  def __str__(self):
2738  r"""__str__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2739  return _IMP_npc.SlabWithSphericalIndentMBMScore___str__(self)
2740 
2741  def __repr__(self):
2742  r"""__repr__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2743  return _IMP_npc.SlabWithSphericalIndentMBMScore___repr__(self)
2744 
2745  @staticmethod
2746  def get_from(o):
2747  return _object_cast_to_SlabWithSphericalIndentMBMScore(o)
2748 
2749 
2750 # Register SlabWithSphericalIndentMBMScore in _IMP_npc:
2751 _IMP_npc.SlabWithSphericalIndentMBMScore_swigregister(SlabWithSphericalIndentMBMScore)
2752 class SlabWithSphericalIndentGeometry(IMP.display.Geometry):
2753  r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentGeometry class."""
2754 
2755  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2756 
2757  def __init__(self, radius, depth, length):
2758  r"""__init__(SlabWithSphericalIndentGeometry self, double radius, double depth, double length) -> SlabWithSphericalIndentGeometry"""
2759  _IMP_npc.SlabWithSphericalIndentGeometry_swiginit(self, _IMP_npc.new_SlabWithSphericalIndentGeometry(radius, depth, length))
2760 
2761  def get_version_info(self):
2762  r"""get_version_info(SlabWithSphericalIndentGeometry self) -> VersionInfo"""
2763  return _IMP_npc.SlabWithSphericalIndentGeometry_get_version_info(self)
2764  __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndentGeometry
2765 
2766  def __str__(self):
2767  r"""__str__(SlabWithSphericalIndentGeometry self) -> std::string"""
2768  return _IMP_npc.SlabWithSphericalIndentGeometry___str__(self)
2769 
2770  def __repr__(self):
2771  r"""__repr__(SlabWithSphericalIndentGeometry self) -> std::string"""
2772  return _IMP_npc.SlabWithSphericalIndentGeometry___repr__(self)
2773 
2774  @staticmethod
2775  def get_from(o):
2776  return _object_cast_to_SlabWithSphericalIndentGeometry(o)
2777 
2778 
2779 # Register SlabWithSphericalIndentGeometry in _IMP_npc:
2780 _IMP_npc.SlabWithSphericalIndentGeometry_swigregister(SlabWithSphericalIndentGeometry)
2781 class SphericalIndentSurfaceDepthPairScore(IMP.PairScore):
2782  r"""Proxy of C++ IMP::npc::SphericalIndentSurfaceDepthPairScore class."""
2783 
2784  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2785 
2786  def __init__(self, k):
2787  r"""__init__(SphericalIndentSurfaceDepthPairScore self, double k) -> SphericalIndentSurfaceDepthPairScore"""
2788  _IMP_npc.SphericalIndentSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_SphericalIndentSurfaceDepthPairScore(k))
2789 
2790  def do_get_inputs(self, m, pis):
2791  r"""do_get_inputs(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2792  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_do_get_inputs(self, m, pis)
2793 
2794  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2795  r"""evaluate_indexes(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2796  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2797 
2798  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2799  r"""evaluate_indexes_scores(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2800  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2801 
2802  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2803  r"""evaluate_indexes_delta(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2804  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2805 
2806  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2807  r"""evaluate_if_good_indexes(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2808  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2809 
2810  def get_version_info(self):
2811  r"""get_version_info(SphericalIndentSurfaceDepthPairScore self) -> VersionInfo"""
2812  return _IMP_npc.SphericalIndentSurfaceDepthPairScore_get_version_info(self)
2813  __swig_destroy__ = _IMP_npc.delete_SphericalIndentSurfaceDepthPairScore
2814 
2815  def __str__(self):
2816  r"""__str__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2817  return _IMP_npc.SphericalIndentSurfaceDepthPairScore___str__(self)
2818 
2819  def __repr__(self):
2820  r"""__repr__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2821  return _IMP_npc.SphericalIndentSurfaceDepthPairScore___repr__(self)
2822 
2823  @staticmethod
2824  def get_from(o):
2825  return _object_cast_to_SphericalIndentSurfaceDepthPairScore(o)
2826 
2827 
2828 # Register SphericalIndentSurfaceDepthPairScore in _IMP_npc:
2829 _IMP_npc.SphericalIndentSurfaceDepthPairScore_swigregister(SphericalIndentSurfaceDepthPairScore)
2830 class SlabWithToroidalPoreMBMScore(IMP.PairScore):
2831  r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreMBMScore class."""
2832 
2833  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2834 
2835  def __init__(self, x0_upper, x0_lower, k):
2836  r"""__init__(SlabWithToroidalPoreMBMScore self, double x0_upper, double x0_lower, double k) -> SlabWithToroidalPoreMBMScore"""
2837  _IMP_npc.SlabWithToroidalPoreMBMScore_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreMBMScore(x0_upper, x0_lower, k))
2838 
2839  def do_get_inputs(self, m, pis):
2840  r"""do_get_inputs(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2841  return _IMP_npc.SlabWithToroidalPoreMBMScore_do_get_inputs(self, m, pis)
2842 
2843  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2844  r"""evaluate_indexes(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2845  return _IMP_npc.SlabWithToroidalPoreMBMScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2846 
2847  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2848  r"""evaluate_indexes_scores(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2849  return _IMP_npc.SlabWithToroidalPoreMBMScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2850 
2851  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2852  r"""evaluate_indexes_delta(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2853  return _IMP_npc.SlabWithToroidalPoreMBMScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2854 
2855  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2856  r"""evaluate_if_good_indexes(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2857  return _IMP_npc.SlabWithToroidalPoreMBMScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2858 
2859  def get_version_info(self):
2860  r"""get_version_info(SlabWithToroidalPoreMBMScore self) -> VersionInfo"""
2861  return _IMP_npc.SlabWithToroidalPoreMBMScore_get_version_info(self)
2862  __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreMBMScore
2863 
2864  def __str__(self):
2865  r"""__str__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2866  return _IMP_npc.SlabWithToroidalPoreMBMScore___str__(self)
2867 
2868  def __repr__(self):
2869  r"""__repr__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2870  return _IMP_npc.SlabWithToroidalPoreMBMScore___repr__(self)
2871 
2872  @staticmethod
2873  def get_from(o):
2874  return _object_cast_to_SlabWithToroidalPoreMBMScore(o)
2875 
2876 
2877 # Register SlabWithToroidalPoreMBMScore in _IMP_npc:
2878 _IMP_npc.SlabWithToroidalPoreMBMScore_swigregister(SlabWithToroidalPoreMBMScore)
2879 class SlabWithToroidalPoreGoPairScore(IMP.PairScore):
2880  r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreGoPairScore class."""
2881 
2882  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2883 
2884  def __init__(self, x0, k):
2885  r"""__init__(SlabWithToroidalPoreGoPairScore self, double x0, double k) -> SlabWithToroidalPoreGoPairScore"""
2886  _IMP_npc.SlabWithToroidalPoreGoPairScore_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreGoPairScore(x0, k))
2887 
2888  def do_get_inputs(self, m, pis):
2889  r"""do_get_inputs(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2890  return _IMP_npc.SlabWithToroidalPoreGoPairScore_do_get_inputs(self, m, pis)
2891 
2892  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2893  r"""evaluate_indexes(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2894  return _IMP_npc.SlabWithToroidalPoreGoPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2895 
2896  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2897  r"""evaluate_indexes_scores(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2898  return _IMP_npc.SlabWithToroidalPoreGoPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2899 
2900  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2901  r"""evaluate_indexes_delta(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2902  return _IMP_npc.SlabWithToroidalPoreGoPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2903 
2904  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2905  r"""evaluate_if_good_indexes(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2906  return _IMP_npc.SlabWithToroidalPoreGoPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2907 
2908  def get_version_info(self):
2909  r"""get_version_info(SlabWithToroidalPoreGoPairScore self) -> VersionInfo"""
2910  return _IMP_npc.SlabWithToroidalPoreGoPairScore_get_version_info(self)
2911  __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreGoPairScore
2912 
2913  def __str__(self):
2914  r"""__str__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2915  return _IMP_npc.SlabWithToroidalPoreGoPairScore___str__(self)
2916 
2917  def __repr__(self):
2918  r"""__repr__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2919  return _IMP_npc.SlabWithToroidalPoreGoPairScore___repr__(self)
2920 
2921  @staticmethod
2922  def get_from(o):
2923  return _object_cast_to_SlabWithToroidalPoreGoPairScore(o)
2924 
2925 
2926 # Register SlabWithToroidalPoreGoPairScore in _IMP_npc:
2927 _IMP_npc.SlabWithToroidalPoreGoPairScore_swigregister(SlabWithToroidalPoreGoPairScore)
2928 class ToroidalPoreSurfaceDepthPairScore(IMP.PairScore):
2929  r"""Proxy of C++ IMP::npc::ToroidalPoreSurfaceDepthPairScore class."""
2930 
2931  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2932 
2933  def __init__(self, k):
2934  r"""__init__(ToroidalPoreSurfaceDepthPairScore self, double k) -> ToroidalPoreSurfaceDepthPairScore"""
2935  _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_ToroidalPoreSurfaceDepthPairScore(k))
2936 
2937  def do_get_inputs(self, m, pis):
2938  r"""do_get_inputs(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2939  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_do_get_inputs(self, m, pis)
2940 
2941  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2942  r"""evaluate_indexes(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2943  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2944 
2945  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2946  r"""evaluate_indexes_scores(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2947  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2948 
2949  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2950  r"""evaluate_indexes_delta(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2951  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2952 
2953  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2954  r"""evaluate_if_good_indexes(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2955  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2956 
2957  def get_version_info(self):
2958  r"""get_version_info(ToroidalPoreSurfaceDepthPairScore self) -> VersionInfo"""
2959  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_get_version_info(self)
2960  __swig_destroy__ = _IMP_npc.delete_ToroidalPoreSurfaceDepthPairScore
2961 
2962  def __str__(self):
2963  r"""__str__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2964  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___str__(self)
2965 
2966  def __repr__(self):
2967  r"""__repr__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2968  return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___repr__(self)
2969 
2970  @staticmethod
2971  def get_from(o):
2972  return _object_cast_to_ToroidalPoreSurfaceDepthPairScore(o)
2973 
2974 
2975 # Register ToroidalPoreSurfaceDepthPairScore in _IMP_npc:
2976 _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swigregister(ToroidalPoreSurfaceDepthPairScore)
2977 class SlabWithPore(IMP.Decorator):
2978  r"""Proxy of C++ IMP::npc::SlabWithPore class."""
2979 
2980  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2981 
2982  def __init__(self, *args):
2983  r"""
2984  __init__(SlabWithPore self) -> SlabWithPore
2985  __init__(SlabWithPore self, Model m, ParticleIndex id) -> SlabWithPore
2986  __init__(SlabWithPore self, _ParticleAdaptor d) -> SlabWithPore
2987  """
2988  _IMP_npc.SlabWithPore_swiginit(self, _IMP_npc.new_SlabWithPore(*args))
2989 
2990  def show(self, *args):
2991  r"""show(SlabWithPore self, _ostream out=std::cout)"""
2992  return _IMP_npc.SlabWithPore_show(self, *args)
2993 
2994  @staticmethod
2995  def setup_particle(*args):
2996  r"""
2997  setup_particle(Model m, ParticleIndex pi, double thickness, double pore_radius) -> SlabWithPore
2998  setup_particle(_ParticleAdaptor pa, double thickness, double pore_radius) -> SlabWithPore
2999  """
3000  return _IMP_npc.SlabWithPore_setup_particle(*args)
3001 
3002  @staticmethod
3003  def get_is_setup(*args):
3004  r"""
3005  get_is_setup(_ParticleAdaptor p) -> bool
3006  get_is_setup(Model m, ParticleIndex pi) -> bool
3007  """
3008  return _IMP_npc.SlabWithPore_get_is_setup(*args)
3009 
3010  def set_thickness(self, thickness):
3011  r"""set_thickness(SlabWithPore self, double thickness)"""
3012  return _IMP_npc.SlabWithPore_set_thickness(self, thickness)
3013 
3014  def get_thickness(self):
3015  r"""get_thickness(SlabWithPore self) -> IMP::Float"""
3016  return _IMP_npc.SlabWithPore_get_thickness(self)
3017 
3018  def get_pore_radius(self):
3019  r"""get_pore_radius(SlabWithPore self) -> IMP::Float"""
3020  return _IMP_npc.SlabWithPore_get_pore_radius(self)
3021 
3022  def set_pore_radius(self, r):
3023  r"""set_pore_radius(SlabWithPore self, double r)"""
3024  return _IMP_npc.SlabWithPore_set_pore_radius(self, r)
3025 
3026  def add_to_pore_radius_derivative(self, v, d):
3027  r"""add_to_pore_radius_derivative(SlabWithPore self, double v, DerivativeAccumulator d)"""
3028  return _IMP_npc.SlabWithPore_add_to_pore_radius_derivative(self, v, d)
3029 
3030  def get_pore_radius_is_optimized(self):
3031  r"""get_pore_radius_is_optimized(SlabWithPore self) -> bool"""
3032  return _IMP_npc.SlabWithPore_get_pore_radius_is_optimized(self)
3033 
3034  def set_pore_radius_is_optimized(self, tf):
3035  r"""set_pore_radius_is_optimized(SlabWithPore self, bool tf)"""
3036  return _IMP_npc.SlabWithPore_set_pore_radius_is_optimized(self, tf)
3037 
3038  @staticmethod
3039  def get_thickness_key():
3040  r"""get_thickness_key() -> FloatKey"""
3041  return _IMP_npc.SlabWithPore_get_thickness_key()
3042 
3043  @staticmethod
3044  def get_pore_radius_key():
3045  r"""get_pore_radius_key() -> FloatKey"""
3046  return _IMP_npc.SlabWithPore_get_pore_radius_key()
3047 
3048  def add_attribute(self, *args):
3049  r"""
3050  add_attribute(SlabWithPore self, FloatKey k, IMP::Float v, bool opt)
3051  add_attribute(SlabWithPore self, FloatKey a0, IMP::Float a1)
3052  add_attribute(SlabWithPore self, IntKey a0, IMP::Int a1)
3053  add_attribute(SlabWithPore self, FloatsKey a0, IMP::Floats a1)
3054  add_attribute(SlabWithPore self, IntsKey a0, IMP::Ints a1)
3055  add_attribute(SlabWithPore self, StringKey a0, IMP::String a1)
3056  add_attribute(SlabWithPore self, ParticleIndexKey a0, Particle a1)
3057  add_attribute(SlabWithPore self, ObjectKey a0, Object a1)
3058  add_attribute(SlabWithPore self, SparseFloatKey a0, IMP::Float a1)
3059  add_attribute(SlabWithPore self, SparseIntKey a0, IMP::Int a1)
3060  add_attribute(SlabWithPore self, SparseStringKey a0, IMP::String a1)
3061  add_attribute(SlabWithPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3062  """
3063  return _IMP_npc.SlabWithPore_add_attribute(self, *args)
3064 
3065  def get_value(self, *args):
3066  r"""
3067  get_value(SlabWithPore self, FloatKey a0) -> IMP::Float
3068  get_value(SlabWithPore self, IntKey a0) -> IMP::Int
3069  get_value(SlabWithPore self, FloatsKey a0) -> IMP::Floats
3070  get_value(SlabWithPore self, IntsKey a0) -> IMP::Ints
3071  get_value(SlabWithPore self, StringKey a0) -> IMP::String
3072  get_value(SlabWithPore self, ParticleIndexKey a0) -> Particle
3073  get_value(SlabWithPore self, ObjectKey a0) -> Object
3074  get_value(SlabWithPore self, SparseFloatKey a0) -> IMP::Float
3075  get_value(SlabWithPore self, SparseIntKey a0) -> IMP::Int
3076  get_value(SlabWithPore self, SparseStringKey a0) -> IMP::String
3077  get_value(SlabWithPore self, SparseParticleIndexKey a0) -> ParticleIndex
3078  """
3079  return _IMP_npc.SlabWithPore_get_value(self, *args)
3080 
3081  def set_value(self, *args):
3082  r"""
3083  set_value(SlabWithPore self, FloatKey a0, IMP::Float a1)
3084  set_value(SlabWithPore self, IntKey a0, IMP::Int a1)
3085  set_value(SlabWithPore self, FloatsKey a0, IMP::Floats a1)
3086  set_value(SlabWithPore self, IntsKey a0, IMP::Ints a1)
3087  set_value(SlabWithPore self, StringKey a0, IMP::String a1)
3088  set_value(SlabWithPore self, ParticleIndexKey a0, Particle a1)
3089  set_value(SlabWithPore self, ObjectKey a0, Object a1)
3090  set_value(SlabWithPore self, SparseFloatKey a0, IMP::Float a1)
3091  set_value(SlabWithPore self, SparseIntKey a0, IMP::Int a1)
3092  set_value(SlabWithPore self, SparseStringKey a0, IMP::String a1)
3093  set_value(SlabWithPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3094  """
3095  return _IMP_npc.SlabWithPore_set_value(self, *args)
3096 
3097  def remove_attribute(self, *args):
3098  r"""
3099  remove_attribute(SlabWithPore self, FloatKey a0)
3100  remove_attribute(SlabWithPore self, IntKey a0)
3101  remove_attribute(SlabWithPore self, FloatsKey a0)
3102  remove_attribute(SlabWithPore self, IntsKey a0)
3103  remove_attribute(SlabWithPore self, StringKey a0)
3104  remove_attribute(SlabWithPore self, ParticleIndexKey a0)
3105  remove_attribute(SlabWithPore self, ObjectKey a0)
3106  remove_attribute(SlabWithPore self, SparseFloatKey a0)
3107  remove_attribute(SlabWithPore self, SparseIntKey a0)
3108  remove_attribute(SlabWithPore self, SparseStringKey a0)
3109  remove_attribute(SlabWithPore self, SparseParticleIndexKey a0)
3110  """
3111  return _IMP_npc.SlabWithPore_remove_attribute(self, *args)
3112 
3113  def has_attribute(self, *args):
3114  r"""
3115  has_attribute(SlabWithPore self, FloatKey a0) -> bool
3116  has_attribute(SlabWithPore self, IntKey a0) -> bool
3117  has_attribute(SlabWithPore self, FloatsKey a0) -> bool
3118  has_attribute(SlabWithPore self, IntsKey a0) -> bool
3119  has_attribute(SlabWithPore self, StringKey a0) -> bool
3120  has_attribute(SlabWithPore self, ParticleIndexKey a0) -> bool
3121  has_attribute(SlabWithPore self, ObjectKey a0) -> bool
3122  has_attribute(SlabWithPore self, SparseFloatKey a0) -> bool
3123  has_attribute(SlabWithPore self, SparseIntKey a0) -> bool
3124  has_attribute(SlabWithPore self, SparseStringKey a0) -> bool
3125  has_attribute(SlabWithPore self, SparseParticleIndexKey a0) -> bool
3126  """
3127  return _IMP_npc.SlabWithPore_has_attribute(self, *args)
3128 
3129  def get_derivative(self, a0):
3130  r"""get_derivative(SlabWithPore self, FloatKey a0) -> double"""
3131  return _IMP_npc.SlabWithPore_get_derivative(self, a0)
3132 
3133  def get_name(self):
3134  r"""get_name(SlabWithPore self) -> std::string"""
3135  return _IMP_npc.SlabWithPore_get_name(self)
3136 
3137  def clear_caches(self):
3138  r"""clear_caches(SlabWithPore self)"""
3139  return _IMP_npc.SlabWithPore_clear_caches(self)
3140 
3141  def set_name(self, a0):
3142  r"""set_name(SlabWithPore self, std::string a0)"""
3143  return _IMP_npc.SlabWithPore_set_name(self, a0)
3144 
3145  def set_check_level(self, a0):
3146  r"""set_check_level(SlabWithPore self, IMP::CheckLevel a0)"""
3147  return _IMP_npc.SlabWithPore_set_check_level(self, a0)
3148 
3149  def add_to_derivative(self, a0, a1, a2):
3150  r"""add_to_derivative(SlabWithPore self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3151  return _IMP_npc.SlabWithPore_add_to_derivative(self, a0, a1, a2)
3152 
3153  def set_is_optimized(self, a0, a1):
3154  r"""set_is_optimized(SlabWithPore self, FloatKey a0, bool a1)"""
3155  return _IMP_npc.SlabWithPore_set_is_optimized(self, a0, a1)
3156 
3157  def get_is_optimized(self, a0):
3158  r"""get_is_optimized(SlabWithPore self, FloatKey a0) -> bool"""
3159  return _IMP_npc.SlabWithPore_get_is_optimized(self, a0)
3160 
3161  def get_check_level(self):
3162  r"""get_check_level(SlabWithPore self) -> IMP::CheckLevel"""
3163  return _IMP_npc.SlabWithPore_get_check_level(self)
3164 
3165  def __eq__(self, *args):
3166  r"""
3167  __eq__(SlabWithPore self, SlabWithPore o) -> bool
3168  __eq__(SlabWithPore self, Particle d) -> bool
3169  """
3170  return _IMP_npc.SlabWithPore___eq__(self, *args)
3171 
3172  def __ne__(self, *args):
3173  r"""
3174  __ne__(SlabWithPore self, SlabWithPore o) -> bool
3175  __ne__(SlabWithPore self, Particle d) -> bool
3176  """
3177  return _IMP_npc.SlabWithPore___ne__(self, *args)
3178 
3179  def __le__(self, *args):
3180  r"""
3181  __le__(SlabWithPore self, SlabWithPore o) -> bool
3182  __le__(SlabWithPore self, Particle d) -> bool
3183  """
3184  return _IMP_npc.SlabWithPore___le__(self, *args)
3185 
3186  def __lt__(self, *args):
3187  r"""
3188  __lt__(SlabWithPore self, SlabWithPore o) -> bool
3189  __lt__(SlabWithPore self, Particle d) -> bool
3190  """
3191  return _IMP_npc.SlabWithPore___lt__(self, *args)
3192 
3193  def __ge__(self, *args):
3194  r"""
3195  __ge__(SlabWithPore self, SlabWithPore o) -> bool
3196  __ge__(SlabWithPore self, Particle d) -> bool
3197  """
3198  return _IMP_npc.SlabWithPore___ge__(self, *args)
3199 
3200  def __gt__(self, *args):
3201  r"""
3202  __gt__(SlabWithPore self, SlabWithPore o) -> bool
3203  __gt__(SlabWithPore self, Particle d) -> bool
3204  """
3205  return _IMP_npc.SlabWithPore___gt__(self, *args)
3206 
3207  def __hash__(self):
3208  r"""__hash__(SlabWithPore self) -> std::size_t"""
3209  return _IMP_npc.SlabWithPore___hash__(self)
3210 
3211  def __str__(self):
3212  r"""__str__(SlabWithPore self) -> std::string"""
3213  return _IMP_npc.SlabWithPore___str__(self)
3214 
3215  def __repr__(self):
3216  r"""__repr__(SlabWithPore self) -> std::string"""
3217  return _IMP_npc.SlabWithPore___repr__(self)
3218 
3219  def _get_as_binary(self):
3220  r"""_get_as_binary(SlabWithPore self) -> PyObject *"""
3221  return _IMP_npc.SlabWithPore__get_as_binary(self)
3222 
3223  def _set_from_binary(self, p):
3224  r"""_set_from_binary(SlabWithPore self, PyObject * p)"""
3225  return _IMP_npc.SlabWithPore__set_from_binary(self, p)
3226 
3227  def __getstate__(self):
3228  p = self._get_as_binary()
3229  if len(self.__dict__) > 1:
3230  d = self.__dict__.copy()
3231  del d['this']
3232  p = (d, p)
3233  return p
3234 
3235  def __setstate__(self, p):
3236  if not hasattr(self, 'this'):
3237  self.__init__()
3238  if isinstance(p, tuple):
3239  d, p = p
3240  self.__dict__.update(d)
3241  return self._set_from_binary(p)
3242 
3243  __swig_destroy__ = _IMP_npc.delete_SlabWithPore
3244 
3245 # Register SlabWithPore in _IMP_npc:
3246 _IMP_npc.SlabWithPore_swigregister(SlabWithPore)
3247 class SlabWithToroidalPore(SlabWithPore):
3248  r"""Proxy of C++ IMP::npc::SlabWithToroidalPore class."""
3249 
3250  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3251 
3252  def __init__(self, *args):
3253  r"""
3254  __init__(SlabWithToroidalPore self) -> SlabWithToroidalPore
3255  __init__(SlabWithToroidalPore self, Model m, ParticleIndex id) -> SlabWithToroidalPore
3256  __init__(SlabWithToroidalPore self, _ParticleAdaptor d) -> SlabWithToroidalPore
3257  """
3258  _IMP_npc.SlabWithToroidalPore_swiginit(self, _IMP_npc.new_SlabWithToroidalPore(*args))
3259 
3260  def show(self, *args):
3261  r"""show(SlabWithToroidalPore self, _ostream out=std::cout)"""
3262  return _IMP_npc.SlabWithToroidalPore_show(self, *args)
3263 
3264  @staticmethod
3265  def setup_particle(*args):
3266  r"""
3267  setup_particle(Model m, ParticleIndex pi, double thickness, double major_radius) -> SlabWithToroidalPore
3268  setup_particle(_ParticleAdaptor pa, double thickness, double major_radius) -> SlabWithToroidalPore
3269  setup_particle(Model m, ParticleIndex pi, double thickness, double major_radius, double minor_radius_h2v_aspect_ratio) -> SlabWithToroidalPore
3270  setup_particle(_ParticleAdaptor pa, double thickness, double major_radius, double minor_radius_h2v_aspect_ratio) -> SlabWithToroidalPore
3271  """
3272  return _IMP_npc.SlabWithToroidalPore_setup_particle(*args)
3273 
3274  @staticmethod
3275  def get_is_setup(*args):
3276  r"""
3277  get_is_setup(_ParticleAdaptor p) -> bool
3278  get_is_setup(Model m, ParticleIndex pi) -> bool
3279  """
3280  return _IMP_npc.SlabWithToroidalPore_get_is_setup(*args)
3281 
3282  def set_minor_radius_h2v_aspect_ratio(self, aspect_ratio):
3283  r"""set_minor_radius_h2v_aspect_ratio(SlabWithToroidalPore self, double aspect_ratio)"""
3284  return _IMP_npc.SlabWithToroidalPore_set_minor_radius_h2v_aspect_ratio(self, aspect_ratio)
3285 
3286  def get_minor_radius_h2v_aspect_ratio(self):
3287  r"""get_minor_radius_h2v_aspect_ratio(SlabWithToroidalPore self) -> double"""
3288  return _IMP_npc.SlabWithToroidalPore_get_minor_radius_h2v_aspect_ratio(self)
3289 
3290  def get_vertical_minor_radius(self):
3291  r"""get_vertical_minor_radius(SlabWithToroidalPore self) -> double"""
3292  return _IMP_npc.SlabWithToroidalPore_get_vertical_minor_radius(self)
3293 
3294  def set_vertical_minor_radius(self, rv):
3295  r"""set_vertical_minor_radius(SlabWithToroidalPore self, double rv)"""
3296  return _IMP_npc.SlabWithToroidalPore_set_vertical_minor_radius(self, rv)
3297 
3298  def get_horizontal_minor_radius(self):
3299  r"""get_horizontal_minor_radius(SlabWithToroidalPore self) -> double"""
3300  return _IMP_npc.SlabWithToroidalPore_get_horizontal_minor_radius(self)
3301 
3302  def set_horizontal_minor_radius(self, rh):
3303  r"""set_horizontal_minor_radius(SlabWithToroidalPore self, double rh)"""
3304  return _IMP_npc.SlabWithToroidalPore_set_horizontal_minor_radius(self, rh)
3305 
3306  @staticmethod
3307  def get_minor_radius_h2v_aspect_ratio_key():
3308  r"""get_minor_radius_h2v_aspect_ratio_key() -> FloatKey"""
3309  return _IMP_npc.SlabWithToroidalPore_get_minor_radius_h2v_aspect_ratio_key()
3310 
3311  @staticmethod
3312  def get_toroidal_pore_key():
3313  r"""get_toroidal_pore_key() -> IntKey"""
3314  return _IMP_npc.SlabWithToroidalPore_get_toroidal_pore_key()
3315 
3316  def add_attribute(self, *args):
3317  r"""
3318  add_attribute(SlabWithToroidalPore self, FloatKey k, IMP::Float v, bool opt)
3319  add_attribute(SlabWithToroidalPore self, FloatKey a0, IMP::Float a1)
3320  add_attribute(SlabWithToroidalPore self, IntKey a0, IMP::Int a1)
3321  add_attribute(SlabWithToroidalPore self, FloatsKey a0, IMP::Floats a1)
3322  add_attribute(SlabWithToroidalPore self, IntsKey a0, IMP::Ints a1)
3323  add_attribute(SlabWithToroidalPore self, StringKey a0, IMP::String a1)
3324  add_attribute(SlabWithToroidalPore self, ParticleIndexKey a0, Particle a1)
3325  add_attribute(SlabWithToroidalPore self, ObjectKey a0, Object a1)
3326  add_attribute(SlabWithToroidalPore self, SparseFloatKey a0, IMP::Float a1)
3327  add_attribute(SlabWithToroidalPore self, SparseIntKey a0, IMP::Int a1)
3328  add_attribute(SlabWithToroidalPore self, SparseStringKey a0, IMP::String a1)
3329  add_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3330  """
3331  return _IMP_npc.SlabWithToroidalPore_add_attribute(self, *args)
3332 
3333  def get_value(self, *args):
3334  r"""
3335  get_value(SlabWithToroidalPore self, FloatKey a0) -> IMP::Float
3336  get_value(SlabWithToroidalPore self, IntKey a0) -> IMP::Int
3337  get_value(SlabWithToroidalPore self, FloatsKey a0) -> IMP::Floats
3338  get_value(SlabWithToroidalPore self, IntsKey a0) -> IMP::Ints
3339  get_value(SlabWithToroidalPore self, StringKey a0) -> IMP::String
3340  get_value(SlabWithToroidalPore self, ParticleIndexKey a0) -> Particle
3341  get_value(SlabWithToroidalPore self, ObjectKey a0) -> Object
3342  get_value(SlabWithToroidalPore self, SparseFloatKey a0) -> IMP::Float
3343  get_value(SlabWithToroidalPore self, SparseIntKey a0) -> IMP::Int
3344  get_value(SlabWithToroidalPore self, SparseStringKey a0) -> IMP::String
3345  get_value(SlabWithToroidalPore self, SparseParticleIndexKey a0) -> ParticleIndex
3346  """
3347  return _IMP_npc.SlabWithToroidalPore_get_value(self, *args)
3348 
3349  def set_value(self, *args):
3350  r"""
3351  set_value(SlabWithToroidalPore self, FloatKey a0, IMP::Float a1)
3352  set_value(SlabWithToroidalPore self, IntKey a0, IMP::Int a1)
3353  set_value(SlabWithToroidalPore self, FloatsKey a0, IMP::Floats a1)
3354  set_value(SlabWithToroidalPore self, IntsKey a0, IMP::Ints a1)
3355  set_value(SlabWithToroidalPore self, StringKey a0, IMP::String a1)
3356  set_value(SlabWithToroidalPore self, ParticleIndexKey a0, Particle a1)
3357  set_value(SlabWithToroidalPore self, ObjectKey a0, Object a1)
3358  set_value(SlabWithToroidalPore self, SparseFloatKey a0, IMP::Float a1)
3359  set_value(SlabWithToroidalPore self, SparseIntKey a0, IMP::Int a1)
3360  set_value(SlabWithToroidalPore self, SparseStringKey a0, IMP::String a1)
3361  set_value(SlabWithToroidalPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3362  """
3363  return _IMP_npc.SlabWithToroidalPore_set_value(self, *args)
3364 
3365  def remove_attribute(self, *args):
3366  r"""
3367  remove_attribute(SlabWithToroidalPore self, FloatKey a0)
3368  remove_attribute(SlabWithToroidalPore self, IntKey a0)
3369  remove_attribute(SlabWithToroidalPore self, FloatsKey a0)
3370  remove_attribute(SlabWithToroidalPore self, IntsKey a0)
3371  remove_attribute(SlabWithToroidalPore self, StringKey a0)
3372  remove_attribute(SlabWithToroidalPore self, ParticleIndexKey a0)
3373  remove_attribute(SlabWithToroidalPore self, ObjectKey a0)
3374  remove_attribute(SlabWithToroidalPore self, SparseFloatKey a0)
3375  remove_attribute(SlabWithToroidalPore self, SparseIntKey a0)
3376  remove_attribute(SlabWithToroidalPore self, SparseStringKey a0)
3377  remove_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0)
3378  """
3379  return _IMP_npc.SlabWithToroidalPore_remove_attribute(self, *args)
3380 
3381  def has_attribute(self, *args):
3382  r"""
3383  has_attribute(SlabWithToroidalPore self, FloatKey a0) -> bool
3384  has_attribute(SlabWithToroidalPore self, IntKey a0) -> bool
3385  has_attribute(SlabWithToroidalPore self, FloatsKey a0) -> bool
3386  has_attribute(SlabWithToroidalPore self, IntsKey a0) -> bool
3387  has_attribute(SlabWithToroidalPore self, StringKey a0) -> bool
3388  has_attribute(SlabWithToroidalPore self, ParticleIndexKey a0) -> bool
3389  has_attribute(SlabWithToroidalPore self, ObjectKey a0) -> bool
3390  has_attribute(SlabWithToroidalPore self, SparseFloatKey a0) -> bool
3391  has_attribute(SlabWithToroidalPore self, SparseIntKey a0) -> bool
3392  has_attribute(SlabWithToroidalPore self, SparseStringKey a0) -> bool
3393  has_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0) -> bool
3394  """
3395  return _IMP_npc.SlabWithToroidalPore_has_attribute(self, *args)
3396 
3397  def get_derivative(self, a0):
3398  r"""get_derivative(SlabWithToroidalPore self, FloatKey a0) -> double"""
3399  return _IMP_npc.SlabWithToroidalPore_get_derivative(self, a0)
3400 
3401  def get_name(self):
3402  r"""get_name(SlabWithToroidalPore self) -> std::string"""
3403  return _IMP_npc.SlabWithToroidalPore_get_name(self)
3404 
3405  def clear_caches(self):
3406  r"""clear_caches(SlabWithToroidalPore self)"""
3407  return _IMP_npc.SlabWithToroidalPore_clear_caches(self)
3408 
3409  def set_name(self, a0):
3410  r"""set_name(SlabWithToroidalPore self, std::string a0)"""
3411  return _IMP_npc.SlabWithToroidalPore_set_name(self, a0)
3412 
3413  def set_check_level(self, a0):
3414  r"""set_check_level(SlabWithToroidalPore self, IMP::CheckLevel a0)"""
3415  return _IMP_npc.SlabWithToroidalPore_set_check_level(self, a0)
3416 
3417  def add_to_derivative(self, a0, a1, a2):
3418  r"""add_to_derivative(SlabWithToroidalPore self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3419  return _IMP_npc.SlabWithToroidalPore_add_to_derivative(self, a0, a1, a2)
3420 
3421  def set_is_optimized(self, a0, a1):
3422  r"""set_is_optimized(SlabWithToroidalPore self, FloatKey a0, bool a1)"""
3423  return _IMP_npc.SlabWithToroidalPore_set_is_optimized(self, a0, a1)
3424 
3425  def get_is_optimized(self, a0):
3426  r"""get_is_optimized(SlabWithToroidalPore self, FloatKey a0) -> bool"""
3427  return _IMP_npc.SlabWithToroidalPore_get_is_optimized(self, a0)
3428 
3429  def get_check_level(self):
3430  r"""get_check_level(SlabWithToroidalPore self) -> IMP::CheckLevel"""
3431  return _IMP_npc.SlabWithToroidalPore_get_check_level(self)
3432 
3433  def __eq__(self, *args):
3434  r"""
3435  __eq__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3436  __eq__(SlabWithToroidalPore self, Particle d) -> bool
3437  """
3438  return _IMP_npc.SlabWithToroidalPore___eq__(self, *args)
3439 
3440  def __ne__(self, *args):
3441  r"""
3442  __ne__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3443  __ne__(SlabWithToroidalPore self, Particle d) -> bool
3444  """
3445  return _IMP_npc.SlabWithToroidalPore___ne__(self, *args)
3446 
3447  def __le__(self, *args):
3448  r"""
3449  __le__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3450  __le__(SlabWithToroidalPore self, Particle d) -> bool
3451  """
3452  return _IMP_npc.SlabWithToroidalPore___le__(self, *args)
3453 
3454  def __lt__(self, *args):
3455  r"""
3456  __lt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3457  __lt__(SlabWithToroidalPore self, Particle d) -> bool
3458  """
3459  return _IMP_npc.SlabWithToroidalPore___lt__(self, *args)
3460 
3461  def __ge__(self, *args):
3462  r"""
3463  __ge__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3464  __ge__(SlabWithToroidalPore self, Particle d) -> bool
3465  """
3466  return _IMP_npc.SlabWithToroidalPore___ge__(self, *args)
3467 
3468  def __gt__(self, *args):
3469  r"""
3470  __gt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3471  __gt__(SlabWithToroidalPore self, Particle d) -> bool
3472  """
3473  return _IMP_npc.SlabWithToroidalPore___gt__(self, *args)
3474 
3475  def __hash__(self):
3476  r"""__hash__(SlabWithToroidalPore self) -> std::size_t"""
3477  return _IMP_npc.SlabWithToroidalPore___hash__(self)
3478 
3479  def __str__(self):
3480  r"""__str__(SlabWithToroidalPore self) -> std::string"""
3481  return _IMP_npc.SlabWithToroidalPore___str__(self)
3482 
3483  def __repr__(self):
3484  r"""__repr__(SlabWithToroidalPore self) -> std::string"""
3485  return _IMP_npc.SlabWithToroidalPore___repr__(self)
3486 
3487  def _get_as_binary(self):
3488  r"""_get_as_binary(SlabWithToroidalPore self) -> PyObject *"""
3489  return _IMP_npc.SlabWithToroidalPore__get_as_binary(self)
3490 
3491  def _set_from_binary(self, p):
3492  r"""_set_from_binary(SlabWithToroidalPore self, PyObject * p)"""
3493  return _IMP_npc.SlabWithToroidalPore__set_from_binary(self, p)
3494 
3495  def __getstate__(self):
3496  p = self._get_as_binary()
3497  if len(self.__dict__) > 1:
3498  d = self.__dict__.copy()
3499  del d['this']
3500  p = (d, p)
3501  return p
3502 
3503  def __setstate__(self, p):
3504  if not hasattr(self, 'this'):
3505  self.__init__()
3506  if isinstance(p, tuple):
3507  d, p = p
3508  self.__dict__.update(d)
3509  return self._set_from_binary(p)
3510 
3511  __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPore
3512 
3513 # Register SlabWithToroidalPore in _IMP_npc:
3514 _IMP_npc.SlabWithToroidalPore_swigregister(SlabWithToroidalPore)
3515 
3516 def __lshift__(*args):
3517  r"""
3518  __lshift__(_ostream out, SlabWithSphericalIndent n) -> _ostream
3519  __lshift__(_ostream out, SlabWithPore n) -> _ostream
3520  __lshift__(_ostream out, SlabWithToroidalPore n) -> _ostream
3521  """
3522  return _IMP_npc.__lshift__(*args)
3523 class SlabWithToroidalPoreWireGeometry(IMP.display.Geometry):
3524  r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreWireGeometry class."""
3525 
3526  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3527 
3528  def __init__(self, *args):
3529  r"""
3530  __init__(SlabWithToroidalPoreWireGeometry self, double slab_height, double major_radius, double horizontal_semiaxis, double slab_length) -> SlabWithToroidalPoreWireGeometry
3531  __init__(SlabWithToroidalPoreWireGeometry self, double slab_height, double major_radius, double slab_length) -> SlabWithToroidalPoreWireGeometry
3532  """
3533  _IMP_npc.SlabWithToroidalPoreWireGeometry_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreWireGeometry(*args))
3534 
3535  def get_version_info(self):
3536  r"""get_version_info(SlabWithToroidalPoreWireGeometry self) -> VersionInfo"""
3537  return _IMP_npc.SlabWithToroidalPoreWireGeometry_get_version_info(self)
3538  __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreWireGeometry
3539 
3540  def __str__(self):
3541  r"""__str__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3542  return _IMP_npc.SlabWithToroidalPoreWireGeometry___str__(self)
3543 
3544  def __repr__(self):
3545  r"""__repr__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3546  return _IMP_npc.SlabWithToroidalPoreWireGeometry___repr__(self)
3547 
3548  @staticmethod
3549  def get_from(o):
3550  return _object_cast_to_SlabWithToroidalPoreWireGeometry(o)
3551 
3552 
3553 # Register SlabWithToroidalPoreWireGeometry in _IMP_npc:
3554 _IMP_npc.SlabWithToroidalPoreWireGeometry_swigregister(SlabWithToroidalPoreWireGeometry)
3555 
3556 def get_module_version():
3557  r"""get_module_version() -> std::string const"""
3558  return _IMP_npc.get_module_version()
3559 
3560 def get_example_path(fname):
3561  r"""get_example_path(std::string fname) -> std::string"""
3562  return _IMP_npc.get_example_path(fname)
3563 
3564 def get_data_path(fname):
3565  r"""get_data_path(std::string fname) -> std::string"""
3566  return _IMP_npc.get_data_path(fname)
3567 
3568 from . import _version_check
3569 _version_check.check_version(get_module_version())
3570 __version__ = get_module_version()
3571 
3572 
def get_example_path
Return the full path to one of this module's example files.
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:80
def get_module_version
Return the version of this module, as a string.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
The base class for geometry.
Make CGAL functionality available to IMP.
void add_particle(RMF::FileHandle fh, Particle *hs)
Composable functors to implement scores via compile-time composition.
def get_data_path
Return the full path to one of this module's data files.
Interface to specialized Particle types (e.g. atoms)
Definition: Decorator.h:119
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Output IMP model data in various file formats.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:72
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:56