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