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