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