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