IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
npc/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.1.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-2023 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 class ZAxialPositionRestraint(IMP.Restraint):
506  r"""Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
507 
508  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
509 
510  def __init__(self, *args):
511  r"""
512  __init__(ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
513  __init__(ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
514  __init__(ZAxialPositionRestraint self) -> ZAxialPositionRestraint
515  """
516  _IMP_npc.ZAxialPositionRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionRestraint(*args))
517 
518  def add_particle(self, p):
519  r"""add_particle(ZAxialPositionRestraint self, Particle p)"""
520  return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
521 
522  def add_particles(self, ps):
523  r"""add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
524  return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
525 
526  def set_particles(self, ps):
527  r"""set_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
528  return _IMP_npc.ZAxialPositionRestraint_set_particles(self, ps)
529 
530  def do_get_inputs(self):
531  r"""do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
532  return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
533 
534  def get_version_info(self):
535  r"""get_version_info(ZAxialPositionRestraint self) -> VersionInfo"""
536  return _IMP_npc.ZAxialPositionRestraint_get_version_info(self)
537  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionRestraint
538 
539  def __str__(self):
540  r"""__str__(ZAxialPositionRestraint self) -> std::string"""
541  return _IMP_npc.ZAxialPositionRestraint___str__(self)
542 
543  def __repr__(self):
544  r"""__repr__(ZAxialPositionRestraint self) -> std::string"""
545  return _IMP_npc.ZAxialPositionRestraint___repr__(self)
546 
547  @staticmethod
548  def get_from(o):
549  return _object_cast_to_ZAxialPositionRestraint(o)
550 
551 
552  def _get_as_binary(self):
553  r"""_get_as_binary(ZAxialPositionRestraint self) -> PyObject *"""
554  return _IMP_npc.ZAxialPositionRestraint__get_as_binary(self)
555 
556  def _set_from_binary(self, p):
557  r"""_set_from_binary(ZAxialPositionRestraint self, PyObject * p)"""
558  return _IMP_npc.ZAxialPositionRestraint__set_from_binary(self, p)
559 
560  def __getstate__(self):
561  p = self._get_as_binary()
562  if len(self.__dict__) > 1:
563  d = self.__dict__.copy()
564  del d['this']
565  p = (d, p)
566  return p
567 
568  def __setstate__(self, p):
569  if not hasattr(self, 'this'):
570  self.__init__()
571  if isinstance(p, tuple):
572  d, p = p
573  self.__dict__.update(d)
574  return self._set_from_binary(p)
575 
576 
577 # Register ZAxialPositionRestraint in _IMP_npc:
578 _IMP_npc.ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
579 class ZAxialPositionLowerRestraint(IMP.Restraint):
580  r"""Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
581 
582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
583 
584  def __init__(self, *args):
585  r"""
586  __init__(ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
587  __init__(ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
588  __init__(ZAxialPositionLowerRestraint self) -> ZAxialPositionLowerRestraint
589  """
590  _IMP_npc.ZAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionLowerRestraint(*args))
591 
592  def add_particle(self, p):
593  r"""add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
594  return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
595 
596  def add_particles(self, ps):
597  r"""add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
598  return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
599 
600  def set_particles(self, ps):
601  r"""set_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
602  return _IMP_npc.ZAxialPositionLowerRestraint_set_particles(self, ps)
603 
604  def do_get_inputs(self):
605  r"""do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
606  return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
607 
608  def get_version_info(self):
609  r"""get_version_info(ZAxialPositionLowerRestraint self) -> VersionInfo"""
610  return _IMP_npc.ZAxialPositionLowerRestraint_get_version_info(self)
611  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionLowerRestraint
612 
613  def __str__(self):
614  r"""__str__(ZAxialPositionLowerRestraint self) -> std::string"""
615  return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
616 
617  def __repr__(self):
618  r"""__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
619  return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
620 
621  @staticmethod
622  def get_from(o):
623  return _object_cast_to_ZAxialPositionLowerRestraint(o)
624 
625 
626  def _get_as_binary(self):
627  r"""_get_as_binary(ZAxialPositionLowerRestraint self) -> PyObject *"""
628  return _IMP_npc.ZAxialPositionLowerRestraint__get_as_binary(self)
629 
630  def _set_from_binary(self, p):
631  r"""_set_from_binary(ZAxialPositionLowerRestraint self, PyObject * p)"""
632  return _IMP_npc.ZAxialPositionLowerRestraint__set_from_binary(self, p)
633 
634  def __getstate__(self):
635  p = self._get_as_binary()
636  if len(self.__dict__) > 1:
637  d = self.__dict__.copy()
638  del d['this']
639  p = (d, p)
640  return p
641 
642  def __setstate__(self, p):
643  if not hasattr(self, 'this'):
644  self.__init__()
645  if isinstance(p, tuple):
646  d, p = p
647  self.__dict__.update(d)
648  return self._set_from_binary(p)
649 
650 
651 # Register ZAxialPositionLowerRestraint in _IMP_npc:
652 _IMP_npc.ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
653 class ZAxialPositionUpperRestraint(IMP.Restraint):
654  r"""Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
655 
656  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
657 
658  def __init__(self, *args):
659  r"""
660  __init__(ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
661  __init__(ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
662  __init__(ZAxialPositionUpperRestraint self) -> ZAxialPositionUpperRestraint
663  """
664  _IMP_npc.ZAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionUpperRestraint(*args))
665 
666  def add_particle(self, p):
667  r"""add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
668  return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
669 
670  def add_particles(self, ps):
671  r"""add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
672  return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
673 
674  def set_particles(self, ps):
675  r"""set_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
676  return _IMP_npc.ZAxialPositionUpperRestraint_set_particles(self, ps)
677 
678  def do_get_inputs(self):
679  r"""do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
680  return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
681 
682  def get_version_info(self):
683  r"""get_version_info(ZAxialPositionUpperRestraint self) -> VersionInfo"""
684  return _IMP_npc.ZAxialPositionUpperRestraint_get_version_info(self)
685  __swig_destroy__ = _IMP_npc.delete_ZAxialPositionUpperRestraint
686 
687  def __str__(self):
688  r"""__str__(ZAxialPositionUpperRestraint self) -> std::string"""
689  return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
690 
691  def __repr__(self):
692  r"""__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
693  return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
694 
695  @staticmethod
696  def get_from(o):
697  return _object_cast_to_ZAxialPositionUpperRestraint(o)
698 
699 
700  def _get_as_binary(self):
701  r"""_get_as_binary(ZAxialPositionUpperRestraint self) -> PyObject *"""
702  return _IMP_npc.ZAxialPositionUpperRestraint__get_as_binary(self)
703 
704  def _set_from_binary(self, p):
705  r"""_set_from_binary(ZAxialPositionUpperRestraint self, PyObject * p)"""
706  return _IMP_npc.ZAxialPositionUpperRestraint__set_from_binary(self, p)
707 
708  def __getstate__(self):
709  p = self._get_as_binary()
710  if len(self.__dict__) > 1:
711  d = self.__dict__.copy()
712  del d['this']
713  p = (d, p)
714  return p
715 
716  def __setstate__(self, p):
717  if not hasattr(self, 'this'):
718  self.__init__()
719  if isinstance(p, tuple):
720  d, p = p
721  self.__dict__.update(d)
722  return self._set_from_binary(p)
723 
724 
725 # Register ZAxialPositionUpperRestraint in _IMP_npc:
726 _IMP_npc.ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
727 class YAxialPositionRestraint(IMP.Restraint):
728  r"""Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
729 
730  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
731 
732  def __init__(self, *args):
733  r"""
734  __init__(YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
735  __init__(YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
736  __init__(YAxialPositionRestraint self) -> YAxialPositionRestraint
737  """
738  _IMP_npc.YAxialPositionRestraint_swiginit(self, _IMP_npc.new_YAxialPositionRestraint(*args))
739 
740  def add_particle(self, p):
741  r"""add_particle(YAxialPositionRestraint self, Particle p)"""
742  return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
743 
744  def add_particles(self, ps):
745  r"""add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
746  return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
747 
748  def set_particles(self, ps):
749  r"""set_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
750  return _IMP_npc.YAxialPositionRestraint_set_particles(self, ps)
751 
752  def do_get_inputs(self):
753  r"""do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
754  return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
755 
756  def get_version_info(self):
757  r"""get_version_info(YAxialPositionRestraint self) -> VersionInfo"""
758  return _IMP_npc.YAxialPositionRestraint_get_version_info(self)
759  __swig_destroy__ = _IMP_npc.delete_YAxialPositionRestraint
760 
761  def __str__(self):
762  r"""__str__(YAxialPositionRestraint self) -> std::string"""
763  return _IMP_npc.YAxialPositionRestraint___str__(self)
764 
765  def __repr__(self):
766  r"""__repr__(YAxialPositionRestraint self) -> std::string"""
767  return _IMP_npc.YAxialPositionRestraint___repr__(self)
768 
769  @staticmethod
770  def get_from(o):
771  return _object_cast_to_YAxialPositionRestraint(o)
772 
773 
774  def _get_as_binary(self):
775  r"""_get_as_binary(YAxialPositionRestraint self) -> PyObject *"""
776  return _IMP_npc.YAxialPositionRestraint__get_as_binary(self)
777 
778  def _set_from_binary(self, p):
779  r"""_set_from_binary(YAxialPositionRestraint self, PyObject * p)"""
780  return _IMP_npc.YAxialPositionRestraint__set_from_binary(self, p)
781 
782  def __getstate__(self):
783  p = self._get_as_binary()
784  if len(self.__dict__) > 1:
785  d = self.__dict__.copy()
786  del d['this']
787  p = (d, p)
788  return p
789 
790  def __setstate__(self, p):
791  if not hasattr(self, 'this'):
792  self.__init__()
793  if isinstance(p, tuple):
794  d, p = p
795  self.__dict__.update(d)
796  return self._set_from_binary(p)
797 
798 
799 # Register YAxialPositionRestraint in _IMP_npc:
800 _IMP_npc.YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
801 class YAxialPositionLowerRestraint(IMP.Restraint):
802  r"""Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
803 
804  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
805 
806  def __init__(self, *args):
807  r"""
808  __init__(YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
809  __init__(YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
810  __init__(YAxialPositionLowerRestraint self) -> YAxialPositionLowerRestraint
811  """
812  _IMP_npc.YAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_YAxialPositionLowerRestraint(*args))
813 
814  def add_particle(self, p):
815  r"""add_particle(YAxialPositionLowerRestraint self, Particle p)"""
816  return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
817 
818  def add_particles(self, ps):
819  r"""add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
820  return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
821 
822  def set_particles(self, ps):
823  r"""set_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
824  return _IMP_npc.YAxialPositionLowerRestraint_set_particles(self, ps)
825 
826  def do_get_inputs(self):
827  r"""do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
828  return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
829 
830  def get_version_info(self):
831  r"""get_version_info(YAxialPositionLowerRestraint self) -> VersionInfo"""
832  return _IMP_npc.YAxialPositionLowerRestraint_get_version_info(self)
833  __swig_destroy__ = _IMP_npc.delete_YAxialPositionLowerRestraint
834 
835  def __str__(self):
836  r"""__str__(YAxialPositionLowerRestraint self) -> std::string"""
837  return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
838 
839  def __repr__(self):
840  r"""__repr__(YAxialPositionLowerRestraint self) -> std::string"""
841  return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
842 
843  @staticmethod
844  def get_from(o):
845  return _object_cast_to_YAxialPositionLowerRestraint(o)
846 
847 
848  def _get_as_binary(self):
849  r"""_get_as_binary(YAxialPositionLowerRestraint self) -> PyObject *"""
850  return _IMP_npc.YAxialPositionLowerRestraint__get_as_binary(self)
851 
852  def _set_from_binary(self, p):
853  r"""_set_from_binary(YAxialPositionLowerRestraint self, PyObject * p)"""
854  return _IMP_npc.YAxialPositionLowerRestraint__set_from_binary(self, p)
855 
856  def __getstate__(self):
857  p = self._get_as_binary()
858  if len(self.__dict__) > 1:
859  d = self.__dict__.copy()
860  del d['this']
861  p = (d, p)
862  return p
863 
864  def __setstate__(self, p):
865  if not hasattr(self, 'this'):
866  self.__init__()
867  if isinstance(p, tuple):
868  d, p = p
869  self.__dict__.update(d)
870  return self._set_from_binary(p)
871 
872 
873 # Register YAxialPositionLowerRestraint in _IMP_npc:
874 _IMP_npc.YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
875 class YAxialPositionUpperRestraint(IMP.Restraint):
876  r"""Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
877 
878  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
879 
880  def __init__(self, *args):
881  r"""
882  __init__(YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
883  __init__(YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
884  __init__(YAxialPositionUpperRestraint self) -> YAxialPositionUpperRestraint
885  """
886  _IMP_npc.YAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_YAxialPositionUpperRestraint(*args))
887 
888  def add_particle(self, p):
889  r"""add_particle(YAxialPositionUpperRestraint self, Particle p)"""
890  return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
891 
892  def add_particles(self, ps):
893  r"""add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
894  return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
895 
896  def set_particles(self, ps):
897  r"""set_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
898  return _IMP_npc.YAxialPositionUpperRestraint_set_particles(self, ps)
899 
900  def do_get_inputs(self):
901  r"""do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
902  return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
903 
904  def get_version_info(self):
905  r"""get_version_info(YAxialPositionUpperRestraint self) -> VersionInfo"""
906  return _IMP_npc.YAxialPositionUpperRestraint_get_version_info(self)
907  __swig_destroy__ = _IMP_npc.delete_YAxialPositionUpperRestraint
908 
909  def __str__(self):
910  r"""__str__(YAxialPositionUpperRestraint self) -> std::string"""
911  return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
912 
913  def __repr__(self):
914  r"""__repr__(YAxialPositionUpperRestraint self) -> std::string"""
915  return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
916 
917  @staticmethod
918  def get_from(o):
919  return _object_cast_to_YAxialPositionUpperRestraint(o)
920 
921 
922  def _get_as_binary(self):
923  r"""_get_as_binary(YAxialPositionUpperRestraint self) -> PyObject *"""
924  return _IMP_npc.YAxialPositionUpperRestraint__get_as_binary(self)
925 
926  def _set_from_binary(self, p):
927  r"""_set_from_binary(YAxialPositionUpperRestraint self, PyObject * p)"""
928  return _IMP_npc.YAxialPositionUpperRestraint__set_from_binary(self, p)
929 
930  def __getstate__(self):
931  p = self._get_as_binary()
932  if len(self.__dict__) > 1:
933  d = self.__dict__.copy()
934  del d['this']
935  p = (d, p)
936  return p
937 
938  def __setstate__(self, p):
939  if not hasattr(self, 'this'):
940  self.__init__()
941  if isinstance(p, tuple):
942  d, p = p
943  self.__dict__.update(d)
944  return self._set_from_binary(p)
945 
946 
947 # Register YAxialPositionUpperRestraint in _IMP_npc:
948 _IMP_npc.YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
949 class XYRadialPositionRestraint(IMP.Restraint):
950  r"""Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
951 
952  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
953 
954  def __init__(self, *args):
955  r"""
956  __init__(XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
957  __init__(XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
958  __init__(XYRadialPositionRestraint self) -> XYRadialPositionRestraint
959  """
960  _IMP_npc.XYRadialPositionRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionRestraint(*args))
961 
962  def add_particle(self, p):
963  r"""add_particle(XYRadialPositionRestraint self, Particle p)"""
964  return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
965 
966  def add_particles(self, ps):
967  r"""add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
968  return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
969 
970  def set_particles(self, ps):
971  r"""set_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
972  return _IMP_npc.XYRadialPositionRestraint_set_particles(self, ps)
973 
974  def do_get_inputs(self):
975  r"""do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
976  return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
977 
978  def get_version_info(self):
979  r"""get_version_info(XYRadialPositionRestraint self) -> VersionInfo"""
980  return _IMP_npc.XYRadialPositionRestraint_get_version_info(self)
981  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionRestraint
982 
983  def __str__(self):
984  r"""__str__(XYRadialPositionRestraint self) -> std::string"""
985  return _IMP_npc.XYRadialPositionRestraint___str__(self)
986 
987  def __repr__(self):
988  r"""__repr__(XYRadialPositionRestraint self) -> std::string"""
989  return _IMP_npc.XYRadialPositionRestraint___repr__(self)
990 
991  @staticmethod
992  def get_from(o):
993  return _object_cast_to_XYRadialPositionRestraint(o)
994 
995 
996  def _get_as_binary(self):
997  r"""_get_as_binary(XYRadialPositionRestraint self) -> PyObject *"""
998  return _IMP_npc.XYRadialPositionRestraint__get_as_binary(self)
999 
1000  def _set_from_binary(self, p):
1001  r"""_set_from_binary(XYRadialPositionRestraint self, PyObject * p)"""
1002  return _IMP_npc.XYRadialPositionRestraint__set_from_binary(self, p)
1003 
1004  def __getstate__(self):
1005  p = self._get_as_binary()
1006  if len(self.__dict__) > 1:
1007  d = self.__dict__.copy()
1008  del d['this']
1009  p = (d, p)
1010  return p
1011 
1012  def __setstate__(self, p):
1013  if not hasattr(self, 'this'):
1014  self.__init__()
1015  if isinstance(p, tuple):
1016  d, p = p
1017  self.__dict__.update(d)
1018  return self._set_from_binary(p)
1019 
1020 
1021 # Register XYRadialPositionRestraint in _IMP_npc:
1022 _IMP_npc.XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
1023 class XYRadialPositionLowerRestraint(IMP.Restraint):
1024  r"""Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
1025 
1026  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1027 
1028  def __init__(self, *args):
1029  r"""
1030  __init__(XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1031  __init__(XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1032  __init__(XYRadialPositionLowerRestraint self) -> XYRadialPositionLowerRestraint
1033  """
1034  _IMP_npc.XYRadialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionLowerRestraint(*args))
1035 
1036  def add_particle(self, p):
1037  r"""add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
1038  return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
1039 
1040  def add_particles(self, ps):
1041  r"""add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1042  return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
1043 
1044  def set_particles(self, ps):
1045  r"""set_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1046  return _IMP_npc.XYRadialPositionLowerRestraint_set_particles(self, ps)
1047 
1048  def do_get_inputs(self):
1049  r"""do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
1050  return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
1051 
1052  def get_version_info(self):
1053  r"""get_version_info(XYRadialPositionLowerRestraint self) -> VersionInfo"""
1054  return _IMP_npc.XYRadialPositionLowerRestraint_get_version_info(self)
1055  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionLowerRestraint
1056 
1057  def __str__(self):
1058  r"""__str__(XYRadialPositionLowerRestraint self) -> std::string"""
1059  return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
1060 
1061  def __repr__(self):
1062  r"""__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
1063  return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
1064 
1065  @staticmethod
1066  def get_from(o):
1067  return _object_cast_to_XYRadialPositionLowerRestraint(o)
1068 
1069 
1070  def _get_as_binary(self):
1071  r"""_get_as_binary(XYRadialPositionLowerRestraint self) -> PyObject *"""
1072  return _IMP_npc.XYRadialPositionLowerRestraint__get_as_binary(self)
1073 
1074  def _set_from_binary(self, p):
1075  r"""_set_from_binary(XYRadialPositionLowerRestraint self, PyObject * p)"""
1076  return _IMP_npc.XYRadialPositionLowerRestraint__set_from_binary(self, p)
1077 
1078  def __getstate__(self):
1079  p = self._get_as_binary()
1080  if len(self.__dict__) > 1:
1081  d = self.__dict__.copy()
1082  del d['this']
1083  p = (d, p)
1084  return p
1085 
1086  def __setstate__(self, p):
1087  if not hasattr(self, 'this'):
1088  self.__init__()
1089  if isinstance(p, tuple):
1090  d, p = p
1091  self.__dict__.update(d)
1092  return self._set_from_binary(p)
1093 
1094 
1095 # Register XYRadialPositionLowerRestraint in _IMP_npc:
1096 _IMP_npc.XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
1097 class XYRadialPositionUpperRestraint(IMP.Restraint):
1098  r"""Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
1099 
1100  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1101 
1102  def __init__(self, *args):
1103  r"""
1104  __init__(XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1105  __init__(XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1106  __init__(XYRadialPositionUpperRestraint self) -> XYRadialPositionUpperRestraint
1107  """
1108  _IMP_npc.XYRadialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionUpperRestraint(*args))
1109 
1110  def add_particle(self, p):
1111  r"""add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
1112  return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
1113 
1114  def add_particles(self, ps):
1115  r"""add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1116  return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
1117 
1118  def set_particles(self, ps):
1119  r"""set_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1120  return _IMP_npc.XYRadialPositionUpperRestraint_set_particles(self, ps)
1121 
1122  def do_get_inputs(self):
1123  r"""do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1124  return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
1125 
1126  def get_version_info(self):
1127  r"""get_version_info(XYRadialPositionUpperRestraint self) -> VersionInfo"""
1128  return _IMP_npc.XYRadialPositionUpperRestraint_get_version_info(self)
1129  __swig_destroy__ = _IMP_npc.delete_XYRadialPositionUpperRestraint
1130 
1131  def __str__(self):
1132  r"""__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1133  return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1134 
1135  def __repr__(self):
1136  r"""__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1137  return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1138 
1139  @staticmethod
1140  def get_from(o):
1141  return _object_cast_to_XYRadialPositionUpperRestraint(o)
1142 
1143 
1144  def _get_as_binary(self):
1145  r"""_get_as_binary(XYRadialPositionUpperRestraint self) -> PyObject *"""
1146  return _IMP_npc.XYRadialPositionUpperRestraint__get_as_binary(self)
1147 
1148  def _set_from_binary(self, p):
1149  r"""_set_from_binary(XYRadialPositionUpperRestraint self, PyObject * p)"""
1150  return _IMP_npc.XYRadialPositionUpperRestraint__set_from_binary(self, p)
1151 
1152  def __getstate__(self):
1153  p = self._get_as_binary()
1154  if len(self.__dict__) > 1:
1155  d = self.__dict__.copy()
1156  del d['this']
1157  p = (d, p)
1158  return p
1159 
1160  def __setstate__(self, p):
1161  if not hasattr(self, 'this'):
1162  self.__init__()
1163  if isinstance(p, tuple):
1164  d, p = p
1165  self.__dict__.update(d)
1166  return self._set_from_binary(p)
1167 
1168 
1169 # Register XYRadialPositionUpperRestraint in _IMP_npc:
1170 _IMP_npc.XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1171 class ProteinContactRestraint(IMP.Restraint):
1172  r"""Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1173 
1174  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1175 
1176  def __init__(self, *args):
1177  r"""
1178  __init__(ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1179  __init__(ProteinContactRestraint self, Model m, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1180  __init__(ProteinContactRestraint self) -> ProteinContactRestraint
1181  """
1182  _IMP_npc.ProteinContactRestraint_swiginit(self, _IMP_npc.new_ProteinContactRestraint(*args))
1183 
1184  def add_particle(self, p):
1185  r"""add_particle(ProteinContactRestraint self, Particle p)"""
1186  return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1187 
1188  def add_particles(self, ps):
1189  r"""add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1190  return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
1191 
1192  def set_particles(self, ps):
1193  r"""set_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1194  return _IMP_npc.ProteinContactRestraint_set_particles(self, ps)
1195 
1196  def do_get_inputs(self):
1197  r"""do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1198  return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
1199 
1200  def get_version_info(self):
1201  r"""get_version_info(ProteinContactRestraint self) -> VersionInfo"""
1202  return _IMP_npc.ProteinContactRestraint_get_version_info(self)
1203  __swig_destroy__ = _IMP_npc.delete_ProteinContactRestraint
1204 
1205  def __str__(self):
1206  r"""__str__(ProteinContactRestraint self) -> std::string"""
1207  return _IMP_npc.ProteinContactRestraint___str__(self)
1208 
1209  def __repr__(self):
1210  r"""__repr__(ProteinContactRestraint self) -> std::string"""
1211  return _IMP_npc.ProteinContactRestraint___repr__(self)
1212 
1213  @staticmethod
1214  def get_from(o):
1215  return _object_cast_to_ProteinContactRestraint(o)
1216 
1217 
1218  def _get_as_binary(self):
1219  r"""_get_as_binary(ProteinContactRestraint self) -> PyObject *"""
1220  return _IMP_npc.ProteinContactRestraint__get_as_binary(self)
1221 
1222  def _set_from_binary(self, p):
1223  r"""_set_from_binary(ProteinContactRestraint self, PyObject * p)"""
1224  return _IMP_npc.ProteinContactRestraint__set_from_binary(self, p)
1225 
1226  def __getstate__(self):
1227  p = self._get_as_binary()
1228  if len(self.__dict__) > 1:
1229  d = self.__dict__.copy()
1230  del d['this']
1231  p = (d, p)
1232  return p
1233 
1234  def __setstate__(self, p):
1235  if not hasattr(self, 'this'):
1236  self.__init__()
1237  if isinstance(p, tuple):
1238  d, p = p
1239  self.__dict__.update(d)
1240  return self._set_from_binary(p)
1241 
1242 
1243 # Register ProteinContactRestraint in _IMP_npc:
1244 _IMP_npc.ProteinContactRestraint_swigregister(ProteinContactRestraint)
1245 class ProteinChainRestraint(IMP.Restraint):
1246  r"""Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1247 
1248  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1249 
1250  def __init__(self, *args):
1251  r"""
1252  __init__(ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> ProteinChainRestraint
1253  __init__(ProteinChainRestraint self, Model m, double sigma=0.1) -> ProteinChainRestraint
1254  __init__(ProteinChainRestraint self) -> ProteinChainRestraint
1255  """
1256  _IMP_npc.ProteinChainRestraint_swiginit(self, _IMP_npc.new_ProteinChainRestraint(*args))
1257 
1258  def add_particle(self, p):
1259  r"""add_particle(ProteinChainRestraint self, Particle p)"""
1260  return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1261 
1262  def add_particles(self, ps):
1263  r"""add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1264  return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
1265 
1266  def set_particles(self, ps):
1267  r"""set_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1268  return _IMP_npc.ProteinChainRestraint_set_particles(self, ps)
1269 
1270  def do_get_inputs(self):
1271  r"""do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1272  return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
1273 
1274  def get_version_info(self):
1275  r"""get_version_info(ProteinChainRestraint self) -> VersionInfo"""
1276  return _IMP_npc.ProteinChainRestraint_get_version_info(self)
1277  __swig_destroy__ = _IMP_npc.delete_ProteinChainRestraint
1278 
1279  def __str__(self):
1280  r"""__str__(ProteinChainRestraint self) -> std::string"""
1281  return _IMP_npc.ProteinChainRestraint___str__(self)
1282 
1283  def __repr__(self):
1284  r"""__repr__(ProteinChainRestraint self) -> std::string"""
1285  return _IMP_npc.ProteinChainRestraint___repr__(self)
1286 
1287  @staticmethod
1288  def get_from(o):
1289  return _object_cast_to_ProteinChainRestraint(o)
1290 
1291 
1292  def _get_as_binary(self):
1293  r"""_get_as_binary(ProteinChainRestraint self) -> PyObject *"""
1294  return _IMP_npc.ProteinChainRestraint__get_as_binary(self)
1295 
1296  def _set_from_binary(self, p):
1297  r"""_set_from_binary(ProteinChainRestraint self, PyObject * p)"""
1298  return _IMP_npc.ProteinChainRestraint__set_from_binary(self, p)
1299 
1300  def __getstate__(self):
1301  p = self._get_as_binary()
1302  if len(self.__dict__) > 1:
1303  d = self.__dict__.copy()
1304  del d['this']
1305  p = (d, p)
1306  return p
1307 
1308  def __setstate__(self, p):
1309  if not hasattr(self, 'this'):
1310  self.__init__()
1311  if isinstance(p, tuple):
1312  d, p = p
1313  self.__dict__.update(d)
1314  return self._set_from_binary(p)
1315 
1316 
1317 # Register ProteinChainRestraint in _IMP_npc:
1318 _IMP_npc.ProteinChainRestraint_swigregister(ProteinChainRestraint)
1319 class MembraneSurfaceLocationRestraint(IMP.Restraint):
1320  r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1321 
1322  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1323 
1324  def __init__(self, *args):
1325  r"""
1326  __init__(MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1327  __init__(MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1328  __init__(MembraneSurfaceLocationRestraint self) -> MembraneSurfaceLocationRestraint
1329  """
1330  _IMP_npc.MembraneSurfaceLocationRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationRestraint(*args))
1331 
1332  def add_particle(self, p):
1333  r"""add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1334  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1335 
1336  def add_particles(self, ps):
1337  r"""add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1338  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
1339 
1340  def set_particles(self, ps):
1341  r"""set_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1342  return _IMP_npc.MembraneSurfaceLocationRestraint_set_particles(self, ps)
1343 
1344  def do_get_inputs(self):
1345  r"""do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1346  return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
1347 
1348  def get_version_info(self):
1349  r"""get_version_info(MembraneSurfaceLocationRestraint self) -> VersionInfo"""
1350  return _IMP_npc.MembraneSurfaceLocationRestraint_get_version_info(self)
1351  __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationRestraint
1352 
1353  def __str__(self):
1354  r"""__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1355  return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1356 
1357  def __repr__(self):
1358  r"""__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1359  return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1360 
1361  @staticmethod
1362  def get_from(o):
1363  return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1364 
1365 
1366  def _get_as_binary(self):
1367  r"""_get_as_binary(MembraneSurfaceLocationRestraint self) -> PyObject *"""
1368  return _IMP_npc.MembraneSurfaceLocationRestraint__get_as_binary(self)
1369 
1370  def _set_from_binary(self, p):
1371  r"""_set_from_binary(MembraneSurfaceLocationRestraint self, PyObject * p)"""
1372  return _IMP_npc.MembraneSurfaceLocationRestraint__set_from_binary(self, p)
1373 
1374  def __getstate__(self):
1375  p = self._get_as_binary()
1376  if len(self.__dict__) > 1:
1377  d = self.__dict__.copy()
1378  del d['this']
1379  p = (d, p)
1380  return p
1381 
1382  def __setstate__(self, p):
1383  if not hasattr(self, 'this'):
1384  self.__init__()
1385  if isinstance(p, tuple):
1386  d, p = p
1387  self.__dict__.update(d)
1388  return self._set_from_binary(p)
1389 
1390 
1391 # Register MembraneSurfaceLocationRestraint in _IMP_npc:
1392 _IMP_npc.MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1393 class MembraneSurfaceLocationConditionalRestraint(IMP.Restraint):
1394  r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1395 
1396  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1397 
1398  def __init__(self, *args):
1399  r"""
1400  __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1401  __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1402  __init__(MembraneSurfaceLocationConditionalRestraint self) -> MembraneSurfaceLocationConditionalRestraint
1403  """
1404  _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args))
1405 
1406  def add_particle1(self, p):
1407  r"""add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1408  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1409 
1410  def add_particle2(self, p):
1411  r"""add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1412  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
1413 
1414  def add_particles1(self, ps):
1415  r"""add_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1416  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles1(self, ps)
1417 
1418  def add_particles2(self, ps):
1419  r"""add_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1420  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles2(self, ps)
1421 
1422  def set_particles1(self, ps):
1423  r"""set_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1424  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles1(self, ps)
1425 
1426  def set_particles2(self, ps):
1427  r"""set_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1428  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles2(self, ps)
1429 
1430  def do_get_inputs(self):
1431  r"""do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1432  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
1433 
1434  def get_version_info(self):
1435  r"""get_version_info(MembraneSurfaceLocationConditionalRestraint self) -> VersionInfo"""
1436  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_get_version_info(self)
1437  __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationConditionalRestraint
1438 
1439  def __str__(self):
1440  r"""__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1441  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1442 
1443  def __repr__(self):
1444  r"""__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1445  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1446 
1447  @staticmethod
1448  def get_from(o):
1449  return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1450 
1451 
1452  def _get_as_binary(self):
1453  r"""_get_as_binary(MembraneSurfaceLocationConditionalRestraint self) -> PyObject *"""
1454  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__get_as_binary(self)
1455 
1456  def _set_from_binary(self, p):
1457  r"""_set_from_binary(MembraneSurfaceLocationConditionalRestraint self, PyObject * p)"""
1458  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__set_from_binary(self, p)
1459 
1460  def __getstate__(self):
1461  p = self._get_as_binary()
1462  if len(self.__dict__) > 1:
1463  d = self.__dict__.copy()
1464  del d['this']
1465  p = (d, p)
1466  return p
1467 
1468  def __setstate__(self, p):
1469  if not hasattr(self, 'this'):
1470  self.__init__()
1471  if isinstance(p, tuple):
1472  d, p = p
1473  self.__dict__.update(d)
1474  return self._set_from_binary(p)
1475 
1476 
1477 # Register MembraneSurfaceLocationConditionalRestraint in _IMP_npc:
1478 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1479 class MembraneExclusionRestraint(IMP.Restraint):
1480  r"""Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1481 
1482  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1483 
1484  def __init__(self, *args):
1485  r"""
1486  __init__(MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1487  __init__(MembraneExclusionRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1488  __init__(MembraneExclusionRestraint self) -> MembraneExclusionRestraint
1489  """
1490  _IMP_npc.MembraneExclusionRestraint_swiginit(self, _IMP_npc.new_MembraneExclusionRestraint(*args))
1491 
1492  def add_particle(self, p):
1493  r"""add_particle(MembraneExclusionRestraint self, Particle p)"""
1494  return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1495 
1496  def add_particles(self, ps):
1497  r"""add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1498  return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
1499 
1500  def set_particles(self, ps):
1501  r"""set_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1502  return _IMP_npc.MembraneExclusionRestraint_set_particles(self, ps)
1503 
1504  def do_get_inputs(self):
1505  r"""do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1506  return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
1507 
1508  def get_version_info(self):
1509  r"""get_version_info(MembraneExclusionRestraint self) -> VersionInfo"""
1510  return _IMP_npc.MembraneExclusionRestraint_get_version_info(self)
1511  __swig_destroy__ = _IMP_npc.delete_MembraneExclusionRestraint
1512 
1513  def __str__(self):
1514  r"""__str__(MembraneExclusionRestraint self) -> std::string"""
1515  return _IMP_npc.MembraneExclusionRestraint___str__(self)
1516 
1517  def __repr__(self):
1518  r"""__repr__(MembraneExclusionRestraint self) -> std::string"""
1519  return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1520 
1521  @staticmethod
1522  def get_from(o):
1523  return _object_cast_to_MembraneExclusionRestraint(o)
1524 
1525 
1526  def _get_as_binary(self):
1527  r"""_get_as_binary(MembraneExclusionRestraint self) -> PyObject *"""
1528  return _IMP_npc.MembraneExclusionRestraint__get_as_binary(self)
1529 
1530  def _set_from_binary(self, p):
1531  r"""_set_from_binary(MembraneExclusionRestraint self, PyObject * p)"""
1532  return _IMP_npc.MembraneExclusionRestraint__set_from_binary(self, p)
1533 
1534  def __getstate__(self):
1535  p = self._get_as_binary()
1536  if len(self.__dict__) > 1:
1537  d = self.__dict__.copy()
1538  del d['this']
1539  p = (d, p)
1540  return p
1541 
1542  def __setstate__(self, p):
1543  if not hasattr(self, 'this'):
1544  self.__init__()
1545  if isinstance(p, tuple):
1546  d, p = p
1547  self.__dict__.update(d)
1548  return self._set_from_binary(p)
1549 
1550 
1551 # Register MembraneExclusionRestraint in _IMP_npc:
1552 _IMP_npc.MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1553 class PoreSideVolumeLocationRestraint(IMP.Restraint):
1554  r"""Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1555 
1556  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1557 
1558  def __init__(self, *args):
1559  r"""
1560  __init__(PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1561  __init__(PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1562  __init__(PoreSideVolumeLocationRestraint self) -> PoreSideVolumeLocationRestraint
1563  """
1564  _IMP_npc.PoreSideVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PoreSideVolumeLocationRestraint(*args))
1565 
1566  def add_particle(self, p):
1567  r"""add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1568  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1569 
1570  def add_particles(self, ps):
1571  r"""add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1572  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
1573 
1574  def set_particles(self, ps):
1575  r"""set_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1576  return _IMP_npc.PoreSideVolumeLocationRestraint_set_particles(self, ps)
1577 
1578  def do_get_inputs(self):
1579  r"""do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1580  return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
1581 
1582  def get_version_info(self):
1583  r"""get_version_info(PoreSideVolumeLocationRestraint self) -> VersionInfo"""
1584  return _IMP_npc.PoreSideVolumeLocationRestraint_get_version_info(self)
1585  __swig_destroy__ = _IMP_npc.delete_PoreSideVolumeLocationRestraint
1586 
1587  def __str__(self):
1588  r"""__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1589  return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1590 
1591  def __repr__(self):
1592  r"""__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1593  return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1594 
1595  @staticmethod
1596  def get_from(o):
1597  return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1598 
1599 
1600  def _get_as_binary(self):
1601  r"""_get_as_binary(PoreSideVolumeLocationRestraint self) -> PyObject *"""
1602  return _IMP_npc.PoreSideVolumeLocationRestraint__get_as_binary(self)
1603 
1604  def _set_from_binary(self, p):
1605  r"""_set_from_binary(PoreSideVolumeLocationRestraint self, PyObject * p)"""
1606  return _IMP_npc.PoreSideVolumeLocationRestraint__set_from_binary(self, p)
1607 
1608  def __getstate__(self):
1609  p = self._get_as_binary()
1610  if len(self.__dict__) > 1:
1611  d = self.__dict__.copy()
1612  del d['this']
1613  p = (d, p)
1614  return p
1615 
1616  def __setstate__(self, p):
1617  if not hasattr(self, 'this'):
1618  self.__init__()
1619  if isinstance(p, tuple):
1620  d, p = p
1621  self.__dict__.update(d)
1622  return self._set_from_binary(p)
1623 
1624 
1625 # Register PoreSideVolumeLocationRestraint in _IMP_npc:
1626 _IMP_npc.PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1627 class PerinuclearVolumeLocationRestraint(IMP.Restraint):
1628  r"""Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1629 
1630  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1631 
1632  def __init__(self, *args):
1633  r"""
1634  __init__(PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1635  __init__(PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1636  __init__(PerinuclearVolumeLocationRestraint self) -> PerinuclearVolumeLocationRestraint
1637  """
1638  _IMP_npc.PerinuclearVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args))
1639 
1640  def add_particle(self, p):
1641  r"""add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1642  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1643 
1644  def add_particles(self, ps):
1645  r"""add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1646  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
1647 
1648  def set_particles(self, ps):
1649  r"""set_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1650  return _IMP_npc.PerinuclearVolumeLocationRestraint_set_particles(self, ps)
1651 
1652  def do_get_inputs(self):
1653  r"""do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1654  return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
1655 
1656  def get_version_info(self):
1657  r"""get_version_info(PerinuclearVolumeLocationRestraint self) -> VersionInfo"""
1658  return _IMP_npc.PerinuclearVolumeLocationRestraint_get_version_info(self)
1659  __swig_destroy__ = _IMP_npc.delete_PerinuclearVolumeLocationRestraint
1660 
1661  def __str__(self):
1662  r"""__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1663  return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1664 
1665  def __repr__(self):
1666  r"""__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1667  return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1668 
1669  @staticmethod
1670  def get_from(o):
1671  return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1672 
1673 
1674  def _get_as_binary(self):
1675  r"""_get_as_binary(PerinuclearVolumeLocationRestraint self) -> PyObject *"""
1676  return _IMP_npc.PerinuclearVolumeLocationRestraint__get_as_binary(self)
1677 
1678  def _set_from_binary(self, p):
1679  r"""_set_from_binary(PerinuclearVolumeLocationRestraint self, PyObject * p)"""
1680  return _IMP_npc.PerinuclearVolumeLocationRestraint__set_from_binary(self, p)
1681 
1682  def __getstate__(self):
1683  p = self._get_as_binary()
1684  if len(self.__dict__) > 1:
1685  d = self.__dict__.copy()
1686  del d['this']
1687  p = (d, p)
1688  return p
1689 
1690  def __setstate__(self, p):
1691  if not hasattr(self, 'this'):
1692  self.__init__()
1693  if isinstance(p, tuple):
1694  d, p = p
1695  self.__dict__.update(d)
1696  return self._set_from_binary(p)
1697 
1698 
1699 # Register PerinuclearVolumeLocationRestraint in _IMP_npc:
1700 _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1701 class AssemblySymmetryByDistanceRestraint(IMP.Restraint):
1702  r"""Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1703 
1704  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1705 
1706  def __init__(self, *args):
1707  r"""
1708  __init__(AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1709  __init__(AssemblySymmetryByDistanceRestraint self, Model m, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1710  __init__(AssemblySymmetryByDistanceRestraint self) -> AssemblySymmetryByDistanceRestraint
1711  """
1712  _IMP_npc.AssemblySymmetryByDistanceRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args))
1713 
1714  def add_particle(self, p):
1715  r"""add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1716  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1717 
1718  def add_particles(self, ps):
1719  r"""add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1720  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
1721 
1722  def set_particles(self, ps):
1723  r"""set_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1724  return _IMP_npc.AssemblySymmetryByDistanceRestraint_set_particles(self, ps)
1725 
1726  def do_get_inputs(self):
1727  r"""do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1728  return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
1729 
1730  def get_version_info(self):
1731  r"""get_version_info(AssemblySymmetryByDistanceRestraint self) -> VersionInfo"""
1732  return _IMP_npc.AssemblySymmetryByDistanceRestraint_get_version_info(self)
1733  __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDistanceRestraint
1734 
1735  def __str__(self):
1736  r"""__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1737  return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1738 
1739  def __repr__(self):
1740  r"""__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1741  return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1742 
1743  @staticmethod
1744  def get_from(o):
1745  return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1746 
1747 
1748  def _get_as_binary(self):
1749  r"""_get_as_binary(AssemblySymmetryByDistanceRestraint self) -> PyObject *"""
1750  return _IMP_npc.AssemblySymmetryByDistanceRestraint__get_as_binary(self)
1751 
1752  def _set_from_binary(self, p):
1753  r"""_set_from_binary(AssemblySymmetryByDistanceRestraint self, PyObject * p)"""
1754  return _IMP_npc.AssemblySymmetryByDistanceRestraint__set_from_binary(self, p)
1755 
1756  def __getstate__(self):
1757  p = self._get_as_binary()
1758  if len(self.__dict__) > 1:
1759  d = self.__dict__.copy()
1760  del d['this']
1761  p = (d, p)
1762  return p
1763 
1764  def __setstate__(self, p):
1765  if not hasattr(self, 'this'):
1766  self.__init__()
1767  if isinstance(p, tuple):
1768  d, p = p
1769  self.__dict__.update(d)
1770  return self._set_from_binary(p)
1771 
1772 
1773 # Register AssemblySymmetryByDistanceRestraint in _IMP_npc:
1774 _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1775 class AssemblySymmetryByDihedralRestraint(IMP.Restraint):
1776  r"""Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1777 
1778  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1779 
1780  def __init__(self, *args):
1781  r"""
1782  __init__(AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1783  __init__(AssemblySymmetryByDihedralRestraint self, Model m, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1784  __init__(AssemblySymmetryByDihedralRestraint self) -> AssemblySymmetryByDihedralRestraint
1785  """
1786  _IMP_npc.AssemblySymmetryByDihedralRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args))
1787 
1788  def add_particle(self, p):
1789  r"""add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1790  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1791 
1792  def add_particles(self, ps):
1793  r"""add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1794  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
1795 
1796  def set_particles(self, ps):
1797  r"""set_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1798  return _IMP_npc.AssemblySymmetryByDihedralRestraint_set_particles(self, ps)
1799 
1800  def do_get_inputs(self):
1801  r"""do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1802  return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
1803 
1804  def get_version_info(self):
1805  r"""get_version_info(AssemblySymmetryByDihedralRestraint self) -> VersionInfo"""
1806  return _IMP_npc.AssemblySymmetryByDihedralRestraint_get_version_info(self)
1807  __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDihedralRestraint
1808 
1809  def __str__(self):
1810  r"""__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1811  return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1812 
1813  def __repr__(self):
1814  r"""__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1815  return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1816 
1817  @staticmethod
1818  def get_from(o):
1819  return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1820 
1821 
1822  def _get_as_binary(self):
1823  r"""_get_as_binary(AssemblySymmetryByDihedralRestraint self) -> PyObject *"""
1824  return _IMP_npc.AssemblySymmetryByDihedralRestraint__get_as_binary(self)
1825 
1826  def _set_from_binary(self, p):
1827  r"""_set_from_binary(AssemblySymmetryByDihedralRestraint self, PyObject * p)"""
1828  return _IMP_npc.AssemblySymmetryByDihedralRestraint__set_from_binary(self, p)
1829 
1830  def __getstate__(self):
1831  p = self._get_as_binary()
1832  if len(self.__dict__) > 1:
1833  d = self.__dict__.copy()
1834  del d['this']
1835  p = (d, p)
1836  return p
1837 
1838  def __setstate__(self, p):
1839  if not hasattr(self, 'this'):
1840  self.__init__()
1841  if isinstance(p, tuple):
1842  d, p = p
1843  self.__dict__.update(d)
1844  return self._set_from_binary(p)
1845 
1846 
1847 # Register AssemblySymmetryByDihedralRestraint in _IMP_npc:
1848 _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1849 class ProteinProximityRestraint(IMP.Restraint):
1850  r"""Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1851 
1852  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1853 
1854  def __init__(self, *args):
1855  r"""
1856  __init__(ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1857  __init__(ProteinProximityRestraint self, Model m, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1858  __init__(ProteinProximityRestraint self) -> ProteinProximityRestraint
1859  """
1860  _IMP_npc.ProteinProximityRestraint_swiginit(self, _IMP_npc.new_ProteinProximityRestraint(*args))
1861 
1862  def add_particle(self, p):
1863  r"""add_particle(ProteinProximityRestraint self, Particle p)"""
1864  return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1865 
1866  def add_particles(self, ps):
1867  r"""add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1868  return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
1869 
1870  def set_particles(self, ps):
1871  r"""set_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1872  return _IMP_npc.ProteinProximityRestraint_set_particles(self, ps)
1873 
1874  def do_get_inputs(self):
1875  r"""do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1876  return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
1877 
1878  def get_version_info(self):
1879  r"""get_version_info(ProteinProximityRestraint self) -> VersionInfo"""
1880  return _IMP_npc.ProteinProximityRestraint_get_version_info(self)
1881  __swig_destroy__ = _IMP_npc.delete_ProteinProximityRestraint
1882 
1883  def __str__(self):
1884  r"""__str__(ProteinProximityRestraint self) -> std::string"""
1885  return _IMP_npc.ProteinProximityRestraint___str__(self)
1886 
1887  def __repr__(self):
1888  r"""__repr__(ProteinProximityRestraint self) -> std::string"""
1889  return _IMP_npc.ProteinProximityRestraint___repr__(self)
1890 
1891  @staticmethod
1892  def get_from(o):
1893  return _object_cast_to_ProteinProximityRestraint(o)
1894 
1895 
1896  def _get_as_binary(self):
1897  r"""_get_as_binary(ProteinProximityRestraint self) -> PyObject *"""
1898  return _IMP_npc.ProteinProximityRestraint__get_as_binary(self)
1899 
1900  def _set_from_binary(self, p):
1901  r"""_set_from_binary(ProteinProximityRestraint self, PyObject * p)"""
1902  return _IMP_npc.ProteinProximityRestraint__set_from_binary(self, p)
1903 
1904  def __getstate__(self):
1905  p = self._get_as_binary()
1906  if len(self.__dict__) > 1:
1907  d = self.__dict__.copy()
1908  del d['this']
1909  p = (d, p)
1910  return p
1911 
1912  def __setstate__(self, p):
1913  if not hasattr(self, 'this'):
1914  self.__init__()
1915  if isinstance(p, tuple):
1916  d, p = p
1917  self.__dict__.update(d)
1918  return self._set_from_binary(p)
1919 
1920 
1921 # Register ProteinProximityRestraint in _IMP_npc:
1922 _IMP_npc.ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
1923 class CompositeRestraint(IMP.Restraint):
1924  r"""Proxy of C++ IMP::npc::CompositeRestraint class."""
1925 
1926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1927 
1928  def __init__(self, m, ps):
1929  r"""__init__(CompositeRestraint self, Model m, PairScore ps) -> CompositeRestraint"""
1930  _IMP_npc.CompositeRestraint_swiginit(self, _IMP_npc.new_CompositeRestraint(m, ps))
1931 
1932  def add_type(self, ps):
1933  r"""add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
1934  return _IMP_npc.CompositeRestraint_add_type(self, ps)
1935 
1936  def get_connected_pairs(self):
1937  r"""get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
1938  return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
1939 
1940  def do_get_inputs(self):
1941  r"""do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
1942  return _IMP_npc.CompositeRestraint_do_get_inputs(self)
1943 
1944  def get_version_info(self):
1945  r"""get_version_info(CompositeRestraint self) -> VersionInfo"""
1946  return _IMP_npc.CompositeRestraint_get_version_info(self)
1947  __swig_destroy__ = _IMP_npc.delete_CompositeRestraint
1948 
1949  def __str__(self):
1950  r"""__str__(CompositeRestraint self) -> std::string"""
1951  return _IMP_npc.CompositeRestraint___str__(self)
1952 
1953  def __repr__(self):
1954  r"""__repr__(CompositeRestraint self) -> std::string"""
1955  return _IMP_npc.CompositeRestraint___repr__(self)
1956 
1957  @staticmethod
1958  def get_from(o):
1959  return _object_cast_to_CompositeRestraint(o)
1960 
1961 
1962 # Register CompositeRestraint in _IMP_npc:
1963 _IMP_npc.CompositeRestraint_swigregister(CompositeRestraint)
1964 class MinimumSphereDistancePairScore(IMP.PairScore):
1965  r"""Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
1966 
1967  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1968 
1969  def __init__(self, *args):
1970  r"""
1971  __init__(MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore
1972  __init__(MinimumSphereDistancePairScore self) -> MinimumSphereDistancePairScore
1973  """
1974  _IMP_npc.MinimumSphereDistancePairScore_swiginit(self, _IMP_npc.new_MinimumSphereDistancePairScore(*args))
1975 
1976  def do_get_inputs(self, m, pis):
1977  r"""do_get_inputs(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1978  return _IMP_npc.MinimumSphereDistancePairScore_do_get_inputs(self, m, pis)
1979 
1980  def get_version_info(self):
1981  r"""get_version_info(MinimumSphereDistancePairScore self) -> VersionInfo"""
1982  return _IMP_npc.MinimumSphereDistancePairScore_get_version_info(self)
1983  __swig_destroy__ = _IMP_npc.delete_MinimumSphereDistancePairScore
1984 
1985  def __str__(self):
1986  r"""__str__(MinimumSphereDistancePairScore self) -> std::string"""
1987  return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
1988 
1989  def __repr__(self):
1990  r"""__repr__(MinimumSphereDistancePairScore self) -> std::string"""
1991  return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
1992 
1993  @staticmethod
1994  def get_from(o):
1995  return _object_cast_to_MinimumSphereDistancePairScore(o)
1996 
1997 
1998  def _get_as_binary(self):
1999  r"""_get_as_binary(MinimumSphereDistancePairScore self) -> PyObject *"""
2000  return _IMP_npc.MinimumSphereDistancePairScore__get_as_binary(self)
2001 
2002  def _set_from_binary(self, p):
2003  r"""_set_from_binary(MinimumSphereDistancePairScore self, PyObject * p)"""
2004  return _IMP_npc.MinimumSphereDistancePairScore__set_from_binary(self, p)
2005 
2006  def __getstate__(self):
2007  p = self._get_as_binary()
2008  if len(self.__dict__) > 1:
2009  d = self.__dict__.copy()
2010  del d['this']
2011  p = (d, p)
2012  return p
2013 
2014  def __setstate__(self, p):
2015  if not hasattr(self, 'this'):
2016  self.__init__()
2017  if isinstance(p, tuple):
2018  d, p = p
2019  self.__dict__.update(d)
2020  return self._set_from_binary(p)
2021 
2022 
2023 # Register MinimumSphereDistancePairScore in _IMP_npc:
2024 _IMP_npc.MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
2025 
2026 def get_module_version():
2027  r"""get_module_version() -> std::string const"""
2028  return _IMP_npc.get_module_version()
2029 
2030 def get_example_path(fname):
2031  r"""get_example_path(std::string fname) -> std::string"""
2032  return _IMP_npc.get_example_path(fname)
2033 
2034 def get_data_path(fname):
2035  r"""get_data_path(std::string fname) -> std::string"""
2036  return _IMP_npc.get_data_path(fname)
2037 
2038 from . import _version_check
2039 _version_check.check_version(get_module_version())
2040 __version__ = get_module_version()
2041 
2042 
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Make CGAL functionality available to IMP.
std::string get_module_version()
Return the version of this module, as a string.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_particle(RMF::FileHandle fh, Particle *hs)
Composable functors to implement scores via compile-time composition.
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.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:56